@flamingo-stack/openframe-frontend-core 0.0.617 → 0.0.618
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/{chunk-CGCV4QT2.js → chunk-2DTZXXY3.js} +5 -5
- package/dist/{chunk-BJDQZH62.cjs → chunk-3FTNQDLP.cjs} +5 -5
- package/dist/{chunk-BJDQZH62.cjs.map → chunk-3FTNQDLP.cjs.map} +1 -1
- package/dist/{chunk-VJJ7LGOI.js → chunk-5P74E24M.js} +5 -5
- package/dist/{chunk-BLUL2TE3.js → chunk-6XJS3WU7.js} +2 -2
- package/dist/{chunk-QPAPUIF3.cjs → chunk-7ZEQMFP3.cjs} +30 -30
- package/dist/{chunk-QPAPUIF3.cjs.map → chunk-7ZEQMFP3.cjs.map} +1 -1
- package/dist/{chunk-UVK7AQAG.js → chunk-ANMD7SM4.js} +3 -3
- package/dist/{chunk-332JHI2D.cjs → chunk-BGDYSUA2.cjs} +11 -11
- package/dist/{chunk-332JHI2D.cjs.map → chunk-BGDYSUA2.cjs.map} +1 -1
- package/dist/{chunk-USP3UWID.cjs → chunk-BXNSKTEG.cjs} +57 -57
- package/dist/{chunk-USP3UWID.cjs.map → chunk-BXNSKTEG.cjs.map} +1 -1
- package/dist/{chunk-67XFJ442.cjs → chunk-CM6DNLK7.cjs} +521 -449
- package/dist/chunk-CM6DNLK7.cjs.map +1 -0
- package/dist/{chunk-7YHUP5BR.js → chunk-CWMKY2UJ.js} +3 -3
- package/dist/{chunk-UQEOAPAI.cjs → chunk-E2EGTHYA.cjs} +28 -12
- package/dist/chunk-E2EGTHYA.cjs.map +1 -0
- package/dist/{chunk-JZELYIFZ.cjs → chunk-E7VXPU3R.cjs} +33 -33
- package/dist/{chunk-JZELYIFZ.cjs.map → chunk-E7VXPU3R.cjs.map} +1 -1
- package/dist/{chunk-ULM5FCFN.cjs → chunk-EJGZIYC7.cjs} +6 -6
- package/dist/{chunk-ULM5FCFN.cjs.map → chunk-EJGZIYC7.cjs.map} +1 -1
- package/dist/{chunk-LFLJ3IHE.cjs → chunk-EXEXX34Q.cjs} +28 -28
- package/dist/{chunk-LFLJ3IHE.cjs.map → chunk-EXEXX34Q.cjs.map} +1 -1
- package/dist/{chunk-FP5WYJ3S.js → chunk-FCN2HN6Q.js} +2 -2
- package/dist/{chunk-2OJVGAGX.cjs → chunk-G7NEMLNW.cjs} +10 -10
- package/dist/{chunk-2OJVGAGX.cjs.map → chunk-G7NEMLNW.cjs.map} +1 -1
- package/dist/{chunk-GH4F4ODL.js → chunk-GD7CV2JI.js} +6 -6
- package/dist/{chunk-WFM5OAM6.js → chunk-GFWKEWEH.js} +4 -4
- package/dist/{chunk-RU3IKVY2.js → chunk-GXUGYZ6H.js} +27 -11
- package/dist/chunk-GXUGYZ6H.js.map +1 -0
- package/dist/{chunk-ZQOK4TCN.cjs → chunk-IDMEC4ZK.cjs} +22 -22
- package/dist/{chunk-ZQOK4TCN.cjs.map → chunk-IDMEC4ZK.cjs.map} +1 -1
- package/dist/{chunk-UVXMIZYK.js → chunk-IPHA3AQ6.js} +7 -7
- package/dist/{chunk-45OAW4M2.js → chunk-J25M43YI.js} +6 -6
- package/dist/{chunk-V23BJC2Q.cjs → chunk-K26VN65M.cjs} +15 -15
- package/dist/{chunk-V23BJC2Q.cjs.map → chunk-K26VN65M.cjs.map} +1 -1
- package/dist/{chunk-7FFKXXWY.cjs → chunk-MOC7JLEP.cjs} +80 -80
- package/dist/{chunk-7FFKXXWY.cjs.map → chunk-MOC7JLEP.cjs.map} +1 -1
- package/dist/{chunk-ZJYZOOTU.js → chunk-NUU5ZEEG.js} +4 -4
- package/dist/{chunk-VNNIRX23.cjs → chunk-PIJK3FV6.cjs} +3 -3
- package/dist/{chunk-VNNIRX23.cjs.map → chunk-PIJK3FV6.cjs.map} +1 -1
- package/dist/{chunk-HR6CHKD6.cjs → chunk-RDEFB354.cjs} +6 -6
- package/dist/{chunk-HR6CHKD6.cjs.map → chunk-RDEFB354.cjs.map} +1 -1
- package/dist/{chunk-7GLJC4EO.cjs → chunk-ROQTWRV7.cjs} +145 -145
- package/dist/{chunk-7GLJC4EO.cjs.map → chunk-ROQTWRV7.cjs.map} +1 -1
- package/dist/{chunk-6RMFEGJ4.js → chunk-RROIA6WY.js} +2 -2
- package/dist/{chunk-FMNS5NN2.cjs → chunk-U6B3MM4U.cjs} +20 -20
- package/dist/{chunk-FMNS5NN2.cjs.map → chunk-U6B3MM4U.cjs.map} +1 -1
- package/dist/{chunk-TRY3CUWJ.cjs → chunk-UKFBPJBK.cjs} +29 -29
- package/dist/{chunk-TRY3CUWJ.cjs.map → chunk-UKFBPJBK.cjs.map} +1 -1
- package/dist/{chunk-5KKLN7Q2.js → chunk-UUXLDIK3.js} +3 -3
- package/dist/{chunk-HGPGF6SF.js → chunk-VRN5YYD3.js} +3 -3
- package/dist/{chunk-CXEGV3ZS.js → chunk-WVRXDGGP.js} +3 -3
- package/dist/{chunk-RZURBPBS.js → chunk-XUNFDRMP.js} +3 -3
- package/dist/{chunk-VHS3OYE4.js → chunk-YCZBCEQO.js} +2531 -2459
- package/dist/chunk-YCZBCEQO.js.map +1 -0
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +57 -53
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +19 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +5 -5
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/avatar-stack.d.ts +16 -3
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +8 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +7 -3
- package/dist/components/ui/people-cell.d.ts +46 -0
- package/dist/components/ui/people-cell.d.ts.map +1 -0
- package/dist/index.cjs +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/utils/format.d.ts +8 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +5 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/context-panel.tsx +1 -1
- package/src/components/meeting-scheduler/directory.tsx +1 -1
- package/src/components/ui/__tests__/people-cell.test.tsx +97 -0
- package/src/components/ui/avatar-stack.tsx +40 -13
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/people-cell.tsx +133 -0
- package/src/components/ui/table/__tests__/header-hint.test.tsx +2 -2
- package/src/utils/format.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-67XFJ442.cjs.map +0 -1
- package/dist/chunk-RU3IKVY2.js.map +0 -1
- package/dist/chunk-UQEOAPAI.cjs.map +0 -1
- package/dist/chunk-VHS3OYE4.js.map +0 -1
- /package/dist/{chunk-CGCV4QT2.js.map → chunk-2DTZXXY3.js.map} +0 -0
- /package/dist/{chunk-VJJ7LGOI.js.map → chunk-5P74E24M.js.map} +0 -0
- /package/dist/{chunk-BLUL2TE3.js.map → chunk-6XJS3WU7.js.map} +0 -0
- /package/dist/{chunk-UVK7AQAG.js.map → chunk-ANMD7SM4.js.map} +0 -0
- /package/dist/{chunk-7YHUP5BR.js.map → chunk-CWMKY2UJ.js.map} +0 -0
- /package/dist/{chunk-FP5WYJ3S.js.map → chunk-FCN2HN6Q.js.map} +0 -0
- /package/dist/{chunk-GH4F4ODL.js.map → chunk-GD7CV2JI.js.map} +0 -0
- /package/dist/{chunk-WFM5OAM6.js.map → chunk-GFWKEWEH.js.map} +0 -0
- /package/dist/{chunk-UVXMIZYK.js.map → chunk-IPHA3AQ6.js.map} +0 -0
- /package/dist/{chunk-45OAW4M2.js.map → chunk-J25M43YI.js.map} +0 -0
- /package/dist/{chunk-ZJYZOOTU.js.map → chunk-NUU5ZEEG.js.map} +0 -0
- /package/dist/{chunk-6RMFEGJ4.js.map → chunk-RROIA6WY.js.map} +0 -0
- /package/dist/{chunk-5KKLN7Q2.js.map → chunk-UUXLDIK3.js.map} +0 -0
- /package/dist/{chunk-HGPGF6SF.js.map → chunk-VRN5YYD3.js.map} +0 -0
- /package/dist/{chunk-CXEGV3ZS.js.map → chunk-WVRXDGGP.js.map} +0 -0
- /package/dist/{chunk-RZURBPBS.js.map → chunk-XUNFDRMP.js.map} +0 -0
|
@@ -91,7 +91,7 @@ var _chunkN6HNK25Acjs = require('./chunk-N6HNK25A.cjs');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkROQTWRV7cjs = require('./chunk-ROQTWRV7.cjs');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
@@ -229,7 +229,9 @@ var _chunkXQFFGR6Ucjs = require('./chunk-XQFFGR6U.cjs');
|
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
var _chunkE2EGTHYAcjs = require('./chunk-E2EGTHYA.cjs');
|
|
233
235
|
|
|
234
236
|
|
|
235
237
|
var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
|
|
@@ -344,7 +346,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
344
346
|
var useTheme = _nextthemes.useTheme;
|
|
345
347
|
function useThemeToggle() {
|
|
346
348
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
347
|
-
const mounted =
|
|
349
|
+
const mounted = _chunkROQTWRV7cjs.useIsHydrated.call(void 0, );
|
|
348
350
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
349
351
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
350
352
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -621,7 +623,7 @@ function TruncateText({
|
|
|
621
623
|
const { ref, isTruncated } = _chunkYXWGSDK4cjs.useIsTruncated.call(void 0, children, { multiline: isMultiLine });
|
|
622
624
|
const clampClass = isMultiLine ? LINE_CLAMP_CLASS[lines] : "truncate block";
|
|
623
625
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
626
|
+
_chunkROQTWRV7cjs.FloatingTooltip,
|
|
625
627
|
{
|
|
626
628
|
content: _nullishCoalesce(tooltip, () => ( children)),
|
|
627
629
|
side,
|
|
@@ -928,7 +930,7 @@ function AutocompleteInner(props, ref) {
|
|
|
928
930
|
),
|
|
929
931
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2", children: [
|
|
930
932
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
931
|
-
|
|
933
|
+
_chunkROQTWRV7cjs.Tag,
|
|
932
934
|
{
|
|
933
935
|
variant: "outline",
|
|
934
936
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -1142,7 +1144,7 @@ function AutocompleteInner(props, ref) {
|
|
|
1142
1144
|
"aria-hidden": "true",
|
|
1143
1145
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
1144
1146
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1145
|
-
|
|
1147
|
+
_chunkROQTWRV7cjs.Tag,
|
|
1146
1148
|
{
|
|
1147
1149
|
variant: "outline",
|
|
1148
1150
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -2532,7 +2534,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
2532
2534
|
const describedById = _react.useId.call(void 0, );
|
|
2533
2535
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk23V5BSHDcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
2534
2536
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2535
|
-
|
|
2537
|
+
_chunkROQTWRV7cjs.FloatingTooltip,
|
|
2536
2538
|
{
|
|
2537
2539
|
content: children,
|
|
2538
2540
|
side,
|
|
@@ -2626,7 +2628,7 @@ function Value2({ value, depth }) {
|
|
|
2626
2628
|
}
|
|
2627
2629
|
if (typeof value === "string") {
|
|
2628
2630
|
if (ISO_DATE.test(value)) {
|
|
2629
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2631
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkROQTWRV7cjs.formatRelativeTime.call(void 0, value) });
|
|
2630
2632
|
}
|
|
2631
2633
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2632
2634
|
}
|
|
@@ -3021,7 +3023,7 @@ function CompactAssigneeDropdown({
|
|
|
3021
3023
|
value: o.value,
|
|
3022
3024
|
label: o.label,
|
|
3023
3025
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3024
|
-
|
|
3026
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
3025
3027
|
{
|
|
3026
3028
|
src: o.imageUrl,
|
|
3027
3029
|
alt: o.label,
|
|
@@ -3056,7 +3058,7 @@ function CompactAssigneeDropdown({
|
|
|
3056
3058
|
className
|
|
3057
3059
|
),
|
|
3058
3060
|
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3059
|
-
|
|
3061
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
3060
3062
|
{
|
|
3061
3063
|
src: currentAssignee.avatarSrc,
|
|
3062
3064
|
alt: currentAssignee.name,
|
|
@@ -3104,7 +3106,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
3104
3106
|
const opt = option;
|
|
3105
3107
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
3106
3108
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3107
|
-
|
|
3109
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
3108
3110
|
{
|
|
3109
3111
|
src: opt.imageUrl,
|
|
3110
3112
|
alt: opt.label,
|
|
@@ -3139,7 +3141,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
3139
3141
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
3140
3142
|
}
|
|
3141
3143
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3142
|
-
|
|
3144
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
3143
3145
|
{
|
|
3144
3146
|
src: currentAssignee.avatarSrc,
|
|
3145
3147
|
alt: currentAssignee.name,
|
|
@@ -3164,7 +3166,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
3164
3166
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
3165
3167
|
}
|
|
3166
3168
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3167
|
-
|
|
3169
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
3168
3170
|
{
|
|
3169
3171
|
src: currentAssignee.avatarSrc,
|
|
3170
3172
|
alt: currentAssignee.name,
|
|
@@ -3238,7 +3240,7 @@ function TextValue({ value }) {
|
|
|
3238
3240
|
}
|
|
3239
3241
|
) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, title: text, className: interactiveClass, children: text }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: text, children: text }),
|
|
3240
3242
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3241
|
-
|
|
3243
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
3242
3244
|
{
|
|
3243
3245
|
src: imageSrc,
|
|
3244
3246
|
alt: text,
|
|
@@ -3258,7 +3260,7 @@ function RowValue({ value }) {
|
|
|
3258
3260
|
}
|
|
3259
3261
|
case "status": {
|
|
3260
3262
|
const { type: _type, ...props } = value;
|
|
3261
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3263
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TicketStatusTag, { ...props });
|
|
3262
3264
|
}
|
|
3263
3265
|
case "custom":
|
|
3264
3266
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: value.content });
|
|
@@ -4169,7 +4171,7 @@ function TagsManager({
|
|
|
4169
4171
|
}
|
|
4170
4172
|
),
|
|
4171
4173
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4172
|
-
|
|
4174
|
+
_chunkROQTWRV7cjs.Tag,
|
|
4173
4175
|
{
|
|
4174
4176
|
label: tag.name,
|
|
4175
4177
|
variant: "outline",
|
|
@@ -4714,10 +4716,10 @@ function useConfirm() {
|
|
|
4714
4716
|
},
|
|
4715
4717
|
[]
|
|
4716
4718
|
);
|
|
4717
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4719
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4720
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4719
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4720
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTitle, { children: pending.title }) }),
|
|
4721
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4722
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.ModalFooter, { children: [
|
|
4721
4723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4722
4724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4723
4725
|
] })
|
|
@@ -4780,9 +4782,9 @@ function AdminFormModal({
|
|
|
4780
4782
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4781
4783
|
});
|
|
4782
4784
|
if (!isOpen) return null;
|
|
4783
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4784
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4785
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4785
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4786
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.ModalHeader, { children: [
|
|
4787
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTitle, { children: title }),
|
|
4786
4788
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4787
4789
|
] }),
|
|
4788
4790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -4807,7 +4809,7 @@ function AdminFormModal({
|
|
|
4807
4809
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4808
4810
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4809
4811
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4810
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalContent, { children: loadingContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-busy": "true", children: loadingContent }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4811
4813
|
"div",
|
|
4812
4814
|
{
|
|
4813
4815
|
"aria-busy": "true",
|
|
@@ -4828,12 +4830,12 @@ function AdminFormModal({
|
|
|
4828
4830
|
]
|
|
4829
4831
|
}
|
|
4830
4832
|
) })
|
|
4831
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4833
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalContent, { className: contentClassName, children }),
|
|
4832
4834
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4833
4835
|
]
|
|
4834
4836
|
}
|
|
4835
4837
|
),
|
|
4836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4838
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4837
4839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4838
4840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4839
4841
|
footerStatus,
|
|
@@ -6936,7 +6938,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
6936
6938
|
};
|
|
6937
6939
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
6938
6940
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6939
|
-
|
|
6941
|
+
_chunkROQTWRV7cjs.Video,
|
|
6940
6942
|
{
|
|
6941
6943
|
url: item.src,
|
|
6942
6944
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7368,7 +7370,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7368
7370
|
width: m.width,
|
|
7369
7371
|
height: m.height
|
|
7370
7372
|
}));
|
|
7371
|
-
const formatNumber2 =
|
|
7373
|
+
const formatNumber2 = _chunkE2EGTHYAcjs.formatLargeNumber;
|
|
7372
7374
|
const truncateText = (text, maxLength = 600) => {
|
|
7373
7375
|
if (text.length <= maxLength) return text;
|
|
7374
7376
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7660,7 +7662,7 @@ function buildRichEmbedOverrides({
|
|
|
7660
7662
|
ogEndpointPath,
|
|
7661
7663
|
textSizes
|
|
7662
7664
|
}) {
|
|
7663
|
-
const standard =
|
|
7665
|
+
const standard = _chunkROQTWRV7cjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7664
7666
|
return {
|
|
7665
7667
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7666
7668
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7670,7 +7672,7 @@ function buildRichEmbedOverrides({
|
|
|
7670
7672
|
const language = match ? match[1] : "";
|
|
7671
7673
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7672
7674
|
if (language === "youtube-embed") {
|
|
7673
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7675
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "youtube", url: fenceText() });
|
|
7674
7676
|
}
|
|
7675
7677
|
if (language === "reddit-embed") {
|
|
7676
7678
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7711,7 +7713,7 @@ function buildRichEmbedOverrides({
|
|
|
7711
7713
|
"data-figma-url": figmaUrl
|
|
7712
7714
|
} = divProps;
|
|
7713
7715
|
if (className === "youtube-embed" && videoId) {
|
|
7714
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7716
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "youtube", url: videoId });
|
|
7715
7717
|
}
|
|
7716
7718
|
if (className === "reddit-embed" && postUrl) {
|
|
7717
7719
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7796,14 +7798,14 @@ function buildRichEmbedOverrides({
|
|
|
7796
7798
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7797
7799
|
// elsewhere). Guard against empty `![]()`.
|
|
7798
7800
|
img: ({ src, alt }) => {
|
|
7799
|
-
if (!
|
|
7801
|
+
if (!_chunkROQTWRV7cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7800
7802
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7801
7803
|
},
|
|
7802
7804
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7803
7805
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7804
7806
|
video: ({ src, poster, className }) => {
|
|
7805
|
-
if (!
|
|
7806
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7807
|
+
if (!_chunkROQTWRV7cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7808
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7807
7809
|
}
|
|
7808
7810
|
};
|
|
7809
7811
|
}
|
|
@@ -8044,13 +8046,13 @@ var RichMarkdownInner = ({
|
|
|
8044
8046
|
},
|
|
8045
8047
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8046
8048
|
);
|
|
8047
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8049
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkROQTWRV7cjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8048
8050
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8049
8051
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8050
8052
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8051
8053
|
);
|
|
8052
8054
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8053
|
-
|
|
8055
|
+
_chunkROQTWRV7cjs.MarkdownEngine,
|
|
8054
8056
|
{
|
|
8055
8057
|
content,
|
|
8056
8058
|
className,
|
|
@@ -8072,7 +8074,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8072
8074
|
className = "",
|
|
8073
8075
|
sectionIds,
|
|
8074
8076
|
onInternalLinkClick,
|
|
8075
|
-
brokenLinks =
|
|
8077
|
+
brokenLinks = _chunkROQTWRV7cjs.NO_BROKEN_LINKS,
|
|
8076
8078
|
currentPath,
|
|
8077
8079
|
resolveSource = "openframe-docs",
|
|
8078
8080
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8645,7 +8647,7 @@ function FilterModal({
|
|
|
8645
8647
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _165 => _165.defaultSort]), () => ( "desc"));
|
|
8646
8648
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _166 => _166.sort]), () => ( dateDefaultSort)));
|
|
8647
8649
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _167 => _167.range]));
|
|
8648
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8650
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkROQTWRV7cjs.useScrollFade.call(void 0, );
|
|
8649
8651
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
8650
8652
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
8651
8653
|
_react.useEffect.call(void 0, () => {
|
|
@@ -8690,10 +8692,10 @@ function FilterModal({
|
|
|
8690
8692
|
const hasFilterGroups = filterGroups.length > 0;
|
|
8691
8693
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
8692
8694
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
8693
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8694
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8695
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Modal, { isOpen, onClose, className: _chunk23V5BSHDcjs.cn.call(void 0, "max-h-[90vh] max-w-none", className), children: [
|
|
8696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTitle, { children: title }) }),
|
|
8695
8697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8696
|
-
|
|
8698
|
+
_chunkROQTWRV7cjs.ModalContent,
|
|
8697
8699
|
{
|
|
8698
8700
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
8699
8701
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -8785,12 +8787,12 @@ function FilterModal({
|
|
|
8785
8787
|
] })
|
|
8786
8788
|
}
|
|
8787
8789
|
),
|
|
8788
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8789
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
8791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
8790
8792
|
] })
|
|
8791
8793
|
}
|
|
8792
8794
|
),
|
|
8793
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8795
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.ModalFooter, { children: [
|
|
8794
8796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
8795
8797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
8796
8798
|
] })
|
|
@@ -8834,9 +8836,9 @@ function actionToMenuItems(action, idx) {
|
|
|
8834
8836
|
function renderActionButton(action, opts = {}) {
|
|
8835
8837
|
const button = renderRawActionButton(action, opts);
|
|
8836
8838
|
if (!action.tooltip) return button;
|
|
8837
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8838
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8839
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Tooltip, { children: [
|
|
8840
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipTrigger, { asChild: true, children: button }),
|
|
8841
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipContent, { children: action.tooltip })
|
|
8840
8842
|
] }) });
|
|
8841
8843
|
}
|
|
8842
8844
|
function renderRawActionButton(action, opts = {}) {
|
|
@@ -8860,7 +8862,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
8860
8862
|
}
|
|
8861
8863
|
if (action.submenu && action.submenu.length > 0) {
|
|
8862
8864
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8863
|
-
|
|
8865
|
+
_chunkROQTWRV7cjs.ActionsMenuDropdown,
|
|
8864
8866
|
{
|
|
8865
8867
|
groups: [{ items: action.submenu }],
|
|
8866
8868
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8995,10 +8997,10 @@ function IconButtonsVariant({
|
|
|
8995
8997
|
selector,
|
|
8996
8998
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionSkeletons, { actions: desktopActions }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8997
8999
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action) }, actionKey(action, idx))),
|
|
8998
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9000
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ActionsMenuDropdown, { groups: menuActions })
|
|
8999
9001
|
] })
|
|
9000
9002
|
] }),
|
|
9001
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex md:hidden", className), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MobileTriggerSkeleton, {}) : useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9003
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex md:hidden", className), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MobileTriggerSkeleton, {}) : useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ActionsMenuDropdown, { groups: mobileMenuGroups }) : null })
|
|
9002
9004
|
] });
|
|
9003
9005
|
}
|
|
9004
9006
|
function PrimaryButtonsVariant({
|
|
@@ -9036,7 +9038,7 @@ function MenuPrimaryVariant({
|
|
|
9036
9038
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "hidden items-center md:flex", ACTIONS_GAP, className), children: [
|
|
9037
9039
|
selector,
|
|
9038
9040
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionSkeletons, { actions: desktopActions }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9039
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9041
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ActionsMenuDropdown, { groups: menuActions }),
|
|
9040
9042
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton({ ...action, variant: action.variant || "accent" }) }, `desktop-${actionKey(action, idx)}`))
|
|
9041
9043
|
] })
|
|
9042
9044
|
] }),
|
|
@@ -9044,7 +9046,7 @@ function MenuPrimaryVariant({
|
|
|
9044
9046
|
// The selector rides into the menu as its header row: on mobile the
|
|
9045
9047
|
// title row has no room for it, and hiding it entirely (what
|
|
9046
9048
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
9047
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9049
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector })
|
|
9048
9050
|
) : null })
|
|
9049
9051
|
] });
|
|
9050
9052
|
}
|
|
@@ -9339,7 +9341,7 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
9339
9341
|
const [failedSrc, setFailedSrc] = _react2.default.useState(null);
|
|
9340
9342
|
const imageFailed = resolvedSrc !== void 0 && failedSrc === resolvedSrc;
|
|
9341
9343
|
const showFallback = imageFailed || !resolvedSrc;
|
|
9342
|
-
const initials =
|
|
9344
|
+
const initials = _chunkE2EGTHYAcjs.personInitials.call(void 0, _nullishCoalesce(fallbackText, () => ( alt)));
|
|
9343
9345
|
if (showFallback) {
|
|
9344
9346
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9345
9347
|
"div",
|
|
@@ -9450,7 +9452,7 @@ function TitleBlock({
|
|
|
9450
9452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
9451
9453
|
(loading || title) && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
9452
9454
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9453
|
-
|
|
9455
|
+
_chunkROQTWRV7cjs.FloatingTooltip,
|
|
9454
9456
|
{
|
|
9455
9457
|
content: title,
|
|
9456
9458
|
side: "bottom",
|
|
@@ -9467,12 +9469,12 @@ function TitleBlock({
|
|
|
9467
9469
|
}
|
|
9468
9470
|
),
|
|
9469
9471
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
9470
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9472
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { ref: titleRef, className: _chunk23V5BSHDcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleOverflowClass), children: titleNode }) })),
|
|
9471
9473
|
hasSubtitleRow && /* The NBSP is a pure spacer, reached only in `'always'` mode: an
|
|
9472
9474
|
empty `p` collapses to zero height (its only content would be
|
|
9473
9475
|
collapsible whitespace), which is exactly the shift that mode
|
|
9474
9476
|
exists to prevent. Hidden from AT — it carries no meaning. */
|
|
9475
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9477
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.FloatingTooltip, { content: subtitle, side: "bottom", disabled: !subtitleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9476
9478
|
"p",
|
|
9477
9479
|
{
|
|
9478
9480
|
ref: subtitleRef,
|
|
@@ -9483,7 +9485,7 @@ function TitleBlock({
|
|
|
9483
9485
|
) })
|
|
9484
9486
|
] })
|
|
9485
9487
|
] }) : title && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
9486
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, triggerClassName: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { ref: titleRef, className: _chunk23V5BSHDcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass), children: title }) }),
|
|
9487
9489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
9488
9490
|
] }) : (
|
|
9489
9491
|
/* This branch never had the single-line clamp, so text already
|
|
@@ -10898,7 +10900,7 @@ function lastPathSegment(url) {
|
|
|
10898
10900
|
function makeComposeContentUrl(opts) {
|
|
10899
10901
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
10900
10902
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
10901
|
-
const type =
|
|
10903
|
+
const type = _chunkE2EGTHYAcjs.canonicalContentRefType.call(void 0, rawType);
|
|
10902
10904
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
10903
10905
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
10904
10906
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -11085,7 +11087,7 @@ function extractSections(markdown, options = {}) {
|
|
|
11085
11087
|
if (heading.level > opts.maxLevel) continue;
|
|
11086
11088
|
let title = heading.text;
|
|
11087
11089
|
if (opts.stripFormattingMarkers) {
|
|
11088
|
-
title =
|
|
11090
|
+
title = _chunkROQTWRV7cjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
11089
11091
|
}
|
|
11090
11092
|
const baseId = _chunkYXWGSDK4cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkYXWGSDK4cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
11091
11093
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -11658,7 +11660,7 @@ function DashboardInfoCard({
|
|
|
11658
11660
|
const asTag = percentageDisplay === "tag" || percentageDisplay === "auto" && (progressVariant === "warning" || progressVariant === "error");
|
|
11659
11661
|
if (asTag) {
|
|
11660
11662
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
11661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11663
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
11662
11664
|
}
|
|
11663
11665
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
11664
11666
|
"(",
|
|
@@ -11712,7 +11714,7 @@ function DashboardInfoCard({
|
|
|
11712
11714
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3 md:text-h2", valueClassName), children: formattedValue }),
|
|
11713
11715
|
subValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
11714
11716
|
renderPercentage(),
|
|
11715
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11717
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.QuestionCircleIcon, { size: 20 }) }) })
|
|
11716
11718
|
] })
|
|
11717
11719
|
] }),
|
|
11718
11720
|
renderProgress()
|
|
@@ -11895,7 +11897,7 @@ function DeviceCard({
|
|
|
11895
11897
|
] }),
|
|
11896
11898
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
11897
11899
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11898
|
-
|
|
11900
|
+
_chunkROQTWRV7cjs.Tag,
|
|
11899
11901
|
{
|
|
11900
11902
|
variant: statusTag.variant,
|
|
11901
11903
|
icon: statusTag.icon,
|
|
@@ -11909,7 +11911,7 @@ function DeviceCard({
|
|
|
11909
11911
|
formatLastSeen(device.lastSeen)
|
|
11910
11912
|
] })
|
|
11911
11913
|
] }),
|
|
11912
|
-
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-wrap items-center gap-2", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11914
|
+
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-wrap items-center gap-2", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: "outline", label: tag }, index)) })
|
|
11913
11915
|
]
|
|
11914
11916
|
}
|
|
11915
11917
|
);
|
|
@@ -11970,7 +11972,7 @@ function FeatureCardGrid({
|
|
|
11970
11972
|
if (allCardsHaveNoBorders) {
|
|
11971
11973
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
11972
11974
|
}
|
|
11973
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11975
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
11974
11976
|
const startIndex = rowIndex * itemsPerRow;
|
|
11975
11977
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
11976
11978
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -12000,7 +12002,7 @@ function FeatureCardGrid({
|
|
|
12000
12002
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
12001
12003
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
12002
12004
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12003
|
-
|
|
12005
|
+
_chunkE2EGTHYAcjs.StatusBadge,
|
|
12004
12006
|
{
|
|
12005
12007
|
text: item.badge.text,
|
|
12006
12008
|
variant: item.badge.variant || "card",
|
|
@@ -12009,7 +12011,7 @@ function FeatureCardGrid({
|
|
|
12009
12011
|
)
|
|
12010
12012
|
] }),
|
|
12011
12013
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12012
|
-
|
|
12014
|
+
_chunkE2EGTHYAcjs.StatusBadge,
|
|
12013
12015
|
{
|
|
12014
12016
|
text: item.badge.text,
|
|
12015
12017
|
variant: item.badge.variant || "card",
|
|
@@ -12057,7 +12059,7 @@ function FeatureList({ items, className = "", iconBoxSize = 72 }) {
|
|
|
12057
12059
|
|
|
12058
12060
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
12059
12061
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12060
|
-
|
|
12062
|
+
_chunkROQTWRV7cjs.FloatingTooltip,
|
|
12061
12063
|
{
|
|
12062
12064
|
as: "span",
|
|
12063
12065
|
side: "top",
|
|
@@ -12241,7 +12243,7 @@ function DropdownButton({
|
|
|
12241
12243
|
)
|
|
12242
12244
|
);
|
|
12243
12245
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12244
|
-
|
|
12246
|
+
_chunkROQTWRV7cjs.ActionsMenuDropdown,
|
|
12245
12247
|
{
|
|
12246
12248
|
groups: _nullishCoalesce(groups, () => ( [{ items: _nullishCoalesce(items, () => ( [])) }])),
|
|
12247
12249
|
open,
|
|
@@ -12479,7 +12481,7 @@ function ServiceCardRowItem({ row }) {
|
|
|
12479
12481
|
),
|
|
12480
12482
|
children: [
|
|
12481
12483
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12482
|
-
|
|
12484
|
+
_chunkROQTWRV7cjs.FloatingTooltip,
|
|
12483
12485
|
{
|
|
12484
12486
|
content: row.value,
|
|
12485
12487
|
side: "top",
|
|
@@ -12559,6 +12561,74 @@ var Slider = _react.forwardRef.call(void 0,
|
|
|
12559
12561
|
);
|
|
12560
12562
|
Slider.displayName = "Slider";
|
|
12561
12563
|
|
|
12564
|
+
// src/components/ui/people-cell.tsx
|
|
12565
|
+
|
|
12566
|
+
function PersonCell({
|
|
12567
|
+
name,
|
|
12568
|
+
avatarUrl,
|
|
12569
|
+
secondary,
|
|
12570
|
+
fallbackName = "Unassigned",
|
|
12571
|
+
onClick,
|
|
12572
|
+
actionTitle
|
|
12573
|
+
}) {
|
|
12574
|
+
const displayName = name || fallbackName;
|
|
12575
|
+
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "group/person-cell flex min-w-0 items-center gap-3", children: [
|
|
12576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.SquareAvatar, { size: "sm", src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
12577
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
12578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12579
|
+
TruncateText,
|
|
12580
|
+
{
|
|
12581
|
+
variant: "h6",
|
|
12582
|
+
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
12583
|
+
children: displayName
|
|
12584
|
+
}
|
|
12585
|
+
),
|
|
12586
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
12587
|
+
] })
|
|
12588
|
+
] });
|
|
12589
|
+
if (!onClick) return row;
|
|
12590
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12591
|
+
_chunkCJBSU3XBcjs.Button,
|
|
12592
|
+
{
|
|
12593
|
+
variant: "transparent",
|
|
12594
|
+
onClick,
|
|
12595
|
+
title: actionTitle,
|
|
12596
|
+
className: "h-auto w-full min-w-0 cursor-pointer justify-start bg-transparent p-0 text-left hover:bg-transparent focus:bg-transparent",
|
|
12597
|
+
children: row
|
|
12598
|
+
}
|
|
12599
|
+
);
|
|
12600
|
+
}
|
|
12601
|
+
var PEOPLE_CELL_STACK_SLOTS = 2;
|
|
12602
|
+
function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
12603
|
+
if (people.length <= 1) {
|
|
12604
|
+
const [person] = people;
|
|
12605
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12606
|
+
PersonCell,
|
|
12607
|
+
{
|
|
12608
|
+
name: _optionalChain([person, 'optionalAccess', _249 => _249.name]),
|
|
12609
|
+
avatarUrl: _optionalChain([person, 'optionalAccess', _250 => _250.avatarUrl]),
|
|
12610
|
+
secondary: person ? person.secondary : void 0,
|
|
12611
|
+
fallbackName
|
|
12612
|
+
}
|
|
12613
|
+
);
|
|
12614
|
+
}
|
|
12615
|
+
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
12616
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.FloatingTooltip, { content: fullNames, triggerClassName: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
12617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12618
|
+
_chunkE2EGTHYAcjs.AvatarStack,
|
|
12619
|
+
{
|
|
12620
|
+
size: "sm",
|
|
12621
|
+
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
12622
|
+
people: people.map((p) => ({ key: p.key, name: p.name || "Unknown", avatarUrl: p.avatarUrl }))
|
|
12623
|
+
}
|
|
12624
|
+
) }),
|
|
12625
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "line-clamp-2 min-w-0 flex-1 break-words text-ods-text-primary text-h6", children: [
|
|
12626
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunkE2EGTHYAcjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
12627
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
12628
|
+
] })
|
|
12629
|
+
] }) });
|
|
12630
|
+
}
|
|
12631
|
+
|
|
12562
12632
|
// src/components/ui/title-content-block.tsx
|
|
12563
12633
|
|
|
12564
12634
|
var spacingMap2 = {
|
|
@@ -12605,9 +12675,9 @@ function TouchFriendlyTooltip({ content, side = "left", children }) {
|
|
|
12605
12675
|
return next;
|
|
12606
12676
|
});
|
|
12607
12677
|
};
|
|
12608
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12678
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Tooltip, { open, onOpenChange: setOpen, children: [
|
|
12609
12679
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12610
|
-
|
|
12680
|
+
_chunkROQTWRV7cjs.TooltipTrigger,
|
|
12611
12681
|
{
|
|
12612
12682
|
asChild: true,
|
|
12613
12683
|
onPointerDown: (e) => {
|
|
@@ -12625,7 +12695,7 @@ function TouchFriendlyTooltip({ content, side = "left", children }) {
|
|
|
12625
12695
|
children
|
|
12626
12696
|
}
|
|
12627
12697
|
),
|
|
12628
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12698
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipContent, { side, className: "max-w-xs", children: content })
|
|
12629
12699
|
] }) });
|
|
12630
12700
|
}
|
|
12631
12701
|
|
|
@@ -12822,7 +12892,7 @@ function CursorPaginationSimple({
|
|
|
12822
12892
|
{
|
|
12823
12893
|
variant: "transparent",
|
|
12824
12894
|
size: "icon",
|
|
12825
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
12895
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _251 => _251("")]),
|
|
12826
12896
|
disabled: !hasPreviousPage || loading,
|
|
12827
12897
|
className: "h-8 w-8",
|
|
12828
12898
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -12834,7 +12904,7 @@ function CursorPaginationSimple({
|
|
|
12834
12904
|
{
|
|
12835
12905
|
variant: "transparent",
|
|
12836
12906
|
size: "icon",
|
|
12837
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
12907
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _252 => _252("")]),
|
|
12838
12908
|
disabled: !hasNextPage || loading,
|
|
12839
12909
|
className: "h-8 w-8",
|
|
12840
12910
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -12916,7 +12986,7 @@ var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--s
|
|
|
12916
12986
|
function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
|
|
12917
12987
|
const table = useDataTableContext();
|
|
12918
12988
|
const columns = table.getVisibleFlatColumns();
|
|
12919
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
12989
|
+
const firstColumnId = _optionalChain([columns, 'access', _253 => _253[0], 'optionalAccess', _254 => _254.id]);
|
|
12920
12990
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12921
12991
|
"div",
|
|
12922
12992
|
{
|
|
@@ -12943,13 +13013,13 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
12943
13013
|
{
|
|
12944
13014
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
12945
13015
|
"flex shrink-0 flex-col justify-center",
|
|
12946
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13016
|
+
_optionalChain([meta, 'optionalAccess', _255 => _255.width]) || "flex-1",
|
|
12947
13017
|
// Same responsive hiding the real header and row apply.
|
|
12948
13018
|
// Without it a `hideAt` column was drawn in the skeleton and
|
|
12949
13019
|
// absent from the loaded table, so below that breakpoint the
|
|
12950
13020
|
// remaining columns were sized against a different total and
|
|
12951
13021
|
// the whole row re-laid-out the moment data arrived.
|
|
12952
|
-
getHideClasses(_optionalChain([meta, 'optionalAccess',
|
|
13022
|
+
getHideClasses(_optionalChain([meta, 'optionalAccess', _256 => _256.hideAt]))
|
|
12953
13023
|
),
|
|
12954
13024
|
children: [
|
|
12955
13025
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm bg-ods-bg-surface" }),
|
|
@@ -13053,8 +13123,8 @@ function TableEmptyState({ message, description, emptyState, icon, action, class
|
|
|
13053
13123
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
13054
13124
|
title: _nullishCoalesce(message, () => ( "No results found")),
|
|
13055
13125
|
description: _nullishCoalesce(description, () => ( (message == null ? "Try adjusting your search or filters" : void 0))),
|
|
13056
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
13057
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
13126
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _257 => _257.label]),
|
|
13127
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _258 => _258.onClick]),
|
|
13058
13128
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className),
|
|
13059
13129
|
...emptyState
|
|
13060
13130
|
}
|
|
@@ -13072,7 +13142,7 @@ function TableColumnFilterDropdown({
|
|
|
13072
13142
|
placement = "bottom-start",
|
|
13073
13143
|
dropdownClassName = "min-w-[240px]"
|
|
13074
13144
|
}) {
|
|
13075
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
13145
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _259 => _259[columnKey], 'optionalAccess', _260 => _260.length]) || 0;
|
|
13076
13146
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13077
13147
|
FiltersDropdown,
|
|
13078
13148
|
{
|
|
@@ -13112,7 +13182,7 @@ function TableColumnFilterDropdown({
|
|
|
13112
13182
|
delete newFilters[columnKey];
|
|
13113
13183
|
onFilterChange(newFilters);
|
|
13114
13184
|
},
|
|
13115
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
13185
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _261 => _261[columnKey]]) || [] },
|
|
13116
13186
|
placement,
|
|
13117
13187
|
dropdownClassName
|
|
13118
13188
|
}
|
|
@@ -13316,7 +13386,7 @@ function TableCardSkeleton({
|
|
|
13316
13386
|
className,
|
|
13317
13387
|
rowClassName
|
|
13318
13388
|
}) {
|
|
13319
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
13389
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _262 => _262.key]);
|
|
13320
13390
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13321
13391
|
"div",
|
|
13322
13392
|
{
|
|
@@ -13501,7 +13571,7 @@ function useTableMotion(enabled) {
|
|
|
13501
13571
|
// src/components/ui/table/table.tsx
|
|
13502
13572
|
|
|
13503
13573
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth) {
|
|
13504
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
13574
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _263 => _263.length])) || Boolean(renderRowActions);
|
|
13505
13575
|
const result = [...columns];
|
|
13506
13576
|
const actions = _nullishCoalesce(rowActions, () => ( []));
|
|
13507
13577
|
if (hasActions) {
|
|
@@ -13608,7 +13678,7 @@ function Table({
|
|
|
13608
13678
|
return rowKey(item);
|
|
13609
13679
|
}
|
|
13610
13680
|
const key = item[rowKey];
|
|
13611
|
-
return _optionalChain([key, 'optionalAccess',
|
|
13681
|
+
return _optionalChain([key, 'optionalAccess', _264 => _264.toString, 'call', _265 => _265()]) || index.toString();
|
|
13612
13682
|
};
|
|
13613
13683
|
const getRowClassName = (item, index) => {
|
|
13614
13684
|
if (typeof rowClassName === "function") {
|
|
@@ -13642,25 +13712,25 @@ function Table({
|
|
|
13642
13712
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
13643
13713
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
13644
13714
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
13645
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
13715
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _266 => _266.onLoadMore]));
|
|
13646
13716
|
_react.useEffect.call(void 0, () => {
|
|
13647
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
13717
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _267 => _267.onLoadMore]);
|
|
13648
13718
|
});
|
|
13649
13719
|
_react.useEffect.call(void 0, () => {
|
|
13650
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13720
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _268 => _268.hasNextPage]) || infiniteScroll.isFetchingNextPage) return void 0;
|
|
13651
13721
|
const sentinel = sentinelRef.current;
|
|
13652
13722
|
if (!sentinel) return void 0;
|
|
13653
13723
|
const observer = new IntersectionObserver(
|
|
13654
13724
|
(entries) => {
|
|
13655
|
-
if (_optionalChain([entries, 'access',
|
|
13656
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
13725
|
+
if (_optionalChain([entries, 'access', _269 => _269[0], 'optionalAccess', _270 => _270.isIntersecting])) {
|
|
13726
|
+
_optionalChain([onLoadMoreRef, 'access', _271 => _271.current, 'optionalCall', _272 => _272()]);
|
|
13657
13727
|
}
|
|
13658
13728
|
},
|
|
13659
13729
|
{ rootMargin: "200px" }
|
|
13660
13730
|
);
|
|
13661
13731
|
observer.observe(sentinel);
|
|
13662
13732
|
return () => observer.disconnect();
|
|
13663
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13733
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _273 => _273.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _274 => _274.isFetchingNextPage])]);
|
|
13664
13734
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-1", containerClassName), children: [
|
|
13665
13735
|
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-2 flex items-center justify-between rounded-[6px] border border-ods-border bg-ods-card p-3", children: [
|
|
13666
13736
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: [
|
|
@@ -13712,7 +13782,7 @@ function Table({
|
|
|
13712
13782
|
columns,
|
|
13713
13783
|
rows: skeletonRows,
|
|
13714
13784
|
compact,
|
|
13715
|
-
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess',
|
|
13785
|
+
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess', _275 => _275.length]), () => ( 0))) > 0,
|
|
13716
13786
|
hasChevron: Boolean(rowHref)
|
|
13717
13787
|
}
|
|
13718
13788
|
) : data.length === 0 ? (
|
|
@@ -13746,23 +13816,23 @@ function Table({
|
|
|
13746
13816
|
selected: isRowSelected(item),
|
|
13747
13817
|
onSelect: handleSelectRow,
|
|
13748
13818
|
animateRowReorder,
|
|
13749
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
13819
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _276 => _276.motionDiv])
|
|
13750
13820
|
},
|
|
13751
13821
|
getRowKey(item, index)
|
|
13752
13822
|
));
|
|
13753
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
13823
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _277 => _277.LayoutGroup]);
|
|
13754
13824
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
13755
13825
|
})(),
|
|
13756
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13826
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _278 => _278.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13757
13827
|
TableCardSkeleton,
|
|
13758
13828
|
{
|
|
13759
13829
|
columns,
|
|
13760
13830
|
rows: _nullishCoalesce(infiniteScroll.skeletonRows, () => ( 3)),
|
|
13761
|
-
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess',
|
|
13831
|
+
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess', _279 => _279.length]), () => ( 0))) > 0,
|
|
13762
13832
|
hasChevron: Boolean(rowHref)
|
|
13763
13833
|
}
|
|
13764
13834
|
),
|
|
13765
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13835
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _280 => _280.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
13766
13836
|
!infiniteScroll && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13767
13837
|
PlaceholderRows,
|
|
13768
13838
|
{
|
|
@@ -13880,9 +13950,9 @@ function TruncatedHeaderCell({ value, width }) {
|
|
|
13880
13950
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
13881
13951
|
}
|
|
13882
13952
|
}, []);
|
|
13883
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13953
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
13954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center", style: { width, height: 48 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: textRef, className: "truncate text-ods-text-secondary text-h5", children: value }) }) }),
|
|
13955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipContent, { side: "bottom", className: "max-w-xs break-words", children: value })
|
|
13886
13956
|
] }) });
|
|
13887
13957
|
}
|
|
13888
13958
|
|
|
@@ -13935,9 +14005,9 @@ function TruncatedCell({ value, className }) {
|
|
|
13935
14005
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
13936
14006
|
}
|
|
13937
14007
|
}, []);
|
|
13938
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13939
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14008
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
14009
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref: textRef, className: _chunk23V5BSHDcjs.cn.call(void 0, "block truncate", className), children: value }) }),
|
|
14010
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipContent, { side: "top", className: "max-w-xs break-words", children: value })
|
|
13941
14011
|
] }) });
|
|
13942
14012
|
}
|
|
13943
14013
|
|
|
@@ -14036,7 +14106,7 @@ function QueryReportTable({
|
|
|
14036
14106
|
const columns = _react.useMemo.call(void 0, () => deriveColumns(data, columnOrder), [data, columnOrder]);
|
|
14037
14107
|
const handleExport = () => {
|
|
14038
14108
|
exportToCSV(data, columns, exportFilename);
|
|
14039
|
-
_optionalChain([onExport, 'optionalCall',
|
|
14109
|
+
_optionalChain([onExport, 'optionalCall', _281 => _281()]);
|
|
14040
14110
|
};
|
|
14041
14111
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
14042
14112
|
const {
|
|
@@ -14162,7 +14232,7 @@ function DataTableRowImpl({
|
|
|
14162
14232
|
const handleClick = _react.useCallback.call(void 0,
|
|
14163
14233
|
(e) => {
|
|
14164
14234
|
const target = e.target;
|
|
14165
|
-
if (!_optionalChain([containerRef, 'access',
|
|
14235
|
+
if (!_optionalChain([containerRef, 'access', _282 => _282.current, 'optionalAccess', _283 => _283.contains, 'call', _284 => _284(target)])) {
|
|
14166
14236
|
if (isLinkMode) e.preventDefault();
|
|
14167
14237
|
return;
|
|
14168
14238
|
}
|
|
@@ -14170,7 +14240,7 @@ function DataTableRowImpl({
|
|
|
14170
14240
|
if (isLinkMode) e.preventDefault();
|
|
14171
14241
|
return;
|
|
14172
14242
|
}
|
|
14173
|
-
_optionalChain([onClick, 'optionalCall',
|
|
14243
|
+
_optionalChain([onClick, 'optionalCall', _285 => _285(row.original)]);
|
|
14174
14244
|
},
|
|
14175
14245
|
[onClick, row.original, isLinkMode]
|
|
14176
14246
|
);
|
|
@@ -14200,10 +14270,10 @@ function DataTableRowImpl({
|
|
|
14200
14270
|
{
|
|
14201
14271
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
14202
14272
|
"flex flex-col overflow-hidden",
|
|
14203
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
14204
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14205
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14206
|
-
getHideClasses(_optionalChain([meta, 'optionalAccess',
|
|
14273
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _286 => _286.align])),
|
|
14274
|
+
_optionalChain([meta, 'optionalAccess', _287 => _287.width]) || "min-w-0 flex-1",
|
|
14275
|
+
_optionalChain([meta, 'optionalAccess', _288 => _288.cellClassName]),
|
|
14276
|
+
getHideClasses(_optionalChain([meta, 'optionalAccess', _289 => _289.hideAt]))
|
|
14207
14277
|
),
|
|
14208
14278
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
14209
14279
|
},
|
|
@@ -14299,7 +14369,7 @@ function DataTableBody({
|
|
|
14299
14369
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: [
|
|
14300
14370
|
rows.map((row, index) => {
|
|
14301
14371
|
const item = row.original;
|
|
14302
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
14372
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _290 => _290(item)]), () => ( void 0));
|
|
14303
14373
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
14304
14374
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14305
14375
|
DataTableRow,
|
|
@@ -14311,7 +14381,7 @@ function DataTableBody({
|
|
|
14311
14381
|
autoHeight,
|
|
14312
14382
|
rowHeightClassName,
|
|
14313
14383
|
className: cls,
|
|
14314
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
14384
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _291 => _291(item)])
|
|
14315
14385
|
},
|
|
14316
14386
|
row.id
|
|
14317
14387
|
);
|
|
@@ -14355,7 +14425,7 @@ function DataTableColumnFilter({
|
|
|
14355
14425
|
pending = false
|
|
14356
14426
|
}) {
|
|
14357
14427
|
const currentValue = column.getFilterValue();
|
|
14358
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
14428
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _292 => _292.length]), () => ( 0));
|
|
14359
14429
|
const sections = _react.useMemo.call(void 0,
|
|
14360
14430
|
() => [
|
|
14361
14431
|
{
|
|
@@ -14487,7 +14557,7 @@ function DataTableHeader({
|
|
|
14487
14557
|
);
|
|
14488
14558
|
}
|
|
14489
14559
|
function keepsCellOnTablet(meta) {
|
|
14490
|
-
return Boolean(_optionalChain([meta, 'optionalAccess',
|
|
14560
|
+
return Boolean(_optionalChain([meta, 'optionalAccess', _293 => _293.filter])) || _optionalChain([meta, 'optionalAccess', _294 => _294.sortable]) === true || _optionalChain([meta, 'optionalAccess', _295 => _295.alwaysShowHeader]) === true;
|
|
14491
14561
|
}
|
|
14492
14562
|
var SHOW_FROM = {
|
|
14493
14563
|
md: "md:flex",
|
|
@@ -14525,11 +14595,11 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14525
14595
|
if (header.isPlaceholder) return null;
|
|
14526
14596
|
const column = header.column;
|
|
14527
14597
|
const meta = column.columnDef.meta;
|
|
14528
|
-
const filter = _optionalChain([meta, 'optionalAccess',
|
|
14598
|
+
const filter = _optionalChain([meta, 'optionalAccess', _296 => _296.filter]);
|
|
14529
14599
|
const keepOnTablet = keepsCellOnTablet(meta);
|
|
14530
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
14531
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
14532
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
14600
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _297 => _297.align]), () => ( "left"));
|
|
14601
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _298 => _298.sortable]) === true;
|
|
14602
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _299 => _299.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
14533
14603
|
const filterTrigger = filter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14534
14604
|
DataTableColumnFilter,
|
|
14535
14605
|
{
|
|
@@ -14548,7 +14618,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14548
14618
|
"items-stretch",
|
|
14549
14619
|
// Cells are hidden rather than dropped from the tree, so which columns
|
|
14550
14620
|
// exist never depends on when an effect ran.
|
|
14551
|
-
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess',
|
|
14621
|
+
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _300 => _300.hideAt])),
|
|
14552
14622
|
// Width applies from lg only. Stated as "always, neutralized below lg"
|
|
14553
14623
|
// because `meta.width` is an opaque consumer string that cannot be
|
|
14554
14624
|
// prefixed. Only `keepOnTablet` cells need the override — the rest are
|
|
@@ -14566,15 +14636,15 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14566
14636
|
// Specificity rather than `!important`: it stays a normal declaration, so a
|
|
14567
14637
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
14568
14638
|
// more specific rule — `!important` could only be answered with another one.
|
|
14569
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14639
|
+
_optionalChain([meta, 'optionalAccess', _301 => _301.width]) || "min-w-0 flex-1",
|
|
14570
14640
|
keepOnTablet && "max-lg:[&&]:w-auto max-lg:[&&]:flex-none max-lg:[&&]:basis-auto",
|
|
14571
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14641
|
+
_optionalChain([meta, 'optionalAccess', _302 => _302.headerClassName])
|
|
14572
14642
|
),
|
|
14573
14643
|
children: filterTrigger ? (
|
|
14574
14644
|
// Only a column that HAS a hint gets the extra row, so every existing
|
|
14575
14645
|
// filter header keeps its exact structure — the trigger stays a direct
|
|
14576
14646
|
// child of the cell.
|
|
14577
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14647
|
+
_optionalChain([meta, 'optionalAccess', _303 => _303.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
14578
14648
|
filterTrigger,
|
|
14579
14649
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
14580
14650
|
] }) : filterTrigger
|
|
@@ -14590,9 +14660,9 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14590
14660
|
keepOnTablet && "max-lg:justify-start",
|
|
14591
14661
|
canSort && "group cursor-pointer"
|
|
14592
14662
|
),
|
|
14593
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
14663
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _304 => _304(column.id)]) : void 0,
|
|
14594
14664
|
children: [
|
|
14595
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14665
|
+
_optionalChain([meta, 'optionalAccess', _305 => _305.hint]) ? (
|
|
14596
14666
|
// The hint shares a LABEL GROUP with the text, pinned to the FIRST
|
|
14597
14667
|
// line (`items-start`): on a label that breaks onto a second line it
|
|
14598
14668
|
// reads beside the opening word instead of floating in the gap
|
|
@@ -14651,7 +14721,7 @@ function DataTableInfiniteFooter({
|
|
|
14651
14721
|
if (!sentinel) return void 0;
|
|
14652
14722
|
const observer = new IntersectionObserver(
|
|
14653
14723
|
(entries) => {
|
|
14654
|
-
if (_optionalChain([entries, 'access',
|
|
14724
|
+
if (_optionalChain([entries, 'access', _306 => _306[0], 'optionalAccess', _307 => _307.isIntersecting])) onLoadMoreRef.current();
|
|
14655
14725
|
},
|
|
14656
14726
|
{ rootMargin }
|
|
14657
14727
|
);
|
|
@@ -14676,7 +14746,7 @@ function DataTableRowCount({
|
|
|
14676
14746
|
const table = useDataTableContext();
|
|
14677
14747
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
14678
14748
|
if (hideWhenEmpty && count === 0) return null;
|
|
14679
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
14749
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _308 => _308(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
14680
14750
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk23V5BSHDcjs.cn.call(void 0, "whitespace-nowrap text-ods-text-secondary text-h6", className), children: [
|
|
14681
14751
|
count,
|
|
14682
14752
|
" ",
|
|
@@ -14795,12 +14865,12 @@ function PhoneInput({
|
|
|
14795
14865
|
(phone) => {
|
|
14796
14866
|
if (!phone || digitCount(phone) === 0) {
|
|
14797
14867
|
setIsInvalid(false);
|
|
14798
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14868
|
+
_optionalChain([onValidationChange, 'optionalCall', _309 => _309(false)]);
|
|
14799
14869
|
return;
|
|
14800
14870
|
}
|
|
14801
14871
|
const invalid = !validatePhoneNumber(phone, countryCode);
|
|
14802
14872
|
setIsInvalid(invalid);
|
|
14803
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14873
|
+
_optionalChain([onValidationChange, 'optionalCall', _310 => _310(invalid)]);
|
|
14804
14874
|
},
|
|
14805
14875
|
[countryCode, digitCount, onValidationChange]
|
|
14806
14876
|
);
|
|
@@ -14854,7 +14924,7 @@ function PhoneInput({
|
|
|
14854
14924
|
debouncedValidation(val);
|
|
14855
14925
|
} else if (digitCount(val) === 0) {
|
|
14856
14926
|
setIsInvalid(false);
|
|
14857
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14927
|
+
_optionalChain([onValidationChange, 'optionalCall', _311 => _311(false)]);
|
|
14858
14928
|
}
|
|
14859
14929
|
}
|
|
14860
14930
|
},
|
|
@@ -14971,7 +15041,7 @@ function SearchInput({
|
|
|
14971
15041
|
if (!showHiddenTags) return void 0;
|
|
14972
15042
|
const handleClick = (e) => {
|
|
14973
15043
|
const target = e.target;
|
|
14974
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
15044
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _312 => _312.current, 'optionalAccess', _313 => _313.contains, 'call', _314 => _314(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _315 => _315.current, 'optionalAccess', _316 => _316.contains, 'call', _317 => _317(target)])) {
|
|
14975
15045
|
setShowHiddenTags(false);
|
|
14976
15046
|
}
|
|
14977
15047
|
};
|
|
@@ -14982,7 +15052,7 @@ function SearchInput({
|
|
|
14982
15052
|
const popup = hiddenTagsPopupRef.current;
|
|
14983
15053
|
const badge = badgeRef.current;
|
|
14984
15054
|
if (!popup || !badge) return;
|
|
14985
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
15055
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _318 => _318.current, 'optionalAccess', _319 => _319.getBoundingClientRect, 'call', _320 => _320(), 'access', _321 => _321.left]), () => ( 0));
|
|
14986
15056
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
14987
15057
|
});
|
|
14988
15058
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -15028,10 +15098,10 @@ function SearchInput({
|
|
|
15028
15098
|
} else {
|
|
15029
15099
|
setInternalValue("");
|
|
15030
15100
|
}
|
|
15031
|
-
_optionalChain([inputRef, 'access',
|
|
15101
|
+
_optionalChain([inputRef, 'access', _322 => _322.current, 'optionalAccess', _323 => _323.focus, 'call', _324 => _324()]);
|
|
15032
15102
|
};
|
|
15033
15103
|
const handleResultClick = (result, e) => {
|
|
15034
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
15104
|
+
_optionalChain([onResultSelect, 'optionalCall', _325 => _325(
|
|
15035
15105
|
result,
|
|
15036
15106
|
e ? {
|
|
15037
15107
|
metaKey: e.metaKey,
|
|
@@ -15059,7 +15129,7 @@ function SearchInput({
|
|
|
15059
15129
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
15060
15130
|
handleResultClick(flatResults[highlightedIndex]);
|
|
15061
15131
|
} else {
|
|
15062
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
15132
|
+
_optionalChain([onSubmit, 'optionalCall', _326 => _326(currentValue)]);
|
|
15063
15133
|
}
|
|
15064
15134
|
break;
|
|
15065
15135
|
case "Escape":
|
|
@@ -15142,14 +15212,14 @@ function SearchInput({
|
|
|
15142
15212
|
),
|
|
15143
15213
|
onClick: () => {
|
|
15144
15214
|
if (disabled) return;
|
|
15145
|
-
_optionalChain([inputRef, 'access',
|
|
15215
|
+
_optionalChain([inputRef, 'access', _327 => _327.current, 'optionalAccess', _328 => _328.focus, 'call', _329 => _329()]);
|
|
15146
15216
|
setIsOpen(true);
|
|
15147
15217
|
},
|
|
15148
15218
|
children: [
|
|
15149
15219
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent [&_svg]:size-4 md:[&_svg]:size-6", children: startAdornment !== void 0 ? startAdornment : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}) }),
|
|
15150
15220
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
15151
15221
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15152
|
-
|
|
15222
|
+
_chunkROQTWRV7cjs.Tag,
|
|
15153
15223
|
{
|
|
15154
15224
|
variant: chipVariantToTagVariant(chip.variant),
|
|
15155
15225
|
label: chip.label,
|
|
@@ -15230,10 +15300,10 @@ function SearchInput({
|
|
|
15230
15300
|
collisionPadding: { bottom: keyboardPadding },
|
|
15231
15301
|
onOpenAutoFocus: (e) => {
|
|
15232
15302
|
e.preventDefault();
|
|
15233
|
-
_optionalChain([inputRef, 'access',
|
|
15303
|
+
_optionalChain([inputRef, 'access', _330 => _330.current, 'optionalAccess', _331 => _331.focus, 'call', _332 => _332()]);
|
|
15234
15304
|
},
|
|
15235
15305
|
onInteractOutside: (e) => {
|
|
15236
|
-
if (_optionalChain([containerRef, 'access',
|
|
15306
|
+
if (_optionalChain([containerRef, 'access', _333 => _333.current, 'optionalAccess', _334 => _334.contains, 'call', _335 => _335(e.target)])) {
|
|
15237
15307
|
e.preventDefault();
|
|
15238
15308
|
}
|
|
15239
15309
|
},
|
|
@@ -15250,7 +15320,7 @@ function SearchInput({
|
|
|
15250
15320
|
ref: hiddenTagsPopupRef,
|
|
15251
15321
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
15252
15322
|
onRemove: (removedTag) => {
|
|
15253
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
15323
|
+
_optionalChain([onFilterRemove, 'optionalCall', _336 => _336(removedTag)]);
|
|
15254
15324
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
15255
15325
|
}
|
|
15256
15326
|
}
|
|
@@ -15265,7 +15335,7 @@ function SearchInput({
|
|
|
15265
15335
|
}
|
|
15266
15336
|
),
|
|
15267
15337
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: measureRef, "aria-hidden": "true", className: "pointer-events-none fixed -left-[9999px] top-0 flex gap-2", children: filterChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15268
|
-
|
|
15338
|
+
_chunkROQTWRV7cjs.Tag,
|
|
15269
15339
|
{
|
|
15270
15340
|
variant: chipVariantToTagVariant(chip.variant),
|
|
15271
15341
|
label: chip.label,
|
|
@@ -15292,7 +15362,7 @@ function FilterListItem({
|
|
|
15292
15362
|
}) {
|
|
15293
15363
|
const handleToggle = () => {
|
|
15294
15364
|
if (disabled) return;
|
|
15295
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
15365
|
+
_optionalChain([onToggle, 'optionalCall', _337 => _337(!selected)]);
|
|
15296
15366
|
};
|
|
15297
15367
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15298
15368
|
"div",
|
|
@@ -15339,7 +15409,7 @@ function FilterListItem({
|
|
|
15339
15409
|
CheckboxPrimitive4.Root,
|
|
15340
15410
|
{
|
|
15341
15411
|
checked: selected,
|
|
15342
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
15412
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _338 => _338(c === true)]),
|
|
15343
15413
|
onClick: (e) => e.stopPropagation(),
|
|
15344
15414
|
disabled,
|
|
15345
15415
|
"aria-label": title,
|
|
@@ -15420,7 +15490,7 @@ function TagSearchInput({
|
|
|
15420
15490
|
if (!showHiddenTags) return void 0;
|
|
15421
15491
|
const handleClick = (e) => {
|
|
15422
15492
|
const target = e.target;
|
|
15423
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
15493
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _339 => _339.current, 'optionalAccess', _340 => _340.contains, 'call', _341 => _341(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _342 => _342.current, 'optionalAccess', _343 => _343.contains, 'call', _344 => _344(target)])) {
|
|
15424
15494
|
setShowHiddenTags(false);
|
|
15425
15495
|
}
|
|
15426
15496
|
};
|
|
@@ -15431,7 +15501,7 @@ function TagSearchInput({
|
|
|
15431
15501
|
const popup = hiddenTagsPopupRef.current;
|
|
15432
15502
|
const badge = badgeRef.current;
|
|
15433
15503
|
if (!popup || !badge) return;
|
|
15434
|
-
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
15504
|
+
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _345 => _345.current, 'optionalAccess', _346 => _346.getBoundingClientRect, 'call', _347 => _347(), 'access', _348 => _348.left]), () => ( 0));
|
|
15435
15505
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
15436
15506
|
});
|
|
15437
15507
|
const hiddenCount = tags.length - visibleCount;
|
|
@@ -15443,13 +15513,13 @@ function TagSearchInput({
|
|
|
15443
15513
|
e.preventDefault();
|
|
15444
15514
|
onSubmit(searchValue);
|
|
15445
15515
|
}
|
|
15446
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
15516
|
+
_optionalChain([onKeyDown, 'optionalCall', _349 => _349(e)]);
|
|
15447
15517
|
};
|
|
15448
15518
|
const handleClearAll = (e) => {
|
|
15449
15519
|
e.stopPropagation();
|
|
15450
15520
|
e.preventDefault();
|
|
15451
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
15452
|
-
_optionalChain([inputRef, 'access',
|
|
15521
|
+
_optionalChain([onClearAll, 'optionalCall', _350 => _350()]);
|
|
15522
|
+
_optionalChain([inputRef, 'access', _351 => _351.current, 'optionalAccess', _352 => _352.focus, 'call', _353 => _353()]);
|
|
15453
15523
|
};
|
|
15454
15524
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
15455
15525
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -15472,13 +15542,13 @@ function TagSearchInput({
|
|
|
15472
15542
|
className
|
|
15473
15543
|
),
|
|
15474
15544
|
onClick: () => {
|
|
15475
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
15545
|
+
if (!disabled) _optionalChain([inputRef, 'access', _354 => _354.current, 'optionalAccess', _355 => _355.focus, 'call', _356 => _356()]);
|
|
15476
15546
|
},
|
|
15477
15547
|
children: [
|
|
15478
15548
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "size-4 text-ods-text-secondary md:size-6" }) }),
|
|
15479
15549
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2", children: [
|
|
15480
15550
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15481
|
-
|
|
15551
|
+
_chunkROQTWRV7cjs.Tag,
|
|
15482
15552
|
{
|
|
15483
15553
|
variant: "outline",
|
|
15484
15554
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -15566,7 +15636,7 @@ function TagSearchInput({
|
|
|
15566
15636
|
"aria-hidden": "true",
|
|
15567
15637
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
15568
15638
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15569
|
-
|
|
15639
|
+
_chunkROQTWRV7cjs.Tag,
|
|
15570
15640
|
{
|
|
15571
15641
|
variant: "outline",
|
|
15572
15642
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -15688,7 +15758,7 @@ function MarkdownEditor({
|
|
|
15688
15758
|
try {
|
|
15689
15759
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
15690
15760
|
if (cancelled) return;
|
|
15691
|
-
if (_optionalChain([mod, 'access',
|
|
15761
|
+
if (_optionalChain([mod, 'access', _357 => _357.commands, 'optionalAccess', _358 => _358.getExtraCommands])) {
|
|
15692
15762
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
15693
15763
|
}
|
|
15694
15764
|
} catch (error) {
|
|
@@ -15726,7 +15796,7 @@ function MarkdownEditor({
|
|
|
15726
15796
|
const isImage = file.type.startsWith("image/");
|
|
15727
15797
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
15728
15798
|
insertTextAtCursor(markdown);
|
|
15729
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
15799
|
+
_optionalChain([onFileUploaded, 'optionalCall', _359 => _359(url, file.name)]);
|
|
15730
15800
|
} catch (error) {
|
|
15731
15801
|
console.error("File upload failed:", error);
|
|
15732
15802
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -15740,7 +15810,7 @@ function MarkdownEditor({
|
|
|
15740
15810
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
15741
15811
|
(e) => {
|
|
15742
15812
|
const input = e.target;
|
|
15743
|
-
const file = _optionalChain([input, 'access',
|
|
15813
|
+
const file = _optionalChain([input, 'access', _360 => _360.files, 'optionalAccess', _361 => _361[0]]);
|
|
15744
15814
|
if (file) {
|
|
15745
15815
|
void handleFileUpload(file);
|
|
15746
15816
|
input.value = "";
|
|
@@ -15751,7 +15821,7 @@ function MarkdownEditor({
|
|
|
15751
15821
|
const handlePaste = _react.useCallback.call(void 0,
|
|
15752
15822
|
(e) => {
|
|
15753
15823
|
if (!onUploadFile) return;
|
|
15754
|
-
const items = _optionalChain([e, 'access',
|
|
15824
|
+
const items = _optionalChain([e, 'access', _362 => _362.clipboardData, 'optionalAccess', _363 => _363.items]);
|
|
15755
15825
|
if (!items) return;
|
|
15756
15826
|
for (const item of items) {
|
|
15757
15827
|
if (item.type.startsWith("image/")) {
|
|
@@ -15776,7 +15846,7 @@ function MarkdownEditor({
|
|
|
15776
15846
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
15777
15847
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-3 w-3" }),
|
|
15778
15848
|
execute: () => {
|
|
15779
|
-
_optionalChain([fileInputRef, 'access',
|
|
15849
|
+
_optionalChain([fileInputRef, 'access', _364 => _364.current, 'optionalAccess', _365 => _365.click, 'call', _366 => _366()]);
|
|
15780
15850
|
}
|
|
15781
15851
|
} : null;
|
|
15782
15852
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -15788,7 +15858,7 @@ function MarkdownEditor({
|
|
|
15788
15858
|
const EDGE_ZONE = 60;
|
|
15789
15859
|
const MAX_SCROLL_SPEED = 15;
|
|
15790
15860
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
15791
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
15861
|
+
let node = _optionalChain([el, 'optionalAccess', _367 => _367.parentElement]);
|
|
15792
15862
|
while (node && node !== document.documentElement) {
|
|
15793
15863
|
const { overflowY } = window.getComputedStyle(node);
|
|
15794
15864
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -15927,7 +15997,7 @@ function matchesAccept(file, accept) {
|
|
|
15927
15997
|
});
|
|
15928
15998
|
}
|
|
15929
15999
|
function dragHasFiles(e) {
|
|
15930
|
-
const types = _optionalChain([e, 'access',
|
|
16000
|
+
const types = _optionalChain([e, 'access', _368 => _368.dataTransfer, 'optionalAccess', _369 => _369.types]);
|
|
15931
16001
|
if (!types) return false;
|
|
15932
16002
|
for (let i = 0; i < types.length; i++) {
|
|
15933
16003
|
if (types[i] === "Files") return true;
|
|
@@ -16026,7 +16096,7 @@ function FileUpload({
|
|
|
16026
16096
|
e.stopPropagation();
|
|
16027
16097
|
setDragActive(false);
|
|
16028
16098
|
if (disabled) return;
|
|
16029
|
-
if (_optionalChain([e, 'access',
|
|
16099
|
+
if (_optionalChain([e, 'access', _370 => _370.dataTransfer, 'access', _371 => _371.files, 'optionalAccess', _372 => _372.length])) {
|
|
16030
16100
|
handleFiles(e.dataTransfer.files);
|
|
16031
16101
|
}
|
|
16032
16102
|
};
|
|
@@ -16054,7 +16124,7 @@ function FileUpload({
|
|
|
16054
16124
|
e.preventDefault();
|
|
16055
16125
|
dragCounter = 0;
|
|
16056
16126
|
setDragActive(false);
|
|
16057
|
-
if (_optionalChain([e, 'access',
|
|
16127
|
+
if (_optionalChain([e, 'access', _373 => _373.dataTransfer, 'optionalAccess', _374 => _374.files, 'optionalAccess', _375 => _375.length])) {
|
|
16058
16128
|
handleFilesRef.current(e.dataTransfer.files);
|
|
16059
16129
|
}
|
|
16060
16130
|
};
|
|
@@ -16076,7 +16146,7 @@ function FileUpload({
|
|
|
16076
16146
|
};
|
|
16077
16147
|
}, [acceptWindowDrops, disabled]);
|
|
16078
16148
|
const handleFileSelect = (e) => {
|
|
16079
|
-
if (_optionalChain([e, 'access',
|
|
16149
|
+
if (_optionalChain([e, 'access', _376 => _376.target, 'access', _377 => _377.files, 'optionalAccess', _378 => _378.length])) {
|
|
16080
16150
|
handleFiles(e.target.files);
|
|
16081
16151
|
}
|
|
16082
16152
|
};
|
|
@@ -16094,7 +16164,7 @@ function FileUpload({
|
|
|
16094
16164
|
const openDialog = async () => {
|
|
16095
16165
|
if (disabled) return;
|
|
16096
16166
|
if (!pickFiles) {
|
|
16097
|
-
_optionalChain([fileInputRef, 'access',
|
|
16167
|
+
_optionalChain([fileInputRef, 'access', _379 => _379.current, 'optionalAccess', _380 => _380.click, 'call', _381 => _381()]);
|
|
16098
16168
|
return;
|
|
16099
16169
|
}
|
|
16100
16170
|
try {
|
|
@@ -16167,7 +16237,7 @@ function FileUpload({
|
|
|
16167
16237
|
"button",
|
|
16168
16238
|
{
|
|
16169
16239
|
type: "button",
|
|
16170
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
16240
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _382 => _382(entry.id)]),
|
|
16171
16241
|
className: "shrink-0 text-ods-error transition-opacity hover:opacity-80",
|
|
16172
16242
|
"aria-label": `Remove ${entry.fileName}`,
|
|
16173
16243
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TrashIcon, { className: "size-6" })
|
|
@@ -16298,7 +16368,7 @@ function ImageUploader({
|
|
|
16298
16368
|
onChange(file);
|
|
16299
16369
|
};
|
|
16300
16370
|
const handleFileSelect = (e) => {
|
|
16301
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
16371
|
+
validateAndEmit(_optionalChain([e, 'access', _383 => _383.target, 'access', _384 => _384.files, 'optionalAccess', _385 => _385[0]]));
|
|
16302
16372
|
if (inputRef.current) inputRef.current.value = "";
|
|
16303
16373
|
};
|
|
16304
16374
|
const handleDrag = (e) => {
|
|
@@ -16313,11 +16383,11 @@ function ImageUploader({
|
|
|
16313
16383
|
e.stopPropagation();
|
|
16314
16384
|
setDragActive(false);
|
|
16315
16385
|
if (!interactive) return;
|
|
16316
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
16386
|
+
validateAndEmit(_optionalChain([e, 'access', _386 => _386.dataTransfer, 'access', _387 => _387.files, 'optionalAccess', _388 => _388[0]]));
|
|
16317
16387
|
};
|
|
16318
16388
|
const openDialog = () => {
|
|
16319
16389
|
if (!interactive) return;
|
|
16320
|
-
_optionalChain([inputRef, 'access',
|
|
16390
|
+
_optionalChain([inputRef, 'access', _389 => _389.current, 'optionalAccess', _390 => _390.click, 'call', _391 => _391()]);
|
|
16321
16391
|
};
|
|
16322
16392
|
const handleRootKeyDown = (e) => {
|
|
16323
16393
|
if (hasImage || !interactive) return;
|
|
@@ -16489,28 +16559,28 @@ function ColorPresetSelect({
|
|
|
16489
16559
|
}) {
|
|
16490
16560
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
16491
16561
|
const isCustom = !selectedPreset;
|
|
16492
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
16493
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
16562
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _392 => _392.label]), () => ( "Custom"));
|
|
16563
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _393 => _393.color]), () => ( value));
|
|
16494
16564
|
const groups = [
|
|
16495
16565
|
{
|
|
16496
16566
|
items: [
|
|
16497
16567
|
...presets.map((p) => ({
|
|
16498
16568
|
id: p.key,
|
|
16499
16569
|
label: p.label,
|
|
16500
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16570
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color: p.color }),
|
|
16501
16571
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
16502
16572
|
})),
|
|
16503
16573
|
{
|
|
16504
16574
|
id: CUSTOM_PRESET_KEY,
|
|
16505
16575
|
label: "Custom",
|
|
16506
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16576
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
16507
16577
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
16508
16578
|
}
|
|
16509
16579
|
]
|
|
16510
16580
|
}
|
|
16511
16581
|
];
|
|
16512
16582
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16513
|
-
|
|
16583
|
+
_chunkROQTWRV7cjs.ActionsMenuDropdown,
|
|
16514
16584
|
{
|
|
16515
16585
|
groups,
|
|
16516
16586
|
align: "start",
|
|
@@ -16520,7 +16590,7 @@ function ColorPresetSelect({
|
|
|
16520
16590
|
{
|
|
16521
16591
|
disabled,
|
|
16522
16592
|
"aria-label": `Color: ${displayLabel}`,
|
|
16523
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16593
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color: displayColor }),
|
|
16524
16594
|
selectedLabel: displayLabel,
|
|
16525
16595
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16526
16596
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "group", className)
|
|
@@ -16541,7 +16611,7 @@ function HexInputs({ value, onChange }) {
|
|
|
16541
16611
|
}
|
|
16542
16612
|
const commit = () => {
|
|
16543
16613
|
const candidate = (draft.startsWith("#") ? draft : `#${draft}`).toLowerCase();
|
|
16544
|
-
if (
|
|
16614
|
+
if (_chunkROQTWRV7cjs.HEX_PATTERN.test(candidate)) onChange(candidate);
|
|
16545
16615
|
else setDraft(value);
|
|
16546
16616
|
};
|
|
16547
16617
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16605,12 +16675,12 @@ function ChannelInput({
|
|
|
16605
16675
|
);
|
|
16606
16676
|
}
|
|
16607
16677
|
function RgbInputs({ value, onChange }) {
|
|
16608
|
-
const rgb = _nullishCoalesce(
|
|
16678
|
+
const rgb = _nullishCoalesce(_chunkROQTWRV7cjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
16609
16679
|
const update = (next) => {
|
|
16610
16680
|
const r = _nullishCoalesce(next.r, () => ( rgb.r));
|
|
16611
16681
|
const g = _nullishCoalesce(next.g, () => ( rgb.g));
|
|
16612
16682
|
const b = _nullishCoalesce(next.b, () => ( rgb.b));
|
|
16613
|
-
onChange(
|
|
16683
|
+
onChange(_chunkROQTWRV7cjs.rgbToHex.call(void 0, r, g, b));
|
|
16614
16684
|
};
|
|
16615
16685
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16616
16686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
|
|
@@ -16619,14 +16689,14 @@ function RgbInputs({ value, onChange }) {
|
|
|
16619
16689
|
] });
|
|
16620
16690
|
}
|
|
16621
16691
|
function HslInputs({ value, onChange }) {
|
|
16622
|
-
const rgb = _nullishCoalesce(
|
|
16623
|
-
const hsl =
|
|
16692
|
+
const rgb = _nullishCoalesce(_chunkROQTWRV7cjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
16693
|
+
const hsl = _chunkROQTWRV7cjs.rgbToHsl.call(void 0, rgb.r, rgb.g, rgb.b);
|
|
16624
16694
|
const update = (next) => {
|
|
16625
16695
|
const h = _nullishCoalesce(next.h, () => ( hsl.h));
|
|
16626
16696
|
const s = _nullishCoalesce(next.s, () => ( hsl.s));
|
|
16627
16697
|
const l = _nullishCoalesce(next.l, () => ( hsl.l));
|
|
16628
|
-
const out =
|
|
16629
|
-
onChange(
|
|
16698
|
+
const out = _chunkROQTWRV7cjs.hslToRgb.call(void 0, h, s, l);
|
|
16699
|
+
onChange(_chunkROQTWRV7cjs.rgbToHex.call(void 0, out.r, out.g, out.b));
|
|
16630
16700
|
};
|
|
16631
16701
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16632
16702
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
|
|
@@ -16652,7 +16722,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
16652
16722
|
{
|
|
16653
16723
|
disabled,
|
|
16654
16724
|
"aria-label": "Pick custom color",
|
|
16655
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16725
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color: value }),
|
|
16656
16726
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
16657
16727
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16658
16728
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "group", className)
|
|
@@ -16668,7 +16738,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
16668
16738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactcolorful.HexColorPicker, { color: value, onChange }),
|
|
16669
16739
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16670
16740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16671
|
-
|
|
16741
|
+
_chunkROQTWRV7cjs.ActionsMenuDropdown,
|
|
16672
16742
|
{
|
|
16673
16743
|
groups: formatGroups,
|
|
16674
16744
|
align: "start",
|
|
@@ -16725,7 +16795,7 @@ function TicketStatusConfigRow({
|
|
|
16725
16795
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
16726
16796
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
16727
16797
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16728
|
-
|
|
16798
|
+
_chunkROQTWRV7cjs.TicketStatusTag,
|
|
16729
16799
|
{
|
|
16730
16800
|
status: statusKey,
|
|
16731
16801
|
label: name || " ",
|
|
@@ -16786,7 +16856,7 @@ function TicketStatusConfigRow({
|
|
|
16786
16856
|
{
|
|
16787
16857
|
id: nameInputId,
|
|
16788
16858
|
value: name,
|
|
16789
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
16859
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _394 => _394(e.target.value)]),
|
|
16790
16860
|
disabled: isSystem,
|
|
16791
16861
|
readOnly: isSystem,
|
|
16792
16862
|
maxLength: 50
|
|
@@ -16877,7 +16947,7 @@ function formatTestRunDuration(ms) {
|
|
|
16877
16947
|
var RESULT_COLUMN_MIN_WIDTH = 176;
|
|
16878
16948
|
var SKELETON_COLUMNS = 6;
|
|
16879
16949
|
function TestResultsSkeleton() {
|
|
16880
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16950
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
16881
16951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-[160px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-4 w-3/4 animate-pulse rounded-sm bg-ods-bg-surface" }) }, `skeleton-header-${i}`)) }),
|
|
16882
16952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "animate-pulse overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[66px] items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)] md:h-[78px]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[160px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 w-3/4 rounded-sm bg-ods-bg-surface" }) }, `skeleton-cell-${i}`)) }) })
|
|
16883
16953
|
] }) });
|
|
@@ -16912,7 +16982,7 @@ function TestResultsTable({ rows, loading }) {
|
|
|
16912
16982
|
if (loading) {
|
|
16913
16983
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
16914
16984
|
}
|
|
16915
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16985
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { minWidth: Math.max(1, columnKeys.length) * RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DataTable, { table, children: [
|
|
16916
16986
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
16917
16987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
16918
16988
|
] }) }) });
|
|
@@ -16972,7 +17042,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
16972
17042
|
function TestRunStatusStat({ status, className }) {
|
|
16973
17043
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
16974
17044
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
16975
|
-
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17045
|
+
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { label: tag.label, variant: tag.variant, className: "pointer-events-none" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: "-" }),
|
|
16976
17046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
16977
17047
|
] });
|
|
16978
17048
|
}
|
|
@@ -17015,7 +17085,7 @@ function useTestRunState(campaign) {
|
|
|
17015
17085
|
const firstError = isFinished && campaign.errors.length > 0 ? campaign.errors[0].error : null;
|
|
17016
17086
|
const status = isActive ? "running" : hasRun && isFinished ? firstError ? "error" : "success" : "idle";
|
|
17017
17087
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
17018
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
17088
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunkROQTWRV7cjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
17019
17089
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
17020
17090
|
const displayRows = _react.useMemo.call(void 0,
|
|
17021
17091
|
() => campaign.results.map(
|
|
@@ -17054,7 +17124,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
17054
17124
|
),
|
|
17055
17125
|
children: [
|
|
17056
17126
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17057
|
-
|
|
17127
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
17058
17128
|
{
|
|
17059
17129
|
src: attachment.thumbnailSrc,
|
|
17060
17130
|
alt: attachment.fileName,
|
|
@@ -17147,7 +17217,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
17147
17217
|
};
|
|
17148
17218
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex items-start gap-4 rounded-[6px] p-3", "border border-ods-border bg-ods-card", className), children: [
|
|
17149
17219
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17150
|
-
|
|
17220
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
17151
17221
|
{
|
|
17152
17222
|
src: note.authorAvatar,
|
|
17153
17223
|
alt: note.authorName,
|
|
@@ -17323,16 +17393,16 @@ function TicketInfoSection({
|
|
|
17323
17393
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-card px-4 py-3 lg:grid-cols-[1fr_1fr_1fr_auto]", children: [
|
|
17324
17394
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
17325
17395
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17326
|
-
|
|
17396
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
17327
17397
|
{
|
|
17328
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
17329
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
17330
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
17398
|
+
src: _optionalChain([organization, 'optionalAccess', _395 => _395.imageSrc]),
|
|
17399
|
+
alt: _optionalChain([organization, 'optionalAccess', _396 => _396.name]),
|
|
17400
|
+
fallback: _optionalChain([organization, 'optionalAccess', _397 => _397.name]) || "Org",
|
|
17331
17401
|
size: "md",
|
|
17332
17402
|
className: "shrink-0"
|
|
17333
17403
|
}
|
|
17334
17404
|
),
|
|
17335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess',
|
|
17405
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _398 => _398.name]) || "Unassigned", label: "Organization" })
|
|
17336
17406
|
] }),
|
|
17337
17407
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17338
17408
|
AssigneeDropdown,
|
|
@@ -17350,10 +17420,10 @@ function TicketInfoSection({
|
|
|
17350
17420
|
] }),
|
|
17351
17421
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: "Assigned" })
|
|
17352
17422
|
] }) }),
|
|
17353
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess',
|
|
17423
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _399 => _399.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _400 => _400.icon]), onClick: _optionalChain([device, 'optionalAccess', _401 => _401.onClick]) }),
|
|
17354
17424
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
17355
17425
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17356
|
-
|
|
17426
|
+
_chunkROQTWRV7cjs.TicketStatusTag,
|
|
17357
17427
|
{
|
|
17358
17428
|
status: _nullishCoalesce(status, () => ( "")),
|
|
17359
17429
|
label: statusLabel,
|
|
@@ -17392,9 +17462,9 @@ function TicketInfoSection({
|
|
|
17392
17462
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
17393
17463
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
|
|
17394
17464
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
17395
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17465
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.SimpleMarkdownRenderer, { content: description }),
|
|
17396
17466
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
17397
|
-
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17467
|
+
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
17398
17468
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17399
17469
|
TicketNotesSection,
|
|
17400
17470
|
{
|
|
@@ -17417,7 +17487,7 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
17417
17487
|
const { label, color } = option;
|
|
17418
17488
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
17419
17489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
17420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17490
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color }),
|
|
17421
17491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TruncateText, { className: "text-inherit", children: label }) })
|
|
17422
17492
|
] }),
|
|
17423
17493
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -17427,7 +17497,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
17427
17497
|
const { label, imageUrl } = option;
|
|
17428
17498
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
17429
17499
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
17430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17500
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
17431
17501
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TruncateText, { className: "text-inherit", children: label }) })
|
|
17432
17502
|
] }),
|
|
17433
17503
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -17455,16 +17525,16 @@ function TakeOverTicketModal({
|
|
|
17455
17525
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
17456
17526
|
}
|
|
17457
17527
|
}
|
|
17458
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
17528
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _402 => _402[0], 'optionalAccess', _403 => _403.value]))), () => ( null));
|
|
17459
17529
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
17460
17530
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
17461
17531
|
const handleConfirm = () => {
|
|
17462
17532
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
17463
17533
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
17464
17534
|
};
|
|
17465
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17535
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17466
17536
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17467
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17537
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
17468
17538
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17469
17539
|
"The ticket ",
|
|
17470
17540
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17479,7 +17549,7 @@ function TakeOverTicketModal({
|
|
|
17479
17549
|
value: selectedStatusId,
|
|
17480
17550
|
onChange: setStatusId,
|
|
17481
17551
|
placeholder: "Select Status",
|
|
17482
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17552
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17483
17553
|
renderOption: renderTicketStatusOption
|
|
17484
17554
|
}
|
|
17485
17555
|
) }),
|
|
@@ -17493,7 +17563,7 @@ function TakeOverTicketModal({
|
|
|
17493
17563
|
placeholder: "Select Technician",
|
|
17494
17564
|
loading: assigneesLoading,
|
|
17495
17565
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17496
|
-
|
|
17566
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
17497
17567
|
{
|
|
17498
17568
|
src: selectedAssignee.imageUrl,
|
|
17499
17569
|
alt: selectedAssignee.label,
|
|
@@ -17506,7 +17576,7 @@ function TakeOverTicketModal({
|
|
|
17506
17576
|
}
|
|
17507
17577
|
) })
|
|
17508
17578
|
] }),
|
|
17509
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17579
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.ModalFooter, { children: [
|
|
17510
17580
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17511
17581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17512
17582
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17553,7 +17623,7 @@ function ReopenTicketModal({
|
|
|
17553
17623
|
setReason("");
|
|
17554
17624
|
}
|
|
17555
17625
|
}
|
|
17556
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
17626
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _404 => _404[0], 'optionalAccess', _405 => _405.value]))), () => ( null));
|
|
17557
17627
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
17558
17628
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
17559
17629
|
const handleConfirm = () => {
|
|
@@ -17565,9 +17635,9 @@ function ReopenTicketModal({
|
|
|
17565
17635
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
17566
17636
|
});
|
|
17567
17637
|
};
|
|
17568
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17638
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17569
17639
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17640
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
17571
17641
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17572
17642
|
"The ticket ",
|
|
17573
17643
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17582,7 +17652,7 @@ function ReopenTicketModal({
|
|
|
17582
17652
|
value: selectedStatusId,
|
|
17583
17653
|
onChange: setStatusId,
|
|
17584
17654
|
placeholder: "Select Status",
|
|
17585
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17655
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17586
17656
|
renderOption: renderTicketStatusOption
|
|
17587
17657
|
}
|
|
17588
17658
|
) }),
|
|
@@ -17596,7 +17666,7 @@ function ReopenTicketModal({
|
|
|
17596
17666
|
placeholder: "Select Technician",
|
|
17597
17667
|
loading: assigneesLoading,
|
|
17598
17668
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17599
|
-
|
|
17669
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
17600
17670
|
{
|
|
17601
17671
|
src: selectedAssignee.imageUrl,
|
|
17602
17672
|
alt: selectedAssignee.label,
|
|
@@ -17620,7 +17690,7 @@ function ReopenTicketModal({
|
|
|
17620
17690
|
disabled: isPending
|
|
17621
17691
|
}
|
|
17622
17692
|
) }),
|
|
17623
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17693
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.ModalFooter, { children: [
|
|
17624
17694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17625
17695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17626
17696
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17668,9 +17738,9 @@ function ReopenTicketRequestModal({
|
|
|
17668
17738
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
17669
17739
|
});
|
|
17670
17740
|
};
|
|
17671
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17741
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17672
17742
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17673
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
17674
17744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "This ticket will be reopened and the AI assistant will continue helping you." }),
|
|
17675
17745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17676
17746
|
Textarea,
|
|
@@ -17694,7 +17764,7 @@ function ReopenTicketRequestModal({
|
|
|
17694
17764
|
disabled: isPending
|
|
17695
17765
|
}
|
|
17696
17766
|
),
|
|
17697
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17767
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.ModalFooter, { children: [
|
|
17698
17768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
17699
17769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
17700
17770
|
] })
|
|
@@ -17955,10 +18025,10 @@ function AccountDetailsFields({
|
|
|
17955
18025
|
onKeyDown,
|
|
17956
18026
|
layout = "stacked"
|
|
17957
18027
|
}) {
|
|
17958
|
-
const firstNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17959
|
-
const lastNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17960
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17961
|
-
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18028
|
+
const firstNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _406 => _406.firstName]), firstName);
|
|
18029
|
+
const lastNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _407 => _407.lastName]), lastName);
|
|
18030
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _408 => _408.password]), password);
|
|
18031
|
+
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _409 => _409.confirmPassword]), confirmPassword);
|
|
17962
18032
|
const names = [
|
|
17963
18033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17964
18034
|
_chunkN6HNK25Acjs.Input,
|
|
@@ -18198,7 +18268,7 @@ function SsoProviderButtons({
|
|
|
18198
18268
|
disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
|
|
18199
18269
|
className: "disabled:bg-ods-bg",
|
|
18200
18270
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon2, { className: "h-5 w-5" }),
|
|
18201
|
-
onClick: () => _optionalChain([onSsoClick, 'optionalCall',
|
|
18271
|
+
onClick: () => _optionalChain([onSsoClick, 'optionalCall', _410 => _410(provider)]),
|
|
18202
18272
|
children: `${actionLabel} ${meta.name}`
|
|
18203
18273
|
},
|
|
18204
18274
|
provider
|
|
@@ -18376,9 +18446,9 @@ function CreateOrganizationForm({
|
|
|
18376
18446
|
}) {
|
|
18377
18447
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18378
18448
|
const fieldsDisabled = disabled || loading;
|
|
18379
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18380
|
-
const orgNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18381
|
-
const domainErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18449
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _411 => _411.email]), _nullishCoalesce(email, () => ( "")));
|
|
18450
|
+
const orgNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _412 => _412.organizationName]), organizationName);
|
|
18451
|
+
const domainErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _413 => _413.domain]), domain);
|
|
18382
18452
|
const handleKeyDown = (event) => {
|
|
18383
18453
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18384
18454
|
onSubmit();
|
|
@@ -18403,11 +18473,11 @@ function CreateOrganizationForm({
|
|
|
18403
18473
|
label: "Email",
|
|
18404
18474
|
placeholder: "username@mail.com",
|
|
18405
18475
|
value: email,
|
|
18406
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18407
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18476
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _414 => _414.message]))),
|
|
18477
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _415 => _415.variant]),
|
|
18408
18478
|
disabled: fieldsDisabled,
|
|
18409
18479
|
onBlur: emailErr.onBlur,
|
|
18410
|
-
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall',
|
|
18480
|
+
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _416 => _416(event.target.value)]),
|
|
18411
18481
|
onKeyDown: handleKeyDown
|
|
18412
18482
|
}
|
|
18413
18483
|
),
|
|
@@ -18431,8 +18501,8 @@ function CreateOrganizationForm({
|
|
|
18431
18501
|
label: "Domain",
|
|
18432
18502
|
placeholder: domainPlaceholder,
|
|
18433
18503
|
value: domain,
|
|
18434
|
-
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess',
|
|
18435
|
-
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess',
|
|
18504
|
+
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _417 => _417.message]))),
|
|
18505
|
+
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _418 => _418.variant]),
|
|
18436
18506
|
disabled: fieldsDisabled,
|
|
18437
18507
|
onBlur: domainErr.onBlur,
|
|
18438
18508
|
endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
@@ -18467,7 +18537,7 @@ function CreateOrganizationForm({
|
|
|
18467
18537
|
label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
|
|
18468
18538
|
checked: agreedToTerms,
|
|
18469
18539
|
disabled: fieldsDisabled,
|
|
18470
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
18540
|
+
error: _optionalChain([errors, 'optionalAccess', _419 => _419.terms]),
|
|
18471
18541
|
onCheckedChange: onAgreedToTermsChange
|
|
18472
18542
|
}
|
|
18473
18543
|
),
|
|
@@ -18594,10 +18664,10 @@ function LoginForm({
|
|
|
18594
18664
|
className
|
|
18595
18665
|
}) {
|
|
18596
18666
|
const fieldDisabled = disabled || loading;
|
|
18597
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18667
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _420 => _420.email]), email);
|
|
18598
18668
|
const handleKeyDown = (event) => {
|
|
18599
18669
|
if (event.key !== "Enter" || fieldDisabled || submitDisabled) return;
|
|
18600
|
-
_optionalChain([onSubmitClick, 'optionalCall',
|
|
18670
|
+
_optionalChain([onSubmitClick, 'optionalCall', _421 => _421()]);
|
|
18601
18671
|
};
|
|
18602
18672
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18603
18673
|
"div",
|
|
@@ -18629,8 +18699,8 @@ function LoginForm({
|
|
|
18629
18699
|
label: "Email",
|
|
18630
18700
|
placeholder: emailPlaceholder,
|
|
18631
18701
|
value: email,
|
|
18632
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18633
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18702
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _422 => _422.message]))),
|
|
18703
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _423 => _423.variant]),
|
|
18634
18704
|
disabled: fieldDisabled,
|
|
18635
18705
|
onBlur: emailErr.onBlur,
|
|
18636
18706
|
onChange: (event) => onEmailChange(event.target.value),
|
|
@@ -18709,8 +18779,8 @@ function OpenFrameSsoLoginForm({
|
|
|
18709
18779
|
className
|
|
18710
18780
|
}) {
|
|
18711
18781
|
const fieldsDisabled = disabled || loading;
|
|
18712
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18713
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18782
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _424 => _424.email]), email);
|
|
18783
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _425 => _425.password]), password);
|
|
18714
18784
|
const handleKeyDown = (event) => {
|
|
18715
18785
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18716
18786
|
onSubmit();
|
|
@@ -18815,7 +18885,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
18815
18885
|
className
|
|
18816
18886
|
}) {
|
|
18817
18887
|
const fieldsDisabled = disabled || loading;
|
|
18818
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18888
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _426 => _426.email]), email);
|
|
18819
18889
|
const handleKeyDown = (event) => {
|
|
18820
18890
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18821
18891
|
onSubmit();
|
|
@@ -18920,8 +18990,8 @@ function PasswordResetForm({
|
|
|
18920
18990
|
className
|
|
18921
18991
|
}) {
|
|
18922
18992
|
const fieldsDisabled = disabled || loading;
|
|
18923
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18924
|
-
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18993
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _427 => _427.password]), password);
|
|
18994
|
+
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _428 => _428.confirmPassword]), confirmPassword);
|
|
18925
18995
|
const handleKeyDown = (event) => {
|
|
18926
18996
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18927
18997
|
onSubmit();
|
|
@@ -19042,7 +19112,7 @@ function SsoJoinForm({
|
|
|
19042
19112
|
className
|
|
19043
19113
|
}) {
|
|
19044
19114
|
const fieldsDisabled = disabled || loading;
|
|
19045
|
-
const displayName = _optionalChain([name, 'optionalAccess',
|
|
19115
|
+
const displayName = _optionalChain([name, 'optionalAccess', _429 => _429.trim, 'call', _430 => _430()]) || _optionalChain([email, 'optionalAccess', _431 => _431.trim, 'call', _432 => _432()]) || "";
|
|
19046
19116
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19047
19117
|
"div",
|
|
19048
19118
|
{
|
|
@@ -19057,7 +19127,7 @@ function SsoJoinForm({
|
|
|
19057
19127
|
] }),
|
|
19058
19128
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
19059
19129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19060
|
-
|
|
19130
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
19061
19131
|
{
|
|
19062
19132
|
size: "lg",
|
|
19063
19133
|
variant: "round",
|
|
@@ -19071,7 +19141,7 @@ function SsoJoinForm({
|
|
|
19071
19141
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
19072
19142
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
19073
19143
|
] }),
|
|
19074
|
-
roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19144
|
+
roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: "grey", label: role }, role)) })
|
|
19075
19145
|
] }),
|
|
19076
19146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19077
19147
|
CheckboxBlock,
|
|
@@ -19540,7 +19610,7 @@ function EntityTagBadges({ tags, basePath, max, className }) {
|
|
|
19540
19610
|
const label = (tag.name || "").toUpperCase();
|
|
19541
19611
|
if (basePath && tag.slug) {
|
|
19542
19612
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19543
|
-
|
|
19613
|
+
_chunkE2EGTHYAcjs.StatusBadge,
|
|
19544
19614
|
{
|
|
19545
19615
|
text: label,
|
|
19546
19616
|
variant: "card",
|
|
@@ -19548,9 +19618,9 @@ function EntityTagBadges({ tags, basePath, max, className }) {
|
|
|
19548
19618
|
}
|
|
19549
19619
|
) }, key);
|
|
19550
19620
|
}
|
|
19551
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19621
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }, key);
|
|
19552
19622
|
}),
|
|
19553
|
-
overflow2 > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19623
|
+
overflow2 > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.StatusBadge, { text: `+${overflow2}`, variant: "card", className: `${BADGE_CLASS} text-ods-text-secondary` })
|
|
19554
19624
|
] });
|
|
19555
19625
|
}
|
|
19556
19626
|
|
|
@@ -19627,7 +19697,7 @@ var SectionButton = ({
|
|
|
19627
19697
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
19628
19698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, titleClasses, "whitespace-normal break-words text-h4"), children: section.title }),
|
|
19629
19699
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19630
|
-
|
|
19700
|
+
_chunkE2EGTHYAcjs.StatusBadge,
|
|
19631
19701
|
{
|
|
19632
19702
|
text: section.badge.text,
|
|
19633
19703
|
variant: section.badge.variant || "button",
|
|
@@ -19646,7 +19716,7 @@ var SectionButton = ({
|
|
|
19646
19716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
19647
19717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk23V5BSHDcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
19648
19718
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19649
|
-
|
|
19719
|
+
_chunkE2EGTHYAcjs.StatusBadge,
|
|
19650
19720
|
{
|
|
19651
19721
|
text: section.badge.text,
|
|
19652
19722
|
variant: section.badge.variant || "button",
|
|
@@ -19717,10 +19787,10 @@ var getContentDimensions = (config) => {
|
|
|
19717
19787
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
19718
19788
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
19719
19789
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
19720
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
19721
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
19722
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
19723
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
19790
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _433 => _433.mobileContentDimensions, 'optionalAccess', _434 => _434.width]))), () => ( defaultMobile.width));
|
|
19791
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _435 => _435.mobileContentDimensions, 'optionalAccess', _436 => _436.height]))), () => ( defaultMobile.height));
|
|
19792
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _437 => _437.desktopContentDimensions, 'optionalAccess', _438 => _438.width]))), () => ( defaultDesktop.width));
|
|
19793
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _439 => _439.desktopContentDimensions, 'optionalAccess', _440 => _440.height]))), () => ( defaultDesktop.height));
|
|
19724
19794
|
return {
|
|
19725
19795
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
19726
19796
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -19876,7 +19946,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
19876
19946
|
const contentDimensions = getContentDimensions(config);
|
|
19877
19947
|
const mobileHeight = contentDimensions.mobile.height;
|
|
19878
19948
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
19879
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
19949
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _441 => _441.innerHeight]) * 0.85 || 650)}px`;
|
|
19880
19950
|
})(),
|
|
19881
19951
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
19882
19952
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -19934,7 +20004,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
19934
20004
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-presentation",
|
|
19935
20005
|
title: config.title,
|
|
19936
20006
|
loading: "eager",
|
|
19937
|
-
...
|
|
20007
|
+
..._chunkROQTWRV7cjs.fetchPriorityProp.call(void 0, "high")
|
|
19938
20008
|
},
|
|
19939
20009
|
iframeKey
|
|
19940
20010
|
),
|
|
@@ -19979,7 +20049,7 @@ var FigmaPrototypeViewer = ({
|
|
|
19979
20049
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
19980
20050
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
19981
20051
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
19982
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
20052
|
+
config.defaultSectionId || _optionalChain([config, 'access', _442 => _442.sections, 'access', _443 => _443[0], 'optionalAccess', _444 => _444.id]) || ""
|
|
19983
20053
|
);
|
|
19984
20054
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
19985
20055
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -20077,19 +20147,19 @@ var FigmaPrototypeViewer = ({
|
|
|
20077
20147
|
setIframeState("READY");
|
|
20078
20148
|
break;
|
|
20079
20149
|
case "PRESENTED_NODE_CHANGED":
|
|
20080
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
20150
|
+
if (_optionalChain([figmaEvent, 'access', _445 => _445.data, 'optionalAccess', _446 => _446.presentedNodeId])) {
|
|
20081
20151
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
20082
20152
|
if (!isNavigating) {
|
|
20083
20153
|
const matchingSection = configSections.find((s) => {
|
|
20084
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20085
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20154
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _447 => _447.data, 'optionalAccess', _448 => _448.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _449 => _449.data, 'optionalAccess', _450 => _450.presentedNodeId]);
|
|
20155
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _451 => _451.data, 'optionalAccess', _452 => _452.presentedNodeId]) || _optionalChain([s, 'access', _453 => _453.mobileStartingNodeId, 'optionalAccess', _454 => _454.replace, 'call', _455 => _455(":", "-")]) === _optionalChain([figmaEvent, 'access', _456 => _456.data, 'optionalAccess', _457 => _457.presentedNodeId]);
|
|
20086
20156
|
return desktopMatch || mobileMatch;
|
|
20087
20157
|
});
|
|
20088
20158
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
20089
20159
|
if (!externalActiveSection) {
|
|
20090
20160
|
setInternalActiveSection(matchingSection.id);
|
|
20091
20161
|
}
|
|
20092
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
20162
|
+
_optionalChain([onSectionChange, 'optionalCall', _458 => _458(matchingSection.id)]);
|
|
20093
20163
|
}
|
|
20094
20164
|
}
|
|
20095
20165
|
}
|
|
@@ -20103,7 +20173,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20103
20173
|
const navigateToSection = _react.useCallback.call(void 0,
|
|
20104
20174
|
(sectionId) => {
|
|
20105
20175
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
20106
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
20176
|
+
if (!section || !_optionalChain([iframeRef, 'access', _459 => _459.current, 'optionalAccess', _460 => _460.contentWindow]) || !isInitialized) {
|
|
20107
20177
|
return;
|
|
20108
20178
|
}
|
|
20109
20179
|
setIsNavigating(true);
|
|
@@ -20111,7 +20181,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20111
20181
|
if (!externalActiveSection) {
|
|
20112
20182
|
setInternalActiveSection(sectionId);
|
|
20113
20183
|
}
|
|
20114
|
-
_optionalChain([config, 'access',
|
|
20184
|
+
_optionalChain([config, 'access', _461 => _461.onSectionChange, 'optionalCall', _462 => _462(sectionId)]);
|
|
20115
20185
|
const command = {
|
|
20116
20186
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
20117
20187
|
data: { nodeId }
|
|
@@ -20448,7 +20518,7 @@ var FiltersDropdown = ({
|
|
|
20448
20518
|
defaults[section.id] = section.defaultSelected || [];
|
|
20449
20519
|
});
|
|
20450
20520
|
setSelectedFilters(defaults);
|
|
20451
|
-
_optionalChain([onReset, 'optionalCall',
|
|
20521
|
+
_optionalChain([onReset, 'optionalCall', _463 => _463()]);
|
|
20452
20522
|
setIsOpen(false);
|
|
20453
20523
|
};
|
|
20454
20524
|
const handleApply = () => {
|
|
@@ -20697,7 +20767,7 @@ function MediaGalleryManager({
|
|
|
20697
20767
|
const [draggedIndex, setDraggedIndex] = _react.useState.call(void 0, null);
|
|
20698
20768
|
const handleFileSelect = _react.useCallback.call(void 0,
|
|
20699
20769
|
async (event) => {
|
|
20700
|
-
const file = _optionalChain([event, 'access',
|
|
20770
|
+
const file = _optionalChain([event, 'access', _464 => _464.target, 'access', _465 => _465.files, 'optionalAccess', _466 => _466[0]]);
|
|
20701
20771
|
if (!file) return;
|
|
20702
20772
|
let mediaType;
|
|
20703
20773
|
if (file.type.startsWith("image/")) {
|
|
@@ -20760,7 +20830,7 @@ function MediaGalleryManager({
|
|
|
20760
20830
|
(mediaItem, index) => {
|
|
20761
20831
|
const isDeleting = deletingIndex === index;
|
|
20762
20832
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20763
|
-
|
|
20833
|
+
_chunkE2EGTHYAcjs.Card,
|
|
20764
20834
|
{
|
|
20765
20835
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
20766
20836
|
draggable: true,
|
|
@@ -20781,10 +20851,10 @@ function MediaGalleryManager({
|
|
|
20781
20851
|
children: isDeleting ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin text-ods-text-on-dark" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-on-dark" })
|
|
20782
20852
|
}
|
|
20783
20853
|
) }),
|
|
20784
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children:
|
|
20854
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: _chunkE2EGTHYAcjs.isVideoMedia.call(void 0, mediaItem) || mediaItem.media_type === "demo" ? (
|
|
20785
20855
|
// <Video> SSOT (MuxPlayer) — plays Mux HLS + MP4 alike;
|
|
20786
20856
|
// fit="cover" crops to the aspect-video cell.
|
|
20787
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20857
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "file", url: mediaItem.media_url, fit: "cover", className: "h-full w-full" })
|
|
20788
20858
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20789
20859
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
20790
20860
|
{
|
|
@@ -20797,7 +20867,7 @@ function MediaGalleryManager({
|
|
|
20797
20867
|
) }),
|
|
20798
20868
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "p-3", children: [
|
|
20799
20869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex items-center gap-2", children: [
|
|
20800
|
-
|
|
20870
|
+
_chunkE2EGTHYAcjs.isVideoMedia.call(void 0, mediaItem) || mediaItem.media_type === "demo" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "h-4 w-4 text-ods-text-secondary" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Image, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
20801
20871
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "capitalize text-ods-text-primary text-h6", children: mediaItem.media_type })
|
|
20802
20872
|
] }),
|
|
20803
20873
|
mediaItem.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: mediaItem.title })
|
|
@@ -20822,7 +20892,7 @@ function MediaGalleryManager({
|
|
|
20822
20892
|
{
|
|
20823
20893
|
type: "button",
|
|
20824
20894
|
variant: "outline",
|
|
20825
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
20895
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _467 => _467.current, 'optionalAccess', _468 => _468.click, 'call', _469 => _469()]),
|
|
20826
20896
|
disabled: isUploading,
|
|
20827
20897
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
20828
20898
|
className: "font-bold text-h6",
|
|
@@ -22947,9 +23017,9 @@ function PushButtonSelector({
|
|
|
22947
23017
|
}) {
|
|
22948
23018
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
22949
23019
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
22950
|
-
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
22951
|
-
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
22952
|
-
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess',
|
|
23020
|
+
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _470 => _470.hasMore]), () => ( false));
|
|
23021
|
+
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _471 => _471.isFetchingMore]), () => ( false));
|
|
23022
|
+
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _472 => _472.onLoadMore]);
|
|
22953
23023
|
const optionCount = options.length;
|
|
22954
23024
|
_react.useEffect.call(void 0, () => {
|
|
22955
23025
|
const sentinel = sentinelRef.current;
|
|
@@ -23035,9 +23105,9 @@ function PushButtonSelector({
|
|
|
23035
23105
|
option.id
|
|
23036
23106
|
);
|
|
23037
23107
|
if (option.disabled && option.disabledReason) {
|
|
23038
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23040
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23108
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Tooltip, { children: [
|
|
23109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipTrigger, { asChild: true, children: optionEl }),
|
|
23110
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipContent, { className: "max-w-xs", children: option.disabledReason })
|
|
23041
23111
|
] }, option.id);
|
|
23042
23112
|
}
|
|
23043
23113
|
return optionEl;
|
|
@@ -23082,7 +23152,7 @@ function PushButtonSelector({
|
|
|
23082
23152
|
lazyLoad.isFetchingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-2 text-center text-ods-text-secondary text-h6", children: "Loading more\u2026" }) : null
|
|
23083
23153
|
] }) : null
|
|
23084
23154
|
] });
|
|
23085
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23155
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `space-y-4 ${className}`, children: [
|
|
23086
23156
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h5", children: title }),
|
|
23087
23157
|
searchInput,
|
|
23088
23158
|
lazyLoad ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23120,7 +23190,7 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
23120
23190
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
23121
23191
|
const [uploadingIndex, setUploadingIndex] = _react.useState.call(void 0, null);
|
|
23122
23192
|
const handleFileSelect = async (event) => {
|
|
23123
|
-
const file = _optionalChain([event, 'access',
|
|
23193
|
+
const file = _optionalChain([event, 'access', _473 => _473.target, 'access', _474 => _474.files, 'optionalAccess', _475 => _475[0]]);
|
|
23124
23194
|
if (!file) return;
|
|
23125
23195
|
let mediaType;
|
|
23126
23196
|
if (file.type.startsWith("image/")) {
|
|
@@ -23202,7 +23272,7 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
23202
23272
|
{
|
|
23203
23273
|
type: "button",
|
|
23204
23274
|
variant: "outline",
|
|
23205
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
23275
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _476 => _476.current, 'optionalAccess', _477 => _477.click, 'call', _478 => _478()]),
|
|
23206
23276
|
disabled: uploadingIndex !== null,
|
|
23207
23277
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
23208
23278
|
className: "font-bold text-h6",
|
|
@@ -23252,10 +23322,10 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
23252
23322
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-on-dark" })
|
|
23253
23323
|
}
|
|
23254
23324
|
) }),
|
|
23255
|
-
item.media_url && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video bg-ods-bg", children:
|
|
23325
|
+
item.media_url && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video bg-ods-bg", children: _chunkE2EGTHYAcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo" ? (
|
|
23256
23326
|
// <Video> SSOT (MuxPlayer) — plays Mux HLS + MP4 alike;
|
|
23257
23327
|
// fit="cover" crops to the aspect-video cell.
|
|
23258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23328
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
23259
23329
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23260
23330
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
23261
23331
|
{
|
|
@@ -23388,7 +23458,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23388
23458
|
}
|
|
23389
23459
|
)
|
|
23390
23460
|
] }),
|
|
23391
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23461
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
23392
23462
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent md:size-6" })
|
|
23393
23463
|
]
|
|
23394
23464
|
}
|
|
@@ -23483,7 +23553,7 @@ function SEOEditorPreview({
|
|
|
23483
23553
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
23484
23554
|
const handleImageUpload = async (event) => {
|
|
23485
23555
|
if (!onOgImageUpload) return;
|
|
23486
|
-
const file = _optionalChain([event, 'access',
|
|
23556
|
+
const file = _optionalChain([event, 'access', _479 => _479.target, 'access', _480 => _480.files, 'optionalAccess', _481 => _481[0]]);
|
|
23487
23557
|
if (!file) return;
|
|
23488
23558
|
setIsUploading(true);
|
|
23489
23559
|
try {
|
|
@@ -23640,7 +23710,7 @@ function SEOEditorPreview({
|
|
|
23640
23710
|
type: "button",
|
|
23641
23711
|
variant: "outline",
|
|
23642
23712
|
size: "icon",
|
|
23643
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
23713
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _482 => _482.click, 'call', _483 => _483()]),
|
|
23644
23714
|
disabled: disabled || isUploading,
|
|
23645
23715
|
className: "rounded-full bg-white text-black opacity-0 hover:bg-gray-100 group-hover:opacity-100",
|
|
23646
23716
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -23666,7 +23736,7 @@ function SEOEditorPreview({
|
|
|
23666
23736
|
SEO_MEDIA_BOX_HEIGHT,
|
|
23667
23737
|
"flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-ods-border bg-ods-bg-hover transition-colors hover:border-ods-accent"
|
|
23668
23738
|
),
|
|
23669
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
23739
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _484 => _484.click, 'call', _485 => _485()]),
|
|
23670
23740
|
children: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23671
23741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
|
|
23672
23742
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -23827,7 +23897,7 @@ function SocialLinksManager({
|
|
|
23827
23897
|
className = ""
|
|
23828
23898
|
}) {
|
|
23829
23899
|
const addLink = () => {
|
|
23830
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
23900
|
+
const firstPlatform = _optionalChain([platforms, 'access', _486 => _486[0], 'optionalAccess', _487 => _487.name]) || "website";
|
|
23831
23901
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
23832
23902
|
};
|
|
23833
23903
|
const removeLink = (index) => {
|
|
@@ -23839,7 +23909,7 @@ function SocialLinksManager({
|
|
|
23839
23909
|
onChange(updated);
|
|
23840
23910
|
};
|
|
23841
23911
|
const getIcon = (link, platform) => {
|
|
23842
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
23912
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _488 => _488.icon_name]) || link.platform;
|
|
23843
23913
|
const key = normalizeSocialPlatform(iconKey);
|
|
23844
23914
|
if (!key) return null;
|
|
23845
23915
|
const IconComponent = SOCIAL_ICON_COMPONENTS[key];
|
|
@@ -23863,7 +23933,7 @@ function SocialLinksManager({
|
|
|
23863
23933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23864
23934
|
_chunkN6HNK25Acjs.Input,
|
|
23865
23935
|
{
|
|
23866
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
23936
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _489 => _489.placeholder]) || "Profile URL",
|
|
23867
23937
|
value: link.url,
|
|
23868
23938
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
23869
23939
|
onKeyDown: (e) => {
|
|
@@ -23976,7 +24046,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23976
24046
|
className: _chunk23V5BSHDcjs.cn.call(void 0, modeClassName, className),
|
|
23977
24047
|
style: customStyle,
|
|
23978
24048
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63QUMV72cjs.OpenFrameLogo, { className: "h-5 w-5", lowerPathColor: iconLowerPath, upperPathColor: iconUpperPath }) : void 0,
|
|
23979
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24049
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23980
24050
|
children
|
|
23981
24051
|
}
|
|
23982
24052
|
);
|
|
@@ -24246,11 +24316,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
24246
24316
|
|
|
24247
24317
|
function VideoBitesDisplay({
|
|
24248
24318
|
bites,
|
|
24249
|
-
title =
|
|
24319
|
+
title = _chunkE2EGTHYAcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
24250
24320
|
filterPublished = true,
|
|
24251
24321
|
showTitle = true
|
|
24252
24322
|
}) {
|
|
24253
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24323
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
24254
24324
|
}
|
|
24255
24325
|
|
|
24256
24326
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -24259,8 +24329,8 @@ function VideoBitesDisplay({
|
|
|
24259
24329
|
|
|
24260
24330
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24261
24331
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
24262
|
-
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
24263
|
-
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
24332
|
+
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _490 => _490.getCurrentTime, 'call', _491 => _491()]), () => ( 0));
|
|
24333
|
+
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _492 => _492.getDuration, 'call', _493 => _493()]), () => ( 0)), time);
|
|
24264
24334
|
return {
|
|
24265
24335
|
// At end -> start over, never rewind to an unrelated older anchor.
|
|
24266
24336
|
time: atEnd ? 0 : time > 0.5 ? time : fallbackTime,
|
|
@@ -24292,11 +24362,11 @@ function WalkthroughVideo({
|
|
|
24292
24362
|
const inline = placement === "inline";
|
|
24293
24363
|
const dismissEnabled = dismissal !== false;
|
|
24294
24364
|
const storageKey = dismissEnabled && dismissal.storageKey || WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24295
|
-
const dismissalId = _optionalChain([video, 'optionalAccess',
|
|
24365
|
+
const dismissalId = _optionalChain([video, 'optionalAccess', _494 => _494.id]) != null ? String(video.id) : "dismissed";
|
|
24296
24366
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24297
24367
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
24298
24368
|
const hasVideo = video != null;
|
|
24299
|
-
const videoId = _optionalChain([video, 'optionalAccess',
|
|
24369
|
+
const videoId = _optionalChain([video, 'optionalAccess', _495 => _495.id]);
|
|
24300
24370
|
_react.useEffect.call(void 0, () => {
|
|
24301
24371
|
let idleHandle = null;
|
|
24302
24372
|
if (!hasVideo) return void 0;
|
|
@@ -24319,13 +24389,13 @@ function WalkthroughVideo({
|
|
|
24319
24389
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24320
24390
|
};
|
|
24321
24391
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId]);
|
|
24322
|
-
const hydrated =
|
|
24392
|
+
const hydrated = _chunkROQTWRV7cjs.useIsHydrated.call(void 0, );
|
|
24323
24393
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24324
24394
|
if (!hydrated) return false;
|
|
24325
24395
|
try {
|
|
24326
|
-
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access',
|
|
24396
|
+
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _496 => _496.matchMedia, 'optionalCall', _497 => _497("(prefers-reduced-motion: reduce)"), 'access', _498 => _498.matches]), () => ( false));
|
|
24327
24397
|
const conn = navigator.connection;
|
|
24328
|
-
const saveData = _optionalChain([conn, 'optionalAccess',
|
|
24398
|
+
const saveData = _optionalChain([conn, 'optionalAccess', _499 => _499.saveData]) === true || _optionalChain([conn, 'optionalAccess', _500 => _500.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _501 => _501.effectiveType]) === "slow-2g";
|
|
24329
24399
|
return Boolean(reducedMotion || saveData);
|
|
24330
24400
|
} catch (e28) {
|
|
24331
24401
|
return false;
|
|
@@ -24358,18 +24428,18 @@ function WalkthroughVideo({
|
|
|
24358
24428
|
const [cardMuted, setCardMuted] = _react.useState.call(void 0, false);
|
|
24359
24429
|
const [cardPaused, setCardPaused] = _react.useState.call(void 0, false);
|
|
24360
24430
|
const [userMuted, setUserMuted] = _react.useState.call(void 0, false);
|
|
24361
|
-
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess',
|
|
24431
|
+
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _502 => _502.youtubeUrl]));
|
|
24362
24432
|
const resumeMode = !open && handoff !== null && !isYouTube;
|
|
24363
24433
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
24364
24434
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
24365
|
-
const footerHidden = _optionalChain([footerObservation, 'optionalAccess',
|
|
24435
|
+
const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _503 => _503.key]) === footerFadeKey && footerObservation.hidden;
|
|
24366
24436
|
_react.useEffect.call(void 0, () => {
|
|
24367
24437
|
if (!mounted) return void 0;
|
|
24368
24438
|
if (inline) return void 0;
|
|
24369
24439
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
24370
24440
|
if (!el || typeof IntersectionObserver === "undefined") return void 0;
|
|
24371
24441
|
const io = new IntersectionObserver(
|
|
24372
|
-
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access',
|
|
24442
|
+
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _504 => _504[0], 'optionalAccess', _505 => _505.isIntersecting]), () => ( false)) }),
|
|
24373
24443
|
{ rootMargin: "0px 0px -40px 0px" }
|
|
24374
24444
|
);
|
|
24375
24445
|
io.observe(el);
|
|
@@ -24395,7 +24465,7 @@ function WalkthroughVideo({
|
|
|
24395
24465
|
if (!footerHidden) return;
|
|
24396
24466
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24397
24467
|
try {
|
|
24398
|
-
_optionalChain([h, 'optionalAccess',
|
|
24468
|
+
_optionalChain([h, 'optionalAccess', _506 => _506.pause, 'call', _507 => _507()]);
|
|
24399
24469
|
} catch (e30) {
|
|
24400
24470
|
}
|
|
24401
24471
|
}, [footerHidden, resumeMode, hovered]);
|
|
@@ -24414,30 +24484,30 @@ function WalkthroughVideo({
|
|
|
24414
24484
|
}, 400);
|
|
24415
24485
|
}
|
|
24416
24486
|
if (openProp === void 0) setOpenState(next);
|
|
24417
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
24487
|
+
_optionalChain([onOpenChange, 'optionalCall', _508 => _508(next)]);
|
|
24418
24488
|
},
|
|
24419
24489
|
[openProp, onOpenChange]
|
|
24420
24490
|
);
|
|
24421
24491
|
const pausePreviewNow = _react.useCallback.call(void 0, () => {
|
|
24422
24492
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24423
24493
|
try {
|
|
24424
|
-
_optionalChain([h, 'optionalAccess',
|
|
24494
|
+
_optionalChain([h, 'optionalAccess', _509 => _509.pause, 'call', _510 => _510()]);
|
|
24425
24495
|
} catch (e31) {
|
|
24426
24496
|
}
|
|
24427
24497
|
setCardPaused(true);
|
|
24428
24498
|
}, [setCardPaused]);
|
|
24429
24499
|
const openTheater = _react.useCallback.call(void 0, () => {
|
|
24430
24500
|
const handleBeforePause = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24431
|
-
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess',
|
|
24501
|
+
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _511 => _511.getPaused, 'call', _512 => _512()]) === false;
|
|
24432
24502
|
pausePreviewNow();
|
|
24433
24503
|
const liveHandle = _nullishCoalesce(resumeHandleRef.current, () => ( (cardModeRef.current === "preview" ? previewHandleRef.current : null)));
|
|
24434
|
-
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
24435
|
-
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
24504
|
+
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _513 => _513.getCurrentTime, 'call', _514 => _514()]), () => ( 0));
|
|
24505
|
+
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _515 => _515.getDuration, 'call', _516 => _516()]), () => ( 0));
|
|
24436
24506
|
const liveAtEnd = isAtEnd(liveDuration, liveTime);
|
|
24437
24507
|
const start = {
|
|
24438
24508
|
// At end -> start over. Falling back to `handoff.time` here would rewind
|
|
24439
24509
|
// to an unrelated older anchor (e.g. 3:20) instead of restarting.
|
|
24440
|
-
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
24510
|
+
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _517 => _517.time]), () => ( 0)),
|
|
24441
24511
|
// Live element wins over remembered intent (the theater's own chrome may
|
|
24442
24512
|
// have changed it) — EXCEPT when the element is muted only because
|
|
24443
24513
|
// autoplay policy forced it, which is not intent.
|
|
@@ -24465,7 +24535,7 @@ function WalkthroughVideo({
|
|
|
24465
24535
|
const selfDriven = selfDrivenFor === open;
|
|
24466
24536
|
if (openProp !== void 0 && !selfDriven) {
|
|
24467
24537
|
if (open) {
|
|
24468
|
-
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
24538
|
+
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _518 => _518.time]), () => ( 0)), userMuted));
|
|
24469
24539
|
setHovered(false);
|
|
24470
24540
|
setSuspended(false);
|
|
24471
24541
|
setHandoff(null);
|
|
@@ -24551,8 +24621,8 @@ function WalkthroughVideo({
|
|
|
24551
24621
|
});
|
|
24552
24622
|
_react.useEffect.call(void 0, () => {
|
|
24553
24623
|
if (resumeMode) {
|
|
24554
|
-
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access',
|
|
24555
|
-
setCardPaused(_optionalChain([handoffRef, 'access',
|
|
24624
|
+
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.muted]), () => ( false)));
|
|
24625
|
+
setCardPaused(_optionalChain([handoffRef, 'access', _521 => _521.current, 'optionalAccess', _522 => _522.playing]) === false);
|
|
24556
24626
|
}
|
|
24557
24627
|
}, [resumeMode]);
|
|
24558
24628
|
const [hoverSeeded, setHoverSeeded] = _react.useState.call(void 0, hovered);
|
|
@@ -24634,11 +24704,11 @@ function WalkthroughVideo({
|
|
|
24634
24704
|
},
|
|
24635
24705
|
[cardFallback.blocked, cardPaused, activeHandle, setCardPaused]
|
|
24636
24706
|
);
|
|
24637
|
-
const summaryTitle = _optionalChain([video, 'optionalAccess',
|
|
24638
|
-
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24707
|
+
const summaryTitle = _optionalChain([video, 'optionalAccess', _523 => _523.title]) || void 0;
|
|
24708
|
+
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _524 => _524.presenterAvatarUrl]), () => ( null));
|
|
24639
24709
|
const embedUrlKey = _react.useMemo.call(void 0,
|
|
24640
|
-
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24641
|
-
[_optionalChain([video, 'optionalAccess',
|
|
24710
|
+
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _525 => _525.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _526 => _526.youtubeUrl]), () => ( ""))}`,
|
|
24711
|
+
[_optionalChain([video, 'optionalAccess', _527 => _527.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _528 => _528.youtubeUrl])]
|
|
24642
24712
|
);
|
|
24643
24713
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24644
24714
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
@@ -24697,7 +24767,7 @@ function WalkthroughVideo({
|
|
|
24697
24767
|
const el = e.target;
|
|
24698
24768
|
let keyboard = false;
|
|
24699
24769
|
try {
|
|
24700
|
-
keyboard = _nullishCoalesce(_optionalChain([el, 'access',
|
|
24770
|
+
keyboard = _nullishCoalesce(_optionalChain([el, 'access', _529 => _529.matches, 'optionalCall', _530 => _530(":focus-visible")]), () => ( false));
|
|
24701
24771
|
} catch (e36) {
|
|
24702
24772
|
keyboard = false;
|
|
24703
24773
|
}
|
|
@@ -24716,7 +24786,7 @@ function WalkthroughVideo({
|
|
|
24716
24786
|
},
|
|
24717
24787
|
children: [
|
|
24718
24788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24719
|
-
|
|
24789
|
+
_chunkROQTWRV7cjs.VideoHoverPreviewSurface,
|
|
24720
24790
|
{
|
|
24721
24791
|
url: video.mainVideoUrl || "",
|
|
24722
24792
|
posterUrl: video.posterUrl,
|
|
@@ -24731,15 +24801,15 @@ function WalkthroughVideo({
|
|
|
24731
24801
|
previewHandleRef: cardMode === "resume" ? resumeHandleRef : previewHandleRef,
|
|
24732
24802
|
mutedIntent: userMuted,
|
|
24733
24803
|
continuation: cardMode === "resume",
|
|
24734
|
-
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess',
|
|
24735
|
-
startTime: _optionalChain([resumeHandoff, 'optionalAccess',
|
|
24736
|
-
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess',
|
|
24804
|
+
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _531 => _531.playing]) !== false && !footerHidden,
|
|
24805
|
+
startTime: _optionalChain([resumeHandoff, 'optionalAccess', _532 => _532.time]),
|
|
24806
|
+
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _533 => _533.muted]), () => ( false)),
|
|
24737
24807
|
onEnded: cardMode === "resume" ? () => setHandoff(null) : () => setCardPaused(true)
|
|
24738
24808
|
},
|
|
24739
24809
|
`card-${embedUrlKey}`
|
|
24740
24810
|
) }),
|
|
24741
24811
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24742
|
-
|
|
24812
|
+
_chunkROQTWRV7cjs.CardHitLayer,
|
|
24743
24813
|
{
|
|
24744
24814
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24745
24815
|
onPointerDown: pausePreviewNow,
|
|
@@ -24748,7 +24818,7 @@ function WalkthroughVideo({
|
|
|
24748
24818
|
}
|
|
24749
24819
|
),
|
|
24750
24820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "pointer-events-none absolute bottom-[var(--spacing-system-xsf)] left-[var(--spacing-system-xsf)] z-20 flex max-w-[calc(100%-2*var(--spacing-system-xsf))] items-center gap-[var(--spacing-system-xsf)] rounded-full bg-ods-overlay py-[var(--spacing-system-xxs)] pl-[var(--spacing-system-xxs)] pr-[var(--spacing-system-sf)] text-ods-text-primary text-h6", children: [
|
|
24751
|
-
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24821
|
+
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.SquareAvatar, { src: presenterAvatarSrc, alt: "", sizePx: 20, variant: "round", className: "shrink-0 border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.VideoPlayBadge, { size: "sm", className: "h-5 w-5 shrink-0" }),
|
|
24752
24822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24753
24823
|
] }),
|
|
24754
24824
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24761,7 +24831,7 @@ function WalkthroughVideo({
|
|
|
24761
24831
|
onPointerDown: (e) => e.stopPropagation(),
|
|
24762
24832
|
onClick: onUnmuteOrPlay,
|
|
24763
24833
|
className: "absolute inset-0 z-30 m-auto hidden sm:inline-flex",
|
|
24764
|
-
children: controlIsPlay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24834
|
+
children: controlIsPlay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.VideoPlayBadge, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.VideoUnmuteGlyph, {})
|
|
24765
24835
|
}
|
|
24766
24836
|
),
|
|
24767
24837
|
showPlaybackControls && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute left-[var(--spacing-system-xsf)] top-[var(--spacing-system-xsf)] z-30 flex items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
@@ -24830,7 +24900,7 @@ function WalkthroughVideo({
|
|
|
24830
24900
|
{
|
|
24831
24901
|
onOpenAutoFocus: (e) => {
|
|
24832
24902
|
e.preventDefault();
|
|
24833
|
-
_optionalChain([closeButtonRef, 'access',
|
|
24903
|
+
_optionalChain([closeButtonRef, 'access', _534 => _534.current, 'optionalAccess', _535 => _535.focus, 'call', _536 => _536()]);
|
|
24834
24904
|
},
|
|
24835
24905
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
24836
24906
|
// PURE theater: just the video, centered on a dimmed backdrop.
|
|
@@ -24854,7 +24924,7 @@ function WalkthroughVideo({
|
|
|
24854
24924
|
children: [
|
|
24855
24925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24856
24926
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24857
|
-
|
|
24927
|
+
_chunkROQTWRV7cjs.Video,
|
|
24858
24928
|
{
|
|
24859
24929
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24860
24930
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24905,7 +24975,7 @@ function InlineWalkthroughVideo(props) {
|
|
|
24905
24975
|
var _reactquery = require('@tanstack/react-query');
|
|
24906
24976
|
function useWalkthroughVideo(opts) {
|
|
24907
24977
|
const { endpoint, initialData, enabled = true, transformCaptionsUrl } = opts;
|
|
24908
|
-
const captions =
|
|
24978
|
+
const captions = _chunkROQTWRV7cjs.useCaptions.call(void 0, );
|
|
24909
24979
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24910
24980
|
queryKey: ["walkthrough-video", endpoint],
|
|
24911
24981
|
enabled,
|
|
@@ -24924,14 +24994,14 @@ function useWalkthroughVideo(opts) {
|
|
|
24924
24994
|
if (res.status === 404) return null;
|
|
24925
24995
|
if (!res.ok) throw new Error(`Walkthrough video request failed (${res.status})`);
|
|
24926
24996
|
const body = await res.json();
|
|
24927
|
-
return _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
24997
|
+
return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _537 => _537.walkthroughVideo]), () => ( null));
|
|
24928
24998
|
},
|
|
24929
24999
|
// Per-observer transform — NEVER mutate the cached data. `select` also runs
|
|
24930
25000
|
// over `initialData`, so the SSR seed is rewritten too. Keeping the proxy
|
|
24931
25001
|
// rewrite here (not in queryFn) means a second consumer of the same
|
|
24932
25002
|
// endpoint can't inherit this observer's proxied captionsUrl from the cache.
|
|
24933
25003
|
select: (video) => {
|
|
24934
|
-
if (!_optionalChain([video, 'optionalAccess',
|
|
25004
|
+
if (!_optionalChain([video, 'optionalAccess', _538 => _538.captionsUrl])) return video;
|
|
24935
25005
|
if (transformCaptionsUrl && video.captionsUrl.startsWith("/")) {
|
|
24936
25006
|
return { ...video, captionsUrl: transformCaptionsUrl(video.captionsUrl) };
|
|
24937
25007
|
}
|
|
@@ -24978,7 +25048,7 @@ function VideoSourceSelector({
|
|
|
24978
25048
|
input.accept = "video/*";
|
|
24979
25049
|
input.onchange = async (e) => {
|
|
24980
25050
|
const target = e.target;
|
|
24981
|
-
const file = _optionalChain([target, 'access',
|
|
25051
|
+
const file = _optionalChain([target, 'access', _539 => _539.files, 'optionalAccess', _540 => _540[0]]);
|
|
24982
25052
|
if (!file) return;
|
|
24983
25053
|
setIsUploading(true);
|
|
24984
25054
|
setUploadProgress(0);
|
|
@@ -25103,7 +25173,7 @@ function VideoSourceSelector({
|
|
|
25103
25173
|
}
|
|
25104
25174
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
25105
25175
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
25106
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25176
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "file", url: videoUrl }) }),
|
|
25107
25177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25108
25178
|
"button",
|
|
25109
25179
|
{
|
|
@@ -25154,7 +25224,7 @@ function SubtitlesEditor({
|
|
|
25154
25224
|
{
|
|
25155
25225
|
id,
|
|
25156
25226
|
value: subtitles || "",
|
|
25157
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
25227
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _541 => _541(e.target.value)]),
|
|
25158
25228
|
placeholder,
|
|
25159
25229
|
disabled: disabled || !onSubtitlesChange,
|
|
25160
25230
|
className: "h-full w-full resize-none border-0 bg-transparent p-4 text-ods-text-primary text-code placeholder:text-ods-text-secondary/50 focus:outline-none focus:ring-0",
|
|
@@ -25383,7 +25453,7 @@ var AIEnrichSection = ({
|
|
|
25383
25453
|
}) => {
|
|
25384
25454
|
const hasResults = status === "success" || status === "error";
|
|
25385
25455
|
const shouldDisable = disabled || !canEnrich;
|
|
25386
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
25456
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _542 => _542.filter, 'call', _543 => _543((f) => !f.isFilled)]) || [];
|
|
25387
25457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25388
25458
|
"div",
|
|
25389
25459
|
{
|
|
@@ -25415,7 +25485,7 @@ var AIEnrichSection = ({
|
|
|
25415
25485
|
{
|
|
25416
25486
|
id: "ai-enrich-custom-instructions",
|
|
25417
25487
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
25418
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
25488
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _544 => _544(e.target.value)]),
|
|
25419
25489
|
placeholder: customInstructionsPlaceholder,
|
|
25420
25490
|
disabled: loading,
|
|
25421
25491
|
maxLength: customInstructionsMaxLength,
|
|
@@ -25537,7 +25607,7 @@ function HighlightVideoSection({
|
|
|
25537
25607
|
input.accept = "video/*";
|
|
25538
25608
|
input.onchange = async (e) => {
|
|
25539
25609
|
const target = e.target;
|
|
25540
|
-
const file = _optionalChain([target, 'access',
|
|
25610
|
+
const file = _optionalChain([target, 'access', _545 => _545.files, 'optionalAccess', _546 => _546[0]]);
|
|
25541
25611
|
if (!file) return;
|
|
25542
25612
|
setUploadError(null);
|
|
25543
25613
|
try {
|
|
@@ -25627,7 +25697,7 @@ function HighlightVideoSection({
|
|
|
25627
25697
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25628
25698
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25629
25699
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25631
25701
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25632
25702
|
"button",
|
|
25633
25703
|
{
|
|
@@ -25964,7 +26034,7 @@ function HighlightVideoPreview({
|
|
|
25964
26034
|
input.accept = "video/*";
|
|
25965
26035
|
input.onchange = async (e) => {
|
|
25966
26036
|
const target = e.target;
|
|
25967
|
-
const file = _optionalChain([target, 'access',
|
|
26037
|
+
const file = _optionalChain([target, 'access', _547 => _547.files, 'optionalAccess', _548 => _548[0]]);
|
|
25968
26038
|
if (!file) return;
|
|
25969
26039
|
await onUpload(file);
|
|
25970
26040
|
};
|
|
@@ -26148,7 +26218,7 @@ function HighlightVideoCombinedSection({
|
|
|
26148
26218
|
input.accept = "video/*";
|
|
26149
26219
|
input.onchange = async (e) => {
|
|
26150
26220
|
const target = e.target;
|
|
26151
|
-
const file = _optionalChain([target, 'access',
|
|
26221
|
+
const file = _optionalChain([target, 'access', _549 => _549.files, 'optionalAccess', _550 => _550[0]]);
|
|
26152
26222
|
if (!file) return;
|
|
26153
26223
|
await onUpload(file);
|
|
26154
26224
|
};
|
|
@@ -26363,7 +26433,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26363
26433
|
] });
|
|
26364
26434
|
};
|
|
26365
26435
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26366
|
-
const { innerRef, containerStyle } =
|
|
26436
|
+
const { innerRef, containerStyle } = _chunkROQTWRV7cjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
26367
26437
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26368
26438
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
26369
26439
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26531,7 +26601,7 @@ function WaitlistForm({
|
|
|
26531
26601
|
const { toast } = _chunkJJUV7Z4Lcjs.useToast.call(void 0, );
|
|
26532
26602
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkJJUV7Z4Lcjs.useHumanitySignals.call(void 0, );
|
|
26533
26603
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26534
|
-
const isClient =
|
|
26604
|
+
const isClient = _chunkROQTWRV7cjs.useIsHydrated.call(void 0, );
|
|
26535
26605
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26536
26606
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26537
26607
|
const isMailDomainGeneric = hasGenericEmailDomain(email);
|
|
@@ -26827,19 +26897,19 @@ function NotificationsProvider({
|
|
|
26827
26897
|
}, []);
|
|
26828
26898
|
const markRead = _react.useCallback.call(void 0, (id) => {
|
|
26829
26899
|
dispatch({ type: "markRead", id });
|
|
26830
|
-
void _optionalChain([actionsRef, 'access',
|
|
26900
|
+
void _optionalChain([actionsRef, 'access', _551 => _551.current, 'optionalAccess', _552 => _552.onMarkRead, 'optionalCall', _553 => _553(id)]);
|
|
26831
26901
|
}, []);
|
|
26832
26902
|
const markAllRead = _react.useCallback.call(void 0, () => {
|
|
26833
26903
|
dispatch({ type: "markAllRead" });
|
|
26834
|
-
void _optionalChain([actionsRef, 'access',
|
|
26904
|
+
void _optionalChain([actionsRef, 'access', _554 => _554.current, 'optionalAccess', _555 => _555.onMarkAllRead, 'optionalCall', _556 => _556()]);
|
|
26835
26905
|
}, []);
|
|
26836
26906
|
const markSettled = _react.useCallback.call(void 0, (id) => {
|
|
26837
26907
|
dispatch({ type: "markSettled", id });
|
|
26838
|
-
void _optionalChain([actionsRef, 'access',
|
|
26908
|
+
void _optionalChain([actionsRef, 'access', _557 => _557.current, 'optionalAccess', _558 => _558.onMarkSettled, 'optionalCall', _559 => _559(id)]);
|
|
26839
26909
|
}, []);
|
|
26840
26910
|
const remove = _react.useCallback.call(void 0, (id) => {
|
|
26841
26911
|
dispatch({ type: "remove", id });
|
|
26842
|
-
void _optionalChain([actionsRef, 'access',
|
|
26912
|
+
void _optionalChain([actionsRef, 'access', _560 => _560.current, 'optionalAccess', _561 => _561.onRemove, 'optionalCall', _562 => _562(id)]);
|
|
26843
26913
|
}, []);
|
|
26844
26914
|
const clear = _react.useCallback.call(void 0, () => dispatch({ type: "clear" }), []);
|
|
26845
26915
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -26848,14 +26918,14 @@ function NotificationsProvider({
|
|
|
26848
26918
|
const setShowPopups = _react.useCallback.call(void 0,
|
|
26849
26919
|
(value2) => {
|
|
26850
26920
|
setShowPopupsState(value2);
|
|
26851
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
26921
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _563 => _563(value2)]);
|
|
26852
26922
|
},
|
|
26853
26923
|
[onShowPopupsChange]
|
|
26854
26924
|
);
|
|
26855
26925
|
const setShowDesktopPopups = _react.useCallback.call(void 0,
|
|
26856
26926
|
(value2) => {
|
|
26857
26927
|
setShowDesktopPopupsState(value2);
|
|
26858
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
26928
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _564 => _564(value2)]);
|
|
26859
26929
|
},
|
|
26860
26930
|
[onShowDesktopPopupsChange]
|
|
26861
26931
|
);
|
|
@@ -26971,7 +27041,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
26971
27041
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
26972
27042
|
(next) => {
|
|
26973
27043
|
if (!isControlled) setInternalOpen(next);
|
|
26974
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
27044
|
+
_optionalChain([onOpenChange, 'optionalCall', _565 => _565(next)]);
|
|
26975
27045
|
},
|
|
26976
27046
|
[isControlled, onOpenChange]
|
|
26977
27047
|
);
|
|
@@ -26988,9 +27058,9 @@ var AppLayoutDrawerRoot = ({
|
|
|
26988
27058
|
}
|
|
26989
27059
|
}));
|
|
26990
27060
|
_react.useEffect.call(void 0, () => {
|
|
26991
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
27061
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _566 => _566.notifyDrawerDidOpen, 'call', _567 => _567(selfHandle)]);
|
|
26992
27062
|
}, [open, coordination, selfHandle]);
|
|
26993
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
27063
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _568 => _568.registerDrawer, 'call', _569 => _569(selfHandle)]), [coordination, selfHandle]);
|
|
26994
27064
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
26995
27065
|
};
|
|
26996
27066
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27311,7 +27381,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27311
27381
|
"data-state": open ? "open" : "closed",
|
|
27312
27382
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
27313
27383
|
"absolute inset-0 z-[102] outline-none data-[state=closed]:pointer-events-none data-[state=open]:pointer-events-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
27314
|
-
|
|
27384
|
+
_chunkROQTWRV7cjs.OVERLAY_BACKDROP_CLASS,
|
|
27315
27385
|
// Persist mode only: hold the fade-out's final (transparent) frame
|
|
27316
27386
|
// so the backdrop doesn't snap back to opacity 1 and dim the whole
|
|
27317
27387
|
// content area while the drawer is "closed" (see PERSIST_CLOSED_HOLD).
|
|
@@ -27339,10 +27409,10 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27339
27409
|
),
|
|
27340
27410
|
style,
|
|
27341
27411
|
onInteractOutside: (event) => {
|
|
27342
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
27412
|
+
_optionalChain([onInteractOutside, 'optionalCall', _570 => _570(event)]);
|
|
27343
27413
|
if (event.defaultPrevented) return;
|
|
27344
27414
|
const target = event.target;
|
|
27345
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
27415
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _571 => _571.contains, 'call', _572 => _572(target)]);
|
|
27346
27416
|
if (!isInsideContainer) {
|
|
27347
27417
|
event.preventDefault();
|
|
27348
27418
|
return;
|
|
@@ -27387,11 +27457,11 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27387
27457
|
}
|
|
27388
27458
|
);
|
|
27389
27459
|
AppLayoutDrawerContent.displayName = "AppLayoutDrawerContent";
|
|
27390
|
-
var AppLayoutDrawerHeader =
|
|
27391
|
-
var AppLayoutDrawerTitle =
|
|
27392
|
-
var AppLayoutDrawerDescription =
|
|
27393
|
-
var AppLayoutDrawerBody =
|
|
27394
|
-
var AppLayoutDrawerFooter =
|
|
27460
|
+
var AppLayoutDrawerHeader = _chunkROQTWRV7cjs.DrawerHeader;
|
|
27461
|
+
var AppLayoutDrawerTitle = _chunkROQTWRV7cjs.DrawerTitle;
|
|
27462
|
+
var AppLayoutDrawerDescription = _chunkROQTWRV7cjs.DrawerDescription;
|
|
27463
|
+
var AppLayoutDrawerBody = _chunkROQTWRV7cjs.DrawerBody;
|
|
27464
|
+
var AppLayoutDrawerFooter = _chunkROQTWRV7cjs.DrawerFooter;
|
|
27395
27465
|
|
|
27396
27466
|
// src/components/features/notifications/notification-tile.tsx
|
|
27397
27467
|
|
|
@@ -27445,7 +27515,7 @@ function NotificationTile({
|
|
|
27445
27515
|
if (!counting) return void 0;
|
|
27446
27516
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27447
27517
|
const timer = window.setTimeout(() => {
|
|
27448
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
27518
|
+
_optionalChain([onSettle, 'optionalCall', _573 => _573(id)]);
|
|
27449
27519
|
}, remaining);
|
|
27450
27520
|
return () => window.clearTimeout(timer);
|
|
27451
27521
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -27479,13 +27549,13 @@ function NotificationTile({
|
|
|
27479
27549
|
}
|
|
27480
27550
|
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk23V5BSHDcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkJJUV7Z4Lcjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27481
27551
|
type ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "min-w-0 flex-1 truncate text-h5", typeColorByVariant[accentVariant]), title: type, children: type }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1" }),
|
|
27482
|
-
!isLive && createdAtIso ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "time", { dateTime: createdAtIso, className: "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
27552
|
+
!isLive && createdAtIso ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "time", { dateTime: createdAtIso, className: "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkROQTWRV7cjs.formatTicketRelativeTime.call(void 0, createdAtIso) }) : null,
|
|
27483
27553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
|
|
27484
27554
|
{
|
|
27485
27555
|
active: isLive,
|
|
27486
27556
|
label: "Dismiss notification",
|
|
27487
27557
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.XmarkIcon, { size: 16 }),
|
|
27488
|
-
onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
27558
|
+
onClick: () => _optionalChain([onSettle, 'optionalCall', _574 => _574(id)])
|
|
27489
27559
|
},
|
|
27490
27560
|
{
|
|
27491
27561
|
active: !isLive,
|
|
@@ -27576,7 +27646,7 @@ function NotificationDrawer({
|
|
|
27576
27646
|
const unreadNotifications = notifications.filter((n) => !n.read);
|
|
27577
27647
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27578
27648
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27579
|
-
|
|
27649
|
+
_chunkROQTWRV7cjs.DrawerTitle,
|
|
27580
27650
|
{
|
|
27581
27651
|
hideClose: true,
|
|
27582
27652
|
className: "truncate",
|
|
@@ -27635,8 +27705,8 @@ function NotificationDrawer({
|
|
|
27635
27705
|
}
|
|
27636
27706
|
) });
|
|
27637
27707
|
}
|
|
27638
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27639
|
-
|
|
27708
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Drawer, { open: isOpen, onOpenChange: (v) => v ? open() : close(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27709
|
+
_chunkROQTWRV7cjs.DrawerContent,
|
|
27640
27710
|
{
|
|
27641
27711
|
side: "right",
|
|
27642
27712
|
"aria-describedby": void 0,
|
|
@@ -27673,7 +27743,7 @@ function DrawerScrollList({
|
|
|
27673
27743
|
if (!sentinel || !root) return void 0;
|
|
27674
27744
|
const observer = new IntersectionObserver(
|
|
27675
27745
|
(entries) => {
|
|
27676
|
-
if (_optionalChain([entries, 'access',
|
|
27746
|
+
if (_optionalChain([entries, 'access', _575 => _575[0], 'optionalAccess', _576 => _576.isIntersecting])) _optionalChain([loadMoreRef, 'access', _577 => _577.current, 'optionalCall', _578 => _578()]);
|
|
27677
27747
|
},
|
|
27678
27748
|
{ root, rootMargin: loadMoreRootMargin }
|
|
27679
27749
|
);
|
|
@@ -27688,7 +27758,7 @@ function DrawerScrollList({
|
|
|
27688
27758
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
27689
27759
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27690
27760
|
unreadNotifications.map((n) => {
|
|
27691
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27761
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _579 => _579(n, { onComplete, onSettle, liveDurationMs })]);
|
|
27692
27762
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
27693
27763
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27694
27764
|
NotificationTile,
|
|
@@ -27808,7 +27878,7 @@ function NotificationPopups({
|
|
|
27808
27878
|
}) {
|
|
27809
27879
|
const ctx = useOptionalNotifications();
|
|
27810
27880
|
const [now, setNow] = _react.useState.call(void 0, () => Date.now());
|
|
27811
|
-
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess',
|
|
27881
|
+
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _580 => _580.notifications, 'access', _581 => _581.some, 'call', _582 => _582((n) => !n.read && !n.settled)]));
|
|
27812
27882
|
_react.useEffect.call(void 0, () => {
|
|
27813
27883
|
if (!hasAgeingNotifications) return void 0;
|
|
27814
27884
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
@@ -27851,7 +27921,7 @@ function NotificationPopups({
|
|
|
27851
27921
|
className
|
|
27852
27922
|
),
|
|
27853
27923
|
children: live.map((n) => {
|
|
27854
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27924
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _583 => _583(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
27855
27925
|
if (custom) {
|
|
27856
27926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
27857
27927
|
}
|
|
@@ -27890,34 +27960,34 @@ function NotificationPopups({
|
|
|
27890
27960
|
// src/components/features/notifications/types.ts
|
|
27891
27961
|
var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
|
|
27892
27962
|
function isApprovalNotification(notification) {
|
|
27893
|
-
return _optionalChain([notification, 'access',
|
|
27963
|
+
return _optionalChain([notification, 'access', _584 => _584.meta, 'optionalAccess', _585 => _585.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
|
|
27894
27964
|
}
|
|
27895
27965
|
function getApprovalMeta(notification) {
|
|
27896
27966
|
if (!isApprovalNotification(notification)) return null;
|
|
27897
27967
|
const meta = notification.meta;
|
|
27898
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
27899
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
27968
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _586 => _586.approvalRequestId]);
|
|
27969
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _587 => _587.toolCalls]);
|
|
27900
27970
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
27901
27971
|
return {
|
|
27902
27972
|
approvalRequestId,
|
|
27903
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27904
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27905
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27906
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27907
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27973
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _588 => _588.dialogId]), () => ( null)),
|
|
27974
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _589 => _589.ticketId]), () => ( null)),
|
|
27975
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _590 => _590.approvalType]), () => ( null)),
|
|
27976
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _591 => _591.resolution]), () => ( null)),
|
|
27977
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _592 => _592.resolvedByName]), () => ( null)),
|
|
27908
27978
|
toolCalls
|
|
27909
27979
|
};
|
|
27910
27980
|
}
|
|
27911
27981
|
function resolutionToStatus(resolution) {
|
|
27912
27982
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
27913
27983
|
case "APPROVED":
|
|
27914
|
-
return
|
|
27984
|
+
return _chunkROQTWRV7cjs.APPROVAL_STATUS.APPROVED;
|
|
27915
27985
|
case "REJECTED":
|
|
27916
|
-
return
|
|
27986
|
+
return _chunkROQTWRV7cjs.APPROVAL_STATUS.REJECTED;
|
|
27917
27987
|
case "CANCELLED":
|
|
27918
|
-
return
|
|
27988
|
+
return _chunkROQTWRV7cjs.APPROVAL_STATUS.CANCELLED;
|
|
27919
27989
|
default:
|
|
27920
|
-
return
|
|
27990
|
+
return _chunkROQTWRV7cjs.APPROVAL_STATUS.PENDING;
|
|
27921
27991
|
}
|
|
27922
27992
|
}
|
|
27923
27993
|
function approvalMetaToBatchData(approval) {
|
|
@@ -27954,10 +28024,10 @@ function ApprovalRequestNotificationTile({
|
|
|
27954
28024
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
27955
28025
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
27956
28026
|
const approval = getApprovalMeta(notification);
|
|
27957
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
28027
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _593 => _593.resolution]));
|
|
27958
28028
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
27959
28029
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
27960
|
-
const { innerRef, containerStyle } =
|
|
28030
|
+
const { innerRef, containerStyle } = _chunkROQTWRV7cjs.useCollapsible.call(void 0, { expanded });
|
|
27961
28031
|
if (!approval || !batchData) return null;
|
|
27962
28032
|
const tileNotification = {
|
|
27963
28033
|
...notification,
|
|
@@ -28010,7 +28080,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28010
28080
|
}
|
|
28011
28081
|
)
|
|
28012
28082
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28083
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ApprovalStatusTag, { status }),
|
|
28014
28084
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28015
28085
|
"by ",
|
|
28016
28086
|
approval.resolvedByName
|
|
@@ -28028,12 +28098,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28028
28098
|
"aria-expanded": expanded,
|
|
28029
28099
|
"aria-label": toggleLabel,
|
|
28030
28100
|
className: "ml-auto w-6 shrink-0 px-0 md:w-8",
|
|
28031
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28101
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.ExpandChevron, { expanded })
|
|
28032
28102
|
}
|
|
28033
28103
|
)
|
|
28034
28104
|
] }),
|
|
28035
28105
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28036
|
-
|
|
28106
|
+
_chunkROQTWRV7cjs.ApprovalBatchMessage,
|
|
28037
28107
|
{
|
|
28038
28108
|
data: batchData,
|
|
28039
28109
|
showExecutionStatus: false,
|
|
@@ -28106,7 +28176,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28106
28176
|
const { label, imageUrl } = option;
|
|
28107
28177
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
28108
28178
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28179
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2EGTHYAcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28110
28180
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28111
28181
|
] }),
|
|
28112
28182
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28190,7 +28260,7 @@ function TimeTrackerPanel({
|
|
|
28190
28260
|
}));
|
|
28191
28261
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28192
28262
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28193
|
-
|
|
28263
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
28194
28264
|
{
|
|
28195
28265
|
src: selectedCustomer.imageUrl,
|
|
28196
28266
|
alt: selectedCustomer.label,
|
|
@@ -28281,7 +28351,7 @@ function TimeTrackerPanel({
|
|
|
28281
28351
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
28282
28352
|
disableClientFilter: !!onTicketSearch,
|
|
28283
28353
|
onInputChange: (value, reason) => {
|
|
28284
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
28354
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _594 => _594(value)]);
|
|
28285
28355
|
}
|
|
28286
28356
|
}
|
|
28287
28357
|
),
|
|
@@ -28296,7 +28366,7 @@ function TimeTrackerPanel({
|
|
|
28296
28366
|
disabled: customerLocked,
|
|
28297
28367
|
disableClientFilter: !!onCustomerSearch,
|
|
28298
28368
|
onInputChange: (value, reason) => {
|
|
28299
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
28369
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _595 => _595(value)]);
|
|
28300
28370
|
},
|
|
28301
28371
|
startAdornment: customerStartAdornment,
|
|
28302
28372
|
renderOption: renderCustomerOption
|
|
@@ -28369,7 +28439,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28369
28439
|
function StatusTag({ status }) {
|
|
28370
28440
|
if (status === "tracking") {
|
|
28371
28441
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28372
|
-
|
|
28442
|
+
_chunkROQTWRV7cjs.Tag,
|
|
28373
28443
|
{
|
|
28374
28444
|
variant: "success",
|
|
28375
28445
|
className: STATUS_TAG_SKIN,
|
|
@@ -28379,9 +28449,9 @@ function StatusTag({ status }) {
|
|
|
28379
28449
|
);
|
|
28380
28450
|
}
|
|
28381
28451
|
if (status === "paused") {
|
|
28382
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28452
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: "warning", className: STATUS_TAG_SKIN, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.PauseIcon, { className: "h-4 w-4" }), label: "Paused" });
|
|
28383
28453
|
}
|
|
28384
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28454
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28385
28455
|
}
|
|
28386
28456
|
function LastEntryRow({ entry, onClick }) {
|
|
28387
28457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0", children: [
|
|
@@ -28398,7 +28468,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28398
28468
|
{
|
|
28399
28469
|
variant: "outline",
|
|
28400
28470
|
size: "icon",
|
|
28401
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
28471
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _596 => _596(entry)]),
|
|
28402
28472
|
disabled: !onClick,
|
|
28403
28473
|
"aria-label": `Open entry: ${entry.title}`,
|
|
28404
28474
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -28482,28 +28552,28 @@ function HeaderButton({
|
|
|
28482
28552
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
28483
28553
|
const ctx = useOptionalTimeTracker();
|
|
28484
28554
|
const elapsedLabel = useTrackerClock({
|
|
28485
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28486
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
28487
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
28555
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _597 => _597.status]), () => ( "ready")),
|
|
28556
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _598 => _598.runningSince]),
|
|
28557
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _599 => _599.accumulatedMs])
|
|
28488
28558
|
});
|
|
28489
28559
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
28490
28560
|
const coordination = useAppLayoutDrawerCoordination();
|
|
28491
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28561
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _600 => _600.isOpen]), () => ( false));
|
|
28492
28562
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
28493
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
28563
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _601 => _601.close]));
|
|
28494
28564
|
_react.useEffect.call(void 0, () => {
|
|
28495
28565
|
isOpenRef.current = isOpen;
|
|
28496
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
28566
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _602 => _602.close]);
|
|
28497
28567
|
});
|
|
28498
28568
|
const [selfHandle] = _react.useState.call(void 0, () => ({
|
|
28499
28569
|
close: () => {
|
|
28500
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
28570
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _603 => _603.current, 'optionalCall', _604 => _604()]);
|
|
28501
28571
|
}
|
|
28502
28572
|
}));
|
|
28503
28573
|
_react.useEffect.call(void 0, () => {
|
|
28504
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
28574
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _605 => _605.notifyDrawerDidOpen, 'call', _606 => _606(selfHandle)]);
|
|
28505
28575
|
}, [isOpen, coordination, selfHandle]);
|
|
28506
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
28576
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _607 => _607.registerDrawer, 'call', _608 => _608(selfHandle)]), [coordination, selfHandle]);
|
|
28507
28577
|
if (!ctx) return null;
|
|
28508
28578
|
const { open, close, status } = ctx;
|
|
28509
28579
|
const isPaused = status === "paused";
|
|
@@ -28550,7 +28620,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28550
28620
|
"data-state": isOpen ? "open" : "closed",
|
|
28551
28621
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
28552
28622
|
layoutContainer ? "absolute inset-0 z-[102]" : "fixed inset-0 z-[1299]",
|
|
28553
|
-
|
|
28623
|
+
_chunkROQTWRV7cjs.OVERLAY_BACKDROP_CLASS,
|
|
28554
28624
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
28555
28625
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
28556
28626
|
)
|
|
@@ -28635,7 +28705,7 @@ function autoScrollAncestors(element) {
|
|
|
28635
28705
|
|
|
28636
28706
|
// src/components/features/board/aim.ts
|
|
28637
28707
|
var _closestedge = require('@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge');
|
|
28638
|
-
var othersIn = (columns, columnId, ticketId) => (_nullishCoalesce(_optionalChain([columns, 'access',
|
|
28708
|
+
var othersIn = (columns, columnId, ticketId) => (_nullishCoalesce(_optionalChain([columns, 'access', _609 => _609.find, 'call', _610 => _610((c) => c.id === columnId), 'optionalAccess', _611 => _611.tickets]), () => ( []))).filter((t) => t.id !== ticketId);
|
|
28639
28709
|
function laneOf(columns, ticketId) {
|
|
28640
28710
|
return _nullishCoalesce(columns.find((c) => c.tickets.some((t) => t.id === ticketId)), () => ( null));
|
|
28641
28711
|
}
|
|
@@ -28679,11 +28749,11 @@ function aimToChange(columns, ticketId, aim) {
|
|
|
28679
28749
|
const lane = laneOf(columns, ticketId);
|
|
28680
28750
|
if (!lane) return null;
|
|
28681
28751
|
const others = othersIn(columns, aim.columnId, ticketId);
|
|
28682
|
-
const afterTicketId = _nullishCoalesce(_optionalChain([others, 'access',
|
|
28683
|
-
const beforeTicketId = _nullishCoalesce(_optionalChain([others, 'access',
|
|
28752
|
+
const afterTicketId = _nullishCoalesce(_optionalChain([others, 'access', _612 => _612[aim.index - 1], 'optionalAccess', _613 => _613.id]), () => ( null));
|
|
28753
|
+
const beforeTicketId = _nullishCoalesce(_optionalChain([others, 'access', _614 => _614[aim.index], 'optionalAccess', _615 => _615.id]), () => ( null));
|
|
28684
28754
|
if (lane.id === aim.columnId) {
|
|
28685
28755
|
const currentIndex = lane.tickets.findIndex((t) => t.id === ticketId);
|
|
28686
|
-
if ((_nullishCoalesce(_optionalChain([lane, 'access',
|
|
28756
|
+
if ((_nullishCoalesce(_optionalChain([lane, 'access', _616 => _616.tickets, 'access', _617 => _617[currentIndex - 1], 'optionalAccess', _618 => _618.id]), () => ( null))) === afterTicketId) return null;
|
|
28687
28757
|
}
|
|
28688
28758
|
return { ticketId, fromColumnId: lane.id, toColumnId: aim.columnId, afterTicketId, beforeTicketId };
|
|
28689
28759
|
}
|
|
@@ -28704,7 +28774,7 @@ function BoardColumnHeader({
|
|
|
28704
28774
|
}) {
|
|
28705
28775
|
const count = _nullishCoalesce(column.total, () => ( column.tickets.length));
|
|
28706
28776
|
const tagStatus = _nullishCoalesce(column.statusKey, () => ( column.id));
|
|
28707
|
-
const useStatusVariant =
|
|
28777
|
+
const useStatusVariant = _chunkROQTWRV7cjs.resolveTicketStatus.call(void 0, tagStatus) !== null;
|
|
28708
28778
|
const actionClass = "h-8 w-8 p-0 md:h-8 md:w-8";
|
|
28709
28779
|
if (collapsed) {
|
|
28710
28780
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
@@ -28720,7 +28790,7 @@ function BoardColumnHeader({
|
|
|
28720
28790
|
}
|
|
28721
28791
|
),
|
|
28722
28792
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28723
|
-
|
|
28793
|
+
_chunkROQTWRV7cjs.TicketStatusTag,
|
|
28724
28794
|
{
|
|
28725
28795
|
status: tagStatus,
|
|
28726
28796
|
label: column.label,
|
|
@@ -28733,7 +28803,7 @@ function BoardColumnHeader({
|
|
|
28733
28803
|
}
|
|
28734
28804
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28735
28805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28736
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28806
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TicketStatusTag, { status: tagStatus, label: column.label, color: useStatusVariant ? void 0 : column.color }),
|
|
28737
28807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h5", style: useStatusVariant ? void 0 : { color: column.color }, children: count })
|
|
28738
28808
|
] }),
|
|
28739
28809
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
@@ -28884,7 +28954,7 @@ function holdMoveDragEffect(element) {
|
|
|
28884
28954
|
|
|
28885
28955
|
function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
28886
28956
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
28887
|
-
const { innerRef, containerStyle } =
|
|
28957
|
+
const { innerRef, containerStyle } = _chunkROQTWRV7cjs.useCollapsible.call(void 0, { expanded });
|
|
28888
28958
|
const isAdmin = pendingApproval.approvalType === "ADMIN";
|
|
28889
28959
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex flex-col", children: [
|
|
28890
28960
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -28913,7 +28983,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
|
28913
28983
|
}
|
|
28914
28984
|
),
|
|
28915
28985
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: "pt-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28916
|
-
|
|
28986
|
+
_chunkROQTWRV7cjs.ApprovalBatchMessage,
|
|
28917
28987
|
{
|
|
28918
28988
|
className: "mb-0",
|
|
28919
28989
|
data: {
|
|
@@ -28954,14 +29024,14 @@ function useIsLanding(ticketId) {
|
|
|
28954
29024
|
return _react.useContext.call(void 0, LandingCardContext) === ticketId;
|
|
28955
29025
|
}
|
|
28956
29026
|
function hasMoveSettled(columns, move) {
|
|
28957
|
-
const tickets = _optionalChain([columns, 'access',
|
|
29027
|
+
const tickets = _optionalChain([columns, 'access', _619 => _619.find, 'call', _620 => _620((c) => c.id === move.toColumnId), 'optionalAccess', _621 => _621.tickets]);
|
|
28958
29028
|
if (!tickets) return false;
|
|
28959
29029
|
const index = tickets.findIndex((t) => t.id === move.ticketId);
|
|
28960
29030
|
if (index < 0) return false;
|
|
28961
29031
|
if (move.fromColumnId === move.toColumnId) {
|
|
28962
|
-
return (_nullishCoalesce(_optionalChain([tickets, 'access',
|
|
29032
|
+
return (_nullishCoalesce(_optionalChain([tickets, 'access', _622 => _622[index - 1], 'optionalAccess', _623 => _623.id]), () => ( null))) === move.afterTicketId;
|
|
28963
29033
|
}
|
|
28964
|
-
return !_optionalChain([columns, 'access',
|
|
29034
|
+
return !_optionalChain([columns, 'access', _624 => _624.find, 'call', _625 => _625((c) => c.id === move.fromColumnId), 'optionalAccess', _626 => _626.tickets, 'access', _627 => _627.some, 'call', _628 => _628((t) => t.id === move.ticketId)]);
|
|
28965
29035
|
}
|
|
28966
29036
|
|
|
28967
29037
|
// src/components/features/board/ticket-card.tsx
|
|
@@ -28985,10 +29055,10 @@ var ACTIVITY_DEFAULT_LABEL = {
|
|
|
28985
29055
|
var TICKET_CARD_SHELL = "relative flex flex-col gap-[var(--spacing-system-sf)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-sf)] select-none text-left";
|
|
28986
29056
|
function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onReject }) {
|
|
28987
29057
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
28988
|
-
const newMessageTextColor = columnColor ?
|
|
28989
|
-
const showDeviceRow = !!(_optionalChain([ticket, 'access',
|
|
28990
|
-
const deviceText = [_optionalChain([ticket, 'access',
|
|
28991
|
-
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access',
|
|
29058
|
+
const newMessageTextColor = columnColor ? _chunkROQTWRV7cjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
29059
|
+
const showDeviceRow = !!(_optionalChain([ticket, 'access', _629 => _629.deviceHostnames, 'optionalAccess', _630 => _630.length]) || ticket.organizationName);
|
|
29060
|
+
const deviceText = [_optionalChain([ticket, 'access', _631 => _631.deviceHostnames, 'optionalAccess', _632 => _632.join, 'call', _633 => _633(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
29061
|
+
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _634 => _634.assignees, 'optionalAccess', _635 => _635.length]) || renderAssignSlot);
|
|
28992
29062
|
const rightSection = hasRightSection ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28993
29063
|
ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28994
29064
|
_chunkGSQM4PDRcjs.Flag02Icon,
|
|
@@ -28997,7 +29067,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
28997
29067
|
"aria-label": `Priority: ${ticket.priority}`
|
|
28998
29068
|
}
|
|
28999
29069
|
),
|
|
29000
|
-
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access',
|
|
29070
|
+
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _636 => _636.assignees, 'optionalAccess', _637 => _637.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
29001
29071
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map(
|
|
29002
29072
|
(a) => a.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29003
29073
|
DeletedUserAvatar,
|
|
@@ -29007,7 +29077,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
29007
29077
|
},
|
|
29008
29078
|
a.id
|
|
29009
29079
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29010
|
-
|
|
29080
|
+
_chunkE2EGTHYAcjs.SquareAvatar,
|
|
29011
29081
|
{
|
|
29012
29082
|
src: a.avatarUrl,
|
|
29013
29083
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -29024,8 +29094,8 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
29024
29094
|
] })
|
|
29025
29095
|
] }) : null
|
|
29026
29096
|
] }) : null;
|
|
29027
|
-
const timestampLabel = ticket.createdAt ?
|
|
29028
|
-
const tooltipLabel = ticket.createdAt ?
|
|
29097
|
+
const timestampLabel = ticket.createdAt ? _chunkROQTWRV7cjs.formatTicketRelativeTime.call(void 0, ticket.createdAt) : null;
|
|
29098
|
+
const tooltipLabel = ticket.createdAt ? _chunkROQTWRV7cjs.formatTicketFullTimestamp.call(void 0, ticket.createdAt) : null;
|
|
29029
29099
|
const metaLabel = [ticket.ticketNumber || null, timestampLabel].filter(Boolean).join(" \u2022 ");
|
|
29030
29100
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
29031
29101
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-sf)]", children: [
|
|
@@ -29038,10 +29108,10 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
29038
29108
|
] }),
|
|
29039
29109
|
rightSection
|
|
29040
29110
|
] }),
|
|
29041
|
-
_optionalChain([ticket, 'access',
|
|
29042
|
-
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29111
|
+
_optionalChain([ticket, 'access', _638 => _638.tags, 'optionalAccess', _639 => _639.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
29112
|
+
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkROQTWRV7cjs.Tooltip, { children: [
|
|
29113
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto truncate text-ods-text-secondary text-h6", children: metaLabel }) }),
|
|
29114
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.TooltipContent, { children: tooltipLabel })
|
|
29045
29115
|
] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: metaLabel })),
|
|
29046
29116
|
ticket.escalatedByUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xxs)] text-ods-open-yellow text-h6", children: [
|
|
29047
29117
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.UserCheckIcon, { className: "size-4 shrink-0" }),
|
|
@@ -29061,7 +29131,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
29061
29131
|
}
|
|
29062
29132
|
),
|
|
29063
29133
|
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29064
|
-
|
|
29134
|
+
_chunkROQTWRV7cjs.Tag,
|
|
29065
29135
|
{
|
|
29066
29136
|
label: "New Message",
|
|
29067
29137
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
@@ -29105,7 +29175,7 @@ var TicketCard = _react.memo.call(void 0, function TicketCardImpl({
|
|
|
29105
29175
|
const isLanding = useIsLanding(ticket.id);
|
|
29106
29176
|
const aim = useDropAim();
|
|
29107
29177
|
const closestEdge = aim && aim.columnId === columnId && aim.ticketId === ticket.id ? aim.edge : null;
|
|
29108
|
-
const isSource = isDragging || _optionalChain([aim, 'optionalAccess',
|
|
29178
|
+
const isSource = isDragging || _optionalChain([aim, 'optionalAccess', _640 => _640.ticket, 'access', _641 => _641.id]) === ticket.id;
|
|
29109
29179
|
const lift = useBoardLift();
|
|
29110
29180
|
const handleKeyDown = (e) => {
|
|
29111
29181
|
if (e.key !== " " || dragDisabled || !lift) return;
|
|
@@ -29276,8 +29346,8 @@ function TicketTagRow({ tags }) {
|
|
|
29276
29346
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
29277
29347
|
const hidden = tags.length - visible.length;
|
|
29278
29348
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-8 flex-wrap items-start gap-[var(--spacing-system-xxs)] overflow-clip", children: [
|
|
29279
|
-
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29280
|
-
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29349
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
29350
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkROQTWRV7cjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
29281
29351
|
] });
|
|
29282
29352
|
}
|
|
29283
29353
|
|
|
@@ -29358,7 +29428,7 @@ var BoardColumn = _react.memo.call(void 0, function BoardColumnImpl({
|
|
|
29358
29428
|
// large ones like the only thing that did.
|
|
29359
29429
|
getData: ({ input, element: lane, source }) => {
|
|
29360
29430
|
const nearest = nearestCardIn(lane, input.clientY, String(source.data.ticketId));
|
|
29361
|
-
const ticketId = _optionalChain([nearest, 'optionalAccess',
|
|
29431
|
+
const ticketId = _optionalChain([nearest, 'optionalAccess', _642 => _642.dataset, 'access', _643 => _643.ticketId]);
|
|
29362
29432
|
if (!nearest || !ticketId) return { type: "column", columnId: column.id };
|
|
29363
29433
|
return _closestedge.attachClosestEdge.call(void 0,
|
|
29364
29434
|
{ type: "ticket", ticketId, columnId: column.id },
|
|
@@ -29370,7 +29440,7 @@ var BoardColumn = _react.memo.call(void 0, function BoardColumnImpl({
|
|
|
29370
29440
|
onDrop: () => setIsOver(false)
|
|
29371
29441
|
});
|
|
29372
29442
|
}, [column.id, column.dropDisabled, column.allowedFromColumns, collapsed, touchMode]);
|
|
29373
|
-
const handleToggleCollapse = _react.useCallback.call(void 0, () => _optionalChain([onToggleCollapse, 'optionalCall',
|
|
29443
|
+
const handleToggleCollapse = _react.useCallback.call(void 0, () => _optionalChain([onToggleCollapse, 'optionalCall', _644 => _644(column.id)]), [onToggleCollapse, column.id]);
|
|
29374
29444
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
29375
29445
|
"div",
|
|
29376
29446
|
{
|
|
@@ -29449,7 +29519,7 @@ function ColumnBody({
|
|
|
29449
29519
|
const observer = new IntersectionObserver(
|
|
29450
29520
|
(entries) => {
|
|
29451
29521
|
if (entries.some((e) => e.isIntersecting)) {
|
|
29452
|
-
_optionalChain([loadMoreRef, 'access',
|
|
29522
|
+
_optionalChain([loadMoreRef, 'access', _645 => _645.current, 'optionalCall', _646 => _646(columnIdRef.current)]);
|
|
29453
29523
|
}
|
|
29454
29524
|
},
|
|
29455
29525
|
{ root, rootMargin: loadMoreRootMargin }
|
|
@@ -29474,7 +29544,7 @@ function ColumnBody({
|
|
|
29474
29544
|
ticket: t,
|
|
29475
29545
|
columnId: column.id,
|
|
29476
29546
|
columnColor: column.color,
|
|
29477
|
-
href: _optionalChain([getTicketHref, 'optionalCall',
|
|
29547
|
+
href: _optionalChain([getTicketHref, 'optionalCall', _647 => _647(t.id)]),
|
|
29478
29548
|
renderAssignSlot,
|
|
29479
29549
|
onApprove,
|
|
29480
29550
|
onReject,
|
|
@@ -29650,7 +29720,7 @@ function DragBoard({
|
|
|
29650
29720
|
const [landing, setLanding] = _react.useState.call(void 0, null);
|
|
29651
29721
|
const landingTimer = _react.useRef.call(void 0, null);
|
|
29652
29722
|
const pointRef = _react.useRef.call(void 0, { x: 0, y: 0 });
|
|
29653
|
-
const laneLabel = _react.useCallback.call(void 0, (columnId) => _nullishCoalesce(_optionalChain([view, 'access',
|
|
29723
|
+
const laneLabel = _react.useCallback.call(void 0, (columnId) => _nullishCoalesce(_optionalChain([view, 'access', _648 => _648.find, 'call', _649 => _649((c) => c.id === columnId), 'optionalAccess', _650 => _650.label]), () => ( columnId)), [view]);
|
|
29654
29724
|
const acceptsLifted = _react.useCallback.call(void 0,
|
|
29655
29725
|
(fromColumnId) => (column) => {
|
|
29656
29726
|
if (column.dropDisabled || collapsed[column.id]) return false;
|
|
@@ -29664,7 +29734,7 @@ function DragBoard({
|
|
|
29664
29734
|
const start = initialAim(view, ticketId);
|
|
29665
29735
|
if (!start) return;
|
|
29666
29736
|
setLifted({ ticketId, aim: start });
|
|
29667
|
-
const title = _nullishCoalesce(_optionalChain([laneOf, 'call',
|
|
29737
|
+
const title = _nullishCoalesce(_optionalChain([laneOf, 'call', _651 => _651(view, ticketId), 'optionalAccess', _652 => _652.tickets, 'access', _653 => _653.find, 'call', _654 => _654((t) => t.id === ticketId), 'optionalAccess', _655 => _655.title]), () => ( "Ticket"));
|
|
29668
29738
|
setAnnouncement(`${title} lifted. Use the arrow keys to move it, space to drop it, escape to put it back.`);
|
|
29669
29739
|
},
|
|
29670
29740
|
[view]
|
|
@@ -29689,11 +29759,11 @@ function DragBoard({
|
|
|
29689
29759
|
const walk = _react.useCallback.call(void 0,
|
|
29690
29760
|
(key) => {
|
|
29691
29761
|
if (!lifted) return;
|
|
29692
|
-
const from = _nullishCoalesce(_optionalChain([laneOf, 'call',
|
|
29762
|
+
const from = _nullishCoalesce(_optionalChain([laneOf, 'call', _656 => _656(view, lifted.ticketId), 'optionalAccess', _657 => _657.id]), () => ( lifted.aim.columnId));
|
|
29693
29763
|
const next = moveAim(view, lifted.ticketId, lifted.aim, key, acceptsLifted(from));
|
|
29694
29764
|
if (next === lifted.aim) return;
|
|
29695
29765
|
setLifted({ ...lifted, aim: next });
|
|
29696
|
-
const total = (_nullishCoalesce(_optionalChain([view, 'access',
|
|
29766
|
+
const total = (_nullishCoalesce(_optionalChain([view, 'access', _658 => _658.find, 'call', _659 => _659((c) => c.id === next.columnId), 'optionalAccess', _660 => _660.tickets]), () => ( []))).filter(
|
|
29697
29767
|
(t) => t.id !== lifted.ticketId
|
|
29698
29768
|
).length;
|
|
29699
29769
|
setAnnouncement(`${laneLabel(next.columnId)}, position ${next.index + 1} of ${total + 1}.`);
|
|
@@ -29720,11 +29790,11 @@ function DragBoard({
|
|
|
29720
29790
|
}, [lifted, drop, walk]);
|
|
29721
29791
|
_react.useEffect.call(void 0, () => {
|
|
29722
29792
|
if (!lifted) return;
|
|
29723
|
-
_optionalChain([boardRef, 'access',
|
|
29793
|
+
_optionalChain([boardRef, 'access', _661 => _661.current, 'optionalAccess', _662 => _662.querySelector, 'call', _663 => _663(`[${DROP_LINE_ATTRIBUTE}]`), 'optionalAccess', _664 => _664.scrollIntoView, 'call', _665 => _665({ block: "nearest", inline: "nearest" })]);
|
|
29724
29794
|
}, [lifted]);
|
|
29725
29795
|
const keyboardAim = _react.useMemo.call(void 0, () => {
|
|
29726
29796
|
if (!lifted) return null;
|
|
29727
|
-
const ticket = _optionalChain([laneOf, 'call',
|
|
29797
|
+
const ticket = _optionalChain([laneOf, 'call', _666 => _666(view, lifted.ticketId), 'optionalAccess', _667 => _667.tickets, 'access', _668 => _668.find, 'call', _669 => _669((t) => t.id === lifted.ticketId)]);
|
|
29728
29798
|
if (!ticket) return null;
|
|
29729
29799
|
const anchor = aimToChange(view, lifted.ticketId, lifted.aim) ? aimAnchor(view, lifted.ticketId, lifted.aim) : { ticketId: null, edge: null };
|
|
29730
29800
|
return { columnId: lifted.aim.columnId, ...anchor, ticket };
|
|
@@ -29746,7 +29816,7 @@ function DragBoard({
|
|
|
29746
29816
|
return { columnId: slot.columnId, ...anchor, ticket };
|
|
29747
29817
|
};
|
|
29748
29818
|
const aimAt = (source, targets) => {
|
|
29749
|
-
const next = readAim(source, _optionalChain([targets, 'access',
|
|
29819
|
+
const next = readAim(source, _optionalChain([targets, 'access', _670 => _670[0], 'optionalAccess', _671 => _671.data]));
|
|
29750
29820
|
setAim((prev) => isSameAim(prev, next) ? prev : next);
|
|
29751
29821
|
};
|
|
29752
29822
|
return _combine.combine.call(void 0,
|
|
@@ -29775,7 +29845,7 @@ function DragBoard({
|
|
|
29775
29845
|
setLanding(null);
|
|
29776
29846
|
dragGeometry.current = {
|
|
29777
29847
|
ticket,
|
|
29778
|
-
columnColor: _optionalChain([columnsRef, 'access',
|
|
29848
|
+
columnColor: _optionalChain([columnsRef, 'access', _672 => _672.current, 'access', _673 => _673.find, 'call', _674 => _674((c) => c.id === source.data.columnId), 'optionalAccess', _675 => _675.color]),
|
|
29779
29849
|
width: rect.width,
|
|
29780
29850
|
grabX: clientX - rect.left,
|
|
29781
29851
|
grabY: clientY - rect.top
|
|
@@ -29792,7 +29862,7 @@ function DragBoard({
|
|
|
29792
29862
|
setAim(null);
|
|
29793
29863
|
const change = resolveBoardDrop(columnsRef.current, {
|
|
29794
29864
|
source: source.data,
|
|
29795
|
-
target: _optionalChain([location, 'access',
|
|
29865
|
+
target: _optionalChain([location, 'access', _676 => _676.current, 'access', _677 => _677.dropTargets, 'access', _678 => _678[0], 'optionalAccess', _679 => _679.data])
|
|
29796
29866
|
});
|
|
29797
29867
|
if (!change) return;
|
|
29798
29868
|
setPendingMove({
|
|
@@ -29825,7 +29895,7 @@ function DragBoard({
|
|
|
29825
29895
|
return void 0;
|
|
29826
29896
|
}
|
|
29827
29897
|
const to = card.getBoundingClientRect();
|
|
29828
|
-
const lane = _optionalChain([nearestScrollableAncestor, 'call',
|
|
29898
|
+
const lane = _optionalChain([nearestScrollableAncestor, 'call', _680 => _680(card), 'optionalAccess', _681 => _681.getBoundingClientRect, 'call', _682 => _682()]);
|
|
29829
29899
|
if (lane && (to.top < lane.top || to.bottom > lane.bottom)) {
|
|
29830
29900
|
finish();
|
|
29831
29901
|
return void 0;
|
|
@@ -29884,8 +29954,8 @@ function DragBoard({
|
|
|
29884
29954
|
children: view.map((column, i) => {
|
|
29885
29955
|
const prev = view[i - 1];
|
|
29886
29956
|
const next = view[i + 1];
|
|
29887
|
-
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess',
|
|
29888
|
-
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess',
|
|
29957
|
+
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _683 => _683.system]));
|
|
29958
|
+
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _684 => _684.system]));
|
|
29889
29959
|
const showGap = i > 0 && !joinLeft;
|
|
29890
29960
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
29891
29961
|
showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
@@ -30065,13 +30135,13 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30065
30135
|
const [flipTick, setFlipTick] = _react.useState.call(void 0, 0);
|
|
30066
30136
|
const flipTimer = _react.useRef.call(void 0, null);
|
|
30067
30137
|
const readItems = _react.useCallback.call(void 0,
|
|
30068
|
-
() => [..._nullishCoalesce(_optionalChain([listRef, 'access',
|
|
30138
|
+
() => [..._nullishCoalesce(_optionalChain([listRef, 'access', _685 => _685.current, 'optionalAccess', _686 => _686.querySelectorAll, 'call', _687 => _687(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
|
|
30069
30139
|
[]
|
|
30070
30140
|
);
|
|
30071
30141
|
const reorder = _react.useCallback.call(void 0,
|
|
30072
30142
|
(from, to) => {
|
|
30073
30143
|
if (from === to) return;
|
|
30074
|
-
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access',
|
|
30144
|
+
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _688 => _688.current, 'optionalCall', _689 => _689(from)]), () => ( "Item"));
|
|
30075
30145
|
setAnnouncement(`${label} moved to position ${to + 1} of ${readItems().length}.`);
|
|
30076
30146
|
onReorderRef.current(from, to);
|
|
30077
30147
|
},
|
|
@@ -30159,7 +30229,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30159
30229
|
moving.push(item);
|
|
30160
30230
|
}
|
|
30161
30231
|
if (moving.length === 0) return;
|
|
30162
|
-
void _optionalChain([listRef, 'access',
|
|
30232
|
+
void _optionalChain([listRef, 'access', _690 => _690.current, 'optionalAccess', _691 => _691.offsetHeight]);
|
|
30163
30233
|
for (const item of moving) {
|
|
30164
30234
|
item.style.transition = `transform ${DROP_MS2}ms ${EASING}`;
|
|
30165
30235
|
item.style.transform = "";
|
|
@@ -30196,8 +30266,8 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
30196
30266
|
if (to < 0 || to >= count) return;
|
|
30197
30267
|
reorder(index, to);
|
|
30198
30268
|
requestAnimationFrame(() => {
|
|
30199
|
-
if (step === -1 && to === 0) _optionalChain([downRef, 'access',
|
|
30200
|
-
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access',
|
|
30269
|
+
if (step === -1 && to === 0) _optionalChain([downRef, 'access', _692 => _692.current, 'optionalAccess', _693 => _693.focus, 'call', _694 => _694()]);
|
|
30270
|
+
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _695 => _695.current, 'optionalAccess', _696 => _696.focus, 'call', _697 => _697()]);
|
|
30201
30271
|
});
|
|
30202
30272
|
};
|
|
30203
30273
|
const subject = _nullishCoalesce(label, () => ( "item"));
|
|
@@ -30245,7 +30315,7 @@ function useSortableItem() {
|
|
|
30245
30315
|
const [handle, setHandle] = _react.useState.call(void 0, null);
|
|
30246
30316
|
const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
|
|
30247
30317
|
const itemRef = _react.useCallback.call(void 0, (node) => {
|
|
30248
|
-
_optionalChain([node, 'optionalAccess',
|
|
30318
|
+
_optionalChain([node, 'optionalAccess', _698 => _698.setAttribute, 'call', _699 => _699(SORTABLE_ITEM_ATTRIBUTE, "")]);
|
|
30249
30319
|
setItem(node);
|
|
30250
30320
|
}, []);
|
|
30251
30321
|
_react.useEffect.call(void 0, () => {
|
|
@@ -30275,7 +30345,7 @@ function useSortableItem() {
|
|
|
30275
30345
|
if (from < 0 || to < 0 || to >= items.length) return;
|
|
30276
30346
|
event.preventDefault();
|
|
30277
30347
|
reorder(from, to);
|
|
30278
|
-
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess',
|
|
30348
|
+
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _700 => _700.focus, 'call', _701 => _701()]));
|
|
30279
30349
|
},
|
|
30280
30350
|
[inert, readItems, reorder, handle]
|
|
30281
30351
|
);
|
|
@@ -30297,7 +30367,7 @@ function TicketStatusConfigList({
|
|
|
30297
30367
|
onReorder,
|
|
30298
30368
|
getItemLabel,
|
|
30299
30369
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xs)]", className),
|
|
30300
|
-
children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall',
|
|
30370
|
+
children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall', _702 => _702(index)]), children: (args) => renderRow(item, args) }, item.id))
|
|
30301
30371
|
}
|
|
30302
30372
|
);
|
|
30303
30373
|
}
|
|
@@ -30958,5 +31028,7 @@ function SortableRow({
|
|
|
30958
31028
|
|
|
30959
31029
|
|
|
30960
31030
|
|
|
30961
|
-
exports.AllowedDomainsInput = AllowedDomainsInput; exports.AnnouncementBarView = AnnouncementBarView; exports.HiddenTagsPopup = HiddenTagsPopup; exports.TruncateText = TruncateText; exports.Autocomplete = Autocomplete; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePickerCalendar = DatePickerCalendar; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.InfoHint = InfoHint; exports.Field = Field; exports.HoneypotField = HoneypotField; exports.JsonDetailList = JsonDetailList; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.DeletedUserAvatar = DeletedUserAvatar; exports.SearchableSelect = SearchableSelect; exports.AssigneeDropdown = AssigneeDropdown; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoDataMessage = NoDataMessage; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.AdminFormModal = AdminFormModal; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FadePreview = FadePreview; exports.Progress = Progress; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.FullscreenSwitchController = FullscreenSwitchController; exports.EmbedIframe = EmbedIframe; exports.EmbedViewerFrame = EmbedViewerFrame; exports.ClaudeEmbed = ClaudeEmbed; exports.FigmaEmbed = FigmaEmbed; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.MarkdownImage = MarkdownImage; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.MediaCarousel = MediaCarousel; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.StatusIndicator = StatusIndicator; exports.BackButton = BackButton; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.BenefitCard = BenefitCard; exports.benefitCardBorderClass = benefitCardBorderClass; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.SourceTooltip = SourceTooltip; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TitleContentBlock = TitleContentBlock; exports.TouchFriendlyTooltip = TouchFriendlyTooltip; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE; exports.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; exports.DataTableSkeleton = DataTableSkeleton; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.PasswordInput = PasswordInput; exports.AccountDetailsFields = AccountDetailsFields; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.LabeledDivider = LabeledDivider; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.PolicyLink = PolicyLink; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LegalLinks = LegalLinks; exports.LoginForm = LoginForm; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.SsoJoinForm = SsoJoinForm; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.UnifiedSkeleton = UnifiedSkeleton; exports.TextSkeleton = TextSkeleton; exports.InteractiveSkeleton = InteractiveSkeleton; exports.MediaSkeleton = MediaSkeleton; exports.CardSkeleton = CardSkeleton; exports.CardSkeletonGrid = CardSkeletonGrid; exports.AnnouncementBarSkeleton = AnnouncementBarSkeleton; exports.HeroSkeleton = HeroSkeleton; exports.SearchContainerSkeleton = SearchContainerSkeleton; exports.CategorySidebarSkeleton = CategorySidebarSkeleton; exports.BreadcrumbSkeleton = BreadcrumbSkeleton; exports.ResultsHeaderSkeleton = ResultsHeaderSkeleton; exports.TwoColumnLayoutSkeleton = TwoColumnLayoutSkeleton; exports.ArticleLayoutSkeleton = ArticleLayoutSkeleton; exports.VendorDetailLayoutSkeleton = VendorDetailLayoutSkeleton; exports.StatsSectionSkeleton = StatsSectionSkeleton; exports.BlogCardGridSkeleton = BlogCardGridSkeleton; exports.VendorGridSkeleton = VendorGridSkeleton; exports.SlackCommunitySkeleton = SlackCommunitySkeleton; exports.ContentLoadingContainer = ContentLoadingContainer; exports.useContentLoading = useContentLoading; exports.ParagraphSkeleton = ParagraphSkeleton; exports.ListSkeleton = ListSkeleton; exports.TableSkeleton = TableSkeleton; exports.FormSkeleton = FormSkeleton; exports.NavigationSkeleton = NavigationSkeleton; exports.ProfileSkeleton = ProfileSkeleton; exports.CommentSkeleton = CommentSkeleton; exports.FeatureListSkeleton = FeatureListSkeleton; exports.TimelineSkeleton = TimelineSkeleton; exports.PricingSkeleton = PricingSkeleton; exports.ProfileLoadingSkeleton = ProfileLoadingSkeleton; exports.MspProfileFormSkeleton = MspProfileFormSkeleton; exports.CategoryCardSkeleton = CategoryCardSkeleton; exports.CategoryVendorSelectorSkeleton = CategoryVendorSelectorSkeleton; exports.WizardLayoutSkeleton = WizardLayoutSkeleton; exports.MarginReportSkeleton = MarginReportSkeleton; exports.UsersGridSkeleton = UsersGridSkeleton; exports.DynamicSkeleton = DynamicSkeleton; exports.SkeletonPresets = SkeletonPresets; exports.PlatformSkeletonContainer = PlatformSkeletonContainer; exports.ProgressiveSkeleton = ProgressiveSkeleton; exports.OrganizationIconSkeleton = OrganizationIconSkeleton; exports.OrganizationCardSkeleton = OrganizationCardSkeleton; exports.OrganizationCardSkeletonGrid = OrganizationCardSkeletonGrid; exports.DeviceCardSkeleton = DeviceCardSkeleton; exports.DeviceCardSkeletonGrid = DeviceCardSkeletonGrid; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.ConfidenceBadge = ConfidenceBadge; exports.SEOEditorPreview = SEOEditorPreview; exports.SOCIAL_ICON_COMPONENTS = SOCIAL_ICON_COMPONENTS; exports.SocialIconRow = SocialIconRow; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.InlineWalkthroughVideo = InlineWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; exports.VideoSourceSelector = VideoSourceSelector; exports.SubtitlesEditor = SubtitlesEditor; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.AppLayoutDrawerContainerContext = AppLayoutDrawerContainerContext; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerCoordinationContext = AppLayoutDrawerCoordinationContext; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCardBody = TicketCardBody; exports.TicketCardView = TicketCardView; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.SLOT_STICKINESS = SLOT_STICKINESS; exports.SortableList = SortableList; exports.SortableMoveButtons = SortableMoveButtons; exports.useSortableItem = useSortableItem; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.DataTableEmpty = DataTableEmpty; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableHeader = DataTableHeader; exports.DATA_TABLE_HEADER_LABEL_CLASS = DATA_TABLE_HEADER_LABEL_CLASS; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.formatTestRunDuration = formatTestRunDuration; exports.TestResultsSkeleton = TestResultsSkeleton; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketDetailSection = TicketDetailSection; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.ReopenTicketRequestModal = ReopenTicketRequestModal; exports.FilterPillRow = FilterPillRow; exports.LazyMount = LazyMount; exports.IconTile = IconTile;
|
|
30962
|
-
|
|
31031
|
+
|
|
31032
|
+
|
|
31033
|
+
exports.AllowedDomainsInput = AllowedDomainsInput; exports.AnnouncementBarView = AnnouncementBarView; exports.HiddenTagsPopup = HiddenTagsPopup; exports.TruncateText = TruncateText; exports.Autocomplete = Autocomplete; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePickerCalendar = DatePickerCalendar; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.InfoHint = InfoHint; exports.Field = Field; exports.HoneypotField = HoneypotField; exports.JsonDetailList = JsonDetailList; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.DeletedUserAvatar = DeletedUserAvatar; exports.SearchableSelect = SearchableSelect; exports.AssigneeDropdown = AssigneeDropdown; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoDataMessage = NoDataMessage; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.AdminFormModal = AdminFormModal; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FadePreview = FadePreview; exports.Progress = Progress; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.FullscreenSwitchController = FullscreenSwitchController; exports.EmbedIframe = EmbedIframe; exports.EmbedViewerFrame = EmbedViewerFrame; exports.ClaudeEmbed = ClaudeEmbed; exports.FigmaEmbed = FigmaEmbed; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.MarkdownImage = MarkdownImage; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.MediaCarousel = MediaCarousel; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.StatusIndicator = StatusIndicator; exports.BackButton = BackButton; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.BenefitCard = BenefitCard; exports.benefitCardBorderClass = benefitCardBorderClass; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.SourceTooltip = SourceTooltip; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.PersonCell = PersonCell; exports.PeopleCell = PeopleCell; exports.TitleContentBlock = TitleContentBlock; exports.TouchFriendlyTooltip = TouchFriendlyTooltip; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE; exports.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; exports.DataTableSkeleton = DataTableSkeleton; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.PasswordInput = PasswordInput; exports.AccountDetailsFields = AccountDetailsFields; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.LabeledDivider = LabeledDivider; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.PolicyLink = PolicyLink; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LegalLinks = LegalLinks; exports.LoginForm = LoginForm; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.SsoJoinForm = SsoJoinForm; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.UnifiedSkeleton = UnifiedSkeleton; exports.TextSkeleton = TextSkeleton; exports.InteractiveSkeleton = InteractiveSkeleton; exports.MediaSkeleton = MediaSkeleton; exports.CardSkeleton = CardSkeleton; exports.CardSkeletonGrid = CardSkeletonGrid; exports.AnnouncementBarSkeleton = AnnouncementBarSkeleton; exports.HeroSkeleton = HeroSkeleton; exports.SearchContainerSkeleton = SearchContainerSkeleton; exports.CategorySidebarSkeleton = CategorySidebarSkeleton; exports.BreadcrumbSkeleton = BreadcrumbSkeleton; exports.ResultsHeaderSkeleton = ResultsHeaderSkeleton; exports.TwoColumnLayoutSkeleton = TwoColumnLayoutSkeleton; exports.ArticleLayoutSkeleton = ArticleLayoutSkeleton; exports.VendorDetailLayoutSkeleton = VendorDetailLayoutSkeleton; exports.StatsSectionSkeleton = StatsSectionSkeleton; exports.BlogCardGridSkeleton = BlogCardGridSkeleton; exports.VendorGridSkeleton = VendorGridSkeleton; exports.SlackCommunitySkeleton = SlackCommunitySkeleton; exports.ContentLoadingContainer = ContentLoadingContainer; exports.useContentLoading = useContentLoading; exports.ParagraphSkeleton = ParagraphSkeleton; exports.ListSkeleton = ListSkeleton; exports.TableSkeleton = TableSkeleton; exports.FormSkeleton = FormSkeleton; exports.NavigationSkeleton = NavigationSkeleton; exports.ProfileSkeleton = ProfileSkeleton; exports.CommentSkeleton = CommentSkeleton; exports.FeatureListSkeleton = FeatureListSkeleton; exports.TimelineSkeleton = TimelineSkeleton; exports.PricingSkeleton = PricingSkeleton; exports.ProfileLoadingSkeleton = ProfileLoadingSkeleton; exports.MspProfileFormSkeleton = MspProfileFormSkeleton; exports.CategoryCardSkeleton = CategoryCardSkeleton; exports.CategoryVendorSelectorSkeleton = CategoryVendorSelectorSkeleton; exports.WizardLayoutSkeleton = WizardLayoutSkeleton; exports.MarginReportSkeleton = MarginReportSkeleton; exports.UsersGridSkeleton = UsersGridSkeleton; exports.DynamicSkeleton = DynamicSkeleton; exports.SkeletonPresets = SkeletonPresets; exports.PlatformSkeletonContainer = PlatformSkeletonContainer; exports.ProgressiveSkeleton = ProgressiveSkeleton; exports.OrganizationIconSkeleton = OrganizationIconSkeleton; exports.OrganizationCardSkeleton = OrganizationCardSkeleton; exports.OrganizationCardSkeletonGrid = OrganizationCardSkeletonGrid; exports.DeviceCardSkeleton = DeviceCardSkeleton; exports.DeviceCardSkeletonGrid = DeviceCardSkeletonGrid; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.ConfidenceBadge = ConfidenceBadge; exports.SEOEditorPreview = SEOEditorPreview; exports.SOCIAL_ICON_COMPONENTS = SOCIAL_ICON_COMPONENTS; exports.SocialIconRow = SocialIconRow; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.InlineWalkthroughVideo = InlineWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; exports.VideoSourceSelector = VideoSourceSelector; exports.SubtitlesEditor = SubtitlesEditor; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.AppLayoutDrawerContainerContext = AppLayoutDrawerContainerContext; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerCoordinationContext = AppLayoutDrawerCoordinationContext; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCardBody = TicketCardBody; exports.TicketCardView = TicketCardView; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.SLOT_STICKINESS = SLOT_STICKINESS; exports.SortableList = SortableList; exports.SortableMoveButtons = SortableMoveButtons; exports.useSortableItem = useSortableItem; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.DataTableEmpty = DataTableEmpty; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableHeader = DataTableHeader; exports.DATA_TABLE_HEADER_LABEL_CLASS = DATA_TABLE_HEADER_LABEL_CLASS; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.formatTestRunDuration = formatTestRunDuration; exports.TestResultsSkeleton = TestResultsSkeleton; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketDetailSection = TicketDetailSection; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.ReopenTicketRequestModal = ReopenTicketRequestModal; exports.FilterPillRow = FilterPillRow; exports.LazyMount = LazyMount; exports.IconTile = IconTile;
|
|
31034
|
+
//# sourceMappingURL=chunk-CM6DNLK7.cjs.map
|