@next-degree/pickle-shared-js 0.6.46 → 0.6.48
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/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 +0 -3
- 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 +0 -3
- 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 +3 -3
- package/dist/components/primitives/command.d.ts +3 -3
- 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.map +1 -1
- 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-D8JK59Z-.d.ts → displayText-DDf9iWyg.d.ts} +2 -2
- package/dist/{displayText-DT2bYICS.d.cts → displayText-mYUVo6Ek.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 +207 -123
- 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 +171 -88
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-RgzWsEdh.d.cts → job_posting_service_latest-Dn5s8beY.d.cts} +183 -183
- package/dist/{job_posting_service_latest-RgzWsEdh.d.ts → job_posting_service_latest-Dn5s8beY.d.ts} +183 -183
- 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.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +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/styles/globals.css +109 -37
- package/dist/styles/globals.css.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/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +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/package.json +6 -4
- package/dist/{company_service_latest-B7KhyYDc.d.cts → company_service_latest-DelYl1hO.d.cts} +174 -174
- package/dist/{company_service_latest-B7KhyYDc.d.ts → company_service_latest-DelYl1hO.d.ts} +174 -174
- package/dist/{shared_pickle_output_latest-D8viuRLi.d.cts → shared_pickle_output_latest-DbAgINuf.d.cts} +15 -15
- package/dist/{shared_pickle_output_latest-D8viuRLi.d.ts → shared_pickle_output_latest-DbAgINuf.d.ts} +15 -15
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,
|
|
@@ -1378,11 +1379,96 @@ var counterVariants = (0, import_cva6.cva)(
|
|
|
1378
1379
|
}
|
|
1379
1380
|
);
|
|
1380
1381
|
|
|
1381
|
-
// src/components/
|
|
1382
|
-
var
|
|
1382
|
+
// src/components/ui/InputOtp.tsx
|
|
1383
|
+
var import_react8 = require("react");
|
|
1384
|
+
|
|
1385
|
+
// src/components/primitives/input-otp.tsx
|
|
1383
1386
|
var React7 = __toESM(require("react"), 1);
|
|
1387
|
+
var import_input_otp = require("input-otp");
|
|
1388
|
+
var import_lucide_react12 = require("lucide-react");
|
|
1384
1389
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1385
|
-
var
|
|
1390
|
+
var InputOTP = React7.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1391
|
+
import_input_otp.OTPInput,
|
|
1392
|
+
{
|
|
1393
|
+
ref,
|
|
1394
|
+
containerClassName: cn(
|
|
1395
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
1396
|
+
containerClassName
|
|
1397
|
+
),
|
|
1398
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
1399
|
+
...props
|
|
1400
|
+
}
|
|
1401
|
+
));
|
|
1402
|
+
InputOTP.displayName = "InputOTP";
|
|
1403
|
+
var InputOTPGroup = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1404
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1405
|
+
var InputOTPSlot = React7.forwardRef(({ index, error, className, ...props }, ref) => {
|
|
1406
|
+
const inputOTPContext = React7.useContext(import_input_otp.OTPInputContext);
|
|
1407
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1409
|
+
"div",
|
|
1410
|
+
{
|
|
1411
|
+
ref,
|
|
1412
|
+
className: cn(
|
|
1413
|
+
"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",
|
|
1414
|
+
isActive && "z-10 ring-2 ring-purple-100 ring-offset-white dark:ring-purple-20 dark:ring-offset-purple-100",
|
|
1415
|
+
error && "border-red-500 dark:border-red-400",
|
|
1416
|
+
className
|
|
1417
|
+
),
|
|
1418
|
+
...props,
|
|
1419
|
+
children: [
|
|
1420
|
+
char,
|
|
1421
|
+
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" }) })
|
|
1422
|
+
]
|
|
1423
|
+
}
|
|
1424
|
+
);
|
|
1425
|
+
});
|
|
1426
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1427
|
+
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, {}) }));
|
|
1428
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1429
|
+
|
|
1430
|
+
// src/components/ui/InputOtp.tsx
|
|
1431
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1432
|
+
var InputOtp = (0, import_react8.forwardRef)(
|
|
1433
|
+
({ digits, label, description, error, ...props }, ref) => {
|
|
1434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1435
|
+
"div",
|
|
1436
|
+
{
|
|
1437
|
+
className: "group flex w-full flex-col gap-1",
|
|
1438
|
+
"data-testid": `input-otp-wrapper-${props.id}`,
|
|
1439
|
+
children: [
|
|
1440
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1441
|
+
Label_default,
|
|
1442
|
+
{
|
|
1443
|
+
text: label,
|
|
1444
|
+
htmlFor: props.name,
|
|
1445
|
+
required: props.required,
|
|
1446
|
+
description
|
|
1447
|
+
}
|
|
1448
|
+
),
|
|
1449
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative flex flex-row items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1450
|
+
InputOTP,
|
|
1451
|
+
{
|
|
1452
|
+
ref,
|
|
1453
|
+
maxLength: digits,
|
|
1454
|
+
"data-testid": `input-otp-element-${props.id}`,
|
|
1455
|
+
...props,
|
|
1456
|
+
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))
|
|
1457
|
+
}
|
|
1458
|
+
) }),
|
|
1459
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ErrorMessage_default, { message: error })
|
|
1460
|
+
]
|
|
1461
|
+
}
|
|
1462
|
+
);
|
|
1463
|
+
}
|
|
1464
|
+
);
|
|
1465
|
+
InputOtp.displayName = "Input";
|
|
1466
|
+
|
|
1467
|
+
// src/components/primitives/avatar.tsx
|
|
1468
|
+
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
1469
|
+
var React8 = __toESM(require("react"), 1);
|
|
1470
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1471
|
+
var AvatarBase = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1386
1472
|
AvatarPrimitive.Root,
|
|
1387
1473
|
{
|
|
1388
1474
|
ref,
|
|
@@ -1391,7 +1477,7 @@ var AvatarBase = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1391
1477
|
}
|
|
1392
1478
|
));
|
|
1393
1479
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
1394
|
-
var AvatarImage =
|
|
1480
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1395
1481
|
AvatarPrimitive.Image,
|
|
1396
1482
|
{
|
|
1397
1483
|
ref,
|
|
@@ -1401,7 +1487,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1401
1487
|
}
|
|
1402
1488
|
));
|
|
1403
1489
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1404
|
-
var AvatarFallback =
|
|
1490
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1405
1491
|
AvatarPrimitive.Fallback,
|
|
1406
1492
|
{
|
|
1407
1493
|
ref,
|
|
@@ -1417,17 +1503,17 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
1417
1503
|
// src/components/ui/Avatar.tsx
|
|
1418
1504
|
var import_cva7 = require("cva");
|
|
1419
1505
|
var import_link = __toESM(require("next/link"), 1);
|
|
1420
|
-
var
|
|
1506
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1421
1507
|
function Avatar({ size, src, href, name, ...linkProps }) {
|
|
1422
1508
|
const fallbackShort = name?.slice(0, 2);
|
|
1423
1509
|
const fallbackWords = name?.split(" ").map((n) => n[0]).join("").slice(0, 2);
|
|
1424
1510
|
const fallback = fallbackWords && fallbackWords.length > 1 ? fallbackWords : fallbackShort;
|
|
1425
|
-
const renderAvatar = () => /* @__PURE__ */ (0,
|
|
1426
|
-
/* @__PURE__ */ (0,
|
|
1427
|
-
/* @__PURE__ */ (0,
|
|
1511
|
+
const renderAvatar = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AvatarBase, { className: avatarVariants({ size }), children: [
|
|
1512
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AvatarImage, { src, alt: name }),
|
|
1513
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AvatarFallback, { children: fallback?.toUpperCase() })
|
|
1428
1514
|
] });
|
|
1429
1515
|
if (href) {
|
|
1430
|
-
return /* @__PURE__ */ (0,
|
|
1516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_link.default, { href, ...linkProps, children: renderAvatar() });
|
|
1431
1517
|
}
|
|
1432
1518
|
return renderAvatar();
|
|
1433
1519
|
}
|
|
@@ -1447,13 +1533,13 @@ var avatarVariants = (0, import_cva7.cva)("ring ring-white ring-2", {
|
|
|
1447
1533
|
// src/components/ui/Icon.tsx
|
|
1448
1534
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
1449
1535
|
var import_cva8 = require("cva");
|
|
1450
|
-
var
|
|
1536
|
+
var import_react9 = require("react");
|
|
1451
1537
|
var import_tailwind_merge3 = require("tailwind-merge");
|
|
1452
|
-
var
|
|
1453
|
-
var Icon = (0,
|
|
1538
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1539
|
+
var Icon = (0, import_react9.forwardRef)(
|
|
1454
1540
|
({ variant, size, active = false, readonly = false, className, ...props }, ref) => {
|
|
1455
1541
|
const Component = readonly ? import_react_slot2.Slot : "button";
|
|
1456
|
-
return /* @__PURE__ */ (0,
|
|
1542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1457
1543
|
Component,
|
|
1458
1544
|
{
|
|
1459
1545
|
className: cn(
|
|
@@ -1523,7 +1609,7 @@ var iconVariants = (0, import_cva8.cva)(
|
|
|
1523
1609
|
|
|
1524
1610
|
// src/components/ui/LinkButton.tsx
|
|
1525
1611
|
var import_link2 = __toESM(require("next/link"), 1);
|
|
1526
|
-
var
|
|
1612
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1527
1613
|
var LinkButton = ({
|
|
1528
1614
|
disabled = false,
|
|
1529
1615
|
useAnchor = false,
|
|
@@ -1532,7 +1618,7 @@ var LinkButton = ({
|
|
|
1532
1618
|
...props
|
|
1533
1619
|
}) => {
|
|
1534
1620
|
const Component = useAnchor ? "a" : import_link2.default;
|
|
1535
|
-
return /* @__PURE__ */ (0,
|
|
1621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1536
1622
|
Component,
|
|
1537
1623
|
{
|
|
1538
1624
|
href,
|
|
@@ -1545,13 +1631,13 @@ var LinkButton = ({
|
|
|
1545
1631
|
};
|
|
1546
1632
|
|
|
1547
1633
|
// src/components/ui/ReadMore.tsx
|
|
1548
|
-
var
|
|
1634
|
+
var import_react10 = require("react");
|
|
1549
1635
|
var import_react_markdown = __toESM(require("react-markdown"), 1);
|
|
1550
|
-
var
|
|
1636
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1551
1637
|
function ReadMore({ text, ...props }) {
|
|
1552
|
-
const [isExpanded, setIsExpanded] = (0,
|
|
1553
|
-
const [maxWords, setMaxWords] = (0,
|
|
1554
|
-
(0,
|
|
1638
|
+
const [isExpanded, setIsExpanded] = (0, import_react10.useState)(false);
|
|
1639
|
+
const [maxWords, setMaxWords] = (0, import_react10.useState)(160);
|
|
1640
|
+
(0, import_react10.useEffect)(() => {
|
|
1555
1641
|
const updateMaxWords = () => {
|
|
1556
1642
|
const windowWidth = window.innerWidth;
|
|
1557
1643
|
if (windowWidth <= 768) {
|
|
@@ -1572,9 +1658,9 @@ function ReadMore({ text, ...props }) {
|
|
|
1572
1658
|
}
|
|
1573
1659
|
const toggleText = () => setIsExpanded(!isExpanded);
|
|
1574
1660
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
1575
|
-
return /* @__PURE__ */ (0,
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1577
|
-
/* @__PURE__ */ (0,
|
|
1661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ...props, children: [
|
|
1662
|
+
/* @__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 }) }),
|
|
1663
|
+
/* @__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
1664
|
"Read ",
|
|
1579
1665
|
isExpanded ? "less" : "more"
|
|
1580
1666
|
] }) })
|
|
@@ -1582,17 +1668,17 @@ function ReadMore({ text, ...props }) {
|
|
|
1582
1668
|
}
|
|
1583
1669
|
|
|
1584
1670
|
// src/components/company/CompanyBenefits.tsx
|
|
1585
|
-
var
|
|
1671
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1586
1672
|
function CompanyBenefits({ benefits }) {
|
|
1587
1673
|
if (!benefits) return null;
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1589
|
-
/* @__PURE__ */ (0,
|
|
1590
|
-
/* @__PURE__ */ (0,
|
|
1674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
1675
|
+
/* @__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" }),
|
|
1676
|
+
/* @__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
1677
|
] });
|
|
1592
1678
|
}
|
|
1593
1679
|
|
|
1594
1680
|
// src/components/company/CompanyInformation.tsx
|
|
1595
|
-
var
|
|
1681
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1596
1682
|
function CompanyInformation({
|
|
1597
1683
|
name,
|
|
1598
1684
|
how,
|
|
@@ -1600,8 +1686,8 @@ function CompanyInformation({
|
|
|
1600
1686
|
wow,
|
|
1601
1687
|
website
|
|
1602
1688
|
}) {
|
|
1603
|
-
return /* @__PURE__ */ (0,
|
|
1604
|
-
/* @__PURE__ */ (0,
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1690
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1605
1691
|
"h2",
|
|
1606
1692
|
{
|
|
1607
1693
|
"data-testid": "company-name",
|
|
@@ -1612,22 +1698,22 @@ function CompanyInformation({
|
|
|
1612
1698
|
]
|
|
1613
1699
|
}
|
|
1614
1700
|
),
|
|
1615
|
-
how && /* @__PURE__ */ (0,
|
|
1616
|
-
mission && /* @__PURE__ */ (0,
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1618
|
-
/* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1701
|
+
how && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
1702
|
+
mission && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex gap-2", children: [
|
|
1703
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: "\u{1F680}" }),
|
|
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: "Mission" }),
|
|
1620
1706
|
mission
|
|
1621
1707
|
] })
|
|
1622
1708
|
] }),
|
|
1623
|
-
wow && /* @__PURE__ */ (0,
|
|
1624
|
-
/* @__PURE__ */ (0,
|
|
1625
|
-
/* @__PURE__ */ (0,
|
|
1626
|
-
/* @__PURE__ */ (0,
|
|
1709
|
+
wow && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex gap-2", children: [
|
|
1710
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: "\u{1F31F}" }),
|
|
1711
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("p", { className: "text-base text-grey-80", children: [
|
|
1712
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
1627
1713
|
wow
|
|
1628
1714
|
] })
|
|
1629
1715
|
] }),
|
|
1630
|
-
website && /* @__PURE__ */ (0,
|
|
1716
|
+
website && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1631
1717
|
LinkButton,
|
|
1632
1718
|
{
|
|
1633
1719
|
"data-testid": "company-website-link",
|
|
@@ -1641,22 +1727,22 @@ function CompanyInformation({
|
|
|
1641
1727
|
}
|
|
1642
1728
|
|
|
1643
1729
|
// src/components/company/CompanyTake.tsx
|
|
1644
|
-
var
|
|
1730
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1645
1731
|
function CompanyTake({ content, avatarSrc }) {
|
|
1646
1732
|
if (!content) return null;
|
|
1647
|
-
return /* @__PURE__ */ (0,
|
|
1733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1648
1734
|
"div",
|
|
1649
1735
|
{
|
|
1650
1736
|
"data-testid": "company-take",
|
|
1651
1737
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
1652
1738
|
children: [
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
1657
|
-
/* @__PURE__ */ (0,
|
|
1658
|
-
/* @__PURE__ */ (0,
|
|
1659
|
-
/* @__PURE__ */ (0,
|
|
1739
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
1740
|
+
/* @__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 }) }),
|
|
1741
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
1742
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
1743
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
1744
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
1745
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
1660
1746
|
] })
|
|
1661
1747
|
] })
|
|
1662
1748
|
]
|
|
@@ -1665,54 +1751,51 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
1665
1751
|
}
|
|
1666
1752
|
|
|
1667
1753
|
// src/components/jobPost/JobDescription.tsx
|
|
1668
|
-
var
|
|
1754
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1669
1755
|
function JobDescription({ description }) {
|
|
1670
1756
|
if (!description) return null;
|
|
1671
|
-
return /* @__PURE__ */ (0,
|
|
1672
|
-
/* @__PURE__ */ (0,
|
|
1673
|
-
/* @__PURE__ */ (0,
|
|
1757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
|
|
1758
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
1759
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ReadMore, { text: description })
|
|
1674
1760
|
] });
|
|
1675
1761
|
}
|
|
1676
1762
|
|
|
1677
1763
|
// src/components/jobPost/JobHeader.tsx
|
|
1678
|
-
var
|
|
1764
|
+
var import_lucide_react15 = require("lucide-react");
|
|
1679
1765
|
var import_image = __toESM(require("next/image"), 1);
|
|
1680
1766
|
|
|
1681
1767
|
// src/components/buttons/BackButton.tsx
|
|
1682
|
-
var
|
|
1768
|
+
var import_lucide_react13 = require("lucide-react");
|
|
1683
1769
|
var import_navigation2 = require("next/navigation");
|
|
1684
1770
|
|
|
1685
1771
|
// src/hooks/useWindowHistory.ts
|
|
1686
|
-
var
|
|
1772
|
+
var import_react12 = require("react");
|
|
1687
1773
|
|
|
1688
1774
|
// src/contexts/WindowHistoryProvider.tsx
|
|
1689
1775
|
var import_navigation = require("next/navigation");
|
|
1690
|
-
var
|
|
1691
|
-
var
|
|
1692
|
-
var WindowHistoryContext = (0,
|
|
1776
|
+
var import_react11 = require("react");
|
|
1777
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1778
|
+
var WindowHistoryContext = (0, import_react11.createContext)({});
|
|
1693
1779
|
function WindowHistoryProvider({ children }) {
|
|
1694
|
-
const [history, setHistory] = (0,
|
|
1780
|
+
const [history, setHistory] = (0, import_react11.useState)([]);
|
|
1695
1781
|
const searchParams = (0, import_navigation.useSearchParams)();
|
|
1696
|
-
(0,
|
|
1782
|
+
(0, import_react11.useEffect)(() => {
|
|
1697
1783
|
setHistory(
|
|
1698
1784
|
(prev) => prev.at(-1) === window.location.href ? prev : [...prev, window.location.href]
|
|
1699
1785
|
);
|
|
1700
1786
|
}, [searchParams]);
|
|
1701
|
-
const contextValue = (0,
|
|
1702
|
-
return /* @__PURE__ */ (0,
|
|
1787
|
+
const contextValue = (0, import_react11.useMemo)(() => ({ history }), [history]);
|
|
1788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
1703
1789
|
}
|
|
1704
1790
|
|
|
1705
1791
|
// src/hooks/useWindowHistory.ts
|
|
1706
1792
|
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
|
-
}
|
|
1793
|
+
const windowHistoryContext = (0, import_react12.useContext)(WindowHistoryContext);
|
|
1711
1794
|
return windowHistoryContext;
|
|
1712
1795
|
}
|
|
1713
1796
|
|
|
1714
1797
|
// src/components/buttons/BackButton.tsx
|
|
1715
|
-
var
|
|
1798
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1716
1799
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
1717
1800
|
const { history } = useWindowHistory();
|
|
1718
1801
|
const router = (0, import_navigation2.useRouter)();
|
|
@@ -1721,7 +1804,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1721
1804
|
const previous = history[history.length - 2];
|
|
1722
1805
|
history.length > 1 && isAcceptedRoute(previous) ? router.back() : router.push(fallbackHref ?? "/");
|
|
1723
1806
|
};
|
|
1724
|
-
return /* @__PURE__ */ (0,
|
|
1807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1725
1808
|
Icon,
|
|
1726
1809
|
{
|
|
1727
1810
|
"aria-label": "back button",
|
|
@@ -1730,38 +1813,38 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1730
1813
|
onClick: goBack,
|
|
1731
1814
|
className,
|
|
1732
1815
|
...props,
|
|
1733
|
-
children: /* @__PURE__ */ (0,
|
|
1816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react13.X, {})
|
|
1734
1817
|
}
|
|
1735
1818
|
);
|
|
1736
1819
|
}
|
|
1737
1820
|
|
|
1738
1821
|
// src/lib/icons.ts
|
|
1739
|
-
var
|
|
1822
|
+
var import_lucide_react14 = require("lucide-react");
|
|
1740
1823
|
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":
|
|
1824
|
+
house: import_lucide_react14.Home,
|
|
1825
|
+
layers: import_lucide_react14.Layers,
|
|
1826
|
+
users: import_lucide_react14.Users,
|
|
1827
|
+
settings: import_lucide_react14.Settings,
|
|
1828
|
+
building: import_lucide_react14.Building,
|
|
1829
|
+
bell: import_lucide_react14.Bell,
|
|
1830
|
+
wallet: import_lucide_react14.Wallet,
|
|
1831
|
+
contact: import_lucide_react14.Contact,
|
|
1832
|
+
banknote: import_lucide_react14.Banknote,
|
|
1833
|
+
"message-square-dot": import_lucide_react14.MessageSquareDot,
|
|
1834
|
+
"life-buoy": import_lucide_react14.LifeBuoy,
|
|
1835
|
+
"building-2": import_lucide_react14.Building2,
|
|
1836
|
+
"gallery-vertical-end": import_lucide_react14.GalleryVerticalEnd,
|
|
1837
|
+
"square-kanban": import_lucide_react14.SquareKanban,
|
|
1838
|
+
"briefcase-business": import_lucide_react14.BriefcaseBusiness,
|
|
1839
|
+
"circle-user": import_lucide_react14.CircleUser,
|
|
1840
|
+
"key-round": import_lucide_react14.KeyRound,
|
|
1841
|
+
"clock-2": import_lucide_react14.Clock2,
|
|
1842
|
+
"circle-user-round": import_lucide_react14.CircleUserRound,
|
|
1843
|
+
"map-pin": import_lucide_react14.MapPin
|
|
1761
1844
|
};
|
|
1762
1845
|
|
|
1763
1846
|
// src/components/jobPost/JobHeader.tsx
|
|
1764
|
-
var
|
|
1847
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1765
1848
|
function JobHeader({
|
|
1766
1849
|
title,
|
|
1767
1850
|
subtitles,
|
|
@@ -1777,9 +1860,9 @@ function JobHeader({
|
|
|
1777
1860
|
}) {
|
|
1778
1861
|
const renderIcon = (icon) => {
|
|
1779
1862
|
const Icon2 = iconMap[icon];
|
|
1780
|
-
return /* @__PURE__ */ (0,
|
|
1863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { size: 18 });
|
|
1781
1864
|
};
|
|
1782
|
-
return /* @__PURE__ */ (0,
|
|
1865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1783
1866
|
"div",
|
|
1784
1867
|
{
|
|
1785
1868
|
"data-testid": "job-header-root",
|
|
@@ -1788,8 +1871,8 @@ function JobHeader({
|
|
|
1788
1871
|
!standalone && "rounded-3xl"
|
|
1789
1872
|
),
|
|
1790
1873
|
children: [
|
|
1791
|
-
!standalone && /* @__PURE__ */ (0,
|
|
1792
|
-
/* @__PURE__ */ (0,
|
|
1874
|
+
!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: [
|
|
1875
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1793
1876
|
import_image.default,
|
|
1794
1877
|
{
|
|
1795
1878
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -1798,7 +1881,7 @@ function JobHeader({
|
|
|
1798
1881
|
fill: true
|
|
1799
1882
|
}
|
|
1800
1883
|
),
|
|
1801
|
-
/* @__PURE__ */ (0,
|
|
1884
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1802
1885
|
BackButton,
|
|
1803
1886
|
{
|
|
1804
1887
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -1807,12 +1890,12 @@ function JobHeader({
|
|
|
1807
1890
|
"data-testid": "job-header-back-button"
|
|
1808
1891
|
}
|
|
1809
1892
|
),
|
|
1810
|
-
/* @__PURE__ */ (0,
|
|
1893
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1811
1894
|
"div",
|
|
1812
1895
|
{
|
|
1813
1896
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
1814
1897
|
"data-testid": "job-header-avatar",
|
|
1815
|
-
children: /* @__PURE__ */ (0,
|
|
1898
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1816
1899
|
Avatar,
|
|
1817
1900
|
{
|
|
1818
1901
|
size: "large",
|
|
@@ -1826,9 +1909,9 @@ function JobHeader({
|
|
|
1826
1909
|
}
|
|
1827
1910
|
)
|
|
1828
1911
|
] }),
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1830
|
-
/* @__PURE__ */ (0,
|
|
1831
|
-
standalone && /* @__PURE__ */ (0,
|
|
1912
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
|
|
1914
|
+
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
1915
|
Avatar,
|
|
1833
1916
|
{
|
|
1834
1917
|
size: "large",
|
|
@@ -1839,26 +1922,26 @@ function JobHeader({
|
|
|
1839
1922
|
rel: "noopener noreferrer"
|
|
1840
1923
|
}
|
|
1841
1924
|
) }),
|
|
1842
|
-
/* @__PURE__ */ (0,
|
|
1925
|
+
/* @__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
1926
|
"div",
|
|
1844
1927
|
{
|
|
1845
1928
|
"data-testid": `job-header-subtitle-${i}`,
|
|
1846
1929
|
className: "flex items-center",
|
|
1847
1930
|
children: [
|
|
1848
1931
|
subtitle,
|
|
1849
|
-
i < subtitles.length - 1 && /* @__PURE__ */ (0,
|
|
1932
|
+
i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react15.Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
1850
1933
|
]
|
|
1851
1934
|
},
|
|
1852
1935
|
subtitle
|
|
1853
1936
|
)) })
|
|
1854
1937
|
] }),
|
|
1855
|
-
/* @__PURE__ */ (0,
|
|
1938
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1856
1939
|
"div",
|
|
1857
1940
|
{
|
|
1858
1941
|
"data-testid": "job-header-content",
|
|
1859
1942
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
1860
1943
|
children: [
|
|
1861
|
-
/* @__PURE__ */ (0,
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1862
1945
|
"h2",
|
|
1863
1946
|
{
|
|
1864
1947
|
"data-testid": "job-header-title",
|
|
@@ -1866,7 +1949,7 @@ function JobHeader({
|
|
|
1866
1949
|
children: title
|
|
1867
1950
|
}
|
|
1868
1951
|
),
|
|
1869
|
-
!!actions && /* @__PURE__ */ (0,
|
|
1952
|
+
!!actions && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1870
1953
|
"div",
|
|
1871
1954
|
{
|
|
1872
1955
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -1877,12 +1960,12 @@ function JobHeader({
|
|
|
1877
1960
|
]
|
|
1878
1961
|
}
|
|
1879
1962
|
),
|
|
1880
|
-
/* @__PURE__ */ (0,
|
|
1963
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1881
1964
|
"div",
|
|
1882
1965
|
{
|
|
1883
1966
|
"data-testid": "job-header-tags",
|
|
1884
1967
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
1885
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0,
|
|
1968
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1886
1969
|
Chip_default,
|
|
1887
1970
|
{
|
|
1888
1971
|
size: "small",
|
|
@@ -1891,7 +1974,7 @@ function JobHeader({
|
|
|
1891
1974
|
"data-testid": `job-header-tag-${name}`,
|
|
1892
1975
|
children: [
|
|
1893
1976
|
renderIcon(icon),
|
|
1894
|
-
/* @__PURE__ */ (0,
|
|
1977
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: label })
|
|
1895
1978
|
]
|
|
1896
1979
|
},
|
|
1897
1980
|
name
|
|
@@ -2004,7 +2087,7 @@ function salaryRange(salary) {
|
|
|
2004
2087
|
}
|
|
2005
2088
|
|
|
2006
2089
|
// src/hooks/useDisplayText.ts
|
|
2007
|
-
var
|
|
2090
|
+
var import_react13 = require("react");
|
|
2008
2091
|
|
|
2009
2092
|
// src/lib/mappings.ts
|
|
2010
2093
|
var employmentTypeDisplayText = {
|
|
@@ -2448,9 +2531,9 @@ var DisplayTextService = class {
|
|
|
2448
2531
|
|
|
2449
2532
|
// src/hooks/useDisplayText.ts
|
|
2450
2533
|
var useDisplayText = (scope, value) => {
|
|
2451
|
-
const [displayText, setDisplayText] = (0,
|
|
2452
|
-
const displayService = (0,
|
|
2453
|
-
(0,
|
|
2534
|
+
const [displayText, setDisplayText] = (0, import_react13.useState)("");
|
|
2535
|
+
const displayService = (0, import_react13.useMemo)(() => new DisplayTextService(), []);
|
|
2536
|
+
(0, import_react13.useEffect)(() => {
|
|
2454
2537
|
if (!displayService || !value) {
|
|
2455
2538
|
setDisplayText("");
|
|
2456
2539
|
return;
|
|
@@ -2493,7 +2576,7 @@ function formattedJobLocation(job) {
|
|
|
2493
2576
|
}
|
|
2494
2577
|
|
|
2495
2578
|
// src/components/jobPost/JobPost.tsx
|
|
2496
|
-
var
|
|
2579
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2497
2580
|
function JobPost({
|
|
2498
2581
|
job,
|
|
2499
2582
|
bannerSrc,
|
|
@@ -2537,7 +2620,7 @@ function JobPost({
|
|
|
2537
2620
|
label: formattedLocation
|
|
2538
2621
|
}
|
|
2539
2622
|
].filter((t) => !!t);
|
|
2540
|
-
return /* @__PURE__ */ (0,
|
|
2623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2541
2624
|
"div",
|
|
2542
2625
|
{
|
|
2543
2626
|
className: cn(
|
|
@@ -2545,7 +2628,7 @@ function JobPost({
|
|
|
2545
2628
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
2546
2629
|
),
|
|
2547
2630
|
children: [
|
|
2548
|
-
/* @__PURE__ */ (0,
|
|
2631
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2549
2632
|
JobHeader,
|
|
2550
2633
|
{
|
|
2551
2634
|
title: job.title,
|
|
@@ -2559,16 +2642,16 @@ function JobPost({
|
|
|
2559
2642
|
tags
|
|
2560
2643
|
}
|
|
2561
2644
|
),
|
|
2562
|
-
/* @__PURE__ */ (0,
|
|
2563
|
-
/* @__PURE__ */ (0,
|
|
2564
|
-
/* @__PURE__ */ (0,
|
|
2645
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
2646
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(JobDescription, { description: job.description }),
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2565
2648
|
CompanyTake,
|
|
2566
2649
|
{
|
|
2567
2650
|
avatarSrc,
|
|
2568
2651
|
content: job.hiringOrganization?.companyNdg?.companyNdgTake
|
|
2569
2652
|
}
|
|
2570
2653
|
),
|
|
2571
|
-
/* @__PURE__ */ (0,
|
|
2654
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2572
2655
|
CompanyInformation,
|
|
2573
2656
|
{
|
|
2574
2657
|
name: job.hiringOrganization?.companyName ?? "",
|
|
@@ -2578,7 +2661,7 @@ function JobPost({
|
|
|
2578
2661
|
website: job.hiringOrganization?.companyWebsite
|
|
2579
2662
|
}
|
|
2580
2663
|
),
|
|
2581
|
-
/* @__PURE__ */ (0,
|
|
2664
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2582
2665
|
CompanyBenefits,
|
|
2583
2666
|
{
|
|
2584
2667
|
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
@@ -2818,6 +2901,7 @@ var jobPostSchema = import_zod3.z.object({
|
|
|
2818
2901
|
Counter,
|
|
2819
2902
|
Icon,
|
|
2820
2903
|
Input,
|
|
2904
|
+
InputOtp,
|
|
2821
2905
|
JobDescription,
|
|
2822
2906
|
JobHeader,
|
|
2823
2907
|
JobPost,
|