@flamingo-stack/openframe-frontend-core 0.0.615 → 0.0.616-snapshot.20260912195615
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-KIQNMCOO.cjs → chunk-2OJVGAGX.cjs} +4 -4
- package/dist/{chunk-KIQNMCOO.cjs.map → chunk-2OJVGAGX.cjs.map} +1 -1
- package/dist/{chunk-TDA355L7.cjs → chunk-332JHI2D.cjs} +3 -3
- package/dist/{chunk-TDA355L7.cjs.map → chunk-332JHI2D.cjs.map} +1 -1
- package/dist/{chunk-A6ZMLRBR.js → chunk-45OAW4M2.js} +4 -4
- package/dist/{chunk-RRGQTQ6T.js → chunk-5KKLN7Q2.js} +2 -2
- package/dist/{chunk-N3G3YG3V.cjs → chunk-67XFJ442.cjs} +271 -235
- package/dist/chunk-67XFJ442.cjs.map +1 -0
- package/dist/{chunk-L3H6VYDB.js → chunk-6RMFEGJ4.js} +2 -2
- package/dist/{chunk-5WHUUHSH.cjs → chunk-7FFKXXWY.cjs} +50 -50
- package/dist/{chunk-5WHUUHSH.cjs.map → chunk-7FFKXXWY.cjs.map} +1 -1
- package/dist/{chunk-TOAJWB3V.js → chunk-7YHUP5BR.js} +2 -2
- package/dist/{chunk-F7R7J4HK.cjs → chunk-BJDQZH62.cjs} +3 -3
- package/dist/{chunk-F7R7J4HK.cjs.map → chunk-BJDQZH62.cjs.map} +1 -1
- package/dist/{chunk-NLKYBYPV.js → chunk-CGCV4QT2.js} +5 -5
- package/dist/{chunk-XJ5KH37F.js → chunk-CXEGV3ZS.js} +2 -2
- package/dist/{chunk-H6TOSMGU.cjs → chunk-FMNS5NN2.cjs} +13 -13
- package/dist/{chunk-H6TOSMGU.cjs.map → chunk-FMNS5NN2.cjs.map} +1 -1
- package/dist/{chunk-4C3BOBV6.js → chunk-GH4F4ODL.js} +4 -4
- package/dist/{chunk-UMVCVMCG.js → chunk-HGPGF6SF.js} +2 -2
- package/dist/{chunk-L6UVTIJP.cjs → chunk-HR6CHKD6.cjs} +4 -4
- package/dist/{chunk-L6UVTIJP.cjs.map → chunk-HR6CHKD6.cjs.map} +1 -1
- package/dist/{chunk-YSG26SQ7.cjs → chunk-JZELYIFZ.cjs} +33 -33
- package/dist/{chunk-YSG26SQ7.cjs.map → chunk-JZELYIFZ.cjs.map} +1 -1
- package/dist/{chunk-NLYWRJ6J.cjs → chunk-LFLJ3IHE.cjs} +17 -17
- package/dist/{chunk-NLYWRJ6J.cjs.map → chunk-LFLJ3IHE.cjs.map} +1 -1
- package/dist/{chunk-HIMST6NK.js → chunk-RZURBPBS.js} +2 -2
- package/dist/{chunk-BESOUYM7.cjs → chunk-TRY3CUWJ.cjs} +18 -18
- package/dist/{chunk-BESOUYM7.cjs.map → chunk-TRY3CUWJ.cjs.map} +1 -1
- package/dist/{chunk-TOXJS4HN.cjs → chunk-ULM5FCFN.cjs} +3 -3
- package/dist/{chunk-TOXJS4HN.cjs.map → chunk-ULM5FCFN.cjs.map} +1 -1
- package/dist/{chunk-X6G7JIX6.cjs → chunk-USP3UWID.cjs} +34 -34
- package/dist/{chunk-X6G7JIX6.cjs.map → chunk-USP3UWID.cjs.map} +1 -1
- package/dist/{chunk-OKWHWDA3.js → chunk-UVK7AQAG.js} +2 -2
- package/dist/{chunk-646YZIUK.js → chunk-UVXMIZYK.js} +5 -5
- package/dist/{chunk-RJT7I2Y4.cjs → chunk-V23BJC2Q.cjs} +10 -10
- package/dist/{chunk-RJT7I2Y4.cjs.map → chunk-V23BJC2Q.cjs.map} +1 -1
- package/dist/{chunk-AJRHEX5D.js → chunk-VHS3OYE4.js} +61 -25
- package/dist/chunk-VHS3OYE4.js.map +1 -0
- package/dist/{chunk-JYHDJD3U.js → chunk-VJJ7LGOI.js} +3 -3
- package/dist/{chunk-GHMTJJCC.cjs → chunk-VNNIRX23.cjs} +3 -3
- package/dist/{chunk-GHMTJJCC.cjs.map → chunk-VNNIRX23.cjs.map} +1 -1
- package/dist/{chunk-KKYE3E66.js → chunk-WFM5OAM6.js} +2 -2
- package/dist/{chunk-TWE6KYQM.js → chunk-ZJYZOOTU.js} +2 -2
- package/dist/{chunk-FBL32U6S.cjs → chunk-ZQOK4TCN.cjs} +17 -17
- package/dist/{chunk-FBL32U6S.cjs.map → chunk-ZQOK4TCN.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/data-table/data-table-header.d.ts +9 -1
- package/dist/components/ui/data-table/data-table-header.d.ts.map +1 -1
- package/dist/components/ui/data-table/types.d.ts +9 -0
- package/dist/components/ui/data-table/types.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/table/table-header.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +7 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/dist/types/design-doc.d.ts +34 -43
- package/dist/types/design-doc.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/data-table-header-hint.test.tsx +69 -0
- package/src/components/ui/data-table/data-table-header.tsx +47 -11
- package/src/components/ui/data-table/types.ts +9 -0
- package/src/components/ui/table/__tests__/header-hint.test.tsx +85 -0
- package/src/components/ui/table/table-header.tsx +34 -9
- package/src/components/ui/table/types.ts +7 -0
- package/src/types/design-doc.ts +59 -51
- package/dist/chunk-AJRHEX5D.js.map +0 -1
- package/dist/chunk-N3G3YG3V.cjs.map +0 -1
- /package/dist/{chunk-A6ZMLRBR.js.map → chunk-45OAW4M2.js.map} +0 -0
- /package/dist/{chunk-RRGQTQ6T.js.map → chunk-5KKLN7Q2.js.map} +0 -0
- /package/dist/{chunk-L3H6VYDB.js.map → chunk-6RMFEGJ4.js.map} +0 -0
- /package/dist/{chunk-TOAJWB3V.js.map → chunk-7YHUP5BR.js.map} +0 -0
- /package/dist/{chunk-NLKYBYPV.js.map → chunk-CGCV4QT2.js.map} +0 -0
- /package/dist/{chunk-XJ5KH37F.js.map → chunk-CXEGV3ZS.js.map} +0 -0
- /package/dist/{chunk-4C3BOBV6.js.map → chunk-GH4F4ODL.js.map} +0 -0
- /package/dist/{chunk-UMVCVMCG.js.map → chunk-HGPGF6SF.js.map} +0 -0
- /package/dist/{chunk-HIMST6NK.js.map → chunk-RZURBPBS.js.map} +0 -0
- /package/dist/{chunk-OKWHWDA3.js.map → chunk-UVK7AQAG.js.map} +0 -0
- /package/dist/{chunk-646YZIUK.js.map → chunk-UVXMIZYK.js.map} +0 -0
- /package/dist/{chunk-JYHDJD3U.js.map → chunk-VJJ7LGOI.js.map} +0 -0
- /package/dist/{chunk-KKYE3E66.js.map → chunk-WFM5OAM6.js.map} +0 -0
- /package/dist/{chunk-TWE6KYQM.js.map → chunk-ZJYZOOTU.js.map} +0 -0
|
@@ -13141,6 +13141,7 @@ function getHideClasses2(hideAt) {
|
|
|
13141
13141
|
|
|
13142
13142
|
// src/components/ui/table/table-header.tsx
|
|
13143
13143
|
|
|
13144
|
+
var TABLE_HEADER_LABEL_CLASS = "min-w-0 text-balance uppercase text-ods-text-secondary text-h5";
|
|
13144
13145
|
function TableHeader({
|
|
13145
13146
|
columns,
|
|
13146
13147
|
className,
|
|
@@ -13231,23 +13232,28 @@ function TableHeader({
|
|
|
13231
13232
|
] })
|
|
13232
13233
|
) : column.filterable && column.filterOptions && onFilterChange ? (
|
|
13233
13234
|
/* Filterable column — label + icon are both inside the dropdown trigger */
|
|
13234
|
-
/* @__PURE__ */ _jsxruntime.
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13235
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13237
|
+
TableColumnFilterDropdown,
|
|
13238
|
+
{
|
|
13239
|
+
columnKey: column.key,
|
|
13240
|
+
columnLabel: column.label,
|
|
13241
|
+
filterOptions: column.filterOptions,
|
|
13242
|
+
filters,
|
|
13243
|
+
onFilterChange
|
|
13244
|
+
}
|
|
13245
|
+
),
|
|
13246
|
+
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label: column.label, children: column.hint }) : null
|
|
13247
|
+
] })
|
|
13244
13248
|
) : (
|
|
13245
13249
|
/* Non-filterable column — regular label with optional sort */
|
|
13246
13250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13247
13251
|
"div",
|
|
13248
13252
|
{
|
|
13249
13253
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
13250
|
-
|
|
13254
|
+
// `min-w-0` lets the row shrink to its column, so a long label
|
|
13255
|
+
// wraps inside the cell instead of forcing the row past it.
|
|
13256
|
+
"flex min-w-0 items-center gap-2",
|
|
13251
13257
|
column.sortable && "cursor-pointer transition-colors hover:text-ods-text-primary"
|
|
13252
13258
|
),
|
|
13253
13259
|
onClick: () => handleSort(column),
|
|
@@ -13255,7 +13261,17 @@ function TableHeader({
|
|
|
13255
13261
|
column.renderHeader(),
|
|
13256
13262
|
getSortIcon(column)
|
|
13257
13263
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13258
|
-
|
|
13264
|
+
column.hint ? (
|
|
13265
|
+
/* The hint sits in a LABEL GROUP with the text, pinned to the
|
|
13266
|
+
FIRST line (`items-start`): on a label that breaks onto a
|
|
13267
|
+
second line it reads beside the opening word instead of
|
|
13268
|
+
floating in the gap between the two. Added only when a
|
|
13269
|
+
hint exists, so a hint-less header keeps its DOM. */
|
|
13270
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13271
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
13272
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label: column.label, children: column.hint })
|
|
13273
|
+
] })
|
|
13274
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
13259
13275
|
getSortIcon(column)
|
|
13260
13276
|
] })
|
|
13261
13277
|
}
|
|
@@ -14514,6 +14530,17 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14514
14530
|
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _295 => _295.align]), () => ( "left"));
|
|
14515
14531
|
const canSort = _optionalChain([meta, 'optionalAccess', _296 => _296.sortable]) === true;
|
|
14516
14532
|
const sortDir = _optionalChain([sort, 'optionalAccess', _297 => _297.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
14533
|
+
const filterTrigger = filter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14534
|
+
DataTableColumnFilter,
|
|
14535
|
+
{
|
|
14536
|
+
column,
|
|
14537
|
+
options: filter.options,
|
|
14538
|
+
placement: filter.placement,
|
|
14539
|
+
pending: filter.pending,
|
|
14540
|
+
label: resolveHeaderLabel(header),
|
|
14541
|
+
align
|
|
14542
|
+
}
|
|
14543
|
+
) : null;
|
|
14517
14544
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14518
14545
|
"div",
|
|
14519
14546
|
{
|
|
@@ -14543,16 +14570,14 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14543
14570
|
keepOnTablet && "max-lg:[&&]:w-auto max-lg:[&&]:flex-none max-lg:[&&]:basis-auto",
|
|
14544
14571
|
_optionalChain([meta, 'optionalAccess', _300 => _300.headerClassName])
|
|
14545
14572
|
),
|
|
14546
|
-
children:
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
align
|
|
14555
|
-
}
|
|
14573
|
+
children: filterTrigger ? (
|
|
14574
|
+
// Only a column that HAS a hint gets the extra row, so every existing
|
|
14575
|
+
// filter header keeps its exact structure — the trigger stays a direct
|
|
14576
|
+
// child of the cell.
|
|
14577
|
+
_optionalChain([meta, 'optionalAccess', _301 => _301.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
14578
|
+
filterTrigger,
|
|
14579
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
14580
|
+
] }) : filterTrigger
|
|
14556
14581
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14557
14582
|
"div",
|
|
14558
14583
|
{
|
|
@@ -14565,9 +14590,20 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14565
14590
|
keepOnTablet && "max-lg:justify-start",
|
|
14566
14591
|
canSort && "group cursor-pointer"
|
|
14567
14592
|
),
|
|
14568
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
14593
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _302 => _302(column.id)]) : void 0,
|
|
14569
14594
|
children: [
|
|
14570
|
-
|
|
14595
|
+
_optionalChain([meta, 'optionalAccess', _303 => _303.hint]) ? (
|
|
14596
|
+
// The hint shares a LABEL GROUP with the text, pinned to the FIRST
|
|
14597
|
+
// line (`items-start`): on a label that breaks onto a second line it
|
|
14598
|
+
// reads beside the opening word instead of floating in the gap
|
|
14599
|
+
// between the two. Only a column WITH a hint gets the group, so a
|
|
14600
|
+
// hint-less header keeps its DOM. The sort icon stays outside it,
|
|
14601
|
+
// centred on the row.
|
|
14602
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
14603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
14604
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
14605
|
+
] })
|
|
14606
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
14571
14607
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
14572
14608
|
]
|
|
14573
14609
|
}
|
|
@@ -14575,7 +14611,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14575
14611
|
}
|
|
14576
14612
|
);
|
|
14577
14613
|
}
|
|
14578
|
-
var DATA_TABLE_HEADER_LABEL_CLASS = "
|
|
14614
|
+
var DATA_TABLE_HEADER_LABEL_CLASS = "min-w-0 text-balance uppercase text-ods-text-secondary transition-colors duration-200 text-h5 group-hover:text-ods-text-primary";
|
|
14579
14615
|
function HeaderLabel({ header }) {
|
|
14580
14616
|
const headerDef = header.column.columnDef.header;
|
|
14581
14617
|
if (headerDef === void 0) return null;
|
|
@@ -14615,7 +14651,7 @@ function DataTableInfiniteFooter({
|
|
|
14615
14651
|
if (!sentinel) return void 0;
|
|
14616
14652
|
const observer = new IntersectionObserver(
|
|
14617
14653
|
(entries) => {
|
|
14618
|
-
if (_optionalChain([entries, 'access',
|
|
14654
|
+
if (_optionalChain([entries, 'access', _304 => _304[0], 'optionalAccess', _305 => _305.isIntersecting])) onLoadMoreRef.current();
|
|
14619
14655
|
},
|
|
14620
14656
|
{ rootMargin }
|
|
14621
14657
|
);
|
|
@@ -14640,7 +14676,7 @@ function DataTableRowCount({
|
|
|
14640
14676
|
const table = useDataTableContext();
|
|
14641
14677
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
14642
14678
|
if (hideWhenEmpty && count === 0) return null;
|
|
14643
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
14679
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _306 => _306(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
14644
14680
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk23V5BSHDcjs.cn.call(void 0, "whitespace-nowrap text-ods-text-secondary text-h6", className), children: [
|
|
14645
14681
|
count,
|
|
14646
14682
|
" ",
|
|
@@ -14759,12 +14795,12 @@ function PhoneInput({
|
|
|
14759
14795
|
(phone) => {
|
|
14760
14796
|
if (!phone || digitCount(phone) === 0) {
|
|
14761
14797
|
setIsInvalid(false);
|
|
14762
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14798
|
+
_optionalChain([onValidationChange, 'optionalCall', _307 => _307(false)]);
|
|
14763
14799
|
return;
|
|
14764
14800
|
}
|
|
14765
14801
|
const invalid = !validatePhoneNumber(phone, countryCode);
|
|
14766
14802
|
setIsInvalid(invalid);
|
|
14767
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14803
|
+
_optionalChain([onValidationChange, 'optionalCall', _308 => _308(invalid)]);
|
|
14768
14804
|
},
|
|
14769
14805
|
[countryCode, digitCount, onValidationChange]
|
|
14770
14806
|
);
|
|
@@ -14818,7 +14854,7 @@ function PhoneInput({
|
|
|
14818
14854
|
debouncedValidation(val);
|
|
14819
14855
|
} else if (digitCount(val) === 0) {
|
|
14820
14856
|
setIsInvalid(false);
|
|
14821
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14857
|
+
_optionalChain([onValidationChange, 'optionalCall', _309 => _309(false)]);
|
|
14822
14858
|
}
|
|
14823
14859
|
}
|
|
14824
14860
|
},
|
|
@@ -14935,7 +14971,7 @@ function SearchInput({
|
|
|
14935
14971
|
if (!showHiddenTags) return void 0;
|
|
14936
14972
|
const handleClick = (e) => {
|
|
14937
14973
|
const target = e.target;
|
|
14938
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
14974
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _310 => _310.current, 'optionalAccess', _311 => _311.contains, 'call', _312 => _312(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _313 => _313.current, 'optionalAccess', _314 => _314.contains, 'call', _315 => _315(target)])) {
|
|
14939
14975
|
setShowHiddenTags(false);
|
|
14940
14976
|
}
|
|
14941
14977
|
};
|
|
@@ -14946,7 +14982,7 @@ function SearchInput({
|
|
|
14946
14982
|
const popup = hiddenTagsPopupRef.current;
|
|
14947
14983
|
const badge = badgeRef.current;
|
|
14948
14984
|
if (!popup || !badge) return;
|
|
14949
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
14985
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _316 => _316.current, 'optionalAccess', _317 => _317.getBoundingClientRect, 'call', _318 => _318(), 'access', _319 => _319.left]), () => ( 0));
|
|
14950
14986
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
14951
14987
|
});
|
|
14952
14988
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -14992,10 +15028,10 @@ function SearchInput({
|
|
|
14992
15028
|
} else {
|
|
14993
15029
|
setInternalValue("");
|
|
14994
15030
|
}
|
|
14995
|
-
_optionalChain([inputRef, 'access',
|
|
15031
|
+
_optionalChain([inputRef, 'access', _320 => _320.current, 'optionalAccess', _321 => _321.focus, 'call', _322 => _322()]);
|
|
14996
15032
|
};
|
|
14997
15033
|
const handleResultClick = (result, e) => {
|
|
14998
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
15034
|
+
_optionalChain([onResultSelect, 'optionalCall', _323 => _323(
|
|
14999
15035
|
result,
|
|
15000
15036
|
e ? {
|
|
15001
15037
|
metaKey: e.metaKey,
|
|
@@ -15023,7 +15059,7 @@ function SearchInput({
|
|
|
15023
15059
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
15024
15060
|
handleResultClick(flatResults[highlightedIndex]);
|
|
15025
15061
|
} else {
|
|
15026
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
15062
|
+
_optionalChain([onSubmit, 'optionalCall', _324 => _324(currentValue)]);
|
|
15027
15063
|
}
|
|
15028
15064
|
break;
|
|
15029
15065
|
case "Escape":
|
|
@@ -15106,7 +15142,7 @@ function SearchInput({
|
|
|
15106
15142
|
),
|
|
15107
15143
|
onClick: () => {
|
|
15108
15144
|
if (disabled) return;
|
|
15109
|
-
_optionalChain([inputRef, 'access',
|
|
15145
|
+
_optionalChain([inputRef, 'access', _325 => _325.current, 'optionalAccess', _326 => _326.focus, 'call', _327 => _327()]);
|
|
15110
15146
|
setIsOpen(true);
|
|
15111
15147
|
},
|
|
15112
15148
|
children: [
|
|
@@ -15194,10 +15230,10 @@ function SearchInput({
|
|
|
15194
15230
|
collisionPadding: { bottom: keyboardPadding },
|
|
15195
15231
|
onOpenAutoFocus: (e) => {
|
|
15196
15232
|
e.preventDefault();
|
|
15197
|
-
_optionalChain([inputRef, 'access',
|
|
15233
|
+
_optionalChain([inputRef, 'access', _328 => _328.current, 'optionalAccess', _329 => _329.focus, 'call', _330 => _330()]);
|
|
15198
15234
|
},
|
|
15199
15235
|
onInteractOutside: (e) => {
|
|
15200
|
-
if (_optionalChain([containerRef, 'access',
|
|
15236
|
+
if (_optionalChain([containerRef, 'access', _331 => _331.current, 'optionalAccess', _332 => _332.contains, 'call', _333 => _333(e.target)])) {
|
|
15201
15237
|
e.preventDefault();
|
|
15202
15238
|
}
|
|
15203
15239
|
},
|
|
@@ -15214,7 +15250,7 @@ function SearchInput({
|
|
|
15214
15250
|
ref: hiddenTagsPopupRef,
|
|
15215
15251
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
15216
15252
|
onRemove: (removedTag) => {
|
|
15217
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
15253
|
+
_optionalChain([onFilterRemove, 'optionalCall', _334 => _334(removedTag)]);
|
|
15218
15254
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
15219
15255
|
}
|
|
15220
15256
|
}
|
|
@@ -15256,7 +15292,7 @@ function FilterListItem({
|
|
|
15256
15292
|
}) {
|
|
15257
15293
|
const handleToggle = () => {
|
|
15258
15294
|
if (disabled) return;
|
|
15259
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
15295
|
+
_optionalChain([onToggle, 'optionalCall', _335 => _335(!selected)]);
|
|
15260
15296
|
};
|
|
15261
15297
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15262
15298
|
"div",
|
|
@@ -15303,7 +15339,7 @@ function FilterListItem({
|
|
|
15303
15339
|
CheckboxPrimitive4.Root,
|
|
15304
15340
|
{
|
|
15305
15341
|
checked: selected,
|
|
15306
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
15342
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _336 => _336(c === true)]),
|
|
15307
15343
|
onClick: (e) => e.stopPropagation(),
|
|
15308
15344
|
disabled,
|
|
15309
15345
|
"aria-label": title,
|
|
@@ -15384,7 +15420,7 @@ function TagSearchInput({
|
|
|
15384
15420
|
if (!showHiddenTags) return void 0;
|
|
15385
15421
|
const handleClick = (e) => {
|
|
15386
15422
|
const target = e.target;
|
|
15387
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
15423
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _337 => _337.current, 'optionalAccess', _338 => _338.contains, 'call', _339 => _339(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _340 => _340.current, 'optionalAccess', _341 => _341.contains, 'call', _342 => _342(target)])) {
|
|
15388
15424
|
setShowHiddenTags(false);
|
|
15389
15425
|
}
|
|
15390
15426
|
};
|
|
@@ -15395,7 +15431,7 @@ function TagSearchInput({
|
|
|
15395
15431
|
const popup = hiddenTagsPopupRef.current;
|
|
15396
15432
|
const badge = badgeRef.current;
|
|
15397
15433
|
if (!popup || !badge) return;
|
|
15398
|
-
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
15434
|
+
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _343 => _343.current, 'optionalAccess', _344 => _344.getBoundingClientRect, 'call', _345 => _345(), 'access', _346 => _346.left]), () => ( 0));
|
|
15399
15435
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
15400
15436
|
});
|
|
15401
15437
|
const hiddenCount = tags.length - visibleCount;
|
|
@@ -15407,13 +15443,13 @@ function TagSearchInput({
|
|
|
15407
15443
|
e.preventDefault();
|
|
15408
15444
|
onSubmit(searchValue);
|
|
15409
15445
|
}
|
|
15410
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
15446
|
+
_optionalChain([onKeyDown, 'optionalCall', _347 => _347(e)]);
|
|
15411
15447
|
};
|
|
15412
15448
|
const handleClearAll = (e) => {
|
|
15413
15449
|
e.stopPropagation();
|
|
15414
15450
|
e.preventDefault();
|
|
15415
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
15416
|
-
_optionalChain([inputRef, 'access',
|
|
15451
|
+
_optionalChain([onClearAll, 'optionalCall', _348 => _348()]);
|
|
15452
|
+
_optionalChain([inputRef, 'access', _349 => _349.current, 'optionalAccess', _350 => _350.focus, 'call', _351 => _351()]);
|
|
15417
15453
|
};
|
|
15418
15454
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
15419
15455
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -15436,7 +15472,7 @@ function TagSearchInput({
|
|
|
15436
15472
|
className
|
|
15437
15473
|
),
|
|
15438
15474
|
onClick: () => {
|
|
15439
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
15475
|
+
if (!disabled) _optionalChain([inputRef, 'access', _352 => _352.current, 'optionalAccess', _353 => _353.focus, 'call', _354 => _354()]);
|
|
15440
15476
|
},
|
|
15441
15477
|
children: [
|
|
15442
15478
|
/* @__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" }) }),
|
|
@@ -15652,7 +15688,7 @@ function MarkdownEditor({
|
|
|
15652
15688
|
try {
|
|
15653
15689
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
15654
15690
|
if (cancelled) return;
|
|
15655
|
-
if (_optionalChain([mod, 'access',
|
|
15691
|
+
if (_optionalChain([mod, 'access', _355 => _355.commands, 'optionalAccess', _356 => _356.getExtraCommands])) {
|
|
15656
15692
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
15657
15693
|
}
|
|
15658
15694
|
} catch (error) {
|
|
@@ -15690,7 +15726,7 @@ function MarkdownEditor({
|
|
|
15690
15726
|
const isImage = file.type.startsWith("image/");
|
|
15691
15727
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
15692
15728
|
insertTextAtCursor(markdown);
|
|
15693
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
15729
|
+
_optionalChain([onFileUploaded, 'optionalCall', _357 => _357(url, file.name)]);
|
|
15694
15730
|
} catch (error) {
|
|
15695
15731
|
console.error("File upload failed:", error);
|
|
15696
15732
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -15704,7 +15740,7 @@ function MarkdownEditor({
|
|
|
15704
15740
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
15705
15741
|
(e) => {
|
|
15706
15742
|
const input = e.target;
|
|
15707
|
-
const file = _optionalChain([input, 'access',
|
|
15743
|
+
const file = _optionalChain([input, 'access', _358 => _358.files, 'optionalAccess', _359 => _359[0]]);
|
|
15708
15744
|
if (file) {
|
|
15709
15745
|
void handleFileUpload(file);
|
|
15710
15746
|
input.value = "";
|
|
@@ -15715,7 +15751,7 @@ function MarkdownEditor({
|
|
|
15715
15751
|
const handlePaste = _react.useCallback.call(void 0,
|
|
15716
15752
|
(e) => {
|
|
15717
15753
|
if (!onUploadFile) return;
|
|
15718
|
-
const items = _optionalChain([e, 'access',
|
|
15754
|
+
const items = _optionalChain([e, 'access', _360 => _360.clipboardData, 'optionalAccess', _361 => _361.items]);
|
|
15719
15755
|
if (!items) return;
|
|
15720
15756
|
for (const item of items) {
|
|
15721
15757
|
if (item.type.startsWith("image/")) {
|
|
@@ -15740,7 +15776,7 @@ function MarkdownEditor({
|
|
|
15740
15776
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
15741
15777
|
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" }),
|
|
15742
15778
|
execute: () => {
|
|
15743
|
-
_optionalChain([fileInputRef, 'access',
|
|
15779
|
+
_optionalChain([fileInputRef, 'access', _362 => _362.current, 'optionalAccess', _363 => _363.click, 'call', _364 => _364()]);
|
|
15744
15780
|
}
|
|
15745
15781
|
} : null;
|
|
15746
15782
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -15752,7 +15788,7 @@ function MarkdownEditor({
|
|
|
15752
15788
|
const EDGE_ZONE = 60;
|
|
15753
15789
|
const MAX_SCROLL_SPEED = 15;
|
|
15754
15790
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
15755
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
15791
|
+
let node = _optionalChain([el, 'optionalAccess', _365 => _365.parentElement]);
|
|
15756
15792
|
while (node && node !== document.documentElement) {
|
|
15757
15793
|
const { overflowY } = window.getComputedStyle(node);
|
|
15758
15794
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -15891,7 +15927,7 @@ function matchesAccept(file, accept) {
|
|
|
15891
15927
|
});
|
|
15892
15928
|
}
|
|
15893
15929
|
function dragHasFiles(e) {
|
|
15894
|
-
const types = _optionalChain([e, 'access',
|
|
15930
|
+
const types = _optionalChain([e, 'access', _366 => _366.dataTransfer, 'optionalAccess', _367 => _367.types]);
|
|
15895
15931
|
if (!types) return false;
|
|
15896
15932
|
for (let i = 0; i < types.length; i++) {
|
|
15897
15933
|
if (types[i] === "Files") return true;
|
|
@@ -15990,7 +16026,7 @@ function FileUpload({
|
|
|
15990
16026
|
e.stopPropagation();
|
|
15991
16027
|
setDragActive(false);
|
|
15992
16028
|
if (disabled) return;
|
|
15993
|
-
if (_optionalChain([e, 'access',
|
|
16029
|
+
if (_optionalChain([e, 'access', _368 => _368.dataTransfer, 'access', _369 => _369.files, 'optionalAccess', _370 => _370.length])) {
|
|
15994
16030
|
handleFiles(e.dataTransfer.files);
|
|
15995
16031
|
}
|
|
15996
16032
|
};
|
|
@@ -16018,7 +16054,7 @@ function FileUpload({
|
|
|
16018
16054
|
e.preventDefault();
|
|
16019
16055
|
dragCounter = 0;
|
|
16020
16056
|
setDragActive(false);
|
|
16021
|
-
if (_optionalChain([e, 'access',
|
|
16057
|
+
if (_optionalChain([e, 'access', _371 => _371.dataTransfer, 'optionalAccess', _372 => _372.files, 'optionalAccess', _373 => _373.length])) {
|
|
16022
16058
|
handleFilesRef.current(e.dataTransfer.files);
|
|
16023
16059
|
}
|
|
16024
16060
|
};
|
|
@@ -16040,7 +16076,7 @@ function FileUpload({
|
|
|
16040
16076
|
};
|
|
16041
16077
|
}, [acceptWindowDrops, disabled]);
|
|
16042
16078
|
const handleFileSelect = (e) => {
|
|
16043
|
-
if (_optionalChain([e, 'access',
|
|
16079
|
+
if (_optionalChain([e, 'access', _374 => _374.target, 'access', _375 => _375.files, 'optionalAccess', _376 => _376.length])) {
|
|
16044
16080
|
handleFiles(e.target.files);
|
|
16045
16081
|
}
|
|
16046
16082
|
};
|
|
@@ -16058,7 +16094,7 @@ function FileUpload({
|
|
|
16058
16094
|
const openDialog = async () => {
|
|
16059
16095
|
if (disabled) return;
|
|
16060
16096
|
if (!pickFiles) {
|
|
16061
|
-
_optionalChain([fileInputRef, 'access',
|
|
16097
|
+
_optionalChain([fileInputRef, 'access', _377 => _377.current, 'optionalAccess', _378 => _378.click, 'call', _379 => _379()]);
|
|
16062
16098
|
return;
|
|
16063
16099
|
}
|
|
16064
16100
|
try {
|
|
@@ -16131,7 +16167,7 @@ function FileUpload({
|
|
|
16131
16167
|
"button",
|
|
16132
16168
|
{
|
|
16133
16169
|
type: "button",
|
|
16134
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
16170
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _380 => _380(entry.id)]),
|
|
16135
16171
|
className: "shrink-0 text-ods-error transition-opacity hover:opacity-80",
|
|
16136
16172
|
"aria-label": `Remove ${entry.fileName}`,
|
|
16137
16173
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TrashIcon, { className: "size-6" })
|
|
@@ -16262,7 +16298,7 @@ function ImageUploader({
|
|
|
16262
16298
|
onChange(file);
|
|
16263
16299
|
};
|
|
16264
16300
|
const handleFileSelect = (e) => {
|
|
16265
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
16301
|
+
validateAndEmit(_optionalChain([e, 'access', _381 => _381.target, 'access', _382 => _382.files, 'optionalAccess', _383 => _383[0]]));
|
|
16266
16302
|
if (inputRef.current) inputRef.current.value = "";
|
|
16267
16303
|
};
|
|
16268
16304
|
const handleDrag = (e) => {
|
|
@@ -16277,11 +16313,11 @@ function ImageUploader({
|
|
|
16277
16313
|
e.stopPropagation();
|
|
16278
16314
|
setDragActive(false);
|
|
16279
16315
|
if (!interactive) return;
|
|
16280
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
16316
|
+
validateAndEmit(_optionalChain([e, 'access', _384 => _384.dataTransfer, 'access', _385 => _385.files, 'optionalAccess', _386 => _386[0]]));
|
|
16281
16317
|
};
|
|
16282
16318
|
const openDialog = () => {
|
|
16283
16319
|
if (!interactive) return;
|
|
16284
|
-
_optionalChain([inputRef, 'access',
|
|
16320
|
+
_optionalChain([inputRef, 'access', _387 => _387.current, 'optionalAccess', _388 => _388.click, 'call', _389 => _389()]);
|
|
16285
16321
|
};
|
|
16286
16322
|
const handleRootKeyDown = (e) => {
|
|
16287
16323
|
if (hasImage || !interactive) return;
|
|
@@ -16453,8 +16489,8 @@ function ColorPresetSelect({
|
|
|
16453
16489
|
}) {
|
|
16454
16490
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
16455
16491
|
const isCustom = !selectedPreset;
|
|
16456
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
16457
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
16492
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _390 => _390.label]), () => ( "Custom"));
|
|
16493
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _391 => _391.color]), () => ( value));
|
|
16458
16494
|
const groups = [
|
|
16459
16495
|
{
|
|
16460
16496
|
items: [
|
|
@@ -16750,7 +16786,7 @@ function TicketStatusConfigRow({
|
|
|
16750
16786
|
{
|
|
16751
16787
|
id: nameInputId,
|
|
16752
16788
|
value: name,
|
|
16753
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
16789
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _392 => _392(e.target.value)]),
|
|
16754
16790
|
disabled: isSystem,
|
|
16755
16791
|
readOnly: isSystem,
|
|
16756
16792
|
maxLength: 50
|
|
@@ -17289,14 +17325,14 @@ function TicketInfoSection({
|
|
|
17289
17325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17290
17326
|
_chunkUQEOAPAIcjs.SquareAvatar,
|
|
17291
17327
|
{
|
|
17292
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
17293
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
17294
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
17328
|
+
src: _optionalChain([organization, 'optionalAccess', _393 => _393.imageSrc]),
|
|
17329
|
+
alt: _optionalChain([organization, 'optionalAccess', _394 => _394.name]),
|
|
17330
|
+
fallback: _optionalChain([organization, 'optionalAccess', _395 => _395.name]) || "Org",
|
|
17295
17331
|
size: "md",
|
|
17296
17332
|
className: "shrink-0"
|
|
17297
17333
|
}
|
|
17298
17334
|
),
|
|
17299
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess',
|
|
17335
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _396 => _396.name]) || "Unassigned", label: "Organization" })
|
|
17300
17336
|
] }),
|
|
17301
17337
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17302
17338
|
AssigneeDropdown,
|
|
@@ -17314,7 +17350,7 @@ function TicketInfoSection({
|
|
|
17314
17350
|
] }),
|
|
17315
17351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: "Assigned" })
|
|
17316
17352
|
] }) }),
|
|
17317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess',
|
|
17353
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _397 => _397.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _398 => _398.icon]), onClick: _optionalChain([device, 'optionalAccess', _399 => _399.onClick]) }),
|
|
17318
17354
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
17319
17355
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17320
17356
|
_chunk7GLJC4EOcjs.TicketStatusTag,
|
|
@@ -17419,7 +17455,7 @@ function TakeOverTicketModal({
|
|
|
17419
17455
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
17420
17456
|
}
|
|
17421
17457
|
}
|
|
17422
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
17458
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _400 => _400[0], 'optionalAccess', _401 => _401.value]))), () => ( null));
|
|
17423
17459
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
17424
17460
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
17425
17461
|
const handleConfirm = () => {
|
|
@@ -17517,7 +17553,7 @@ function ReopenTicketModal({
|
|
|
17517
17553
|
setReason("");
|
|
17518
17554
|
}
|
|
17519
17555
|
}
|
|
17520
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
17556
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _402 => _402[0], 'optionalAccess', _403 => _403.value]))), () => ( null));
|
|
17521
17557
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
17522
17558
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
17523
17559
|
const handleConfirm = () => {
|
|
@@ -17919,10 +17955,10 @@ function AccountDetailsFields({
|
|
|
17919
17955
|
onKeyDown,
|
|
17920
17956
|
layout = "stacked"
|
|
17921
17957
|
}) {
|
|
17922
|
-
const firstNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17923
|
-
const lastNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17924
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17925
|
-
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17958
|
+
const firstNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _404 => _404.firstName]), firstName);
|
|
17959
|
+
const lastNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _405 => _405.lastName]), lastName);
|
|
17960
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _406 => _406.password]), password);
|
|
17961
|
+
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _407 => _407.confirmPassword]), confirmPassword);
|
|
17926
17962
|
const names = [
|
|
17927
17963
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17928
17964
|
_chunkN6HNK25Acjs.Input,
|
|
@@ -18162,7 +18198,7 @@ function SsoProviderButtons({
|
|
|
18162
18198
|
disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
|
|
18163
18199
|
className: "disabled:bg-ods-bg",
|
|
18164
18200
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon2, { className: "h-5 w-5" }),
|
|
18165
|
-
onClick: () => _optionalChain([onSsoClick, 'optionalCall',
|
|
18201
|
+
onClick: () => _optionalChain([onSsoClick, 'optionalCall', _408 => _408(provider)]),
|
|
18166
18202
|
children: `${actionLabel} ${meta.name}`
|
|
18167
18203
|
},
|
|
18168
18204
|
provider
|
|
@@ -18340,9 +18376,9 @@ function CreateOrganizationForm({
|
|
|
18340
18376
|
}) {
|
|
18341
18377
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18342
18378
|
const fieldsDisabled = disabled || loading;
|
|
18343
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18344
|
-
const orgNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18345
|
-
const domainErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18379
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _409 => _409.email]), _nullishCoalesce(email, () => ( "")));
|
|
18380
|
+
const orgNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _410 => _410.organizationName]), organizationName);
|
|
18381
|
+
const domainErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _411 => _411.domain]), domain);
|
|
18346
18382
|
const handleKeyDown = (event) => {
|
|
18347
18383
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18348
18384
|
onSubmit();
|
|
@@ -18367,11 +18403,11 @@ function CreateOrganizationForm({
|
|
|
18367
18403
|
label: "Email",
|
|
18368
18404
|
placeholder: "username@mail.com",
|
|
18369
18405
|
value: email,
|
|
18370
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18371
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18406
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _412 => _412.message]))),
|
|
18407
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _413 => _413.variant]),
|
|
18372
18408
|
disabled: fieldsDisabled,
|
|
18373
18409
|
onBlur: emailErr.onBlur,
|
|
18374
|
-
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall',
|
|
18410
|
+
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _414 => _414(event.target.value)]),
|
|
18375
18411
|
onKeyDown: handleKeyDown
|
|
18376
18412
|
}
|
|
18377
18413
|
),
|
|
@@ -18395,8 +18431,8 @@ function CreateOrganizationForm({
|
|
|
18395
18431
|
label: "Domain",
|
|
18396
18432
|
placeholder: domainPlaceholder,
|
|
18397
18433
|
value: domain,
|
|
18398
|
-
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess',
|
|
18399
|
-
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess',
|
|
18434
|
+
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _415 => _415.message]))),
|
|
18435
|
+
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _416 => _416.variant]),
|
|
18400
18436
|
disabled: fieldsDisabled,
|
|
18401
18437
|
onBlur: domainErr.onBlur,
|
|
18402
18438
|
endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
@@ -18431,7 +18467,7 @@ function CreateOrganizationForm({
|
|
|
18431
18467
|
label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
|
|
18432
18468
|
checked: agreedToTerms,
|
|
18433
18469
|
disabled: fieldsDisabled,
|
|
18434
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
18470
|
+
error: _optionalChain([errors, 'optionalAccess', _417 => _417.terms]),
|
|
18435
18471
|
onCheckedChange: onAgreedToTermsChange
|
|
18436
18472
|
}
|
|
18437
18473
|
),
|
|
@@ -18558,10 +18594,10 @@ function LoginForm({
|
|
|
18558
18594
|
className
|
|
18559
18595
|
}) {
|
|
18560
18596
|
const fieldDisabled = disabled || loading;
|
|
18561
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18597
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _418 => _418.email]), email);
|
|
18562
18598
|
const handleKeyDown = (event) => {
|
|
18563
18599
|
if (event.key !== "Enter" || fieldDisabled || submitDisabled) return;
|
|
18564
|
-
_optionalChain([onSubmitClick, 'optionalCall',
|
|
18600
|
+
_optionalChain([onSubmitClick, 'optionalCall', _419 => _419()]);
|
|
18565
18601
|
};
|
|
18566
18602
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18567
18603
|
"div",
|
|
@@ -18593,8 +18629,8 @@ function LoginForm({
|
|
|
18593
18629
|
label: "Email",
|
|
18594
18630
|
placeholder: emailPlaceholder,
|
|
18595
18631
|
value: email,
|
|
18596
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18597
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18632
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _420 => _420.message]))),
|
|
18633
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _421 => _421.variant]),
|
|
18598
18634
|
disabled: fieldDisabled,
|
|
18599
18635
|
onBlur: emailErr.onBlur,
|
|
18600
18636
|
onChange: (event) => onEmailChange(event.target.value),
|
|
@@ -18673,8 +18709,8 @@ function OpenFrameSsoLoginForm({
|
|
|
18673
18709
|
className
|
|
18674
18710
|
}) {
|
|
18675
18711
|
const fieldsDisabled = disabled || loading;
|
|
18676
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18677
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18712
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _422 => _422.email]), email);
|
|
18713
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _423 => _423.password]), password);
|
|
18678
18714
|
const handleKeyDown = (event) => {
|
|
18679
18715
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18680
18716
|
onSubmit();
|
|
@@ -18779,7 +18815,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
18779
18815
|
className
|
|
18780
18816
|
}) {
|
|
18781
18817
|
const fieldsDisabled = disabled || loading;
|
|
18782
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18818
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _424 => _424.email]), email);
|
|
18783
18819
|
const handleKeyDown = (event) => {
|
|
18784
18820
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18785
18821
|
onSubmit();
|
|
@@ -18884,8 +18920,8 @@ function PasswordResetForm({
|
|
|
18884
18920
|
className
|
|
18885
18921
|
}) {
|
|
18886
18922
|
const fieldsDisabled = disabled || loading;
|
|
18887
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18888
|
-
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18923
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _425 => _425.password]), password);
|
|
18924
|
+
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _426 => _426.confirmPassword]), confirmPassword);
|
|
18889
18925
|
const handleKeyDown = (event) => {
|
|
18890
18926
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18891
18927
|
onSubmit();
|
|
@@ -19006,7 +19042,7 @@ function SsoJoinForm({
|
|
|
19006
19042
|
className
|
|
19007
19043
|
}) {
|
|
19008
19044
|
const fieldsDisabled = disabled || loading;
|
|
19009
|
-
const displayName = _optionalChain([name, 'optionalAccess',
|
|
19045
|
+
const displayName = _optionalChain([name, 'optionalAccess', _427 => _427.trim, 'call', _428 => _428()]) || _optionalChain([email, 'optionalAccess', _429 => _429.trim, 'call', _430 => _430()]) || "";
|
|
19010
19046
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19011
19047
|
"div",
|
|
19012
19048
|
{
|
|
@@ -19681,10 +19717,10 @@ var getContentDimensions = (config) => {
|
|
|
19681
19717
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
19682
19718
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
19683
19719
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
19684
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
19685
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
19686
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
19687
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
19720
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _431 => _431.mobileContentDimensions, 'optionalAccess', _432 => _432.width]))), () => ( defaultMobile.width));
|
|
19721
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _433 => _433.mobileContentDimensions, 'optionalAccess', _434 => _434.height]))), () => ( defaultMobile.height));
|
|
19722
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _435 => _435.desktopContentDimensions, 'optionalAccess', _436 => _436.width]))), () => ( defaultDesktop.width));
|
|
19723
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _437 => _437.desktopContentDimensions, 'optionalAccess', _438 => _438.height]))), () => ( defaultDesktop.height));
|
|
19688
19724
|
return {
|
|
19689
19725
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
19690
19726
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -19840,7 +19876,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
19840
19876
|
const contentDimensions = getContentDimensions(config);
|
|
19841
19877
|
const mobileHeight = contentDimensions.mobile.height;
|
|
19842
19878
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
19843
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
19879
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _439 => _439.innerHeight]) * 0.85 || 650)}px`;
|
|
19844
19880
|
})(),
|
|
19845
19881
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
19846
19882
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -19943,7 +19979,7 @@ var FigmaPrototypeViewer = ({
|
|
|
19943
19979
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
19944
19980
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
19945
19981
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
19946
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
19982
|
+
config.defaultSectionId || _optionalChain([config, 'access', _440 => _440.sections, 'access', _441 => _441[0], 'optionalAccess', _442 => _442.id]) || ""
|
|
19947
19983
|
);
|
|
19948
19984
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
19949
19985
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -20041,19 +20077,19 @@ var FigmaPrototypeViewer = ({
|
|
|
20041
20077
|
setIframeState("READY");
|
|
20042
20078
|
break;
|
|
20043
20079
|
case "PRESENTED_NODE_CHANGED":
|
|
20044
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
20080
|
+
if (_optionalChain([figmaEvent, 'access', _443 => _443.data, 'optionalAccess', _444 => _444.presentedNodeId])) {
|
|
20045
20081
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
20046
20082
|
if (!isNavigating) {
|
|
20047
20083
|
const matchingSection = configSections.find((s) => {
|
|
20048
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20049
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20084
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _445 => _445.data, 'optionalAccess', _446 => _446.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _447 => _447.data, 'optionalAccess', _448 => _448.presentedNodeId]);
|
|
20085
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _449 => _449.data, 'optionalAccess', _450 => _450.presentedNodeId]) || _optionalChain([s, 'access', _451 => _451.mobileStartingNodeId, 'optionalAccess', _452 => _452.replace, 'call', _453 => _453(":", "-")]) === _optionalChain([figmaEvent, 'access', _454 => _454.data, 'optionalAccess', _455 => _455.presentedNodeId]);
|
|
20050
20086
|
return desktopMatch || mobileMatch;
|
|
20051
20087
|
});
|
|
20052
20088
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
20053
20089
|
if (!externalActiveSection) {
|
|
20054
20090
|
setInternalActiveSection(matchingSection.id);
|
|
20055
20091
|
}
|
|
20056
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
20092
|
+
_optionalChain([onSectionChange, 'optionalCall', _456 => _456(matchingSection.id)]);
|
|
20057
20093
|
}
|
|
20058
20094
|
}
|
|
20059
20095
|
}
|
|
@@ -20067,7 +20103,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20067
20103
|
const navigateToSection = _react.useCallback.call(void 0,
|
|
20068
20104
|
(sectionId) => {
|
|
20069
20105
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
20070
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
20106
|
+
if (!section || !_optionalChain([iframeRef, 'access', _457 => _457.current, 'optionalAccess', _458 => _458.contentWindow]) || !isInitialized) {
|
|
20071
20107
|
return;
|
|
20072
20108
|
}
|
|
20073
20109
|
setIsNavigating(true);
|
|
@@ -20075,7 +20111,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20075
20111
|
if (!externalActiveSection) {
|
|
20076
20112
|
setInternalActiveSection(sectionId);
|
|
20077
20113
|
}
|
|
20078
|
-
_optionalChain([config, 'access',
|
|
20114
|
+
_optionalChain([config, 'access', _459 => _459.onSectionChange, 'optionalCall', _460 => _460(sectionId)]);
|
|
20079
20115
|
const command = {
|
|
20080
20116
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
20081
20117
|
data: { nodeId }
|
|
@@ -20412,7 +20448,7 @@ var FiltersDropdown = ({
|
|
|
20412
20448
|
defaults[section.id] = section.defaultSelected || [];
|
|
20413
20449
|
});
|
|
20414
20450
|
setSelectedFilters(defaults);
|
|
20415
|
-
_optionalChain([onReset, 'optionalCall',
|
|
20451
|
+
_optionalChain([onReset, 'optionalCall', _461 => _461()]);
|
|
20416
20452
|
setIsOpen(false);
|
|
20417
20453
|
};
|
|
20418
20454
|
const handleApply = () => {
|
|
@@ -20661,7 +20697,7 @@ function MediaGalleryManager({
|
|
|
20661
20697
|
const [draggedIndex, setDraggedIndex] = _react.useState.call(void 0, null);
|
|
20662
20698
|
const handleFileSelect = _react.useCallback.call(void 0,
|
|
20663
20699
|
async (event) => {
|
|
20664
|
-
const file = _optionalChain([event, 'access',
|
|
20700
|
+
const file = _optionalChain([event, 'access', _462 => _462.target, 'access', _463 => _463.files, 'optionalAccess', _464 => _464[0]]);
|
|
20665
20701
|
if (!file) return;
|
|
20666
20702
|
let mediaType;
|
|
20667
20703
|
if (file.type.startsWith("image/")) {
|
|
@@ -20786,7 +20822,7 @@ function MediaGalleryManager({
|
|
|
20786
20822
|
{
|
|
20787
20823
|
type: "button",
|
|
20788
20824
|
variant: "outline",
|
|
20789
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
20825
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _465 => _465.current, 'optionalAccess', _466 => _466.click, 'call', _467 => _467()]),
|
|
20790
20826
|
disabled: isUploading,
|
|
20791
20827
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
20792
20828
|
className: "font-bold text-h6",
|
|
@@ -22911,9 +22947,9 @@ function PushButtonSelector({
|
|
|
22911
22947
|
}) {
|
|
22912
22948
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
22913
22949
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
22914
|
-
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
22915
|
-
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
22916
|
-
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess',
|
|
22950
|
+
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _468 => _468.hasMore]), () => ( false));
|
|
22951
|
+
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _469 => _469.isFetchingMore]), () => ( false));
|
|
22952
|
+
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _470 => _470.onLoadMore]);
|
|
22917
22953
|
const optionCount = options.length;
|
|
22918
22954
|
_react.useEffect.call(void 0, () => {
|
|
22919
22955
|
const sentinel = sentinelRef.current;
|
|
@@ -23084,7 +23120,7 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
23084
23120
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
23085
23121
|
const [uploadingIndex, setUploadingIndex] = _react.useState.call(void 0, null);
|
|
23086
23122
|
const handleFileSelect = async (event) => {
|
|
23087
|
-
const file = _optionalChain([event, 'access',
|
|
23123
|
+
const file = _optionalChain([event, 'access', _471 => _471.target, 'access', _472 => _472.files, 'optionalAccess', _473 => _473[0]]);
|
|
23088
23124
|
if (!file) return;
|
|
23089
23125
|
let mediaType;
|
|
23090
23126
|
if (file.type.startsWith("image/")) {
|
|
@@ -23166,7 +23202,7 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
23166
23202
|
{
|
|
23167
23203
|
type: "button",
|
|
23168
23204
|
variant: "outline",
|
|
23169
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
23205
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _474 => _474.current, 'optionalAccess', _475 => _475.click, 'call', _476 => _476()]),
|
|
23170
23206
|
disabled: uploadingIndex !== null,
|
|
23171
23207
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
23172
23208
|
className: "font-bold text-h6",
|
|
@@ -23447,7 +23483,7 @@ function SEOEditorPreview({
|
|
|
23447
23483
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
23448
23484
|
const handleImageUpload = async (event) => {
|
|
23449
23485
|
if (!onOgImageUpload) return;
|
|
23450
|
-
const file = _optionalChain([event, 'access',
|
|
23486
|
+
const file = _optionalChain([event, 'access', _477 => _477.target, 'access', _478 => _478.files, 'optionalAccess', _479 => _479[0]]);
|
|
23451
23487
|
if (!file) return;
|
|
23452
23488
|
setIsUploading(true);
|
|
23453
23489
|
try {
|
|
@@ -23604,7 +23640,7 @@ function SEOEditorPreview({
|
|
|
23604
23640
|
type: "button",
|
|
23605
23641
|
variant: "outline",
|
|
23606
23642
|
size: "icon",
|
|
23607
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
23643
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _480 => _480.click, 'call', _481 => _481()]),
|
|
23608
23644
|
disabled: disabled || isUploading,
|
|
23609
23645
|
className: "rounded-full bg-white text-black opacity-0 hover:bg-gray-100 group-hover:opacity-100",
|
|
23610
23646
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -23630,7 +23666,7 @@ function SEOEditorPreview({
|
|
|
23630
23666
|
SEO_MEDIA_BOX_HEIGHT,
|
|
23631
23667
|
"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"
|
|
23632
23668
|
),
|
|
23633
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
23669
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _482 => _482.click, 'call', _483 => _483()]),
|
|
23634
23670
|
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: [
|
|
23635
23671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
|
|
23636
23672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -23791,7 +23827,7 @@ function SocialLinksManager({
|
|
|
23791
23827
|
className = ""
|
|
23792
23828
|
}) {
|
|
23793
23829
|
const addLink = () => {
|
|
23794
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
23830
|
+
const firstPlatform = _optionalChain([platforms, 'access', _484 => _484[0], 'optionalAccess', _485 => _485.name]) || "website";
|
|
23795
23831
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
23796
23832
|
};
|
|
23797
23833
|
const removeLink = (index) => {
|
|
@@ -23803,7 +23839,7 @@ function SocialLinksManager({
|
|
|
23803
23839
|
onChange(updated);
|
|
23804
23840
|
};
|
|
23805
23841
|
const getIcon = (link, platform) => {
|
|
23806
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
23842
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _486 => _486.icon_name]) || link.platform;
|
|
23807
23843
|
const key = normalizeSocialPlatform(iconKey);
|
|
23808
23844
|
if (!key) return null;
|
|
23809
23845
|
const IconComponent = SOCIAL_ICON_COMPONENTS[key];
|
|
@@ -23827,7 +23863,7 @@ function SocialLinksManager({
|
|
|
23827
23863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23828
23864
|
_chunkN6HNK25Acjs.Input,
|
|
23829
23865
|
{
|
|
23830
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
23866
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _487 => _487.placeholder]) || "Profile URL",
|
|
23831
23867
|
value: link.url,
|
|
23832
23868
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
23833
23869
|
onKeyDown: (e) => {
|
|
@@ -24223,8 +24259,8 @@ function VideoBitesDisplay({
|
|
|
24223
24259
|
|
|
24224
24260
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24225
24261
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
24226
|
-
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
24227
|
-
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
24262
|
+
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _488 => _488.getCurrentTime, 'call', _489 => _489()]), () => ( 0));
|
|
24263
|
+
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _490 => _490.getDuration, 'call', _491 => _491()]), () => ( 0)), time);
|
|
24228
24264
|
return {
|
|
24229
24265
|
// At end -> start over, never rewind to an unrelated older anchor.
|
|
24230
24266
|
time: atEnd ? 0 : time > 0.5 ? time : fallbackTime,
|
|
@@ -24256,11 +24292,11 @@ function WalkthroughVideo({
|
|
|
24256
24292
|
const inline = placement === "inline";
|
|
24257
24293
|
const dismissEnabled = dismissal !== false;
|
|
24258
24294
|
const storageKey = dismissEnabled && dismissal.storageKey || WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24259
|
-
const dismissalId = _optionalChain([video, 'optionalAccess',
|
|
24295
|
+
const dismissalId = _optionalChain([video, 'optionalAccess', _492 => _492.id]) != null ? String(video.id) : "dismissed";
|
|
24260
24296
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24261
24297
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
24262
24298
|
const hasVideo = video != null;
|
|
24263
|
-
const videoId = _optionalChain([video, 'optionalAccess',
|
|
24299
|
+
const videoId = _optionalChain([video, 'optionalAccess', _493 => _493.id]);
|
|
24264
24300
|
_react.useEffect.call(void 0, () => {
|
|
24265
24301
|
let idleHandle = null;
|
|
24266
24302
|
if (!hasVideo) return void 0;
|
|
@@ -24287,9 +24323,9 @@ function WalkthroughVideo({
|
|
|
24287
24323
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24288
24324
|
if (!hydrated) return false;
|
|
24289
24325
|
try {
|
|
24290
|
-
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access',
|
|
24326
|
+
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _494 => _494.matchMedia, 'optionalCall', _495 => _495("(prefers-reduced-motion: reduce)"), 'access', _496 => _496.matches]), () => ( false));
|
|
24291
24327
|
const conn = navigator.connection;
|
|
24292
|
-
const saveData = _optionalChain([conn, 'optionalAccess',
|
|
24328
|
+
const saveData = _optionalChain([conn, 'optionalAccess', _497 => _497.saveData]) === true || _optionalChain([conn, 'optionalAccess', _498 => _498.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _499 => _499.effectiveType]) === "slow-2g";
|
|
24293
24329
|
return Boolean(reducedMotion || saveData);
|
|
24294
24330
|
} catch (e28) {
|
|
24295
24331
|
return false;
|
|
@@ -24322,18 +24358,18 @@ function WalkthroughVideo({
|
|
|
24322
24358
|
const [cardMuted, setCardMuted] = _react.useState.call(void 0, false);
|
|
24323
24359
|
const [cardPaused, setCardPaused] = _react.useState.call(void 0, false);
|
|
24324
24360
|
const [userMuted, setUserMuted] = _react.useState.call(void 0, false);
|
|
24325
|
-
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess',
|
|
24361
|
+
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _500 => _500.youtubeUrl]));
|
|
24326
24362
|
const resumeMode = !open && handoff !== null && !isYouTube;
|
|
24327
24363
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
24328
24364
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
24329
|
-
const footerHidden = _optionalChain([footerObservation, 'optionalAccess',
|
|
24365
|
+
const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _501 => _501.key]) === footerFadeKey && footerObservation.hidden;
|
|
24330
24366
|
_react.useEffect.call(void 0, () => {
|
|
24331
24367
|
if (!mounted) return void 0;
|
|
24332
24368
|
if (inline) return void 0;
|
|
24333
24369
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
24334
24370
|
if (!el || typeof IntersectionObserver === "undefined") return void 0;
|
|
24335
24371
|
const io = new IntersectionObserver(
|
|
24336
|
-
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access',
|
|
24372
|
+
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _502 => _502[0], 'optionalAccess', _503 => _503.isIntersecting]), () => ( false)) }),
|
|
24337
24373
|
{ rootMargin: "0px 0px -40px 0px" }
|
|
24338
24374
|
);
|
|
24339
24375
|
io.observe(el);
|
|
@@ -24359,7 +24395,7 @@ function WalkthroughVideo({
|
|
|
24359
24395
|
if (!footerHidden) return;
|
|
24360
24396
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24361
24397
|
try {
|
|
24362
|
-
_optionalChain([h, 'optionalAccess',
|
|
24398
|
+
_optionalChain([h, 'optionalAccess', _504 => _504.pause, 'call', _505 => _505()]);
|
|
24363
24399
|
} catch (e30) {
|
|
24364
24400
|
}
|
|
24365
24401
|
}, [footerHidden, resumeMode, hovered]);
|
|
@@ -24378,30 +24414,30 @@ function WalkthroughVideo({
|
|
|
24378
24414
|
}, 400);
|
|
24379
24415
|
}
|
|
24380
24416
|
if (openProp === void 0) setOpenState(next);
|
|
24381
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
24417
|
+
_optionalChain([onOpenChange, 'optionalCall', _506 => _506(next)]);
|
|
24382
24418
|
},
|
|
24383
24419
|
[openProp, onOpenChange]
|
|
24384
24420
|
);
|
|
24385
24421
|
const pausePreviewNow = _react.useCallback.call(void 0, () => {
|
|
24386
24422
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24387
24423
|
try {
|
|
24388
|
-
_optionalChain([h, 'optionalAccess',
|
|
24424
|
+
_optionalChain([h, 'optionalAccess', _507 => _507.pause, 'call', _508 => _508()]);
|
|
24389
24425
|
} catch (e31) {
|
|
24390
24426
|
}
|
|
24391
24427
|
setCardPaused(true);
|
|
24392
24428
|
}, [setCardPaused]);
|
|
24393
24429
|
const openTheater = _react.useCallback.call(void 0, () => {
|
|
24394
24430
|
const handleBeforePause = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24395
|
-
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess',
|
|
24431
|
+
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _509 => _509.getPaused, 'call', _510 => _510()]) === false;
|
|
24396
24432
|
pausePreviewNow();
|
|
24397
24433
|
const liveHandle = _nullishCoalesce(resumeHandleRef.current, () => ( (cardModeRef.current === "preview" ? previewHandleRef.current : null)));
|
|
24398
|
-
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
24399
|
-
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
24434
|
+
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _511 => _511.getCurrentTime, 'call', _512 => _512()]), () => ( 0));
|
|
24435
|
+
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _513 => _513.getDuration, 'call', _514 => _514()]), () => ( 0));
|
|
24400
24436
|
const liveAtEnd = isAtEnd(liveDuration, liveTime);
|
|
24401
24437
|
const start = {
|
|
24402
24438
|
// At end -> start over. Falling back to `handoff.time` here would rewind
|
|
24403
24439
|
// to an unrelated older anchor (e.g. 3:20) instead of restarting.
|
|
24404
|
-
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
24440
|
+
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _515 => _515.time]), () => ( 0)),
|
|
24405
24441
|
// Live element wins over remembered intent (the theater's own chrome may
|
|
24406
24442
|
// have changed it) — EXCEPT when the element is muted only because
|
|
24407
24443
|
// autoplay policy forced it, which is not intent.
|
|
@@ -24429,7 +24465,7 @@ function WalkthroughVideo({
|
|
|
24429
24465
|
const selfDriven = selfDrivenFor === open;
|
|
24430
24466
|
if (openProp !== void 0 && !selfDriven) {
|
|
24431
24467
|
if (open) {
|
|
24432
|
-
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
24468
|
+
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _516 => _516.time]), () => ( 0)), userMuted));
|
|
24433
24469
|
setHovered(false);
|
|
24434
24470
|
setSuspended(false);
|
|
24435
24471
|
setHandoff(null);
|
|
@@ -24515,8 +24551,8 @@ function WalkthroughVideo({
|
|
|
24515
24551
|
});
|
|
24516
24552
|
_react.useEffect.call(void 0, () => {
|
|
24517
24553
|
if (resumeMode) {
|
|
24518
|
-
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access',
|
|
24519
|
-
setCardPaused(_optionalChain([handoffRef, 'access',
|
|
24554
|
+
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _517 => _517.current, 'optionalAccess', _518 => _518.muted]), () => ( false)));
|
|
24555
|
+
setCardPaused(_optionalChain([handoffRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.playing]) === false);
|
|
24520
24556
|
}
|
|
24521
24557
|
}, [resumeMode]);
|
|
24522
24558
|
const [hoverSeeded, setHoverSeeded] = _react.useState.call(void 0, hovered);
|
|
@@ -24598,11 +24634,11 @@ function WalkthroughVideo({
|
|
|
24598
24634
|
},
|
|
24599
24635
|
[cardFallback.blocked, cardPaused, activeHandle, setCardPaused]
|
|
24600
24636
|
);
|
|
24601
|
-
const summaryTitle = _optionalChain([video, 'optionalAccess',
|
|
24602
|
-
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24637
|
+
const summaryTitle = _optionalChain([video, 'optionalAccess', _521 => _521.title]) || void 0;
|
|
24638
|
+
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _522 => _522.presenterAvatarUrl]), () => ( null));
|
|
24603
24639
|
const embedUrlKey = _react.useMemo.call(void 0,
|
|
24604
|
-
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24605
|
-
[_optionalChain([video, 'optionalAccess',
|
|
24640
|
+
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _523 => _523.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _524 => _524.youtubeUrl]), () => ( ""))}`,
|
|
24641
|
+
[_optionalChain([video, 'optionalAccess', _525 => _525.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _526 => _526.youtubeUrl])]
|
|
24606
24642
|
);
|
|
24607
24643
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24608
24644
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
@@ -24661,7 +24697,7 @@ function WalkthroughVideo({
|
|
|
24661
24697
|
const el = e.target;
|
|
24662
24698
|
let keyboard = false;
|
|
24663
24699
|
try {
|
|
24664
|
-
keyboard = _nullishCoalesce(_optionalChain([el, 'access',
|
|
24700
|
+
keyboard = _nullishCoalesce(_optionalChain([el, 'access', _527 => _527.matches, 'optionalCall', _528 => _528(":focus-visible")]), () => ( false));
|
|
24665
24701
|
} catch (e36) {
|
|
24666
24702
|
keyboard = false;
|
|
24667
24703
|
}
|
|
@@ -24695,9 +24731,9 @@ function WalkthroughVideo({
|
|
|
24695
24731
|
previewHandleRef: cardMode === "resume" ? resumeHandleRef : previewHandleRef,
|
|
24696
24732
|
mutedIntent: userMuted,
|
|
24697
24733
|
continuation: cardMode === "resume",
|
|
24698
|
-
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess',
|
|
24699
|
-
startTime: _optionalChain([resumeHandoff, 'optionalAccess',
|
|
24700
|
-
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess',
|
|
24734
|
+
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _529 => _529.playing]) !== false && !footerHidden,
|
|
24735
|
+
startTime: _optionalChain([resumeHandoff, 'optionalAccess', _530 => _530.time]),
|
|
24736
|
+
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _531 => _531.muted]), () => ( false)),
|
|
24701
24737
|
onEnded: cardMode === "resume" ? () => setHandoff(null) : () => setCardPaused(true)
|
|
24702
24738
|
},
|
|
24703
24739
|
`card-${embedUrlKey}`
|
|
@@ -24794,7 +24830,7 @@ function WalkthroughVideo({
|
|
|
24794
24830
|
{
|
|
24795
24831
|
onOpenAutoFocus: (e) => {
|
|
24796
24832
|
e.preventDefault();
|
|
24797
|
-
_optionalChain([closeButtonRef, 'access',
|
|
24833
|
+
_optionalChain([closeButtonRef, 'access', _532 => _532.current, 'optionalAccess', _533 => _533.focus, 'call', _534 => _534()]);
|
|
24798
24834
|
},
|
|
24799
24835
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
24800
24836
|
// PURE theater: just the video, centered on a dimmed backdrop.
|
|
@@ -24888,14 +24924,14 @@ function useWalkthroughVideo(opts) {
|
|
|
24888
24924
|
if (res.status === 404) return null;
|
|
24889
24925
|
if (!res.ok) throw new Error(`Walkthrough video request failed (${res.status})`);
|
|
24890
24926
|
const body = await res.json();
|
|
24891
|
-
return _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
24927
|
+
return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _535 => _535.walkthroughVideo]), () => ( null));
|
|
24892
24928
|
},
|
|
24893
24929
|
// Per-observer transform — NEVER mutate the cached data. `select` also runs
|
|
24894
24930
|
// over `initialData`, so the SSR seed is rewritten too. Keeping the proxy
|
|
24895
24931
|
// rewrite here (not in queryFn) means a second consumer of the same
|
|
24896
24932
|
// endpoint can't inherit this observer's proxied captionsUrl from the cache.
|
|
24897
24933
|
select: (video) => {
|
|
24898
|
-
if (!_optionalChain([video, 'optionalAccess',
|
|
24934
|
+
if (!_optionalChain([video, 'optionalAccess', _536 => _536.captionsUrl])) return video;
|
|
24899
24935
|
if (transformCaptionsUrl && video.captionsUrl.startsWith("/")) {
|
|
24900
24936
|
return { ...video, captionsUrl: transformCaptionsUrl(video.captionsUrl) };
|
|
24901
24937
|
}
|
|
@@ -24942,7 +24978,7 @@ function VideoSourceSelector({
|
|
|
24942
24978
|
input.accept = "video/*";
|
|
24943
24979
|
input.onchange = async (e) => {
|
|
24944
24980
|
const target = e.target;
|
|
24945
|
-
const file = _optionalChain([target, 'access',
|
|
24981
|
+
const file = _optionalChain([target, 'access', _537 => _537.files, 'optionalAccess', _538 => _538[0]]);
|
|
24946
24982
|
if (!file) return;
|
|
24947
24983
|
setIsUploading(true);
|
|
24948
24984
|
setUploadProgress(0);
|
|
@@ -25118,7 +25154,7 @@ function SubtitlesEditor({
|
|
|
25118
25154
|
{
|
|
25119
25155
|
id,
|
|
25120
25156
|
value: subtitles || "",
|
|
25121
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
25157
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _539 => _539(e.target.value)]),
|
|
25122
25158
|
placeholder,
|
|
25123
25159
|
disabled: disabled || !onSubtitlesChange,
|
|
25124
25160
|
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",
|
|
@@ -25347,7 +25383,7 @@ var AIEnrichSection = ({
|
|
|
25347
25383
|
}) => {
|
|
25348
25384
|
const hasResults = status === "success" || status === "error";
|
|
25349
25385
|
const shouldDisable = disabled || !canEnrich;
|
|
25350
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
25386
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _540 => _540.filter, 'call', _541 => _541((f) => !f.isFilled)]) || [];
|
|
25351
25387
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25352
25388
|
"div",
|
|
25353
25389
|
{
|
|
@@ -25379,7 +25415,7 @@ var AIEnrichSection = ({
|
|
|
25379
25415
|
{
|
|
25380
25416
|
id: "ai-enrich-custom-instructions",
|
|
25381
25417
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
25382
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
25418
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _542 => _542(e.target.value)]),
|
|
25383
25419
|
placeholder: customInstructionsPlaceholder,
|
|
25384
25420
|
disabled: loading,
|
|
25385
25421
|
maxLength: customInstructionsMaxLength,
|
|
@@ -25501,7 +25537,7 @@ function HighlightVideoSection({
|
|
|
25501
25537
|
input.accept = "video/*";
|
|
25502
25538
|
input.onchange = async (e) => {
|
|
25503
25539
|
const target = e.target;
|
|
25504
|
-
const file = _optionalChain([target, 'access',
|
|
25540
|
+
const file = _optionalChain([target, 'access', _543 => _543.files, 'optionalAccess', _544 => _544[0]]);
|
|
25505
25541
|
if (!file) return;
|
|
25506
25542
|
setUploadError(null);
|
|
25507
25543
|
try {
|
|
@@ -25928,7 +25964,7 @@ function HighlightVideoPreview({
|
|
|
25928
25964
|
input.accept = "video/*";
|
|
25929
25965
|
input.onchange = async (e) => {
|
|
25930
25966
|
const target = e.target;
|
|
25931
|
-
const file = _optionalChain([target, 'access',
|
|
25967
|
+
const file = _optionalChain([target, 'access', _545 => _545.files, 'optionalAccess', _546 => _546[0]]);
|
|
25932
25968
|
if (!file) return;
|
|
25933
25969
|
await onUpload(file);
|
|
25934
25970
|
};
|
|
@@ -26112,7 +26148,7 @@ function HighlightVideoCombinedSection({
|
|
|
26112
26148
|
input.accept = "video/*";
|
|
26113
26149
|
input.onchange = async (e) => {
|
|
26114
26150
|
const target = e.target;
|
|
26115
|
-
const file = _optionalChain([target, 'access',
|
|
26151
|
+
const file = _optionalChain([target, 'access', _547 => _547.files, 'optionalAccess', _548 => _548[0]]);
|
|
26116
26152
|
if (!file) return;
|
|
26117
26153
|
await onUpload(file);
|
|
26118
26154
|
};
|
|
@@ -26791,19 +26827,19 @@ function NotificationsProvider({
|
|
|
26791
26827
|
}, []);
|
|
26792
26828
|
const markRead = _react.useCallback.call(void 0, (id) => {
|
|
26793
26829
|
dispatch({ type: "markRead", id });
|
|
26794
|
-
void _optionalChain([actionsRef, 'access',
|
|
26830
|
+
void _optionalChain([actionsRef, 'access', _549 => _549.current, 'optionalAccess', _550 => _550.onMarkRead, 'optionalCall', _551 => _551(id)]);
|
|
26795
26831
|
}, []);
|
|
26796
26832
|
const markAllRead = _react.useCallback.call(void 0, () => {
|
|
26797
26833
|
dispatch({ type: "markAllRead" });
|
|
26798
|
-
void _optionalChain([actionsRef, 'access',
|
|
26834
|
+
void _optionalChain([actionsRef, 'access', _552 => _552.current, 'optionalAccess', _553 => _553.onMarkAllRead, 'optionalCall', _554 => _554()]);
|
|
26799
26835
|
}, []);
|
|
26800
26836
|
const markSettled = _react.useCallback.call(void 0, (id) => {
|
|
26801
26837
|
dispatch({ type: "markSettled", id });
|
|
26802
|
-
void _optionalChain([actionsRef, 'access',
|
|
26838
|
+
void _optionalChain([actionsRef, 'access', _555 => _555.current, 'optionalAccess', _556 => _556.onMarkSettled, 'optionalCall', _557 => _557(id)]);
|
|
26803
26839
|
}, []);
|
|
26804
26840
|
const remove = _react.useCallback.call(void 0, (id) => {
|
|
26805
26841
|
dispatch({ type: "remove", id });
|
|
26806
|
-
void _optionalChain([actionsRef, 'access',
|
|
26842
|
+
void _optionalChain([actionsRef, 'access', _558 => _558.current, 'optionalAccess', _559 => _559.onRemove, 'optionalCall', _560 => _560(id)]);
|
|
26807
26843
|
}, []);
|
|
26808
26844
|
const clear = _react.useCallback.call(void 0, () => dispatch({ type: "clear" }), []);
|
|
26809
26845
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -26812,14 +26848,14 @@ function NotificationsProvider({
|
|
|
26812
26848
|
const setShowPopups = _react.useCallback.call(void 0,
|
|
26813
26849
|
(value2) => {
|
|
26814
26850
|
setShowPopupsState(value2);
|
|
26815
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
26851
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _561 => _561(value2)]);
|
|
26816
26852
|
},
|
|
26817
26853
|
[onShowPopupsChange]
|
|
26818
26854
|
);
|
|
26819
26855
|
const setShowDesktopPopups = _react.useCallback.call(void 0,
|
|
26820
26856
|
(value2) => {
|
|
26821
26857
|
setShowDesktopPopupsState(value2);
|
|
26822
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
26858
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _562 => _562(value2)]);
|
|
26823
26859
|
},
|
|
26824
26860
|
[onShowDesktopPopupsChange]
|
|
26825
26861
|
);
|
|
@@ -26935,7 +26971,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
26935
26971
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
26936
26972
|
(next) => {
|
|
26937
26973
|
if (!isControlled) setInternalOpen(next);
|
|
26938
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
26974
|
+
_optionalChain([onOpenChange, 'optionalCall', _563 => _563(next)]);
|
|
26939
26975
|
},
|
|
26940
26976
|
[isControlled, onOpenChange]
|
|
26941
26977
|
);
|
|
@@ -26952,9 +26988,9 @@ var AppLayoutDrawerRoot = ({
|
|
|
26952
26988
|
}
|
|
26953
26989
|
}));
|
|
26954
26990
|
_react.useEffect.call(void 0, () => {
|
|
26955
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
26991
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _564 => _564.notifyDrawerDidOpen, 'call', _565 => _565(selfHandle)]);
|
|
26956
26992
|
}, [open, coordination, selfHandle]);
|
|
26957
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
26993
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _566 => _566.registerDrawer, 'call', _567 => _567(selfHandle)]), [coordination, selfHandle]);
|
|
26958
26994
|
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 }) });
|
|
26959
26995
|
};
|
|
26960
26996
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27303,10 +27339,10 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27303
27339
|
),
|
|
27304
27340
|
style,
|
|
27305
27341
|
onInteractOutside: (event) => {
|
|
27306
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
27342
|
+
_optionalChain([onInteractOutside, 'optionalCall', _568 => _568(event)]);
|
|
27307
27343
|
if (event.defaultPrevented) return;
|
|
27308
27344
|
const target = event.target;
|
|
27309
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
27345
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _569 => _569.contains, 'call', _570 => _570(target)]);
|
|
27310
27346
|
if (!isInsideContainer) {
|
|
27311
27347
|
event.preventDefault();
|
|
27312
27348
|
return;
|
|
@@ -27409,7 +27445,7 @@ function NotificationTile({
|
|
|
27409
27445
|
if (!counting) return void 0;
|
|
27410
27446
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27411
27447
|
const timer = window.setTimeout(() => {
|
|
27412
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
27448
|
+
_optionalChain([onSettle, 'optionalCall', _571 => _571(id)]);
|
|
27413
27449
|
}, remaining);
|
|
27414
27450
|
return () => window.clearTimeout(timer);
|
|
27415
27451
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -27449,7 +27485,7 @@ function NotificationTile({
|
|
|
27449
27485
|
active: isLive,
|
|
27450
27486
|
label: "Dismiss notification",
|
|
27451
27487
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.XmarkIcon, { size: 16 }),
|
|
27452
|
-
onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
27488
|
+
onClick: () => _optionalChain([onSettle, 'optionalCall', _572 => _572(id)])
|
|
27453
27489
|
},
|
|
27454
27490
|
{
|
|
27455
27491
|
active: !isLive,
|
|
@@ -27637,7 +27673,7 @@ function DrawerScrollList({
|
|
|
27637
27673
|
if (!sentinel || !root) return void 0;
|
|
27638
27674
|
const observer = new IntersectionObserver(
|
|
27639
27675
|
(entries) => {
|
|
27640
|
-
if (_optionalChain([entries, 'access',
|
|
27676
|
+
if (_optionalChain([entries, 'access', _573 => _573[0], 'optionalAccess', _574 => _574.isIntersecting])) _optionalChain([loadMoreRef, 'access', _575 => _575.current, 'optionalCall', _576 => _576()]);
|
|
27641
27677
|
},
|
|
27642
27678
|
{ root, rootMargin: loadMoreRootMargin }
|
|
27643
27679
|
);
|
|
@@ -27652,7 +27688,7 @@ function DrawerScrollList({
|
|
|
27652
27688
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
27653
27689
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27654
27690
|
unreadNotifications.map((n) => {
|
|
27655
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27691
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _577 => _577(n, { onComplete, onSettle, liveDurationMs })]);
|
|
27656
27692
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
27657
27693
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27658
27694
|
NotificationTile,
|
|
@@ -27772,7 +27808,7 @@ function NotificationPopups({
|
|
|
27772
27808
|
}) {
|
|
27773
27809
|
const ctx = useOptionalNotifications();
|
|
27774
27810
|
const [now, setNow] = _react.useState.call(void 0, () => Date.now());
|
|
27775
|
-
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess',
|
|
27811
|
+
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _578 => _578.notifications, 'access', _579 => _579.some, 'call', _580 => _580((n) => !n.read && !n.settled)]));
|
|
27776
27812
|
_react.useEffect.call(void 0, () => {
|
|
27777
27813
|
if (!hasAgeingNotifications) return void 0;
|
|
27778
27814
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
@@ -27815,7 +27851,7 @@ function NotificationPopups({
|
|
|
27815
27851
|
className
|
|
27816
27852
|
),
|
|
27817
27853
|
children: live.map((n) => {
|
|
27818
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27854
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _581 => _581(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
27819
27855
|
if (custom) {
|
|
27820
27856
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
27821
27857
|
}
|
|
@@ -27854,21 +27890,21 @@ function NotificationPopups({
|
|
|
27854
27890
|
// src/components/features/notifications/types.ts
|
|
27855
27891
|
var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
|
|
27856
27892
|
function isApprovalNotification(notification) {
|
|
27857
|
-
return _optionalChain([notification, 'access',
|
|
27893
|
+
return _optionalChain([notification, 'access', _582 => _582.meta, 'optionalAccess', _583 => _583.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
|
|
27858
27894
|
}
|
|
27859
27895
|
function getApprovalMeta(notification) {
|
|
27860
27896
|
if (!isApprovalNotification(notification)) return null;
|
|
27861
27897
|
const meta = notification.meta;
|
|
27862
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
27863
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
27898
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _584 => _584.approvalRequestId]);
|
|
27899
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _585 => _585.toolCalls]);
|
|
27864
27900
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
27865
27901
|
return {
|
|
27866
27902
|
approvalRequestId,
|
|
27867
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27868
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27869
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27870
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27871
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27903
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _586 => _586.dialogId]), () => ( null)),
|
|
27904
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _587 => _587.ticketId]), () => ( null)),
|
|
27905
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _588 => _588.approvalType]), () => ( null)),
|
|
27906
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _589 => _589.resolution]), () => ( null)),
|
|
27907
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _590 => _590.resolvedByName]), () => ( null)),
|
|
27872
27908
|
toolCalls
|
|
27873
27909
|
};
|
|
27874
27910
|
}
|
|
@@ -27918,7 +27954,7 @@ function ApprovalRequestNotificationTile({
|
|
|
27918
27954
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
27919
27955
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
27920
27956
|
const approval = getApprovalMeta(notification);
|
|
27921
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
27957
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _591 => _591.resolution]));
|
|
27922
27958
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
27923
27959
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
27924
27960
|
const { innerRef, containerStyle } = _chunk7GLJC4EOcjs.useCollapsible.call(void 0, { expanded });
|
|
@@ -28245,7 +28281,7 @@ function TimeTrackerPanel({
|
|
|
28245
28281
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
28246
28282
|
disableClientFilter: !!onTicketSearch,
|
|
28247
28283
|
onInputChange: (value, reason) => {
|
|
28248
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
28284
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _592 => _592(value)]);
|
|
28249
28285
|
}
|
|
28250
28286
|
}
|
|
28251
28287
|
),
|
|
@@ -28260,7 +28296,7 @@ function TimeTrackerPanel({
|
|
|
28260
28296
|
disabled: customerLocked,
|
|
28261
28297
|
disableClientFilter: !!onCustomerSearch,
|
|
28262
28298
|
onInputChange: (value, reason) => {
|
|
28263
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
28299
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _593 => _593(value)]);
|
|
28264
28300
|
},
|
|
28265
28301
|
startAdornment: customerStartAdornment,
|
|
28266
28302
|
renderOption: renderCustomerOption
|
|
@@ -28362,7 +28398,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28362
28398
|
{
|
|
28363
28399
|
variant: "outline",
|
|
28364
28400
|
size: "icon",
|
|
28365
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
28401
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _594 => _594(entry)]),
|
|
28366
28402
|
disabled: !onClick,
|
|
28367
28403
|
"aria-label": `Open entry: ${entry.title}`,
|
|
28368
28404
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -28446,28 +28482,28 @@ function HeaderButton({
|
|
|
28446
28482
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
28447
28483
|
const ctx = useOptionalTimeTracker();
|
|
28448
28484
|
const elapsedLabel = useTrackerClock({
|
|
28449
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28450
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
28451
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
28485
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _595 => _595.status]), () => ( "ready")),
|
|
28486
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _596 => _596.runningSince]),
|
|
28487
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _597 => _597.accumulatedMs])
|
|
28452
28488
|
});
|
|
28453
28489
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
28454
28490
|
const coordination = useAppLayoutDrawerCoordination();
|
|
28455
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28491
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _598 => _598.isOpen]), () => ( false));
|
|
28456
28492
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
28457
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
28493
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _599 => _599.close]));
|
|
28458
28494
|
_react.useEffect.call(void 0, () => {
|
|
28459
28495
|
isOpenRef.current = isOpen;
|
|
28460
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
28496
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _600 => _600.close]);
|
|
28461
28497
|
});
|
|
28462
28498
|
const [selfHandle] = _react.useState.call(void 0, () => ({
|
|
28463
28499
|
close: () => {
|
|
28464
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
28500
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _601 => _601.current, 'optionalCall', _602 => _602()]);
|
|
28465
28501
|
}
|
|
28466
28502
|
}));
|
|
28467
28503
|
_react.useEffect.call(void 0, () => {
|
|
28468
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
28504
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _603 => _603.notifyDrawerDidOpen, 'call', _604 => _604(selfHandle)]);
|
|
28469
28505
|
}, [isOpen, coordination, selfHandle]);
|
|
28470
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
28506
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _605 => _605.registerDrawer, 'call', _606 => _606(selfHandle)]), [coordination, selfHandle]);
|
|
28471
28507
|
if (!ctx) return null;
|
|
28472
28508
|
const { open, close, status } = ctx;
|
|
28473
28509
|
const isPaused = status === "paused";
|
|
@@ -28599,7 +28635,7 @@ function autoScrollAncestors(element) {
|
|
|
28599
28635
|
|
|
28600
28636
|
// src/components/features/board/aim.ts
|
|
28601
28637
|
var _closestedge = require('@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge');
|
|
28602
|
-
var othersIn = (columns, columnId, ticketId) => (_nullishCoalesce(_optionalChain([columns, 'access',
|
|
28638
|
+
var othersIn = (columns, columnId, ticketId) => (_nullishCoalesce(_optionalChain([columns, 'access', _607 => _607.find, 'call', _608 => _608((c) => c.id === columnId), 'optionalAccess', _609 => _609.tickets]), () => ( []))).filter((t) => t.id !== ticketId);
|
|
28603
28639
|
function laneOf(columns, ticketId) {
|
|
28604
28640
|
return _nullishCoalesce(columns.find((c) => c.tickets.some((t) => t.id === ticketId)), () => ( null));
|
|
28605
28641
|
}
|
|
@@ -28643,11 +28679,11 @@ function aimToChange(columns, ticketId, aim) {
|
|
|
28643
28679
|
const lane = laneOf(columns, ticketId);
|
|
28644
28680
|
if (!lane) return null;
|
|
28645
28681
|
const others = othersIn(columns, aim.columnId, ticketId);
|
|
28646
|
-
const afterTicketId = _nullishCoalesce(_optionalChain([others, 'access',
|
|
28647
|
-
const beforeTicketId = _nullishCoalesce(_optionalChain([others, 'access',
|
|
28682
|
+
const afterTicketId = _nullishCoalesce(_optionalChain([others, 'access', _610 => _610[aim.index - 1], 'optionalAccess', _611 => _611.id]), () => ( null));
|
|
28683
|
+
const beforeTicketId = _nullishCoalesce(_optionalChain([others, 'access', _612 => _612[aim.index], 'optionalAccess', _613 => _613.id]), () => ( null));
|
|
28648
28684
|
if (lane.id === aim.columnId) {
|
|
28649
28685
|
const currentIndex = lane.tickets.findIndex((t) => t.id === ticketId);
|
|
28650
|
-
if ((_nullishCoalesce(_optionalChain([lane, 'access',
|
|
28686
|
+
if ((_nullishCoalesce(_optionalChain([lane, 'access', _614 => _614.tickets, 'access', _615 => _615[currentIndex - 1], 'optionalAccess', _616 => _616.id]), () => ( null))) === afterTicketId) return null;
|
|
28651
28687
|
}
|
|
28652
28688
|
return { ticketId, fromColumnId: lane.id, toColumnId: aim.columnId, afterTicketId, beforeTicketId };
|
|
28653
28689
|
}
|
|
@@ -28918,14 +28954,14 @@ function useIsLanding(ticketId) {
|
|
|
28918
28954
|
return _react.useContext.call(void 0, LandingCardContext) === ticketId;
|
|
28919
28955
|
}
|
|
28920
28956
|
function hasMoveSettled(columns, move) {
|
|
28921
|
-
const tickets = _optionalChain([columns, 'access',
|
|
28957
|
+
const tickets = _optionalChain([columns, 'access', _617 => _617.find, 'call', _618 => _618((c) => c.id === move.toColumnId), 'optionalAccess', _619 => _619.tickets]);
|
|
28922
28958
|
if (!tickets) return false;
|
|
28923
28959
|
const index = tickets.findIndex((t) => t.id === move.ticketId);
|
|
28924
28960
|
if (index < 0) return false;
|
|
28925
28961
|
if (move.fromColumnId === move.toColumnId) {
|
|
28926
|
-
return (_nullishCoalesce(_optionalChain([tickets, 'access',
|
|
28962
|
+
return (_nullishCoalesce(_optionalChain([tickets, 'access', _620 => _620[index - 1], 'optionalAccess', _621 => _621.id]), () => ( null))) === move.afterTicketId;
|
|
28927
28963
|
}
|
|
28928
|
-
return !_optionalChain([columns, 'access',
|
|
28964
|
+
return !_optionalChain([columns, 'access', _622 => _622.find, 'call', _623 => _623((c) => c.id === move.fromColumnId), 'optionalAccess', _624 => _624.tickets, 'access', _625 => _625.some, 'call', _626 => _626((t) => t.id === move.ticketId)]);
|
|
28929
28965
|
}
|
|
28930
28966
|
|
|
28931
28967
|
// src/components/features/board/ticket-card.tsx
|
|
@@ -28950,9 +28986,9 @@ var TICKET_CARD_SHELL = "relative flex flex-col gap-[var(--spacing-system-sf)] r
|
|
|
28950
28986
|
function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onReject }) {
|
|
28951
28987
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
28952
28988
|
const newMessageTextColor = columnColor ? _chunk7GLJC4EOcjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
28953
|
-
const showDeviceRow = !!(_optionalChain([ticket, 'access',
|
|
28954
|
-
const deviceText = [_optionalChain([ticket, 'access',
|
|
28955
|
-
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access',
|
|
28989
|
+
const showDeviceRow = !!(_optionalChain([ticket, 'access', _627 => _627.deviceHostnames, 'optionalAccess', _628 => _628.length]) || ticket.organizationName);
|
|
28990
|
+
const deviceText = [_optionalChain([ticket, 'access', _629 => _629.deviceHostnames, 'optionalAccess', _630 => _630.join, 'call', _631 => _631(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
28991
|
+
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _632 => _632.assignees, 'optionalAccess', _633 => _633.length]) || renderAssignSlot);
|
|
28956
28992
|
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: [
|
|
28957
28993
|
ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28958
28994
|
_chunkGSQM4PDRcjs.Flag02Icon,
|
|
@@ -28961,7 +28997,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
28961
28997
|
"aria-label": `Priority: ${ticket.priority}`
|
|
28962
28998
|
}
|
|
28963
28999
|
),
|
|
28964
|
-
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access',
|
|
29000
|
+
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _634 => _634.assignees, 'optionalAccess', _635 => _635.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
28965
29001
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map(
|
|
28966
29002
|
(a) => a.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28967
29003
|
DeletedUserAvatar,
|
|
@@ -29002,7 +29038,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
29002
29038
|
] }),
|
|
29003
29039
|
rightSection
|
|
29004
29040
|
] }),
|
|
29005
|
-
_optionalChain([ticket, 'access',
|
|
29041
|
+
_optionalChain([ticket, 'access', _636 => _636.tags, 'optionalAccess', _637 => _637.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
29006
29042
|
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7GLJC4EOcjs.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7GLJC4EOcjs.Tooltip, { children: [
|
|
29007
29043
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7GLJC4EOcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto truncate text-ods-text-secondary text-h6", children: metaLabel }) }),
|
|
29008
29044
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7GLJC4EOcjs.TooltipContent, { children: tooltipLabel })
|
|
@@ -29069,7 +29105,7 @@ var TicketCard = _react.memo.call(void 0, function TicketCardImpl({
|
|
|
29069
29105
|
const isLanding = useIsLanding(ticket.id);
|
|
29070
29106
|
const aim = useDropAim();
|
|
29071
29107
|
const closestEdge = aim && aim.columnId === columnId && aim.ticketId === ticket.id ? aim.edge : null;
|
|
29072
|
-
const isSource = isDragging || _optionalChain([aim, 'optionalAccess',
|
|
29108
|
+
const isSource = isDragging || _optionalChain([aim, 'optionalAccess', _638 => _638.ticket, 'access', _639 => _639.id]) === ticket.id;
|
|
29073
29109
|
const lift = useBoardLift();
|
|
29074
29110
|
const handleKeyDown = (e) => {
|
|
29075
29111
|
if (e.key !== " " || dragDisabled || !lift) return;
|
|
@@ -29322,7 +29358,7 @@ var BoardColumn = _react.memo.call(void 0, function BoardColumnImpl({
|
|
|
29322
29358
|
// large ones like the only thing that did.
|
|
29323
29359
|
getData: ({ input, element: lane, source }) => {
|
|
29324
29360
|
const nearest = nearestCardIn(lane, input.clientY, String(source.data.ticketId));
|
|
29325
|
-
const ticketId = _optionalChain([nearest, 'optionalAccess',
|
|
29361
|
+
const ticketId = _optionalChain([nearest, 'optionalAccess', _640 => _640.dataset, 'access', _641 => _641.ticketId]);
|
|
29326
29362
|
if (!nearest || !ticketId) return { type: "column", columnId: column.id };
|
|
29327
29363
|
return _closestedge.attachClosestEdge.call(void 0,
|
|
29328
29364
|
{ type: "ticket", ticketId, columnId: column.id },
|
|
@@ -29334,7 +29370,7 @@ var BoardColumn = _react.memo.call(void 0, function BoardColumnImpl({
|
|
|
29334
29370
|
onDrop: () => setIsOver(false)
|
|
29335
29371
|
});
|
|
29336
29372
|
}, [column.id, column.dropDisabled, column.allowedFromColumns, collapsed, touchMode]);
|
|
29337
|
-
const handleToggleCollapse = _react.useCallback.call(void 0, () => _optionalChain([onToggleCollapse, 'optionalCall',
|
|
29373
|
+
const handleToggleCollapse = _react.useCallback.call(void 0, () => _optionalChain([onToggleCollapse, 'optionalCall', _642 => _642(column.id)]), [onToggleCollapse, column.id]);
|
|
29338
29374
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
29339
29375
|
"div",
|
|
29340
29376
|
{
|
|
@@ -29413,7 +29449,7 @@ function ColumnBody({
|
|
|
29413
29449
|
const observer = new IntersectionObserver(
|
|
29414
29450
|
(entries) => {
|
|
29415
29451
|
if (entries.some((e) => e.isIntersecting)) {
|
|
29416
|
-
_optionalChain([loadMoreRef, 'access',
|
|
29452
|
+
_optionalChain([loadMoreRef, 'access', _643 => _643.current, 'optionalCall', _644 => _644(columnIdRef.current)]);
|
|
29417
29453
|
}
|
|
29418
29454
|
},
|
|
29419
29455
|
{ root, rootMargin: loadMoreRootMargin }
|
|
@@ -29438,7 +29474,7 @@ function ColumnBody({
|
|
|
29438
29474
|
ticket: t,
|
|
29439
29475
|
columnId: column.id,
|
|
29440
29476
|
columnColor: column.color,
|
|
29441
|
-
href: _optionalChain([getTicketHref, 'optionalCall',
|
|
29477
|
+
href: _optionalChain([getTicketHref, 'optionalCall', _645 => _645(t.id)]),
|
|
29442
29478
|
renderAssignSlot,
|
|
29443
29479
|
onApprove,
|
|
29444
29480
|
onReject,
|
|
@@ -29614,7 +29650,7 @@ function DragBoard({
|
|
|
29614
29650
|
const [landing, setLanding] = _react.useState.call(void 0, null);
|
|
29615
29651
|
const landingTimer = _react.useRef.call(void 0, null);
|
|
29616
29652
|
const pointRef = _react.useRef.call(void 0, { x: 0, y: 0 });
|
|
29617
|
-
const laneLabel = _react.useCallback.call(void 0, (columnId) => _nullishCoalesce(_optionalChain([view, 'access',
|
|
29653
|
+
const laneLabel = _react.useCallback.call(void 0, (columnId) => _nullishCoalesce(_optionalChain([view, 'access', _646 => _646.find, 'call', _647 => _647((c) => c.id === columnId), 'optionalAccess', _648 => _648.label]), () => ( columnId)), [view]);
|
|
29618
29654
|
const acceptsLifted = _react.useCallback.call(void 0,
|
|
29619
29655
|
(fromColumnId) => (column) => {
|
|
29620
29656
|
if (column.dropDisabled || collapsed[column.id]) return false;
|
|
@@ -29628,7 +29664,7 @@ function DragBoard({
|
|
|
29628
29664
|
const start = initialAim(view, ticketId);
|
|
29629
29665
|
if (!start) return;
|
|
29630
29666
|
setLifted({ ticketId, aim: start });
|
|
29631
|
-
const title = _nullishCoalesce(_optionalChain([laneOf, 'call',
|
|
29667
|
+
const title = _nullishCoalesce(_optionalChain([laneOf, 'call', _649 => _649(view, ticketId), 'optionalAccess', _650 => _650.tickets, 'access', _651 => _651.find, 'call', _652 => _652((t) => t.id === ticketId), 'optionalAccess', _653 => _653.title]), () => ( "Ticket"));
|
|
29632
29668
|
setAnnouncement(`${title} lifted. Use the arrow keys to move it, space to drop it, escape to put it back.`);
|
|
29633
29669
|
},
|
|
29634
29670
|
[view]
|
|
@@ -29653,11 +29689,11 @@ function DragBoard({
|
|
|
29653
29689
|
const walk = _react.useCallback.call(void 0,
|
|
29654
29690
|
(key) => {
|
|
29655
29691
|
if (!lifted) return;
|
|
29656
|
-
const from = _nullishCoalesce(_optionalChain([laneOf, 'call',
|
|
29692
|
+
const from = _nullishCoalesce(_optionalChain([laneOf, 'call', _654 => _654(view, lifted.ticketId), 'optionalAccess', _655 => _655.id]), () => ( lifted.aim.columnId));
|
|
29657
29693
|
const next = moveAim(view, lifted.ticketId, lifted.aim, key, acceptsLifted(from));
|
|
29658
29694
|
if (next === lifted.aim) return;
|
|
29659
29695
|
setLifted({ ...lifted, aim: next });
|
|
29660
|
-
const total = (_nullishCoalesce(_optionalChain([view, 'access',
|
|
29696
|
+
const total = (_nullishCoalesce(_optionalChain([view, 'access', _656 => _656.find, 'call', _657 => _657((c) => c.id === next.columnId), 'optionalAccess', _658 => _658.tickets]), () => ( []))).filter(
|
|
29661
29697
|
(t) => t.id !== lifted.ticketId
|
|
29662
29698
|
).length;
|
|
29663
29699
|
setAnnouncement(`${laneLabel(next.columnId)}, position ${next.index + 1} of ${total + 1}.`);
|
|
@@ -29684,11 +29720,11 @@ function DragBoard({
|
|
|
29684
29720
|
}, [lifted, drop, walk]);
|
|
29685
29721
|
_react.useEffect.call(void 0, () => {
|
|
29686
29722
|
if (!lifted) return;
|
|
29687
|
-
_optionalChain([boardRef, 'access',
|
|
29723
|
+
_optionalChain([boardRef, 'access', _659 => _659.current, 'optionalAccess', _660 => _660.querySelector, 'call', _661 => _661(`[${DROP_LINE_ATTRIBUTE}]`), 'optionalAccess', _662 => _662.scrollIntoView, 'call', _663 => _663({ block: "nearest", inline: "nearest" })]);
|
|
29688
29724
|
}, [lifted]);
|
|
29689
29725
|
const keyboardAim = _react.useMemo.call(void 0, () => {
|
|
29690
29726
|
if (!lifted) return null;
|
|
29691
|
-
const ticket = _optionalChain([laneOf, 'call',
|
|
29727
|
+
const ticket = _optionalChain([laneOf, 'call', _664 => _664(view, lifted.ticketId), 'optionalAccess', _665 => _665.tickets, 'access', _666 => _666.find, 'call', _667 => _667((t) => t.id === lifted.ticketId)]);
|
|
29692
29728
|
if (!ticket) return null;
|
|
29693
29729
|
const anchor = aimToChange(view, lifted.ticketId, lifted.aim) ? aimAnchor(view, lifted.ticketId, lifted.aim) : { ticketId: null, edge: null };
|
|
29694
29730
|
return { columnId: lifted.aim.columnId, ...anchor, ticket };
|
|
@@ -29710,7 +29746,7 @@ function DragBoard({
|
|
|
29710
29746
|
return { columnId: slot.columnId, ...anchor, ticket };
|
|
29711
29747
|
};
|
|
29712
29748
|
const aimAt = (source, targets) => {
|
|
29713
|
-
const next = readAim(source, _optionalChain([targets, 'access',
|
|
29749
|
+
const next = readAim(source, _optionalChain([targets, 'access', _668 => _668[0], 'optionalAccess', _669 => _669.data]));
|
|
29714
29750
|
setAim((prev) => isSameAim(prev, next) ? prev : next);
|
|
29715
29751
|
};
|
|
29716
29752
|
return _combine.combine.call(void 0,
|
|
@@ -29739,7 +29775,7 @@ function DragBoard({
|
|
|
29739
29775
|
setLanding(null);
|
|
29740
29776
|
dragGeometry.current = {
|
|
29741
29777
|
ticket,
|
|
29742
|
-
columnColor: _optionalChain([columnsRef, 'access',
|
|
29778
|
+
columnColor: _optionalChain([columnsRef, 'access', _670 => _670.current, 'access', _671 => _671.find, 'call', _672 => _672((c) => c.id === source.data.columnId), 'optionalAccess', _673 => _673.color]),
|
|
29743
29779
|
width: rect.width,
|
|
29744
29780
|
grabX: clientX - rect.left,
|
|
29745
29781
|
grabY: clientY - rect.top
|
|
@@ -29756,7 +29792,7 @@ function DragBoard({
|
|
|
29756
29792
|
setAim(null);
|
|
29757
29793
|
const change = resolveBoardDrop(columnsRef.current, {
|
|
29758
29794
|
source: source.data,
|
|
29759
|
-
target: _optionalChain([location, 'access',
|
|
29795
|
+
target: _optionalChain([location, 'access', _674 => _674.current, 'access', _675 => _675.dropTargets, 'access', _676 => _676[0], 'optionalAccess', _677 => _677.data])
|
|
29760
29796
|
});
|
|
29761
29797
|
if (!change) return;
|
|
29762
29798
|
setPendingMove({
|
|
@@ -29789,7 +29825,7 @@ function DragBoard({
|
|
|
29789
29825
|
return void 0;
|
|
29790
29826
|
}
|
|
29791
29827
|
const to = card.getBoundingClientRect();
|
|
29792
|
-
const lane = _optionalChain([nearestScrollableAncestor, 'call',
|
|
29828
|
+
const lane = _optionalChain([nearestScrollableAncestor, 'call', _678 => _678(card), 'optionalAccess', _679 => _679.getBoundingClientRect, 'call', _680 => _680()]);
|
|
29793
29829
|
if (lane && (to.top < lane.top || to.bottom > lane.bottom)) {
|
|
29794
29830
|
finish();
|
|
29795
29831
|
return void 0;
|
|
@@ -29848,8 +29884,8 @@ function DragBoard({
|
|
|
29848
29884
|
children: view.map((column, i) => {
|
|
29849
29885
|
const prev = view[i - 1];
|
|
29850
29886
|
const next = view[i + 1];
|
|
29851
|
-
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess',
|
|
29852
|
-
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess',
|
|
29887
|
+
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _681 => _681.system]));
|
|
29888
|
+
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _682 => _682.system]));
|
|
29853
29889
|
const showGap = i > 0 && !joinLeft;
|
|
29854
29890
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
29855
29891
|
showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
@@ -30029,13 +30065,13 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30029
30065
|
const [flipTick, setFlipTick] = _react.useState.call(void 0, 0);
|
|
30030
30066
|
const flipTimer = _react.useRef.call(void 0, null);
|
|
30031
30067
|
const readItems = _react.useCallback.call(void 0,
|
|
30032
|
-
() => [..._nullishCoalesce(_optionalChain([listRef, 'access',
|
|
30068
|
+
() => [..._nullishCoalesce(_optionalChain([listRef, 'access', _683 => _683.current, 'optionalAccess', _684 => _684.querySelectorAll, 'call', _685 => _685(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
|
|
30033
30069
|
[]
|
|
30034
30070
|
);
|
|
30035
30071
|
const reorder = _react.useCallback.call(void 0,
|
|
30036
30072
|
(from, to) => {
|
|
30037
30073
|
if (from === to) return;
|
|
30038
|
-
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access',
|
|
30074
|
+
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _686 => _686.current, 'optionalCall', _687 => _687(from)]), () => ( "Item"));
|
|
30039
30075
|
setAnnouncement(`${label} moved to position ${to + 1} of ${readItems().length}.`);
|
|
30040
30076
|
onReorderRef.current(from, to);
|
|
30041
30077
|
},
|
|
@@ -30123,7 +30159,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30123
30159
|
moving.push(item);
|
|
30124
30160
|
}
|
|
30125
30161
|
if (moving.length === 0) return;
|
|
30126
|
-
void _optionalChain([listRef, 'access',
|
|
30162
|
+
void _optionalChain([listRef, 'access', _688 => _688.current, 'optionalAccess', _689 => _689.offsetHeight]);
|
|
30127
30163
|
for (const item of moving) {
|
|
30128
30164
|
item.style.transition = `transform ${DROP_MS2}ms ${EASING}`;
|
|
30129
30165
|
item.style.transform = "";
|
|
@@ -30160,8 +30196,8 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
30160
30196
|
if (to < 0 || to >= count) return;
|
|
30161
30197
|
reorder(index, to);
|
|
30162
30198
|
requestAnimationFrame(() => {
|
|
30163
|
-
if (step === -1 && to === 0) _optionalChain([downRef, 'access',
|
|
30164
|
-
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access',
|
|
30199
|
+
if (step === -1 && to === 0) _optionalChain([downRef, 'access', _690 => _690.current, 'optionalAccess', _691 => _691.focus, 'call', _692 => _692()]);
|
|
30200
|
+
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _693 => _693.current, 'optionalAccess', _694 => _694.focus, 'call', _695 => _695()]);
|
|
30165
30201
|
});
|
|
30166
30202
|
};
|
|
30167
30203
|
const subject = _nullishCoalesce(label, () => ( "item"));
|
|
@@ -30209,7 +30245,7 @@ function useSortableItem() {
|
|
|
30209
30245
|
const [handle, setHandle] = _react.useState.call(void 0, null);
|
|
30210
30246
|
const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
|
|
30211
30247
|
const itemRef = _react.useCallback.call(void 0, (node) => {
|
|
30212
|
-
_optionalChain([node, 'optionalAccess',
|
|
30248
|
+
_optionalChain([node, 'optionalAccess', _696 => _696.setAttribute, 'call', _697 => _697(SORTABLE_ITEM_ATTRIBUTE, "")]);
|
|
30213
30249
|
setItem(node);
|
|
30214
30250
|
}, []);
|
|
30215
30251
|
_react.useEffect.call(void 0, () => {
|
|
@@ -30239,7 +30275,7 @@ function useSortableItem() {
|
|
|
30239
30275
|
if (from < 0 || to < 0 || to >= items.length) return;
|
|
30240
30276
|
event.preventDefault();
|
|
30241
30277
|
reorder(from, to);
|
|
30242
|
-
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess',
|
|
30278
|
+
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _698 => _698.focus, 'call', _699 => _699()]));
|
|
30243
30279
|
},
|
|
30244
30280
|
[inert, readItems, reorder, handle]
|
|
30245
30281
|
);
|
|
@@ -30261,7 +30297,7 @@ function TicketStatusConfigList({
|
|
|
30261
30297
|
onReorder,
|
|
30262
30298
|
getItemLabel,
|
|
30263
30299
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xs)]", className),
|
|
30264
|
-
children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall',
|
|
30300
|
+
children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall', _700 => _700(index)]), children: (args) => renderRow(item, args) }, item.id))
|
|
30265
30301
|
}
|
|
30266
30302
|
);
|
|
30267
30303
|
}
|
|
@@ -30923,4 +30959,4 @@ function SortableRow({
|
|
|
30923
30959
|
|
|
30924
30960
|
|
|
30925
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;
|
|
30926
|
-
//# sourceMappingURL=chunk-
|
|
30962
|
+
//# sourceMappingURL=chunk-67XFJ442.cjs.map
|