reactjs-tiptap-editor 1.0.4 → 1.0.6
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/lib/{ActionMenuButton-Bzr6ICxv.cjs → ActionMenuButton-DYT5chmX.cjs} +1 -1
- package/lib/{ActionMenuButton-71gCEVbv.js → ActionMenuButton-htJNI0Fa.js} +4 -4
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +4 -4
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +3 -3
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +3 -3
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +3 -3
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +3 -3
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +4 -4
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +3 -3
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +5 -5
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +3 -3
- package/lib/{Drawer-GRyIh2y1.js → Drawer-1211urKj.js} +6 -6
- package/lib/{Drawer-DlX87Cl4.cjs → Drawer-DUFUd5BW.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +5 -5
- package/lib/{Excalidraw-Bkq1fXLL.cjs → Excalidraw-CajgZDjU.cjs} +1 -1
- package/lib/{Excalidraw-BmyhdJCU.js → Excalidraw-Du3hBR8t.js} +5 -5
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +3 -3
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +3 -3
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +5 -5
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +5 -5
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +5 -5
- package/lib/History.cjs +1 -1
- package/lib/History.js +3 -3
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +3 -3
- package/lib/{Icon-ztD4g9N4.cjs → Icon-BjR_or8V.cjs} +1 -1
- package/lib/{Icon-1z7VnLgz.js → Icon-C-qYUAS1.js} +1 -1
- package/lib/{Iframe-DhUlC9-Y.cjs → Iframe-CM6mRQmv.cjs} +1 -1
- package/lib/{Iframe-AiP8qPGF.js → Iframe-DTYTLQE6.js} +5 -5
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +13 -13
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +6 -6
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +4 -4
- package/lib/{Indent-fphgO8Eo.cjs → Indent-BmhiEb0S.cjs} +1 -1
- package/lib/{Indent-CBoQDISv.js → Indent-jOPn3eUM.js} +3 -3
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +3 -3
- package/lib/{Katex-n2PVzaMd.js → Katex-CERSrcTP.js} +7 -7
- package/lib/{Katex-AfmTUUNS.cjs → Katex-CUd3LxLh.cjs} +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +1 -1
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +6 -6
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +1 -1
- package/lib/{LinkEditBlock-CoXwYHlj.js → LinkEditBlock-B5SdhOfa.js} +10 -10
- package/lib/{LinkEditBlock-sADc32hF.cjs → LinkEditBlock-DaxljgJC.cjs} +1 -1
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +6 -6
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +5 -5
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +3 -3
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +10 -10
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +40 -38
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +3 -3
- package/lib/{Table-BshvoFRh.js → Table-39OkCQbu.js} +5 -5
- package/lib/{Table-BLb5576a.cjs → Table-3VstSlg4.cjs} +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +3 -3
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +6 -6
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +6 -6
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +3 -3
- package/lib/{Twitter-CLVet4OM.js → Twitter-D7PhLycr.js} +9 -9
- package/lib/{Twitter-DEKTLWO5.cjs → Twitter-DuHPeVW1.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +9 -9
- package/lib/bubble.cjs +4 -4
- package/lib/bubble.js +276 -263
- package/lib/{button-BnN1L5_T.js → button-Crm67hfl.js} +1 -1
- package/lib/{button-CjAogRMZ.cjs → button-xNppt_aK.cjs} +1 -1
- package/lib/{checkbox-sSQSzjls.js → checkbox-DViVmgJ6.js} +1 -1
- package/lib/{checkbox-BFgaCetY.cjs → checkbox-NQC2MdGT.cjs} +1 -1
- package/lib/{dialog-CzZSyyxS.js → dialog-Ce9Cjfft.js} +1 -1
- package/lib/{dialog-CUP7QBaG.cjs → dialog-DaHBd2zw.cjs} +1 -1
- package/lib/{dropdown-menu-y1rPk4dr.js → dropdown-menu-CQykJhBs.js} +1 -1
- package/lib/{dropdown-menu-CwHOwzLr.cjs → dropdown-menu-CSCDQtq0.cjs} +1 -1
- package/lib/events.constant-DQYeJpu5.cjs +1 -0
- package/lib/{events.constant-CBPIqO_g.js → events.constant-wrlJ_7JZ.js} +5 -4
- package/lib/{index-DGihe-wH.js → index-0OnGZkVF.js} +19 -16
- package/lib/{index-CnbtiTqP.cjs → index-CNzHZDls.cjs} +3 -3
- package/lib/{index--XZPCi0O.js → index-DuZCJJSp.js} +203 -179
- package/lib/{index-D4d-0Hqh.cjs → index-FSRjMsxW.cjs} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.js +2 -2
- package/lib/{input-Byg4PPou.js → input-DfqFAyKo.js} +1 -1
- package/lib/{input-Dikmsjjj.cjs → input-tU3H__39.cjs} +1 -1
- package/lib/{label-BX7OqM6p.js → label-DC33TZy_.js} +1 -1
- package/lib/{label-ChxDmW-K.cjs → label-DkDE77kc.cjs} +1 -1
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/index.d.ts +2 -1
- package/lib/{popover-DVD1y8Z_.cjs → popover-CZWSQZ0q.cjs} +1 -1
- package/lib/{popover-CheVmqgb.js → popover-CoepUobG.js} +1 -1
- package/lib/{separator-Y_Pbpi-5.js → separator-6SnwzytZ.js} +5 -5
- package/lib/{separator-CSuS-D6T.cjs → separator-DCQD8P6s.cjs} +1 -1
- package/lib/store-726Zjszt.cjs +1 -0
- package/lib/store-ibARMQ3h.js +10 -0
- package/lib/style.css +1 -1
- package/lib/{tabs-B9ooipwg.cjs → tabs-B_ArrG09.cjs} +1 -1
- package/lib/{tabs-p4pJGb6o.js → tabs-DrkJL_C2.js} +1 -1
- package/lib/{textarea-Byts1Pn0.js → textarea-CIs52G8B.js} +1 -1
- package/lib/{textarea-L53EceuF.cjs → textarea-CmZVZKOo.cjs} +1 -1
- package/lib/theme.cjs +1 -1
- package/lib/theme.js +1 -1
- package/lib/{toggle-DUPu3nnZ.cjs → toggle-DVCNvcqp.cjs} +1 -1
- package/lib/{toggle-WBgzE8Jm.js → toggle-xchtz-Kf.js} +3 -3
- package/lib/{tooltip-BOMwAoO1.js → tooltip-BTFcHrd9.js} +1 -1
- package/lib/{tooltip-DD5Ii8qI.cjs → tooltip-DFjcKu9a.cjs} +1 -1
- package/lib/{useButtonProps-BIOoOg6h.js → useButtonProps-D0SrPzuG.js} +2 -2
- package/lib/{useButtonProps-C4SCmCVo.cjs → useButtonProps-bei1vI37.cjs} +1 -1
- package/lib/utils/customEvents/events.constant.d.ts +1 -0
- package/package.json +1 -1
- package/lib/events.constant-B-VGURJp.cjs +0 -1
- package/lib/store-BVm_SgvL.js +0 -10
- package/lib/store-DznMm4Ug.cjs +0 -1
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import { Slot as x } from "@radix-ui/react-slot";
|
|
4
4
|
import { c as s } from "./index-BQ17A_37.js";
|
|
5
|
-
import { c as a } from "./index
|
|
5
|
+
import { c as a } from "./index-DuZCJJSp.js";
|
|
6
6
|
const d = s(
|
|
7
7
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),h=require("react"),a=require("@radix-ui/react-slot"),u=require("./index-DmOTQudI.cjs"),d=require("./index-
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),h=require("react"),a=require("@radix-ui/react-slot"),u=require("./index-DmOTQudI.cjs"),d=require("./index-CNzHZDls.cjs");function f(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const l=f(h),g=u.cva("richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",{variants:{variant:{default:"!richtext-bg-primary !richtext-text-primary-foreground hover:!richtext-bg-primary/90",destructive:"richtext-bg-destructive richtext-text-destructive-foreground hover:richtext-bg-destructive/90",outline:"richtext-border richtext-border-input richtext-bg-background hover:richtext-bg-accent hover:richtext-text-accent-foreground",secondary:"richtext-bg-secondary richtext-text-secondary-foreground hover:richtext-bg-secondary/80",ghost:"hover:richtext-bg-accent hover:richtext-text-accent-foreground",link:"richtext-text-primary richtext-underline-offset-4 hover:richtext-underline"},size:{default:"richtext-h-10 richtext-px-4 richtext-py-2",sm:"richtext-h-9 richtext-rounded-md richtext-px-3",lg:"richtext-h-11 richtext-rounded-md richtext-px-8",icon:"richtext-size-10"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef(({className:t,variant:r,size:e,asChild:i=!1,...n},o)=>{const s=i?a.Slot:"button";return x.jsx(s,{className:d.cn(g({variant:r,size:e,className:t})),ref:o,...n})});c.displayName="Button";exports.Button=c;
|
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-checkbox";
|
|
4
4
|
import { Check as s } from "lucide-react";
|
|
5
|
-
import { c as r } from "./index
|
|
5
|
+
import { c as r } from "./index-DuZCJJSp.js";
|
|
6
6
|
const a = h.forwardRef(({ className: i, ...c }, o) => /* @__PURE__ */ t(
|
|
7
7
|
e.Root,
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),h=require("react"),x=require("@radix-ui/react-checkbox"),u=require("lucide-react"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),h=require("react"),x=require("@radix-ui/react-checkbox"),u=require("lucide-react"),s=require("./index-CNzHZDls.cjs");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const d=n(h),i=n(x),a=d.forwardRef(({className:e,...r},t)=>c.jsx(i.Root,{ref:t,className:s.cn("!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-p-0 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-1 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",e),...r,children:c.jsx(i.Indicator,{className:s.cn("!richtext-flex !richtext-p-0 !richtext-items-center !richtext-justify-center !richtext-text-current"),children:c.jsx(u.Check,{className:"!richtext-h-4 !richtext-w-4"})})}));a.displayName=i.Root.displayName;exports.Checkbox=a;
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-dialog";
|
|
4
4
|
import { X as l } from "lucide-react";
|
|
5
|
-
import { c } from "./index
|
|
5
|
+
import { c } from "./index-DuZCJJSp.js";
|
|
6
6
|
const D = t.Root, b = t.Trigger, d = t.Portal, x = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ i(
|
|
7
7
|
t.Overlay,
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),f=require("react"),u=require("@radix-ui/react-dialog"),m=require("lucide-react"),c=require("./index-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),f=require("react"),u=require("@radix-ui/react-dialog"),m=require("lucide-react"),c=require("./index-CNzHZDls.cjs");function n(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const s=n(f),r=n(u),p=r.Root,D=r.Trigger,y=r.Portal,x=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Overlay,{ref:i,className:c.cn("richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 richtext- data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0",t),...e}));x.displayName=r.Overlay.displayName;const l=s.forwardRef(({className:t,children:e,...i},o)=>a.jsxs(y,{"data-richtext-portal":!0,children:[a.jsx(x,{}),a.jsxs(r.Content,{"data-richtext-portal":!0,ref:o,className:c.cn("richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg !richtext-border-border",t),...i,children:[e,a.jsxs(r.Close,{className:"richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground",children:[a.jsx(m.X,{className:"richtext-size-4 richtext-text-accent-foreground"}),a.jsx("span",{className:"richtext-sr-only richtext-text-accent-foreground",children:"Close"})]})]})]}));l.displayName=r.Content.displayName;function d({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",t),...e})}d.displayName="DialogHeader";function h({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",t),...e})}h.displayName="DialogFooter";const g=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Title,{ref:i,className:c.cn("richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",t),...e}));g.displayName=r.Title.displayName;const N=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Description,{className:c.cn("richtext-text-sm richtext-text-muted-foreground",t),ref:i,...e}));N.displayName=r.Description.displayName;exports.Dialog=p;exports.DialogContent=l;exports.DialogFooter=h;exports.DialogHeader=d;exports.DialogTitle=g;exports.DialogTrigger=D;
|
|
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as x } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { ChevronRight as d, Check as h, Circle as l } from "lucide-react";
|
|
5
|
-
import { c as o } from "./index
|
|
5
|
+
import { c as o } from "./index-DuZCJJSp.js";
|
|
6
6
|
const R = t.Root, I = t.Trigger, S = t.Portal, C = t.Sub, m = s.forwardRef(({ className: e, inset: r, children: i, ...a }, n) => /* @__PURE__ */ x(
|
|
7
7
|
t.SubTrigger,
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),w=require("react"),g=require("@radix-ui/react-dropdown-menu"),x=require("lucide-react"),n=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),w=require("react"),g=require("@radix-ui/react-dropdown-menu"),x=require("lucide-react"),n=require("./index-CNzHZDls.cjs");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const a=d(w),e=d(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=a.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:n.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(x.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=a.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{ref:i,className:n.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...r}));l.displayName=e.SubContent.displayName;const u=a.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:n.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2 !richtext-border-border",t),...i})}));u.displayName=e.Content.displayName;const p=a.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:n.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=a.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:n.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(x.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=a.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:n.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(x.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=a.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:n.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=a.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:n.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:n.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(E,A){return window.addEventListener(E,A),()=>{window.removeEventListener(E,A)}}function t(E,A){window.dispatchEvent(new CustomEvent(E,{detail:A}))}const G={UPLOAD_IMAGE:E=>`UPLOAD_IMAGE-${E}`,UPLOAD_VIDEO:E=>`UPLOAD_VIDEO-${E}`,CHANGE_THEME:"CHANGE_THEME",CHANGE_COLOR:"CHANGE_COLOR",CHANGE_BORDER_RADIUS:"CHANGE_BORDER_RADIUS",MODIFY_LANGUAGE:"MODIFY_LANGUAGE",CHANGE_LANGUAGE:"CHANGE_LANGUAGE"};exports.EVENTS=G;exports.dispatchEvent=t;exports.listenEvent=n;
|
|
@@ -3,23 +3,24 @@ function n(E, A) {
|
|
|
3
3
|
window.removeEventListener(E, A);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function G(E, A) {
|
|
7
7
|
window.dispatchEvent(
|
|
8
8
|
new CustomEvent(E, {
|
|
9
9
|
detail: A
|
|
10
10
|
})
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const t = {
|
|
14
14
|
UPLOAD_IMAGE: (E) => `UPLOAD_IMAGE-${E}`,
|
|
15
15
|
UPLOAD_VIDEO: (E) => `UPLOAD_VIDEO-${E}`,
|
|
16
16
|
CHANGE_THEME: "CHANGE_THEME",
|
|
17
17
|
CHANGE_COLOR: "CHANGE_COLOR",
|
|
18
18
|
CHANGE_BORDER_RADIUS: "CHANGE_BORDER_RADIUS",
|
|
19
|
+
MODIFY_LANGUAGE: "MODIFY_LANGUAGE",
|
|
19
20
|
CHANGE_LANGUAGE: "CHANGE_LANGUAGE"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
t as E,
|
|
24
|
+
G as d,
|
|
24
25
|
n as l
|
|
25
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSyncExternalStore as
|
|
2
|
-
import { d as
|
|
1
|
+
import { useSyncExternalStore as w, useCallback as B } from "react";
|
|
2
|
+
import { d as _, E as A } from "./events.constant-wrlJ_7JZ.js";
|
|
3
3
|
const R = "en", dt = 20, at = 1e5, nt = 16, st = 10, pt = 10, ut = 2, mt = [
|
|
4
4
|
"#000000",
|
|
5
5
|
"#262626",
|
|
@@ -226,9 +226,9 @@ function j({ update: t, notify: o, unwatched: l }) {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
let T = 0, b = 0, k = 0, c;
|
|
229
|
-
const m = [], { link:
|
|
229
|
+
const m = [], { link: S, unlink: D, propagate: W, checkDirty: U, shallowPropagate: I } = j({
|
|
230
230
|
update(t) {
|
|
231
|
-
return t.depsTail !== void 0 ? V(t) :
|
|
231
|
+
return t.depsTail !== void 0 ? V(t) : L(t);
|
|
232
232
|
},
|
|
233
233
|
notify(t) {
|
|
234
234
|
var p;
|
|
@@ -243,7 +243,7 @@ const m = [], { link: _, unlink: S, propagate: W, checkDirty: U, shallowPropagat
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
unwatched(t) {
|
|
246
|
-
t.flags & 1 ? t.depsTail !== void 0 && (t.depsTail = void 0, t.flags = 17, v(t)) :
|
|
246
|
+
t.flags & 1 ? t.depsTail !== void 0 && (t.depsTail = void 0, t.flags = 17, v(t)) : E.call(t);
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
function y(t) {
|
|
@@ -268,7 +268,7 @@ function K(t) {
|
|
|
268
268
|
depsTail: void 0,
|
|
269
269
|
flags: 6
|
|
270
270
|
}, l = y(o);
|
|
271
|
-
l !== void 0 &&
|
|
271
|
+
l !== void 0 && S(o, l, 0);
|
|
272
272
|
try {
|
|
273
273
|
o.fn();
|
|
274
274
|
} finally {
|
|
@@ -286,7 +286,7 @@ function V(t) {
|
|
|
286
286
|
c = o, t.flags &= -5, v(t);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function L(t) {
|
|
290
290
|
return t.flags = 1, t.currentValue !== (t.currentValue = t.pendingValue);
|
|
291
291
|
}
|
|
292
292
|
function q(t) {
|
|
@@ -318,14 +318,14 @@ function H(...t) {
|
|
|
318
318
|
l !== void 0 && (W(l), O());
|
|
319
319
|
}
|
|
320
320
|
} else {
|
|
321
|
-
if (this.flags & 16 &&
|
|
321
|
+
if (this.flags & 16 && L(this)) {
|
|
322
322
|
const p = this.subs;
|
|
323
323
|
p !== void 0 && I(p);
|
|
324
324
|
}
|
|
325
325
|
let l = c;
|
|
326
326
|
for (; l !== void 0; ) {
|
|
327
327
|
if (l.flags & 3) {
|
|
328
|
-
|
|
328
|
+
S(this, l, T);
|
|
329
329
|
break;
|
|
330
330
|
}
|
|
331
331
|
l = (o = l.subs) == null ? void 0 : o.sub;
|
|
@@ -334,24 +334,24 @@ function H(...t) {
|
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
function G() {
|
|
337
|
-
|
|
337
|
+
E.call(this);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function E() {
|
|
340
340
|
this.depsTail = void 0, this.flags = 0, v(this);
|
|
341
341
|
const t = this.subs;
|
|
342
|
-
t !== void 0 &&
|
|
342
|
+
t !== void 0 && D(t);
|
|
343
343
|
}
|
|
344
344
|
function v(t) {
|
|
345
345
|
const o = t.depsTail;
|
|
346
346
|
let l = o !== void 0 ? o.nextDep : t.deps;
|
|
347
347
|
for (; l !== void 0; )
|
|
348
|
-
l =
|
|
348
|
+
l = D(l, t);
|
|
349
349
|
}
|
|
350
350
|
function X(t) {
|
|
351
351
|
return M(t);
|
|
352
352
|
}
|
|
353
353
|
function Y(t) {
|
|
354
|
-
return [
|
|
354
|
+
return [w((o) => {
|
|
355
355
|
let l = K(() => {
|
|
356
356
|
t(), o();
|
|
357
357
|
});
|
|
@@ -1440,7 +1440,7 @@ const J = {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}, it = X(ot);
|
|
1442
1442
|
function bt() {
|
|
1443
|
-
const [t, o] = Y(it), l =
|
|
1443
|
+
const [t, o] = Y(it), l = B((p, g) => {
|
|
1444
1444
|
let h = (t.message[t.currentLang] || {})[p] || p;
|
|
1445
1445
|
return g && Object.entries(g).forEach(([f, x]) => {
|
|
1446
1446
|
h = h.replace(new RegExp(`\\{${f}\\}`, "g"), String(x));
|
|
@@ -1454,7 +1454,10 @@ function bt() {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
const kt = {
|
|
1456
1456
|
setLang: (t) => {
|
|
1457
|
-
|
|
1457
|
+
_(A.CHANGE_LANGUAGE, t);
|
|
1458
|
+
},
|
|
1459
|
+
setMessage: (t, o) => {
|
|
1460
|
+
_(A.MODIFY_LANGUAGE, { lang: t, messages: o });
|
|
1458
1461
|
}
|
|
1459
1462
|
};
|
|
1460
1463
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";const Ee=require("./index-DLqogznp.cjs"),E=require("react/jsx-runtime"),g=require("react"),ne=require("./index-D4d-0Hqh.cjs"),se=require("./theme.cjs"),R=require("./events.constant-B-VGURJp.cjs"),Q="-",Se=e=>{const t=ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(Q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||ze(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&o[i]?[...c,...o[i]]:c}}},ue=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;const n=e.join(Q);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ae=/^\[(.+)\]$/,ze=e=>{if(ae.test(e)){const t=ae.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ke=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Re(Object.entries(e.classGroups),r).forEach(([n,i])=>{B(i,o,n,t)}),o},B=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){const n=a===""?t:ie(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ae(a)){B(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{B(i,ie(t,n),r,o)})})},ie=(e,t)=>{let r=e;return t.split(Q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ae=e=>e.isThemeGetter,Re=(e,t)=>t?e.map(([r,o])=>{const a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Me=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},pe="!",Ne=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{const c=[];let u=0,p=0,f;for(let x=0;x<s.length;x++){let y=s[x];if(u===0){if(y===a&&(o||s.slice(x,x+n)===t)){c.push(s.slice(p,x)),p=x+n;continue}if(y==="/"){f=x;continue}}y==="["?u++:y==="]"&&u--}const d=c.length===0?s:s.substring(p),h=d.startsWith(pe),v=h?d.substring(1):d,w=f&&f>p?f-p:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:i}):i},Pe=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Te=e=>({cache:Me(e.cacheSize),parseClassName:Ne(e),...Se(e)}),Ge=/\s+/,je=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Ge);let s="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:p,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let v=!!h,w=o(v?d.substring(0,h):d);if(!w){if(!v){s=u+(s.length>0?" "+s:s);continue}if(w=o(d),!w){s=u+(s.length>0?" "+s:s);continue}v=!1}const x=Pe(p).join(":"),y=f?x+pe:x,C=y+w;if(n.includes(C))continue;n.push(C);const T=a(w,v);for(let M=0;M<T.length;++M){const L=T[M];n.push(y+L)}s=u+(s.length>0?" "+s:s)}return s};function Ie(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fe(t))&&(o&&(o+=" "),o+=r);return o}const fe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=fe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Le(e,...t){let r,o,a,n=i;function i(c){const u=t.reduce((p,f)=>f(p),e());return r=Te(u),o=r.cache.get,a=r.cache.set,n=s,s(c)}function s(c){const u=o(c);if(u)return u;const p=je(c,r);return a(c,p),p}return function(){return n(Ie.apply(null,arguments))}}const b=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},be=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,We=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,He=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>N(e)||Oe.has(e)||$e.test(e),k=e=>P(e,"length",Xe),N=e=>!!e&&!Number.isNaN(Number(e)),V=e=>P(e,"number",N),j=e=>!!e&&Number.isInteger(Number(e)),Ve=e=>e.endsWith("%")&&N(e.slice(0,-1)),l=e=>be.test(e),A=e=>_e.test(e),Ue=new Set(["length","size","percentage"]),Be=e=>P(e,Ue,ge),Je=e=>P(e,"position",ge),Qe=new Set(["image","url"]),Ye=e=>P(e,Qe,De),Ke=e=>P(e,"",Ze),I=()=>!0,P=(e,t,r)=>{const o=be.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Xe=e=>Fe.test(e)&&!qe.test(e),ge=()=>!1,Ze=e=>We.test(e),De=e=>He.test(e),et=()=>{const e=b("colors"),t=b("spacing"),r=b("blur"),o=b("brightness"),a=b("borderColor"),n=b("borderRadius"),i=b("borderSpacing"),s=b("borderWidth"),c=b("contrast"),u=b("grayscale"),p=b("hueRotate"),f=b("invert"),d=b("gap"),h=b("gradientColorStops"),v=b("gradientColorStopPositions"),w=b("inset"),x=b("margin"),y=b("opacity"),C=b("padding"),T=b("saturate"),M=b("scale"),L=b("sepia"),X=b("skew"),Z=b("space"),D=b("translate"),F=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",l,t],m=()=>[l,t],ee=()=>["",z,k],$=()=>["auto",N,l],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",l],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[N,l];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[z,k],blur:["none","",A,l],brightness:S(),borderColor:[e],borderRadius:["none","","full",A,l],borderSpacing:m(),borderWidth:ee(),contrast:S(),grayscale:G(),hueRotate:S(),invert:G(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Ve,k],inset:W(),margin:W(),opacity:S(),padding:m(),saturate:S(),scale:S(),sepia:G(),skew:S(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),l]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,l]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",j,l]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",j,l]},l]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[j,l]},l]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",A,k]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",V]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",N,V]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,k]}],"underline-offset":[{"underline-offset":["auto",z,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Be]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ye]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[z,l]}],"outline-w":[{outline:[z,k]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[z,k]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,Ke]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",A,l]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[f]}],saturate:[{saturate:[T]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[j,l]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,k,V]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},tt=Le(et);function rt(...e){return tt(Ee.clsx(e))}const U=typeof window>"u";function le(e,t,r=window){const o=g.useRef(void 0);g.useEffect(()=>{o.current=t},[t]),g.useEffect(()=>{if(!(r&&r.addEventListener))return;const n=i=>{o.current&&o.current(i)};return r.addEventListener(e,n),()=>{r.removeEventListener(e,n)}},[e,r])}function _(e,t,r={}){const{initializeWithValue:o=!0}=r,a=g.useCallback(d=>r.serializer?r.serializer(d):JSON.stringify(d),[r]),n=g.useCallback(d=>{if(r.deserializer)return r.deserializer(d);if(d==="undefined")return;const h=t instanceof Function?t():t;let v;try{v=JSON.parse(d)}catch(w){return console.error("Error parsing JSON:",w),h}return v},[r,t]),i=g.useCallback(()=>{const d=t instanceof Function?t():t;if(U)return d;try{const h=window.localStorage.getItem(e);return h?n(h):d}catch(h){return console.warn(`Error reading localStorage key “${e}”:`,h),d}},[t,e,n]),[s,c]=g.useState(()=>o?i():t instanceof Function?t():t),u=g.useCallback(d=>{U&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const h=d instanceof Function?d(i()):d;window.localStorage.setItem(e,a(h)),c(h),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(h){console.warn(`Error setting localStorage key “${e}”:`,h)}},[e,a,i]),p=g.useCallback(()=>{U&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const d=t instanceof Function?t():t;window.localStorage.removeItem(e),c(d),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))},[e,t]);g.useEffect(()=>{c(i())},[e]);const f=g.useCallback(d=>{d.key&&d.key!==e||c(i())},[e,i]);return le("storage",f),le("local-storage",f),[s,u,p]}function Y(e){function t(){const n=g.useRef(e),i=g.useCallback(()=>n.current,[]),s=g.useRef(new Set),c=g.useCallback(p=>{n.current={...n.current,...p},s.current.forEach(f=>f())},[]),u=g.useCallback(p=>(s.current.add(p),()=>s.current.delete(p)),[]);return{get:i,set:c,subscribe:u}}const r=g.createContext(null);function o({children:n}){return E.jsx(r.Provider,{value:t(),children:n})}function a(n){const i=g.useContext(r);if(!i)throw new Error("Store not found");return[g.useSyncExternalStore(i.subscribe,()=>n(i.get()),()=>n(e)),i.set]}return{Provider:o,useStore:a}}Y({value:!1});Y({value:!1});const{Provider:ot,useStore:me}=Y({value:!1});function nt(){const[e]=me(t=>t.value);return e}const ce="data-rc-order",de="data-rc-priority",st="rc-util-key",J=new Map;function at(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function he({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:st}function K(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function it(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xe(e){return[...(J.get(e)||e).children].filter(t=>t.tagName==="STYLE")}function we(e,t={}){const{csp:r,prepend:o,priority:a=0}=t,n=it(o),i=n==="prependQueue",s=document.createElement("style");s.setAttribute(ce,n),i&&a&&s.setAttribute(de,`${a}`),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;const c=K(t),{firstChild:u}=c;if(o){if(i){const p=xe(c).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(ce)))return!1;const d=Number(f.getAttribute(de)||0);return a>=d});if(p.length>0)return c.insertBefore(s,p.at(-1).nextSibling),s}u.before(s)}else c.append(s);return s}function ye(e,t={}){const r=K(t);return xe(r).find(o=>o.getAttribute(he(t))===e)}function ve(e,t={}){const r=ye(e,t);r&&r.remove()}function lt(e,t){const r=J.get(e);if(!r||!at(document,r)){const o=we("",t),{parentNode:a}=o;J.set(e,a),o.remove()}}function Ce(e,t,r={}){var i,s,c;const o=K(r);lt(o,r);const a=ye(t,r);if(a)return(i=r.csp)!=null&&i.nonce&&a.nonce!==((s=r.csp)==null?void 0:s.nonce)&&(a.nonce=(c=r.csp)==null?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const n=we(e,r);return n.setAttribute(he(r),t),n}const ct=g.memo(({editor:e,children:t})=>{const[,r]=me(a=>a.value);g.useEffect(()=>{r({value:e==null?void 0:e.isEditable})},[e==null?void 0:e.isEditable]);const o=()=>{r({value:e==null?void 0:e.isEditable})};return g.useEffect(()=>(e&&e.on("update",o),()=>{e&&e.off("update",o)}),[e]),E.jsx(E.Fragment,{children:t})});function dt(){const[e,t]=ne.x(ne.atomLang),r=o=>{t({...e,currentLang:o.detail})};return g.useEffect(()=>{const o=R.listenEvent(R.EVENTS.CHANGE_LANGUAGE,r);return()=>{o()}},[]),E.jsx(E.Fragment,{})}function ut(){const[e,t]=_("richtext-theme","light"),[r,o]=_("richtext-color","default"),[a,n]=_("richtext-border-radius","0.65rem");g.useEffect(()=>{const u=e||"light",p=r||"default";let f=se.THEME[u][p];if(!f){f=se.THEME.light.default;return}return Ce(`
|
|
1
|
+
"use strict";const Ce=require("./index-DLqogznp.cjs"),C=require("react/jsx-runtime"),b=require("react"),ne=require("./index-FSRjMsxW.cjs"),se=require("./theme.cjs"),S=require("./events.constant-DQYeJpu5.cjs"),Q="-",Se=e=>{const t=ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(Q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||ze(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&o[i]?[...c,...o[i]]:c}}},ue=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;const n=e.join(Q);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ae=/^\[(.+)\]$/,ze=e=>{if(ae.test(e)){const t=ae.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ke=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Re(Object.entries(e.classGroups),r).forEach(([n,i])=>{B(i,o,n,t)}),o},B=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){const n=a===""?t:ie(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ae(a)){B(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{B(i,ie(t,n),r,o)})})},ie=(e,t)=>{let r=e;return t.split(Q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ae=e=>e.isThemeGetter,Re=(e,t)=>t?e.map(([r,o])=>{const a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Me=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},pe="!",Ne=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{const c=[];let u=0,p=0,g;for(let x=0;x<s.length;x++){let y=s[x];if(u===0){if(y===a&&(o||s.slice(x,x+n)===t)){c.push(s.slice(p,x)),p=x+n;continue}if(y==="/"){g=x;continue}}y==="["?u++:y==="]"&&u--}const d=c.length===0?s:s.substring(p),h=d.startsWith(pe),v=h?d.substring(1):d,w=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:i}):i},Le=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Te=e=>({cache:Me(e.cacheSize),parseClassName:Ne(e),...Se(e)}),Pe=/\s+/,Ge=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Pe);let s="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:p,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let v=!!h,w=o(v?d.substring(0,h):d);if(!w){if(!v){s=u+(s.length>0?" "+s:s);continue}if(w=o(d),!w){s=u+(s.length>0?" "+s:s);continue}v=!1}const x=Le(p).join(":"),y=g?x+pe:x,E=y+w;if(n.includes(E))continue;n.push(E);const T=a(w,v);for(let M=0;M<T.length;++M){const j=T[M];n.push(y+j)}s=u+(s.length>0?" "+s:s)}return s};function Ie(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ge(t))&&(o&&(o+=" "),o+=r);return o}const ge=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ge(e[o]))&&(r&&(r+=" "),r+=t);return r};function je(e,...t){let r,o,a,n=i;function i(c){const u=t.reduce((p,g)=>g(p),e());return r=Te(u),o=r.cache.get,a=r.cache.set,n=s,s(c)}function s(c){const u=o(c);if(u)return u;const p=Ge(c,r);return a(c,p),p}return function(){return n(Ie.apply(null,arguments))}}const f=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Oe=/^\d+\/\d+$/,$e=new Set(["px","full","screen"]),_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ve=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,We=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>N(e)||$e.has(e)||Oe.test(e),A=e=>L(e,"length",Xe),N=e=>!!e&&!Number.isNaN(Number(e)),H=e=>L(e,"number",N),G=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith("%")&&N(e.slice(0,-1)),l=e=>fe.test(e),R=e=>_e.test(e),Ue=new Set(["length","size","percentage"]),Be=e=>L(e,Ue,be),Je=e=>L(e,"position",be),Qe=new Set(["image","url"]),Ye=e=>L(e,Qe,De),Ke=e=>L(e,"",Ze),I=()=>!0,L=(e,t,r)=>{const o=fe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Xe=e=>Fe.test(e)&&!qe.test(e),be=()=>!1,Ze=e=>Ve.test(e),De=e=>We.test(e),et=()=>{const e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),a=f("borderColor"),n=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),c=f("contrast"),u=f("grayscale"),p=f("hueRotate"),g=f("invert"),d=f("gap"),h=f("gradientColorStops"),v=f("gradientColorStopPositions"),w=f("inset"),x=f("margin"),y=f("opacity"),E=f("padding"),T=f("saturate"),M=f("scale"),j=f("sepia"),X=f("skew"),Z=f("space"),D=f("translate"),F=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",l,t],m=()=>[l,t],ee=()=>["",k,A],O=()=>["auto",N,l],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",l],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[N,l];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[k,A],blur:["none","",R,l],brightness:z(),borderColor:[e],borderRadius:["none","","full",R,l],borderSpacing:m(),borderWidth:ee(),contrast:z(),grayscale:P(),hueRotate:z(),invert:P(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[He,A],inset:V(),margin:V(),opacity:z(),padding:m(),saturate:z(),scale:z(),sepia:P(),skew:z(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),l]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,l]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",G,l]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",G,l]},l]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[G,l]},l]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",R,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",H]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",N,H]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,A]}],"underline-offset":[{"underline-offset":["auto",k,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Be]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ye]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[k,l]}],"outline-w":[{outline:[k,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[k,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,Ke]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",R,l]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[T]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[G,l]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,A,H]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},tt=je(et);function rt(...e){return tt(Ce.clsx(e))}const U=typeof window>"u";function le(e,t,r=window){const o=b.useRef(void 0);b.useEffect(()=>{o.current=t},[t]),b.useEffect(()=>{if(!(r&&r.addEventListener))return;const n=i=>{o.current&&o.current(i)};return r.addEventListener(e,n),()=>{r.removeEventListener(e,n)}},[e,r])}function _(e,t,r={}){const{initializeWithValue:o=!0}=r,a=b.useCallback(d=>r.serializer?r.serializer(d):JSON.stringify(d),[r]),n=b.useCallback(d=>{if(r.deserializer)return r.deserializer(d);if(d==="undefined")return;const h=t instanceof Function?t():t;let v;try{v=JSON.parse(d)}catch(w){return console.error("Error parsing JSON:",w),h}return v},[r,t]),i=b.useCallback(()=>{const d=t instanceof Function?t():t;if(U)return d;try{const h=window.localStorage.getItem(e);return h?n(h):d}catch(h){return console.warn(`Error reading localStorage key “${e}”:`,h),d}},[t,e,n]),[s,c]=b.useState(()=>o?i():t instanceof Function?t():t),u=b.useCallback(d=>{U&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const h=d instanceof Function?d(i()):d;window.localStorage.setItem(e,a(h)),c(h),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(h){console.warn(`Error setting localStorage key “${e}”:`,h)}},[e,a,i]),p=b.useCallback(()=>{U&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const d=t instanceof Function?t():t;window.localStorage.removeItem(e),c(d),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))},[e,t]);b.useEffect(()=>{c(i())},[e]);const g=b.useCallback(d=>{d.key&&d.key!==e||c(i())},[e,i]);return le("storage",g),le("local-storage",g),[s,u,p]}function Y(e){function t(){const n=b.useRef(e),i=b.useCallback(()=>n.current,[]),s=b.useRef(new Set),c=b.useCallback(p=>{n.current={...n.current,...p},s.current.forEach(g=>g())},[]),u=b.useCallback(p=>(s.current.add(p),()=>s.current.delete(p)),[]);return{get:i,set:c,subscribe:u}}const r=b.createContext(null);function o({children:n}){return C.jsx(r.Provider,{value:t(),children:n})}function a(n){const i=b.useContext(r);if(!i)throw new Error("Store not found");return[b.useSyncExternalStore(i.subscribe,()=>n(i.get()),()=>n(e)),i.set]}return{Provider:o,useStore:a}}Y({value:!1});Y({value:!1});const{Provider:ot,useStore:me}=Y({value:!1});function nt(){const[e]=me(t=>t.value);return e}const ce="data-rc-order",de="data-rc-priority",st="rc-util-key",J=new Map;function at(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function he({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:st}function K(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function it(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xe(e){return[...(J.get(e)||e).children].filter(t=>t.tagName==="STYLE")}function we(e,t={}){const{csp:r,prepend:o,priority:a=0}=t,n=it(o),i=n==="prependQueue",s=document.createElement("style");s.setAttribute(ce,n),i&&a&&s.setAttribute(de,`${a}`),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;const c=K(t),{firstChild:u}=c;if(o){if(i){const p=xe(c).filter(g=>{if(!["prepend","prependQueue"].includes(g.getAttribute(ce)))return!1;const d=Number(g.getAttribute(de)||0);return a>=d});if(p.length>0)return c.insertBefore(s,p.at(-1).nextSibling),s}u.before(s)}else c.append(s);return s}function ye(e,t={}){const r=K(t);return xe(r).find(o=>o.getAttribute(he(t))===e)}function ve(e,t={}){const r=ye(e,t);r&&r.remove()}function lt(e,t){const r=J.get(e);if(!r||!at(document,r)){const o=we("",t),{parentNode:a}=o;J.set(e,a),o.remove()}}function Ee(e,t,r={}){var i,s,c;const o=K(r);lt(o,r);const a=ye(t,r);if(a)return(i=r.csp)!=null&&i.nonce&&a.nonce!==((s=r.csp)==null?void 0:s.nonce)&&(a.nonce=(c=r.csp)==null?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const n=we(e,r);return n.setAttribute(he(r),t),n}const ct=b.memo(({editor:e,children:t})=>{const[,r]=me(a=>a.value);b.useEffect(()=>{r({value:e==null?void 0:e.isEditable})},[e==null?void 0:e.isEditable]);const o=()=>{r({value:e==null?void 0:e.isEditable})};return b.useEffect(()=>(e&&e.on("update",o),()=>{e&&e.off("update",o)}),[e]),C.jsx(C.Fragment,{children:t})});function dt(){const[,e]=ne.x(ne.atomLang),t=o=>{e(a=>({...a,currentLang:o.detail}))},r=o=>{const{lang:a,messages:n}=o.detail;e(i=>{if(i.message[a]){const s={...i.message[a],...n};return{currentLang:i.currentLang,message:{...i.message,[a]:s}}}else return{currentLang:i.currentLang,message:{...i.message,[a]:n}}})};return b.useEffect(()=>{const o=S.listenEvent(S.EVENTS.CHANGE_LANGUAGE,t),a=S.listenEvent(S.EVENTS.MODIFY_LANGUAGE,r);return()=>{o(),a()}},[]),C.jsx(C.Fragment,{})}function ut(){const[e,t]=_("richtext-theme","light"),[r,o]=_("richtext-color","default"),[a,n]=_("richtext-border-radius","0.65rem");b.useEffect(()=>{const u=e||"light",p=r||"default";let g=se.THEME[u][p];if(!g){g=se.THEME.light.default;return}return Ee(`
|
|
2
2
|
.reactjs-tiptap-editor, .reactjs-tiptap-editor *,
|
|
3
3
|
div[data-richtext-portal], div[data-richtext-portal] * {
|
|
4
|
-
${Object.entries(
|
|
4
|
+
${Object.entries(g).map(([d,h])=>typeof a=="string"&&d==="radius"?`--${d}: ${a};`:`--${d}: ${h};`).join(`
|
|
5
5
|
`)}
|
|
6
6
|
}
|
|
7
|
-
`,"richtext-theme",{priority:50}),()=>{ve("richtext-theme")}},[e,r,a]);const i=u=>{t(u.detail)},s=u=>{o(u.detail)},c=u=>{n(u.detail)};return
|
|
7
|
+
`,"richtext-theme",{priority:50}),()=>{ve("richtext-theme")}},[e,r,a]);const i=u=>{t(u.detail)},s=u=>{o(u.detail)},c=u=>{n(u.detail)};return b.useEffect(()=>{const u=S.listenEvent(S.EVENTS.CHANGE_THEME,i),p=S.listenEvent(S.EVENTS.CHANGE_COLOR,s),g=S.listenEvent(S.EVENTS.CHANGE_BORDER_RADIUS,c);return()=>{u(),p(),g()}},[]),C.jsx(C.Fragment,{})}function pt({editor:e,children:t,id:r}){return C.jsxs(ot,{children:[C.jsx(ct,{editor:e,id:r,children:t}),C.jsx(dt,{}),C.jsx(ut,{})]})}exports.ProviderUniqueId=pt;exports.cn=rt;exports.removeCSS=ve;exports.updateCSS=Ee;exports.useEditableEditor=nt;exports.useLocalStorage=_;
|