@expcat/tigercat-react 1.2.34 → 1.2.39

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.
Files changed (33) hide show
  1. package/dist/{chunk-6HELKWFN.js → chunk-3LCISRAV.js} +17 -3
  2. package/dist/{chunk-KRFD27WA.js → chunk-AT2GRD6F.js} +2 -2
  3. package/dist/{chunk-VHHYTCZQ.js → chunk-FZX7USS4.js} +48 -7
  4. package/dist/{chunk-VXOLIMK2.mjs → chunk-JDJFSO2D.mjs} +48 -7
  5. package/dist/{chunk-UKBVJWP3.mjs → chunk-LJARWKJT.mjs} +1 -1
  6. package/dist/{chunk-JNRUOQNT.js → chunk-LJDILPI6.js} +2 -2
  7. package/dist/{chunk-VAZYY35F.js → chunk-M36PT6BS.js} +208 -66
  8. package/dist/{chunk-VE2YEFG2.mjs → chunk-PCPAMUAE.mjs} +1 -1
  9. package/dist/{chunk-O4UDB6ZE.mjs → chunk-TAYQDWXN.mjs} +1 -1
  10. package/dist/{chunk-AIXYHS2L.mjs → chunk-TSZKBVTA.mjs} +209 -67
  11. package/dist/{chunk-IAONLOJN.js → chunk-XU4TF2YA.js} +2 -2
  12. package/dist/{chunk-4XOWNEZA.mjs → chunk-ZDEOTMXP.mjs} +17 -3
  13. package/dist/components/ChatWindow.js +3 -3
  14. package/dist/components/ChatWindow.mjs +2 -2
  15. package/dist/components/DataTableWithToolbar.d.mts +1 -1
  16. package/dist/components/DataTableWithToolbar.d.ts +1 -1
  17. package/dist/components/DataTableWithToolbar.js +9 -3
  18. package/dist/components/DataTableWithToolbar.mjs +8 -2
  19. package/dist/components/Popconfirm.js +3 -3
  20. package/dist/components/Popconfirm.mjs +2 -2
  21. package/dist/components/Popover.js +3 -3
  22. package/dist/components/Popover.mjs +2 -2
  23. package/dist/components/Table.d.mts +1 -1
  24. package/dist/components/Table.d.ts +1 -1
  25. package/dist/components/Table.js +9 -2
  26. package/dist/components/Table.mjs +8 -1
  27. package/dist/components/Tooltip.js +3 -3
  28. package/dist/components/Tooltip.mjs +2 -2
  29. package/dist/index.js +16 -16
  30. package/dist/index.mjs +16 -16
  31. package/package.json +2 -2
  32. package/dist/{chunk-7KPALCG3.js → chunk-ABTJVM3X.js} +2 -2
  33. package/dist/{chunk-GYFR2O27.mjs → chunk-OXDX6CH2.mjs} +3 -3
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
4
 
@@ -9,6 +9,7 @@ var _react = require('react');
9
9
 
10
10
 
11
11
 
12
+
12
13
  var _tigercatcore = require('@expcat/tigercat-core');
13
14
  function usePopup(options) {
14
15
  const {
@@ -46,6 +47,19 @@ function usePopup(options) {
46
47
  },
47
48
  [disabled, isControlled, onOpenChange]
48
49
  );
50
+ const restoreTriggerFocus = _react.useCallback.call(void 0, () => {
51
+ const trigger2 = triggerRef.current;
52
+ const target = _nullishCoalesce(_optionalChain([trigger2, 'optionalAccess', _2 => _2.querySelector, 'call', _3 => _3(
53
+ 'button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'
54
+ )]), () => ( trigger2));
55
+ window.setTimeout(() => {
56
+ _tigercatcore.restoreFocus.call(void 0, target, { preventScroll: true });
57
+ }, 0);
58
+ }, []);
59
+ const closeAndRestoreFocus = _react.useCallback.call(void 0, () => {
60
+ setVisible(false);
61
+ restoreTriggerFocus();
62
+ }, [restoreTriggerFocus, setVisible]);
49
63
  const handleToggle = _react.useCallback.call(void 0, () => {
50
64
  if (!disabled) setVisible(!currentVisible);
51
65
  }, [disabled, currentVisible, setVisible]);
@@ -59,12 +73,12 @@ function usePopup(options) {
59
73
  _chunkSTTQ5LXXjs.useClickOutside.call(void 0, {
60
74
  enabled: currentVisible && effectiveTrigger === "click",
61
75
  refs: [containerRef, floatingRef],
62
- onOutsideClick: () => setVisible(false),
76
+ onOutsideClick: closeAndRestoreFocus,
63
77
  defer: true
64
78
  });
65
79
  _chunkSTTQ5LXXjs.useEscapeKey.call(void 0, {
66
80
  enabled: currentVisible && effectiveTrigger !== "manual",
67
- onEscape: () => setVisible(false)
81
+ onEscape: closeAndRestoreFocus
68
82
  });
69
83
  const floatingStyles = _react.useMemo.call(void 0,
70
84
  () => ({
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6HELKWFNjs = require('./chunk-6HELKWFN.js');
3
+ var _chunk3LCISRAVjs = require('./chunk-3LCISRAV.js');
4
4
 
5
5
 
6
6
  var _chunkSTTQ5LXXjs = require('./chunk-STTQ5LXX.js');
@@ -34,7 +34,7 @@ var Tooltip = ({
34
34
  if (!tooltipIdRef.current) tooltipIdRef.current = createTooltipId();
35
35
  const tooltipId = tooltipIdRef.current;
36
36
  const describedBy = content != null ? tooltipId : void 0;
37
- const { currentVisible, containerRef, triggerRef, floatingRef, floatingStyles, triggerHandlers } = _chunk6HELKWFNjs.usePopup.call(void 0, { open, defaultOpen, disabled, trigger, placement, offset, onOpenChange });
37
+ const { currentVisible, containerRef, triggerRef, floatingRef, floatingStyles, triggerHandlers } = _chunk3LCISRAVjs.usePopup.call(void 0, { open, defaultOpen, disabled, trigger, placement, offset, onOpenChange });
38
38
  const containerClasses = _react.useMemo.call(void 0,
39
39
  () => _tigercatcore.classNames.call(void 0, _tigercatcore.getTooltipContainerClasses.call(void 0, ), className),
40
40
  [className]
@@ -1,11 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVAZYY35Fjs = require('./chunk-VAZYY35F.js');
3
+ var _chunkM36PT6BSjs = require('./chunk-M36PT6BS.js');
4
4
 
5
5
 
6
6
  var _chunk6Z4LLPZAjs = require('./chunk-6Z4LLPZA.js');
7
7
 
8
8
 
9
+ var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
10
+
11
+
9
12
  var _chunkZYJTHGQWjs = require('./chunk-ZYJTHGQW.js');
10
13
 
11
14
 
@@ -15,10 +18,17 @@ var _chunk56ZV3VVYjs = require('./chunk-56ZV3VVY.js');
15
18
  var _react = require('react');
16
19
 
17
20
 
21
+
22
+
23
+
24
+
25
+
18
26
  var _tigercatcore = require('@expcat/tigercat-core');
19
27
  var _jsxruntime = require('react/jsx-runtime');
20
28
  var DataTableWithToolbar = ({
21
29
  toolbar,
30
+ locale,
31
+ labels,
22
32
  onSearchChange,
23
33
  onSearch,
24
34
  onFiltersChange,
@@ -30,6 +40,7 @@ var DataTableWithToolbar = ({
30
40
  tableClassName,
31
41
  ...tableProps
32
42
  }) => {
43
+ const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
33
44
  const previousPageSizeRef = _react.useRef.call(void 0,
34
45
  pagination && typeof pagination === "object" ? _nullishCoalesce(_nullishCoalesce(pagination.pageSize, () => ( pagination.defaultPageSize)), () => ( 10)) : void 0
35
46
  );
@@ -45,6 +56,33 @@ var DataTableWithToolbar = ({
45
56
  return initial;
46
57
  }
47
58
  );
59
+ const immediateTableLocale = _react.useMemo.call(void 0,
60
+ () => locale ? _tigercatcore.getImmediateTigerLocale.call(void 0, locale) : void 0,
61
+ [locale]
62
+ );
63
+ const [resolvedTableLocale, setResolvedTableLocale] = _react.useState.call(void 0, immediateTableLocale);
64
+ _react.useEffect.call(void 0, () => {
65
+ let active = true;
66
+ setResolvedTableLocale(immediateTableLocale);
67
+ if (locale && _tigercatcore.isLazyTigerLocale.call(void 0, locale)) {
68
+ _tigercatcore.resolveTigerLocale.call(void 0, locale).then((nextLocale) => {
69
+ if (active) setResolvedTableLocale(nextLocale);
70
+ }).catch(() => {
71
+ if (active) setResolvedTableLocale(immediateTableLocale);
72
+ });
73
+ }
74
+ return () => {
75
+ active = false;
76
+ };
77
+ }, [locale, immediateTableLocale]);
78
+ const tableLocale = _react.useMemo.call(void 0,
79
+ () => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, resolvedTableLocale),
80
+ [config.locale, resolvedTableLocale]
81
+ );
82
+ const tableLabels = _react.useMemo.call(void 0,
83
+ () => _tigercatcore.getTableLabels.call(void 0, tableLocale, labels),
84
+ [labels, tableLocale]
85
+ );
48
86
  _react.useEffect.call(void 0, () => {
49
87
  if (_optionalChain([toolbar, 'optionalAccess', _5 => _5.searchValue]) !== void 0) {
50
88
  setInternalSearch(_nullishCoalesce(toolbar.searchValue, () => ( "")));
@@ -84,7 +122,7 @@ var DataTableWithToolbar = ({
84
122
  const { bordered = false, ...remainingTableProps } = tableProps;
85
123
  const selectedKeys = _nullishCoalesce(_nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _16 => _16.selectedKeys]), () => ( _optionalChain([tableProps, 'access', _17 => _17.rowSelection, 'optionalAccess', _18 => _18.selectedRowKeys]))), () => ( []));
86
124
  const selectedCount = _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _19 => _19.selectedCount]), () => ( selectedKeys.length));
87
- const bulkLabel = _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _20 => _20.bulkActionsLabel]), () => ( "\u5DF2\u9009\u62E9"));
125
+ const bulkLabel = _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _20 => _20.bulkActionsLabel]), () => ( tableLabels.selectedText));
88
126
  const wrapperClasses = _react.useMemo.call(void 0,
89
127
  () => _tigercatcore.classNames.call(void 0,
90
128
  "tiger-data-table-with-toolbar flex flex-col",
@@ -141,7 +179,7 @@ var DataTableWithToolbar = ({
141
179
  bordered ? "bg-[var(--tiger-surface-muted,#f9fafb)] dark:bg-gray-800/10 px-4 py-3.5 border-b border-[var(--tiger-border,#e5e7eb)]" : "bg-[var(--tiger-surface-muted,#f9fafb)]/80 dark:bg-gray-800/30 px-4 py-3.5 border border-[var(--tiger-border,#e5e7eb)] rounded-[var(--tiger-radius-md,0.5rem)] shadow-sm"
142
180
  ),
143
181
  role: "toolbar",
144
- "aria-label": "\u6570\u636E\u8868\u683C\u5DE5\u5177\u680F",
182
+ "aria-label": tableLabels.toolbarAriaLabel,
145
183
  children: [
146
184
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 flex-wrap flex-1 min-w-0", children: [
147
185
  hasSearch ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 w-full sm:w-auto sm:min-w-[220px] sm:max-w-[320px]", children: [
@@ -151,7 +189,7 @@ var DataTableWithToolbar = ({
151
189
  type: "search",
152
190
  size: "sm",
153
191
  value: searchValue,
154
- placeholder: _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _38 => _38.searchPlaceholder]), () => ( "\u641C\u7D22")),
192
+ placeholder: _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _38 => _38.searchPlaceholder]), () => ( tableLabels.searchPlaceholder)),
155
193
  prefix: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
156
194
  "svg",
157
195
  {
@@ -187,7 +225,7 @@ var DataTableWithToolbar = ({
187
225
  className: "whitespace-nowrap shrink-0 rounded-[var(--tiger-radius-md,0.5rem)] px-3",
188
226
  onClick: handleSearchSubmit,
189
227
  disabled: !onSearch && !_optionalChain([toolbar, 'optionalAccess', _40 => _40.onSearch]),
190
- children: _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _41 => _41.searchButtonText]), () => ( "\u641C\u7D22"))
228
+ children: _nullishCoalesce(_optionalChain([toolbar, 'optionalAccess', _41 => _41.searchButtonText]), () => ( tableLabels.searchButtonText))
191
229
  }
192
230
  ) : null
193
231
  ] }) : null,
@@ -226,7 +264,8 @@ var DataTableWithToolbar = ({
226
264
  bulkLabel,
227
265
  " ",
228
266
  selectedCount,
229
- " \u9879"
267
+ " ",
268
+ tableLabels.selectedItemsText
230
269
  ] })
231
270
  ] }) : null,
232
271
  _optionalChain([toolbar, 'optionalAccess', _45 => _45.bulkActions, 'optionalAccess', _46 => _46.map, 'call', _47 => _47((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -248,9 +287,11 @@ var DataTableWithToolbar = ({
248
287
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: wrapperClasses, "data-tiger-data-table-with-toolbar": true, children: [
249
288
  renderToolbar(),
250
289
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
251
- _chunkVAZYY35Fjs.Table,
290
+ _chunkM36PT6BSjs.Table,
252
291
  {
253
292
  ...remainingTableProps,
293
+ locale,
294
+ labels,
254
295
  bordered,
255
296
  pagination,
256
297
  className: _tigercatcore.classNames.call(void 0, tableClassName, bordered && "border-none rounded-none shadow-none"),
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  Table
3
- } from "./chunk-AIXYHS2L.mjs";
3
+ } from "./chunk-TSZKBVTA.mjs";
4
4
  import {
5
5
  Select
6
6
  } from "./chunk-T4OVGM4X.mjs";
7
+ import {
8
+ useTigerConfig
9
+ } from "./chunk-QAIBQHIO.mjs";
7
10
  import {
8
11
  Input
9
12
  } from "./chunk-WNLUUD5N.mjs";
@@ -14,11 +17,18 @@ import {
14
17
  // src/components/DataTableWithToolbar.tsx
15
18
  import { useEffect, useMemo, useRef, useState } from "react";
16
19
  import {
17
- classNames
20
+ classNames,
21
+ getImmediateTigerLocale,
22
+ getTableLabels,
23
+ isLazyTigerLocale,
24
+ mergeTigerLocale,
25
+ resolveTigerLocale
18
26
  } from "@expcat/tigercat-core";
19
27
  import { jsx, jsxs } from "react/jsx-runtime";
20
28
  var DataTableWithToolbar = ({
21
29
  toolbar,
30
+ locale,
31
+ labels,
22
32
  onSearchChange,
23
33
  onSearch,
24
34
  onFiltersChange,
@@ -30,6 +40,7 @@ var DataTableWithToolbar = ({
30
40
  tableClassName,
31
41
  ...tableProps
32
42
  }) => {
43
+ const config = useTigerConfig();
33
44
  const previousPageSizeRef = useRef(
34
45
  pagination && typeof pagination === "object" ? pagination.pageSize ?? pagination.defaultPageSize ?? 10 : void 0
35
46
  );
@@ -45,6 +56,33 @@ var DataTableWithToolbar = ({
45
56
  return initial;
46
57
  }
47
58
  );
59
+ const immediateTableLocale = useMemo(
60
+ () => locale ? getImmediateTigerLocale(locale) : void 0,
61
+ [locale]
62
+ );
63
+ const [resolvedTableLocale, setResolvedTableLocale] = useState(immediateTableLocale);
64
+ useEffect(() => {
65
+ let active = true;
66
+ setResolvedTableLocale(immediateTableLocale);
67
+ if (locale && isLazyTigerLocale(locale)) {
68
+ resolveTigerLocale(locale).then((nextLocale) => {
69
+ if (active) setResolvedTableLocale(nextLocale);
70
+ }).catch(() => {
71
+ if (active) setResolvedTableLocale(immediateTableLocale);
72
+ });
73
+ }
74
+ return () => {
75
+ active = false;
76
+ };
77
+ }, [locale, immediateTableLocale]);
78
+ const tableLocale = useMemo(
79
+ () => mergeTigerLocale(config.locale, resolvedTableLocale),
80
+ [config.locale, resolvedTableLocale]
81
+ );
82
+ const tableLabels = useMemo(
83
+ () => getTableLabels(tableLocale, labels),
84
+ [labels, tableLocale]
85
+ );
48
86
  useEffect(() => {
49
87
  if (toolbar?.searchValue !== void 0) {
50
88
  setInternalSearch(toolbar.searchValue ?? "");
@@ -84,7 +122,7 @@ var DataTableWithToolbar = ({
84
122
  const { bordered = false, ...remainingTableProps } = tableProps;
85
123
  const selectedKeys = toolbar?.selectedKeys ?? tableProps.rowSelection?.selectedRowKeys ?? [];
86
124
  const selectedCount = toolbar?.selectedCount ?? selectedKeys.length;
87
- const bulkLabel = toolbar?.bulkActionsLabel ?? "\u5DF2\u9009\u62E9";
125
+ const bulkLabel = toolbar?.bulkActionsLabel ?? tableLabels.selectedText;
88
126
  const wrapperClasses = useMemo(
89
127
  () => classNames(
90
128
  "tiger-data-table-with-toolbar flex flex-col",
@@ -141,7 +179,7 @@ var DataTableWithToolbar = ({
141
179
  bordered ? "bg-[var(--tiger-surface-muted,#f9fafb)] dark:bg-gray-800/10 px-4 py-3.5 border-b border-[var(--tiger-border,#e5e7eb)]" : "bg-[var(--tiger-surface-muted,#f9fafb)]/80 dark:bg-gray-800/30 px-4 py-3.5 border border-[var(--tiger-border,#e5e7eb)] rounded-[var(--tiger-radius-md,0.5rem)] shadow-sm"
142
180
  ),
143
181
  role: "toolbar",
144
- "aria-label": "\u6570\u636E\u8868\u683C\u5DE5\u5177\u680F",
182
+ "aria-label": tableLabels.toolbarAriaLabel,
145
183
  children: [
146
184
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 flex-wrap flex-1 min-w-0", children: [
147
185
  hasSearch ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 w-full sm:w-auto sm:min-w-[220px] sm:max-w-[320px]", children: [
@@ -151,7 +189,7 @@ var DataTableWithToolbar = ({
151
189
  type: "search",
152
190
  size: "sm",
153
191
  value: searchValue,
154
- placeholder: toolbar?.searchPlaceholder ?? "\u641C\u7D22",
192
+ placeholder: toolbar?.searchPlaceholder ?? tableLabels.searchPlaceholder,
155
193
  prefix: /* @__PURE__ */ jsx(
156
194
  "svg",
157
195
  {
@@ -187,7 +225,7 @@ var DataTableWithToolbar = ({
187
225
  className: "whitespace-nowrap shrink-0 rounded-[var(--tiger-radius-md,0.5rem)] px-3",
188
226
  onClick: handleSearchSubmit,
189
227
  disabled: !onSearch && !toolbar?.onSearch,
190
- children: toolbar?.searchButtonText ?? "\u641C\u7D22"
228
+ children: toolbar?.searchButtonText ?? tableLabels.searchButtonText
191
229
  }
192
230
  ) : null
193
231
  ] }) : null,
@@ -226,7 +264,8 @@ var DataTableWithToolbar = ({
226
264
  bulkLabel,
227
265
  " ",
228
266
  selectedCount,
229
- " \u9879"
267
+ " ",
268
+ tableLabels.selectedItemsText
230
269
  ] })
231
270
  ] }) : null,
232
271
  toolbar?.bulkActions?.map((action) => /* @__PURE__ */ jsx(
@@ -251,6 +290,8 @@ var DataTableWithToolbar = ({
251
290
  Table,
252
291
  {
253
292
  ...remainingTableProps,
293
+ locale,
294
+ labels,
254
295
  bordered,
255
296
  pagination,
256
297
  className: classNames(tableClassName, bordered && "border-none rounded-none shadow-none"),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  usePopup
3
- } from "./chunk-4XOWNEZA.mjs";
3
+ } from "./chunk-ZDEOTMXP.mjs";
4
4
  import {
5
5
  renderBodyPortal
6
6
  } from "./chunk-SEWNVIHH.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk6HELKWFNjs = require('./chunk-6HELKWFN.js');
3
+ var _chunk3LCISRAVjs = require('./chunk-3LCISRAV.js');
4
4
 
5
5
 
6
6
  var _chunkSTTQ5LXXjs = require('./chunk-STTQ5LXX.js');
@@ -84,7 +84,7 @@ var Popconfirm = ({
84
84
  floatingRef,
85
85
  actualPlacement,
86
86
  floatingStyles: baseFloatingStyles
87
- } = _chunk6HELKWFNjs.usePopup.call(void 0, {
87
+ } = _chunk3LCISRAVjs.usePopup.call(void 0, {
88
88
  open,
89
89
  defaultOpen,
90
90
  disabled,