@solibo/solibo-ui 1.0.2 → 1.0.3
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 -1
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +0 -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/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/index5.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/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- 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/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +16 -16
- 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/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/menu/index.cjs +1 -1
- package/dist/components/menu/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.js +17 -17
- package/dist/components/object/index.cjs +1 -1
- package/dist/components/object/index.js +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +18 -18
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +2 -2
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/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.js +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toasts/index.cjs +1 -1
- package/dist/components/toasts/index.js +1 -1
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/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 +2 -0
- package/dist/components/tooltip/index.cjs.map +1 -0
- package/dist/components/tooltip/index.js +21 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/{index-D-AyCDg7.js → index-B9xtLe2w.js} +2 -2
- package/dist/{index-D-AyCDg7.js.map → index-B9xtLe2w.js.map} +1 -1
- package/dist/{index-iItPktfX.cjs → index-CP5A_BGJ.cjs} +2 -2
- package/dist/{index-iItPktfX.cjs.map → index-CP5A_BGJ.cjs.map} +1 -1
- package/dist/{index-DS2cY2g4.js → index-DFXqYJat.js} +2 -2
- package/dist/{index-DS2cY2g4.js.map → index-DFXqYJat.js.map} +1 -1
- package/dist/{index-BOkkyMbX.cjs → index-N4IMha5Q.cjs} +2 -2
- package/dist/{index-BOkkyMbX.cjs.map → index-N4IMha5Q.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
|
@@ -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/index39.css');const r=require("react/jsx-runtime"),E=require("../../classix-5H4IWnMA.cjs"),a=require("react"),F=require("../button/index.cjs"),ce=require("../../icons-DYCSlAoX.cjs"),X=require("../../index-CP5A_BGJ.cjs"),ue=require("../list/index.cjs"),N=require("../../index-N4IMha5Q.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 de(t){return a.isValidElement(t)&&t.type==="option"}function pe(t){return a.isValidElement(t)&&t.type==="optgroup"}function fe(t){return a.isValidElement(t)&&t.type===a.Fragment}function me(t){return a.isValidElement(t)&&t.type===N.Select}function W(t,i,l=!1){const s=[];return a.Children.forEach(t,n=>{if(fe(n))s.push(...W(n.props.children,i,l));else if(de(n)){const c=V(n.props.children).trim(),f=n.props.value!=null?String(n.props.value):c;s.push({disabled:l||!!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 pe(n)&&s.push(...W(n.props.children,n.props.label,l||!!n.props.disabled))}),s}function _e(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 he(t,i){const l=_e(i),s=t.filter(n=>!n.hidden&&!n.isPlaceholder);return l?s.filter(n=>l.test([n.groupLabel,n.text,n.value].filter(Boolean).join(" "))):s}function ye(t,i){return t.find(l=>l.value===i)??t.find(l=>l.isPlaceholder)??t[0]}function xe(t,i,l){var s,n;return i!=null?String(i):l!=null?String(l):((s=t.find(c=>c.selected))==null?void 0:s.value)??((n=t[0])==null?void 0:n.value)??""}function be(t){if(me(t)){const{children:i,placeholder:l,...s}=t.props;return{children:r.jsxs(r.Fragment,{children:[l&&r.jsx("option",{hidden:!0,value:"",children:l}),i]}),props:s}}return{children:t.props.children,props:t.props}}const ge="_combobox_qsl6y_3",ve="_dropdown_qsl6y_27",je="_empty_qsl6y_30",qe="_group_qsl6y_31",we="_placeholder_qsl6y_32",Se="_filter_qsl6y_40",Ce="_native_qsl6y_52",Ee="_option_qsl6y_62",Ne="_options_qsl6y_84",Ve="_panel_qsl6y_108",Le="_selected_qsl6y_131",Re="_text_qsl6y_135",$e="_trigger_qsl6y_145",Be="_minimal_qsl6y_164",Ie="_inline_qsl6y_221",De="_label_qsl6y_253",o={combobox:ge,"combobox-input":"_combobox-input_qsl6y_12",dropdown:ve,empty:je,group:qe,placeholder:we,filter:Se,native:Ce,option:Ee,options:Ne,panel:Ve,selected:Le,text:Re,trigger:$e,minimal:Be,inline:Ie,label:De,"inline-field":"_inline-field_qsl6y_259"};function Y(t,i){return{"--icon-svg":ce.iconSVG(t).replace("currentColor",i)}}const Pe=({children:t,className:i,combobox:l=!1,createOption:s,emptyLabel:n="No matches found",label:c,renderOption:f,searchPlaceholder:L="Filter",selectedItems:Z,variant:y="default",...ee})=>{const R=be(t),{defaultValue:te,onChange:$,value:B,...ne}=R.props,g=N.sanitizeSelectProps(ne),M=a.useRef(null),Q=a.useRef(null),v=a.useId(),z=a.useRef(null),m=a.useRef(null),x=W(R.children),b=B!=null,I=xe(x,B,te),[D,P]=a.useState(()=>I),[u,p]=a.useState(!1),[j,q]=a.useState(""),w=b?String(B):D,O={default:N.resolveColor("--colors-semantic-content-secondary"),white:N.resolveColor("--color-white","white")},T=y==="minimal"?O.white:O.default,S=ye(x,w),le=Y("chevron",T),se=Y("search",T),A=he(x,j),_=j.trim(),C=!!(l&&s&&_&&s.isValid(_)),re=c&&y==="inline"?X.formatInlineLabel(c):c,G=e=>e?(f==null?void 0:f({groupLabel:e.groupLabel,isSelected:e.value===w,label:e.label,text:e.text,value:e.value}))??e.label:"Select an option";a.useEffect(()=>{!b&&!x.some(e=>e.value===D)&&P(I)},[I,D,b,x]),a.useEffect(()=>{var e;if(!u){q("");return}(e=m.current)==null||e.focus()},[u]),a.useEffect(()=>{if(!u)return;const e=d=>{var h;(h=Q.current)!=null&&h.contains(d.target)||p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u]);const oe=e=>{b||P(e.target.value),$==null||$(e)},k=()=>{var e;p(!1),l||(e=M.current)==null||e.focus()},K=()=>{var e;q(""),p(!0),(e=m.current)==null||e.focus()},H=()=>{!s||!C||(s.onCreate(_),K())},ie=e=>{var U;b||P(e);const d=z.current;if(!d){k();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})),l?K():k()},ae=e=>{e.key==="Escape"&&k(),e.key==="Enter"&&e.target===m.current&&C&&(e.preventDefault(),H())},J=r.jsxs("div",{className:E.t(o.dropdown,y==="inline"&&o.inline,y==="minimal"&&o.minimal,i),onKeyDown:ae,ref:Q,...ee,children:[r.jsx("select",{...g,"aria-hidden":"true",className:o.native,onChange:oe,ref:z,tabIndex:-1,value:w,children:R.children}),l?r.jsxs("div",{className:o.combobox,onClick:()=>{var e;return(e=m.current)==null?void 0:e.focus()},children:[Z,r.jsx("input",{"aria-autocomplete":"list","aria-expanded":u,"aria-label":g["aria-label"]??c??L,className:o["combobox-input"],disabled:g.disabled,onChange:e=>{q(e.target.value),p(!0)},onClick:()=>p(!0),onFocus:()=>p(!0),placeholder:L||void 0,ref:m,role:"combobox",type:"text",value:j})]}):r.jsx(F.Button,{"aria-expanded":u,"aria-haspopup":"dialog","aria-labelledby":c?`${v} ${v}-value`:void 0,className:E.t(o.trigger,(S==null?void 0:S.isPlaceholder)&&o.placeholder),"data-open":u?"true":void 0,disabled:g.disabled,onClick:()=>p(e=>!e),ref:M,style:le,variant:"tertiary",children:r.jsx("span",{className:o.text,id:`${v}-value`,children:G(S)})}),u&&r.jsxs("div",{className:o.panel,children:[!l&&r.jsx(X.Input,{"aria-label":"Filter",className:o.filter,icon:"search",onChange:e=>q(e.target.value),placeholder:L,ref:m,style:se,type:"search",value:j}),r.jsxs(ue.List,{"aria-label":"Dropdown",className:o.options,children:[A.map(e=>{const d=e.value===w;return r.jsx("li",{"data-component":"dropdown",children:r.jsxs(F.Button,{"aria-label":d?`${e.text}, selected`:e.text,className:E.t(o.option,d&&o.selected),disabled:e.disabled,onClick:()=>ie(e.value),variant:"tertiary",children:[r.jsx("span",{className:o.text,children:G(e)}),e.groupLabel&&r.jsx("small",{className:o.group,children:e.groupLabel})]})},`${e.groupLabel??"root"}-${e.value}`)}),C&&s&&r.jsx("li",{children:r.jsx(F.Button,{"aria-label":V(s.render(_))||_,className:o.option,onClick:H,variant:"tertiary",children:r.jsx("span",{className:o.text,children:s.render(_)})})}),A.length===0&&!C&&r.jsx("li",{className:o.empty,children:n})]})]})]});return c?r.jsxs("div",{className:E.t(o.label,y==="inline"&&o["inline-field"]),"data-component":"dropdown",children:[r.jsx("span",{id:v,children:re}),J]}):J};exports.Dropdown=Pe;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -3,10 +3,10 @@ import { t as V } from "../../classix-DG18itHa.js";
|
|
|
3
3
|
import fe, { Children as me, isValidElement as v, useRef as I, useId as he, useState as W, useEffect as Q } from "react";
|
|
4
4
|
import { Button as z } from "../button/index.js";
|
|
5
5
|
import { i as _e } from "../../icons-CKzd_L4D.js";
|
|
6
|
-
import { f as ye, I as be } from "../../index-
|
|
6
|
+
import { f as ye, I as be } from "../../index-DFXqYJat.js";
|
|
7
7
|
import { List as ge } from "../list/index.js";
|
|
8
|
-
import { S as ve, s as xe, r as ee } from "../../index-
|
|
9
|
-
import '../../assets/
|
|
8
|
+
import { S as ve, s as xe, r as ee } from "../../index-B9xtLe2w.js";
|
|
9
|
+
import '../../assets/index39.css';function L(t) {
|
|
10
10
|
return typeof t == "string" || typeof t == "number" ? String(t) : Array.isArray(t) ? t.map(L).join(" ") : v(t) ? L(t.props.children) : "";
|
|
11
11
|
}
|
|
12
12
|
function we(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/index40.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",T="_dragging_1rpsf_19",S="_minimal_1rpsf_23",g={dropzone:R,dragging:T,minimal:S},k=({accepts:D,label:m="Select files",maxFileSize:_,multiple:d=!1,onChange:n,onValidation:a,variant:p="default",...y})=>{const f=F.useRef(null),[x,l]=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((u,o)=>(o.size===0?u.emptyFiles.push(o):_&&o.size>_?u.oversizedFiles.push(o):u.validFiles.push(o),u),{validFiles:[],emptyFiles:[],oversizedFiles:[]});return(s.length>0||r.length>0)&&(a==null||a(s,r)),t},j=e=>{c(e),l(!1);const t=Array.from(e.dataTransfer.files??[]),s=z(t);if(s.length===0)return;const r=d?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=d?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),l(!0)},onDragOver:e=>{c(e),l(!0)},onDragLeave:e=>{c(e),l(!1)},onDrop:j,...y,"data-component":"dropzone",children:i.jsxs("label",{children:[i.jsx("input",{accept:D,"aria-label":m,hidden:!0,multiple:d,onChange:h,ref:f,type:"file"}),i.jsx(I.Icon,{name:"upload",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/index40.css';const R = "_dropzone_1rpsf_1", w = "_dragging_1rpsf_19", B = "_minimal_1rpsf_23", m = {
|
|
7
7
|
dropzone: R,
|
|
8
8
|
dragging: w,
|
|
9
9
|
minimal: B
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/index41.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 mn=(n,e,t)=>g0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),U=require("react"),js=require("react-dom"),ei=require("../../classix-5H4IWnMA.cjs"),m0=require("../file/index.cjs"),je=require("../button/index.cjs"),b0=require("../dropzone/index.cjs"),qe=require("../icon/index.cjs"),qs=require("../../index-CP5A_BGJ.cjs"),y0=require("../toolbar/index.cjs");function _0(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 Ru=_0(U);function fn(n){return{}}const du={},x0={},ka={},It={},Yt={},Ln={},en={},hu={},ti={},Dn={},Mn={},He={},Wi={},Hi={},v0={},Na={},w0={},Aa={},S0={},Oa={},Ia={},Fr={},T0={},Pa={},La={},Da={},C0={},E0={},k0={},Us={},Ma={},N0={},Ra={},Ba={},A0={},pu={},Vi={},ni={},O0={},I0={},hr={},pr={},P0={},L0={},D0={},Be=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,M0=Be&&"documentMode"in document?document.documentMode:null,Pe=Be&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),_t=Be&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),jr=!(!Be||!("InputEvent"in window)||M0)&&"getTargetRanges"in new window.InputEvent("input"),gu=Be&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kn=Be&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,R0=Be&&/Android/.test(navigator.userAgent),Fa=Be&&/^(?=.*Chrome).*/i.test(navigator.userAgent),B0=Be&&R0&&Fa,Gi=Be&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Fa,Jn=1,wt=3,Lt=0,ja=1,rn=2,F0=0,j0=1,q0=2,qr=4,Ur=8,Ki=128,U0=112|(3|qr|Ur)|Ki,Ji=1,Xi=2,Zi=3,Qi=4,Yi=5,es=6,mu=gu||Kn||Gi?" ":"",rt=`
|
|
2
2
|
|
|
3
3
|
`,z0=_t?" ":mu,qa="֑-߿יִ-﷽ﹰ-ﻼ",Ua="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",$0=new RegExp("^[^"+Ua+"]*["+qa+"]"),W0=new RegExp("^[^"+qa+"]*["+Ua+"]"),Dt={bold:1,code:16,highlight:Ki,italic:2,strikethrough:qr,subscript:32,superscript:64,underline:Ur},H0={directionless:1,unmergeable:2},zs={center:Xi,end:es,justify:Qi,left:Ji,right:Zi,start:Yi},V0={[Xi]:"center",[es]:"end",[Qi]:"justify",[Ji]:"left",[Zi]:"right",[Yi]:"start"},G0={normal:0,segmented:2,token:1},K0={[F0]:"normal",[q0]:"segmented",[j0]:"token"};function J0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var M=J0(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 zr(...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 X0=100;let ri=!1,ts=0;function Z0(n){ts=n.timeStamp}function Bu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&yu(n,t)!==void 0}function Q0(n,e,t){const r=Oe(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 Y0(n,e,t){if(L(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===wt&&t.isAttached()}function ef(n,e,t,r){for(let u=n;u&&!gf(u);u=Zn(u)){const i=yu(u,e);if(i!==void 0){const s=ce(i,t);if(s)return te(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>X0;try{Ce(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=ef(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&D(b)&&Y0(u,m,b)&&Q0(m,b,n);else if(p==="childList"){l=!0;const x=d.addedNodes;for(let T=0;T<x.length;T++){const E=x[T],S=Ka(E),P=E.parentNode;if(P!=null&&E!==a&&S===null&&!Bu(E,P,n)){if(_t){const z=E.innerText||E.nodeValue;z&&(f+=z)}P.removeChild(E)}}const w=d.removedNodes,C=w.length;if(C>0){let T=0;for(let E=0;E<C;E++){const S=w[E];(Bu(S,m,n)||a===S)&&(m.appendChild(S),T++)}C!==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"||Bu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,Ae(u)),_t&&el(n)&&u.insertRawText(f))})}finally{ri=!1}}function $a(n){const e=n._observer;e!==null&&za(n,e.takeRecords(),e)}function Wa(n){(function(e){ts===0&&xu(e).addEventListener("textInput",Z0,!0)})(n),n._observer=new MutationObserver((e,t)=>{za(n,e,t)})}function $s(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 Ws(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($s(e,r)){r=Ws(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&D(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if($s(r,t)){r=Ws(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(!k(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let tf=1;const nf=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 te(un(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&bu(e)==null)}function Xn(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 Cu}function Va(n){let e=n;for(;e!=null;){const t=bu(e);if(rs(t))return t;e=Zn(e)}return null}function bu(n){return n?n.__lexicalEditor:null}function At(n){return n.isToken()||n.isSegmented()}function rf(n){return n.nodeType===wt}function $r(n){let e=n;for(;e!=null;){if(rf(e))return e;e=e.firstChild}return null}function Wr(n,e,t){const r=Dt[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)||xt(n)||te(n)}function uf(n,e){if(e!=null)return void(n.__key=e);xe(),xl();const t=ue(),r=ot(),u=""+tf++;r._nodeMap.set(u,n),k(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=ja,n.__key=u}function Pt(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 Hr(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,k(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function pe(n){xe();const e=ue(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=ce(t);r!==null&&r.getWritable()}if(n!==null){const r=ce(n);r!==null&&r.getWritable()}}}function gt(){return nr()?null:ue()._compositionKey}function ce(n,e){const t=(e||ot())._nodeMap.get(n);return t===void 0?null:t}function Ka(n,e){const t=yu(n,ue());return t!==void 0?ce(t,e):null}function yu(n,e){return n[`__lexicalKey_${e._key}`]}function un(n,e){let t=n;for(;t!=null;){const r=Ka(t,e);if(r!==null)return r;t=Zn(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 Ae(n){xe();const e=ot();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Zt(n){const e=ue(),t=function(r,u){let i=r;for(;i!=null;){const s=yu(i,u);if(s!==void 0)return s;i=Zn(i)}return null}(n,e);return t===null?n===e.getRootElement()?ce("root"):null:ce(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===wt?n.nodeValue:null}function is(n,e,t){const r=Oe(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=un(u);if(o!==null&&D(a)){if(o===mu&&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]===mu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(pe(null),gu||Kn||Gi)i.remove();else{const m=ue();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=tr(),h=i.getTextContentSize(),c=gt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||L(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(!L(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=oe(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function sf(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)||k(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 Tn(n,e){return Pe?n:e}function Zs(n){return n==="Enter"}function bn(n){return n==="Backspace"}function yn(n){return n==="Delete"}function Qs(n,e,t){return n.toLowerCase()==="a"&&Tn(e,t)}function of(){const n=ie();Ae(Ha(n.select(0,n.getChildrenSize())))}function En(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=zr(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 Rn(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=xu(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function F(n,e,t){return Sl(n,e,t)}function _u(n){return!be(n)&&!n.isLastChild()&&!n.isInline()}function Vr(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&M(75,e),t}function Zn(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 xu(n){const e=n._window;return e===null&&M(78),e}function af(n){let e=n.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(n){return be(n)||k(n)&&n.isShadowRoot()}function St(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 Fu(n,e){!be(n.getParent())||k(e)||te(e)||M(99)}function ju(n){return(te(n)||k(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 lf(n,e,t){let r=n._blockCursorElement;if(L(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())ju(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&ju(l)){const f=l.getPreviousSibling();(f===null||ju(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=zr(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 Oe(n){return Be?(n||window).getSelection():null}function cf(n){return Ut(n)&&n.tagName==="A"}function Ut(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 Gr(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 ht(n){if(te(n)&&!n.isInline())return!0;if(!k(n)||ut(n))return!1;const e=n.getFirstChild(),t=e===null||xt(e)||D(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function _n(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function ff(){return ue()}const to=new WeakMap,df=new Map;function hf(n){if(!n._readOnly&&n.isEmpty())return df;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 pf(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function gf(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&&(k(s)&&tl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let vt,ye,Bn,vu,ii,si,Mt,Re,oi,Fn,ae="",me="",ze=null,Le="",et="",nl=!1,jn=!1,Ir=null;function Kr(n,e){const t=Mt.get(n);if(e!==null){const r=ci(n);r.parentNode===e&&e.removeChild(r)}if(Re.has(n)||ye._keyToDOMMap.delete(n),k(t)){const r=Xr(t,Mt);ai(r,0,r.length-1,null)}t!==void 0&&os(Fn,Bn,vu,t,"destroyed")}function ai(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&Kr(i,r)}}function Nt(n,e){n.setProperty("text-align",e)}const mf="40px";function rl(n,e){const t=vt.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")||mf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function ul(n,e){const t=n.style;e===0?Nt(t,""):e===Ji?Nt(t,"left"):e===Xi?Nt(t,"center"):e===Zi?Nt(t,"right"):e===Qi?Nt(t,"justify"):e===Yi?Nt(t,"start"):e===es&&Nt(t,"end")}function Jr(n,e){const t=Re.get(n);t===void 0&&M(60);const r=t.createDOM(vt,ye);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,ye),D(t)?r.setAttribute("data-lexical-text","true"):te(t)&&r.setAttribute("data-lexical-decorator","true"),k(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=me;me="",li(a,f,0,l,f.getDOMSlot(h)),sl(f,h),me=c})(Xr(t,Re),o,t,r)}const s=t.__format;s!==0&&ul(r,s),t.isInline()||il(null,t,r),_u(t)&&(ae+=rt,et+=rt)}else{const u=t.getTextContent();if(te(t)){const i=t.decorate(ye,vt);i!==null&&ol(n,i),r.contentEditable="false"}else D(t)&&(t.isDirectionless()||(me+=u));ae+=u,et+=u}return e!==null&&e.insertChild(r),os(Fn,Bn,vu,t,"created"),r}function li(n,e,t,r,u){const i=ae;ae="";let s=t;for(;s<=r;++s){Jr(n[s],u);const o=Re.get(n[s]);o!==null&&D(o)&&(ze===null&&(ze=o.getFormat()),Le===""&&(Le=o.getStyle()))}_u(e)&&(ae+=rt),u.element.__lexicalTextContent=ae,ae=i+ae}function no(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return xt(r)?"line-break":te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function il(n,e,t){const r=no(n,Mt),u=no(e,Re);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function sl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==me||r!==Ir){const i=me==="",s=i?Ir:(u=me,$0.test(u)?"rtl":W0.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=vt.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=zr(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=zr(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}jn||(n.getWritable().__dir=s)}Ir=s,e.__lexicalDirTextContent=me,e.__lexicalDir=s}var u}function bf(n,e,t){const r=me;var u;me="",ze=null,Le="",function(i,s,o){const a=ae,l=i.__size,f=s.__size;ae="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)Cn(c,h);else{const m=ci(c),g=Jr(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}Kr(c,null)}const p=Re.get(d);D(p)&&(ze===null&&(ze=p.getFormat()),Le===""&&(Le=p.getStyle()))}else{const c=Xr(i,Mt),d=Xr(s,Re);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,x){const w=y-1,C=b-1;let T,E,S=x.getFirstChild(),P=0,z=0;for(;P<=w&&z<=C;){const O=m[P],B=g[z];if(O===B)S=qu(Cn(B,x.element)),P++,z++;else{T===void 0&&(T=new Set(m)),E===void 0&&(E=new Set(g));const I=E.has(O),A=T.has(B);if(I)if(A){const q=Vr(ye,B);q===S?S=qu(Cn(B,x.element)):(x.withBefore(S).insertChild(q),Cn(B,x.element)),P++,z++}else Jr(B,x.withBefore(S)),z++;else S=qu(ci(O)),Kr(O,x.element),P++}const _=Re.get(B);_!==null&&D(_)&&(ze===null&&(ze=_.getFormat()),Le===""&&(Le=_.getStyle()))}const v=P>w,N=z>C;if(v&&!N){const O=g[C+1],B=O===void 0?null:ye.getElementByKey(O);li(g,p,z,C,x.withBefore(B))}else N&&!v&&ai(m,P,w,x.element)})(s,c,d,l,f,o)}_u(s)&&(ae+=rt),h.__lexicalTextContent=ae,ae=a+ae}(n,e,e.getDOMSlot(t)),sl(e,t),Bt(u=e)&&ze!=null&&ze!==u.__textFormat&&!jn&&(u.setTextFormat(ze),u.setTextStyle(Le)),function(i){Bt(i)&&Le!==""&&Le!==i.__textStyle&&!jn&&i.setTextStyle(Le)}(e),me=r}function Xr(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 Cn(n,e){const t=Mt.get(n);let r=Re.get(n);t!==void 0&&r!==void 0||M(61);const u=nl||si.has(n)||ii.has(n),i=Vr(ye,n);if(t===r&&!u){if(k(t)){const s=i.__lexicalTextContent;s!==void 0&&(ae+=s,et+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(me+=o)}else{const s=t.getTextContent();D(t)&&!t.isDirectionless()&&(me+=s),et+=s,ae+=s}return i}if(t!==r&&u&&os(Fn,Bn,vu,r,"updated"),r.updateDOM(t,i,vt)){const s=Jr(n,null);return e===null&&M(62),e.replaceChild(s,i),Kr(n,null),s}if(k(t)&&k(r)){const s=r.__indent;s!==t.__indent&&rl(i,s);const o=r.__format;o!==t.__format&&ul(i,o),u&&(bf(t,r,i),be(r)||r.isInline()||il(t,r,i)),_u(r)&&(ae+=rt,et+=rt)}else{const s=r.getTextContent();if(te(r)){const o=r.decorate(ye,vt);o!==null&&ol(n,o)}else D(r)&&!r.isDirectionless()&&(me+=s);ae+=s,et+=s}if(!jn&&be(r)&&r.__cachedText!==et){const s=r.getWritable();s.__cachedText=et,r=s}return i}function ol(n,e){let t=ye._pendingDecorators;const r=ye._decorators;if(t===null){if(r[n]===e)return;t=Ja(ye)}t[n]=e}function qu(n){let e=n.nextSibling;return e!==null&&e===ye._blockCursorElement&&(e=e.nextSibling),e}function yf(n,e,t,r,u,i){ae="",et="",me="",nl=r===rn,Ir=null,ye=t,vt=t._config,Bn=t._nodes,vu=ye._listeners.mutation,ii=u,si=i,Mt=n._nodeMap,Re=e._nodeMap,jn=e._readOnly,oi=new Map(t._keyToDOMMap);const s=new Map;return Fn=s,Cn("root",null),ye=void 0,Bn=void 0,ii=void 0,si=void 0,Mt=void 0,Re=void 0,vt=void 0,oi=void 0,Fn=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(Nn=n.timeStamp,al=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!F(e,v0,n)&&t!=null){if(function(o,a,l,f){return Xs(o)&&!a&&!f&&!l}(t,u,s,i))F(e,Na,n);else if(function(o,a,l,f,h){return Xs(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,w0,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,S0,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))An=!0,F(e,Fr,n);else if(function(o){return o===" "}(t))F(e,T0,n);else if(function(o,a){return Pe&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),An=!0,F(e,Yt,!0);else if(function(o,a){return Zs(o)&&!a}(t,r))An=!1,F(e,Fr,n);else if(function(o,a,l,f){return Pe?!a&&!l&&(bn(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&bn(o)}(t,s,i,u))bn(t)?F(e,Pa,n):(n.preventDefault(),F(e,It,!0));else if(function(o){return o==="Escape"}(t))F(e,La,n);else if(function(o,a,l,f,h){return Pe?!(l||f||h)&&(yn(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&yn(o)}(t,u,r,s,i))yn(t)?F(e,Da,n):(n.preventDefault(),F(e,It,!1));else if(function(o,a,l){return bn(o)&&(Pe?a:l)}(t,s,u))n.preventDefault(),F(e,Dn,!0);else if(function(o,a,l){return yn(o)&&(Pe?a:l)}(t,s,u))n.preventDefault(),F(e,Dn,!1);else if(function(o,a){return Pe&&a&&bn(o)}(t,i))n.preventDefault(),F(e,Mn,!0);else if(function(o,a){return Pe&&a&&yn(o)}(t,i))n.preventDefault(),F(e,Mn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Tn(l,f)}(t,s,i,u))n.preventDefault(),F(e,He,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Tn(l,f)}(t,s,i,u))n.preventDefault(),F(e,He,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Tn(l,f)}(t,s,i,u))n.preventDefault(),F(e,He,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))F(e,C0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Tn(l,f)}(t,r,i,u))n.preventDefault(),F(e,Wi,void 0);else if(function(o,a,l,f){return Pe?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||L(o)?!_t&&Qs(t,i,u)&&(n.preventDefault(),F(e,ni,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(Pe?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,pu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(Pe?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,D0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Ce(e,()=>{te(un(t))||(pi=!0)})}],["compositionstart",function(n,e){Ce(e,()=>{const t=j();if(L(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();pe(r.key),(n.timeStamp<Nn+fi||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||D(u)&&u.getStyle()!==t.style)&&F(e,en,z0)}})}],["compositionend",function(n,e){_t?xn=!0:Ce(e,()=>{Uu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Ce(e,()=>{const t=j(),r=n.data,u=dl(n);if(r!=null&&L(t)&&fl(t,u,r,n.timeStamp,!1)){xn&&(Uu(e,r),xn=!1);const i=t.anchor.getNode(),s=Oe(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;jr&&!t.isCollapsed()&&D(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===Ya(s.anchorNode)||F(e,en,r);const f=r.length;_t&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),gu||Kn||Gi||!e.isComposing()||(Nn=0,pe(null))}else is(!1,e,r!==null?r:void 0),xn&&(Uu(e,r||void 0),xn=!1);xe(),$a(ue())}),Kt=null}],["click",function(n,e){Ce(e,()=>{const t=j(),r=Oe(e._window),u=tr();if(r){if(L(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!be(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()&&(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===Jn||s===wt)&&Ae(fs(u,r,e,n))}}}F(e,ka,n)})}],["cut",Xe],["copy",Xe],["dragstart",Xe],["dragover",Xe],["dragend",Xe],["paste",Xe],["focus",Xe],["blur",Xe],["drop",Xe]];jr&&di.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=dl(t);u==="deleteCompositionText"||_t&&el(r)||u!=="insertCompositionText"&&Ce(r,()=>{const s=j();if(u==="deleteContentBackward"){if(s===null){const d=tr();if(!L(d))return;Ae(d.clone())}if(L(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,al==="MediaLast"&&o<Nn+fi&&r.isComposing()&&d){if(pe(null),Nn=0,setTimeout(()=>{Ce(r,()=>{pe(null)})},fi),L(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),D(p)||M(142),s.style=p.getStyle()}}else{pe(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;B0&&d&&!y&&g||F(r,It,!0)}return}}var o;if(!L(s))return;const a=t.data;Kt!==null&&is(!1,r,Kt),s.dirty&&Kt===null||!s.isCollapsed()||be(s.anchor.getNode())||i===null||s.applyDOMRange(i),Kt=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,en,t);break;case"insertFromComposition":pe(null),F(r,en,t);break;case"insertLineBreak":pe(null),F(r,Yt,!1);break;case"insertParagraph":pe(null),An&&!Kn?(An=!1,F(r,Yt,!1)):F(r,Ln,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":F(r,hu,t);break;case"deleteByComposition":(function(d,p){return d!==p||k(d)||k(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,It,!1);break;case"deleteWordBackward":F(r,Dn,!0);break;case"deleteWordForward":F(r,Dn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":F(r,Mn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":F(r,Mn,!1);break;case"formatStrikeThrough":F(r,He,"strikethrough");break;case"formatBold":F(r,He,"bold");break;case"formatItalic":F(r,He,"italic");break;case"formatUnderline":F(r,He,"underline");break;case"historyUndo":F(r,Wi,void 0);break;case"historyRedo":F(r,Hi,void 0)}else{if(a===`
|
|
4
4
|
`)t.preventDefault(),F(r,Yt,!1);else if(a===rt)t.preventDefault(),F(r,Ln,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,en,a)):Kt=a;ll=t.timeStamp}})}(n,e)]);let Nn=0,al=null,ll=0,Kt=null;const Zr=new WeakMap;let hi=!1,pi=!1,An=!1,xn=!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=Oe(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&&(!jr||ll<r+50)||o.isDirty()&&d<2||Za(t))&&i.offset!==s.offset&&!o.isComposing()||At(o)||o.isDirty()&&d>1||(u||!jr)&&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||sf(n,o)}function ro(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===wt&&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))||Ce(e,()=>{if(!t)return void Ae(null);if(!Xn(e,r,i))return;const o=j();if(L(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=xu(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 x=a.getNode();o.style="",x instanceof dn&&x.getChildrenSize()===0?(o.format=x.getTextFormat(),o.style=x.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 x=U0,w=!1;for(let C=0;C<d;C++){const T=c[C],E=T.getTextContentSize();if(D(T)&&E!==0&&!(C===0&&T.__key===y&&m===E||C===d-1&&T.__key===b&&g===0)&&(w=!0,x&=T.getFormat(),x===0))break}o.format=w?x:0}}F(e,du,void 0)})}function dl(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Uu(n,e){const t=n._compositionKey;if(pe(null),t!==null&&e!=null){if(e===""){const r=ce(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/index41.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 $, jsxs as Lt, Fragment as Wr } from "react/jsx-runtime";
|
|
@@ -10,7 +10,7 @@ import { File as k0 } from "../file/index.js";
|
|
|
10
10
|
import { Button as je } from "../button/index.js";
|
|
11
11
|
import { Dropzone as A0 } from "../dropzone/index.js";
|
|
12
12
|
import { Icon as ze } from "../icon/index.js";
|
|
13
|
-
import { I as Vs } from "../../index-
|
|
13
|
+
import { I as Vs } from "../../index-DFXqYJat.js";
|
|
14
14
|
import { Toolbar as O0 } from "../toolbar/index.js";
|
|
15
15
|
function mn(n) {
|
|
16
16
|
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/index42.css');const e=require("react/jsx-runtime"),n="_header_1byal_15",t={"empty-state":"_empty-state_1byal_3",header:n},c=({button:s,content:a,header:r})=>e.jsxs("div",{className:t["empty-state"],"data-component":"emptystate",children:[e.jsx("p",{className:t.header,children:r}),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/index43.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/index43.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/index44.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/index44.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/index45.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),x=require("../icon/index.cjs"),f="_file_1ujkv_1",h="_details_1ujkv_54",v="_name_1ujkv_61",N="_extension_1ujkv_73",b="_subtitle_1ujkv_83",n={file:f,details:h,"name-line":"_name-line_1ujkv_61",name:v,extension:N,subtitle:b,delete:"_delete_1ujkv_92"},I={".doc":"document-doc",".docx":"document-doc",".pdf":"document-pdf",".ppt":"document-ppt",".pptx":"document-ppt",".xls":"document-xls",".xlsx":"document-xls"},g=({deleteAccessibleLabel:r,name:s,onClick:t,onDelete:i,ref:m,subtitle:o,url:a})=>{const c=s.lastIndexOf("."),d=c>0&&c<s.length-1,_=d?s.slice(0,c):s,l=d?s.slice(c):"",p=I[l.toLowerCase()]??"document";return e.jsxs("div",{className:n.file,ref:m,"data-component":"file",children:[e.jsxs("a",{href:a,onClick:u=>{u.stopPropagation(),(t||!a)&&(u.preventDefault(),t==null||t())},title:s,children:[e.jsx(j.Figure,{children:e.jsx(x.Icon,{name:p,fill:!0})}),e.jsxs("span",{className:n.details,children:[e.jsxs("span",{className:n["name-line"],children:[e.jsx("span",{className:n.name,children:_}),l&&e.jsx("span",{className:n.extension,children:l})]}),o&&e.jsx("span",{className:n.subtitle,children:o})]})]}),i&&e.jsx("a",{"aria-label":r??`Delete ${s}`,className:n.delete,onClick:()=>i(),tabIndex:0,children:e.jsx(x.Icon,{name:"trash",size:"small",fill:!0})})]})};exports.File=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Figure as h } from "../figure/index.js";
|
|
3
3
|
import { Icon as u } from "../icon/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index45.css';const N = "_file_1ujkv_1", j = "_details_1ujkv_54", v = "_name_1ujkv_61", I = "_extension_1ujkv_73", b = "_subtitle_1ujkv_83", n = {
|
|
5
5
|
file: N,
|
|
6
6
|
details: j,
|
|
7
7
|
"name-line": "_name-line_1ujkv_61",
|
|
@@ -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/index24.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/index23.css');const l=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),m="_form_zn9g2_1",a="_fill_zn9g2_45",t={form:m,fill:a},f=({animation:r,children:o,className:e,fill:s=!1,...n})=>l.jsx("form",{className:i.t(e,s&&t.fill,t.form),"data-animation":r,...n,"data-component":"form",children:o&&o});exports.Form=f;
|
|
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 s } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index23.css';const a = "_form_zn9g2_1", i = "_fill_zn9g2_45", m = {
|
|
4
4
|
form: a,
|
|
5
5
|
fill: i
|
|
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/index22.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/index22.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/index21.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/index21.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/index20.css');const o=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),r="_header_ousi6_1",u="_capitalize_ousi6_85",c="_jumbo_ousi6_97",e={header:r,capitalize:u,jumbo:c},n={default:e.default,jumbo:e.jumbo},d=({capitalize:a=!1,children:t,variant:s="default"})=>o.jsx("header",{className:i.t(e.header,n[s],a&&e.capitalize),"data-component":"header",children:t});exports.Header=d;
|
|
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 r } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index20.css';const i = "_header_ousi6_1", c = "_capitalize_ousi6_85", u = "_jumbo_ousi6_97", e = {
|
|
4
4
|
header: i,
|
|
5
5
|
capitalize: c,
|
|
6
6
|
jumbo: 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/index46.css');const r=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),t=require("../../icons-DYCSlAoX.cjs"),m="_icon_vhz6u_1",u="_small_vhz6u_10",_="_medium_vhz6u_15",g="_large_vhz6u_20",d="_danger_vhz6u_25",e={icon:m,small:u,medium:_,large:g,danger:d,"gap-right":"_gap-right_vhz6u_29","gap-left":"_gap-left_vhz6u_33"},h={large:e.large,medium:e.medium,small:e.small},v={danger:e.danger},z=({fill:o,gap:n="none",name:a,size:c="medium",variant:s})=>{const i={maskImage:t.iconSVG(a,o??!1)};return r.jsx("span",{"aria-hidden":"true",className:l.t(n!=="none"&&e[`gap-${n}`],h[c],e.icon,s&&v[s]),style:i,"data-component":"icon"})},p=()=>Object.keys(t.iconPaths);exports.Icon=z;exports.Icons=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { t as c } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { i, a as l } from "../../icons-CKzd_L4D.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index46.css';const _ = "_icon_vhz6u_1", g = "_small_vhz6u_10", u = "_medium_vhz6u_15", d = "_large_vhz6u_20", h = "_danger_vhz6u_25", n = {
|
|
5
5
|
icon: _,
|
|
6
6
|
small: g,
|
|
7
7
|
medium: 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/index19.css');const s=require("react/jsx-runtime"),F=require("../../classix-5H4IWnMA.cjs"),r=require("react"),S=require("../button/index.cjs"),B=require("../dialog/index.cjs"),G="_wrapper_2h6kn_1",R="_toolbar_2h6kn_6",V="_iframe_2h6kn_16",i={wrapper:G,toolbar:R,"fullscreen-toolbar":"_fullscreen-toolbar_2h6kn_7",iframe:V,"fullscreen-dialog":"_fullscreen-dialog_2h6kn_22","fullscreen-iframe":"_fullscreen-iframe_2h6kn_39"},f=120,$=12e3,L=8,K=({accessibleLabel:h,autoResize:l=!1,className:y,closeFullscreenLabel:q="Close fullscreen",fullscreenLabel:A="View in fullscreen",hasFullscreenView:C=!0,loading:I="lazy",onLoad:_,referrerPolicy:H="no-referrer",sandbox:x="",srcDoc:g,style:E,...k})=>{const w=r.useRef(null),o=r.useRef(null),c=r.useRef(null),[O,b]=r.useState(f),[M,d]=r.useState(!1),p=r.useCallback(()=>{o.current!==null&&(window.cancelAnimationFrame(o.current),o.current=null),c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]),v=r.useCallback(()=>{if(!l)return;const e=w.current,t=e==null?void 0:e.contentDocument;if(!e||!t)return;const m=e.style.height;try{e.style.height=`${f}px`;const a=t.querySelector("[data-iframe-content]")??t.body,u=a.getBoundingClientRect(),{body:T,documentElement:j}=t,U=Math.min(Math.max(Math.ceil(Math.max(a.scrollHeight,a.offsetHeight,u.height,T.scrollHeight,T.offsetHeight,j.scrollHeight,j.offsetHeight)+L),f),$);b(U)}catch{}finally{e.style.height=m}},[l]),n=r.useCallback(()=>{!l||o.current!==null||(o.current=window.requestAnimationFrame(()=>{o.current=null,v(),c.current!==null&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{c.current=null,v()},250)}))},[l,v]),N=e=>{var m,a;n();const t=(m=w.current)==null?void 0:m.contentDocument;Array.from((t==null?void 0:t.images)??[]).forEach(u=>{u.complete||(u.addEventListener("load",n,{once:!0}),u.addEventListener("error",n,{once:!0}))}),(a=t==null?void 0:t.fonts)==null||a.ready.then(n).catch(()=>{}),_==null||_(e)};return r.useEffect(()=>{if(l)return p(),b(f),n(),p},[l,p,n,g]),r.useEffect(()=>{var e;if(l)return window.addEventListener("resize",n),(e=window.visualViewport)==null||e.addEventListener("resize",n),()=>{var t;window.removeEventListener("resize",n),(t=window.visualViewport)==null||t.removeEventListener("resize",n)}},[l,n]),s.jsxs("div",{className:i.wrapper,"data-component":"iframe",children:[C&&s.jsx("div",{className:i.toolbar,children:s.jsx(S.Button,{"aria-expanded":M,"aria-haspopup":"dialog",onClick:()=>d(!0),variant:"tertiary",children:A})}),s.jsx("iframe",{...k,className:F.t(i.iframe,y),loading:I,onLoad:N,ref:w,referrerPolicy:H,sandbox:x,srcDoc:g,style:l?{...E,height:O,minHeight:f}:E,title:h}),M&&s.jsxs(B.Dialog,{"aria-label":`${h} fullscreen`,className:i["fullscreen-dialog"],onKeyDown:e=>{e.key==="Escape"&&d(!1)},open:!0,setOpen:d,children:[s.jsx("div",{className:i["fullscreen-toolbar"],children:s.jsx(S.Button,{autoFocus:!0,onClick:()=>d(!1),children:q})}),s.jsx("iframe",{...k,className:F.t(i.iframe,i["fullscreen-iframe"],y),loading:"eager",referrerPolicy:H,sandbox:x,srcDoc:g,title:`${h} fullscreen`})]})]})};exports.Iframe=K;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -3,7 +3,7 @@ import { t as N } from "../../classix-DG18itHa.js";
|
|
|
3
3
|
import { useRef as v, useState as O, useCallback as H, useEffect as C } from "react";
|
|
4
4
|
import { Button as S } from "../button/index.js";
|
|
5
5
|
import { Dialog as L } from "../dialog/index.js";
|
|
6
|
-
import '../../assets/
|
|
6
|
+
import '../../assets/index19.css';const K = "_wrapper_2h6kn_1", X = "_toolbar_2h6kn_6", D = "_iframe_2h6kn_16", o = {
|
|
7
7
|
wrapper: K,
|
|
8
8
|
toolbar: X,
|
|
9
9
|
"fullscreen-toolbar": "_fullscreen-toolbar_2h6kn_7",
|
|
@@ -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 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/index18.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-DYCSlAoX.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-DYCSlAoX.cjs");const e=require("../../index-CP5A_BGJ.cjs");require("../../use-touched-D_TJ8wDc.cjs");exports.Input=e.Input;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../classix-DG18itHa.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../icons-CKzd_L4D.js";
|
|
5
|
-
import { I as a } from "../../index-
|
|
5
|
+
import { I as a } from "../../index-DFXqYJat.js";
|
|
6
6
|
import "../../use-touched-DXIJVVzz.js";
|
|
7
7
|
export {
|
|
8
8
|
a as Input
|
|
@@ -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/index48.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/index48.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/index49.css');const r=require("react/jsx-runtime"),j=require("../../classix-5H4IWnMA.cjs"),l=require("react");function E(n){return l.isValidElement(n)&&n.type===l.Fragment}function x(n,s=[]){return l.Children.forEach(n,e=>{E(e)?x(e.props.children,s):s.push(e)}),s}function h(n,{wrapper:s="li"}={}){return x(n).filter(t=>t!==null).map((t,c)=>{if(l.isValidElement(t)&&t.type===s)return t;const a=l.isValidElement(t)&&t.key!=null?t.key:c;return l.createElement(s,{key:a},t)})}const N="_controls_1lnsr_1",d="_horizontal_1lnsr_6",g="_list_1lnsr_17",p="_columns_1lnsr_58",o={controls:N,horizontal:d,list:g,columns:p};function z({children:n,className:s,columns:e=1,controls:i,horizontal:t,ordered:c,style:a,...u}){const m=Number.isFinite(e)?Math.max(1,Math.floor(e)):1,f=j.t(s,o.list,m>1&&o.columns,t&&o.horizontal),_={...a,"--list-columns":m},y=c?r.jsx("ol",{className:f,style:_,...u,children:h(n)}):r.jsx("ul",{className:f,style:_,...u,children:h(n)});return i==null?y:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:o.controls,children:i}),y]})}exports.List=z;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as E, Fragment as N } 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/index49.css';function x(n) {
|
|
5
5
|
return e.isValidElement(n) && n.type === e.Fragment;
|
|
6
6
|
}
|
|
7
7
|
function p(n, l = []) {
|
|
@@ -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 t=require("react/jsx-runtime"),d=require("../../classix-5H4IWnMA.cjs"),c="_loading_1d5zd_23",l="_spin_1d5zd_1",_="_ping_1d5zd_39",r="_sticky_1d5zd_65",n={loading:c,default:"_default_1d5zd_28",spin:l,ping:_,sticky:r},g=({variant:i="default",size:s,sticky:o=!1,...a})=>{const e={"--border-size":s?s/8+"px":void 0,"--size":s?s+"px":void 0};return t.jsx("div",{className:d.t(n.loading,o&&n.sticky),"data-component":"loading",children:t.jsx("span",{className:d.t(n.loading,n[i]),style:e,...a})})};exports.Loading=g;
|
|
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 s } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index50.css';const l = "_loading_1d5zd_23", _ = "_spin_1d5zd_1", p = "_ping_1d5zd_39", e = "_sticky_1d5zd_65", n = {
|
|
4
4
|
loading: l,
|
|
5
5
|
default: "_default_1d5zd_28",
|
|
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 r=require("react/jsx-runtime"),m=require("../../classix-5H4IWnMA.cjs"),f=require("react"),b=require("../button/index.cjs"),p=require("../icon/index.cjs"),h=require("../list/index.cjs"),j=require("../popover/index.cjs"),v="_list_z7awx_3",y="_item_z7awx_15",w="_active_z7awx_38",D="_danger_z7awx_47",l={list:v,item:y,active:w,danger:D};function q(o){return o.filter(s=>!!(s&&!s.disabled))}const k=({close:o,initialFocus:s,items:u,menuAccessibleLabel:d,onItemSelect:c})=>{const a=f.useRef([]),t=f.useCallback(e=>{const n=q(a.current);if(n.length===0)return;if(e==="first"){n[0].focus();return}if(e==="last"){n[n.length-1].focus();return}const i=n.indexOf(document.activeElement),g=e==="next"?(i+1)%n.length:(i-1+n.length)%n.length;n[g].focus()},[]);f.useEffect(()=>{t(s??"first")},[t,s]);const x=e=>{if(e.key==="ArrowDown"){e.preventDefault(),t("next");return}if(e.key==="ArrowUp"){e.preventDefault(),t("previous");return}if(e.key==="Home"){e.preventDefault(),t("first");return}e.key==="End"&&(e.preventDefault(),t("last"))},_=e=>{var n;(n=e.onSelect)==null||n.call(e),c==null||c(e),o()};return r.jsx(h.List,{"aria-label":d,className:l.list,onKeyDown:x,role:"menu","data-component":"menupanel",children:u.map((e,n)=>r.jsx("li",{role:"none",children:r.jsxs(b.Button,{"aria-current":e.isActive?"true":void 0,"aria-label":e.accessibleLabel,className:m.t(l.item,e.isActive&&l.active,e.isDanger&&l.danger),disabled:e.disabled,onClick:()=>_(e),ref:i=>{a.current[n]=i},role:"menuitem",variant:"tertiary",children:[e.icon&&r.jsx(p.Icon,{fill:!0,gap:"right",name:e.icon,size:"small"}),r.jsx("span",{children:e.label})]})},e.id??n))})},z=({items:o,menuAccessibleLabel:s="Menu",onItemSelect:u,position:d="left",triggerAccessibleLabel:c="Open menu"})=>r.jsx(j.Popover,{position:d,triggerAccessibleLabel:c,triggerAriaHasPopup:"menu",triggerButtonContent:r.jsx(p.Icon,{name:"dots",size:"medium"}),"data-component":"menu",children:({close:a,initialFocus:t})=>r.jsx(k,{close:a,initialFocus:t,items:o,menuAccessibleLabel:s,onItemSelect:u})});exports.Menu=z;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -5,7 +5,7 @@ import { Button as v } from "../button/index.js";
|
|
|
5
5
|
import { Icon as d } from "../icon/index.js";
|
|
6
6
|
import { List as y } from "../list/index.js";
|
|
7
7
|
import { Popover as D } from "../popover/index.js";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index16.css';const k = "_list_z7awx_3", z = "_item_z7awx_15", A = "_active_z7awx_38", B = "_danger_z7awx_47", c = {
|
|
9
9
|
list: k,
|
|
10
10
|
item: z,
|
|
11
11
|
active: A,
|
|
@@ -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 e=require("react/jsx-runtime"),p=require("../../classix-5H4IWnMA.cjs"),v=require("../avatar/index.cjs"),x=require("../icon/index.cjs"),b="_message_ugbdy_1",y="_timestamp_ugbdy_78",j="_attachments_ugbdy_83",h="_preview_ugbdy_101",s={"message-group":"_message-group_ugbdy_1",message:b,timestamp:y,attachments:j,preview:h},f=({appearance:m="default",attachments:i,author:a,authorColor:r,authorImageUrl:o,authorRole:d,content:g,iconName:l="info",id:_,preview:u,timestamp:c,type:t="default"})=>{const n=c?new Date(c):void 0;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[a&&e.jsx(v.Avatar,{accessibleLabel:a,color:r,imageUrl:o,name:a,role:d}),e.jsxs("div",{className:p.t(s.message,u&&s.preview),"data-appearance":m,"data-id":_,"data-type":t,children:[t=="system"&&e.jsx(x.Icon,{fill:!0,gap:"right",name:l}),g]}),i&&e.jsx("div",{className:s.attachments,children:i}),n&&e.jsx("time",{className:s.timestamp,dateTime:n.toISOString(),children:n.toLocaleString()})]})};exports.Message=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { t as v } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Avatar as f } from "../avatar/index.js";
|
|
4
4
|
import { Icon as b } from "../icon/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index15.css';const y = "_message_ugbdy_1", h = "_timestamp_ugbdy_78", w = "_attachments_ugbdy_83", N = "_preview_ugbdy_101", e = {
|
|
6
6
|
"message-group": "_message-group_ugbdy_1",
|
|
7
7
|
message: y,
|
|
8
8
|
timestamp: h,
|
|
@@ -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 s=require("react/jsx-runtime"),S=require("../../classix-5H4IWnMA.cjs"),o=require("react"),v=require("../editor/index.cjs"),L=require("../list/index.cjs"),w=require("../message/index.cjs"),E="_messages_1e940_1",I="_fill_1e940_16",m={messages:E,fill:I},h=({fill:g=!1,files:i,handleUpload:f,maxEditorRows:p=5,message:r="",messages:t,minEditorRows:_=1,onChange:x,onFilesChange:n,onSubmit:q,placeholder:b,sending:j})=>{var u;const c=o.useRef(null),[y,R]=o.useState([]),l=i??y,a=(u=t[t.length-1])==null?void 0:u.id,M=r.replace(/<[^>]*>/g,"").replace(/ /g," ").trim()==="";return o.useLayoutEffect(()=>{var d;const e=(d=c.current)==null?void 0:d.querySelector("[data-message-list]");!e||a===void 0||(e.scrollTop=e.scrollHeight)},[a]),s.jsxs("div",{className:S.t(m.messages,g&&m.fill),"data-component":"messages",ref:c,children:[s.jsx(L.List,{"data-message-list":!0,children:t.map(e=>s.jsx(w.Message,{...e},e.id))}),s.jsx(v.Editor,{autofocus:!0,content:r,disabled:j||M&&l.length===0,files:l,maxRows:p,minRows:_,onChange:x,onFilesChange:e=>{i===void 0&&R(e),n==null||n(e)},onSubmit:q,onUpload:f,placeholder:b,submitLabel:"Send message"})]})};exports.Messages=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,7 +4,7 @@ import { useRef as I, useState as M, useLayoutEffect as S } from "react";
|
|
|
4
4
|
import { Editor as h } from "../editor/index.js";
|
|
5
5
|
import { List as j } from "../list/index.js";
|
|
6
6
|
import { Message as q } from "../message/index.js";
|
|
7
|
-
import '../../assets/
|
|
7
|
+
import '../../assets/index14.css';const H = "_messages_1e940_1", N = "_fill_1e940_16", f = {
|
|
8
8
|
messages: H,
|
|
9
9
|
fill: N
|
|
10
10
|
}, 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/index13.css');const _=require("react/jsx-runtime"),p=require("../../classix-5H4IWnMA.cjs"),b=require("react"),f=require("../../icons-DYCSlAoX.cjs"),v="_nav_1s9ne_3",h="_horizontal_1s9ne_9",g="_sidebar_1s9ne_19",m="_tabs_1s9ne_60",w="_pills_1s9ne_80",t={nav:v,horizontal:h,sidebar:g,tabs:m,pills:w},q={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},x=({animation:i,children:o,className:r,horizontal:s=!1,variant:e="default",...l})=>{const[c,a]=b.useState(!1),d={"--icon-svg":f.iconSVG("chevron")};return _.jsx("nav",{className:p.t(r,s&&t.horizontal,t.nav,q[e]),"data-animation":i,"data-open":c?"true":"false","data-orientation":s?"horizontal":"vertical",onBlurCapture:n=>{if(e!=="pills"||window.innerWidth>960)return;const u=n.relatedTarget;n.currentTarget.contains(u)||a(!1)},onClick:()=>{e!=="pills"||window.innerWidth>960||a(n=>!n)},style:d,...l,"data-component":"nav",children:o})};exports.Nav=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|