@solibo/solibo-ui 0.3.21 → 0.3.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/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +0 -1
- package/dist/assets/index9.css +1 -1
- package/dist/components/_avatar/index.cjs +1 -1
- package/dist/components/_avatar/index.js +1 -1
- package/dist/components/_card/index.cjs +1 -1
- package/dist/components/_card/index.js +1 -1
- package/dist/components/_collapsible/index.cjs +1 -1
- package/dist/components/_collapsible/index.js +1 -1
- package/dist/components/_croppable/index.cjs +1 -1
- package/dist/components/_croppable/index.js +1 -1
- package/dist/components/_dropzone/index.cjs +1 -1
- package/dist/components/_dropzone/index.cjs.map +1 -1
- package/dist/components/_dropzone/index.js +28 -28
- package/dist/components/_dropzone/index.js.map +1 -1
- package/dist/components/_editor/index.cjs +1 -1
- package/dist/components/_editor/index.js +1 -1
- package/dist/components/_messages/index.cjs +1 -1
- package/dist/components/_messages/index.cjs.map +1 -1
- package/dist/components/_messages/index.js +34 -8
- package/dist/components/_messages/index.js.map +1 -1
- package/dist/components/_portal/index.cjs +1 -1
- package/dist/components/_portal/index.js +1 -1
- package/dist/components/_sortable/index.cjs +2 -0
- package/dist/components/_sortable/index.cjs.map +1 -0
- package/dist/components/_sortable/index.js +40 -0
- package/dist/components/_sortable/index.js.map +1 -0
- package/dist/components/_toasts/index.cjs +1 -1
- package/dist/components/_toasts/index.js +1 -1
- package/dist/components/_widget/index.cjs +1 -1
- package/dist/components/_widget/index.js +1 -1
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.js +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +1 -1
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +1 -1
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/graph/index.cjs +1 -1
- package/dist/components/graph/index.js +1 -1
- package/dist/components/group/index.cjs +1 -1
- package/dist/components/group/index.js +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.cjs.map +1 -1
- package/dist/components/icon/index.js +27 -26
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +4 -4
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.cjs.map +1 -1
- package/dist/components/list/index.js +19 -16
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +7 -7
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +1 -1
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.cjs.map +1 -1
- package/dist/components/textarea/index.js +14 -14
- package/dist/components/textarea/index.js.map +1 -1
- package/dist/{icons-BKi-xxXA.cjs → icons-R4Ufm_3V.cjs} +2 -2
- package/dist/{icons-BKi-xxXA.cjs.map → icons-R4Ufm_3V.cjs.map} +1 -1
- package/dist/{icons-BSp58j2P.js → icons-VE52iqR8.js} +14 -9
- package/dist/{icons-BSp58j2P.js.map → icons-VE52iqR8.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -6
- package/dist/index.js +58 -58
- package/package.json +1 -1
- package/dist/components/sortable/index.cjs +0 -2
- package/dist/components/sortable/index.cjs.map +0 -1
- package/dist/components/sortable/index.js +0 -44
- package/dist/components/sortable/index.js.map +0 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { jsx as r, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { t as b } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { useRef as v, useState as x } from "react";
|
|
4
4
|
import { Button as T } from "../button/index.js";
|
|
5
5
|
import { Icon as j } from "../icon/index.js";
|
|
6
|
-
import '../../assets/
|
|
6
|
+
import '../../assets/index24.css';const k = "_dropzone_1737c_1", I = "_dragging_1737c_18", R = "_minimal_1737c_22", l = {
|
|
7
7
|
dropzone: k,
|
|
8
8
|
dragging: I,
|
|
9
9
|
minimal: R
|
|
10
10
|
}, E = ({
|
|
11
|
-
accepts:
|
|
12
|
-
label:
|
|
13
|
-
multiple:
|
|
14
|
-
onChange:
|
|
15
|
-
variant:
|
|
16
|
-
...
|
|
11
|
+
accepts: d,
|
|
12
|
+
label: p = "Select files",
|
|
13
|
+
multiple: f = !1,
|
|
14
|
+
onChange: t,
|
|
15
|
+
variant: s = "default",
|
|
16
|
+
...g
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
18
|
+
const a = v(null), [u, n] = x(!1), o = (e) => {
|
|
19
19
|
e.preventDefault(), e.stopPropagation();
|
|
20
20
|
}, D = (e) => {
|
|
21
21
|
o(e), n(!1);
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
const _ =
|
|
25
|
-
if (!
|
|
26
|
-
const
|
|
27
|
-
for (const z of _)
|
|
28
|
-
|
|
29
|
-
target:
|
|
30
|
-
currentTarget:
|
|
22
|
+
const c = Array.from(e.dataTransfer.files ?? []);
|
|
23
|
+
if (c.length === 0) return;
|
|
24
|
+
const _ = f ? c : c.slice(0, 1), i = a.current;
|
|
25
|
+
if (!i) return;
|
|
26
|
+
const m = new DataTransfer();
|
|
27
|
+
for (const z of _) m.items.add(z);
|
|
28
|
+
i.files = m.files, t == null || t({
|
|
29
|
+
target: i,
|
|
30
|
+
currentTarget: i
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ r("div", { className: b(l.dropzone, l[s], u && l.dragging), onDragEnter: (e) => {
|
|
34
34
|
o(e), n(!0);
|
|
35
35
|
}, onDragOver: (e) => {
|
|
36
36
|
o(e), n(!0);
|
|
37
37
|
}, onDragLeave: (e) => {
|
|
38
38
|
o(e), n(!1);
|
|
39
|
-
}, onDrop: D, ...
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
39
|
+
}, onDrop: D, ...g, "data-component": "dropzone", children: /* @__PURE__ */ y("label", { children: [
|
|
40
|
+
/* @__PURE__ */ r("input", { accept: d, hidden: !0, multiple: f, onChange: t, ref: a, type: "file" }),
|
|
41
|
+
/* @__PURE__ */ r(j, { name: "upload", size: s === "minimal" ? "medium" : "large" }),
|
|
42
|
+
/* @__PURE__ */ r("br", {}),
|
|
43
|
+
s !== "minimal" && /* @__PURE__ */ r(T, { onClick: () => {
|
|
44
44
|
var e;
|
|
45
|
-
return (e =
|
|
46
|
-
}, type: "button", children:
|
|
45
|
+
return (e = a.current) == null ? void 0 : e.click();
|
|
46
|
+
}, type: "button", children: p })
|
|
47
47
|
] }) });
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/_dropzone/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useRef, useState } from 'react';\n\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type DropzoneProps = {\n accepts?: string;\n label: string;\n multiple?: boolean;\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n variant?: 'default' | 'minimal';\n};\n\nexport const Dropzone = ({\n accepts,\n label = 'Select files',\n multiple = false,\n onChange,\n variant = 'default',\n ...props\n}: DropzoneProps) => {\n const inputRef = useRef<HTMLInputElement>(null);\n const [isDragging, setIsDragging] = useState(false);\n\n const prevent = (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n };\n\n const handleDrop = (e: React.DragEvent<HTMLDivElement>) => {\n prevent(e);\n setIsDragging(false);\n\n const files = Array.from(e.dataTransfer.files ?? []);\n if (files.length === 0) return;\n\n const selected = multiple ? files : files.slice(0, 1);\n\n const input = inputRef.current;\n if (!input) return;\n\n const dt = new DataTransfer();\n for (const f of selected) dt.items.add(f);\n\n input.files = dt.files;\n\n onChange?.({ target: input, currentTarget: input } as React.ChangeEvent<HTMLInputElement>);\n };\n\n return (\n <div\n className={cx(styles.dropzone, styles[variant], isDragging && styles.dragging)}\n onDragEnter={(e) => {\n prevent(e);\n setIsDragging(true);\n }}\n onDragOver={(e) => {\n prevent(e);\n setIsDragging(true);\n }}\n onDragLeave={(e) => {\n prevent(e);\n setIsDragging(false);\n }}\n onDrop={handleDrop}\n {...props}\n >\n <label>\n <input\n accept={accepts}\n hidden\n multiple={multiple}\n onChange={onChange}\n ref={inputRef}\n type='file'\n />\n <Icon\n name='upload'\n size={variant === 'minimal' ? 'medium' : 'large'}\n />\n <br />\n <Button\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/_dropzone/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useRef, useState } from 'react';\n\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type DropzoneProps = {\n accepts?: string;\n label: string;\n multiple?: boolean;\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n variant?: 'default' | 'minimal';\n};\n\nexport const Dropzone = ({\n accepts,\n label = 'Select files',\n multiple = false,\n onChange,\n variant = 'default',\n ...props\n}: DropzoneProps) => {\n const inputRef = useRef<HTMLInputElement>(null);\n const [isDragging, setIsDragging] = useState(false);\n\n const prevent = (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n };\n\n const handleDrop = (e: React.DragEvent<HTMLDivElement>) => {\n prevent(e);\n setIsDragging(false);\n\n const files = Array.from(e.dataTransfer.files ?? []);\n if (files.length === 0) return;\n\n const selected = multiple ? files : files.slice(0, 1);\n\n const input = inputRef.current;\n if (!input) return;\n\n const dt = new DataTransfer();\n for (const f of selected) dt.items.add(f);\n\n input.files = dt.files;\n\n onChange?.({ target: input, currentTarget: input } as React.ChangeEvent<HTMLInputElement>);\n };\n\n return (\n <div\n className={cx(styles.dropzone, styles[variant], isDragging && styles.dragging)}\n onDragEnter={(e) => {\n prevent(e);\n setIsDragging(true);\n }}\n onDragOver={(e) => {\n prevent(e);\n setIsDragging(true);\n }}\n onDragLeave={(e) => {\n prevent(e);\n setIsDragging(false);\n }}\n onDrop={handleDrop}\n {...props}\n >\n <label>\n <input\n accept={accepts}\n hidden\n multiple={multiple}\n onChange={onChange}\n ref={inputRef}\n type='file'\n />\n <Icon\n name='upload'\n size={variant === 'minimal' ? 'medium' : 'large'}\n />\n <br />\n {variant !== 'minimal' && (\n <Button\n onClick={() => inputRef.current?.click()}\n type={'button'}\n >\n {label}\n </Button>\n )}\n </label>\n </div>\n );\n};\n"],"names":["Dropzone","accepts","label","multiple","onChange","variant","props","inputRef","useRef","isDragging","setIsDragging","useState","prevent","e","preventDefault","stopPropagation","handleDrop","files","Array","from","dataTransfer","length","selected","slice","input","current","dt","DataTransfer","f","items","add","target","currentTarget","jsx","cx","styles","dropzone","dragging","Icon","Button","click"],"mappings":";;;;;;;;;GAeaA,IAAWA,CAAC;AAAA,EACvBC,SAAAA;AAAAA,EACAC,OAAAA,IAAQ;AAAA,EACRC,UAAAA,IAAW;AAAA,EACXC,UAAAA;AAAAA,EACAC,SAAAA,IAAU;AAAA,EACV,GAAGC;AACU,MAAM;AACnB,QAAMC,IAAWC,EAAyB,IAAI,GACxC,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAE5CC,IAAUA,CAACC,MAAuB;AACtCA,MAAEC,eAAAA,GACFD,EAAEE,gBAAAA;AAAAA,EACJ,GAEMC,IAAaA,CAACH,MAAuC;AACzDD,IAAAA,EAAQC,CAAC,GACTH,EAAc,EAAK;AAEnB,UAAMO,IAAQC,MAAMC,KAAKN,EAAEO,aAAaH,SAAS,EAAE;AACnD,QAAIA,EAAMI,WAAW,EAAG;AAExB,UAAMC,IAAWnB,IAAWc,IAAQA,EAAMM,MAAM,GAAG,CAAC,GAE9CC,IAAQjB,EAASkB;AACvB,QAAI,CAACD,EAAO;AAEZ,UAAME,IAAK,IAAIC,aAAAA;AACf,eAAWC,KAAKN,EAAUI,CAAAA,EAAGG,MAAMC,IAAIF,CAAC;AAExCJ,IAAAA,EAAMP,QAAQS,EAAGT,OAEjBb,KAAAA,QAAAA,EAAW;AAAA,MAAE2B,QAAQP;AAAAA,MAAOQ,eAAeR;AAAAA,IAAAA;AAAAA,EAC7C;AAEA,SACE,gBAAAS,EAAC,OAAA,EACC,WAAWC,EAAGC,EAAOC,UAAUD,EAAO9B,CAAO,GAAGI,KAAc0B,EAAOE,QAAQ,GAC7E,aAAcxB,CAAAA,MAAM;AAClBD,IAAAA,EAAQC,CAAC,GACTH,EAAc,EAAI;AAAA,EACpB,GACA,YAAaG,CAAAA,MAAM;AACjBD,IAAAA,EAAQC,CAAC,GACTH,EAAc,EAAI;AAAA,EACpB,GACA,aAAcG,CAAAA,MAAM;AAClBD,IAAAA,EAAQC,CAAC,GACTH,EAAc,EAAK;AAAA,EACrB,GACA,QAAQM,GACR,GAAIV,GAAM,kBAAA,YAEV,4BAAC,SAAA,EACC,UAAA;AAAA,IAAA,gBAAA2B,EAAC,SAAA,EACC,QAAQhC,GACR,QAAM,IACN,UAAAE,GACA,UAAAC,GACA,KAAKG,GACL,MAAK,OAAA,CAAM;AAAA,IAEb,gBAAA0B,EAACK,KACC,MAAK,UACL,MAAMjC,MAAY,YAAY,WAAW,SAAQ;AAAA,sBAElD,MAAA,EAAE;AAAA,IACFA,MAAY,aACX,gBAAA4B,EAACM,GAAA,EACC,SAAS,MAAA;;AAAMhC,cAAAA,IAAAA,EAASkB,YAATlB,gBAAAA,EAAkBiC;AAAAA,OACjC,MAAM,UAELtC,UAAAA,EAAAA,CACH;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/index25.css');var p0=Object.defineProperty;var g0=(n,e,t)=>e in n?p0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var bn=(n,e,t)=>g0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),z=require("react"),js=require("react-dom"),dt=require("../../classix-5H4IWnMA.cjs"),Ke=require("../button/index.cjs"),Je=require("../icon/index.cjs"),qs=require("../input/index.cjs");function m0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Bu=m0(z);function dn(n){return{}}const hu={},b0={},Na={},Pt={},en={},Dn={},tn={},pu={},ti={},Mn={},Rn={},$e={},$i={},Hi={},y0={},ka={},_0={},Aa={},x0={},Oa={},Ia={},jr={},v0={},Pa={},La={},Da={},w0={},S0={},T0={},Us={},Ma={},C0={},Ra={},Ba={},E0={},gu={},Vi={},ni={},N0={},k0={},pr={},gr={},A0={},O0={},I0={},Fe=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,P0=Fe&&"documentMode"in document?document.documentMode:null,Le=Fe&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),xt=Fe&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),qr=!(!Fe||!("InputEvent"in window)||P0)&&"getTargetRanges"in new window.InputEvent("input"),mu=Fe&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Jn=Fe&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,L0=Fe&&/Android/.test(navigator.userAgent),Fa=Fe&&/^(?=.*Chrome).*/i.test(navigator.userAgent),D0=Fe&&L0&&Fa,Gi=Fe&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Fa,Xn=1,St=3,Dt=0,ja=1,un=2,M0=0,R0=1,B0=2,Ur=4,zr=8,Ki=128,F0=112|(3|Ur|zr)|Ki,Ji=1,Xi=2,Zi=3,Qi=4,Yi=5,es=6,bu=mu||Jn||Gi?" ":"",rt=`
|
|
2
2
|
|
|
3
3
|
`,j0=xt?" ":bu,qa="֑-߿יִ-﷽ﹰ-ﻼ",Ua="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",q0=new RegExp("^[^"+Ua+"]*["+qa+"]"),U0=new RegExp("^[^"+qa+"]*["+Ua+"]"),Mt={bold:1,code:16,highlight:Ki,italic:2,strikethrough:Ur,subscript:32,superscript:64,underline:zr},z0={directionless:1,unmergeable:2},zs={center:Xi,end:es,justify:Qi,left:Ji,right:Zi,start:Yi},W0={[Xi]:"center",[es]:"end",[Qi]:"justify",[Ji]:"left",[Zi]:"right",[Yi]:"start"},$0={normal:0,segmented:2,token:1},H0={[M0]:"normal",[B0]:"segmented",[R0]:"token"};function V0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var M=V0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function Wr(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const G0=100;let ri=!1,ts=0;function K0(n){ts=n.timeStamp}function Fu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&_u(n,t)!==void 0}function J0(n,e,t){const r=Ae(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&ss(e,s,u,i,!1)}function X0(n,e,t){if(P(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===St&&t.isAttached()}function Z0(n,e,t,r){for(let u=n;u&&!df(u);u=Qn(u)){const i=_u(u,e);if(i!==void 0){const s=ae(i,t);if(s)return ne(s)?void 0:[u,s]}else if(u===r)return[r,Xa(t)]}}function za(n,e,t){ri=!0;const r=performance.now()-ts>G0;try{Te(n,()=>{const u=j()||function(c){return c.getEditorState().read(()=>{const d=j();return d!==null?d.clone():null})}(n),i=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let l=!1,f="";for(let c=0;c<e.length;c++){const d=e[c],p=d.type,m=d.target,g=Z0(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&D(b)&&X0(u,m,b)&&J0(m,b,n);else if(p==="childList"){l=!0;const _=d.addedNodes;for(let S=0;S<_.length;S++){const I=_[S],C=Ka(I),L=I.parentNode;if(L!=null&&I!==a&&C===null&&!Fu(I,L,n)){if(xt){const U=I.innerText||I.nodeValue;U&&(f+=U)}L.removeChild(I)}}const w=d.removedNodes,T=w.length;if(T>0){let S=0;for(let I=0;I<T;I++){const C=w[I];(Fu(C,m,n)||a===C)&&(m.appendChild(C),S++)}T!==S&&i.set(y,b)}}}if(i.size>0)for(const[c,d]of i)d.reconcileObservedMutation(c,n);const h=t.takeRecords();if(h.length>0){for(let c=0;c<h.length;c++){const d=h[c],p=d.addedNodes,m=d.target;for(let g=0;g<p.length;g++){const y=p[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Fu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,ke(u)),xt&&el(n)&&u.insertRawText(f))})}finally{ri=!1}}function Wa(n){const e=n._observer;e!==null&&za(n,e.takeRecords(),e)}function $a(n){(function(e){ts===0&&vu(e).addEventListener("textInput",K0,!0)})(n),n._observer=new MutationObserver((e,t)=>{za(n,e,t)})}function Ws(n,e){const t=n.__mode,r=n.__format,u=n.__style,i=e.__mode,s=e.__format,o=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||u!==null&&u!==o)}function $s(n,e){const t=n.mergeWithSibling(e),r=ue()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function Hs(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&D(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Ws(e,r)){r=$s(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&D(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Ws(r,t)){r=$s(r,t);break}break}t.remove()}}else r.remove()}function Ha(n){return Vs(n.anchor),Vs(n.focus),n}function Vs(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,u;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),u=!0):(r=e.getChildAtIndex(t),u=!1),D(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!E(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let Q0=1;const Y0=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function ns(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return ne(sn(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&yu(e)==null)}function Zn(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!ns(e)&&Va(e)===n}catch{return!1}}function rs(n){return n instanceof Eu}function Va(n){let e=n;for(;e!=null;){const t=yu(e);if(rs(t))return t;e=Qn(e)}return null}function yu(n){return n?n.__lexicalEditor:null}function Ot(n){return n.isToken()||n.isSegmented()}function ef(n){return n.nodeType===St}function $r(n){let e=n;for(;e!=null;){if(ef(e))return e;e=e.firstChild}return null}function Hr(n,e,t){const r=Mt[e];if(t!==null&&(n&r)==(t&r))return n;let u=n^r;return e==="subscript"?u&=-65:e==="superscript"&&(u&=-33),u}function Ga(n){return D(n)||vt(n)||ne(n)}function tf(n,e){if(e!=null)return void(n.__key=e);_e(),xl();const t=ue(),r=ot(),u=""+Q0++;r._nodeMap.set(u,n),E(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=ja,n.__key=u}function Lt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),u=n.getPreviousSibling(),i=n.getNextSibling();if(u===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=u.getWritable();if(i!==null){const o=i.getWritable();o.__prev=s.__key,s.__next=o.__key}else s.__next=null;t.__prev=null}if(i===null)if(u!==null){const s=u.getWritable();r.__last=u.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(u!==null){const o=u.getWritable();o.__next=s.__key,s.__prev=o.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function Vr(n){xl();const e=n.getLatest(),t=e.__parent,r=ot(),u=ue(),i=r._nodeMap,s=u._dirtyElements;t!==null&&function(a,l,f){let h=a;for(;h!==null;){if(f.has(h))return;const c=l.get(h);if(c===void 0)break;f.set(h,!1),h=c.__parent}}(t,i,s);const o=e.__key;u._dirtyType=ja,E(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function de(n){_e();const e=ue(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=ae(t);r!==null&&r.getWritable()}if(n!==null){const r=ae(n);r!==null&&r.getWritable()}}}function mt(){return rr()?null:ue()._compositionKey}function ae(n,e){const t=(e||ot())._nodeMap.get(n);return t===void 0?null:t}function Ka(n,e){const t=_u(n,ue());return t!==void 0?ae(t,e):null}function _u(n,e){return n[`__lexicalKey_${e._key}`]}function sn(n,e){let t=n;for(;t!=null;){const r=Ka(t,e);if(r!==null)return r;t=Qn(t)}return null}function Ja(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Gs(n){return n.read(()=>ie().getTextContent())}function ie(){return Xa(ot())}function Xa(n){return n._nodeMap.get("root")}function ke(n){_e();const e=ot();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Qt(n){const e=ue(),t=function(r,u){let i=r;for(;i!=null;){const s=_u(i,u);if(s!==void 0)return s;i=Qn(i)}return null}(n,e);return t===null?n===e.getRootElement()?ae("root"):null:ae(t)}function Ks(n,e){return e?n.getTextContentSize():0}function Za(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function us(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Qa(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ya(n){return n.nodeType===St?n.nodeValue:null}function is(n,e,t){const r=Ae(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=Ya(u);const a=sn(u);if(o!==null&&D(a)){if(o===bu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&ss(a,o,i,s,n)}}}function ss(n,e,t,r,u){let i=n;if(i.isAttached()&&(u||!i.isDirty())){const s=i.isComposing();let o=e;(s||u)&&e[e.length-1]===bu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(de(null),mu||Jn||Gi)i.remove();else{const m=ue();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=nr(),h=i.getTextContentSize(),c=mt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||P(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===n.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===n.__key&&f.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=j();if(!P(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=se(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function nf(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),u=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||u||function(i){const s=i.getPreviousSibling();return(D(s)||E(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function Js(n){return n==="ArrowLeft"}function Xs(n){return n==="ArrowRight"}function Cn(n,e){return Le?n:e}function Zs(n){return n==="Enter"}function yn(n){return n==="Backspace"}function _n(n){return n==="Delete"}function Qs(n,e,t){return n.toLowerCase()==="a"&&Cn(e,t)}function rf(){const n=ie();ke(Ha(n.select(0,n.getChildrenSize())))}function Nn(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const u=n[e];if(typeof u=="string"){const i=Wr(u);return t[e]=i,i}return u}function os(n,e,t,r,u){if(t.size===0)return;const i=r.__type,s=r.__key,o=e.get(i);o===void 0&&M(33,i);const a=o.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const f=l.get(s),h=f==="destroyed"&&u==="created";(f===void 0||h)&&l.set(s,h?"updated":u)}function Ys(n,e,t){const r=n.getParent();let u=t,i=n;return r!==null&&(e&&t===0?(u=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(u=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?u-1:u)}function Bn(n,e){const t=n.offset;if(n.type==="element")return Ys(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const u=e?r.getPreviousSibling():r.getNextSibling();return u===null?Ys(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function el(n){const e=vu(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function F(n,e,t){return Sl(n,e,t)}function xu(n){return!pe(n)&&!n.isLastChild()&&!n.isInline()}function Gr(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&M(75,e),t}function Qn(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function kn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function vu(n){const e=n._window;return e===null&&M(78),e}function uf(n){let e=n.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(n){return pe(n)||E(n)&&n.isShadowRoot()}function Tt(n){const e=ue(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&M(200,n.constructor.name,t);const{replace:u,replaceWithKlass:i}=r;if(u!==null){const s=u(n),o=s.constructor;return i!==null?s instanceof i||M(201,i.name,i.getType(),o.name,o.getType(),n.constructor.name,t):s instanceof n.constructor&&o!==n.constructor||M(202,o.name,o.getType(),n.constructor.name,t),s.__key===n.__key&&M(203,n.constructor.name,t,o.name,o.getType()),s}return n}function ju(n,e){!pe(n.getParent())||E(e)||ne(e)||M(99)}function qu(n){return(ne(n)||E(n)&&!n.canBeEmpty())&&!n.isInline()}function as(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function sf(n,e,t){let r=n._blockCursorElement;if(P(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const u=t.anchor,i=u.getNode(),s=u.offset;let o=!1,a=null;if(s===i.getChildrenSize())qu(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&qu(l)){const f=l.getPreviousSibling();(f===null||qu(f))&&(o=!0,a=n.getElementByKey(l.__key))}}if(o){const l=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(f){const h=f.theme,c=document.createElement("div");c.contentEditable="false",c.setAttribute("data-lexical-cursor","true");let d=h.blockCursor;if(d!==void 0){if(typeof d=="string"){const p=Wr(d);d=h.blockCursor=p}d!==void 0&&c.classList.add(...d)}return c}(n._config)),e.style.caretColor="transparent",void(a===null?l.appendChild(r):l.insertBefore(r,a))}}r!==null&&as(r,n,e)}function Ae(n){return Fe?(n||window).getSelection():null}function of(n){return zt(n)&&n.tagName==="A"}function zt(n){return n.nodeType===1}function eo(n){return n.nodeType===11}function ui(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function Kr(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function pt(n){if(ne(n)&&!n.isInline())return!0;if(!E(n)||ut(n))return!1;const e=n.getFirstChild(),t=e===null||vt(e)||D(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function xn(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function af(){return ue()}const to=new WeakMap,lf=new Map;function cf(n){if(!n._readOnly&&n.isEmpty())return lf;n._readOnly||M(192);let e=to.get(n);if(!e){e=new Map,to.set(n,e);for(const[t,r]of n._nodeMap){const u=r.__type;let i=e.get(u);i||(i=new Map,e.set(u,i)),i.set(t,r)}}return e}function ls(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function ff(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function df(n){return n.__lexicalUnmanaged===!0}function tl(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(E(s)&&tl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let wt,ge,Fn,wu,ii,si,Rt,Be,oi,jn,oe="",he="",Ue=null,De="",et="",nl=!1,qn=!1,Pr=null;function Jr(n,e){const t=Rt.get(n);if(e!==null){const r=ci(n);r.parentNode===e&&e.removeChild(r)}if(Be.has(n)||ge._keyToDOMMap.delete(n),E(t)){const r=Zr(t,Rt);ai(r,0,r.length-1,null)}t!==void 0&&os(jn,Fn,wu,t,"destroyed")}function ai(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&Jr(i,r)}}function At(n,e){n.setProperty("text-align",e)}const hf="40px";function rl(n,e){const t=wt.theme.indent;if(typeof t=="string"){const u=n.classList.contains(t);e>0&&!u?n.classList.add(t):e<1&&u&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||hf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function ul(n,e){const t=n.style;e===0?At(t,""):e===Ji?At(t,"left"):e===Xi?At(t,"center"):e===Zi?At(t,"right"):e===Qi?At(t,"justify"):e===Yi?At(t,"start"):e===es&&At(t,"end")}function Xr(n,e){const t=Be.get(n);t===void 0&&M(60);const r=t.createDOM(wt,ge);if(function(u,i,s){const o=s._keyToDOMMap;(function(a,l,f){a[`__lexicalKey_${l._key}`]=f})(i,s,u),o.set(u,i)}(n,r,ge),D(t)?r.setAttribute("data-lexical-text","true"):ne(t)&&r.setAttribute("data-lexical-decorator","true"),E(t)){const u=t.__indent,i=t.__size;if(u!==0&&rl(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=he;he="",li(a,f,0,l,f.getDOMSlot(h)),sl(f,h),he=c})(Zr(t,Be),o,t,r)}const s=t.__format;s!==0&&ul(r,s),t.isInline()||il(null,t,r),xu(t)&&(oe+=rt,et+=rt)}else{const u=t.getTextContent();if(ne(t)){const i=t.decorate(ge,wt);i!==null&&ol(n,i),r.contentEditable="false"}else D(t)&&(t.isDirectionless()||(he+=u));oe+=u,et+=u}return e!==null&&e.insertChild(r),os(jn,Fn,wu,t,"created"),r}function li(n,e,t,r,u){const i=oe;oe="";let s=t;for(;s<=r;++s){Xr(n[s],u);const o=Be.get(n[s]);o!==null&&D(o)&&(Ue===null&&(Ue=o.getFormat()),De===""&&(De=o.getStyle()))}xu(e)&&(oe+=rt),u.element.__lexicalTextContent=oe,oe=i+oe}function no(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return vt(r)?"line-break":ne(r)&&r.isInline()?"decorator":null}return"empty"}return null}function il(n,e,t){const r=no(n,Rt),u=no(e,Be);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function sl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==he||r!==Pr){const i=he==="",s=i?Pr:(u=he,q0.test(u)?"rtl":U0.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=wt.theme;let l=r!==null?a[r]:void 0,f=s!==null?a[s]:void 0;if(l!==void 0){if(typeof l=="string"){const h=Wr(l);l=a[r]=h}o.remove(...l)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(f!==void 0){if(typeof f=="string"){const h=Wr(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}qn||(n.getWritable().__dir=s)}Pr=s,e.__lexicalDirTextContent=he,e.__lexicalDir=s}var u}function pf(n,e,t){const r=he;var u;he="",Ue=null,De="",function(i,s,o){const a=oe,l=i.__size,f=s.__size;oe="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)En(c,h);else{const m=ci(c),g=Xr(d,null);try{h.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const b=`${y.toString()} Parent: ${h.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${c}}.`;throw new Error(b)}throw y}Jr(c,null)}const p=Be.get(d);D(p)&&(Ue===null&&(Ue=p.getFormat()),De===""&&(De=p.getStyle()))}else{const c=Zr(i,Rt),d=Zr(s,Be);if(c.length!==l&&M(227),d.length!==f&&M(228),l===0)f!==0&&li(d,s,0,f-1,o);else if(f===0){if(l!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;ai(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,_){const w=y-1,T=b-1;let S,I,C=_.getFirstChild(),L=0,U=0;for(;L<=w&&U<=T;){const A=m[L],B=g[U];if(A===B)C=Uu(En(B,_.element)),L++,U++;else{S===void 0&&(S=new Set(m)),I===void 0&&(I=new Set(g));const O=I.has(A),k=S.has(B);if(O)if(k){const q=Gr(ge,B);q===C?C=Uu(En(B,_.element)):(_.withBefore(C).insertChild(q),En(B,_.element)),L++,U++}else Xr(B,_.withBefore(C)),U++;else C=Uu(ci(A)),Jr(A,_.element),L++}const v=Be.get(B);v!==null&&D(v)&&(Ue===null&&(Ue=v.getFormat()),De===""&&(De=v.getStyle()))}const x=L>w,N=U>T;if(x&&!N){const A=g[T+1],B=A===void 0?null:ge.getElementByKey(A);li(g,p,U,T,_.withBefore(B))}else N&&!x&&ai(m,L,w,_.element)})(s,c,d,l,f,o)}xu(s)&&(oe+=rt),h.__lexicalTextContent=oe,oe=a+oe}(n,e,e.getDOMSlot(t)),sl(e,t),Ft(u=e)&&Ue!=null&&Ue!==u.__textFormat&&!qn&&(u.setTextFormat(Ue),u.setTextStyle(De)),function(i){Ft(i)&&De!==""&&De!==i.__textStyle&&!qn&&i.setTextStyle(De)}(e),he=r}function Zr(n,e){const t=[];let r=n.__first;for(;r!==null;){const u=e.get(r);u===void 0&&M(101),t.push(r),r=u.__next}return t}function En(n,e){const t=Rt.get(n);let r=Be.get(n);t!==void 0&&r!==void 0||M(61);const u=nl||si.has(n)||ii.has(n),i=Gr(ge,n);if(t===r&&!u){if(E(t)){const s=i.__lexicalTextContent;s!==void 0&&(oe+=s,et+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(he+=o)}else{const s=t.getTextContent();D(t)&&!t.isDirectionless()&&(he+=s),et+=s,oe+=s}return i}if(t!==r&&u&&os(jn,Fn,wu,r,"updated"),r.updateDOM(t,i,wt)){const s=Xr(n,null);return e===null&&M(62),e.replaceChild(s,i),Jr(n,null),s}if(E(t)&&E(r)){const s=r.__indent;s!==t.__indent&&rl(i,s);const o=r.__format;o!==t.__format&&ul(i,o),u&&(pf(t,r,i),pe(r)||r.isInline()||il(t,r,i)),xu(r)&&(oe+=rt,et+=rt)}else{const s=r.getTextContent();if(ne(r)){const o=r.decorate(ge,wt);o!==null&&ol(n,o)}else D(r)&&!r.isDirectionless()&&(he+=s);oe+=s,et+=s}if(!qn&&pe(r)&&r.__cachedText!==et){const s=r.getWritable();s.__cachedText=et,r=s}return i}function ol(n,e){let t=ge._pendingDecorators;const r=ge._decorators;if(t===null){if(r[n]===e)return;t=Ja(ge)}t[n]=e}function Uu(n){let e=n.nextSibling;return e!==null&&e===ge._blockCursorElement&&(e=e.nextSibling),e}function gf(n,e,t,r,u,i){oe="",et="",he="",nl=r===un,Pr=null,ge=t,wt=t._config,Fn=t._nodes,wu=ge._listeners.mutation,ii=u,si=i,Rt=n._nodeMap,Be=e._nodeMap,qn=e._readOnly,oi=new Map(t._keyToDOMMap);const s=new Map;return jn=s,En("root",null),ge=void 0,Fn=void 0,ii=void 0,si=void 0,Rt=void 0,Be=void 0,wt=void 0,oi=void 0,jn=void 0,s}function ci(n){const e=oi.get(n);return e===void 0&&M(75,n),e}const Xe=Object.freeze({}),fi=30,di=[["keydown",function(n,e){if(An=n.timeStamp,al=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!F(e,y0,n)&&t!=null){if(function(o,a,l,f){return Xs(o)&&!a&&!f&&!l}(t,u,s,i))F(e,ka,n);else if(function(o,a,l,f,h){return Xs(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,_0,n);else if(function(o,a,l,f){return Js(o)&&!a&&!f&&!l}(t,u,s,i))F(e,Aa,n);else if(function(o,a,l,f,h){return Js(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,x0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))F(e,Oa,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))F(e,Ia,n);else if(function(o,a){return Zs(o)&&a}(t,r))On=!0,F(e,jr,n);else if(function(o){return o===" "}(t))F(e,v0,n);else if(function(o,a){return Le&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),On=!0,F(e,en,!0);else if(function(o,a){return Zs(o)&&!a}(t,r))On=!1,F(e,jr,n);else if(function(o,a,l,f){return Le?!a&&!l&&(yn(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&yn(o)}(t,s,i,u))yn(t)?F(e,Pa,n):(n.preventDefault(),F(e,Pt,!0));else if(function(o){return o==="Escape"}(t))F(e,La,n);else if(function(o,a,l,f,h){return Le?!(l||f||h)&&(_n(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&_n(o)}(t,u,r,s,i))_n(t)?F(e,Da,n):(n.preventDefault(),F(e,Pt,!1));else if(function(o,a,l){return yn(o)&&(Le?a:l)}(t,s,u))n.preventDefault(),F(e,Mn,!0);else if(function(o,a,l){return _n(o)&&(Le?a:l)}(t,s,u))n.preventDefault(),F(e,Mn,!1);else if(function(o,a){return Le&&a&&yn(o)}(t,i))n.preventDefault(),F(e,Rn,!0);else if(function(o,a){return Le&&a&&_n(o)}(t,i))n.preventDefault(),F(e,Rn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Cn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Cn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Cn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))F(e,w0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Cn(l,f)}(t,r,i,u))n.preventDefault(),F(e,$i,void 0);else if(function(o,a,l,f){return Le?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),F(e,Hi,void 0);else{const o=e._editorState._selection;o===null||P(o)?!xt&&Qs(t,i,u)&&(n.preventDefault(),F(e,ni,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(Le?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,gu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(Le?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,Vi,n)):Qs(t,i,u)&&(n.preventDefault(),F(e,ni,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&F(e,I0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Te(e,()=>{ne(sn(t))||(pi=!0)})}],["compositionstart",function(n,e){Te(e,()=>{const t=j();if(P(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();de(r.key),(n.timeStamp<An+fi||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||D(u)&&u.getStyle()!==t.style)&&F(e,tn,j0)}})}],["compositionend",function(n,e){xt?vn=!0:Te(e,()=>{zu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Te(e,()=>{const t=j(),r=n.data,u=dl(n);if(r!=null&&P(t)&&fl(t,u,r,n.timeStamp,!1)){vn&&(zu(e,r),vn=!1);const i=t.anchor.getNode(),s=Ae(e._window);if(s===null)return;const o=t.isBackward(),a=o?t.anchor.offset:t.focus.offset,l=o?t.focus.offset:t.anchor.offset;qr&&!t.isCollapsed()&&D(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===Ya(s.anchorNode)||F(e,tn,r);const f=r.length;xt&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),mu||Jn||Gi||!e.isComposing()||(An=0,de(null))}else is(!1,e,r!==null?r:void 0),vn&&(zu(e,r||void 0),vn=!1);_e(),Wa(ue())}),Jt=null}],["click",function(n,e){Te(e,()=>{const t=j(),r=Ae(e._window),u=nr();if(r){if(P(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!pe(s)&&ie().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(E(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===Xn||s===St)&&ke(fs(u,r,e,n))}}}F(e,Na,n)})}],["cut",Xe],["copy",Xe],["dragstart",Xe],["dragover",Xe],["dragend",Xe],["paste",Xe],["focus",Xe],["blur",Xe],["drop",Xe]];qr&&di.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=dl(t);u==="deleteCompositionText"||xt&&el(r)||u!=="insertCompositionText"&&Te(r,()=>{const s=j();if(u==="deleteContentBackward"){if(s===null){const d=nr();if(!P(d))return;ke(d.clone())}if(P(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,al==="MediaLast"&&o<An+fi&&r.isComposing()&&d){if(de(null),An=0,setTimeout(()=>{Te(r,()=>{de(null)})},fi),P(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),D(p)||M(142),s.style=p.getStyle()}}else{de(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;D0&&d&&!y&&g||F(r,Pt,!0)}return}}var o;if(!P(s))return;const a=t.data;Jt!==null&&is(!1,r,Jt),s.dirty&&Jt===null||!s.isCollapsed()||pe(s.anchor.getNode())||i===null||s.applyDOMRange(i),Jt=null;const l=s.anchor,f=s.focus,h=l.getNode(),c=f.getNode();if(u!=="insertText"&&u!=="insertTranspose")switch(t.preventDefault(),u){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":F(r,tn,t);break;case"insertFromComposition":de(null),F(r,tn,t);break;case"insertLineBreak":de(null),F(r,en,!1);break;case"insertParagraph":de(null),On&&!Jn?(On=!1,F(r,en,!1)):F(r,Dn,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":F(r,pu,t);break;case"deleteByComposition":(function(d,p){return d!==p||E(d)||E(p)||!d.isToken()||!p.isToken()})(h,c)&&F(r,ti,t);break;case"deleteByDrag":case"deleteByCut":F(r,ti,t);break;case"deleteContent":F(r,Pt,!1);break;case"deleteWordBackward":F(r,Mn,!0);break;case"deleteWordForward":F(r,Mn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":F(r,Rn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":F(r,Rn,!1);break;case"formatStrikeThrough":F(r,$e,"strikethrough");break;case"formatBold":F(r,$e,"bold");break;case"formatItalic":F(r,$e,"italic");break;case"formatUnderline":F(r,$e,"underline");break;case"historyUndo":F(r,$i,void 0);break;case"historyRedo":F(r,Hi,void 0)}else{if(a===`
|
|
4
4
|
`)t.preventDefault(),F(r,en,!1);else if(a===rt)t.preventDefault(),F(r,Dn,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&fl(s,i,a,t.timeStamp,!0)?(t.preventDefault(),F(r,tn,a)):Jt=a;ll=t.timeStamp}})}(n,e)]);let An=0,al=null,ll=0,Jt=null;const Qr=new WeakMap;let hi=!1,pi=!1,On=!1,vn=!1,cl=[0,"",0,"root",0];function fl(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=ue(),l=Ae(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!D(o)||(!u&&(!qr||ll<r+50)||o.isDirty()&&d<2||Za(t))&&i.offset!==s.offset&&!o.isComposing()||Ot(o)||o.isDirty()&&d>1||(u||!qr)&&c!==null&&!o.isComposing()&&f!==$r(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||nf(n,o)}function ro(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===St&&e!==0&&e!==n.nodeValue.length}function uo(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;hi&&(hi=!1,ro(r,u)&&ro(i,s))||Te(e,()=>{if(!t)return void ke(null);if(!Zn(e,r,i))return;const o=j();if(P(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=vu(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=cl,y=ie(),b=e.isComposing()===!1&&y.getTextContent()==="";if(h<g+200&&a.offset===p&&a.key===m)o.format=c,o.style=d;else if(a.type==="text")D(l)||M(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const _=a.getNode();o.style="",_ instanceof hn&&_.getChildrenSize()===0?(o.format=_.getTextFormat(),o.style=_.getTextStyle()):o.format=0}}else{const f=a.key,h=o.focus.key,c=o.getNodes(),d=c.length,p=o.isBackward(),m=p?s:u,g=p?u:s,y=p?h:f,b=p?f:h;let _=F0,w=!1;for(let T=0;T<d;T++){const S=c[T],I=S.getTextContentSize();if(D(S)&&I!==0&&!(T===0&&S.__key===y&&m===I||T===d-1&&S.__key===b&&g===0)&&(w=!0,_&=S.getFormat(),_===0))break}o.format=w?_:0}}F(e,hu,void 0)})}function dl(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function zu(n,e){const t=n._compositionKey;if(de(null),t!==null&&e!=null){if(e===""){const r=ae(t),u=$r(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&D(r)&&ss(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../assets/
|
|
1
|
+
import '../../assets/index25.css';var v0 = Object.defineProperty;
|
|
2
2
|
var w0 = (n, e, t) => e in n ? v0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var vn = (n, e, t) => w0(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as H, jsxs as Dt, Fragment as Hr } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index26.css');const e=require("react/jsx-runtime"),m=require("../_dropzone/index.cjs"),u=require("../button/index.cjs"),d=require("../form/index.cjs"),_=require("../icon/index.cjs"),x=require("../list/index.cjs"),p=require("../textarea/index.cjs"),j=require("../message/index.cjs"),g="_messages_17m85_1",q="_controls_17m85_23",t={messages:g,controls:q},v=({handleUpload:o,message:s,messages:r,onChange:i,onSubmit:c,placeholder:a,sending:l})=>e.jsxs("div",{className:t.messages,"data-component":"messages",children:[e.jsx(x.List,{children:r.map(n=>e.jsx(j.Message,{...n},n.id))}),e.jsxs(d.Form,{onSubmit:n=>{n.preventDefault(),c()},children:[e.jsx(p.Textarea,{onChange:i,placeholder:a,value:s}),e.jsxs("div",{className:t.controls,children:[e.jsx(m.Dropzone,{label:"",multiple:!0,onChange:n=>{n.currentTarget.files&&o(n.currentTarget.files)},variant:"minimal"}),e.jsx(u.Button,{disabled:l||!(s!=null&&s.trim()),type:"submit",variant:"primary",children:e.jsx(_.Icon,{fill:!0,name:"plane",variant:"white"})})]})]})]});exports.Messages=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/_messages/index.tsx"],"sourcesContent":["import { Message, type MessageOptions } from '../message';\nimport styles from './styles.module.css';\n\nexport type MessageItem = MessageOptions;\n\nexport type MessagesProps = {\n messages: MessageItem[];\n};\n\nexport const Messages = ({
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/_messages/index.tsx"],"sourcesContent":["import { ChangeEvent } from 'react';\n\nimport { Dropzone } from '@/components/_dropzone';\nimport { Button } from '@/components/button';\nimport { Form } from '@/components/form';\nimport { Icon } from '@/components/icon';\nimport { List } from '@/components/list';\nimport { Textarea } from '@/components/textarea';\n\nimport { Message, type MessageOptions } from '../message';\nimport styles from './styles.module.css';\n\nexport type MessageItem = MessageOptions;\n\nexport type MessagesProps = {\n handleUpload: (files: FileList) => void;\n message: string;\n messages: MessageItem[];\n onSubmit: () => void;\n onChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;\n placeholder?: string;\n sending: boolean;\n};\n\nexport const Messages = ({\n handleUpload,\n message,\n messages,\n onChange,\n onSubmit,\n placeholder,\n sending,\n}: MessagesProps) => {\n return (\n <div className={styles.messages}>\n <List>\n {messages.map((message) => (\n <Message\n key={message.id}\n {...message}\n />\n ))}\n </List>\n <Form\n onSubmit={(event) => {\n event.preventDefault();\n onSubmit();\n }}\n >\n <Textarea\n onChange={onChange}\n placeholder={placeholder}\n value={message}\n />\n\n <div className={styles.controls}>\n <Dropzone\n label={''}\n multiple\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n if (e.currentTarget.files) {\n handleUpload(e.currentTarget.files);\n }\n }}\n variant={'minimal'}\n />\n <Button\n disabled={sending || !message?.trim()}\n type={'submit'}\n variant={'primary'}\n >\n <Icon\n fill={true}\n name={'plane'}\n variant={'white'}\n />\n </Button>\n </div>\n </Form>\n </div>\n );\n};\n"],"names":["Messages","handleUpload","message","messages","onChange","onSubmit","placeholder","sending","styles","jsx","List","map","Message","id","jsxs","Form","event","preventDefault","Textarea","controls","Dropzone","e","currentTarget","files","Button","trim","Icon"],"mappings":"maAwBaA,EAAWA,CAAC,CACvBC,aAAAA,EACAC,QAAAA,EACAC,SAAAA,EACAC,SAAAA,EACAC,SAAAA,EACAC,YAAAA,EACAC,QAAAA,CACa,WAEV,MAAA,CAAI,UAAWC,EAAOL,SAAS,iBAAA,WAC9B,SAAA,CAAAM,EAAAA,IAACC,EAAAA,KAAA,CACEP,SAAAA,EAASQ,IAAKT,GACbO,EAAAA,IAACG,EAAAA,QAAA,CAEC,GAAIV,CAAAA,EADCA,EAAQW,EACD,CAEf,EACH,EACAC,EAAAA,KAACC,EAAAA,KAAA,CACC,SAAWC,GAAU,CACnBA,EAAMC,eAAAA,EACNZ,EAAAA,CACF,EAEA,SAAA,CAAAI,EAAAA,IAACS,EAAAA,SAAA,CACC,SAAAd,EACA,YAAAE,EACA,MAAOJ,EAAQ,EAGjBY,EAAAA,KAAC,MAAA,CAAI,UAAWN,EAAOW,SACrB,SAAA,CAAAV,MAACW,EAAAA,UACC,MAAO,GACP,SAAQ,GACR,SAAWC,GAAqC,CAC1CA,EAAEC,cAAcC,OAClBtB,EAAaoB,EAAEC,cAAcC,KAAK,CAEtC,EACA,QAAS,UAAU,EAErBd,MAACe,EAAAA,QACC,SAAUjB,GAAW,EAACL,GAAAA,MAAAA,EAASuB,QAC/B,KAAM,SACN,QAAS,UAET,SAAAhB,EAAAA,IAACiB,QACC,KAAM,GACN,KAAM,QACN,QAAS,QAAQ,CAAA,CAErB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,EACF"}
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Dropzone as p } from "../_dropzone/index.js";
|
|
3
|
+
import { Button as f } from "../button/index.js";
|
|
4
|
+
import { Form as d } from "../form/index.js";
|
|
5
|
+
import { Icon as u } from "../icon/index.js";
|
|
6
|
+
import { List as h } from "../list/index.js";
|
|
7
|
+
import { Textarea as v } from "../textarea/index.js";
|
|
8
|
+
import { Message as _ } from "../message/index.js";
|
|
9
|
+
import '../../assets/index26.css';const b = "_messages_17m85_1", g = "_controls_17m85_23", i = {
|
|
10
|
+
messages: b,
|
|
11
|
+
controls: g
|
|
12
|
+
}, z = ({
|
|
13
|
+
handleUpload: n,
|
|
14
|
+
message: o,
|
|
15
|
+
messages: m,
|
|
16
|
+
onChange: s,
|
|
17
|
+
onSubmit: a,
|
|
18
|
+
placeholder: l,
|
|
19
|
+
sending: c
|
|
20
|
+
}) => /* @__PURE__ */ e("div", { className: i.messages, "data-component": "messages", children: [
|
|
21
|
+
/* @__PURE__ */ t(h, { children: m.map((r) => /* @__PURE__ */ t(_, { ...r }, r.id)) }),
|
|
22
|
+
/* @__PURE__ */ e(d, { onSubmit: (r) => {
|
|
23
|
+
r.preventDefault(), a();
|
|
24
|
+
}, children: [
|
|
25
|
+
/* @__PURE__ */ t(v, { onChange: s, placeholder: l, value: o }),
|
|
26
|
+
/* @__PURE__ */ e("div", { className: i.controls, children: [
|
|
27
|
+
/* @__PURE__ */ t(p, { label: "", multiple: !0, onChange: (r) => {
|
|
28
|
+
r.currentTarget.files && n(r.currentTarget.files);
|
|
29
|
+
}, variant: "minimal" }),
|
|
30
|
+
/* @__PURE__ */ t(f, { disabled: c || !(o != null && o.trim()), type: "submit", variant: "primary", children: /* @__PURE__ */ t(u, { fill: !0, name: "plane", variant: "white" }) })
|
|
31
|
+
] })
|
|
32
|
+
] })
|
|
33
|
+
] });
|
|
8
34
|
export {
|
|
9
|
-
|
|
35
|
+
z as Messages
|
|
10
36
|
};
|
|
11
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/_messages/index.tsx"],"sourcesContent":["import { Message, type MessageOptions } from '../message';\nimport styles from './styles.module.css';\n\nexport type MessageItem = MessageOptions;\n\nexport type MessagesProps = {\n messages: MessageItem[];\n};\n\nexport const Messages = ({
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/_messages/index.tsx"],"sourcesContent":["import { ChangeEvent } from 'react';\n\nimport { Dropzone } from '@/components/_dropzone';\nimport { Button } from '@/components/button';\nimport { Form } from '@/components/form';\nimport { Icon } from '@/components/icon';\nimport { List } from '@/components/list';\nimport { Textarea } from '@/components/textarea';\n\nimport { Message, type MessageOptions } from '../message';\nimport styles from './styles.module.css';\n\nexport type MessageItem = MessageOptions;\n\nexport type MessagesProps = {\n handleUpload: (files: FileList) => void;\n message: string;\n messages: MessageItem[];\n onSubmit: () => void;\n onChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;\n placeholder?: string;\n sending: boolean;\n};\n\nexport const Messages = ({\n handleUpload,\n message,\n messages,\n onChange,\n onSubmit,\n placeholder,\n sending,\n}: MessagesProps) => {\n return (\n <div className={styles.messages}>\n <List>\n {messages.map((message) => (\n <Message\n key={message.id}\n {...message}\n />\n ))}\n </List>\n <Form\n onSubmit={(event) => {\n event.preventDefault();\n onSubmit();\n }}\n >\n <Textarea\n onChange={onChange}\n placeholder={placeholder}\n value={message}\n />\n\n <div className={styles.controls}>\n <Dropzone\n label={''}\n multiple\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n if (e.currentTarget.files) {\n handleUpload(e.currentTarget.files);\n }\n }}\n variant={'minimal'}\n />\n <Button\n disabled={sending || !message?.trim()}\n type={'submit'}\n variant={'primary'}\n >\n <Icon\n fill={true}\n name={'plane'}\n variant={'white'}\n />\n </Button>\n </div>\n </Form>\n </div>\n );\n};\n"],"names":["Messages","handleUpload","message","messages","onChange","onSubmit","placeholder","sending","styles","jsx","List","map","Message","id","jsxs","Form","event","preventDefault","Textarea","controls","Dropzone","e","currentTarget","files","Button","trim","Icon"],"mappings":";;;;;;;;;;;GAwBaA,IAAWA,CAAC;AAAA,EACvBC,cAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,SAAAA;AACa,wBAEV,OAAA,EAAI,WAAWC,EAAOL,UAAS,kBAAA,YAC9B,UAAA;AAAA,EAAA,gBAAAM,EAACC,GAAA,EACEP,UAAAA,EAASQ,IAAKT,CAAAA,MACb,gBAAAO,EAACG,GAAA,EAEC,GAAIV,EAAAA,GADCA,EAAQW,EACD,CAEf,GACH;AAAA,EACA,gBAAAC,EAACC,GAAA,EACC,UAAWC,CAAAA,MAAU;AACnBA,IAAAA,EAAMC,eAAAA,GACNZ,EAAAA;AAAAA,EACF,GAEA,UAAA;AAAA,IAAA,gBAAAI,EAACS,GAAA,EACC,UAAAd,GACA,aAAAE,GACA,OAAOJ,GAAQ;AAAA,IAGjB,gBAAAY,EAAC,OAAA,EAAI,WAAWN,EAAOW,UACrB,UAAA;AAAA,MAAA,gBAAAV,EAACW,KACC,OAAO,IACP,UAAQ,IACR,UAAU,CAACC,MAAqC;AAC9C,QAAIA,EAAEC,cAAcC,SAClBtB,EAAaoB,EAAEC,cAAcC,KAAK;AAAA,MAEtC,GACA,SAAS,WAAU;AAAA,MAErB,gBAAAd,EAACe,KACC,UAAUjB,KAAW,EAACL,KAAAA,QAAAA,EAASuB,SAC/B,MAAM,UACN,SAAS,WAET,UAAA,gBAAAhB,EAACiB,KACC,MAAM,IACN,MAAM,SACN,SAAS,SAAQ,EAAA,CAErB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF;AAAA,GACF;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const e=require("react/jsx-runtime"),s=require("../aside/index.cjs"),i=require("../branding/index.cjs"),a=require("../figure/index.cjs"),c=require("../icon/index.cjs"),l=require("../nav/index.cjs"),u="_menu_gakcc_29",m="_portal_gakcc_54",o={menu:u,portal:m},d=({children:n,portals:r,open:t=!0})=>e.jsxs("details",{className:o.menu,open:t||void 0,"data-component":"portal",children:[e.jsx("summary",{"aria-label":"Show menu",children:e.jsx(c.Icon,{name:"menu",size:"large",variant:"primary"})}),e.jsxs(s.Aside,{className:o.portal,children:[e.jsx(a.Figure,{children:e.jsx(i.Branding,{name:"logo",size:86,variant:"white"})}),r&&e.jsx(l.Nav,{horizontal:!0,children:r}),n&&n]})]});exports.Portal=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,7 +4,7 @@ import { Branding as i } from "../branding/index.js";
|
|
|
4
4
|
import { Figure as l } from "../figure/index.js";
|
|
5
5
|
import { Icon as s } from "../icon/index.js";
|
|
6
6
|
import { Nav as c } from "../nav/index.js";
|
|
7
|
-
import '../../assets/
|
|
7
|
+
import '../../assets/index27.css';const p = "_menu_gakcc_29", u = "_portal_gakcc_54", t = {
|
|
8
8
|
menu: p,
|
|
9
9
|
portal: u
|
|
10
10
|
}, x = ({
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index28.css');const p=require("react/jsx-runtime"),E=require("../../classix-5H4IWnMA.cjs"),e=require("react"),_=require("../list/index.cjs"),j="_sortable_178uo_1",b={sortable:j};function q({children:f,className:x,columns:o=1,onChangeOrder:n,...g}){const D=Number.isFinite(o)?Math.max(1,Math.floor(o)):1,l=e.useMemo(()=>e.Children.toArray(f),[f]),[S,m]=e.useState(l),s=e.useRef(-1);return e.useEffect(()=>m(l),[l]),p.jsx(_.List,{className:E.t(x,b.sortable,D>1&&b.columns),columns:o,ordered:!0,...g,"data-component":"sortable",children:S.map((c,a)=>{const v=e.isValidElement(c)?c.key:null;return p.jsx("li",{draggable:!0,onDragStart:t=>{s.current=a,t.dataTransfer.setData("text/plain",""),t.dataTransfer.effectAllowed="move"},onDragOver:t=>{t.preventDefault(),t.dataTransfer.dropEffect="move"},onDrop:t=>{t.preventDefault();const i=s.current;i<0||i===a||(m(y=>{const r=y.slice();return r.splice(a,0,r.splice(i,1)[0]),n==null||n(r.map((d,u)=>({id:String(e.isValidElement(d)?d.props["data-id"]??`idx-${u}`:`idx-${u}`),weight:r.length-1-u}))),r}),s.current=-1)},onDragEnd:()=>{s.current=-1},"data-component":"sortable",children:c},v??a)})})}exports.Sortable=q;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/_sortable/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\n\nimport { List } from '@/components/list';\n\nimport styles from './styles.module.css';\n\ntype SortItem = { id: string; weight: number };\n\ntype SortableProps = React.ComponentPropsWithoutRef<'ol'> & {\n columns?: number;\n onChangeOrder?: (order: SortItem[]) => void;\n};\n\n/**\n * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).\n */\n\nexport function Sortable({\n children,\n className,\n columns = 1,\n onChangeOrder,\n ...props\n}: SortableProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n const arr = useMemo(() => React.Children.toArray(children), [children]);\n const [items, setItems] = useState<React.ReactNode[]>(arr);\n const drag = useRef(-1);\n\n useEffect(() => setItems(arr), [arr]);\n\n return (\n <List\n className={cx(className, styles.sortable, cols > 1 && styles.columns)}\n columns={columns}\n ordered\n {...props}\n >\n {items.map((child, i) => {\n const key = React.isValidElement(child) ? child.key : null;\n\n return (\n <li\n key={key ?? i}\n draggable\n onDragStart={(e) => {\n drag.current = i;\n e.dataTransfer.setData('text/plain', '');\n e.dataTransfer.effectAllowed = 'move';\n }}\n onDragOver={(e) => {\n e.preventDefault();\n e.dataTransfer.dropEffect = 'move';\n }}\n onDrop={(e) => {\n e.preventDefault();\n const from = drag.current;\n if (from < 0 || from === i) return;\n\n setItems((prev) => {\n const next = prev.slice();\n next.splice(i, 0, next.splice(from, 1)[0]);\n\n onChangeOrder?.(\n next.map((c, idx) => ({\n id: String(\n React.isValidElement(c)\n ? ((c.props as { 'data-id'?: string })['data-id'] ?? `idx-${idx}`)\n : `idx-${idx}`\n ),\n weight: next.length - 1 - idx,\n }))\n );\n\n return next;\n });\n\n drag.current = -1;\n }}\n onDragEnd={() => {\n drag.current = -1;\n }}\n >\n {child}\n </li>\n );\n })}\n </List>\n );\n}\n"],"names":["Sortable","children","className","columns","onChangeOrder","props","cols","Number","isFinite","Math","max","floor","arr","useMemo","React","Children","toArray","items","setItems","useState","drag","useRef","useEffect","jsx","List","cx","styles","sortable","map","child","i","key","isValidElement","e","current","dataTransfer","setData","effectAllowed","preventDefault","dropEffect","from","prev","next","slice","splice","c","idx","id","String","weight","length"],"mappings":"oPAkBO,SAASA,EAAS,CACvBC,SAAAA,EACAC,UAAAA,EACAC,QAAAA,EAAU,EACVC,cAAAA,EACA,GAAGC,CACU,EAAG,CAChB,MAAMC,EAAOC,OAAOC,SAASL,CAAO,EAAIM,KAAKC,IAAI,EAAGD,KAAKE,MAAMR,CAAO,CAAC,EAAI,EACrES,EAAMC,UAAQ,IAAMC,EAAMC,SAASC,QAAQf,CAAQ,EAAG,CAACA,CAAQ,CAAC,EAChE,CAACgB,EAAOC,CAAQ,EAAIC,EAAAA,SAA4BP,CAAG,EACnDQ,EAAOC,EAAAA,OAAO,EAAE,EAEtBC,OAAAA,EAAAA,UAAU,IAAMJ,EAASN,CAAG,EAAG,CAACA,CAAG,CAAC,EAGlCW,MAACC,EAAAA,MACC,UAAWC,EAAAA,EAAGvB,EAAWwB,EAAOC,SAAUrB,EAAO,GAAKoB,EAAOvB,OAAO,EACpE,QAAAA,EACA,QAAO,GACP,GAAIE,EAAM,iBAAA,WAETY,SAAAA,EAAMW,IAAI,CAACC,EAAOC,IAAM,CACvB,MAAMC,EAAMjB,EAAMkB,eAAeH,CAAK,EAAIA,EAAME,IAAM,KAEtD,OACER,EAAAA,IAAC,KAAA,CAEC,UAAS,GACT,YAAcU,GAAM,CAClBb,EAAKc,QAAUJ,EACfG,EAAEE,aAAaC,QAAQ,aAAc,EAAE,EACvCH,EAAEE,aAAaE,cAAgB,MACjC,EACA,WAAaJ,GAAM,CACjBA,EAAEK,eAAAA,EACFL,EAAEE,aAAaI,WAAa,MAC9B,EACA,OAASN,GAAM,CACbA,EAAEK,eAAAA,EACF,MAAME,EAAOpB,EAAKc,QACdM,EAAO,GAAKA,IAASV,IAEzBZ,EAAUuB,GAAS,CACjB,MAAMC,EAAOD,EAAKE,MAAAA,EAClBD,OAAAA,EAAKE,OAAOd,EAAG,EAAGY,EAAKE,OAAOJ,EAAM,CAAC,EAAE,CAAC,CAAC,EAEzCpC,GAAAA,MAAAA,EACEsC,EAAKd,IAAI,CAACiB,EAAGC,KAAS,CACpBC,GAAIC,OACFlC,EAAMkB,eAAea,CAAC,EAChBA,EAAExC,MAAiC,SAAS,GAAK,OAAOyC,CAAG,GAC7D,OAAOA,CAAG,EAChB,EACAG,OAAQP,EAAKQ,OAAS,EAAIJ,CAAAA,EAC1B,GAGGJ,CACT,CAAC,EAEDtB,EAAKc,QAAU,GACjB,EACA,UAAW,IAAM,CACfd,EAAKc,QAAU,EACjB,EAAE,iBAAA,WAEDL,SAAAA,CAAAA,EAxCIE,GAAOD,CAyCd,CAEJ,CAAC,CAAA,CACH,CAEJ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { t as y } from "../../classix-DG18itHa.js";
|
|
3
|
+
import f, { useMemo as S, useState as M, useRef as T, useEffect as k } from "react";
|
|
4
|
+
import { List as w } from "../list/index.js";
|
|
5
|
+
import '../../assets/index28.css';const A = "_sortable_178uo_1", b = {
|
|
6
|
+
sortable: A
|
|
7
|
+
};
|
|
8
|
+
function j({
|
|
9
|
+
children: i,
|
|
10
|
+
className: D,
|
|
11
|
+
columns: o = 1,
|
|
12
|
+
onChangeOrder: s,
|
|
13
|
+
...g
|
|
14
|
+
}) {
|
|
15
|
+
const v = Number.isFinite(o) ? Math.max(1, Math.floor(o)) : 1, n = S(() => f.Children.toArray(i), [i]), [x, u] = M(n), r = T(-1);
|
|
16
|
+
return k(() => u(n), [n]), /* @__PURE__ */ d(w, { className: y(D, b.sortable, v > 1 && b.columns), columns: o, ordered: !0, ...g, "data-component": "sortable", children: x.map((l, a) => {
|
|
17
|
+
const E = f.isValidElement(l) ? l.key : null;
|
|
18
|
+
return /* @__PURE__ */ d("li", { draggable: !0, onDragStart: (t) => {
|
|
19
|
+
r.current = a, t.dataTransfer.setData("text/plain", ""), t.dataTransfer.effectAllowed = "move";
|
|
20
|
+
}, onDragOver: (t) => {
|
|
21
|
+
t.preventDefault(), t.dataTransfer.dropEffect = "move";
|
|
22
|
+
}, onDrop: (t) => {
|
|
23
|
+
t.preventDefault();
|
|
24
|
+
const c = r.current;
|
|
25
|
+
c < 0 || c === a || (u((_) => {
|
|
26
|
+
const e = _.slice();
|
|
27
|
+
return e.splice(a, 0, e.splice(c, 1)[0]), s == null || s(e.map((p, m) => ({
|
|
28
|
+
id: String(f.isValidElement(p) ? p.props["data-id"] ?? `idx-${m}` : `idx-${m}`),
|
|
29
|
+
weight: e.length - 1 - m
|
|
30
|
+
}))), e;
|
|
31
|
+
}), r.current = -1);
|
|
32
|
+
}, onDragEnd: () => {
|
|
33
|
+
r.current = -1;
|
|
34
|
+
}, "data-component": "sortable", children: l }, E ?? a);
|
|
35
|
+
}) });
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
j as Sortable
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/_sortable/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\n\nimport { List } from '@/components/list';\n\nimport styles from './styles.module.css';\n\ntype SortItem = { id: string; weight: number };\n\ntype SortableProps = React.ComponentPropsWithoutRef<'ol'> & {\n columns?: number;\n onChangeOrder?: (order: SortItem[]) => void;\n};\n\n/**\n * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).\n */\n\nexport function Sortable({\n children,\n className,\n columns = 1,\n onChangeOrder,\n ...props\n}: SortableProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n const arr = useMemo(() => React.Children.toArray(children), [children]);\n const [items, setItems] = useState<React.ReactNode[]>(arr);\n const drag = useRef(-1);\n\n useEffect(() => setItems(arr), [arr]);\n\n return (\n <List\n className={cx(className, styles.sortable, cols > 1 && styles.columns)}\n columns={columns}\n ordered\n {...props}\n >\n {items.map((child, i) => {\n const key = React.isValidElement(child) ? child.key : null;\n\n return (\n <li\n key={key ?? i}\n draggable\n onDragStart={(e) => {\n drag.current = i;\n e.dataTransfer.setData('text/plain', '');\n e.dataTransfer.effectAllowed = 'move';\n }}\n onDragOver={(e) => {\n e.preventDefault();\n e.dataTransfer.dropEffect = 'move';\n }}\n onDrop={(e) => {\n e.preventDefault();\n const from = drag.current;\n if (from < 0 || from === i) return;\n\n setItems((prev) => {\n const next = prev.slice();\n next.splice(i, 0, next.splice(from, 1)[0]);\n\n onChangeOrder?.(\n next.map((c, idx) => ({\n id: String(\n React.isValidElement(c)\n ? ((c.props as { 'data-id'?: string })['data-id'] ?? `idx-${idx}`)\n : `idx-${idx}`\n ),\n weight: next.length - 1 - idx,\n }))\n );\n\n return next;\n });\n\n drag.current = -1;\n }}\n onDragEnd={() => {\n drag.current = -1;\n }}\n >\n {child}\n </li>\n );\n })}\n </List>\n );\n}\n"],"names":["Sortable","children","className","columns","onChangeOrder","props","cols","Number","isFinite","Math","max","floor","arr","useMemo","React","Children","toArray","items","setItems","useState","drag","useRef","useEffect","jsx","List","cx","styles","sortable","map","child","i","key","isValidElement","e","current","dataTransfer","setData","effectAllowed","preventDefault","dropEffect","from","prev","next","slice","splice","c","idx","id","String","weight","length"],"mappings":";;;;;;;AAkBO,SAASA,EAAS;AAAA,EACvBC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,SAAAA,IAAU;AAAA,EACVC,eAAAA;AAAAA,EACA,GAAGC;AACU,GAAG;AAChB,QAAMC,IAAOC,OAAOC,SAASL,CAAO,IAAIM,KAAKC,IAAI,GAAGD,KAAKE,MAAMR,CAAO,CAAC,IAAI,GACrES,IAAMC,EAAQ,MAAMC,EAAMC,SAASC,QAAQf,CAAQ,GAAG,CAACA,CAAQ,CAAC,GAChE,CAACgB,GAAOC,CAAQ,IAAIC,EAA4BP,CAAG,GACnDQ,IAAOC,EAAO,EAAE;AAEtBC,SAAAA,EAAU,MAAMJ,EAASN,CAAG,GAAG,CAACA,CAAG,CAAC,GAGlC,gBAAAW,EAACC,KACC,WAAWC,EAAGvB,GAAWwB,EAAOC,UAAUrB,IAAO,KAAKoB,EAAOvB,OAAO,GACpE,SAAAA,GACA,SAAO,IACP,GAAIE,GAAM,kBAAA,YAETY,UAAAA,EAAMW,IAAI,CAACC,GAAOC,MAAM;AACvB,UAAMC,IAAMjB,EAAMkB,eAAeH,CAAK,IAAIA,EAAME,MAAM;AAEtD,WACE,gBAAAR,EAAC,MAAA,EAEC,WAAS,IACT,aAAcU,CAAAA,MAAM;AAClBb,MAAAA,EAAKc,UAAUJ,GACfG,EAAEE,aAAaC,QAAQ,cAAc,EAAE,GACvCH,EAAEE,aAAaE,gBAAgB;AAAA,IACjC,GACA,YAAaJ,CAAAA,MAAM;AACjBA,MAAAA,EAAEK,eAAAA,GACFL,EAAEE,aAAaI,aAAa;AAAA,IAC9B,GACA,QAASN,CAAAA,MAAM;AACbA,MAAAA,EAAEK,eAAAA;AACF,YAAME,IAAOpB,EAAKc;AAClB,MAAIM,IAAO,KAAKA,MAASV,MAEzBZ,EAAUuB,CAAAA,MAAS;AACjB,cAAMC,IAAOD,EAAKE,MAAAA;AAClBD,eAAAA,EAAKE,OAAOd,GAAG,GAAGY,EAAKE,OAAOJ,GAAM,CAAC,EAAE,CAAC,CAAC,GAEzCpC,KAAAA,QAAAA,EACEsC,EAAKd,IAAI,CAACiB,GAAGC,OAAS;AAAA,UACpBC,IAAIC,OACFlC,EAAMkB,eAAea,CAAC,IAChBA,EAAExC,MAAiC,SAAS,KAAK,OAAOyC,CAAG,KAC7D,OAAOA,CAAG,EAChB;AAAA,UACAG,QAAQP,EAAKQ,SAAS,IAAIJ;AAAAA,QAAAA,EAC1B,IAGGJ;AAAAA,MACT,CAAC,GAEDtB,EAAKc,UAAU;AAAA,IACjB,GACA,WAAW,MAAM;AACfd,MAAAA,EAAKc,UAAU;AAAA,IACjB,GAAE,kBAAA,YAEDL,UAAAA,EAAAA,GAxCIE,KAAOD,CAyCd;AAAA,EAEJ,CAAC,EAAA,CACH;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index29.css');const u=require("react/jsx-runtime"),i=require("react"),w=require("../toast/index.cjs"),p="_toasts_m9a8k_1",h={toasts:p},T=({defaultDurationMs:r=5e3,onRemove:m,toasts:n})=>{const d=i.useRef(new Map),[a,l]=i.useState(new Set),c=i.useCallback(e=>{l(s=>s.has(e)?s:new Set(s).add(e))},[]);return i.useEffect(()=>{const e=d.current,s=new Set(n.map(t=>t.id));l(t=>{const o=new Set([...t].filter(f=>s.has(f)));return o.size===t.size?t:o});for(const t of n){if(a.has(t.id)||e.has(t.id))continue;const o=t.durationMs??r;e.set(t.id,window.setTimeout(()=>{c(t.id)},o))}for(const[t,o]of e)s.has(t)&&!a.has(t)||(window.clearTimeout(o),e.delete(t))},[a,r,c,n]),i.useEffect(()=>{const e=d.current;return()=>{for(const s of e.values())window.clearTimeout(s);e.clear()}},[]),n.length?u.jsx("div",{className:h.toasts,"data-component":"toasts",children:n.map(e=>u.jsx(w.Toast,{label:e.label,onClick:()=>c(e.id),onExitComplete:()=>m(e.id),open:!a.has(e.id),type:e.type},e.id))}):null};exports.Toasts=T;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as p, useState as w, useCallback as h, useEffect as l } from "react";
|
|
3
3
|
import { Toast as T } from "../toast/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index29.css';const v = "_toasts_m9a8k_1", S = {
|
|
5
5
|
toasts: v
|
|
6
6
|
}, g = ({
|
|
7
7
|
defaultDurationMs: c = 5e3,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const e=require("react/jsx-runtime"),d=require("../_card/index.cjs"),i="_widget_1dptd_1",n={widget:i},s=({children:t})=>e.jsx("div",{className:n.widget,"data-component":"widget",children:e.jsx(d.Card,{children:t})});exports.Widget=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Card as e } from "../_card/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index19.css';const i = "_widget_1dptd_1", o = {
|
|
4
4
|
widget: i
|
|
5
5
|
}, n = ({
|
|
6
6
|
children: d
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const o=require("react/jsx-runtime"),s=require("../icon/index.cjs"),i="_accordion_1mzhl_1",t={accordion:i},d=({children:e,icon:c,label:n,open:r})=>o.jsxs("details",{className:t.accordion,open:r||void 0,"data-component":"accordion",children:[o.jsxs("summary",{children:[c&&o.jsx(s.Icon,{name:c}),n&&n]}),e]});exports.Accordion=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as d } from "../icon/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index18.css';const i = "_accordion_1mzhl_1", t = {
|
|
4
4
|
accordion: i
|
|
5
5
|
}, p = ({
|
|
6
6
|
children: r,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const l=require("react/jsx-runtime"),s=require("../../classix-5H4IWnMA.cjs"),a=require("../link/index.cjs"),t="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e",p="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e",i="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e",g="_apple_1m7d3_17",h="_google_1m7d3_49",e={"app-link":"_app-link_1m7d3_1",apple:g,google:h},n=({label:o,type:c})=>l.jsxs(a.Link,{to:c==="apple"?"https://apps.apple.com/app/6478964287":"https://play.google.com/store/apps/details?id=no.solibo.mobile.home",className:s.t(e["app-link"],e[c]),"data-component":"applink",children:[c==="apple"?l.jsx("img",{src:t,alt:"App Store logo"}):l.jsx("img",{src:i,alt:"Google Play logo"}),l.jsxs("div",{children:[l.jsx("span",{children:o}),l.jsx("span",{children:c==="google"?l.jsx("img",{src:p,alt:"Google Play"}):"App Store"})]})]});exports.AppLink=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { t as e } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Link as t } from "../link/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index17.css';const s = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e", g = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e", h = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e", m = "_apple_1m7d3_17", i = "_google_1m7d3_49", a = {
|
|
5
5
|
"app-link": "_app-link_1m7d3_1",
|
|
6
6
|
apple: m,
|
|
7
7
|
google: i
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index30.css');const c=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),d="_aside_9cfhj_1",o="_meta_9cfhj_9",r="_sticky_9cfhj_27",t={aside:d,meta:o,sticky:r},u={default:t.default,meta:t.meta},l=({children:s,className:e,sticky:a=!1,variant:i="default"})=>c.jsx("aside",{className:n.t(e&&e,t.aside,a&&t.sticky,u[i]),"data-component":"aside",children:s});exports.Aside=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { t as o } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index30.css';const d = "_aside_9cfhj_1", m = "_meta_9cfhj_9", n = "_sticky_9cfhj_27", t = {
|
|
4
4
|
aside: d,
|
|
5
5
|
meta: m,
|
|
6
6
|
sticky: n
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const n=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),s="_badge_7j4yg_1",o="_primary_7j4yg_8",i="_info_7j4yg_13",e={badge:s,primary:o,info:i},c={default:e.default,primary:e.primary,info:e.info},d=({children:a,variant:t="default"})=>n.jsx("span",{className:r.t(e.badge,c[t]),"data-component":"badge",children:a});exports.Badge=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index16.css';const e = "_badge_7j4yg_1", i = "_primary_7j4yg_8", s = "_info_7j4yg_13", a = {
|
|
4
4
|
badge: e,
|
|
5
5
|
primary: i,
|
|
6
6
|
info: s
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const t=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),b=require("../button/index.cjs"),u="_banner_vu5j6_13",o="_visible_vu5j6_34",r={banner:u,visible:o},v=({button:a,message:s,onClick:e,onDismiss:n,visible:c=!1})=>{const i=()=>{e==null||e(),n==null||n()};return t.jsxs("div",{"aria-live":"assertive",className:l.t(r.banner,c&&r.visible),"data-component":"banner",children:[s,t.jsx(b.Button,{onClick:i,children:a})]})};exports.Banner=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as v, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { t as c } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Button as i } from "../button/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index15.css';const s = "_banner_vu5j6_13", _ = "_visible_vu5j6_34", n = {
|
|
5
5
|
banner: s,
|
|
6
6
|
visible: _
|
|
7
7
|
}, j = ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index31.css');const e=require("react/jsx-runtime"),h=require("../../classix-5H4IWnMA.cjs");function l(c){return`url("data:image/svg+xml, ${encodeURI(c)}")`}const v={logo:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="212.84 265.6 645.02 573.4"><g><path d="m212.84 681.26 8.86-19.64c9.5 6.92 23.67 11.75 37.19 11.75 15.46 0 21.74-5.15 21.74-12.07 0-21.1-65.54-6.6-65.54-48.47 0-19.16 15.46-35.11 47.51-35.11 14.17 0 28.66 3.39 39.13 10l-8.06 19.81c-10.46-6-21.25-8.86-31.24-8.86-15.45 0-21.41 5.8-21.41 12.88 0 20.77 65.54 6.44 65.54 47.82 0 18.84-15.62 34.95-47.83 34.95-17.87 0-35.91-5.32-45.89-13M317.33 636c0-33.5 26.09-58.3 61.68-58.3 35.42 0 61.67 24.64 61.67 58.3s-26.25 58.31-61.68 58.31c-35.59 0-61.68-24.8-61.68-58.29m96.94 0C414.27 614.6 399.14 600 379 600s-35.26 14.6-35.26 36 15.14 36.07 35.27 36.07 35.26-14.66 35.26-36.07m46.04-56.34h26.09v91.46h56.52v21.26h-82.61zm105.3 0h26.09v112.72h-26.09zm156.19 81.96c0 19.48-15.46 30.75-45.08 30.75h-58.3V579.65h55.08c28.18 0 42.67 11.76 42.67 29.31a27.1 27.1 0 0 1-15 24.8c12.56 4 20.61 13.69 20.61 27.86m-77.43-62.32v26.57h25.93c12.72 0 19.64-4.51 19.64-13.36S683 599.3 670.28 599.3Zm51.21 59.58c0-9.5-7.25-14-20.78-14h-30.43v27.86h30.43c13.53 0 20.78-4.19 20.78-13.85M734.51 636c0-33.5 26.09-58.3 61.68-58.3 35.43 0 61.67 24.64 61.67 58.3s-26.24 58.29-61.67 58.29c-35.59 0-61.68-24.8-61.68-58.29m96.94 0c0-21.42-15.13-36.07-35.26-36.07S760.92 614.6 760.92 636s15.14 36.07 35.27 36.07 35.26-14.66 35.26-36.07M535.93 406.9a30.06 30.06 0 1 0-30-30 30.05 30.05 0 0 0 30 30m41.29 72.66v-24.08a41.29 41.29 0 0 0-82.58 0v94.22l28.83-42.58h53.78Z" class="cls-1"/><path d="M675.26 507.22H519.83c-4.07 0 2.55-3.3 2.55-7.36l20-16.14a7.36 7.36 0 0 1 7.36-7.36h94.66a7.37 7.37 0 0 0 7.36-7.36V363.24a7.36 7.36 0 0 0-4-6.55L539 301.09a7.34 7.34 0 0 0-6.72 0L423.74 357a7.37 7.37 0 0 0-4 6.54V469a7.37 7.37 0 0 0 7.37 7.36h29.22v30.86h-60.09a7.37 7.37 0 0 1-7.36-7.36V344.68a7.38 7.38 0 0 1 4-6.55l139.35-71.72a7.37 7.37 0 0 1 6.72 0l139.67 71.4a7.37 7.37 0 0 1 4 6.56v155.5a7.37 7.37 0 0 1-7.36 7.36M380.2 789.7h-53.93v42.19c0 4.76-3.35 5.59-5 5.59s-5-.83-5-5.59v-89.7c0-4.75 3.35-5.59 5-5.59s5 .84 5 5.59v38.29h53.93v-38.29c0-4.75 3.36-5.59 5-5.59s5 .84 5 5.59v89.7c0 4.76-3.35 5.59-5 5.59s-5-.83-5-5.59Zm82.58 49.3c-29.48 0-51.56-21.94-51.56-52s22.08-52 51.56-52 51.56 21.93 51.56 52-22.08 52-51.56 52m0-95.15c-25.43 0-40.94 20.12-40.94 43.17s15.51 43 40.94 43 40.94-20 40.94-43-15.51-43.15-40.94-43.15Zm165.01 93.63c-1.67 0-5-.83-5-5.59v-72.51h-.28l-32.27 73.77a6.53 6.53 0 0 1-12.3 0l-32.3-73.35h-.28v72.09c0 4.76-3.36 5.59-5 5.59s-5-.83-5-5.59v-88.44c0-5.73 4.05-6.85 6.14-6.85s4.75.7 6.85 5.45l35.91 82h.14l35.49-82c2.1-4.75 4.75-5.45 6.85-5.45s6.14 1.12 6.14 6.85v88.44c-.06 4.76-3.41 5.59-5.09 5.59m41.36-48.06v38.14h49c4.2 0 4.89 3.08 4.89 4.48s-.69 4.47-4.89 4.47H665.1c-4.05 0-6-2-6-6v-86.92c0-4.05 2-6 6-6h51.42c4.19 0 4.89 3.07 4.89 4.47s-.7 4.47-4.89 4.47h-47.37v34.1h44c4.2 0 4.89 3.07 4.89 4.33s-.69 4.47-4.89 4.47Z"/></g></svg>'},g="_branding_gm1tj_1",i="_white_gm1tj_11",t={branding:g,default:"_default_gm1tj_7",white:i},m={default:t.default,white:t.white},r=({name:c="logo",size:a=128,variant:s="default"})=>{const n={height:a,maskImage:l(v[c].toString()),width:a};return e.jsx("span",{className:h.t(t.branding,m[s]),style:n,"data-component":"branding"})};exports.Branding=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { t as m } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index31.css';function v(a) {
|
|
4
4
|
return `url("data:image/svg+xml, ${encodeURI(a)}")`;
|
|
5
5
|
}
|
|
6
6
|
const e = {
|