@iclips/ui 1.0.20 → 1.0.21

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/index.js CHANGED
@@ -4,7 +4,7 @@ import { ChevronDownIcon as $s, Home as k4, Folder as S4, Users as T4, Calendar
4
4
  import { clsx as Sv } from "clsx";
5
5
  import { twMerge as Tv } from "tailwind-merge";
6
6
  import * as D from "react";
7
- import gt, { useState as ee, useRef as De, useDebugValue as B1, useEffect as pe, forwardRef as H1, useLayoutEffect as Fc, version as Cu, createContext as Li, useContext as qe, useImperativeHandle as Iv, createElement as O, memo as Jc, createRef as nn, Fragment as Yc, useCallback as Ue, useMemo as ge, Suspense as jv, Component as Dv, isValidElement as Ev, cloneElement as xu } from "react";
7
+ import gt, { useState as ee, useRef as De, useDebugValue as B1, useEffect as de, forwardRef as H1, useLayoutEffect as Fc, version as Cu, createContext as Li, useContext as qe, useImperativeHandle as Iv, createElement as O, memo as Jc, createRef as nn, Fragment as Yc, useCallback as Ue, useMemo as ge, Suspense as jv, Component as Dv, isValidElement as Ev, cloneElement as xu } from "react";
8
8
  import * as Xt from "@radix-ui/react-alert-dialog";
9
9
  import { Slot as Cn } from "@radix-ui/react-slot";
10
10
  import { cva as Ni } from "class-variance-authority";
@@ -13008,7 +13008,7 @@ function Um(t) {
13008
13008
  });
13009
13009
  }), e;
13010
13010
  }
13011
- function ue(...t) {
13011
+ function he(...t) {
13012
13012
  return t.filter((e) => !!e).reduce((e, n) => {
13013
13013
  const r = { ...e };
13014
13014
  return Object.entries(n).forEach(([i, a]) => {
@@ -13036,7 +13036,7 @@ function ue(...t) {
13036
13036
  function ds(t, e) {
13037
13037
  return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
13038
13038
  [n.name]: t.attrs[n.name]
13039
- }).reduce((n, r) => ue(n, r), {});
13039
+ }).reduce((n, r) => he(n, r), {});
13040
13040
  }
13041
13041
  function qC(t) {
13042
13042
  return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t;
@@ -16441,7 +16441,7 @@ var Jx = class extends gt.Component {
16441
16441
  ...t
16442
16442
  });
16443
16443
  }
16444
- ), hg = gt.memo(Yx), Qx = typeof window < "u" ? Fc : pe, Vx = class {
16444
+ ), hg = gt.memo(Yx), Qx = typeof window < "u" ? Fc : de, Vx = class {
16445
16445
  constructor(t) {
16446
16446
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
16447
16447
  }
@@ -16661,7 +16661,7 @@ function mg(t = {}, e = []) {
16661
16661
  r.getEditor,
16662
16662
  r.getServerSnapshot
16663
16663
  );
16664
- return B1(i), pe(r.onRender(e)), Gx({
16664
+ return B1(i), de(r.onRender(e)), Gx({
16665
16665
  editor: i,
16666
16666
  selector: ({ transactionNumber: a }) => t.shouldRerenderOnTransaction === !1 || t.shouldRerenderOnTransaction === void 0 ? null : t.immediatelyRender && a === 0 ? 0 : a + 1
16667
16667
  }), i;
@@ -16801,7 +16801,7 @@ var us = (t, e) => {
16801
16801
  return [{ tag: "blockquote" }];
16802
16802
  },
16803
16803
  renderHTML({ HTMLAttributes: t }) {
16804
- return /* @__PURE__ */ us("blockquote", { ...ue(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16804
+ return /* @__PURE__ */ us("blockquote", { ...he(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16805
16805
  },
16806
16806
  parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
16807
16807
  renderMarkdown: (t, e) => {
@@ -16864,7 +16864,7 @@ ${n}
16864
16864
  ];
16865
16865
  },
16866
16866
  renderHTML({ HTMLAttributes: t }) {
16867
- return /* @__PURE__ */ us("strong", { ...ue(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16867
+ return /* @__PURE__ */ us("strong", { ...he(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16868
16868
  },
16869
16869
  markdownTokenName: "strong",
16870
16870
  parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
@@ -16920,7 +16920,7 @@ ${n}
16920
16920
  return [{ tag: "code" }];
16921
16921
  },
16922
16922
  renderHTML({ HTMLAttributes: t }) {
16923
- return ["code", ue(this.options.HTMLAttributes, t), 0];
16923
+ return ["code", he(this.options.HTMLAttributes, t), 0];
16924
16924
  },
16925
16925
  markdownTokenName: "codespan",
16926
16926
  parseMarkdown: (t, e) => e.applyMark("code", [{ type: "text", text: t.text || "" }]),
@@ -16998,7 +16998,7 @@ ${n}
16998
16998
  renderHTML({ node: t, HTMLAttributes: e }) {
16999
16999
  return [
17000
17000
  "pre",
17001
- ue(this.options.HTMLAttributes, e),
17001
+ he(this.options.HTMLAttributes, e),
17002
17002
  [
17003
17003
  "code",
17004
17004
  {
@@ -17186,7 +17186,7 @@ ${n}
17186
17186
  return [{ tag: "br" }];
17187
17187
  },
17188
17188
  renderHTML({ HTMLAttributes: t }) {
17189
- return ["br", ue(this.options.HTMLAttributes, t)];
17189
+ return ["br", he(this.options.HTMLAttributes, t)];
17190
17190
  },
17191
17191
  renderText() {
17192
17192
  return `
@@ -17249,7 +17249,7 @@ ${n}
17249
17249
  }));
17250
17250
  },
17251
17251
  renderHTML({ node: t, HTMLAttributes: e }) {
17252
- return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, ue(this.options.HTMLAttributes, e), 0];
17252
+ return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, he(this.options.HTMLAttributes, e), 0];
17253
17253
  },
17254
17254
  parseMarkdown: (t, e) => e.createNode("heading", { level: t.depth || 1 }, e.parseInline(t.tokens || [])),
17255
17255
  renderMarkdown: (t, e) => {
@@ -17294,7 +17294,7 @@ ${n}
17294
17294
  return [{ tag: "hr" }];
17295
17295
  },
17296
17296
  renderHTML({ HTMLAttributes: t }) {
17297
- return ["hr", ue(this.options.HTMLAttributes, t)];
17297
+ return ["hr", he(this.options.HTMLAttributes, t)];
17298
17298
  },
17299
17299
  markdownTokenName: "hr",
17300
17300
  parseMarkdown: (t, e) => e.createNode("horizontalRule"),
@@ -17357,7 +17357,7 @@ ${n}
17357
17357
  ];
17358
17358
  },
17359
17359
  renderHTML({ HTMLAttributes: t }) {
17360
- return ["em", ue(this.options.HTMLAttributes, t), 0];
17360
+ return ["em", he(this.options.HTMLAttributes, t), 0];
17361
17361
  },
17362
17362
  addCommands() {
17363
17363
  return {
@@ -18045,7 +18045,7 @@ function yl(t, e, n) {
18045
18045
  return new t(a, n);
18046
18046
  }
18047
18047
  const RL = typeof console < "u" && console && console.warn || (() => {
18048
- }), BL = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", de = {
18048
+ }), BL = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", ue = {
18049
18049
  scanner: null,
18050
18050
  parser: null,
18051
18051
  tokenQueue: [],
@@ -18054,32 +18054,32 @@ const RL = typeof console < "u" && console && console.warn || (() => {
18054
18054
  initialized: !1
18055
18055
  };
18056
18056
  function HL() {
18057
- return st.groups = {}, de.scanner = null, de.parser = null, de.tokenQueue = [], de.pluginQueue = [], de.customSchemes = [], de.initialized = !1, de;
18057
+ return st.groups = {}, ue.scanner = null, ue.parser = null, ue.tokenQueue = [], ue.pluginQueue = [], ue.customSchemes = [], ue.initialized = !1, ue;
18058
18058
  }
18059
18059
  function rh(t, e = !1) {
18060
- if (de.initialized && RL(`linkifyjs: already initialized - will not register custom scheme "${t}" ${BL}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
18060
+ if (ue.initialized && RL(`linkifyjs: already initialized - will not register custom scheme "${t}" ${BL}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
18061
18061
  throw new Error(`linkifyjs: incorrect scheme format.
18062
18062
  1. Must only contain digits, lowercase ASCII letters or "-"
18063
18063
  2. Cannot start or end with "-"
18064
18064
  3. "-" cannot repeat`);
18065
- de.customSchemes.push([t, e]);
18065
+ ue.customSchemes.push([t, e]);
18066
18066
  }
18067
18067
  function UL() {
18068
- de.scanner = EL(de.customSchemes);
18069
- for (let t = 0; t < de.tokenQueue.length; t++)
18070
- de.tokenQueue[t][1]({
18071
- scanner: de.scanner
18068
+ ue.scanner = EL(ue.customSchemes);
18069
+ for (let t = 0; t < ue.tokenQueue.length; t++)
18070
+ ue.tokenQueue[t][1]({
18071
+ scanner: ue.scanner
18072
18072
  });
18073
- de.parser = OL(de.scanner.tokens);
18074
- for (let t = 0; t < de.pluginQueue.length; t++)
18075
- de.pluginQueue[t][1]({
18076
- scanner: de.scanner,
18077
- parser: de.parser
18073
+ ue.parser = OL(ue.scanner.tokens);
18074
+ for (let t = 0; t < ue.pluginQueue.length; t++)
18075
+ ue.pluginQueue[t][1]({
18076
+ scanner: ue.scanner,
18077
+ parser: ue.parser
18078
18078
  });
18079
- return de.initialized = !0, de;
18079
+ return ue.initialized = !0, ue;
18080
18080
  }
18081
18081
  function Ad(t) {
18082
- return de.initialized || UL(), PL(de.parser.start, t, Cg(de.scanner.start, t));
18082
+ return ue.initialized || UL(), PL(ue.parser.start, t, Cg(ue.scanner.start, t));
18083
18083
  }
18084
18084
  Ad.scan = Cg;
18085
18085
  function Lg(t, e = null, n = null) {
@@ -18294,7 +18294,7 @@ var Ng = jr.create({
18294
18294
  defaultValidate: (e) => !!nr(e, this.options.protocols),
18295
18295
  protocols: this.options.protocols,
18296
18296
  defaultProtocol: this.options.defaultProtocol
18297
- }) ? ["a", ue(this.options.HTMLAttributes, t), 0] : ["a", ue(this.options.HTMLAttributes, { ...t, href: "" }), 0];
18297
+ }) ? ["a", he(this.options.HTMLAttributes, t), 0] : ["a", he(this.options.HTMLAttributes, { ...t, href: "" }), 0];
18298
18298
  },
18299
18299
  markdownTokenName: "link",
18300
18300
  parseMarkdown: (t, e) => e.applyMark("link", e.parseInline(t.tokens || []), {
@@ -18412,7 +18412,7 @@ var Ng = jr.create({
18412
18412
  return [{ tag: "ul" }];
18413
18413
  },
18414
18414
  renderHTML({ HTMLAttributes: t }) {
18415
- return ["ul", ue(this.options.HTMLAttributes, t), 0];
18415
+ return ["ul", he(this.options.HTMLAttributes, t), 0];
18416
18416
  },
18417
18417
  markdownTokenName: "list",
18418
18418
  parseMarkdown: (t, e) => t.type !== "list" || t.ordered ? [] : {
@@ -18467,7 +18467,7 @@ var Ng = jr.create({
18467
18467
  ];
18468
18468
  },
18469
18469
  renderHTML({ HTMLAttributes: t }) {
18470
- return ["li", ue(this.options.HTMLAttributes, t), 0];
18470
+ return ["li", he(this.options.HTMLAttributes, t), 0];
18471
18471
  },
18472
18472
  markdownTokenName: "list_item",
18473
18473
  parseMarkdown: (t, e) => {
@@ -18775,7 +18775,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
18775
18775
  },
18776
18776
  renderHTML({ HTMLAttributes: t }) {
18777
18777
  const { start: e, ...n } = t;
18778
- return e === 1 ? ["ol", ue(this.options.HTMLAttributes, n), 0] : ["ol", ue(this.options.HTMLAttributes, t), 0];
18778
+ return e === 1 ? ["ol", he(this.options.HTMLAttributes, n), 0] : ["ol", he(this.options.HTMLAttributes, t), 0];
18779
18779
  },
18780
18780
  markdownTokenName: "list",
18781
18781
  parseMarkdown: (t, e) => {
@@ -18887,7 +18887,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
18887
18887
  renderHTML({ node: t, HTMLAttributes: e }) {
18888
18888
  return [
18889
18889
  "li",
18890
- ue(this.options.HTMLAttributes, e, {
18890
+ he(this.options.HTMLAttributes, e, {
18891
18891
  "data-type": this.name
18892
18892
  }),
18893
18893
  [
@@ -18992,7 +18992,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
18992
18992
  ];
18993
18993
  },
18994
18994
  renderHTML({ HTMLAttributes: t }) {
18995
- return ["ul", ue(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
18995
+ return ["ul", he(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
18996
18996
  },
18997
18997
  parseMarkdown: (t, e) => e.createNode("taskList", {}, e.parseChildren(t.items || [])),
18998
18998
  renderMarkdown: (t, e) => t.content ? e.renderChildren(t.content, `
@@ -19105,7 +19105,7 @@ var sN = ot.create({
19105
19105
  return [{ tag: "p" }];
19106
19106
  },
19107
19107
  renderHTML({ HTMLAttributes: t }) {
19108
- return ["p", ue(this.options.HTMLAttributes, t), 0];
19108
+ return ["p", he(this.options.HTMLAttributes, t), 0];
19109
19109
  },
19110
19110
  parseMarkdown: (t, e) => {
19111
19111
  const n = t.tokens || [];
@@ -19153,7 +19153,7 @@ var sN = ot.create({
19153
19153
  ];
19154
19154
  },
19155
19155
  renderHTML({ HTMLAttributes: t }) {
19156
- return ["s", ue(this.options.HTMLAttributes, t), 0];
19156
+ return ["s", he(this.options.HTMLAttributes, t), 0];
19157
19157
  },
19158
19158
  markdownTokenName: "del",
19159
19159
  parseMarkdown: (t, e) => e.applyMark("strike", e.parseInline(t.tokens || [])),
@@ -19214,7 +19214,7 @@ var sN = ot.create({
19214
19214
  ];
19215
19215
  },
19216
19216
  renderHTML({ HTMLAttributes: t }) {
19217
- return ["u", ue(this.options.HTMLAttributes, t), 0];
19217
+ return ["u", he(this.options.HTMLAttributes, t), 0];
19218
19218
  },
19219
19219
  parseMarkdown(t, e) {
19220
19220
  return e.applyMark(this.name || "underline", e.parseInline(t.tokens || []));
@@ -20196,7 +20196,7 @@ var zN = xe.create({
20196
20196
  ];
20197
20197
  },
20198
20198
  renderHTML({ HTMLAttributes: t }) {
20199
- return ["img", ue(this.options.HTMLAttributes, t)];
20199
+ return ["img", he(this.options.HTMLAttributes, t)];
20200
20200
  },
20201
20201
  parseMarkdown: (t, e) => e.createNode("image", {
20202
20202
  src: t.href,
@@ -20532,7 +20532,7 @@ var YN = ot.create({
20532
20532
  var r, i;
20533
20533
  return [
20534
20534
  "span",
20535
- ue(this.HTMLAttributes, t.HTMLAttributes),
20535
+ he(this.HTMLAttributes, t.HTMLAttributes),
20536
20536
  `${(r = n == null ? void 0 : n.char) != null ? r : "@"}${(i = e.attrs.label) != null ? i : e.attrs.id}`
20537
20537
  ];
20538
20538
  },
@@ -20582,7 +20582,7 @@ var YN = ot.create({
20582
20582
  if (this.options.renderLabel !== void 0)
20583
20583
  return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
20584
20584
  "span",
20585
- ue({ "data-type": this.name }, this.options.HTMLAttributes, e),
20585
+ he({ "data-type": this.name }, this.options.HTMLAttributes, e),
20586
20586
  this.options.renderLabel({
20587
20587
  options: this.options,
20588
20588
  node: t,
@@ -20590,7 +20590,7 @@ var YN = ot.create({
20590
20590
  })
20591
20591
  ];
20592
20592
  const r = { ...this.options };
20593
- r.HTMLAttributes = ue(
20593
+ r.HTMLAttributes = he(
20594
20594
  { "data-type": this.name },
20595
20595
  this.options.HTMLAttributes,
20596
20596
  e
@@ -20600,7 +20600,7 @@ var YN = ot.create({
20600
20600
  node: t,
20601
20601
  suggestion: n
20602
20602
  });
20603
- return typeof i == "string" ? ["span", ue({ "data-type": this.name }, this.options.HTMLAttributes, e), i] : i;
20603
+ return typeof i == "string" ? ["span", he({ "data-type": this.name }, this.options.HTMLAttributes, e), i] : i;
20604
20604
  },
20605
20605
  ...cg({
20606
20606
  nodeName: "mention",
@@ -22367,7 +22367,7 @@ const u2 = H1((t, e) => {
22367
22367
  }, s = () => {
22368
22368
  i(n);
22369
22369
  };
22370
- return pe(() => {
22370
+ return de(() => {
22371
22371
  r(0);
22372
22372
  }, [t.items]), Iv(e, () => ({
22373
22373
  onKeyDown: ({ event: f }) => f.key === "ArrowUp" ? (a(), !0) : f.key === "ArrowDown" ? (o(), !0) : f.key === "Enter" ? (s(), !0) : !1
@@ -22641,15 +22641,15 @@ function A9(t, e, n, r) {
22641
22641
  const i = Mf(t, e, r);
22642
22642
  return t.append("}"), i;
22643
22643
  }
22644
- function he() {
22645
- return he = Object.assign ? Object.assign.bind() : function(t) {
22644
+ function pe() {
22645
+ return pe = Object.assign ? Object.assign.bind() : function(t) {
22646
22646
  for (var e = 1; e < arguments.length; e++) {
22647
22647
  var n = arguments[e];
22648
22648
  for (var r in n)
22649
22649
  Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
22650
22650
  }
22651
22651
  return t;
22652
- }, he.apply(this, arguments);
22652
+ }, pe.apply(this, arguments);
22653
22653
  }
22654
22654
  function z9(t, e) {
22655
22655
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Nc(t, e);
@@ -22715,7 +22715,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
22715
22715
  visibility: "hidden",
22716
22716
  overflow: "hidden"
22717
22717
  }, _d = /* @__PURE__ */ ve.create({
22718
- hidden: /* @__PURE__ */ he({
22718
+ hidden: /* @__PURE__ */ pe({
22719
22719
  ".": re.hidden
22720
22720
  }, Yo)
22721
22721
  }), R9 = /* @__PURE__ */ Jc(function() {
@@ -22734,7 +22734,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
22734
22734
  backgroundPositionY: "var(--epr-category-navigation-button-size)"
22735
22735
  }
22736
22736
  },
22737
- hiddenOnSearch: /* @__PURE__ */ he({
22737
+ hiddenOnSearch: /* @__PURE__ */ pe({
22738
22738
  ".": re.hiddenOnSearch
22739
22739
  }, Yo)
22740
22740
  },
@@ -22765,7 +22765,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
22765
22765
  backgroundPositionY: "var(--epr-category-navigation-button-size)"
22766
22766
  }
22767
22767
  },
22768
- visibleOnSearchOnly: /* @__PURE__ */ he({
22768
+ visibleOnSearchOnly: /* @__PURE__ */ pe({
22769
22769
  ".": "epr-visible-on-search-only"
22770
22770
  }, Yo)
22771
22771
  }
@@ -22844,7 +22844,7 @@ function F9(t, e) {
22844
22844
  return dS(t) > e;
22845
22845
  }
22846
22846
  function J9(t) {
22847
- pe(function() {
22847
+ de(function() {
22848
22848
  t(!0);
22849
22849
  }, [t]);
22850
22850
  }
@@ -23018,7 +23018,7 @@ var Nt, V9 = [X.SUGGESTED, X.CUSTOM, X.SMILEYS_PEOPLE, X.ANIMALS_NATURE, X.FOOD_
23018
23018
  }, Nt);
23019
23019
  function D2(t) {
23020
23020
  return V9.map(function(e) {
23021
- return he({}, j2[e], t && t[e] && t[e]);
23021
+ return pe({}, j2[e], t && t[e] && t[e]);
23022
23022
  });
23023
23023
  }
23024
23024
  function Lf(t) {
@@ -23034,7 +23034,7 @@ function _9(t, e) {
23034
23034
  e.suggestionMode === Ba.RECENT && (r[X.SUGGESTED] = G9);
23035
23035
  var i = D2(r);
23036
23036
  return (n = t) != null && n.length ? t.map(function(a) {
23037
- return typeof a == "string" ? Oh(a, r[a]) : he({}, Oh(a.category, r[a.category]), a);
23037
+ return typeof a == "string" ? Oh(a, r[a]) : pe({}, Oh(a.category, r[a.category]), a);
23038
23038
  }) : i;
23039
23039
  }
23040
23040
  function Oh(t, e) {
@@ -39987,7 +39987,7 @@ function Ph(t) {
39987
39987
  a.unicodeToHide.add(f);
39988
39988
  }), hS((n = a.customEmojis) != null ? n : []);
39989
39989
  var s = a.searchDisabled ? Mi.PREVIEW : a.skinTonePickerLocation;
39990
- return he({}, a, {
39990
+ return pe({}, a, {
39991
39991
  categories: o,
39992
39992
  previewConfig: i,
39993
39993
  skinTonePickerLocation: s
@@ -40005,7 +40005,7 @@ function H2() {
40005
40005
  getEmojiUrl: P2,
40006
40006
  height: 450,
40007
40007
  lazyLoadEmojis: !1,
40008
- previewConfig: he({}, yS),
40008
+ previewConfig: pe({}, yS),
40009
40009
  searchDisabled: !1,
40010
40010
  searchPlaceHolder: Gs,
40011
40011
  searchPlaceholder: Gs,
@@ -40039,7 +40039,7 @@ function xS(t) {
40039
40039
  var e, n = ee(function() {
40040
40040
  return Ph(t);
40041
40041
  }), r = n[0], i = n[1];
40042
- return pe(function() {
40042
+ return de(function() {
40043
40043
  L2(r, t) || i(Ph(t));
40044
40044
  }, [(e = t.customEmojis) == null ? void 0 : e.length, t.open, t.emojiVersion, t.reactionsDefaultOpen, t.searchPlaceHolder, t.searchPlaceholder, t.searchClearButtonLabel, t.defaultSkinTone, t.skinTonesDisabled, t.autoFocusSearch, t.emojiStyle, t.theme, t.suggestedEmojisMode, t.lazyLoadEmojis, t.className, t.height, t.width, t.searchDisabled, t.skinTonePickerLocation, t.allowExpandReactions]), r;
40045
40045
  }
@@ -40161,7 +40161,7 @@ function OS() {
40161
40161
  }
40162
40162
  function PS() {
40163
40163
  var t = ye(), e = t.height, n = t.width, r = t.style;
40164
- return he({
40164
+ return pe({
40165
40165
  height: Rh(e),
40166
40166
  width: Rh(n)
40167
40167
  }, r);
@@ -40429,7 +40429,7 @@ function ib() {
40429
40429
  }
40430
40430
  function nT() {
40431
40431
  var t = Ct(), e = rb(), n = ib();
40432
- pe(function() {
40432
+ de(function() {
40433
40433
  var r = t.current;
40434
40434
  r == null || r.addEventListener("mousemove", i, {
40435
40435
  passive: !0
@@ -40593,7 +40593,7 @@ function pT() {
40593
40593
  }
40594
40594
  };
40595
40595
  }, [n, e, s, i, a, o]);
40596
- pe(function() {
40596
+ de(function() {
40597
40597
  var l = t.current;
40598
40598
  if (l)
40599
40599
  return l.addEventListener("keydown", f), function() {
@@ -40620,7 +40620,7 @@ function mT() {
40620
40620
  }
40621
40621
  };
40622
40622
  }, [t, o, a, n, s]);
40623
- pe(function() {
40623
+ de(function() {
40624
40624
  var l = r.current;
40625
40625
  if (l)
40626
40626
  return l.addEventListener("keydown", f), function() {
@@ -40672,7 +40672,7 @@ function gT() {
40672
40672
  })
40673
40673
  );
40674
40674
  }, [a, e, o, r, l, s, f]);
40675
- pe(function() {
40675
+ de(function() {
40676
40676
  var u = t.current;
40677
40677
  if (u)
40678
40678
  return u.addEventListener("keydown", d), function() {
@@ -40703,7 +40703,7 @@ function bT() {
40703
40703
  }
40704
40704
  };
40705
40705
  }, [n, t, r]);
40706
- pe(function() {
40706
+ de(function() {
40707
40707
  var a = e.current;
40708
40708
  if (a)
40709
40709
  return a.addEventListener("keydown", i), function() {
@@ -40748,7 +40748,7 @@ function vT() {
40748
40748
  })
40749
40749
  );
40750
40750
  }, [e, a, n, r, i]);
40751
- pe(function() {
40751
+ de(function() {
40752
40752
  var s = t.current;
40753
40753
  if (s)
40754
40754
  return s.addEventListener("keydown", o), function() {
@@ -40812,7 +40812,7 @@ function CT(t) {
40812
40812
  }
40813
40813
  function xT() {
40814
40814
  var t = Ct(), e = zr(), n = Or();
40815
- pe(function() {
40815
+ de(function() {
40816
40816
  if (e === mt.NATIVE)
40817
40817
  return;
40818
40818
  var r = t.current;
@@ -40840,7 +40840,7 @@ function kT(t) {
40840
40840
  return O("aside", {
40841
40841
  className: te(Yi.main, Yi.baseVariables, a === Ha.DARK && Yi.darkTheme, a === Ha.AUTO && Yi.autoThemeDark, (e = {}, e[re.searchActive] = o, e), i && Yi.reactionsMenu, f),
40842
40842
  ref: s,
40843
- style: he({}, h, !i && {
40843
+ style: pe({}, h, !i && {
40844
40844
  height: p,
40845
40845
  width: u
40846
40846
  })
@@ -41182,7 +41182,7 @@ function Nb(t, e) {
41182
41182
  i.current = !1;
41183
41183
  });
41184
41184
  }, [i]);
41185
- pe(function() {
41185
+ de(function() {
41186
41186
  if (t.current) {
41187
41187
  var C = t.current;
41188
41188
  return C.addEventListener("click", g, {
@@ -41438,7 +41438,7 @@ function QT() {
41438
41438
  }
41439
41439
  });
41440
41440
  }
41441
- var VT = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
41441
+ var VT = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
41442
41442
  plusSign: {
41443
41443
  fontSize: "20px",
41444
41444
  padding: "17px",
@@ -41531,7 +41531,7 @@ var _h = /* @__PURE__ */ ve.create({
41531
41531
  });
41532
41532
  function _T(t) {
41533
41533
  var e = Pr(), n = ee(0), r = n[0], i = n[1];
41534
- return pe(function() {
41534
+ return de(function() {
41535
41535
  var a = t.current;
41536
41536
  if (!a)
41537
41537
  return;
@@ -41578,9 +41578,9 @@ function qT(t) {
41578
41578
  }
41579
41579
  }
41580
41580
  }, [e, t, l]);
41581
- return pe(function() {
41581
+ return de(function() {
41582
41582
  h();
41583
- }, [t, r, h, s.length]), pe(function() {
41583
+ }, [t, r, h, s.length]), de(function() {
41584
41584
  var m = i.current;
41585
41585
  if (m) {
41586
41586
  var g = function(w) {
@@ -41615,7 +41615,7 @@ function XT(t) {
41615
41615
  var N = u(y), x = o(y), k = x.failedToLoad, S = x.filteredOut, T = x.hidden;
41616
41616
  return !k && !S && !T && !N;
41617
41617
  }), w = qT(b.length);
41618
- pe(function() {
41618
+ de(function() {
41619
41619
  w && r(w.categoryHeight);
41620
41620
  }, [w, r, b.length]);
41621
41621
  var C = function(N) {
@@ -41641,7 +41641,7 @@ function XT(t) {
41641
41641
  emojiStyle: f,
41642
41642
  lazyLoad: s,
41643
41643
  getEmojiUrl: p,
41644
- style: he({}, S, {
41644
+ style: pe({}, S, {
41645
41645
  position: "absolute"
41646
41646
  })
41647
41647
  })), y) : (g++, y);
@@ -41747,7 +41747,7 @@ function nI(t) {
41747
41747
  onHeightReady: function(g) {
41748
41748
  i[u] !== g && a(function(b) {
41749
41749
  var w;
41750
- return he({}, b, (w = {}, w[u] = g, w));
41750
+ return pe({}, b, (w = {}, w[u] = g, w));
41751
41751
  });
41752
41752
  },
41753
41753
  scrollTop: e
@@ -41783,7 +41783,7 @@ var iI = /* @__PURE__ */ ve.create({
41783
41783
  })(ai || (ai = {}));
41784
41784
  function oI() {
41785
41785
  var t = Sf(), e = QS(), n = Si(), r = n[0], i = zr(), a = fI(e), o = a.getTop, s = a.getMenuDirection, f = eb(), l = sI(e), d = Or(), u = Qt(t.current), p = !!(r && u && Ti(r) && u.classList.contains(re.emojiHasVariations));
41786
- pe(function() {
41786
+ de(function() {
41787
41787
  p && If(e.current);
41788
41788
  }, [e, p, t]);
41789
41789
  var h, m;
@@ -41846,7 +41846,7 @@ function fI(t) {
41846
41846
  return o - s;
41847
41847
  }
41848
41848
  }
41849
- var Eo = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
41849
+ var Eo = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
41850
41850
  variationPicker: {
41851
41851
  ".": re.variationPicker,
41852
41852
  position: "absolute",
@@ -41928,7 +41928,7 @@ function dI(t, e) {
41928
41928
  }
41929
41929
  function uI(t, e) {
41930
41930
  var n = Ct(), r = ib(), i = rb();
41931
- pe(function() {
41931
+ de(function() {
41932
41932
  if (!t)
41933
41933
  return;
41934
41934
  var a = n.current;
@@ -41990,7 +41990,7 @@ var Ao, Ya;
41990
41990
  function kb(t) {
41991
41991
  var e = t.children, n = t.className, r = t.style, i = r === void 0 ? {} : r, a = t.direction, o = a === void 0 ? Ya.ROW : a;
41992
41992
  return O("div", {
41993
- style: he({}, i),
41993
+ style: pe({}, i),
41994
41994
  className: te(Wh.flex, n, Wh[o])
41995
41995
  }, e);
41996
41996
  }
@@ -42006,7 +42006,7 @@ var Wh = /* @__PURE__ */ ve.create((Ao = {
42006
42006
  function pI(t) {
42007
42007
  var e = t.className, n = t.style, r = n === void 0 ? {} : n;
42008
42008
  return O("div", {
42009
- style: he({
42009
+ style: pe({
42010
42010
  flex: 1
42011
42011
  }, r),
42012
42012
  className: te(e)
@@ -42015,7 +42015,7 @@ function pI(t) {
42015
42015
  function mI(t) {
42016
42016
  var e = t.children, n = t.className, r = t.style;
42017
42017
  return O("div", {
42018
- style: he({}, r, {
42018
+ style: pe({}, r, {
42019
42019
  position: "absolute"
42020
42020
  }),
42021
42021
  className: n
@@ -42024,7 +42024,7 @@ function mI(t) {
42024
42024
  function Af(t) {
42025
42025
  var e = t.children, n = t.className, r = t.style;
42026
42026
  return O("div", {
42027
- style: he({}, r, {
42027
+ style: pe({}, r, {
42028
42028
  position: "relative"
42029
42029
  }),
42030
42030
  className: n
@@ -42240,7 +42240,7 @@ function yI(t) {
42240
42240
  }
42241
42241
  function MI(t) {
42242
42242
  var e = t.setActiveCategory, n = t.setVisibleCategories, r = Ct();
42243
- pe(function() {
42243
+ de(function() {
42244
42244
  var i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = r.current, s = new IntersectionObserver(function(f) {
42245
42245
  if (o) {
42246
42246
  for (var l = P9(f), d; !(d = l()).done; ) {
@@ -42318,7 +42318,7 @@ var $h = {
42318
42318
  "&.epr-active": $h
42319
42319
  }
42320
42320
  }
42321
- }, SI = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42321
+ }, SI = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42322
42322
  catBtn: {
42323
42323
  ".": "epr-cat-btn",
42324
42324
  display: "inline-block",
@@ -42372,8 +42372,8 @@ var $h = {
42372
42372
  }
42373
42373
  }
42374
42374
  }, /* @__PURE__ */ Gn("catBtn", kI), {
42375
- ".epr-dark-theme": /* @__PURE__ */ he({}, Zh),
42376
- ".epr-auto-theme": /* @__PURE__ */ he({}, Zh)
42375
+ ".epr-dark-theme": /* @__PURE__ */ pe({}, Zh),
42376
+ ".epr-auto-theme": /* @__PURE__ */ pe({}, Zh)
42377
42377
  }));
42378
42378
  function TI() {
42379
42379
  var t = ee(null), e = t[0], n = t[1], r = Zd(), i = r[1], a = CI();
@@ -42447,7 +42447,7 @@ var DI = {
42447
42447
  backgroundPositionY: "-60px"
42448
42448
  }
42449
42449
  }
42450
- }, qh = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42450
+ }, qh = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42451
42451
  btnClearSearch: {
42452
42452
  ".": "epr-btn-clear-search",
42453
42453
  position: "absolute",
@@ -42491,7 +42491,7 @@ function AI() {
42491
42491
  className: te(zI.icnSearch)
42492
42492
  });
42493
42493
  }
42494
- var zI = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42494
+ var zI = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42495
42495
  icnSearch: {
42496
42496
  ".": "epr-icn-search",
42497
42497
  content: "",
@@ -42541,7 +42541,7 @@ function PI() {
42541
42541
  "aria-atomic": "true"
42542
42542
  }, a) : null, O(AI, null), O(jI, null));
42543
42543
  }
42544
- var Qo = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42544
+ var Qo = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42545
42545
  overlay: {
42546
42546
  padding: "var(--epr-header-padding)",
42547
42547
  zIndex: "var(--epr-header-overlay-z-index)"
@@ -42631,7 +42631,7 @@ function BI(t) {
42631
42631
  }
42632
42632
  function HI() {
42633
42633
  var t = Ar(), e = t[0], n = Y2(), r = ee(!e), i = r[0], a = r[1], o = jS();
42634
- return pe(function() {
42634
+ return de(function() {
42635
42635
  e && !n || i || a(!0);
42636
42636
  }, [i, n, e]), o ? O(NT, null, O(GT, null), O(UI, {
42637
42637
  renderAll: i
@@ -46330,7 +46330,7 @@ var Hb = /* @__PURE__ */ Jc(function(e) {
46330
46330
  "children"
46331
46331
  ]);
46332
46332
  const [i, a] = JD(r);
46333
- return pe(() => {
46333
+ return de(() => {
46334
46334
  if (a) {
46335
46335
  const o = Ub();
46336
46336
  return ++l1, () => {
@@ -46397,7 +46397,7 @@ function VD() {
46397
46397
  }), Dl;
46398
46398
  }
46399
46399
  var GD = VD();
46400
- const _D = /* @__PURE__ */ QD(GD), Nr = typeof window < "u" ? Fc : pe;
46400
+ const _D = /* @__PURE__ */ QD(GD), Nr = typeof window < "u" ? Fc : de;
46401
46401
  function WD(t, e, n) {
46402
46402
  const [r, i] = ee(
46403
46403
  () => e(t)
@@ -46870,7 +46870,7 @@ function cE(t, e, n) {
46870
46870
  n
46871
46871
  ]
46872
46872
  );
46873
- return pe(() => {
46873
+ return de(() => {
46874
46874
  r.spec = t;
46875
46875
  }, [
46876
46876
  t
@@ -46970,7 +46970,7 @@ function wE(t, e) {
46970
46970
  e
46971
46971
  ]
46972
46972
  );
46973
- return pe(() => {
46973
+ return de(() => {
46974
46974
  n.spec = t;
46975
46975
  }, [
46976
46976
  t
@@ -50653,7 +50653,11 @@ function m5({
50653
50653
  initialPageSize: n,
50654
50654
  resetOnDataChange: !0,
50655
50655
  serverSideTotalItems: i ? m : void 0
50656
- }), b = (x) => {
50656
+ });
50657
+ de(() => {
50658
+ i && (o !== void 0 && o !== g.currentPage && g.goToPage(o), s !== void 0 && s !== g.pageSize && g.setPageSize(s));
50659
+ }, [i, o, s, g]);
50660
+ const b = (x) => {
50657
50661
  l((k) => {
50658
50662
  if (k.column === x) {
50659
50663
  if (k.direction === "asc") return { column: x, direction: "desc" };