@solibo/solibo-ui 1.1.7 → 1.2.0
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/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- 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 -0
- package/dist/assets/index20.css +0 -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/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/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index50.css +1 -1
- package/dist/assets/index51.css +1 -1
- package/dist/assets/index52.css +1 -0
- package/dist/assets/index53.css +1 -0
- package/dist/assets/index54.css +1 -0
- package/dist/assets/index9.css +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +1 -1
- package/dist/components/app-shell/index.cjs +2 -0
- package/dist/components/app-shell/index.cjs.map +1 -0
- package/dist/components/app-shell/index.js +18 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/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/card/index.cjs +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.js +1 -1
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.js +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/divider/index.cjs +2 -0
- package/dist/components/divider/index.cjs.map +1 -0
- package/dist/components/divider/index.js +12 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +3 -3
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.js +1 -1
- package/dist/components/editor/index.cjs +1 -1
- package/dist/components/editor/index.js +2 -2
- package/dist/components/empty-state/index.cjs +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/fieldset/index.cjs +1 -1
- package/dist/components/fieldset/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/footer/index.cjs +1 -1
- package/dist/components/footer/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.js +1 -1
- package/dist/components/iframe/index.cjs +1 -1
- package/dist/components/iframe/index.js +1 -1
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +1 -1
- 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.js +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 +1 -1
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.js +1 -1
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.cjs.map +1 -1
- package/dist/components/nav/index.js +47 -34
- package/dist/components/nav/index.js.map +1 -1
- package/dist/components/object/index.cjs +1 -1
- package/dist/components/object/index.js +1 -1
- package/dist/components/page-layout/index.cjs +2 -0
- package/dist/components/page-layout/index.cjs.map +1 -0
- package/dist/components/page-layout/index.js +23 -0
- package/dist/components/page-layout/index.js.map +1 -0
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/toolbar/index.cjs +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/{index-CwIzKfBo.js → index-BLb3JiCr.js} +2 -2
- package/dist/{index-CwIzKfBo.js.map → index-BLb3JiCr.js.map} +1 -1
- package/dist/{index-CXaYq0By.cjs → index-Bt7vnwji.cjs} +2 -2
- package/dist/{index-CXaYq0By.cjs.map → index-Bt7vnwji.cjs.map} +1 -1
- package/dist/index-CQlMdqOp.cjs +2 -0
- package/dist/index-CQlMdqOp.cjs.map +1 -0
- package/dist/index-CbJ2-IPc.js +83 -0
- package/dist/index-CbJ2-IPc.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +29 -2
- package/dist/index.js +109 -102
- package/dist/index.js.map +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
- package/dist/index-5yOssOic.cjs +0 -2
- package/dist/index-5yOssOic.cjs.map +0 -1
- package/dist/index-Cv6TtBnd.js +0 -76
- package/dist/index-Cv6TtBnd.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/divider/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type DividerProps = React.ComponentPropsWithoutRef<'hr'>;\n\nexport const Divider = ({ className, ...props }: DividerProps) => (\n <hr\n className={cx(styles.divider, className)}\n {...props}\n />\n);\n"],"names":["Divider","className","props","jsx","cx","styles","divider"],"mappings":"gMAMaA,EAAUA,CAAC,CAAEC,UAAAA,EAAW,GAAGC,CAAoB,IAC1DC,MAAC,KAAA,CACC,UAAWC,EAAAA,EAAGC,EAAOC,QAASL,CAAS,EACvC,GAAIC,EAAM,iBAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as e } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index39.css';const o = "_divider_1fgyv_1", t = {
|
|
4
|
+
divider: o
|
|
5
|
+
}, m = ({
|
|
6
|
+
className: i,
|
|
7
|
+
...d
|
|
8
|
+
}) => /* @__PURE__ */ r("hr", { className: e(t.divider, i), ...d, "data-component": "divider" });
|
|
9
|
+
export {
|
|
10
|
+
m as Divider
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/divider/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type DividerProps = React.ComponentPropsWithoutRef<'hr'>;\n\nexport const Divider = ({ className, ...props }: DividerProps) => (\n <hr\n className={cx(styles.divider, className)}\n {...props}\n />\n);\n"],"names":["Divider","className","props","jsx","cx","styles","divider"],"mappings":";;;;GAMaA,IAAUA,CAAC;AAAA,EAAEC,WAAAA;AAAAA,EAAW,GAAGC;AAAoB,MAC1D,gBAAAC,EAAC,MAAA,EACC,WAAWC,EAAGC,EAAOC,SAASL,CAAS,GACvC,GAAIC,GAAM,kBAAA,UAAA,CAAA;"}
|
|
@@ -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/index40.css');const l=require("react/jsx-runtime"),j=require("../../classix-5H4IWnMA.cjs"),a=require("react"),k=require("../button/index.cjs"),de=require("../../icons-Dv_p0bUF.cjs"),X=require("../../index-CQlMdqOp.cjs"),pe=require("../list/index.cjs"),E=require("../../index-Bt7vnwji.cjs");function V(t){return typeof t=="string"||typeof t=="number"?String(t):Array.isArray(t)?t.map(V).join(" "):a.isValidElement(t)?V(t.props.children):""}function fe(t){return a.isValidElement(t)&&t.type==="option"}function me(t){return a.isValidElement(t)&&t.type==="optgroup"}function _e(t){return a.isValidElement(t)&&t.type===a.Fragment}function he(t){return a.isValidElement(t)&&t.type===E.Select}function F(t,i,r=!1){const s=[];return a.Children.forEach(t,n=>{if(_e(n))s.push(...F(n.props.children,i,r));else if(fe(n)){const c=V(n.props.children).trim(),f=n.props.value!=null?String(n.props.value):c;s.push({disabled:r||!!n.props.disabled,groupLabel:i,hidden:!!n.props.hidden,isPlaceholder:!!(n.props.hidden&&f===""),label:n.props.children,selected:!!n.props.selected,text:c,value:f})}else me(n)&&s.push(...F(n.props.children,n.props.label,r||!!n.props.disabled))}),s}function ge(t){const i=t.trim();if(!i)return null;const s=[.../[*?]/.test(i)?i:`*${i}*`].map(n=>n==="*"?".*":n==="?"?".":n.replace(/[|\\{}()[\]^$+.,]/g,"\\$&")).join("");return new RegExp(`^${s}$`,"i")}function xe(t,i){const r=ge(i),s=t.filter(n=>!n.hidden&&!n.isPlaceholder);return r?s.filter(n=>r.test([n.groupLabel,n.text,n.value].filter(Boolean).join(" "))):s}function be(t,i){return t.find(r=>r.value===i)??t.find(r=>r.isPlaceholder)??t[0]}function je(t,i,r){var s,n;return i!=null?String(i):r!=null?String(r):((s=t.find(c=>c.selected))==null?void 0:s.value)??((n=t[0])==null?void 0:n.value)??""}function ve(t){if(he(t)){const{children:i,placeholder:r,...s}=t.props;return{children:l.jsxs(l.Fragment,{children:[r&&l.jsx("option",{hidden:!0,value:"",children:r}),i]}),props:s}}return{children:t.props.children,props:t.props}}const ye="_combobox_149jz_3",we="_dropdown_149jz_27",Se="_empty_149jz_32",ze="_group_149jz_33",Ne="_placeholder_149jz_34",Ce="_filter_149jz_42",Ee="_native_149jz_53",Ve="_option_149jz_63",Le="_options_149jz_84",Re="_panel_149jz_108",$e="_selected_149jz_133",Be="_text_149jz_137",Ie="_trigger_149jz_145",qe="_minimal_149jz_182",De="_inline_149jz_241",Pe="_label_149jz_273",o={combobox:ye,"combobox-input":"_combobox-input_149jz_12",dropdown:we,empty:Se,group:ze,placeholder:Ne,filter:Ce,native:Ee,option:Ve,options:Le,panel:Re,selected:$e,text:Be,trigger:Ie,minimal:qe,inline:De,label:Pe,"inline-field":"_inline-field_149jz_279"};function Y(t,i){return{"--icon-svg":de.iconSVG(t,i)}}const ke=({children:t,className:i,combobox:r=!1,createOption:s,emptyLabel:n="No matches found",label:c,renderOption:f,searchPlaceholder:L="Filter",selectedItems:Z,variant:g="default",...ee})=>{const R=ve(t),{defaultValue:te,onChange:$,value:B,...ne}=R.props,v=E.sanitizeSelectProps(ne),{className:re,...se}=v,M=a.useRef(null),W=a.useRef(null),y=a.useId(),G=a.useRef(null),m=a.useRef(null),x=F(R.children),b=B!=null,I=je(x,B,te),[q,D]=a.useState(()=>I),[u,p]=a.useState(!1),[w,S]=a.useState(""),z=b?String(B):q,Q={default:E.resolveColor("--colors-semantic-content-secondary"),white:E.resolveColor("--color-white","white")},O=g==="minimal"?Q.white:Q.default,N=be(x,z),le=Y("CaretDown",O),oe=Y("MagnifyingGlass",O),T=xe(x,w),_=w.trim(),C=!!(r&&s&&_&&s.isValid(_)),ie=c&&g==="inline"?X.formatInlineLabel(c):c,A=e=>e?(f==null?void 0:f({groupLabel:e.groupLabel,isSelected:e.value===z,label:e.label,text:e.text,value:e.value}))??e.label:"Select an option";a.useEffect(()=>{!b&&!x.some(e=>e.value===q)&&D(I)},[I,q,b,x]),a.useEffect(()=>{var e;if(!u){S("");return}(e=m.current)==null||e.focus()},[u]),a.useEffect(()=>{if(!u)return;const e=d=>{var h;(h=W.current)!=null&&h.contains(d.target)||p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u]);const ae=e=>{b||D(e.target.value),$==null||$(e)},P=()=>{var e;p(!1),r||(e=M.current)==null||e.focus()},K=()=>{var e;S(""),p(!0),(e=m.current)==null||e.focus()},H=()=>{!s||!C||(s.onCreate(_),K())},ce=e=>{var U;b||D(e);const d=G.current;if(!d){P();return}const h=(U=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:U.set;h==null||h.call(d,e),d.dispatchEvent(new Event("change",{bubbles:!0})),r?K():P()},ue=e=>{e.key==="Escape"&&P(),e.key==="Enter"&&e.target===m.current&&C&&(e.preventDefault(),H())},J=l.jsxs("div",{className:j.t(o.dropdown,g==="inline"&&o.inline,g==="minimal"&&o.minimal,i),onKeyDown:ue,ref:W,...ee,children:[l.jsx("select",{...se,"aria-hidden":"true",className:j.t(o.native,re),onChange:ae,ref:G,tabIndex:-1,value:z,children:R.children}),r?l.jsxs("div",{className:o.combobox,onClick:()=>{var e;return(e=m.current)==null?void 0:e.focus()},children:[Z,l.jsx("input",{"aria-autocomplete":"list","aria-expanded":u,"aria-label":v["aria-label"]??c??L,className:o["combobox-input"],disabled:v.disabled,onChange:e=>{S(e.target.value),p(!0)},onClick:()=>p(!0),onFocus:()=>p(!0),placeholder:L||void 0,ref:m,role:"combobox",type:"text",value:w})]}):l.jsx(k.Button,{"aria-expanded":u,"aria-haspopup":"dialog","aria-labelledby":c?`${y} ${y}-value`:void 0,className:j.t(o.trigger,(N==null?void 0:N.isPlaceholder)&&o.placeholder),"data-open":u?"true":void 0,disabled:v.disabled,onClick:()=>p(e=>!e),ref:M,style:le,variant:"tertiary",children:l.jsx("span",{className:o.text,id:`${y}-value`,children:A(N)})}),u&&l.jsxs("div",{className:o.panel,children:[!r&&l.jsx(X.Input,{"aria-label":"Filter",className:o.filter,icon:"MagnifyingGlass",onChange:e=>S(e.target.value),placeholder:L,ref:m,style:oe,type:"search",value:w}),l.jsxs(pe.List,{"aria-label":"Dropdown",className:o.options,children:[T.map(e=>{const d=e.value===z;return l.jsx("li",{"data-component":"dropdown",children:l.jsxs(k.Button,{"aria-label":d?`${e.text}, selected`:e.text,className:j.t(o.option,d&&o.selected),disabled:e.disabled,onClick:()=>ce(e.value),variant:"tertiary",children:[l.jsx("span",{className:o.text,children:A(e)}),e.groupLabel&&l.jsx("small",{className:o.group,children:e.groupLabel})]})},`${e.groupLabel??"root"}-${e.value}`)}),C&&s&&l.jsx("li",{children:l.jsx(k.Button,{"aria-label":V(s.render(_))||_,className:o.option,onClick:H,variant:"tertiary",children:l.jsx("span",{className:o.text,children:s.render(_)})})}),T.length===0&&!C&&l.jsx("li",{className:o.empty,children:n})]})]})]});return c?l.jsxs("div",{className:j.t(o.label,g==="inline"&&o["inline-field"]),"data-component":"dropdown",children:[l.jsx("span",{id:y,children:ie}),J]}):J};exports.Dropdown=ke;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -3,10 +3,10 @@ import { t as y } from "../../classix-DG18itHa.js";
|
|
|
3
3
|
import _e, { Children as he, isValidElement as x, useRef as V, useId as ge, useState as M, useEffect as W } from "react";
|
|
4
4
|
import { Button as G } from "../button/index.js";
|
|
5
5
|
import { i as be } from "../../icons-dUP7sKyt.js";
|
|
6
|
-
import { f as ve, I as ye } from "../../index-
|
|
6
|
+
import { f as ve, I as ye } from "../../index-CbJ2-IPc.js";
|
|
7
7
|
import { List as xe } from "../list/index.js";
|
|
8
|
-
import { S as we, s as je, r as ee } from "../../index-
|
|
9
|
-
import '../../assets/
|
|
8
|
+
import { S as we, s as je, r as ee } from "../../index-BLb3JiCr.js";
|
|
9
|
+
import '../../assets/index40.css';function I(t) {
|
|
10
10
|
return typeof t == "string" || typeof t == "number" ? String(t) : Array.isArray(t) ? t.map(I).join(" ") : x(t) ? I(t.props.children) : "";
|
|
11
11
|
}
|
|
12
12
|
function ze(t) {
|
|
@@ -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/index41.css');const i=require("react/jsx-runtime"),b=require("../../classix-5H4IWnMA.cjs"),F=require("react"),q=require("../button/index.cjs"),I=require("../icon/index.cjs"),R="_dropzone_1rpsf_1",S="_dragging_1rpsf_19",T="_minimal_1rpsf_23",g={dropzone:R,dragging:S,minimal:T},k=({accepts:D,label:m="Select files",maxFileSize:_,multiple:u=!1,onChange:n,onValidation:a,variant:p="default",...y})=>{const f=F.useRef(null),[x,o]=F.useState(!1),c=e=>{e.preventDefault(),e.stopPropagation()},v=e=>{const t=f.current;if(!t)return;const s=new DataTransfer;for(const r of e)s.items.add(r);t.files=s.files,n==null||n({target:t,currentTarget:t})},z=e=>{const{validFiles:t,emptyFiles:s,oversizedFiles:r}=e.reduce((d,l)=>(l.size===0?d.emptyFiles.push(l):_&&l.size>_?d.oversizedFiles.push(l):d.validFiles.push(l),d),{validFiles:[],emptyFiles:[],oversizedFiles:[]});return(s.length>0||r.length>0)&&(a==null||a(s,r)),t},j=e=>{c(e),o(!1);const t=Array.from(e.dataTransfer.files??[]),s=z(t);if(s.length===0)return;const r=u?s:s.slice(0,1);v(r)},h=e=>{const t=Array.from(e.target.files??[]),s=z(t);if(s.length===t.length){n==null||n(e);return}const r=u?s:s.slice(0,1);v(r)};return i.jsx("div",{className:b.t(g.dropzone,g[p],x&&g.dragging),onDragEnter:e=>{c(e),o(!0)},onDragOver:e=>{c(e),o(!0)},onDragLeave:e=>{c(e),o(!1)},onDrop:j,...y,"data-component":"dropzone",children:i.jsxs("label",{children:[i.jsx("input",{accept:D,"aria-label":m,hidden:!0,multiple:u,onChange:h,ref:f,type:"file"}),i.jsx(I.Icon,{name:"UploadSimple",size:p==="minimal"?"medium":"large"}),i.jsx("br",{}),p!=="minimal"&&i.jsx(q.Button,{onClick:()=>{var e;return(e=f.current)==null?void 0:e.click()},type:"button",children:m})]})})};exports.Dropzone=k;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -3,7 +3,7 @@ import { t as T } from "../../classix-DG18itHa.js";
|
|
|
3
3
|
import { useRef as j, useState as k } from "react";
|
|
4
4
|
import { Button as x } from "../button/index.js";
|
|
5
5
|
import { Icon as A } from "../icon/index.js";
|
|
6
|
-
import '../../assets/
|
|
6
|
+
import '../../assets/index41.css';const R = "_dropzone_1rpsf_1", S = "_dragging_1rpsf_19", w = "_minimal_1rpsf_23", u = {
|
|
7
7
|
dropzone: R,
|
|
8
8
|
dragging: S,
|
|
9
9
|
minimal: w
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/index42.css');var E0=Object.defineProperty;var k0=(n,e,t)=>e in n?E0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Mt=(n,e,t)=>k0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react/jsx-runtime"),R=require("react"),eo=require("react-dom"),Jr=require("../../classix-5H4IWnMA.cjs"),N0=require("../file/index.cjs"),Le=require("../button/index.cjs"),Je=require("../icon/index.cjs"),to=require("../../index-CQlMdqOp.cjs"),A0=require("../toolbar/index.cjs");function O0(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 Zu=O0(R);function xn(n){return{}}const Cu={},I0={},Ua={},jt={},ln={},zn={},cn={},rr={},mi={},$n={},Wn={},We={},is={},ss={},D0={},za={},P0={},$a={},L0={},Wa={},Ha={},Zr={},M0={},Va={},Ga={},Ka={},R0={},B0={},F0={},no={},Ja={},j0={},Za={},Xa={},q0={},Eu={},os={},bi={},U0={},z0={},Tr={},Cr={},$0={},W0={},H0={},Ve=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,V0=Ve&&"documentMode"in document?document.documentMode:null,je=Ve&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ct=Ve&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Xr=!(!Ve||!("InputEvent"in window)||V0)&&"getTargetRanges"in new window.InputEvent("input"),ku=Ve&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ur=Ve&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,G0=Ve&&/Android/.test(navigator.userAgent),Qa=Ve&&/^(?=.*Chrome).*/i.test(navigator.userAgent),K0=Ve&&G0&&Qa,as=Ve&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Qa,ir=1,Nt=3,Ut=0,Ya=1,hn=2,J0=0,Z0=1,X0=2,Qr=4,Yr=8,ls=128,Q0=112|(3|Qr|Yr)|ls,cs=1,fs=2,ds=3,hs=4,ps=5,gs=6,Nu=ku||ur||as?" ":"",lt=`
|
|
2
2
|
|
|
3
3
|
`,Y0=Ct?" ":Nu,el="֑-߿יִ-﷽ﹰ-ﻼ",tl="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",ef=new RegExp("^[^"+tl+"]*["+el+"]"),tf=new RegExp("^[^"+el+"]*["+tl+"]"),zt={bold:1,code:16,highlight:ls,italic:2,strikethrough:Qr,subscript:32,superscript:64,underline:Yr},nf={directionless:1,unmergeable:2},ro={center:fs,end:gs,justify:hs,left:cs,right:ds,start:ps},rf={[fs]:"center",[gs]:"end",[hs]:"justify",[cs]:"left",[ds]:"right",[ps]:"start"},uf={normal:0,segmented:2,token:1},sf={[J0]:"normal",[X0]:"segmented",[Z0]:"token"};function of(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var M=of(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 eu(...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 af=100;let yi=!1,ms=0;function lf(n){ms=n.timeStamp}function Xu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&Ou(n,t)!==void 0}function cf(n,e,t){const r=Be(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&vs(e,s,u,i,!1)}function ff(n,e,t){if(D(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===Nt&&t.isAttached()}function df(n,e,t,r){for(let u=n;u&&!Ef(u);u=or(u)){const i=Ou(u,e);if(i!==void 0){const s=he(i,t);if(s)return ue(s)?void 0:[u,s]}else if(u===r)return[r,cl(t)]}}function nl(n,e,t){yi=!0;const r=performance.now()-ms>af;try{Ae(n,()=>{const u=z()||function(c){return c.getEditorState().read(()=>{const d=z();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=df(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&P(b)&&ff(u,m,b)&&cf(m,b,n);else if(p==="childList"){l=!0;const v=d.addedNodes;for(let T=0;T<v.length;T++){const I=v[T],C=al(I),L=I.parentNode;if(L!=null&&I!==a&&C===null&&!Xu(I,L,n)){if(Ct){const $=I.innerText||I.nodeValue;$&&(f+=$)}L.removeChild(I)}}const w=d.removedNodes,S=w.length;if(S>0){let T=0;for(let I=0;I<S;I++){const C=w[I];(Xu(C,m,n)||a===C)&&(m.appendChild(C),T++)}S!==T&&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"||Xu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,Re(u)),Ct&&pl(n)&&u.insertRawText(f))})}finally{yi=!1}}function rl(n){const e=n._observer;e!==null&&nl(n,e.takeRecords(),e)}function ul(n){(function(e){ms===0&&Du(e).addEventListener("textInput",lf,!0)})(n),n._observer=new MutationObserver((e,t)=>{nl(n,e,t)})}function uo(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 io(n,e){const t=n.mergeWithSibling(e),r=le()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function so(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&P(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(uo(e,r)){r=io(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&P(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(uo(r,t)){r=io(r,t);break}break}t.remove()}}else r.remove()}function il(n){return oo(n.anchor),oo(n.focus),n}function oo(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),P(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!k(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let hf=1;const pf=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function bs(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return ue(pn(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&Au(e)==null)}function sr(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!bs(e)&&sl(e)===n}catch{return!1}}function ys(n){return n instanceof Fu}function sl(n){let e=n;for(;e!=null;){const t=Au(e);if(ys(t))return t;e=or(e)}return null}function Au(n){return n?n.__lexicalEditor:null}function Bt(n){return n.isToken()||n.isSegmented()}function gf(n){return n.nodeType===Nt}function tu(n){let e=n;for(;e!=null;){if(gf(e))return e;e=e.firstChild}return null}function nu(n,e,t){const r=zt[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 ol(n){return P(n)||Et(n)||ue(n)}function mf(n,e){if(e!=null)return void(n.__key=e);Ce(),Ll();const t=le(),r=ht(),u=""+hf++;r._nodeMap.set(u,n),k(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=Ya,n.__key=u}function qt(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 ru(n){Ll();const e=n.getLatest(),t=e.__parent,r=ht(),u=le(),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=Ya,k(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function _e(n){Ce();const e=le(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=he(t);r!==null&&r.getWritable()}if(n!==null){const r=he(n);r!==null&&r.getWritable()}}}function vt(){return dr()?null:le()._compositionKey}function he(n,e){const t=(e||ht())._nodeMap.get(n);return t===void 0?null:t}function al(n,e){const t=Ou(n,le());return t!==void 0?he(t,e):null}function Ou(n,e){return n[`__lexicalKey_${e._key}`]}function pn(n,e){let t=n;for(;t!=null;){const r=al(t,e);if(r!==null)return r;t=or(t)}return null}function ll(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function ao(n){return n.read(()=>fe().getTextContent())}function fe(){return cl(ht())}function cl(n){return n._nodeMap.get("root")}function Re(n){Ce();const e=ht();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function on(n){const e=le(),t=function(r,u){let i=r;for(;i!=null;){const s=Ou(i,u);if(s!==void 0)return s;i=or(i)}return null}(n,e);return t===null?n===e.getRootElement()?he("root"):null:he(t)}function lo(n,e){return e?n.getTextContentSize():0}function fl(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function _s(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function dl(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function hl(n){return n.nodeType===Nt?n.nodeValue:null}function xs(n,e,t){const r=Be(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=hl(u);const a=pn(u);if(o!==null&&P(a)){if(o===Nu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&vs(a,o,i,s,n)}}}function vs(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]===Nu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(_e(null),ku||ur||as)i.remove();else{const m=le();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=fr(),h=i.getTextContentSize(),c=vt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||D(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=z();if(!D(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=ce(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function bf(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(P(s)||k(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function co(n){return n==="ArrowLeft"}function fo(n){return n==="ArrowRight"}function Pn(n,e){return je?n:e}function ho(n){return n==="Enter"}function En(n){return n==="Backspace"}function kn(n){return n==="Delete"}function po(n,e,t){return n.toLowerCase()==="a"&&Pn(e,t)}function yf(){const n=fe();Re(il(n.select(0,n.getChildrenSize())))}function Mn(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=eu(u);return t[e]=i,i}return u}function ws(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 go(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 Hn(n,e){const t=n.offset;if(n.type==="element")return go(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?go(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function pl(n){const e=Du(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function q(n,e,t){return Bl(n,e,t)}function Iu(n){return!we(n)&&!n.isLastChild()&&!n.isInline()}function uu(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&M(75,e),t}function or(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function Rn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Du(n){const e=n._window;return e===null&&M(78),e}function _f(n){let e=n.getParentOrThrow();for(;e!==null;){if(ct(e))return e;e=e.getParentOrThrow()}return e}function ct(n){return we(n)||k(n)&&n.isShadowRoot()}function At(n){const e=le(),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 Qu(n,e){!we(n.getParent())||k(e)||ue(e)||M(99)}function Yu(n){return(ue(n)||k(n)&&!n.canBeEmpty())&&!n.isInline()}function Ss(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function xf(n,e,t){let r=n._blockCursorElement;if(D(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())Yu(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&Yu(l)){const f=l.getPreviousSibling();(f===null||Yu(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=eu(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&&Ss(r,n,e)}function Be(n){return Ve?(n||window).getSelection():null}function vf(n){return Jt(n)&&n.tagName==="A"}function Jt(n){return n.nodeType===1}function mo(n){return n.nodeType===11}function _i(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 iu(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 _t(n){if(ue(n)&&!n.isInline())return!0;if(!k(n)||ct(n))return!1;const e=n.getFirstChild(),t=e===null||Et(e)||P(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function Nn(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function wf(){return le()}const bo=new WeakMap,Sf=new Map;function Tf(n){if(!n._readOnly&&n.isEmpty())return Sf;n._readOnly||M(192);let e=bo.get(n);if(!e){e=new Map,bo.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 Ts(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function Cf(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function Ef(n){return n.__lexicalUnmanaged===!0}function gl(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(k(s)&&gl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let kt,Se,Vn,Pu,xi,vi,$t,He,wi,Gn,de="",ve="",Xe=null,qe="",ot="",ml=!1,Kn=!1,zr=null;function su(n,e){const t=$t.get(n);if(e!==null){const r=Ci(n);r.parentNode===e&&e.removeChild(r)}if(He.has(n)||Se._keyToDOMMap.delete(n),k(t)){const r=au(t,$t);Si(r,0,r.length-1,null)}t!==void 0&&ws(Gn,Vn,Pu,t,"destroyed")}function Si(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&su(i,r)}}function Rt(n,e){n.setProperty("text-align",e)}const kf="40px";function bl(n,e){const t=kt.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")||kf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function yl(n,e){const t=n.style;e===0?Rt(t,""):e===cs?Rt(t,"left"):e===fs?Rt(t,"center"):e===ds?Rt(t,"right"):e===hs?Rt(t,"justify"):e===ps?Rt(t,"start"):e===gs&&Rt(t,"end")}function ou(n,e){const t=He.get(n);t===void 0&&M(60);const r=t.createDOM(kt,Se);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,Se),P(t)?r.setAttribute("data-lexical-text","true"):ue(t)&&r.setAttribute("data-lexical-decorator","true"),k(t)){const u=t.__indent,i=t.__size;if(u!==0&&bl(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=ve;ve="",Ti(a,f,0,l,f.getDOMSlot(h)),xl(f,h),ve=c})(au(t,He),o,t,r)}const s=t.__format;s!==0&&yl(r,s),t.isInline()||_l(null,t,r),Iu(t)&&(de+=lt,ot+=lt)}else{const u=t.getTextContent();if(ue(t)){const i=t.decorate(Se,kt);i!==null&&vl(n,i),r.contentEditable="false"}else P(t)&&(t.isDirectionless()||(ve+=u));de+=u,ot+=u}return e!==null&&e.insertChild(r),ws(Gn,Vn,Pu,t,"created"),r}function Ti(n,e,t,r,u){const i=de;de="";let s=t;for(;s<=r;++s){ou(n[s],u);const o=He.get(n[s]);o!==null&&P(o)&&(Xe===null&&(Xe=o.getFormat()),qe===""&&(qe=o.getStyle()))}Iu(e)&&(de+=lt),u.element.__lexicalTextContent=de,de=i+de}function yo(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return Et(r)?"line-break":ue(r)&&r.isInline()?"decorator":null}return"empty"}return null}function _l(n,e,t){const r=yo(n,$t),u=yo(e,He);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function xl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==ve||r!==zr){const i=ve==="",s=i?zr:(u=ve,ef.test(u)?"rtl":tf.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=kt.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=eu(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=eu(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}Kn||(n.getWritable().__dir=s)}zr=s,e.__lexicalDirTextContent=ve,e.__lexicalDir=s}var u}function Nf(n,e,t){const r=ve;var u;ve="",Xe=null,qe="",function(i,s,o){const a=de,l=i.__size,f=s.__size;de="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)Ln(c,h);else{const m=Ci(c),g=ou(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}su(c,null)}const p=He.get(d);P(p)&&(Xe===null&&(Xe=p.getFormat()),qe===""&&(qe=p.getStyle()))}else{const c=au(i,$t),d=au(s,He);if(c.length!==l&&M(227),d.length!==f&&M(228),l===0)f!==0&&Ti(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;Si(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,v){const w=y-1,S=b-1;let T,I,C=v.getFirstChild(),L=0,$=0;for(;L<=w&&$<=S;){const A=m[L],B=g[$];if(A===B)C=ei(Ln(B,v.element)),L++,$++;else{T===void 0&&(T=new Set(m)),I===void 0&&(I=new Set(g));const O=I.has(A),N=T.has(B);if(O)if(N){const U=uu(Se,B);U===C?C=ei(Ln(B,v.element)):(v.withBefore(C).insertChild(U),Ln(B,v.element)),L++,$++}else ou(B,v.withBefore(C)),$++;else C=ei(Ci(A)),su(A,v.element),L++}const _=He.get(B);_!==null&&P(_)&&(Xe===null&&(Xe=_.getFormat()),qe===""&&(qe=_.getStyle()))}const x=L>w,E=$>S;if(x&&!E){const A=g[S+1],B=A===void 0?null:Se.getElementByKey(A);Ti(g,p,$,S,v.withBefore(B))}else E&&!x&&Si(m,L,w,v.element)})(s,c,d,l,f,o)}Iu(s)&&(de+=lt),h.__lexicalTextContent=de,de=a+de}(n,e,e.getDOMSlot(t)),xl(e,t),Ht(u=e)&&Xe!=null&&Xe!==u.__textFormat&&!Kn&&(u.setTextFormat(Xe),u.setTextStyle(qe)),function(i){Ht(i)&&qe!==""&&qe!==i.__textStyle&&!Kn&&i.setTextStyle(qe)}(e),ve=r}function au(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 Ln(n,e){const t=$t.get(n);let r=He.get(n);t!==void 0&&r!==void 0||M(61);const u=ml||vi.has(n)||xi.has(n),i=uu(Se,n);if(t===r&&!u){if(k(t)){const s=i.__lexicalTextContent;s!==void 0&&(de+=s,ot+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(ve+=o)}else{const s=t.getTextContent();P(t)&&!t.isDirectionless()&&(ve+=s),ot+=s,de+=s}return i}if(t!==r&&u&&ws(Gn,Vn,Pu,r,"updated"),r.updateDOM(t,i,kt)){const s=ou(n,null);return e===null&&M(62),e.replaceChild(s,i),su(n,null),s}if(k(t)&&k(r)){const s=r.__indent;s!==t.__indent&&bl(i,s);const o=r.__format;o!==t.__format&&yl(i,o),u&&(Nf(t,r,i),we(r)||r.isInline()||_l(t,r,i)),Iu(r)&&(de+=lt,ot+=lt)}else{const s=r.getTextContent();if(ue(r)){const o=r.decorate(Se,kt);o!==null&&vl(n,o)}else P(r)&&!r.isDirectionless()&&(ve+=s);de+=s,ot+=s}if(!Kn&&we(r)&&r.__cachedText!==ot){const s=r.getWritable();s.__cachedText=ot,r=s}return i}function vl(n,e){let t=Se._pendingDecorators;const r=Se._decorators;if(t===null){if(r[n]===e)return;t=ll(Se)}t[n]=e}function ei(n){let e=n.nextSibling;return e!==null&&e===Se._blockCursorElement&&(e=e.nextSibling),e}function Af(n,e,t,r,u,i){de="",ot="",ve="",ml=r===hn,zr=null,Se=t,kt=t._config,Vn=t._nodes,Pu=Se._listeners.mutation,xi=u,vi=i,$t=n._nodeMap,He=e._nodeMap,Kn=e._readOnly,wi=new Map(t._keyToDOMMap);const s=new Map;return Gn=s,Ln("root",null),Se=void 0,Vn=void 0,xi=void 0,vi=void 0,$t=void 0,He=void 0,kt=void 0,wi=void 0,Gn=void 0,s}function Ci(n){const e=wi.get(n);return e===void 0&&M(75,n),e}const rt=Object.freeze({}),Ei=30,ki=[["keydown",function(n,e){if(Bn=n.timeStamp,wl=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!q(e,D0,n)&&t!=null){if(function(o,a,l,f){return fo(o)&&!a&&!f&&!l}(t,u,s,i))q(e,za,n);else if(function(o,a,l,f,h){return fo(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))q(e,P0,n);else if(function(o,a,l,f){return co(o)&&!a&&!f&&!l}(t,u,s,i))q(e,$a,n);else if(function(o,a,l,f,h){return co(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))q(e,L0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))q(e,Wa,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))q(e,Ha,n);else if(function(o,a){return ho(o)&&a}(t,r))Fn=!0,q(e,Zr,n);else if(function(o){return o===" "}(t))q(e,M0,n);else if(function(o,a){return je&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),Fn=!0,q(e,ln,!0);else if(function(o,a){return ho(o)&&!a}(t,r))Fn=!1,q(e,Zr,n);else if(function(o,a,l,f){return je?!a&&!l&&(En(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&En(o)}(t,s,i,u))En(t)?q(e,Va,n):(n.preventDefault(),q(e,jt,!0));else if(function(o){return o==="Escape"}(t))q(e,Ga,n);else if(function(o,a,l,f,h){return je?!(l||f||h)&&(kn(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&kn(o)}(t,u,r,s,i))kn(t)?q(e,Ka,n):(n.preventDefault(),q(e,jt,!1));else if(function(o,a,l){return En(o)&&(je?a:l)}(t,s,u))n.preventDefault(),q(e,$n,!0);else if(function(o,a,l){return kn(o)&&(je?a:l)}(t,s,u))n.preventDefault(),q(e,$n,!1);else if(function(o,a){return je&&a&&En(o)}(t,i))n.preventDefault(),q(e,Wn,!0);else if(function(o,a){return je&&a&&kn(o)}(t,i))n.preventDefault(),q(e,Wn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Pn(l,f)}(t,s,i,u))n.preventDefault(),q(e,We,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Pn(l,f)}(t,s,i,u))n.preventDefault(),q(e,We,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Pn(l,f)}(t,s,i,u))n.preventDefault(),q(e,We,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))q(e,R0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Pn(l,f)}(t,r,i,u))n.preventDefault(),q(e,is,void 0);else if(function(o,a,l,f){return je?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),q(e,ss,void 0);else{const o=e._editorState._selection;o===null||D(o)?!Ct&&po(t,i,u)&&(n.preventDefault(),q(e,bi,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(je?f:h)}(t,r,i,u)?(n.preventDefault(),q(e,Eu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(je?f:h)}(t,r,i,u)?(n.preventDefault(),q(e,os,n)):po(t,i,u)&&(n.preventDefault(),q(e,bi,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&q(e,H0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Ae(e,()=>{ue(pn(t))||(Ai=!0)})}],["compositionstart",function(n,e){Ae(e,()=>{const t=z();if(D(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();_e(r.key),(n.timeStamp<Bn+Ei||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||P(u)&&u.getStyle()!==t.style)&&q(e,cn,Y0)}})}],["compositionend",function(n,e){Ct?An=!0:Ae(e,()=>{ti(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Ae(e,()=>{const t=z(),r=n.data,u=El(n);if(r!=null&&D(t)&&Cl(t,u,r,n.timeStamp,!1)){An&&(ti(e,r),An=!1);const i=t.anchor.getNode(),s=Be(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;Xr&&!t.isCollapsed()&&P(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===hl(s.anchorNode)||q(e,cn,r);const f=r.length;Ct&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),ku||ur||as||!e.isComposing()||(Bn=0,_e(null))}else xs(!1,e,r!==null?r:void 0),An&&(ti(e,r||void 0),An=!1);Ce(),rl(le())}),rn=null}],["click",function(n,e){Ae(e,()=>{const t=z(),r=Be(e._window),u=fr();if(r){if(D(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!we(s)&&fe().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(k(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===ir||s===Nt)&&Re(Es(u,r,e,n))}}}q(e,Ua,n)})}],["cut",rt],["copy",rt],["dragstart",rt],["dragover",rt],["dragend",rt],["paste",rt],["focus",rt],["blur",rt],["drop",rt]];Xr&&ki.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=El(t);u==="deleteCompositionText"||Ct&&pl(r)||u!=="insertCompositionText"&&Ae(r,()=>{const s=z();if(u==="deleteContentBackward"){if(s===null){const d=fr();if(!D(d))return;Re(d.clone())}if(D(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,wl==="MediaLast"&&o<Bn+Ei&&r.isComposing()&&d){if(_e(null),Bn=0,setTimeout(()=>{Ae(r,()=>{_e(null)})},Ei),D(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),P(p)||M(142),s.style=p.getStyle()}}else{_e(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;K0&&d&&!y&&g||q(r,jt,!0)}return}}var o;if(!D(s))return;const a=t.data;rn!==null&&xs(!1,r,rn),s.dirty&&rn===null||!s.isCollapsed()||we(s.anchor.getNode())||i===null||s.applyDOMRange(i),rn=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":q(r,cn,t);break;case"insertFromComposition":_e(null),q(r,cn,t);break;case"insertLineBreak":_e(null),q(r,ln,!1);break;case"insertParagraph":_e(null),Fn&&!ur?(Fn=!1,q(r,ln,!1)):q(r,zn,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":q(r,rr,t);break;case"deleteByComposition":(function(d,p){return d!==p||k(d)||k(p)||!d.isToken()||!p.isToken()})(h,c)&&q(r,mi,t);break;case"deleteByDrag":case"deleteByCut":q(r,mi,t);break;case"deleteContent":q(r,jt,!1);break;case"deleteWordBackward":q(r,$n,!0);break;case"deleteWordForward":q(r,$n,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":q(r,Wn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":q(r,Wn,!1);break;case"formatStrikeThrough":q(r,We,"strikethrough");break;case"formatBold":q(r,We,"bold");break;case"formatItalic":q(r,We,"italic");break;case"formatUnderline":q(r,We,"underline");break;case"historyUndo":q(r,is,void 0);break;case"historyRedo":q(r,ss,void 0)}else{if(a===`
|
|
4
4
|
`)t.preventDefault(),q(r,ln,!1);else if(a===lt)t.preventDefault(),q(r,zn,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&Cl(s,i,a,t.timeStamp,!0)?(t.preventDefault(),q(r,cn,a)):rn=a;Sl=t.timeStamp}})}(n,e)]);let Bn=0,wl=null,Sl=0,rn=null;const lu=new WeakMap;let Ni=!1,Ai=!1,Fn=!1,An=!1,Tl=[0,"",0,"root",0];function Cl(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=le(),l=Be(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!P(o)||(!u&&(!Xr||Sl<r+50)||o.isDirty()&&d<2||fl(t))&&i.offset!==s.offset&&!o.isComposing()||Bt(o)||o.isDirty()&&d>1||(u||!Xr)&&c!==null&&!o.isComposing()&&f!==tu(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||bf(n,o)}function _o(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===Nt&&e!==0&&e!==n.nodeValue.length}function xo(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;Ni&&(Ni=!1,_o(r,u)&&_o(i,s))||Ae(e,()=>{if(!t)return void Re(null);if(!sr(e,r,i))return;const o=z();if(D(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=Du(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=Tl,y=fe(),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")P(l)||M(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const v=a.getNode();o.style="",v instanceof vn&&v.getChildrenSize()===0?(o.format=v.getTextFormat(),o.style=v.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 v=Q0,w=!1;for(let S=0;S<d;S++){const T=c[S],I=T.getTextContentSize();if(P(T)&&I!==0&&!(S===0&&T.__key===y&&m===I||S===d-1&&T.__key===b&&g===0)&&(w=!0,v&=T.getFormat(),v===0))break}o.format=w?v:0}}q(e,Cu,void 0)})}function El(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function ti(n,e){const t=n._compositionKey;if(_e(null),t!==null&&e!=null){if(e===""){const r=he(t),u=tu(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&P(r)&&vs(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../assets/
|
|
1
|
+
import '../../assets/index42.css';var P0 = Object.defineProperty;
|
|
2
2
|
var L0 = (n, e, t) => e in n ? P0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var qt = (n, e, t) => L0(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as z, jsxs as et, Fragment as fn } from "react/jsx-runtime";
|
|
@@ -9,7 +9,7 @@ import { t as nu } from "../../classix-DG18itHa.js";
|
|
|
9
9
|
import { File as j0 } from "../file/index.js";
|
|
10
10
|
import { Button as Re } from "../button/index.js";
|
|
11
11
|
import { Icon as Xe } from "../icon/index.js";
|
|
12
|
-
import { I as oo } from "../../index-
|
|
12
|
+
import { I as oo } from "../../index-CbJ2-IPc.js";
|
|
13
13
|
import { Toolbar as z0 } from "../toolbar/index.js";
|
|
14
14
|
function En(n) {
|
|
15
15
|
return {};
|
|
@@ -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/index43.css');const e=require("react/jsx-runtime"),r="_header_tqnjq_13",t={"empty-state":"_empty-state_tqnjq_3",header:r},c=({button:s,content:a,header:n})=>e.jsxs("div",{className:t["empty-state"],"data-component":"emptystate",children:[e.jsx("p",{className:t.header,children:n}),e.jsx("p",{children:a}),s]});exports.EmptyState=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -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/index44.css');const s=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),l="_fieldset_f5vpp_1",d={fieldset:l},o=({className:e,...t})=>s.jsx("fieldset",{className:i.t(d.fieldset,e),...t,"data-component":"fieldset"});exports.Fieldset=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { t as o } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index44.css';const f = "_fieldset_f5vpp_1", i = {
|
|
4
4
|
fieldset: f
|
|
5
5
|
}, m = ({
|
|
6
6
|
className: e,
|
|
@@ -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/index45.css');const r=require("react/jsx-runtime"),s=require("../../classix-5H4IWnMA.cjs"),n="_figure_spygr_1",u={figure:n},c=({accessibleLabel:e,children:t,className:i})=>r.jsxs("figure",{className:s.t(u.figure,i),"data-component":"figure",children:[t,e&&r.jsx("figcaption",{"data-content":"screen-reader",children:e})]});exports.Figure=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index45.css';const s = "_figure_spygr_1", f = {
|
|
4
4
|
figure: s
|
|
5
5
|
}, u = ({
|
|
6
6
|
accessibleLabel: 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/index46.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),_=require("../icon/index.cjs"),f=require("../button/index.cjs"),N="_file_1427u_1",F="_action_1427u_14",b="_details_1427u_62",g="_name_1427u_69",I="_extension_1427u_81",P="_subtitle_1427u_91",t={file:N,action:F,delete:"_delete_1427u_15",details:b,"name-line":"_name-line_1427u_69",name:g,extension:I,subtitle:P},y={".doc":"FileDoc",".docx":"FileDoc",".pdf":"FilePdf",".ppt":"FilePpt",".pptx":"FilePpt",".xls":"FileXls",".xlsx":"FileXls"},q=({deleteAccessibleLabel:u,name:s,onClick:n,onDelete:a,ref:m,subtitle:r,url:d})=>{const i=s.lastIndexOf("."),x=i>0&&i<s.length-1,p=x?s.slice(0,i):s,c=x?s.slice(i):"",h=y[c.toLowerCase()]??"FileText",o=e.jsxs(e.Fragment,{children:[e.jsx(j.Figure,{children:e.jsx(_.Icon,{name:h})}),e.jsxs("span",{className:t.details,children:[e.jsxs("span",{className:t["name-line"],children:[e.jsx("span",{className:t.name,children:p}),c&&e.jsx("span",{className:t.extension,children:c})]}),r&&e.jsx("span",{className:t.subtitle,children:r})]})]});return e.jsxs("div",{className:t.file,ref:m,"data-component":"file",children:[d?e.jsx("a",{className:t.action,href:d,onClick:l=>{l.stopPropagation(),n&&(l.preventDefault(),n())},title:s,children:o}):n?e.jsx("button",{"aria-label":s,className:t.action,"data-actionable":"true",onClick:l=>{l.stopPropagation(),n()},title:s,type:"button",children:o}):e.jsx("div",{className:t.action,title:s,children:o}),a&&e.jsx(f.Button,{"aria-label":u??`Delete ${s}`,className:t.delete,onClick:()=>a(),variant:"tertiary",children:e.jsx(_.Icon,{name:"Trash",size:"small"})})]})};exports.File=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as t, Fragment as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { Figure as F } from "../figure/index.js";
|
|
3
3
|
import { Icon as _ } from "../icon/index.js";
|
|
4
4
|
import { Button as b } from "../button/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index46.css';const g = "_file_1427u_1", I = "_action_1427u_14", P = "_details_1427u_62", v = "_name_1427u_69", y = "_extension_1427u_81", D = "_subtitle_1427u_91", n = {
|
|
6
6
|
file: g,
|
|
7
7
|
action: I,
|
|
8
8
|
delete: "_delete_1427u_15",
|
|
@@ -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/index23.css');const r=require("react/jsx-runtime"),n="_footer_c518c_1",s={footer:n},a=({animation:t,children:o,...e})=>r.jsx("footer",{className:s.footer,"data-animation":t,...e,"data-component":"footer",children:o&&o});exports.Footer=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -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/index22.css');const l=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),i="_form_13ccq_1",m="_fill_13ccq_45",t={form:i,fill:m},a=({animation:r,children:o,className:e,fill:s=!1,...c})=>l.jsx("form",{className:n.t(e,s&&t.fill,t.form),"data-animation":r,...c,"data-component":"form",children:o&&o});exports.Form=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { t as s } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index22.css';const a = "_form_13ccq_1", n = "_fill_13ccq_45", m = {
|
|
4
4
|
form: a,
|
|
5
5
|
fill: n
|
|
6
6
|
}, _ = ({
|
|
@@ -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/index21.css');const a=require("react/jsx-runtime"),x=require("../../classix-5H4IWnMA.cjs"),j=require("../loading/index.cjs"),w="_graph_1web1_11",v="_plot_1web1_20",N="_item_1web1_34",y="_column_1web1_40",f="_value_1web1_48",k="_track_1web1_58",M="_bar_1web1_65",V="_label_1web1_87",e={graph:w,plot:v,item:N,column:y,value:f,track:k,bar:M,label:V,"is-loading":"_is-loading_1web1_96"},i=l=>Number.isFinite(l)?Math.max(0,l):0,S=({accessibleLabel:l,className:h,height:r,items:n=[],style:u,valueFormatter:_=t=>t.toLocaleString(),...p})=>{const t=n.reduce((s,c)=>Math.max(s,i(c.value)),0),b={...u,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--utils-tokens-unit) * 16)"};return a.jsxs("figure",{className:x.t(e.graph,h),style:b,...p,"data-component":"graph",children:[l&&a.jsx("figcaption",{"data-content":"screen-reader",children:l}),n.length>0?a.jsx("ul",{className:e.plot,children:n.map((s,c)=>{const o=i(s.value),d=t>0?o/t*100:0,m=o>0?Math.max(d,6):0,g={"--bar-color":s.color,"--bar-delay":c*50+"ms","--bar-height":m+"%"};return a.jsxs("li",{className:e.item,"data-component":"graph",children:[a.jsxs("div",{className:e.column,children:[a.jsx("span",{className:e.value,children:_(s.value)}),a.jsx("span",{className:e.track,children:a.jsx("span",{className:e.bar,style:g})})]}),a.jsx("span",{className:e.label,title:s.label,children:s.label})]},s.label+c)})}):a.jsx("div",{className:e["is-loading"],children:a.jsx(j.Loading,{})})]})};exports.Graph=S;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { t as N } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Loading as v } from "../loading/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index21.css';const f = "_graph_1web1_11", x = "_plot_1web1_20", k = "_item_1web1_34", V = "_column_1web1_40", y = "_value_1web1_48", M = "_track_1web1_58", j = "_bar_1web1_65", S = "_label_1web1_87", a = {
|
|
5
5
|
graph: f,
|
|
6
6
|
plot: x,
|
|
7
7
|
item: k,
|
|
@@ -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/index20.css');const s=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),a="_group_1j6jh_1",n={group:a},p=({animation:t,children:r,className:o,...e})=>s.jsx("div",{className:u.t(o,n.group),"data-animation":t,"data-wrapper":!0,...e,"data-component":"group",children:r});exports.Group=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index20.css';const s = "_group_1j6jh_1", u = {
|
|
4
4
|
group: s
|
|
5
5
|
}, c = ({
|
|
6
6
|
animation: o,
|
|
@@ -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 t=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),_="_header_ex2by_1",m="_controls_ex2by_68",b="_cta_ex2by_95",j="_jumbo_ex2by_145",e={header:_,controls:m,cta:b,"header-content":"_header-content_ex2by_107",jumbo:j},x={default:e.default,jumbo:e.jumbo},y=({backButton:o,capitalize:r=!1,children:d,controls:s,cta:a,header:l,subHeader:i,variant:h="default"})=>{const c=t.jsxs("div",{className:e["header-content"],children:[o,l,i]}),n=s?t.jsxs("div",{className:e.controls,children:[c,s]}):c;return t.jsxs("header",{className:u.t(e.header,x[h],r&&e.capitalize),"data-component":"header",children:[a?t.jsxs("div",{className:e.cta,children:[n,a]}):n,d]})};exports.Header=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { t as _ } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index19.css';const i = "_header_ex2by_1", b = "_controls_ex2by_68", u = "_cta_ex2by_95", x = "_jumbo_ex2by_145", e = {
|
|
4
4
|
header: i,
|
|
5
5
|
controls: b,
|
|
6
6
|
cta: u,
|
|
@@ -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/index47.css');const i=require("react/jsx-runtime"),g=require("../../classix-5H4IWnMA.cjs"),r=require("../../icons-Dv_p0bUF.cjs"),l="_icon_1dkgk_1",d="_small_1dkgk_10",m="_medium_1dkgk_15",_="_large_1dkgk_20",k="_danger_1dkgk_25",e={icon:l,small:d,medium:m,large:_,danger:k,"gap-right":"_gap-right_1dkgk_29","gap-left":"_gap-left_1dkgk_33"},u={large:e.large,medium:e.medium,small:e.small},p={danger:e.danger},y=({gap:n="none",name:o,size:t="medium",variant:s,weight:a})=>{const c={maskImage:r.iconSVG(o,void 0,a)};return i.jsx("span",{"aria-hidden":"true",className:g.t(n!=="none"&&e[`gap-${n}`],u[t],e.icon,s&&p[s]),style:c,"data-component":"icon"})};exports.Icon=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { t as i } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { i as r } from "../../icons-dUP7sKyt.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index47.css';const d = "_icon_1dkgk_1", l = "_small_1dkgk_10", _ = "_medium_1dkgk_15", c = "_large_1dkgk_20", k = "_danger_1dkgk_25", n = {
|
|
5
5
|
icon: d,
|
|
6
6
|
small: l,
|
|
7
7
|
medium: _,
|
|
@@ -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 r=require("react/jsx-runtime"),S=require("../../classix-5H4IWnMA.cjs"),s=require("react"),A=require("../button/index.cjs"),N=require("../controls/index.cjs"),z=require("../dialog/index.cjs"),G=require("../header/index.cjs"),R="_wrapper_29z62_1",V="_toolbar_29z62_6",$="_iframe_29z62_12",a={wrapper:R,toolbar:V,iframe:$,"fullscreen-iframe":"_fullscreen-iframe_29z62_18"},d=120,L=12e3,X=8,J=({accessibleLabel:f,autoResize:l=!1,className:v,closeFullscreenLabel:F="Close fullscreen",fullscreenLabel:I="View in fullscreen",hasFullscreenView:O=!0,loading:b="lazy",onLoad:h,referrerPolicy:H="no-referrer",sandbox:y="",srcDoc:w,style:E,...j})=>{const _=s.useRef(null),c=s.useRef(null),i=s.useRef(null),[k,M]=s.useState(d),[T,p]=s.useState(!1),g=s.useCallback(()=>{c.current!==null&&(window.cancelAnimationFrame(c.current),c.current=null),i.current!==null&&(window.clearTimeout(i.current),i.current=null)},[]),x=s.useCallback(()=>{if(!l)return;const t=_.current,e=t==null?void 0:t.contentDocument;if(!t||!e)return;const m=t.style.height;try{t.style.height=`${d}px`;const o=e.querySelector("[data-iframe-content]")??e.body,u=o.getBoundingClientRect(),{body:q,documentElement:C}=e,B=Math.min(Math.max(Math.ceil(Math.max(o.scrollHeight,o.offsetHeight,u.height,q.scrollHeight,q.offsetHeight,C.scrollHeight,C.offsetHeight)+X),d),L);M(B)}catch{}finally{t.style.height=m}},[l]),n=s.useCallback(()=>{!l||c.current!==null||(c.current=window.requestAnimationFrame(()=>{c.current=null,x(),i.current!==null&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{i.current=null,x()},250)}))},[l,x]),U=t=>{var m,o;n();const e=(m=_.current)==null?void 0:m.contentDocument;Array.from((e==null?void 0:e.images)??[]).forEach(u=>{u.complete||(u.addEventListener("load",n,{once:!0}),u.addEventListener("error",n,{once:!0}))}),(o=e==null?void 0:e.fonts)==null||o.ready.then(n).catch(()=>{}),h==null||h(t)};return s.useEffect(()=>{if(l)return g(),M(d),n(),g},[l,g,n,w]),s.useEffect(()=>{var t;if(l)return window.addEventListener("resize",n),(t=window.visualViewport)==null||t.addEventListener("resize",n),()=>{var e;window.removeEventListener("resize",n),(e=window.visualViewport)==null||e.removeEventListener("resize",n)}},[l,n]),r.jsxs("div",{className:a.wrapper,"data-component":"iframe",children:[O&&r.jsx("div",{className:a.toolbar,children:r.jsx(A.Button,{"aria-expanded":T,"aria-haspopup":"dialog",onClick:()=>p(!0),variant:"tertiary",children:I})}),r.jsx("iframe",{...j,className:S.t(a.iframe,v),loading:b,onLoad:U,ref:_,referrerPolicy:H,sandbox:y,srcDoc:w,style:l?{...E,height:k,minHeight:d}:E,title:f}),T&&r.jsx(z.Dialog,{"aria-label":`${f} fullscreen`,controls:r.jsx(N.Controls,{children:r.jsx(A.Button,{onClick:()=>p(!1),children:F})}),fullscreen:!0,header:r.jsx(G.Header,{children:r.jsx("h2",{children:f})}),open:!0,setOpen:p,children:r.jsx("iframe",{...j,className:S.t(a.iframe,a["fullscreen-iframe"],v),loading:"eager",referrerPolicy:H,sandbox:y,srcDoc:w,title:`${f} fullscreen`})})]})};exports.Iframe=J;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -5,7 +5,7 @@ import { Button as N } from "../button/index.js";
|
|
|
5
5
|
import { Controls as b } from "../controls/index.js";
|
|
6
6
|
import { Dialog as L } from "../dialog/index.js";
|
|
7
7
|
import { Header as X } from "../header/index.js";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index18.css';const J = "_wrapper_29z62_1", K = "_toolbar_29z62_6", Q = "_iframe_29z62_12", a = {
|
|
9
9
|
wrapper: J,
|
|
10
10
|
toolbar: K,
|
|
11
11
|
iframe: Q,
|
|
@@ -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 d=require("react/jsx-runtime"),c=require("react"),o="_image_14j8z_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:i,style:l,...t}){const u=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=u.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),i==null||i(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:u,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as o, useState as h, useEffect as m } from "react";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index17.css';const y = "_image_14j8z_1", S = {
|
|
4
4
|
image: y
|
|
5
5
|
};
|
|
6
6
|
function x({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../classix-5H4IWnMA.cjs");require("react");require("../../icons-Dv_p0bUF.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../classix-5H4IWnMA.cjs");require("react");require("../../icons-Dv_p0bUF.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-CQlMdqOp.cjs");exports.Input=e.Input;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -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/index49.css');const s=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),m="_link_xhd9q_1",o="_primary_xhd9q_7",c="_danger_xhd9q_13",_="_minimal_xhd9q_21",n={link:m,primary:o,danger:c,minimal:_},d=({children:i,className:r,to:e="#",variant:t="primary",...a})=>s.jsx("a",{className:l.t(r,n.link,n[t]),href:e,...a,"data-component":"link",children:i});exports.Link=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { t as _ } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index49.css';const s = "_link_xhd9q_1", l = "_primary_xhd9q_7", e = "_danger_xhd9q_13", c = "_minimal_xhd9q_21", n = {
|
|
4
4
|
link: s,
|
|
5
5
|
primary: l,
|
|
6
6
|
danger: e,
|
|
@@ -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/index50.css');const i=require("react/jsx-runtime"),g=require("../../classix-5H4IWnMA.cjs"),n=require("react");function d(t){return n.isValidElement(t)&&t.type===n.Fragment}function E(t,s=[]){return n.Children.forEach(t,e=>{d(e)?E(e.props.children,s):s.push(e)}),s}function x(t,{wrapper:s="li"}={}){return E(t).filter(l=>l!==null).map((l,r)=>{if(n.isValidElement(l)&&l.type===s)return l;const c=n.isValidElement(l)&&l.key!=null?l.key:r;return n.createElement(s,{key:c},l)})}const z="_controls_1i7ll_1",F="_horizontal_1i7ll_6",V="_list_1i7ll_17",b="_columns_1i7ll_57",k="_compact_1i7ll_74",o={controls:z,horizontal:F,list:V,columns:b,compact:k},j=(t,s)=>{typeof t=="function"?t(s):t&&(t.current=s)};function q({children:t,className:s,columns:e=1,compact:u=!1,controls:l,horizontal:r,ordered:c,ref:m,style:N,...f}){const _=Number.isFinite(e)?Math.max(1,Math.floor(e)):1,y=g.t(s,o.list,_>1&&o.columns,r&&o.horizontal,u&&o.compact),p={...N,"--list-columns":_},h=c?i.jsx("ol",{className:y,ref:a=>j(m,a),style:p,...f,children:x(t)}):i.jsx("ul",{className:y,ref:a=>j(m,a),style:p,...f,children:x(t)});return l==null?h:i.jsxs(i.Fragment,{children:[i.jsx("div",{className:o.controls,children:l}),h]})}exports.List=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as F, Fragment as V } from "react/jsx-runtime";
|
|
2
2
|
import { t as d } from "../../classix-DG18itHa.js";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index50.css';function g(t) {
|
|
5
5
|
return e.isValidElement(t) && t.type === e.Fragment;
|
|
6
6
|
}
|
|
7
7
|
function x(t, 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/index51.css');const l=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),o="_loading_107mr_23",m="_spin_107mr_1",r="_small_107mr_40",c="_large_107mr_46",_="_ping_107mr_52",d="_sticky_107mr_78",s={loading:o,default:"_default_107mr_29",spin:m,small:r,large:c,ping:_,sticky:d},g={large:s.large,medium:s.medium,small:s.small},u=({variant:a="default",size:e="medium",sticky:i=!1,...t})=>l.jsx("div",{className:n.t(s.loading,i&&s.sticky),"data-component":"loading",children:l.jsx("span",{className:n.t(s.loading,s[a],g[e]),...t})});exports.Loading=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { t as a } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index51.css';const o = "_loading_107mr_23", _ = "_spin_107mr_1", e = "_small_107mr_40", r = "_large_107mr_46", c = "_ping_107mr_52", d = "_sticky_107mr_78", s = {
|
|
4
4
|
loading: o,
|
|
5
5
|
default: "_default_107mr_29",
|
|
6
6
|
spin: _,
|
|
@@ -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 e=require("react/jsx-runtime"),j=require("../../classix-5H4IWnMA.cjs"),h=require("../avatar/index.cjs"),w=require("../icon/index.cjs"),S="_attachments_sg3ov_1",b="_message_sg3ov_11",f="_timestamp_sg3ov_144",q="_preview_sg3ov_149",a={attachments:S,"message-group":"_message-group_sg3ov_11",message:b,timestamp:f,preview:q},y=({appearance:c="default",attachments:m,author:t,authorColor:r,authorImageUrl:g,authorLink:l,authorRole:d,content:_,iconName:p="Info",id:v,preview:u,timestamp:o,timestampText:x,type:s="default"})=>{const n=o?new Date(o):void 0,i=n?e.jsx("time",{className:a.timestamp,dateTime:n.toISOString(),children:x??n.toLocaleString()}):null;return e.jsxs("div",{className:a["message-group"],"data-message-type":s,"data-component":"message",children:[t&&e.jsx(h.Avatar,{accessibleLabel:t,color:r,imageUrl:g,link:l,name:t,role:d}),s==="system"&&i,e.jsxs("div",{className:j.t(a.message,u&&a.preview),"data-appearance":c,"data-id":v,"data-type":s,children:[s=="system"&&e.jsx(w.Icon,{gap:"right",name:p}),_]}),m&&e.jsx("div",{className:a.attachments,children:m}),s!=="system"&&i]})};exports.Message=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { t as w } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Avatar as N } from "../avatar/index.js";
|
|
4
4
|
import { Icon as x } from "../icon/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index16.css';const I = "_attachments_sg3ov_1", S = "_message_sg3ov_11", b = "_timestamp_sg3ov_144", j = "_preview_sg3ov_149", s = {
|
|
6
6
|
attachments: I,
|
|
7
7
|
"message-group": "_message-group_sg3ov_11",
|
|
8
8
|
message: 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/index14.css');const r=require("react/jsx-runtime"),D=require("../../classix-5H4IWnMA.cjs"),n=require("react"),G=require("../editor/index.cjs"),I=require("../list/index.cjs"),J=require("../tooltip/index.cjs"),K=require("../message/index.cjs"),Q="_messages_pqp89_1",V="_fill_pqp89_20",j={messages:Q,fill:V},X=({fill:M=!1,files:u,handleUpload:y,inlineImages:c,maxEditorRows:Y=5,message:d="",messages:l,minEditorRows:b=1,onChange:H,onFilesChange:a,onInlineImagesChange:B,onSubmit:N,placeholder:O,sending:m,submitLabel:P="Send message",tooltipLabel:f})=>{var L;const v=n.useRef(null),o=n.useRef(!0),h=n.useRef(!1),[U,W]=n.useState([]),p=u??U,g=(L=l[l.length-1])==null?void 0:L.id,k=d.replace(/<[^>]*>/g,"").replace(/ /g," ").trim()==="";return n.useLayoutEffect(()=>{var R;const e=(R=v.current)==null?void 0:R.querySelector("[data-message-list]");if(!e||g===void 0)return;const z=e.scrollHeight-e.scrollTop-e.clientHeight<450,_=!h.current||z;o.current=_,h.current=!0;const A=window.setTimeout(()=>{o.current=!1},5e3),E=()=>{e.scrollTop=e.scrollHeight};_&&E();const T=t=>{o.current&&t.target instanceof HTMLImageElement&&E()},q=t=>{t.deltaY<0&&(o.current=!1)};let i;const x=t=>{var s;i=(s=t.touches[0])==null?void 0:s.clientY},w=t=>{var S;const s=(S=t.touches[0])==null?void 0:S.clientY;s!==void 0&&i!==void 0&&s>i&&(o.current=!1),i=s};return e.addEventListener("load",T,!0),e.addEventListener("wheel",q,{passive:!0}),e.addEventListener("touchstart",x,{passive:!0}),e.addEventListener("touchmove",w,{passive:!0}),()=>{window.clearTimeout(A),e.removeEventListener("load",T,!0),e.removeEventListener("wheel",q),e.removeEventListener("touchstart",x),e.removeEventListener("touchmove",w)}},[g]),r.jsxs("div",{className:D.t(j.messages,M&&j.fill),"data-component":"messages",ref:v,children:[r.jsx(I.List,{"data-message-list":!0,children:l.map(e=>r.jsx(K.Message,{...e},e.id))}),f&&r.jsx(J.Tooltip,{variant:"static",children:f}),r.jsx(G.Editor,{autofocus:!0,content:d,disabled:m||k&&p.length===0&&!(c!=null&&c.length),files:p,inlineImages:c,isSubmitting:m,maxRows:Y,minRows:b,onChange:H,onFilesChange:e=>{u===void 0&&W(e),a==null||a(e)},onInlineImagesChange:B,onSubmit:N,onUpload:y,placeholder:O,submitLabel:P})]})};exports.Messages=X;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -5,7 +5,7 @@ import { Editor as P } from "../editor/index.js";
|
|
|
5
5
|
import { List as Q } from "../list/index.js";
|
|
6
6
|
import { Tooltip as V } from "../tooltip/index.js";
|
|
7
7
|
import { Message as X } from "../message/index.js";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index14.css';const Z = "_messages_pqp89_1", $ = "_fill_pqp89_20", q = {
|
|
9
9
|
messages: Z,
|
|
10
10
|
fill: $
|
|
11
11
|
}, ne = ({
|