@solibo/solibo-ui 2.2.11 → 2.2.12

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.
Files changed (139) hide show
  1. package/dist/assets/index15.css +1 -1
  2. package/dist/assets/index17.css +1 -1
  3. package/dist/assets/index21.css +1 -1
  4. package/dist/assets/index22.css +1 -1
  5. package/dist/assets/index23.css +1 -1
  6. package/dist/assets/index24.css +1 -1
  7. package/dist/assets/index25.css +1 -1
  8. package/dist/assets/index26.css +1 -1
  9. package/dist/assets/index27.css +1 -1
  10. package/dist/assets/index28.css +1 -1
  11. package/dist/assets/index29.css +1 -1
  12. package/dist/assets/index30.css +1 -1
  13. package/dist/assets/index31.css +1 -1
  14. package/dist/assets/index32.css +1 -1
  15. package/dist/assets/index33.css +1 -1
  16. package/dist/assets/index34.css +1 -1
  17. package/dist/assets/index35.css +1 -1
  18. package/dist/assets/index36.css +1 -1
  19. package/dist/assets/index37.css +1 -1
  20. package/dist/assets/index38.css +1 -1
  21. package/dist/assets/index39.css +1 -1
  22. package/dist/assets/index40.css +1 -1
  23. package/dist/assets/index41.css +1 -1
  24. package/dist/assets/index42.css +1 -1
  25. package/dist/assets/index43.css +1 -1
  26. package/dist/assets/index44.css +1 -1
  27. package/dist/assets/index45.css +1 -1
  28. package/dist/assets/index46.css +1 -1
  29. package/dist/assets/index47.css +1 -1
  30. package/dist/assets/index48.css +1 -1
  31. package/dist/assets/index49.css +1 -1
  32. package/dist/assets/index50.css +1 -1
  33. package/dist/assets/index51.css +1 -1
  34. package/dist/assets/index52.css +1 -1
  35. package/dist/assets/index53.css +1 -1
  36. package/dist/assets/index54.css +1 -1
  37. package/dist/assets/index55.css +1 -1
  38. package/dist/assets/index56.css +1 -1
  39. package/dist/assets/index57.css +1 -0
  40. package/dist/assets/index58.css +1 -0
  41. package/dist/components/app-link/index.cjs +1 -1
  42. package/dist/components/app-link/index.js +1 -1
  43. package/dist/components/app-shell/index.cjs +1 -1
  44. package/dist/components/app-shell/index.js +1 -1
  45. package/dist/components/aside/index.cjs +1 -1
  46. package/dist/components/aside/index.js +1 -1
  47. package/dist/components/avatar/index.cjs +1 -1
  48. package/dist/components/avatar/index.js +1 -1
  49. package/dist/components/badge/index.cjs +1 -1
  50. package/dist/components/badge/index.js +1 -1
  51. package/dist/components/banner/index.cjs +1 -1
  52. package/dist/components/banner/index.js +1 -1
  53. package/dist/components/branding/index.cjs +1 -1
  54. package/dist/components/branding/index.js +1 -1
  55. package/dist/components/button/index.cjs +1 -1
  56. package/dist/components/button/index.js +34 -34
  57. package/dist/components/card/index.cjs +1 -1
  58. package/dist/components/card/index.js +1 -1
  59. package/dist/components/checkbox/index.cjs +1 -1
  60. package/dist/components/checkbox/index.js +1 -1
  61. package/dist/components/chip/index.cjs +1 -1
  62. package/dist/components/chip/index.js +1 -1
  63. package/dist/components/clipboard/index.cjs +1 -1
  64. package/dist/components/clipboard/index.js +1 -1
  65. package/dist/components/collapsible/index.cjs +1 -1
  66. package/dist/components/collapsible/index.js +1 -1
  67. package/dist/components/comment/index.cjs +1 -0
  68. package/dist/components/comment/index.js +10 -0
  69. package/dist/components/comments/index.cjs +1 -0
  70. package/dist/components/comments/index.js +58 -0
  71. package/dist/components/controls/index.cjs +1 -2
  72. package/dist/components/controls/index.js +6 -139
  73. package/dist/components/croppable/index.cjs +1 -1
  74. package/dist/components/croppable/index.js +1 -1
  75. package/dist/components/dialog/index.cjs +1 -1
  76. package/dist/components/dialog/index.js +1 -1
  77. package/dist/components/divider/index.cjs +1 -1
  78. package/dist/components/divider/index.js +1 -1
  79. package/dist/components/dropdown/index.cjs +1 -1
  80. package/dist/components/dropdown/index.js +3 -3
  81. package/dist/components/dropzone/index.cjs +1 -1
  82. package/dist/components/dropzone/index.js +1 -1
  83. package/dist/components/editor/index.cjs +1 -1
  84. package/dist/components/editor/index.js +491 -470
  85. package/dist/components/empty-state/index.cjs +1 -1
  86. package/dist/components/empty-state/index.js +1 -1
  87. package/dist/components/fieldset/index.cjs +1 -1
  88. package/dist/components/fieldset/index.js +1 -1
  89. package/dist/components/figure/index.cjs +1 -1
  90. package/dist/components/figure/index.js +1 -1
  91. package/dist/components/file/index.cjs +1 -1
  92. package/dist/components/file/index.js +1 -1
  93. package/dist/components/footer/index.cjs +1 -1
  94. package/dist/components/footer/index.js +1 -1
  95. package/dist/components/form/index.cjs +1 -1
  96. package/dist/components/form/index.js +1 -1
  97. package/dist/components/graph/index.cjs +1 -1
  98. package/dist/components/graph/index.js +1 -1
  99. package/dist/components/group/index.cjs +1 -1
  100. package/dist/components/group/index.js +1 -1
  101. package/dist/components/icon/index.cjs +1 -1
  102. package/dist/components/icon/index.js +1 -1
  103. package/dist/components/iframe/index.cjs +1 -1
  104. package/dist/components/iframe/index.js +5 -5
  105. package/dist/components/input/index.cjs +1 -1
  106. package/dist/components/input/index.js +1 -1
  107. package/dist/components/link/index.cjs +1 -1
  108. package/dist/components/link/index.js +1 -1
  109. package/dist/components/list/index.cjs +1 -1
  110. package/dist/components/list/index.js +1 -1
  111. package/dist/components/loading/index.cjs +1 -1
  112. package/dist/components/loading/index.js +1 -1
  113. package/dist/components/message/index.cjs +1 -1
  114. package/dist/components/message/index.js +42 -37
  115. package/dist/components/messages/index.cjs +1 -1
  116. package/dist/components/messages/index.js +105 -79
  117. package/dist/components/popover/index.cjs +1 -1
  118. package/dist/components/popover/index.js +1 -1
  119. package/dist/components/search/index.cjs +1 -1
  120. package/dist/components/search/index.js +14 -14
  121. package/dist/components/select/index.cjs +1 -1
  122. package/dist/components/select/index.js +1 -1
  123. package/dist/components/toolbar/index.cjs +1 -1
  124. package/dist/components/toolbar/index.js +1 -1
  125. package/dist/content-Duav5qcc.js +10 -0
  126. package/dist/content-i-MRPlxK.cjs +1 -0
  127. package/dist/index-Bl5EEYDv.cjs +2 -0
  128. package/dist/index-DQuc_Zkg.js +149 -0
  129. package/dist/index-DqZSdMHT.cjs +1 -0
  130. package/dist/{index-Dd20d_9U.js → index-FSKjg3Z8.js} +1 -1
  131. package/dist/{index-Dx-KtGBg.js → index-HVXauXrX.js} +1 -1
  132. package/dist/index-KGoXYG8u.js +123 -0
  133. package/dist/{index-7blZaPiA.cjs → index-S1XsOUKE.cjs} +1 -1
  134. package/dist/{index-VLDsM9it.cjs → index-riaH5c_S.cjs} +1 -1
  135. package/dist/index.cjs +1 -1
  136. package/dist/index.d.ts +78 -3
  137. package/dist/index.js +110 -104
  138. package/dist/tokens.json +1 -1
  139. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index44.css');const e=require("react/jsx-runtime"),c=require("../icon/index.cjs"),m="_header_1nfk9_14",s={"empty-state":"_empty-state_1nfk9_3",header:m},i=({button:n,content:a,header:r,icon:t})=>e.jsxs("div",{className:s["empty-state"],"data-component":"emptystate",children:[e.jsxs("p",{className:s.header,children:[t&&e.jsx(c.Icon,{gap:"right",name:t,size:"medium"}),r]}),e.jsx("p",{children:a}),n]});exports.EmptyState=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index45.css');const e=require("react/jsx-runtime"),c=require("../icon/index.cjs"),m="_header_1nfk9_14",s={"empty-state":"_empty-state_1nfk9_3",header:m},i=({button:n,content:a,header:r,icon:t})=>e.jsxs("div",{className:s["empty-state"],"data-component":"emptystate",children:[e.jsxs("p",{className:s.header,children:[t&&e.jsx(c.Icon,{gap:"right",name:t,size:"medium"}),r]}),e.jsx("p",{children:a}),n]});exports.EmptyState=i;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { Icon as p } from "../icon/index.js";
3
- import '../../assets/index44.css';const d = "_header_1nfk9_14", s = {
3
+ import '../../assets/index45.css';const d = "_header_1nfk9_14", s = {
4
4
  "empty-state": "_empty-state_1nfk9_3",
5
5
  header: d
6
6
  }, h = ({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index45.css');const s=require("react/jsx-runtime"),i=require("classix"),l="_fieldset_109id_1",d={fieldset:l},o=({className:e,...t})=>s.jsx("fieldset",{className:i(d.fieldset,e),...t,"data-component":"fieldset"});exports.Fieldset=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index46.css');const s=require("react/jsx-runtime"),i=require("classix"),l="_fieldset_109id_1",d={fieldset:l},o=({className:e,...t})=>s.jsx("fieldset",{className:i(d.fieldset,e),...t,"data-component":"fieldset"});exports.Fieldset=o;
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import i from "classix";
3
- import '../../assets/index45.css';const o = "_fieldset_109id_1", d = {
3
+ import '../../assets/index46.css';const o = "_fieldset_109id_1", d = {
4
4
  fieldset: o
5
5
  }, c = ({
6
6
  className: e,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index46.css');const s=require("react/jsx-runtime"),n=require("classix"),c="_figure_8kovu_1",v="_preview_8kovu_20",d="_reserved_8kovu_43",e={figure:c,preview:v,reserved:d},g=({accessibleLabel:r,children:t,className:o,reserveSpace:u=!1,variant:i="default"})=>s.jsxs("figure",{className:n(e.figure,i==="preview"&&e.preview,i==="preview"&&u&&e.reserved,o),"data-component":"figure",children:[t,r&&s.jsx("figcaption",{"data-content":"screen-reader",children:r})]});exports.Figure=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const s=require("react/jsx-runtime"),n=require("classix"),c="_figure_8kovu_1",v="_preview_8kovu_20",d="_reserved_8kovu_43",e={figure:c,preview:v,reserved:d},g=({accessibleLabel:r,children:t,className:o,reserveSpace:u=!1,variant:i="default"})=>s.jsxs("figure",{className:n(e.figure,i==="preview"&&e.preview,i==="preview"&&u&&e.reserved,o),"data-component":"figure",children:[t,r&&s.jsx("figcaption",{"data-content":"screen-reader",children:r})]});exports.Figure=g;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as v } from "react/jsx-runtime";
2
2
  import c from "classix";
3
- import '../../assets/index46.css';const f = "_figure_8kovu_1", p = "_preview_8kovu_20", u = "_reserved_8kovu_43", e = {
3
+ import '../../assets/index47.css';const f = "_figure_8kovu_1", p = "_preview_8kovu_20", u = "_reserved_8kovu_43", e = {
4
4
  figure: f,
5
5
  preview: p,
6
6
  reserved: u
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),x=require("../icon/index.cjs"),f=require("../button/index.cjs"),N="_file_1uuq9_1",q="_action_1uuq9_14",F="_details_1uuq9_61",b="_name_1uuq9_68",g="_extension_1uuq9_80",I="_subtitle_1uuq9_90",s={file:N,action:q,delete:"_delete_1uuq9_15",details:F,"name-line":"_name-line_1uuq9_68",name:b,extension:g,subtitle:I},P={".doc":"FileDoc",".docx":"FileDoc",".pdf":"FilePdf",".ppt":"FilePpt",".pptx":"FilePpt",".xls":"FileXls",".xlsx":"FileXls"},y=({deleteAccessibleLabel:_,name:t,onClick:n,onDelete:o,ref:p,subtitle:r,url:u})=>{const i=t.lastIndexOf("."),d=i>0&&i<t.length-1,m=d?t.slice(0,i):t,a=d?t.slice(i):"",h=P[a.toLowerCase()]??"FileText",c=e.jsxs(e.Fragment,{children:[e.jsx(j.Figure,{children:e.jsx(x.Icon,{name:h})}),e.jsxs("span",{className:s.details,children:[e.jsxs("span",{className:s["name-line"],children:[e.jsx("span",{className:s.name,children:m}),a&&e.jsx("span",{className:s.extension,children:a})]}),r&&e.jsx("span",{className:s.subtitle,children:r})]})]});return e.jsxs("div",{className:s.file,ref:p,"data-component":"file",children:[u?e.jsx("a",{className:s.action,href:u,onClick:l=>{l.stopPropagation(),n&&(l.preventDefault(),n())},title:t,children:c}):n?e.jsx("button",{"aria-label":t,className:s.action,"data-actionable":"true","data-print-content":!0,onClick:l=>{l.stopPropagation(),n()},title:t,type:"button",children:c}):e.jsx("div",{className:s.action,title:t,children:c}),o&&e.jsx(f.Button,{"aria-label":_??`Delete ${t}`,className:s.delete,onClick:()=>o(),variant:"tertiary",children:e.jsx(x.Icon,{name:"Trash",size:"small"})})]})};exports.File=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index48.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),x=require("../icon/index.cjs"),f=require("../button/index.cjs"),N="_file_1uuq9_1",q="_action_1uuq9_14",F="_details_1uuq9_61",b="_name_1uuq9_68",g="_extension_1uuq9_80",I="_subtitle_1uuq9_90",s={file:N,action:q,delete:"_delete_1uuq9_15",details:F,"name-line":"_name-line_1uuq9_68",name:b,extension:g,subtitle:I},P={".doc":"FileDoc",".docx":"FileDoc",".pdf":"FilePdf",".ppt":"FilePpt",".pptx":"FilePpt",".xls":"FileXls",".xlsx":"FileXls"},y=({deleteAccessibleLabel:_,name:t,onClick:n,onDelete:o,ref:p,subtitle:r,url:u})=>{const i=t.lastIndexOf("."),d=i>0&&i<t.length-1,m=d?t.slice(0,i):t,a=d?t.slice(i):"",h=P[a.toLowerCase()]??"FileText",c=e.jsxs(e.Fragment,{children:[e.jsx(j.Figure,{children:e.jsx(x.Icon,{name:h})}),e.jsxs("span",{className:s.details,children:[e.jsxs("span",{className:s["name-line"],children:[e.jsx("span",{className:s.name,children:m}),a&&e.jsx("span",{className:s.extension,children:a})]}),r&&e.jsx("span",{className:s.subtitle,children:r})]})]});return e.jsxs("div",{className:s.file,ref:p,"data-component":"file",children:[u?e.jsx("a",{className:s.action,href:u,onClick:l=>{l.stopPropagation(),n&&(l.preventDefault(),n())},title:t,children:c}):n?e.jsx("button",{"aria-label":t,className:s.action,"data-actionable":"true","data-print-content":!0,onClick:l=>{l.stopPropagation(),n()},title:t,type:"button",children:c}):e.jsx("div",{className:s.action,title:t,children:c}),o&&e.jsx(f.Button,{"aria-label":_??`Delete ${t}`,className:s.delete,onClick:()=>o(),variant:"tertiary",children:e.jsx(x.Icon,{name:"Trash",size:"small"})})]})};exports.File=y;
@@ -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 p } from "../icon/index.js";
4
4
  import { Button as b } from "../button/index.js";
5
- import '../../assets/index47.css';const q = "_file_1uuq9_1", g = "_action_1uuq9_14", I = "_details_1uuq9_61", P = "_name_1uuq9_68", v = "_extension_1uuq9_80", y = "_subtitle_1uuq9_90", n = {
5
+ import '../../assets/index48.css';const q = "_file_1uuq9_1", g = "_action_1uuq9_14", I = "_details_1uuq9_61", P = "_name_1uuq9_68", v = "_extension_1uuq9_80", y = "_subtitle_1uuq9_90", n = {
6
6
  file: q,
7
7
  action: g,
8
8
  delete: "_delete_1uuq9_15",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index48.css');const c=require("react/jsx-runtime"),a=require("classix"),u="_footer_8tfam_1",m="_columns_8tfam_5",t={footer:u,columns:m},l=({animation:e,children:o,className:n,variant:s="default",...r})=>c.jsx("footer",{className:a(t.footer,s==="columns"&&t.columns,n),"data-animation":e,...r,"data-component":"footer",children:o&&o});exports.Footer=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index49.css');const c=require("react/jsx-runtime"),a=require("classix"),u="_footer_8tfam_1",m="_columns_8tfam_5",t={footer:u,columns:m},l=({animation:e,children:o,className:n,variant:s="default",...r})=>c.jsx("footer",{className:a(t.footer,s==="columns"&&t.columns,n),"data-animation":e,...r,"data-component":"footer",children:o&&o});exports.Footer=l;
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import c from "classix";
3
- import '../../assets/index48.css';const a = "_footer_8tfam_1", f = "_columns_8tfam_5", t = {
3
+ import '../../assets/index49.css';const a = "_footer_8tfam_1", f = "_columns_8tfam_5", t = {
4
4
  footer: a,
5
5
  columns: f
6
6
  }, _ = ({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index23.css');const l=require("react/jsx-runtime"),n=require("classix"),m="_form_11zqf_1",i="_fill_11zqf_30",t={form:m,fill:i},a=({animation:r,children:o,className:e,fill:s=!1,...f})=>l.jsx("form",{className:n(e,s&&t.fill,t.form),"data-animation":r,...f,"data-component":"form",children:o&&o});exports.Form=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index22.css');const l=require("react/jsx-runtime"),n=require("classix"),m="_form_11zqf_1",i="_fill_11zqf_30",t={form:m,fill:i},a=({animation:r,children:o,className:e,fill:s=!1,...f})=>l.jsx("form",{className:n(e,s&&t.fill,t.form),"data-animation":r,...f,"data-component":"form",children:o&&o});exports.Form=a;
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import a from "classix";
3
- import '../../assets/index23.css';const n = "_form_11zqf_1", i = "_fill_11zqf_30", f = {
3
+ import '../../assets/index22.css';const n = "_form_11zqf_1", i = "_fill_11zqf_30", f = {
4
4
  form: n,
5
5
  fill: i
6
6
  }, _ = ({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index22.css');const a=require("react/jsx-runtime"),b=require("classix"),j=require("../loading/index.cjs"),q="_graph_plhqd_11",v="_plot_plhqd_20",N="_item_plhqd_34",y="_column_plhqd_40",f="_value_plhqd_48",k="_track_plhqd_58",M="_bar_plhqd_65",V="_label_plhqd_87",l={graph:q,plot:v,item:N,column:y,value:f,track:k,bar:M,label:V,"is-loading":"_is-loading_plhqd_96"},h=s=>Number.isFinite(s)?Math.max(0,s):0,S=({accessibleLabel:s,className:i,height:r,items:n=[],style:p,valueFormatter:d=t=>t.toLocaleString(),...u})=>{const t=n.reduce((e,c)=>Math.max(e,h(c.value)),0),_={...p,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--utils-tokens-unit) * 16)"};return a.jsxs("figure",{className:b(l.graph,i),style:_,...u,"data-component":"graph",children:[s&&a.jsx("figcaption",{"data-content":"screen-reader",children:s}),n.length>0?a.jsx("ul",{className:l.plot,children:n.map((e,c)=>{const o=h(e.value),m=t>0?o/t*100:0,g=o>0?Math.max(m,6):0,x={"--bar-color":e.color,"--bar-delay":c*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:l.item,"data-component":"graph",children:[a.jsxs("div",{className:l.column,children:[a.jsx("span",{className:l.value,children:d(e.value)}),a.jsx("span",{className:l.track,children:a.jsx("span",{className:l.bar,style:x})})]}),a.jsx("span",{className:l.label,title:e.label,children:e.label})]},e.label+c)})}):a.jsx("div",{className:l["is-loading"],children:a.jsx(j.Loading,{})})]})};exports.Graph=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const a=require("react/jsx-runtime"),b=require("classix"),j=require("../loading/index.cjs"),q="_graph_plhqd_11",v="_plot_plhqd_20",N="_item_plhqd_34",y="_column_plhqd_40",f="_value_plhqd_48",k="_track_plhqd_58",M="_bar_plhqd_65",V="_label_plhqd_87",l={graph:q,plot:v,item:N,column:y,value:f,track:k,bar:M,label:V,"is-loading":"_is-loading_plhqd_96"},h=s=>Number.isFinite(s)?Math.max(0,s):0,S=({accessibleLabel:s,className:i,height:r,items:n=[],style:p,valueFormatter:d=t=>t.toLocaleString(),...u})=>{const t=n.reduce((e,c)=>Math.max(e,h(c.value)),0),_={...p,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--utils-tokens-unit) * 16)"};return a.jsxs("figure",{className:b(l.graph,i),style:_,...u,"data-component":"graph",children:[s&&a.jsx("figcaption",{"data-content":"screen-reader",children:s}),n.length>0?a.jsx("ul",{className:l.plot,children:n.map((e,c)=>{const o=h(e.value),m=t>0?o/t*100:0,g=o>0?Math.max(m,6):0,x={"--bar-color":e.color,"--bar-delay":c*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:l.item,"data-component":"graph",children:[a.jsxs("div",{className:l.column,children:[a.jsx("span",{className:l.value,children:d(e.value)}),a.jsx("span",{className:l.track,children:a.jsx("span",{className:l.bar,style:x})})]}),a.jsx("span",{className:l.label,title:e.label,children:e.label})]},e.label+c)})}):a.jsx("div",{className:l["is-loading"],children:a.jsx(j.Loading,{})})]})};exports.Graph=S;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import q from "classix";
3
3
  import { Loading as v } from "../loading/index.js";
4
- import '../../assets/index22.css';const x = "_graph_plhqd_11", f = "_plot_plhqd_20", k = "_item_plhqd_34", V = "_column_plhqd_40", y = "_value_plhqd_48", M = "_track_plhqd_58", w = "_bar_plhqd_65", j = "_label_plhqd_87", a = {
4
+ import '../../assets/index21.css';const x = "_graph_plhqd_11", f = "_plot_plhqd_20", k = "_item_plhqd_34", V = "_column_plhqd_40", y = "_value_plhqd_48", M = "_track_plhqd_58", w = "_bar_plhqd_65", j = "_label_plhqd_87", a = {
5
5
  graph: x,
6
6
  plot: f,
7
7
  item: k,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const g=require("react/jsx-runtime"),j=require("classix"),m="_row_13j4j_1",u="_stack_13j4j_2",f="_between_13j4j_19",w="_end_13j4j_23",b="_fields_13j4j_27",s={row:m,stack:u,between:f,end:w,fields:b},v={none:"0",small:"var(--shape-spacing-xs)",medium:"var(--shape-spacing-sm)",large:"var(--shape-spacing-md)"},x={start:"flex-start",center:"center",end:"flex-end"},k=({animation:a,align:t,children:r,className:o,constrainFields:c=!1,gap:d="none",justify:n,layout:e,style:i,stackOnMobile:l=!1,...p})=>{const _={...i,"--group-align":t?x[t]:e==="stack"?"stretch":"center","--group-gap":v[d]};return g.jsx("div",{className:j(o,e&&s[e],n&&s[n],c&&s.fields),"data-stack-on-mobile":l||void 0,"data-animation":a,"data-wrapper":!0,style:_,...p,"data-component":"group",children:r})};exports.Group=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index50.css');const g=require("react/jsx-runtime"),j=require("classix"),m="_row_13j4j_1",u="_stack_13j4j_2",f="_between_13j4j_19",w="_end_13j4j_23",b="_fields_13j4j_27",s={row:m,stack:u,between:f,end:w,fields:b},v={none:"0",small:"var(--shape-spacing-xs)",medium:"var(--shape-spacing-sm)",large:"var(--shape-spacing-md)"},x={start:"flex-start",center:"center",end:"flex-end"},k=({animation:a,align:t,children:r,className:o,constrainFields:c=!1,gap:d="none",justify:n,layout:e,style:i,stackOnMobile:l=!1,...p})=>{const _={...i,"--group-align":t?x[t]:e==="stack"?"stretch":"center","--group-gap":v[d]};return g.jsx("div",{className:j(o,e&&s[e],n&&s[n],c&&s.fields),"data-stack-on-mobile":l||void 0,"data-animation":a,"data-wrapper":!0,style:_,...p,"data-component":"group",children:r})};exports.Group=k;
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import g from "classix";
3
- import '../../assets/index21.css';const j = "_row_13j4j_1", f = "_stack_13j4j_2", w = "_between_13j4j_19", x = "_end_13j4j_23", k = "_fields_13j4j_27", s = {
3
+ import '../../assets/index50.css';const j = "_row_13j4j_1", f = "_stack_13j4j_2", w = "_between_13j4j_19", x = "_end_13j4j_23", k = "_fields_13j4j_27", s = {
4
4
  row: j,
5
5
  stack: f,
6
6
  between: w,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index49.css');const c=require("react/jsx-runtime"),r=require("classix"),l=require("../../icons-BIdcCH-v.cjs"),_="_icon_23h6o_1",m="_large_23h6o_10",g="_medium_23h6o_15",d="_small_23h6o_20",u="_tiny_23h6o_25",h="_danger_23h6o_30",n={icon:_,large:m,medium:g,small:d,tiny:u,danger:h,"gap-right":"_gap-right_23h6o_34","gap-left":"_gap-left_23h6o_38"},y={large:n.large,medium:n.medium,small:n.small,tiny:n.tiny},p={danger:n.danger},S=({gap:e="none",name:t,size:s="medium",variant:o,weight:i})=>{const a={maskImage:l.iconSVG(t,void 0,i)};return c.jsx("span",{"aria-hidden":"true",className:r(e!=="none"&&n[`gap-${e}`],y[s],n.icon,o&&p[o]),style:a,"data-component":"icon"})};exports.Icon=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const c=require("react/jsx-runtime"),r=require("classix"),l=require("../../icons-BIdcCH-v.cjs"),_="_icon_23h6o_1",m="_large_23h6o_10",g="_medium_23h6o_15",d="_small_23h6o_20",u="_tiny_23h6o_25",h="_danger_23h6o_30",n={icon:_,large:m,medium:g,small:d,tiny:u,danger:h,"gap-right":"_gap-right_23h6o_34","gap-left":"_gap-left_23h6o_38"},y={large:n.large,medium:n.medium,small:n.small,tiny:n.tiny},p={danger:n.danger},S=({gap:e="none",name:t,size:s="medium",variant:o,weight:i})=>{const a={maskImage:l.iconSVG(t,void 0,i)};return c.jsx("span",{"aria-hidden":"true",className:r(e!=="none"&&n[`gap-${e}`],y[s],n.icon,o&&p[o]),style:a,"data-component":"icon"})};exports.Icon=S;
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import _ from "classix";
3
3
  import { i as r } from "../../icons-DVeBguFb.js";
4
- import '../../assets/index49.css';const c = "_icon_23h6o_1", l = "_large_23h6o_10", g = "_medium_23h6o_15", d = "_small_23h6o_20", h = "_tiny_23h6o_25", p = "_danger_23h6o_30", o = {
4
+ import '../../assets/index51.css';const c = "_icon_23h6o_1", l = "_large_23h6o_10", g = "_medium_23h6o_15", d = "_small_23h6o_20", h = "_tiny_23h6o_25", p = "_danger_23h6o_30", o = {
5
5
  icon: c,
6
6
  large: l,
7
7
  medium: g,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const r=require("react/jsx-runtime"),z=require("classix"),i=require("react"),L=require("../button/index.cjs"),te=require("../controls/index.cjs"),ne=require("../dialog/index.cjs"),re=require("../header/index.cjs"),ie="_wrapper_vtkwq_1",se="_toolbar_vtkwq_6",oe="_iframe_vtkwq_12",m={wrapper:ie,toolbar:se,iframe:oe,"fullscreen-iframe":"_fullscreen-iframe_vtkwq_18","print-content":"_print-content_vtkwq_23"},k=120,ce=12e3,ae=8,le=({accessibleLabel:v,autoResize:l=!1,className:S,closeFullscreenLabel:W="Close fullscreen",fullscreenLabel:X="View in fullscreen",hasFullscreenView:J=!0,loading:K="lazy",onLoad:w,printContent:C,referrerPolicy:F="no-referrer",sandbox:O="",srcDoc:f,style:N,...I})=>{const _=i.useRef(null),g=i.useRef(null),h=i.useRef(void 0),p=i.useRef(!0),x=i.useRef(f),y=i.useRef(void 0),[P,Q]=i.useState(k),[M,b]=i.useState(!1),R=i.useCallback(()=>{g.current!==null&&(window.cancelAnimationFrame(g.current),g.current=null)},[]),T=i.useCallback(()=>{if(!(!l||!p.current))try{const e=_.current,n=e==null?void 0:e.contentDocument;if(!e||!(n!=null&&n.body))return;const s=n.querySelector("[data-iframe-content]")??n.body,t=s.getBoundingClientRect(),c=e.clientHeight||Number.parseFloat(e.style.height),u=n.documentElement.scrollHeight,H=Math.max(s.scrollHeight,s.offsetHeight,t.height),o=Math.max(s===n.body&&s.scrollHeight<=c?0:s.scrollHeight,s.offsetHeight,t.height,t.bottom||0),A=u>c+1?u:0,Z=Number.parseFloat(window.getComputedStyle(s).height),D=Math.abs(H-c)<=1||Math.abs(Z-c)<=1&&s.scrollHeight<=s.offsetHeight,B=Math.min(Math.max(Math.ceil(D?c:Math.max(o,A)+ae),k),ce),d=y.current,q=Math.max(o,A),U=e.clientWidth,ee=(d==null?void 0:d.document)===n&&d.width===U,E=d?c-d.viewportHeight:0,V=d?q-d.contentHeight:0,G=!!(ee&&q>c&&(E>1&&Math.abs(V-E)<=1||d.viewportDependent&&Math.abs(E)<=1&&Math.abs(V)<=1));y.current={document:n,viewportHeight:c,width:U,contentHeight:q,viewportDependent:G},G||Q($=>$===B?$:B)}catch{return}},[l]),a=i.useCallback(()=>{!l||!p.current||g.current!==null||(g.current=window.requestAnimationFrame(()=>{g.current=null,T()}))},[l,T]),j=i.useCallback(()=>{var e,n,s;if((e=h.current)==null||e.call(h),h.current=void 0,y.current=void 0,!!l)try{const t=(n=_.current)==null?void 0:n.contentDocument;if(!(t!=null&&t.body))return;let c=!0;const u=()=>{c&&a()},H=t.querySelector("[data-iframe-content]")??t.body,o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(u);o==null||o.observe(H),H!==t.body&&(o==null||o.observe(t.body)),t.addEventListener("load",u,!0),t.addEventListener("error",u,!0),(s=t.fonts)==null||s.ready.then(u).catch(()=>{}),h.current=()=>{c=!1,o==null||o.disconnect(),t.removeEventListener("load",u,!0),t.removeEventListener("error",u,!0)}}catch{return}},[l,a]),Y=e=>{p.current=!0,j(),w==null||w(e),a()};return i.useEffect(()=>(p.current=x.current===f,x.current===f&&(j(),a()),x.current=f,()=>{var e;p.current=!1,(e=h.current)==null||e.call(h),R()}),[R,j,a,f]),i.useEffect(()=>{var e;if(l)return window.addEventListener("resize",a),(e=window.visualViewport)==null||e.addEventListener("resize",a),()=>{var n;window.removeEventListener("resize",a),(n=window.visualViewport)==null||n.removeEventListener("resize",a)}},[l,a]),r.jsxs("div",{className:m.wrapper,"data-component":"iframe",children:[J&&r.jsx("div",{className:m.toolbar,children:r.jsx(L.Button,{"aria-expanded":M,"aria-haspopup":"dialog",onClick:()=>b(!0),variant:"tertiary",children:X})}),r.jsx("iframe",{...I,className:z(m.iframe,S),loading:K,onLoad:Y,ref:_,referrerPolicy:F,sandbox:O,srcDoc:f,style:l?{...N,height:P,minHeight:k}:N,title:v}),!M&&r.jsx("div",{className:m["print-content"],"data-iframe-print-content":!0,children:C??r.jsx("p",{children:v})}),M&&r.jsxs(ne.Dialog,{"aria-label":`${v} fullscreen`,controls:r.jsx(te.Controls,{children:r.jsx(L.Button,{onClick:()=>b(!1),children:W})}),fullscreen:!0,header:r.jsx(re.Header,{children:r.jsx("h2",{children:v})}),open:!0,setOpen:b,children:[r.jsx("iframe",{...I,className:z(m.iframe,m["fullscreen-iframe"],S),loading:"eager",onLoad:w,referrerPolicy:F,sandbox:O,srcDoc:f,title:`${v} fullscreen`}),r.jsx("div",{className:m["print-content"],"data-iframe-print-content":!0,children:C??r.jsx("p",{children:v})})]})]})};exports.Iframe=le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const r=require("react/jsx-runtime"),z=require("classix"),i=require("react"),L=require("../button/index.cjs"),te=require("../../index-Bl5EEYDv.cjs"),ne=require("../dialog/index.cjs"),re=require("../header/index.cjs"),ie="_wrapper_vtkwq_1",se="_toolbar_vtkwq_6",oe="_iframe_vtkwq_12",m={wrapper:ie,toolbar:se,iframe:oe,"fullscreen-iframe":"_fullscreen-iframe_vtkwq_18","print-content":"_print-content_vtkwq_23"},k=120,ce=12e3,ae=8,le=({accessibleLabel:v,autoResize:l=!1,className:S,closeFullscreenLabel:W="Close fullscreen",fullscreenLabel:X="View in fullscreen",hasFullscreenView:J=!0,loading:K="lazy",onLoad:w,printContent:C,referrerPolicy:F="no-referrer",sandbox:O="",srcDoc:f,style:N,...I})=>{const _=i.useRef(null),g=i.useRef(null),h=i.useRef(void 0),p=i.useRef(!0),x=i.useRef(f),y=i.useRef(void 0),[P,Q]=i.useState(k),[M,b]=i.useState(!1),R=i.useCallback(()=>{g.current!==null&&(window.cancelAnimationFrame(g.current),g.current=null)},[]),T=i.useCallback(()=>{if(!(!l||!p.current))try{const e=_.current,n=e==null?void 0:e.contentDocument;if(!e||!(n!=null&&n.body))return;const s=n.querySelector("[data-iframe-content]")??n.body,t=s.getBoundingClientRect(),c=e.clientHeight||Number.parseFloat(e.style.height),u=n.documentElement.scrollHeight,H=Math.max(s.scrollHeight,s.offsetHeight,t.height),o=Math.max(s===n.body&&s.scrollHeight<=c?0:s.scrollHeight,s.offsetHeight,t.height,t.bottom||0),A=u>c+1?u:0,Z=Number.parseFloat(window.getComputedStyle(s).height),D=Math.abs(H-c)<=1||Math.abs(Z-c)<=1&&s.scrollHeight<=s.offsetHeight,B=Math.min(Math.max(Math.ceil(D?c:Math.max(o,A)+ae),k),ce),d=y.current,q=Math.max(o,A),U=e.clientWidth,ee=(d==null?void 0:d.document)===n&&d.width===U,E=d?c-d.viewportHeight:0,V=d?q-d.contentHeight:0,G=!!(ee&&q>c&&(E>1&&Math.abs(V-E)<=1||d.viewportDependent&&Math.abs(E)<=1&&Math.abs(V)<=1));y.current={document:n,viewportHeight:c,width:U,contentHeight:q,viewportDependent:G},G||Q($=>$===B?$:B)}catch{return}},[l]),a=i.useCallback(()=>{!l||!p.current||g.current!==null||(g.current=window.requestAnimationFrame(()=>{g.current=null,T()}))},[l,T]),j=i.useCallback(()=>{var e,n,s;if((e=h.current)==null||e.call(h),h.current=void 0,y.current=void 0,!!l)try{const t=(n=_.current)==null?void 0:n.contentDocument;if(!(t!=null&&t.body))return;let c=!0;const u=()=>{c&&a()},H=t.querySelector("[data-iframe-content]")??t.body,o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(u);o==null||o.observe(H),H!==t.body&&(o==null||o.observe(t.body)),t.addEventListener("load",u,!0),t.addEventListener("error",u,!0),(s=t.fonts)==null||s.ready.then(u).catch(()=>{}),h.current=()=>{c=!1,o==null||o.disconnect(),t.removeEventListener("load",u,!0),t.removeEventListener("error",u,!0)}}catch{return}},[l,a]),Y=e=>{p.current=!0,j(),w==null||w(e),a()};return i.useEffect(()=>(p.current=x.current===f,x.current===f&&(j(),a()),x.current=f,()=>{var e;p.current=!1,(e=h.current)==null||e.call(h),R()}),[R,j,a,f]),i.useEffect(()=>{var e;if(l)return window.addEventListener("resize",a),(e=window.visualViewport)==null||e.addEventListener("resize",a),()=>{var n;window.removeEventListener("resize",a),(n=window.visualViewport)==null||n.removeEventListener("resize",a)}},[l,a]),r.jsxs("div",{className:m.wrapper,"data-component":"iframe",children:[J&&r.jsx("div",{className:m.toolbar,children:r.jsx(L.Button,{"aria-expanded":M,"aria-haspopup":"dialog",onClick:()=>b(!0),variant:"tertiary",children:X})}),r.jsx("iframe",{...I,className:z(m.iframe,S),loading:K,onLoad:Y,ref:_,referrerPolicy:F,sandbox:O,srcDoc:f,style:l?{...N,height:P,minHeight:k}:N,title:v}),!M&&r.jsx("div",{className:m["print-content"],"data-iframe-print-content":!0,children:C??r.jsx("p",{children:v})}),M&&r.jsxs(ne.Dialog,{"aria-label":`${v} fullscreen`,controls:r.jsx(te.Controls,{children:r.jsx(L.Button,{onClick:()=>b(!1),children:W})}),fullscreen:!0,header:r.jsx(re.Header,{children:r.jsx("h2",{children:v})}),open:!0,setOpen:b,children:[r.jsx("iframe",{...I,className:z(m.iframe,m["fullscreen-iframe"],S),loading:"eager",onLoad:w,referrerPolicy:F,sandbox:O,srcDoc:f,title:`${v} fullscreen`}),r.jsx("div",{className:m["print-content"],"data-iframe-print-content":!0,children:C??r.jsx("p",{children:v})})]})]})};exports.Iframe=le;
@@ -2,7 +2,7 @@ import { jsxs as W, jsx as o } from "react/jsx-runtime";
2
2
  import X from "classix";
3
3
  import { useRef as v, useState as J, useCallback as _, useEffect as K } from "react";
4
4
  import { Button as Q } from "../button/index.js";
5
- import { Controls as oe } from "../controls/index.js";
5
+ import { C as oe } from "../../index-DQuc_Zkg.js";
6
6
  import { Dialog as ce } from "../dialog/index.js";
7
7
  import { Header as se } from "../header/index.js";
8
8
  import '../../assets/index19.css';const ae = "_wrapper_vtkwq_1", le = "_toolbar_vtkwq_6", ue = "_iframe_vtkwq_12", m = {
@@ -21,8 +21,8 @@ import '../../assets/index19.css';const ae = "_wrapper_vtkwq_1", le = "_toolbar_
21
21
  loading: P = "lazy",
22
22
  onLoad: g,
23
23
  printContent: S,
24
- referrerPolicy: A = "no-referrer",
25
- sandbox: C = "",
24
+ referrerPolicy: C = "no-referrer",
25
+ sandbox: A = "",
26
26
  srcDoc: h,
27
27
  style: I,
28
28
  ...T
@@ -81,14 +81,14 @@ import '../../assets/index19.css';const ae = "_wrapper_vtkwq_1", le = "_toolbar_
81
81
  };
82
82
  }, [a, s]), /* @__PURE__ */ W("div", { className: m.wrapper, "data-component": "iframe", children: [
83
83
  Z && /* @__PURE__ */ o("div", { className: m.toolbar, children: /* @__PURE__ */ o(Q, { "aria-expanded": b, "aria-haspopup": "dialog", onClick: () => x(!0), variant: "tertiary", children: Y }) }),
84
- /* @__PURE__ */ o("iframe", { ...T, className: X(m.iframe, O), loading: P, onLoad: te, ref: y, referrerPolicy: A, sandbox: C, srcDoc: h, style: a ? {
84
+ /* @__PURE__ */ o("iframe", { ...T, className: X(m.iframe, O), loading: P, onLoad: te, ref: y, referrerPolicy: C, sandbox: A, srcDoc: h, style: a ? {
85
85
  ...I,
86
86
  height: D,
87
87
  minHeight: N
88
88
  } : I, title: f }),
89
89
  !b && /* @__PURE__ */ o("div", { className: m["print-content"], "data-iframe-print-content": !0, children: S ?? /* @__PURE__ */ o("p", { children: f }) }),
90
90
  b && /* @__PURE__ */ W(ce, { "aria-label": `${f} fullscreen`, controls: /* @__PURE__ */ o(oe, { children: /* @__PURE__ */ o(Q, { onClick: () => x(!1), children: R }) }), fullscreen: !0, header: /* @__PURE__ */ o(se, { children: /* @__PURE__ */ o("h2", { children: f }) }), open: !0, setOpen: x, children: [
91
- /* @__PURE__ */ o("iframe", { ...T, className: X(m.iframe, m["fullscreen-iframe"], O), loading: "eager", onLoad: g, referrerPolicy: A, sandbox: C, srcDoc: h, title: `${f} fullscreen` }),
91
+ /* @__PURE__ */ o("iframe", { ...T, className: X(m.iframe, m["fullscreen-iframe"], O), loading: "eager", onLoad: g, referrerPolicy: C, sandbox: A, srcDoc: h, title: `${f} fullscreen` }),
92
92
  /* @__PURE__ */ o("div", { className: m["print-content"], "data-iframe-print-content": !0, children: S ?? /* @__PURE__ */ o("p", { children: f }) })
93
93
  ] })
94
94
  ] });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../../icons-BIdcCH-v.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-7blZaPiA.cjs");exports.Input=e.Input;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../../icons-BIdcCH-v.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-S1XsOUKE.cjs");exports.Input=e.Input;
@@ -3,7 +3,7 @@ import "classix";
3
3
  import "react";
4
4
  import "../../icons-DVeBguFb.js";
5
5
  import "../../use-touched-B999bBr8.js";
6
- import { I as a } from "../../index-Dd20d_9U.js";
6
+ import { I as a } from "../../index-FSKjg3Z8.js";
7
7
  export {
8
8
  a as Input
9
9
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const t=require("react/jsx-runtime"),o=require("classix"),c="_link_5i71r_1",l="_neutral_5i71r_19",m="_content_5i71r_24",_="_adornment_5i71r_33",d="_text_5i71r_37",u="_primary_5i71r_43",p="_danger_5i71r_49",x="_minimal_5i71r_57",n={link:c,neutral:l,content:m,adornment:_,text:d,primary:u,danger:p,minimal:x},k=({children:s,leading:e,trailing:r})=>t.jsxs("span",{className:n.content,"data-component":"linkcontent",children:[e!=null&&t.jsx("span",{className:n.adornment,children:e}),t.jsx("span",{className:n.text,children:s}),r!=null&&t.jsx("span",{className:n.adornment,children:r})]}),j=({children:s,className:e,to:r="#",variant:a="primary",...i})=>t.jsx("a",{className:o(e,n.link,n[a]),href:r,...i,"data-component":"link",children:s});exports.Link=j;exports.LinkContent=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index53.css');const t=require("react/jsx-runtime"),o=require("classix"),c="_link_5i71r_1",l="_neutral_5i71r_19",m="_content_5i71r_24",_="_adornment_5i71r_33",d="_text_5i71r_37",u="_primary_5i71r_43",p="_danger_5i71r_49",x="_minimal_5i71r_57",n={link:c,neutral:l,content:m,adornment:_,text:d,primary:u,danger:p,minimal:x},k=({children:s,leading:e,trailing:r})=>t.jsxs("span",{className:n.content,"data-component":"linkcontent",children:[e!=null&&t.jsx("span",{className:n.adornment,children:e}),t.jsx("span",{className:n.text,children:s}),r!=null&&t.jsx("span",{className:n.adornment,children:r})]}),j=({children:s,className:e,to:r="#",variant:a="primary",...i})=>t.jsx("a",{className:o(e,n.link,n[a]),href:r,...i,"data-component":"link",children:s});exports.Link=j;exports.LinkContent=k;
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
2
  import c from "classix";
3
- import '../../assets/index51.css';const m = "_link_5i71r_1", _ = "_neutral_5i71r_19", l = "_content_5i71r_24", p = "_adornment_5i71r_33", d = "_text_5i71r_37", k = "_primary_5i71r_43", x = "_danger_5i71r_49", u = "_minimal_5i71r_57", n = {
3
+ import '../../assets/index53.css';const m = "_link_5i71r_1", _ = "_neutral_5i71r_19", l = "_content_5i71r_24", p = "_adornment_5i71r_33", d = "_text_5i71r_37", k = "_primary_5i71r_43", x = "_danger_5i71r_49", u = "_minimal_5i71r_57", n = {
4
4
  link: m,
5
5
  neutral: _,
6
6
  content: l,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index52.css');const u=require("react/jsx-runtime"),H=require("classix"),r=require("react");function T(e){return r.isValidElement(e)&&e.type===r.Fragment}function O(e,n=[]){return r.Children.forEach(e,i=>{T(i)?O(i.props.children,n):n.push(i)}),n}function F(e,{wrapper:n="li"}={}){return O(e).filter(s=>s!==null).map((s,c)=>{if(r.isValidElement(s)&&s.type===n)return s;const m=r.isValidElement(s)&&s.key!=null?s.key:c;return r.createElement(n,{key:m,"data-component":"wrapchildren"},s)})}const V="_controls_uue68_1",A="_horizontal_uue68_9",I="_list_uue68_20",D="_columns_uue68_61",P="_masonry_uue68_71",$="_scrollable_uue68_81",G="_overflowing_uue68_88",J="_sized_uue68_111",K="_compact_uue68_123",l={controls:V,horizontal:A,list:I,columns:D,masonry:P,scrollable:$,overflowing:G,sized:J,compact:K},M=(e,n)=>{typeof e=="function"?e(n):e&&(e.current=n)};function Q({children:e,className:n,columns:i=1,columnWidth:b,compact:s=!1,controls:c,horizontal:m,layout:h="grid",maxVisibleItems:f,ordered:B,ref:p,style:S,...d}){const v=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,y=r.useRef(null),[a,k]=r.useState(),o=h==="grid"&&v===1&&!m&&f!=null&&Number.isFinite(f)&&f>=1?Math.floor(f):void 0,w=!!o&&a!=null;r.useLayoutEffect(()=>{const t=y.current;if(!t||!o)return;const R=()=>{const g=Array.from(t.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=g[o-1],q=g.length>o&&N?N.getBoundingClientRect().bottom-t.getBoundingClientRect().top+t.scrollTop+(parseFloat(getComputedStyle(t).paddingBottom)||0):void 0;k(q)},_=new ResizeObserver(R),C=()=>{_.disconnect(),_.observe(t),Array.from(t.children).forEach(g=>_.observe(g)),R()},L=new MutationObserver(C);return L.observe(t,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{_.disconnect(),L.disconnect()}},[e,o,w]);const x=H(n,l.list,h==="masonry"?l.masonry:v>1&&l.columns,!!o&&l.scrollable,w&&l.overflowing,m&&l.horizontal,s&&l.compact,b&&l.sized),z={...S,"--list-columns":v,"--list-column-width":b,"--list-max-height":o&&a!=null?`${a}px`:void 0},E=B?u.jsx("ol",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)}):u.jsx("ul",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)});return c==null?E:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:l.controls,"data-component":"list",children:c}),E]})}exports.List=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const u=require("react/jsx-runtime"),H=require("classix"),r=require("react");function T(e){return r.isValidElement(e)&&e.type===r.Fragment}function O(e,n=[]){return r.Children.forEach(e,i=>{T(i)?O(i.props.children,n):n.push(i)}),n}function F(e,{wrapper:n="li"}={}){return O(e).filter(s=>s!==null).map((s,c)=>{if(r.isValidElement(s)&&s.type===n)return s;const m=r.isValidElement(s)&&s.key!=null?s.key:c;return r.createElement(n,{key:m,"data-component":"wrapchildren"},s)})}const V="_controls_uue68_1",A="_horizontal_uue68_9",I="_list_uue68_20",D="_columns_uue68_61",P="_masonry_uue68_71",$="_scrollable_uue68_81",G="_overflowing_uue68_88",J="_sized_uue68_111",K="_compact_uue68_123",l={controls:V,horizontal:A,list:I,columns:D,masonry:P,scrollable:$,overflowing:G,sized:J,compact:K},M=(e,n)=>{typeof e=="function"?e(n):e&&(e.current=n)};function Q({children:e,className:n,columns:i=1,columnWidth:b,compact:s=!1,controls:c,horizontal:m,layout:h="grid",maxVisibleItems:f,ordered:B,ref:p,style:S,...d}){const v=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,y=r.useRef(null),[a,k]=r.useState(),o=h==="grid"&&v===1&&!m&&f!=null&&Number.isFinite(f)&&f>=1?Math.floor(f):void 0,w=!!o&&a!=null;r.useLayoutEffect(()=>{const t=y.current;if(!t||!o)return;const R=()=>{const g=Array.from(t.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=g[o-1],q=g.length>o&&N?N.getBoundingClientRect().bottom-t.getBoundingClientRect().top+t.scrollTop+(parseFloat(getComputedStyle(t).paddingBottom)||0):void 0;k(q)},_=new ResizeObserver(R),C=()=>{_.disconnect(),_.observe(t),Array.from(t.children).forEach(g=>_.observe(g)),R()},L=new MutationObserver(C);return L.observe(t,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{_.disconnect(),L.disconnect()}},[e,o,w]);const x=H(n,l.list,h==="masonry"?l.masonry:v>1&&l.columns,!!o&&l.scrollable,w&&l.overflowing,m&&l.horizontal,s&&l.compact,b&&l.sized),z={...S,"--list-columns":v,"--list-column-width":b,"--list-max-height":o&&a!=null?`${a}px`:void 0},E=B?u.jsx("ol",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)}):u.jsx("ul",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)});return c==null?E:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:l.controls,"data-component":"list",children:c}),E]})}exports.List=Q;
@@ -1,7 +1,7 @@
1
1
  import { jsx as b, jsxs as j, Fragment as A } from "react/jsx-runtime";
2
2
  import I from "classix";
3
3
  import i, { useRef as T, useState as D, useLayoutEffect as $ } from "react";
4
- import '../../assets/index52.css';function q(t) {
4
+ import '../../assets/index54.css';function q(t) {
5
5
  return i.isValidElement(t) && t.type === i.Fragment;
6
6
  }
7
7
  function O(t, n = []) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index53.css');const l=require("react/jsx-runtime"),e=require("classix"),t="_loading_1jrs1_23",r="_spin_1jrs1_1",o="_small_1jrs1_40",_="_large_1jrs1_46",d="_ping_1jrs1_52",g="_fullscreen_1jrs1_78",u="_sticky_1jrs1_86",s={loading:t,default:"_default_1jrs1_29",spin:r,small:o,large:_,ping:d,fullscreen:g,sticky:u},m={fullscreen:s.fullscreen,large:s.large,medium:s.medium,small:s.small},j=({variant:n="default",size:a="medium",sticky:c=!1,...i})=>l.jsx("div",{className:e.cx(s.loading,c&&s.sticky),"data-component":"loading",children:l.jsx("span",{className:e.cx(s.loading,s[n],m[a]),...i})});exports.Loading=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index55.css');const l=require("react/jsx-runtime"),e=require("classix"),t="_loading_1jrs1_23",r="_spin_1jrs1_1",o="_small_1jrs1_40",_="_large_1jrs1_46",d="_ping_1jrs1_52",g="_fullscreen_1jrs1_78",u="_sticky_1jrs1_86",s={loading:t,default:"_default_1jrs1_29",spin:r,small:o,large:_,ping:d,fullscreen:g,sticky:u},m={fullscreen:s.fullscreen,large:s.large,medium:s.medium,small:s.small},j=({variant:n="default",size:a="medium",sticky:c=!1,...i})=>l.jsx("div",{className:e.cx(s.loading,c&&s.sticky),"data-component":"loading",children:l.jsx("span",{className:e.cx(s.loading,s[n],m[a]),...i})});exports.Loading=j;
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { cx as n } from "classix";
3
- import '../../assets/index53.css';const c = "_loading_1jrs1_23", o = "_spin_1jrs1_1", t = "_small_1jrs1_40", _ = "_large_1jrs1_46", m = "_ping_1jrs1_52", d = "_fullscreen_1jrs1_78", g = "_sticky_1jrs1_86", s = {
3
+ import '../../assets/index55.css';const c = "_loading_1jrs1_23", o = "_spin_1jrs1_1", t = "_small_1jrs1_40", _ = "_large_1jrs1_46", m = "_ping_1jrs1_52", d = "_fullscreen_1jrs1_78", g = "_sticky_1jrs1_86", s = {
4
4
  loading: c,
5
5
  default: "_default_1jrs1_29",
6
6
  spin: o,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),j=require("classix"),h=require("../avatar/index.cjs"),N=require("../icon/index.cjs"),w="_attachments_1crfp_1",y="_footer_1crfp_27",S="_message_1crfp_11",b="_timestamp_1crfp_147",q="_actions_1crfp_152",I="_preview_1crfp_164",s={attachments:w,"message-group":"_message-group_1crfp_11",footer:y,message:S,timestamp:b,actions:q,preview:I},M=({actions:o,appearance:m="default",attachments:i,author:a,authorColor:l,authorImageUrl:d,authorLink:_,authorRole:p,content:g,iconName:f="Info",id:u,preview:v,timestamp:r,timestampText:x,type:t="default"})=>{const c=r?new Date(r):void 0,n=c?e.jsx("time",{className:s.timestamp,dateTime:c.toISOString(),children:x??c.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[a&&e.jsx(h.Avatar,{accessibleLabel:a,color:l,imageUrl:d,link:_,name:a,role:p}),t==="system"&&n,e.jsxs("div",{className:j(s.message,v&&s.preview),"data-appearance":m,"data-id":u,"data-type":t,children:[t=="system"&&e.jsx(N.Icon,{gap:"right",name:f,size:"tiny"}),g]}),i&&e.jsx("div",{className:s.attachments,children:i}),t!=="system"&&(o?e.jsxs("div",{className:s.footer,children:[n,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):n)]})};exports.Message=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),g=require("classix"),y=require("../avatar/index.cjs"),i=require("../../index-Bl5EEYDv.cjs"),q=require("../icon/index.cjs"),S="_attachments_cj4mu_1",I="_footer_cj4mu_27",C="_message_cj4mu_11",M="_timestamp_cj4mu_147",L="_actions_cj4mu_152",O="_preview_cj4mu_164",T="_toolbar_cj4mu_199",s={attachments:S,"message-group":"_message-group_cj4mu_11",footer:I,message:C,timestamp:M,actions:L,preview:O,toolbar:T,"with-toolbar":"_with-toolbar_cj4mu_205"},k=({actions:o,actionsPlacement:j="footer",appearance:v="default",attachments:m,author:n,authorColor:x,authorImageUrl:h,authorLink:p,authorRole:b,content:l,iconName:f="Info",id:N,preview:d,timestamp:_,timestampText:w,type:t="default"})=>{const a=!!o&&j==="toolbar"&&t!=="system",u=a?i.controlChildren(o):[],c=_?new Date(_):void 0,r=c?e.jsx("time",{className:s.timestamp,dateTime:c.toISOString(),children:w??c.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[n&&e.jsx(y.Avatar,{accessibleLabel:n,color:x,imageUrl:h,link:p,name:n,role:b}),t==="system"&&r,e.jsxs("div",{className:g(s.message,a&&s["with-toolbar"]),"data-appearance":v,"data-id":N,"data-type":t,children:[t=="system"&&e.jsx(q.Icon,{gap:"right",name:f,size:"tiny"}),d||a?e.jsx("div",{className:g(d&&s.preview),children:l}):l,a&&e.jsx("div",{className:s.toolbar,children:e.jsx(i.Controls,{variant:u.every(i.isControlButton)?"embedded":"inline",children:u})})]}),m&&e.jsx("div",{className:s.attachments,children:m}),t!=="system"&&(o&&!a?e.jsxs("div",{className:s.footer,children:[r,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):r)]})};exports.Message=k;
@@ -1,47 +1,52 @@
1
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
2
- import w from "classix";
3
- import { Avatar as x } from "../avatar/index.js";
4
- import { Icon as y } from "../icon/index.js";
5
- import '../../assets/index17.css';const I = "_attachments_1crfp_1", S = "_footer_1crfp_27", b = "_message_1crfp_11", j = "_timestamp_1crfp_147", L = "_actions_1crfp_152", k = "_preview_1crfp_164", e = {
6
- attachments: I,
7
- "message-group": "_message-group_1crfp_11",
8
- footer: S,
9
- message: b,
10
- timestamp: j,
11
- actions: L,
12
- preview: k
13
- }, M = ({
14
- actions: r,
15
- appearance: l = "default",
16
- attachments: i,
17
- author: t,
18
- authorColor: p,
19
- authorImageUrl: d,
20
- authorLink: _,
21
- authorRole: g,
22
- content: f,
23
- iconName: v = "Info",
24
- id: h,
25
- preview: u,
26
- timestamp: n,
27
- timestampText: N,
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import p from "classix";
3
+ import { Avatar as y } from "../avatar/index.js";
4
+ import { c as C, C as I, i as S } from "../../index-DQuc_Zkg.js";
5
+ import { Icon as L } from "../icon/index.js";
6
+ import '../../assets/index17.css';const k = "_attachments_cj4mu_1", z = "_footer_cj4mu_27", A = "_message_cj4mu_11", B = "_timestamp_cj4mu_147", D = "_actions_cj4mu_152", E = "_preview_cj4mu_164", M = "_toolbar_cj4mu_199", e = {
7
+ attachments: k,
8
+ "message-group": "_message-group_cj4mu_11",
9
+ footer: z,
10
+ message: A,
11
+ timestamp: B,
12
+ actions: D,
13
+ preview: E,
14
+ toolbar: M,
15
+ "with-toolbar": "_with-toolbar_cj4mu_205"
16
+ }, G = ({
17
+ actions: o,
18
+ actionsPlacement: u = "footer",
19
+ appearance: h = "default",
20
+ attachments: n,
21
+ author: m,
22
+ authorColor: v,
23
+ authorImageUrl: f,
24
+ authorLink: b,
25
+ authorRole: j,
26
+ content: l,
27
+ iconName: N = "Info",
28
+ id: w,
29
+ preview: d,
30
+ timestamp: _,
31
+ timestampText: x,
28
32
  type: s = "default"
29
33
  }) => {
30
- const m = n ? new Date(n) : void 0, c = m ? /* @__PURE__ */ a("time", { className: e.timestamp, dateTime: m.toISOString(), children: N ?? m.toLocaleString() }) : null;
31
- return /* @__PURE__ */ o("div", { className: e["message-group"], "data-message-type": s, "data-component": "message", children: [
32
- t && /* @__PURE__ */ a(x, { accessibleLabel: t, color: p, imageUrl: d, link: _, name: t, role: g }),
34
+ const a = !!o && u === "toolbar" && s !== "system", g = a ? C(o) : [], r = _ ? new Date(_) : void 0, c = r ? /* @__PURE__ */ t("time", { className: e.timestamp, dateTime: r.toISOString(), children: x ?? r.toLocaleString() }) : null;
35
+ return /* @__PURE__ */ i("div", { className: e["message-group"], "data-message-type": s, "data-component": "message", children: [
36
+ m && /* @__PURE__ */ t(y, { accessibleLabel: m, color: v, imageUrl: f, link: b, name: m, role: j }),
33
37
  s === "system" && c,
34
- /* @__PURE__ */ o("div", { className: w(e.message, u && e.preview), "data-appearance": l, "data-id": h, "data-type": s, children: [
35
- s == "system" && /* @__PURE__ */ a(y, { gap: "right", name: v, size: "tiny" }),
36
- f
38
+ /* @__PURE__ */ i("div", { className: p(e.message, a && e["with-toolbar"]), "data-appearance": h, "data-id": w, "data-type": s, children: [
39
+ s == "system" && /* @__PURE__ */ t(L, { gap: "right", name: N, size: "tiny" }),
40
+ d || a ? /* @__PURE__ */ t("div", { className: p(d && e.preview), children: l }) : l,
41
+ a && /* @__PURE__ */ t("div", { className: e.toolbar, children: /* @__PURE__ */ t(I, { variant: g.every(S) ? "embedded" : "inline", children: g }) })
37
42
  ] }),
38
- i && /* @__PURE__ */ a("div", { className: e.attachments, children: i }),
39
- s !== "system" && (r ? /* @__PURE__ */ o("div", { className: e.footer, children: [
43
+ n && /* @__PURE__ */ t("div", { className: e.attachments, children: n }),
44
+ s !== "system" && (o && !a ? /* @__PURE__ */ i("div", { className: e.footer, children: [
40
45
  c,
41
- /* @__PURE__ */ a("div", { className: e.actions, "data-message-actions": !0, children: r })
46
+ /* @__PURE__ */ t("div", { className: e.actions, "data-message-actions": !0, children: o })
42
47
  ] }) : c)
43
48
  ] });
44
49
  };
45
50
  export {
46
- M as Message
51
+ G as Message
47
52
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const p=require("react/jsx-runtime"),q=require("classix"),m=require("react"),j=require("../editor/index.cjs"),A=require("../list/index.cjs"),B=require("../tooltip/index.cjs"),D=require("../message/index.cjs"),H="_messages_88pw2_1",P="_fill_88pw2_22",y={messages:H,fill:P};function k(R){const v=m.useRef(null),a=m.useRef(()=>{});return m.useLayoutEffect(()=>{const e=v.current;if(!e)return;let c=!0,d=e.scrollTop,s;const i=()=>{const t=e.getBoundingClientRect().top,o=Array.from(e.children).find(x=>x instanceof HTMLElement&&x.getBoundingClientRect().bottom>t);s=o?{element:o,offset:o.getBoundingClientRect().top-t}:void 0},g=()=>{if(Math.abs(e.scrollTop-d)<=.5)return!1;const t=Math.max(0,e.scrollHeight-e.clientHeight);return!(d>t&&Math.abs(e.scrollTop-t)<=.5)},l=()=>{if(g()&&(c=!1,i()),c)e.scrollTop=e.scrollHeight;else if(s!=null&&s.element.isConnected&&e.contains(s.element)){const o=s.element.getBoundingClientRect().top-e.getBoundingClientRect().top-s.offset;Math.abs(o)>.5&&(e.scrollTop+=o)}d=e.scrollTop,i()};a.current=l;const r=()=>{c=!1,i()},h=()=>{g()&&(c=!1),d=e.scrollTop,i()},E=t=>{t.target===e&&r()},w=t=>{const o=t.target;o instanceof Element&&o.closest('input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(t.key)&&r()},n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(l),u=()=>{n==null||n.disconnect(),n==null||n.observe(e),Array.from(e.children).forEach(t=>n==null?void 0:n.observe(t)),l()},L=new MutationObserver(u);return L.observe(e,{childList:!0,subtree:!0,characterData:!0}),u(),e.addEventListener("scroll",h,{passive:!0}),e.addEventListener("wheel",r,{passive:!0}),e.addEventListener("touchmove",r,{passive:!0}),e.addEventListener("pointerdown",E),e.addEventListener("keydown",w),e.addEventListener("load",l,!0),e.addEventListener("error",l,!0),()=>{a.current=()=>{},n==null||n.disconnect(),L.disconnect(),e.removeEventListener("scroll",h),e.removeEventListener("wheel",r),e.removeEventListener("touchmove",r),e.removeEventListener("pointerdown",E),e.removeEventListener("keydown",w),e.removeEventListener("load",l,!0),e.removeEventListener("error",l,!0)}},[]),m.useLayoutEffect(()=>a.current(),[R]),v}const C=({autofocus:R=!0,fill:v=!1,files:a,handleUpload:e,inlineImages:c,maxEditorRows:d=5,message:s="",messages:i,minEditorRows:g=1,onChange:l,onFilesChange:r,onInlineImagesChange:h,onSubmit:E,placeholder:w,resizableEditor:n=!1,sending:u,submitLabel:L="Send message",tooltipLabel:t})=>{var _;const[o,x]=m.useState([]),b=a??o,M=(_=i[i.length-1])==null?void 0:_.id,T=k(M),S=s.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim()==="";return p.jsxs("div",{className:q(y.messages,v&&y.fill),"data-component":"messages",children:[p.jsx(A.List,{"data-message-list":!0,ref:T,tabIndex:0,children:i.map(f=>p.jsx(D.Message,{...f},f.id))}),t&&p.jsx(B.Tooltip,{variant:"static",children:t}),p.jsx(j.Editor,{autofocus:R,content:s,disabled:u||S&&b.length===0&&!(c!=null&&c.length),files:b,inlineImages:c,isSubmitting:u,maxRows:d,minRows:g,onChange:l,onFilesChange:f=>{a===void 0&&x(f),r==null||r(f)},onInlineImagesChange:h,onSubmit:E,onUpload:e,placeholder:w,resizable:n?"top":!1,submitLabel:L})]})};exports.Messages=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const c=require("react/jsx-runtime"),A=require("classix"),f=require("react"),D=require("../editor/index.cjs"),H=require("../list/index.cjs"),P=require("../tooltip/index.cjs"),q=require("../button/index.cjs"),U=require("../../index-Bl5EEYDv.cjs"),C=require("../../content-i-MRPlxK.cjs"),K=require("../message/index.cjs"),N="_messages_15gj2_1",I="_fill_15gj2_22",$="_composer_15gj2_35",M={messages:N,fill:I,composer:$};function F(m,i=!1){const g=f.useRef(i),d=f.useRef(null),a=f.useRef(()=>{});return f.useLayoutEffect(()=>{const e=d.current;if(!e)return;let v=!0,p=e.scrollTop,l;const h=()=>{const o=e.getBoundingClientRect().top,r=Array.from(e.children).find(L=>L instanceof HTMLElement&&L.getBoundingClientRect().bottom>o);l=r?{element:r,offset:r.getBoundingClientRect().top-o}:void 0},_=()=>{if(Math.abs(e.scrollTop-p)<=.5)return!1;const o=Math.max(0,e.scrollHeight-e.clientHeight);return!(p>o&&Math.abs(e.scrollTop-o)<=.5)},s=()=>{if(g.current&&(v=!1),_()&&(v=!1,h()),v)e.scrollTop=e.scrollHeight;else if(l!=null&&l.element.isConnected&&e.contains(l.element)){const r=l.element.getBoundingClientRect().top-e.getBoundingClientRect().top-l.offset;Math.abs(r)>.5&&(e.scrollTop+=r)}p=e.scrollTop,h()};a.current=s;const u=()=>{v=!1,h()},y=()=>{_()&&(v=!1),p=e.scrollTop,h()},E=o=>{o.target===e&&u()},R=o=>{const r=o.target;r instanceof Element&&r.closest('input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(o.key)&&u()},n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),w=()=>{n==null||n.disconnect(),n==null||n.observe(e),Array.from(e.children).forEach(o=>n==null?void 0:n.observe(o)),s()},x=new MutationObserver(w);return x.observe(e,{childList:!0,subtree:!0,characterData:!0}),w(),e.addEventListener("scroll",y,{passive:!0}),e.addEventListener("wheel",u,{passive:!0}),e.addEventListener("touchmove",u,{passive:!0}),e.addEventListener("pointerdown",E),e.addEventListener("keydown",R),e.addEventListener("load",s,!0),e.addEventListener("error",s,!0),()=>{a.current=()=>{},n==null||n.disconnect(),x.disconnect(),e.removeEventListener("scroll",y),e.removeEventListener("wheel",u),e.removeEventListener("touchmove",u),e.removeEventListener("pointerdown",E),e.removeEventListener("keydown",R),e.removeEventListener("load",s,!0),e.removeEventListener("error",s,!0)}},[]),f.useLayoutEffect(()=>{g.current=i,a.current()},[m,i]),d}const G=({messages:m,editingId:i})=>{var d;const g=F((d=m[m.length-1])==null?void 0:d.id,!!i);return c.jsx(H.List,{"data-message-list":!0,ref:g,tabIndex:0,"data-component":"messagelist",children:m.map(a=>c.jsx("li",{"data-message-editing":a.id===i||void 0,children:c.jsx(K.Message,{...a})},a.id))})},J=({autofocus:m=!0,editing:i,fill:g=!1,files:d,handleUpload:a,inlineImages:e,maxEditorRows:v=5,message:p="",messages:l,minEditorRows:h=1,onChange:_,onFilesChange:s,onInlineImagesChange:u,onSubmit:y,placeholder:E,resizableEditor:R=!1,sending:n,submitLabel:w="Send message",tooltipLabel:x})=>{const[o,r]=f.useState([]),L=d??o,t=i&&l.some(j=>j.id===i.messageId)?i:void 0,[B,T]=f.useState(!1),S=f.useRef(!1),b=!!(t!=null&&t.saving)||B,k=async()=>{if(!(!t||!C.hasEditorContent(t.content)||b||S.current)){S.current=!0,T(!0);try{await t.onSave(t.content)}catch{}finally{S.current=!1,T(!1)}}};return c.jsxs("div",{className:A(M.messages,g&&M.fill),"data-component":"messages",children:[c.jsx(G,{messages:l,editingId:t==null?void 0:t.messageId}),(t||x)&&c.jsx(P.Tooltip,{variant:"static",children:t?t.editingLabel??"Editing message":x}),c.jsx("div",{className:M.composer,children:c.jsx(D.Editor,{autofocus:m,sessionKey:t?`edit:${t.messageId}`:"reply",attachmentsEnabled:!t,controls:t?c.jsxs(U.Controls,{variant:"inline",children:[c.jsx(q.Button,{disabled:b,onClick:t.onCancel,variant:"secondary",children:t.cancelLabel??"Cancel"}),c.jsx(q.Button,{disabled:!C.hasEditorContent(t.content)||b,isLoading:b,onClick:()=>void k(),variant:"primary",children:t.saveLabel??"Save"})]}):void 0,content:(t==null?void 0:t.content)??p,disabled:n||!C.hasEditorContent(p)&&L.length===0&&!(e!=null&&e.length),files:L,inlineImages:e,isSubmitting:t?b:n,maxRows:v,minRows:h,onChange:(t==null?void 0:t.onChange)??_,onFilesChange:j=>{d===void 0&&r(j),s==null||s(j)},onInlineImagesChange:u,onSubmit:t?void 0:y,onUpload:a,placeholder:E,resizable:R?"top":!1,submitLabel:w})})]})};exports.Messages=J;