@iclips/ui 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/auth-layout.d.ts +28 -0
- package/dist/components/ui/auth-layout.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/password-input.d.ts +7 -0
- package/dist/components/ui/password-input.d.ts.map +1 -0
- package/dist/components/ui/social-button.d.ts +13 -0
- package/dist/components/ui/social-button.d.ts.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +100 -93
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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";
|
|
@@ -270,7 +270,10 @@ const nw = Ni(
|
|
|
270
270
|
variants: {
|
|
271
271
|
variant: {
|
|
272
272
|
default: "bg-card text-card-foreground",
|
|
273
|
-
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
273
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
|
|
274
|
+
info: "text-blue-700 dark:text-blue-400 bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800 [&>svg]:text-current *:data-[slot=alert-description]:text-blue-700/90 dark:*:data-[slot=alert-description]:text-blue-400/90",
|
|
275
|
+
success: "text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 border-green-200 dark:border-green-800 [&>svg]:text-current *:data-[slot=alert-description]:text-green-700/90 dark:*:data-[slot=alert-description]:text-green-400/90",
|
|
276
|
+
warning: "text-yellow-700 dark:text-yellow-400 bg-yellow-50 dark:bg-yellow-950/30 border-yellow-200 dark:border-yellow-800 [&>svg]:text-current *:data-[slot=alert-description]:text-yellow-700/90 dark:*:data-[slot=alert-description]:text-yellow-400/90"
|
|
274
277
|
}
|
|
275
278
|
},
|
|
276
279
|
defaultVariants: {
|
|
@@ -13008,7 +13011,7 @@ function Um(t) {
|
|
|
13008
13011
|
});
|
|
13009
13012
|
}), e;
|
|
13010
13013
|
}
|
|
13011
|
-
function
|
|
13014
|
+
function he(...t) {
|
|
13012
13015
|
return t.filter((e) => !!e).reduce((e, n) => {
|
|
13013
13016
|
const r = { ...e };
|
|
13014
13017
|
return Object.entries(n).forEach(([i, a]) => {
|
|
@@ -13036,7 +13039,7 @@ function ue(...t) {
|
|
|
13036
13039
|
function ds(t, e) {
|
|
13037
13040
|
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
13041
|
[n.name]: t.attrs[n.name]
|
|
13039
|
-
}).reduce((n, r) =>
|
|
13042
|
+
}).reduce((n, r) => he(n, r), {});
|
|
13040
13043
|
}
|
|
13041
13044
|
function qC(t) {
|
|
13042
13045
|
return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t;
|
|
@@ -16441,7 +16444,7 @@ var Jx = class extends gt.Component {
|
|
|
16441
16444
|
...t
|
|
16442
16445
|
});
|
|
16443
16446
|
}
|
|
16444
|
-
), hg = gt.memo(Yx), Qx = typeof window < "u" ? Fc :
|
|
16447
|
+
), hg = gt.memo(Yx), Qx = typeof window < "u" ? Fc : de, Vx = class {
|
|
16445
16448
|
constructor(t) {
|
|
16446
16449
|
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
16450
|
}
|
|
@@ -16661,7 +16664,7 @@ function mg(t = {}, e = []) {
|
|
|
16661
16664
|
r.getEditor,
|
|
16662
16665
|
r.getServerSnapshot
|
|
16663
16666
|
);
|
|
16664
|
-
return B1(i),
|
|
16667
|
+
return B1(i), de(r.onRender(e)), Gx({
|
|
16665
16668
|
editor: i,
|
|
16666
16669
|
selector: ({ transactionNumber: a }) => t.shouldRerenderOnTransaction === !1 || t.shouldRerenderOnTransaction === void 0 ? null : t.immediatelyRender && a === 0 ? 0 : a + 1
|
|
16667
16670
|
}), i;
|
|
@@ -16801,7 +16804,7 @@ var us = (t, e) => {
|
|
|
16801
16804
|
return [{ tag: "blockquote" }];
|
|
16802
16805
|
},
|
|
16803
16806
|
renderHTML({ HTMLAttributes: t }) {
|
|
16804
|
-
return /* @__PURE__ */ us("blockquote", { ...
|
|
16807
|
+
return /* @__PURE__ */ us("blockquote", { ...he(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
|
|
16805
16808
|
},
|
|
16806
16809
|
parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
|
|
16807
16810
|
renderMarkdown: (t, e) => {
|
|
@@ -16864,7 +16867,7 @@ ${n}
|
|
|
16864
16867
|
];
|
|
16865
16868
|
},
|
|
16866
16869
|
renderHTML({ HTMLAttributes: t }) {
|
|
16867
|
-
return /* @__PURE__ */ us("strong", { ...
|
|
16870
|
+
return /* @__PURE__ */ us("strong", { ...he(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
|
|
16868
16871
|
},
|
|
16869
16872
|
markdownTokenName: "strong",
|
|
16870
16873
|
parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
|
|
@@ -16920,7 +16923,7 @@ ${n}
|
|
|
16920
16923
|
return [{ tag: "code" }];
|
|
16921
16924
|
},
|
|
16922
16925
|
renderHTML({ HTMLAttributes: t }) {
|
|
16923
|
-
return ["code",
|
|
16926
|
+
return ["code", he(this.options.HTMLAttributes, t), 0];
|
|
16924
16927
|
},
|
|
16925
16928
|
markdownTokenName: "codespan",
|
|
16926
16929
|
parseMarkdown: (t, e) => e.applyMark("code", [{ type: "text", text: t.text || "" }]),
|
|
@@ -16998,7 +17001,7 @@ ${n}
|
|
|
16998
17001
|
renderHTML({ node: t, HTMLAttributes: e }) {
|
|
16999
17002
|
return [
|
|
17000
17003
|
"pre",
|
|
17001
|
-
|
|
17004
|
+
he(this.options.HTMLAttributes, e),
|
|
17002
17005
|
[
|
|
17003
17006
|
"code",
|
|
17004
17007
|
{
|
|
@@ -17186,7 +17189,7 @@ ${n}
|
|
|
17186
17189
|
return [{ tag: "br" }];
|
|
17187
17190
|
},
|
|
17188
17191
|
renderHTML({ HTMLAttributes: t }) {
|
|
17189
|
-
return ["br",
|
|
17192
|
+
return ["br", he(this.options.HTMLAttributes, t)];
|
|
17190
17193
|
},
|
|
17191
17194
|
renderText() {
|
|
17192
17195
|
return `
|
|
@@ -17249,7 +17252,7 @@ ${n}
|
|
|
17249
17252
|
}));
|
|
17250
17253
|
},
|
|
17251
17254
|
renderHTML({ node: t, HTMLAttributes: e }) {
|
|
17252
|
-
return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`,
|
|
17255
|
+
return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, he(this.options.HTMLAttributes, e), 0];
|
|
17253
17256
|
},
|
|
17254
17257
|
parseMarkdown: (t, e) => e.createNode("heading", { level: t.depth || 1 }, e.parseInline(t.tokens || [])),
|
|
17255
17258
|
renderMarkdown: (t, e) => {
|
|
@@ -17294,7 +17297,7 @@ ${n}
|
|
|
17294
17297
|
return [{ tag: "hr" }];
|
|
17295
17298
|
},
|
|
17296
17299
|
renderHTML({ HTMLAttributes: t }) {
|
|
17297
|
-
return ["hr",
|
|
17300
|
+
return ["hr", he(this.options.HTMLAttributes, t)];
|
|
17298
17301
|
},
|
|
17299
17302
|
markdownTokenName: "hr",
|
|
17300
17303
|
parseMarkdown: (t, e) => e.createNode("horizontalRule"),
|
|
@@ -17357,7 +17360,7 @@ ${n}
|
|
|
17357
17360
|
];
|
|
17358
17361
|
},
|
|
17359
17362
|
renderHTML({ HTMLAttributes: t }) {
|
|
17360
|
-
return ["em",
|
|
17363
|
+
return ["em", he(this.options.HTMLAttributes, t), 0];
|
|
17361
17364
|
},
|
|
17362
17365
|
addCommands() {
|
|
17363
17366
|
return {
|
|
@@ -18045,7 +18048,7 @@ function yl(t, e, n) {
|
|
|
18045
18048
|
return new t(a, n);
|
|
18046
18049
|
}
|
|
18047
18050
|
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.",
|
|
18051
|
+
}), BL = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", ue = {
|
|
18049
18052
|
scanner: null,
|
|
18050
18053
|
parser: null,
|
|
18051
18054
|
tokenQueue: [],
|
|
@@ -18054,32 +18057,32 @@ const RL = typeof console < "u" && console && console.warn || (() => {
|
|
|
18054
18057
|
initialized: !1
|
|
18055
18058
|
};
|
|
18056
18059
|
function HL() {
|
|
18057
|
-
return st.groups = {},
|
|
18060
|
+
return st.groups = {}, ue.scanner = null, ue.parser = null, ue.tokenQueue = [], ue.pluginQueue = [], ue.customSchemes = [], ue.initialized = !1, ue;
|
|
18058
18061
|
}
|
|
18059
18062
|
function rh(t, e = !1) {
|
|
18060
|
-
if (
|
|
18063
|
+
if (ue.initialized && RL(`linkifyjs: already initialized - will not register custom scheme "${t}" ${BL}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
|
|
18061
18064
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
18062
18065
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
18063
18066
|
2. Cannot start or end with "-"
|
|
18064
18067
|
3. "-" cannot repeat`);
|
|
18065
|
-
|
|
18068
|
+
ue.customSchemes.push([t, e]);
|
|
18066
18069
|
}
|
|
18067
18070
|
function UL() {
|
|
18068
|
-
|
|
18069
|
-
for (let t = 0; t <
|
|
18070
|
-
|
|
18071
|
-
scanner:
|
|
18071
|
+
ue.scanner = EL(ue.customSchemes);
|
|
18072
|
+
for (let t = 0; t < ue.tokenQueue.length; t++)
|
|
18073
|
+
ue.tokenQueue[t][1]({
|
|
18074
|
+
scanner: ue.scanner
|
|
18072
18075
|
});
|
|
18073
|
-
|
|
18074
|
-
for (let t = 0; t <
|
|
18075
|
-
|
|
18076
|
-
scanner:
|
|
18077
|
-
parser:
|
|
18076
|
+
ue.parser = OL(ue.scanner.tokens);
|
|
18077
|
+
for (let t = 0; t < ue.pluginQueue.length; t++)
|
|
18078
|
+
ue.pluginQueue[t][1]({
|
|
18079
|
+
scanner: ue.scanner,
|
|
18080
|
+
parser: ue.parser
|
|
18078
18081
|
});
|
|
18079
|
-
return
|
|
18082
|
+
return ue.initialized = !0, ue;
|
|
18080
18083
|
}
|
|
18081
18084
|
function Ad(t) {
|
|
18082
|
-
return
|
|
18085
|
+
return ue.initialized || UL(), PL(ue.parser.start, t, Cg(ue.scanner.start, t));
|
|
18083
18086
|
}
|
|
18084
18087
|
Ad.scan = Cg;
|
|
18085
18088
|
function Lg(t, e = null, n = null) {
|
|
@@ -18294,7 +18297,7 @@ var Ng = jr.create({
|
|
|
18294
18297
|
defaultValidate: (e) => !!nr(e, this.options.protocols),
|
|
18295
18298
|
protocols: this.options.protocols,
|
|
18296
18299
|
defaultProtocol: this.options.defaultProtocol
|
|
18297
|
-
}) ? ["a",
|
|
18300
|
+
}) ? ["a", he(this.options.HTMLAttributes, t), 0] : ["a", he(this.options.HTMLAttributes, { ...t, href: "" }), 0];
|
|
18298
18301
|
},
|
|
18299
18302
|
markdownTokenName: "link",
|
|
18300
18303
|
parseMarkdown: (t, e) => e.applyMark("link", e.parseInline(t.tokens || []), {
|
|
@@ -18412,7 +18415,7 @@ var Ng = jr.create({
|
|
|
18412
18415
|
return [{ tag: "ul" }];
|
|
18413
18416
|
},
|
|
18414
18417
|
renderHTML({ HTMLAttributes: t }) {
|
|
18415
|
-
return ["ul",
|
|
18418
|
+
return ["ul", he(this.options.HTMLAttributes, t), 0];
|
|
18416
18419
|
},
|
|
18417
18420
|
markdownTokenName: "list",
|
|
18418
18421
|
parseMarkdown: (t, e) => t.type !== "list" || t.ordered ? [] : {
|
|
@@ -18467,7 +18470,7 @@ var Ng = jr.create({
|
|
|
18467
18470
|
];
|
|
18468
18471
|
},
|
|
18469
18472
|
renderHTML({ HTMLAttributes: t }) {
|
|
18470
|
-
return ["li",
|
|
18473
|
+
return ["li", he(this.options.HTMLAttributes, t), 0];
|
|
18471
18474
|
},
|
|
18472
18475
|
markdownTokenName: "list_item",
|
|
18473
18476
|
parseMarkdown: (t, e) => {
|
|
@@ -18775,7 +18778,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
|
|
|
18775
18778
|
},
|
|
18776
18779
|
renderHTML({ HTMLAttributes: t }) {
|
|
18777
18780
|
const { start: e, ...n } = t;
|
|
18778
|
-
return e === 1 ? ["ol",
|
|
18781
|
+
return e === 1 ? ["ol", he(this.options.HTMLAttributes, n), 0] : ["ol", he(this.options.HTMLAttributes, t), 0];
|
|
18779
18782
|
},
|
|
18780
18783
|
markdownTokenName: "list",
|
|
18781
18784
|
parseMarkdown: (t, e) => {
|
|
@@ -18887,7 +18890,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
|
|
|
18887
18890
|
renderHTML({ node: t, HTMLAttributes: e }) {
|
|
18888
18891
|
return [
|
|
18889
18892
|
"li",
|
|
18890
|
-
|
|
18893
|
+
he(this.options.HTMLAttributes, e, {
|
|
18891
18894
|
"data-type": this.name
|
|
18892
18895
|
}),
|
|
18893
18896
|
[
|
|
@@ -18992,7 +18995,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
|
|
|
18992
18995
|
];
|
|
18993
18996
|
},
|
|
18994
18997
|
renderHTML({ HTMLAttributes: t }) {
|
|
18995
|
-
return ["ul",
|
|
18998
|
+
return ["ul", he(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
|
|
18996
18999
|
},
|
|
18997
19000
|
parseMarkdown: (t, e) => e.createNode("taskList", {}, e.parseChildren(t.items || [])),
|
|
18998
19001
|
renderMarkdown: (t, e) => t.content ? e.renderChildren(t.content, `
|
|
@@ -19105,7 +19108,7 @@ var sN = ot.create({
|
|
|
19105
19108
|
return [{ tag: "p" }];
|
|
19106
19109
|
},
|
|
19107
19110
|
renderHTML({ HTMLAttributes: t }) {
|
|
19108
|
-
return ["p",
|
|
19111
|
+
return ["p", he(this.options.HTMLAttributes, t), 0];
|
|
19109
19112
|
},
|
|
19110
19113
|
parseMarkdown: (t, e) => {
|
|
19111
19114
|
const n = t.tokens || [];
|
|
@@ -19153,7 +19156,7 @@ var sN = ot.create({
|
|
|
19153
19156
|
];
|
|
19154
19157
|
},
|
|
19155
19158
|
renderHTML({ HTMLAttributes: t }) {
|
|
19156
|
-
return ["s",
|
|
19159
|
+
return ["s", he(this.options.HTMLAttributes, t), 0];
|
|
19157
19160
|
},
|
|
19158
19161
|
markdownTokenName: "del",
|
|
19159
19162
|
parseMarkdown: (t, e) => e.applyMark("strike", e.parseInline(t.tokens || [])),
|
|
@@ -19214,7 +19217,7 @@ var sN = ot.create({
|
|
|
19214
19217
|
];
|
|
19215
19218
|
},
|
|
19216
19219
|
renderHTML({ HTMLAttributes: t }) {
|
|
19217
|
-
return ["u",
|
|
19220
|
+
return ["u", he(this.options.HTMLAttributes, t), 0];
|
|
19218
19221
|
},
|
|
19219
19222
|
parseMarkdown(t, e) {
|
|
19220
19223
|
return e.applyMark(this.name || "underline", e.parseInline(t.tokens || []));
|
|
@@ -20196,7 +20199,7 @@ var zN = xe.create({
|
|
|
20196
20199
|
];
|
|
20197
20200
|
},
|
|
20198
20201
|
renderHTML({ HTMLAttributes: t }) {
|
|
20199
|
-
return ["img",
|
|
20202
|
+
return ["img", he(this.options.HTMLAttributes, t)];
|
|
20200
20203
|
},
|
|
20201
20204
|
parseMarkdown: (t, e) => e.createNode("image", {
|
|
20202
20205
|
src: t.href,
|
|
@@ -20532,7 +20535,7 @@ var YN = ot.create({
|
|
|
20532
20535
|
var r, i;
|
|
20533
20536
|
return [
|
|
20534
20537
|
"span",
|
|
20535
|
-
|
|
20538
|
+
he(this.HTMLAttributes, t.HTMLAttributes),
|
|
20536
20539
|
`${(r = n == null ? void 0 : n.char) != null ? r : "@"}${(i = e.attrs.label) != null ? i : e.attrs.id}`
|
|
20537
20540
|
];
|
|
20538
20541
|
},
|
|
@@ -20582,7 +20585,7 @@ var YN = ot.create({
|
|
|
20582
20585
|
if (this.options.renderLabel !== void 0)
|
|
20583
20586
|
return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
|
|
20584
20587
|
"span",
|
|
20585
|
-
|
|
20588
|
+
he({ "data-type": this.name }, this.options.HTMLAttributes, e),
|
|
20586
20589
|
this.options.renderLabel({
|
|
20587
20590
|
options: this.options,
|
|
20588
20591
|
node: t,
|
|
@@ -20590,7 +20593,7 @@ var YN = ot.create({
|
|
|
20590
20593
|
})
|
|
20591
20594
|
];
|
|
20592
20595
|
const r = { ...this.options };
|
|
20593
|
-
r.HTMLAttributes =
|
|
20596
|
+
r.HTMLAttributes = he(
|
|
20594
20597
|
{ "data-type": this.name },
|
|
20595
20598
|
this.options.HTMLAttributes,
|
|
20596
20599
|
e
|
|
@@ -20600,7 +20603,7 @@ var YN = ot.create({
|
|
|
20600
20603
|
node: t,
|
|
20601
20604
|
suggestion: n
|
|
20602
20605
|
});
|
|
20603
|
-
return typeof i == "string" ? ["span",
|
|
20606
|
+
return typeof i == "string" ? ["span", he({ "data-type": this.name }, this.options.HTMLAttributes, e), i] : i;
|
|
20604
20607
|
},
|
|
20605
20608
|
...cg({
|
|
20606
20609
|
nodeName: "mention",
|
|
@@ -22367,7 +22370,7 @@ const u2 = H1((t, e) => {
|
|
|
22367
22370
|
}, s = () => {
|
|
22368
22371
|
i(n);
|
|
22369
22372
|
};
|
|
22370
|
-
return
|
|
22373
|
+
return de(() => {
|
|
22371
22374
|
r(0);
|
|
22372
22375
|
}, [t.items]), Iv(e, () => ({
|
|
22373
22376
|
onKeyDown: ({ event: f }) => f.key === "ArrowUp" ? (a(), !0) : f.key === "ArrowDown" ? (o(), !0) : f.key === "Enter" ? (s(), !0) : !1
|
|
@@ -22641,15 +22644,15 @@ function A9(t, e, n, r) {
|
|
|
22641
22644
|
const i = Mf(t, e, r);
|
|
22642
22645
|
return t.append("}"), i;
|
|
22643
22646
|
}
|
|
22644
|
-
function
|
|
22645
|
-
return
|
|
22647
|
+
function pe() {
|
|
22648
|
+
return pe = Object.assign ? Object.assign.bind() : function(t) {
|
|
22646
22649
|
for (var e = 1; e < arguments.length; e++) {
|
|
22647
22650
|
var n = arguments[e];
|
|
22648
22651
|
for (var r in n)
|
|
22649
22652
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
22650
22653
|
}
|
|
22651
22654
|
return t;
|
|
22652
|
-
},
|
|
22655
|
+
}, pe.apply(this, arguments);
|
|
22653
22656
|
}
|
|
22654
22657
|
function z9(t, e) {
|
|
22655
22658
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Nc(t, e);
|
|
@@ -22715,7 +22718,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
|
|
|
22715
22718
|
visibility: "hidden",
|
|
22716
22719
|
overflow: "hidden"
|
|
22717
22720
|
}, _d = /* @__PURE__ */ ve.create({
|
|
22718
|
-
hidden: /* @__PURE__ */
|
|
22721
|
+
hidden: /* @__PURE__ */ pe({
|
|
22719
22722
|
".": re.hidden
|
|
22720
22723
|
}, Yo)
|
|
22721
22724
|
}), R9 = /* @__PURE__ */ Jc(function() {
|
|
@@ -22734,7 +22737,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
|
|
|
22734
22737
|
backgroundPositionY: "var(--epr-category-navigation-button-size)"
|
|
22735
22738
|
}
|
|
22736
22739
|
},
|
|
22737
|
-
hiddenOnSearch: /* @__PURE__ */
|
|
22740
|
+
hiddenOnSearch: /* @__PURE__ */ pe({
|
|
22738
22741
|
".": re.hiddenOnSearch
|
|
22739
22742
|
}, Yo)
|
|
22740
22743
|
},
|
|
@@ -22765,7 +22768,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
|
|
|
22765
22768
|
backgroundPositionY: "var(--epr-category-navigation-button-size)"
|
|
22766
22769
|
}
|
|
22767
22770
|
},
|
|
22768
|
-
visibleOnSearchOnly: /* @__PURE__ */
|
|
22771
|
+
visibleOnSearchOnly: /* @__PURE__ */ pe({
|
|
22769
22772
|
".": "epr-visible-on-search-only"
|
|
22770
22773
|
}, Yo)
|
|
22771
22774
|
}
|
|
@@ -22844,7 +22847,7 @@ function F9(t, e) {
|
|
|
22844
22847
|
return dS(t) > e;
|
|
22845
22848
|
}
|
|
22846
22849
|
function J9(t) {
|
|
22847
|
-
|
|
22850
|
+
de(function() {
|
|
22848
22851
|
t(!0);
|
|
22849
22852
|
}, [t]);
|
|
22850
22853
|
}
|
|
@@ -23018,7 +23021,7 @@ var Nt, V9 = [X.SUGGESTED, X.CUSTOM, X.SMILEYS_PEOPLE, X.ANIMALS_NATURE, X.FOOD_
|
|
|
23018
23021
|
}, Nt);
|
|
23019
23022
|
function D2(t) {
|
|
23020
23023
|
return V9.map(function(e) {
|
|
23021
|
-
return
|
|
23024
|
+
return pe({}, j2[e], t && t[e] && t[e]);
|
|
23022
23025
|
});
|
|
23023
23026
|
}
|
|
23024
23027
|
function Lf(t) {
|
|
@@ -23034,7 +23037,7 @@ function _9(t, e) {
|
|
|
23034
23037
|
e.suggestionMode === Ba.RECENT && (r[X.SUGGESTED] = G9);
|
|
23035
23038
|
var i = D2(r);
|
|
23036
23039
|
return (n = t) != null && n.length ? t.map(function(a) {
|
|
23037
|
-
return typeof a == "string" ? Oh(a, r[a]) :
|
|
23040
|
+
return typeof a == "string" ? Oh(a, r[a]) : pe({}, Oh(a.category, r[a.category]), a);
|
|
23038
23041
|
}) : i;
|
|
23039
23042
|
}
|
|
23040
23043
|
function Oh(t, e) {
|
|
@@ -39987,7 +39990,7 @@ function Ph(t) {
|
|
|
39987
39990
|
a.unicodeToHide.add(f);
|
|
39988
39991
|
}), hS((n = a.customEmojis) != null ? n : []);
|
|
39989
39992
|
var s = a.searchDisabled ? Mi.PREVIEW : a.skinTonePickerLocation;
|
|
39990
|
-
return
|
|
39993
|
+
return pe({}, a, {
|
|
39991
39994
|
categories: o,
|
|
39992
39995
|
previewConfig: i,
|
|
39993
39996
|
skinTonePickerLocation: s
|
|
@@ -40005,7 +40008,7 @@ function H2() {
|
|
|
40005
40008
|
getEmojiUrl: P2,
|
|
40006
40009
|
height: 450,
|
|
40007
40010
|
lazyLoadEmojis: !1,
|
|
40008
|
-
previewConfig:
|
|
40011
|
+
previewConfig: pe({}, yS),
|
|
40009
40012
|
searchDisabled: !1,
|
|
40010
40013
|
searchPlaceHolder: Gs,
|
|
40011
40014
|
searchPlaceholder: Gs,
|
|
@@ -40039,7 +40042,7 @@ function xS(t) {
|
|
|
40039
40042
|
var e, n = ee(function() {
|
|
40040
40043
|
return Ph(t);
|
|
40041
40044
|
}), r = n[0], i = n[1];
|
|
40042
|
-
return
|
|
40045
|
+
return de(function() {
|
|
40043
40046
|
L2(r, t) || i(Ph(t));
|
|
40044
40047
|
}, [(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
40048
|
}
|
|
@@ -40161,7 +40164,7 @@ function OS() {
|
|
|
40161
40164
|
}
|
|
40162
40165
|
function PS() {
|
|
40163
40166
|
var t = ye(), e = t.height, n = t.width, r = t.style;
|
|
40164
|
-
return
|
|
40167
|
+
return pe({
|
|
40165
40168
|
height: Rh(e),
|
|
40166
40169
|
width: Rh(n)
|
|
40167
40170
|
}, r);
|
|
@@ -40429,7 +40432,7 @@ function ib() {
|
|
|
40429
40432
|
}
|
|
40430
40433
|
function nT() {
|
|
40431
40434
|
var t = Ct(), e = rb(), n = ib();
|
|
40432
|
-
|
|
40435
|
+
de(function() {
|
|
40433
40436
|
var r = t.current;
|
|
40434
40437
|
r == null || r.addEventListener("mousemove", i, {
|
|
40435
40438
|
passive: !0
|
|
@@ -40593,7 +40596,7 @@ function pT() {
|
|
|
40593
40596
|
}
|
|
40594
40597
|
};
|
|
40595
40598
|
}, [n, e, s, i, a, o]);
|
|
40596
|
-
|
|
40599
|
+
de(function() {
|
|
40597
40600
|
var l = t.current;
|
|
40598
40601
|
if (l)
|
|
40599
40602
|
return l.addEventListener("keydown", f), function() {
|
|
@@ -40620,7 +40623,7 @@ function mT() {
|
|
|
40620
40623
|
}
|
|
40621
40624
|
};
|
|
40622
40625
|
}, [t, o, a, n, s]);
|
|
40623
|
-
|
|
40626
|
+
de(function() {
|
|
40624
40627
|
var l = r.current;
|
|
40625
40628
|
if (l)
|
|
40626
40629
|
return l.addEventListener("keydown", f), function() {
|
|
@@ -40672,7 +40675,7 @@ function gT() {
|
|
|
40672
40675
|
})
|
|
40673
40676
|
);
|
|
40674
40677
|
}, [a, e, o, r, l, s, f]);
|
|
40675
|
-
|
|
40678
|
+
de(function() {
|
|
40676
40679
|
var u = t.current;
|
|
40677
40680
|
if (u)
|
|
40678
40681
|
return u.addEventListener("keydown", d), function() {
|
|
@@ -40703,7 +40706,7 @@ function bT() {
|
|
|
40703
40706
|
}
|
|
40704
40707
|
};
|
|
40705
40708
|
}, [n, t, r]);
|
|
40706
|
-
|
|
40709
|
+
de(function() {
|
|
40707
40710
|
var a = e.current;
|
|
40708
40711
|
if (a)
|
|
40709
40712
|
return a.addEventListener("keydown", i), function() {
|
|
@@ -40748,7 +40751,7 @@ function vT() {
|
|
|
40748
40751
|
})
|
|
40749
40752
|
);
|
|
40750
40753
|
}, [e, a, n, r, i]);
|
|
40751
|
-
|
|
40754
|
+
de(function() {
|
|
40752
40755
|
var s = t.current;
|
|
40753
40756
|
if (s)
|
|
40754
40757
|
return s.addEventListener("keydown", o), function() {
|
|
@@ -40812,7 +40815,7 @@ function CT(t) {
|
|
|
40812
40815
|
}
|
|
40813
40816
|
function xT() {
|
|
40814
40817
|
var t = Ct(), e = zr(), n = Or();
|
|
40815
|
-
|
|
40818
|
+
de(function() {
|
|
40816
40819
|
if (e === mt.NATIVE)
|
|
40817
40820
|
return;
|
|
40818
40821
|
var r = t.current;
|
|
@@ -40840,7 +40843,7 @@ function kT(t) {
|
|
|
40840
40843
|
return O("aside", {
|
|
40841
40844
|
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
40845
|
ref: s,
|
|
40843
|
-
style:
|
|
40846
|
+
style: pe({}, h, !i && {
|
|
40844
40847
|
height: p,
|
|
40845
40848
|
width: u
|
|
40846
40849
|
})
|
|
@@ -41182,7 +41185,7 @@ function Nb(t, e) {
|
|
|
41182
41185
|
i.current = !1;
|
|
41183
41186
|
});
|
|
41184
41187
|
}, [i]);
|
|
41185
|
-
|
|
41188
|
+
de(function() {
|
|
41186
41189
|
if (t.current) {
|
|
41187
41190
|
var C = t.current;
|
|
41188
41191
|
return C.addEventListener("click", g, {
|
|
@@ -41438,7 +41441,7 @@ function QT() {
|
|
|
41438
41441
|
}
|
|
41439
41442
|
});
|
|
41440
41443
|
}
|
|
41441
|
-
var VT = /* @__PURE__ */ ve.create(/* @__PURE__ */
|
|
41444
|
+
var VT = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
|
|
41442
41445
|
plusSign: {
|
|
41443
41446
|
fontSize: "20px",
|
|
41444
41447
|
padding: "17px",
|
|
@@ -41531,7 +41534,7 @@ var _h = /* @__PURE__ */ ve.create({
|
|
|
41531
41534
|
});
|
|
41532
41535
|
function _T(t) {
|
|
41533
41536
|
var e = Pr(), n = ee(0), r = n[0], i = n[1];
|
|
41534
|
-
return
|
|
41537
|
+
return de(function() {
|
|
41535
41538
|
var a = t.current;
|
|
41536
41539
|
if (!a)
|
|
41537
41540
|
return;
|
|
@@ -41578,9 +41581,9 @@ function qT(t) {
|
|
|
41578
41581
|
}
|
|
41579
41582
|
}
|
|
41580
41583
|
}, [e, t, l]);
|
|
41581
|
-
return
|
|
41584
|
+
return de(function() {
|
|
41582
41585
|
h();
|
|
41583
|
-
}, [t, r, h, s.length]),
|
|
41586
|
+
}, [t, r, h, s.length]), de(function() {
|
|
41584
41587
|
var m = i.current;
|
|
41585
41588
|
if (m) {
|
|
41586
41589
|
var g = function(w) {
|
|
@@ -41615,7 +41618,7 @@ function XT(t) {
|
|
|
41615
41618
|
var N = u(y), x = o(y), k = x.failedToLoad, S = x.filteredOut, T = x.hidden;
|
|
41616
41619
|
return !k && !S && !T && !N;
|
|
41617
41620
|
}), w = qT(b.length);
|
|
41618
|
-
|
|
41621
|
+
de(function() {
|
|
41619
41622
|
w && r(w.categoryHeight);
|
|
41620
41623
|
}, [w, r, b.length]);
|
|
41621
41624
|
var C = function(N) {
|
|
@@ -41641,7 +41644,7 @@ function XT(t) {
|
|
|
41641
41644
|
emojiStyle: f,
|
|
41642
41645
|
lazyLoad: s,
|
|
41643
41646
|
getEmojiUrl: p,
|
|
41644
|
-
style:
|
|
41647
|
+
style: pe({}, S, {
|
|
41645
41648
|
position: "absolute"
|
|
41646
41649
|
})
|
|
41647
41650
|
})), y) : (g++, y);
|
|
@@ -41747,7 +41750,7 @@ function nI(t) {
|
|
|
41747
41750
|
onHeightReady: function(g) {
|
|
41748
41751
|
i[u] !== g && a(function(b) {
|
|
41749
41752
|
var w;
|
|
41750
|
-
return
|
|
41753
|
+
return pe({}, b, (w = {}, w[u] = g, w));
|
|
41751
41754
|
});
|
|
41752
41755
|
},
|
|
41753
41756
|
scrollTop: e
|
|
@@ -41783,7 +41786,7 @@ var iI = /* @__PURE__ */ ve.create({
|
|
|
41783
41786
|
})(ai || (ai = {}));
|
|
41784
41787
|
function oI() {
|
|
41785
41788
|
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
|
-
|
|
41789
|
+
de(function() {
|
|
41787
41790
|
p && If(e.current);
|
|
41788
41791
|
}, [e, p, t]);
|
|
41789
41792
|
var h, m;
|
|
@@ -41846,7 +41849,7 @@ function fI(t) {
|
|
|
41846
41849
|
return o - s;
|
|
41847
41850
|
}
|
|
41848
41851
|
}
|
|
41849
|
-
var Eo = /* @__PURE__ */ ve.create(/* @__PURE__ */
|
|
41852
|
+
var Eo = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
|
|
41850
41853
|
variationPicker: {
|
|
41851
41854
|
".": re.variationPicker,
|
|
41852
41855
|
position: "absolute",
|
|
@@ -41928,7 +41931,7 @@ function dI(t, e) {
|
|
|
41928
41931
|
}
|
|
41929
41932
|
function uI(t, e) {
|
|
41930
41933
|
var n = Ct(), r = ib(), i = rb();
|
|
41931
|
-
|
|
41934
|
+
de(function() {
|
|
41932
41935
|
if (!t)
|
|
41933
41936
|
return;
|
|
41934
41937
|
var a = n.current;
|
|
@@ -41990,7 +41993,7 @@ var Ao, Ya;
|
|
|
41990
41993
|
function kb(t) {
|
|
41991
41994
|
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
41995
|
return O("div", {
|
|
41993
|
-
style:
|
|
41996
|
+
style: pe({}, i),
|
|
41994
41997
|
className: te(Wh.flex, n, Wh[o])
|
|
41995
41998
|
}, e);
|
|
41996
41999
|
}
|
|
@@ -42006,7 +42009,7 @@ var Wh = /* @__PURE__ */ ve.create((Ao = {
|
|
|
42006
42009
|
function pI(t) {
|
|
42007
42010
|
var e = t.className, n = t.style, r = n === void 0 ? {} : n;
|
|
42008
42011
|
return O("div", {
|
|
42009
|
-
style:
|
|
42012
|
+
style: pe({
|
|
42010
42013
|
flex: 1
|
|
42011
42014
|
}, r),
|
|
42012
42015
|
className: te(e)
|
|
@@ -42015,7 +42018,7 @@ function pI(t) {
|
|
|
42015
42018
|
function mI(t) {
|
|
42016
42019
|
var e = t.children, n = t.className, r = t.style;
|
|
42017
42020
|
return O("div", {
|
|
42018
|
-
style:
|
|
42021
|
+
style: pe({}, r, {
|
|
42019
42022
|
position: "absolute"
|
|
42020
42023
|
}),
|
|
42021
42024
|
className: n
|
|
@@ -42024,7 +42027,7 @@ function mI(t) {
|
|
|
42024
42027
|
function Af(t) {
|
|
42025
42028
|
var e = t.children, n = t.className, r = t.style;
|
|
42026
42029
|
return O("div", {
|
|
42027
|
-
style:
|
|
42030
|
+
style: pe({}, r, {
|
|
42028
42031
|
position: "relative"
|
|
42029
42032
|
}),
|
|
42030
42033
|
className: n
|
|
@@ -42240,7 +42243,7 @@ function yI(t) {
|
|
|
42240
42243
|
}
|
|
42241
42244
|
function MI(t) {
|
|
42242
42245
|
var e = t.setActiveCategory, n = t.setVisibleCategories, r = Ct();
|
|
42243
|
-
|
|
42246
|
+
de(function() {
|
|
42244
42247
|
var i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = r.current, s = new IntersectionObserver(function(f) {
|
|
42245
42248
|
if (o) {
|
|
42246
42249
|
for (var l = P9(f), d; !(d = l()).done; ) {
|
|
@@ -42318,7 +42321,7 @@ var $h = {
|
|
|
42318
42321
|
"&.epr-active": $h
|
|
42319
42322
|
}
|
|
42320
42323
|
}
|
|
42321
|
-
}, SI = /* @__PURE__ */ ve.create(/* @__PURE__ */
|
|
42324
|
+
}, SI = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
|
|
42322
42325
|
catBtn: {
|
|
42323
42326
|
".": "epr-cat-btn",
|
|
42324
42327
|
display: "inline-block",
|
|
@@ -42372,8 +42375,8 @@ var $h = {
|
|
|
42372
42375
|
}
|
|
42373
42376
|
}
|
|
42374
42377
|
}, /* @__PURE__ */ Gn("catBtn", kI), {
|
|
42375
|
-
".epr-dark-theme": /* @__PURE__ */
|
|
42376
|
-
".epr-auto-theme": /* @__PURE__ */
|
|
42378
|
+
".epr-dark-theme": /* @__PURE__ */ pe({}, Zh),
|
|
42379
|
+
".epr-auto-theme": /* @__PURE__ */ pe({}, Zh)
|
|
42377
42380
|
}));
|
|
42378
42381
|
function TI() {
|
|
42379
42382
|
var t = ee(null), e = t[0], n = t[1], r = Zd(), i = r[1], a = CI();
|
|
@@ -42447,7 +42450,7 @@ var DI = {
|
|
|
42447
42450
|
backgroundPositionY: "-60px"
|
|
42448
42451
|
}
|
|
42449
42452
|
}
|
|
42450
|
-
}, qh = /* @__PURE__ */ ve.create(/* @__PURE__ */
|
|
42453
|
+
}, qh = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
|
|
42451
42454
|
btnClearSearch: {
|
|
42452
42455
|
".": "epr-btn-clear-search",
|
|
42453
42456
|
position: "absolute",
|
|
@@ -42491,7 +42494,7 @@ function AI() {
|
|
|
42491
42494
|
className: te(zI.icnSearch)
|
|
42492
42495
|
});
|
|
42493
42496
|
}
|
|
42494
|
-
var zI = /* @__PURE__ */ ve.create(/* @__PURE__ */
|
|
42497
|
+
var zI = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
|
|
42495
42498
|
icnSearch: {
|
|
42496
42499
|
".": "epr-icn-search",
|
|
42497
42500
|
content: "",
|
|
@@ -42541,7 +42544,7 @@ function PI() {
|
|
|
42541
42544
|
"aria-atomic": "true"
|
|
42542
42545
|
}, a) : null, O(AI, null), O(jI, null));
|
|
42543
42546
|
}
|
|
42544
|
-
var Qo = /* @__PURE__ */ ve.create(/* @__PURE__ */
|
|
42547
|
+
var Qo = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
|
|
42545
42548
|
overlay: {
|
|
42546
42549
|
padding: "var(--epr-header-padding)",
|
|
42547
42550
|
zIndex: "var(--epr-header-overlay-z-index)"
|
|
@@ -42631,7 +42634,7 @@ function BI(t) {
|
|
|
42631
42634
|
}
|
|
42632
42635
|
function HI() {
|
|
42633
42636
|
var t = Ar(), e = t[0], n = Y2(), r = ee(!e), i = r[0], a = r[1], o = jS();
|
|
42634
|
-
return
|
|
42637
|
+
return de(function() {
|
|
42635
42638
|
e && !n || i || a(!0);
|
|
42636
42639
|
}, [i, n, e]), o ? O(NT, null, O(GT, null), O(UI, {
|
|
42637
42640
|
renderAll: i
|
|
@@ -46330,7 +46333,7 @@ var Hb = /* @__PURE__ */ Jc(function(e) {
|
|
|
46330
46333
|
"children"
|
|
46331
46334
|
]);
|
|
46332
46335
|
const [i, a] = JD(r);
|
|
46333
|
-
return
|
|
46336
|
+
return de(() => {
|
|
46334
46337
|
if (a) {
|
|
46335
46338
|
const o = Ub();
|
|
46336
46339
|
return ++l1, () => {
|
|
@@ -46397,7 +46400,7 @@ function VD() {
|
|
|
46397
46400
|
}), Dl;
|
|
46398
46401
|
}
|
|
46399
46402
|
var GD = VD();
|
|
46400
|
-
const _D = /* @__PURE__ */ QD(GD), Nr = typeof window < "u" ? Fc :
|
|
46403
|
+
const _D = /* @__PURE__ */ QD(GD), Nr = typeof window < "u" ? Fc : de;
|
|
46401
46404
|
function WD(t, e, n) {
|
|
46402
46405
|
const [r, i] = ee(
|
|
46403
46406
|
() => e(t)
|
|
@@ -46870,7 +46873,7 @@ function cE(t, e, n) {
|
|
|
46870
46873
|
n
|
|
46871
46874
|
]
|
|
46872
46875
|
);
|
|
46873
|
-
return
|
|
46876
|
+
return de(() => {
|
|
46874
46877
|
r.spec = t;
|
|
46875
46878
|
}, [
|
|
46876
46879
|
t
|
|
@@ -46970,7 +46973,7 @@ function wE(t, e) {
|
|
|
46970
46973
|
e
|
|
46971
46974
|
]
|
|
46972
46975
|
);
|
|
46973
|
-
return
|
|
46976
|
+
return de(() => {
|
|
46974
46977
|
n.spec = t;
|
|
46975
46978
|
}, [
|
|
46976
46979
|
t
|
|
@@ -50653,7 +50656,11 @@ function m5({
|
|
|
50653
50656
|
initialPageSize: n,
|
|
50654
50657
|
resetOnDataChange: !0,
|
|
50655
50658
|
serverSideTotalItems: i ? m : void 0
|
|
50656
|
-
})
|
|
50659
|
+
});
|
|
50660
|
+
de(() => {
|
|
50661
|
+
i && (o !== void 0 && o !== g.currentPage && g.goToPage(o), s !== void 0 && s !== g.pageSize && g.setPageSize(s));
|
|
50662
|
+
}, [i, o, s, g]);
|
|
50663
|
+
const b = (x) => {
|
|
50657
50664
|
l((k) => {
|
|
50658
50665
|
if (k.column === x) {
|
|
50659
50666
|
if (k.direction === "asc") return { column: x, direction: "desc" };
|