@cyber-harbour/ui 2.2.37 → 2.2.39
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/{PdfDriver-AC3T6NNU.js → PdfDriver-AV5F6NNW.js} +2 -2
- package/dist/{PdfDriver-AC3T6NNU.js.map → PdfDriver-AV5F6NNW.js.map} +1 -1
- package/dist/{PdfDriver-P33OLIOE.mjs → PdfDriver-BERFKFHH.mjs} +2 -2
- package/dist/{PdfDriver-P33OLIOE.mjs.map → PdfDriver-BERFKFHH.mjs.map} +1 -1
- package/dist/{chunk-GKPBTQZ3.js → chunk-2IGSHLHQ.js} +31 -31
- package/dist/chunk-2IGSHLHQ.js.map +1 -0
- package/dist/{chunk-I5ITYF6G.mjs → chunk-I7F6H36J.mjs} +31 -31
- package/dist/chunk-I7F6H36J.mjs.map +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +39 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
- package/dist/chunk-GKPBTQZ3.js.map +0 -1
- package/dist/chunk-I5ITYF6G.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var q4=require('react'),s1=require('styled-components'),jsxRuntime=require('react/jsx-runtime'),reactTinyPopover=require('react-tiny-popover'),reactDom=require('react-dom'),Y8=require('react-content-loader');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var q4__default=/*#__PURE__*/_interopDefault(q4);var s1__default=/*#__PURE__*/_interopDefault(s1);var Y8__default=/*#__PURE__*/_interopDefault(Y8);var z4=Object.defineProperty;var r=(o,e)=>z4(o,"name",{value:e,configurable:true});var V1=r((o,e)=>{if(!e||typeof e!="string")return;if(!(e.includes(".")||o.colors.hasOwnProperty(e)))return e;let i=e.split(".");if(i.length===1)return o.colors[i[0]];if(i.length===2){let[C,s]=i,l=o.colors[C];if(l&&typeof l=="object")return l[s]}},"resolveThemeColor"),c=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("px","")):o;return isNaN(t)?(console.warn(`Invalid pixel value: ${o}`),"0"):`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),s5=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("rem","")):o;return isNaN(t)?0:t*e},"remToPx"),u2={contextMenu:["padding"],baseSize:true},T=r((o,e=16)=>{if(typeof o=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(o.trim()))return o;let t=typeof o=="string"?parseFloat(o):o;return isNaN(t)?`${o}`:`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),c1=r((o,e=14,t)=>{let i={};return Object.entries(o).forEach(([C,s])=>{s!==null&&typeof s=="object"&&!Array.isArray(s)?i[C]=c1(s,e,C):typeof s=="string"&&/^\d+(\.\d+)?px$/.test(s.trim())||typeof s=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(l=>C.toLowerCase().includes(l.toLowerCase()))&&!(t&&Array.isArray(u2[t])&&u2[t].includes(C))&&!u2[C]?i[C]=c(s,e):i[C]=s;}),i},"convertPaletteToRem"),R=r((o,e,t,i)=>o.button[e][t][i],"getButtonStyles"),O=r((o,e)=>o.button.sizes[e],"getButtonSizeStyles"),b9=r((o,e,t)=>o.input[e][t],"getInputStyles"),u9=r((o,e="body")=>o.typography.variants[e]||o.typography.variants.body,"getTypographyStyles"),h9=r((o,e="m")=>`@media (min-width: ${o.breakpoints[e]}px)`,"getBreakpoint"),L1=r((o,e)=>{try{let t=parseInt(o.slice(1,3),16),i=parseInt(o.slice(3,5),16),C=parseInt(o.slice(5,7),16);return `rgba(${t}, ${i}, ${C}, ${e})`}catch{return o}},"hexToRgba");var H1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},o1={xs:320,s:576,m:768,l:992,xl:1200},F1={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var l5={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#F7F8FC",primary:{main:"#0042EC",light:"#80A0F5",lighter:"#E5ECFD",lightest:"#F3F7FF",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#10253A"},text:{main:"#101010",light:"#535353",lighter:"#99989C",invert:"#ffffff",success:"#31B083",error:"#C93939"},stroke:{main:"#C7C5C5",light:"#EBEBEB",lighter:"#F3F3F3"},disable:"#FAFAFA",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:F1,breakpoints:o1,zIndex:H1,line:{size:1,color:"#EBEBEB"},button:{fill:{default:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"#0042EC",text:"#FFFFFF",border:" #0042EC",boxShadow:"none"},hover:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},active:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #E5ECFD",boxShadow:"none"}},secondary:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#E06060",text:"#FFFFFF",border:" #E06060",boxShadow:"none"},active:{background:"#A82E2E",text:"#FFFFFF",border:" #A82E2E",boxShadow:"none"},disabled:{background:"#FFCCCB",text:"#FFFFFF",border:" #FFCCCB",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},active:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#101010",border:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:" #0042EC",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},active:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"#EBEBEB",boxShadow:"none"},hover:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},active:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none",filledIcon:{background:"#E5ECFD",color:"#0042EC"}},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E06060",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#A82E2E",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#FFFFFF",border:"#EBEBEB",width:242,collapsedWidth:65,text:{default:"#535353",active:"#0042EC",hover:"#0042EC"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#E5ECFD",borderLeft:"2px solid #0042EC",padding:"10px 16px",height:40},hover:{background:"#F3F7FF",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#99989C",fontSize:"12px",fontWeight:600}},delimeter:{color:"#C7C5C5",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},delimeter:{color:"#C7C5C5",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 10px 40px -4px rgba(0, 0, 0, 0.06), 0px 2px 8px -2px rgba(0, 0, 0, 0.04)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#F3F4F6",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},rowActionsMenu:{button:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#C7C5C5",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #0042EC",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#E6E7EB"},background:"#FFFFFF"},graph2D:{ring:{highlightFill:"rgba(255, 165, 0, 0.3)",selectionFill:"rgba(0, 66, 236, 0.3)"},button:{stroke:"#e5e5e5",normalFill:"rgba(255, 255, 255, 0.8)",hoverFill:"rgba(230, 230, 230, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(0, 0, 0, 0.5)"},link:{normal:"#999",highlighted:"#ff9900",textColor:"#666",highlightedTextColor:"#663300",textBgColor:"rgba(255, 255, 255, 0.8)",highlightedTextBgColor:"rgba(255, 230, 204, 0.9)"}},contentLoader:{foreground:"#E2E2E2E2",background:"#F3F3F3"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#894B00",background:"#FFFBE0"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#101010",helpTextColor:"#99989C"},leanerProgress:{background:"#EBEBEB",progressColor:"#0042EC"},switch:{default:{background:"#C7C5C5",color:"#FFFFFF"},checked:{background:"#0042EC",color:"#FFFFFF"},disabled:{background:"#EBEBEB",color:"#FFFFFF"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#535353",background:"#EBEBEB"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(16, 16, 16, 0.1)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#EBEBEB",background:"#FFFFFF",borderRadius:8}},d5=c1(l5,l5.baseSize);var p5={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",primary:{main:"#158EFF",light:"#80A0F5",lighter:"#10253A",lightest:"#020E19",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#80A0F5"},text:{main:"#FFFFFF",light:"#99989C",lighter:"#535353",invert:"#101010",success:"#31B083",error:"#C93939"},stroke:{main:"#34404C",light:"#1E2226",lighter:"#333333"},disable:"#080A0C",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:F1,breakpoints:o1,zIndex:H1,line:{size:1,color:"#1E2226"},button:{fill:{default:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"#158EFF",text:"#FFFFFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},active:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #10253A",boxShadow:"none"}},secondary:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},active:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},disabled:{background:"#511616",text:"#FFFFFF",border:" #511616",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},active:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},hover:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},active:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none",filledIcon:{background:"#10253A",color:"#158EFF"}},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#0F1317",border:"#1E2226",width:242,collapsedWidth:65,text:{default:"#99989C",active:"#158EFF",hover:"#158EFF"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#10253A",borderLeft:"2px solid #158EFF",padding:"10px 16px",height:40},hover:{background:"#020E19",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#020b14",fontSize:"12px",fontWeight:600}},delimeter:{color:"#34404C",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" #1E2226",boxShadow:"none"}},delimeter:{color:"#34404C",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 10px 40px -4px rgba(0, 0, 0, 0.5), 0px 2px 8px -2px rgba(0, 0, 0, 0.3)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},rowActionsMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#34404C",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #158EFF",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#080A0C",text:"#99989C",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"transparent",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#1E2226"},background:"#0F1317"},graph2D:{ring:{highlightFill:"rgba(0, 90, 255, 0.3)",selectionFill:"rgba(0, 90, 255, 0.5)"},button:{stroke:"#1A1A1A",normalFill:"rgba(0, 0, 0, 0.8)",hoverFill:"rgba(25, 25, 25, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(255, 255, 255, 0.5)"},link:{normal:"#666",highlighted:"#0066ff",textColor:"#999",highlightedTextColor:"#99ccff",textBgColor:"rgba(0, 0, 0, 0.8)",highlightedTextBgColor:"rgba(0, 25, 51, 0.9)"}},contentLoader:{foreground:"#99989C",background:"#535353"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#FFEDD8",background:"#68550E"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#ffffff",helpTextColor:"#535353"},leanerProgress:{background:"#1E2226",progressColor:"#158EFF"},switch:{default:{background:"#34404C",color:"#0F1317"},checked:{background:"#158EFF",color:"#0F1317"},disabled:{background:"#1E2226",color:"#0F1317"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#99989C",background:"#1E2226"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(0, 0, 0, 0.5)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#1E2226",background:"#0F1317",borderRadius:8}},c5=c1(p5,p5.baseSize);var h2=r(o=>{if(typeof window<"u"){let t=window.innerWidth;for(let[i,C]of Object.entries(o))if(t<C)return i}let e=Object.keys(o);return e[e.length-1]},"getBreakpoint"),b5=q4.createContext(h2(o1)),u5=r(({children:o})=>{let e=s1.useTheme(),[t,i]=q4.useState(h2(e.breakpoints));return q4.useEffect(()=>{if(typeof window>"u")return;let C=r(()=>{let s=h2(e.breakpoints);s!==t&&i(s);},"handleResize");return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C);}},[t,e.breakpoints]),jsxRuntime.jsx(b5.Provider,{value:t,children:o})},"BreakpointProvider"),h5=r(()=>{let o=q4.useContext(b5),e=s1.useTheme(),t=q4.useMemo(()=>Object.keys(e.breakpoints),[e.breakpoints]);return {currentBreakpoint:o,breakpointsOrder:t}},"useBreakpoint");var f5=s1.createGlobalStyle(({theme:o})=>`
|
|
1
|
+
'use strict';var q4=require('react'),s1=require('styled-components'),jsxRuntime=require('react/jsx-runtime'),reactTinyPopover=require('react-tiny-popover'),reactDom=require('react-dom'),Y8=require('react-content-loader');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var q4__default=/*#__PURE__*/_interopDefault(q4);var s1__default=/*#__PURE__*/_interopDefault(s1);var Y8__default=/*#__PURE__*/_interopDefault(Y8);var z4=Object.defineProperty;var r=(o,e)=>z4(o,"name",{value:e,configurable:true});var L1=r((o,e)=>{if(!e||typeof e!="string")return;if(!(e.includes(".")||o.colors.hasOwnProperty(e)))return e;let i=e.split(".");if(i.length===1)return o.colors[i[0]];if(i.length===2){let[C,s]=i,l=o.colors[C];if(l&&typeof l=="object")return l[s]}},"resolveThemeColor"),c=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("px","")):o;return isNaN(t)?(console.warn(`Invalid pixel value: ${o}`),"0"):`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),s5=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("rem","")):o;return isNaN(t)?0:t*e},"remToPx"),u2={contextMenu:["padding"],baseSize:true},T=r((o,e=16)=>{if(typeof o=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(o.trim()))return o;let t=typeof o=="string"?parseFloat(o):o;return isNaN(t)?`${o}`:`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),c1=r((o,e=14,t)=>{let i={};return Object.entries(o).forEach(([C,s])=>{s!==null&&typeof s=="object"&&!Array.isArray(s)?i[C]=c1(s,e,C):typeof s=="string"&&/^\d+(\.\d+)?px$/.test(s.trim())||typeof s=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(l=>C.toLowerCase().includes(l.toLowerCase()))&&!(t&&Array.isArray(u2[t])&&u2[t].includes(C))&&!u2[C]?i[C]=c(s,e):i[C]=s;}),i},"convertPaletteToRem"),R=r((o,e,t,i)=>o.button[e][t][i],"getButtonStyles"),O=r((o,e)=>o.button.sizes[e],"getButtonSizeStyles"),b9=r((o,e,t)=>o.input[e][t],"getInputStyles"),u9=r((o,e="body")=>o.typography.variants[e]||o.typography.variants.body,"getTypographyStyles"),h9=r((o,e="m")=>`@media (min-width: ${o.breakpoints[e]}px)`,"getBreakpoint"),H1=r((o,e)=>{try{let t=parseInt(o.slice(1,3),16),i=parseInt(o.slice(3,5),16),C=parseInt(o.slice(5,7),16);return `rgba(${t}, ${i}, ${C}, ${e})`}catch{return o}},"hexToRgba");var F1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},o1={xs:320,s:576,m:768,l:992,xl:1200},k1={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var l5={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#F7F8FC",primary:{main:"#0042EC",light:"#80A0F5",lighter:"#E5ECFD",lightest:"#F3F7FF",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#10253A"},text:{main:"#101010",light:"#535353",lighter:"#99989C",invert:"#ffffff",success:"#31B083",error:"#C93939"},stroke:{main:"#C7C5C5",light:"#EBEBEB",lighter:"#F3F3F3"},disable:"#FAFAFA",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:k1,breakpoints:o1,zIndex:F1,line:{size:1,color:"#EBEBEB"},button:{fill:{default:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"#0042EC",text:"#FFFFFF",border:" #0042EC",boxShadow:"none"},hover:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},active:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #E5ECFD",boxShadow:"none"}},secondary:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#E06060",text:"#FFFFFF",border:" #E06060",boxShadow:"none"},active:{background:"#A82E2E",text:"#FFFFFF",border:" #A82E2E",boxShadow:"none"},disabled:{background:"#FFCCCB",text:"#FFFFFF",border:" #FFCCCB",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},active:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#101010",border:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:" #0042EC",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},active:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"#EBEBEB",boxShadow:"none"},hover:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},active:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none",filledIcon:{background:"#E5ECFD",color:"#0042EC"}},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E06060",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#A82E2E",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#FFFFFF",border:"#EBEBEB",width:242,collapsedWidth:65,text:{default:"#535353",active:"#0042EC",hover:"#0042EC"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#E5ECFD",borderLeft:"2px solid #0042EC",padding:"10px 16px",height:40},hover:{background:"#F3F7FF",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#99989C",fontSize:"12px",fontWeight:600}},delimeter:{color:"#C7C5C5",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},delimeter:{color:"#C7C5C5",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 10px 40px -4px rgba(0, 0, 0, 0.06), 0px 2px 8px -2px rgba(0, 0, 0, 0.04)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#F3F4F6",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},rowActionsMenu:{button:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#C7C5C5",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #0042EC",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#E6E7EB"},background:"#FFFFFF"},graph2D:{ring:{highlightFill:"rgba(255, 165, 0, 0.3)",selectionFill:"rgba(0, 66, 236, 0.3)"},button:{stroke:"#e5e5e5",normalFill:"rgba(255, 255, 255, 0.8)",hoverFill:"rgba(230, 230, 230, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(0, 0, 0, 0.5)"},link:{normal:"#999",highlighted:"#ff9900",textColor:"#666",highlightedTextColor:"#663300",textBgColor:"rgba(255, 255, 255, 0.8)",highlightedTextBgColor:"rgba(255, 230, 204, 0.9)"}},contentLoader:{foreground:"#E2E2E2E2",background:"#F3F3F3"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#894B00",background:"#FFFBE0"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#101010",helpTextColor:"#99989C"},leanerProgress:{background:"#EBEBEB",progressColor:"#0042EC"},switch:{default:{background:"#C7C5C5",color:"#FFFFFF"},checked:{background:"#0042EC",color:"#FFFFFF"},disabled:{background:"#EBEBEB",color:"#FFFFFF"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#535353",background:"#EBEBEB"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(16, 16, 16, 0.1)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#EBEBEB",background:"#FFFFFF",borderRadius:8}},d5=c1(l5,l5.baseSize);var p5={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",primary:{main:"#158EFF",light:"#80A0F5",lighter:"#10253A",lightest:"#020E19",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#80A0F5"},text:{main:"#FFFFFF",light:"#99989C",lighter:"#535353",invert:"#101010",success:"#31B083",error:"#C93939"},stroke:{main:"#34404C",light:"#1E2226",lighter:"#333333"},disable:"#080A0C",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:k1,breakpoints:o1,zIndex:F1,line:{size:1,color:"#1E2226"},button:{fill:{default:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"#158EFF",text:"#FFFFFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},active:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #10253A",boxShadow:"none"}},secondary:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},active:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},disabled:{background:"#511616",text:"#FFFFFF",border:" #511616",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},active:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},hover:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},active:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none",filledIcon:{background:"#10253A",color:"#158EFF"}},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#0F1317",border:"#1E2226",width:242,collapsedWidth:65,text:{default:"#99989C",active:"#158EFF",hover:"#158EFF"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#10253A",borderLeft:"2px solid #158EFF",padding:"10px 16px",height:40},hover:{background:"#020E19",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#020b14",fontSize:"12px",fontWeight:600}},delimeter:{color:"#34404C",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" #1E2226",boxShadow:"none"}},delimeter:{color:"#34404C",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 10px 40px -4px rgba(0, 0, 0, 0.5), 0px 2px 8px -2px rgba(0, 0, 0, 0.3)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},rowActionsMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#34404C",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #158EFF",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#080A0C",text:"#99989C",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"transparent",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#1E2226"},background:"#0F1317"},graph2D:{ring:{highlightFill:"rgba(0, 90, 255, 0.3)",selectionFill:"rgba(0, 90, 255, 0.5)"},button:{stroke:"#1A1A1A",normalFill:"rgba(0, 0, 0, 0.8)",hoverFill:"rgba(25, 25, 25, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(255, 255, 255, 0.5)"},link:{normal:"#666",highlighted:"#0066ff",textColor:"#999",highlightedTextColor:"#99ccff",textBgColor:"rgba(0, 0, 0, 0.8)",highlightedTextBgColor:"rgba(0, 25, 51, 0.9)"}},contentLoader:{foreground:"#99989C",background:"#535353"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#FFEDD8",background:"#68550E"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#ffffff",helpTextColor:"#535353"},leanerProgress:{background:"#1E2226",progressColor:"#158EFF"},switch:{default:{background:"#34404C",color:"#0F1317"},checked:{background:"#158EFF",color:"#0F1317"},disabled:{background:"#1E2226",color:"#0F1317"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#99989C",background:"#1E2226"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(0, 0, 0, 0.5)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#1E2226",background:"#0F1317",borderRadius:8}},c5=c1(p5,p5.baseSize);var h2=r(o=>{if(typeof window<"u"){let t=window.innerWidth;for(let[i,C]of Object.entries(o))if(t<C)return i}let e=Object.keys(o);return e[e.length-1]},"getBreakpoint"),b5=q4.createContext(h2(o1)),u5=r(({children:o})=>{let e=s1.useTheme(),[t,i]=q4.useState(h2(e.breakpoints));return q4.useEffect(()=>{if(typeof window>"u")return;let C=r(()=>{let s=h2(e.breakpoints);s!==t&&i(s);},"handleResize");return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C);}},[t,e.breakpoints]),jsxRuntime.jsx(b5.Provider,{value:t,children:o})},"BreakpointProvider"),h5=r(()=>{let o=q4.useContext(b5),e=s1.useTheme(),t=q4.useMemo(()=>Object.keys(e.breakpoints),[e.breakpoints]);return {currentBreakpoint:o,breakpointsOrder:t}},"useBreakpoint");var f5=s1.createGlobalStyle(({theme:o})=>`
|
|
2
2
|
*, *::before, *::after {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
${m(e,"padding-left",t.pl,o)}
|
|
41
41
|
${m(e,"padding-inline",t.px,o)}
|
|
42
42
|
${m(e,"padding-block",t.py,o)}
|
|
43
|
-
`),"paddingStyles"),
|
|
43
|
+
`),"paddingStyles"),P1=r(o=>{let e={};return ["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"].forEach(t=>{t in o&&(e[t]=o[t],delete o[t]);}),e},"destructSpaceProps"),m=r((o,e,t,i)=>{if(i&&i.includes(e))return "";if(t!==void 0){return `${e}: ${typeof t=="number"?`${c(t,o.baseSize)}`:t};`}return ""},"generatePropertySpaceStyle");function o6({media:o,...e},t,i){if(!o)return e;let C=i.indexOf(t),s={...e};for(let l=0;l<=C;l++){let d=i[l];o[d]&&(s={...s,...o[d]});}return s}r(o6,"getResponsiveProps");var w=r(o=>q4__default.default.forwardRef((e,t)=>{let{currentBreakpoint:i,breakpointsOrder:C}=h5(),s=q4.useMemo(()=>o6(e,i,C),[e,i]);return jsxRuntime.jsx(o,{...s,ref:t})}),"createComponent"),v=r((o,e)=>s1__default.default(o)`
|
|
44
44
|
${Q4(e)}
|
|
45
45
|
${j4(e)}
|
|
46
|
-
`,"createStyledComponent");var co=r(()=>s1.useTheme(),"useTheme");var
|
|
46
|
+
`,"createStyledComponent");var co=r(()=>s1.useTheme(),"useTheme");var Z1=r(o=>`
|
|
47
47
|
background: ${o.background};
|
|
48
48
|
color: ${o.text};
|
|
49
49
|
border-color: ${o.border};
|
|
50
50
|
box-shadow: ${o.boxShadow};
|
|
51
|
-
`,"getCss")
|
|
51
|
+
`,"getCss"),$1=r(o=>o.filledIcon?`
|
|
52
52
|
color: ${o.filledIcon.color};
|
|
53
53
|
background: ${o.filledIcon.background};
|
|
54
54
|
`:"","getIconStyles"),r6=s1__default.default.div(({$whiteSpace:o})=>`
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
justify-content: center;
|
|
63
63
|
`,n6=v(s1__default.default.button(({$variant:o,$color:e,$size:t,$disabled:i,$fullWidth:C,$iconPosition:s,$iconVariant:l,$minWidth:d,theme:p,px:g=o!=="empty"?p.button.sizes[t].paddingInline:0,py:u=o!=="empty"?p.button.sizes[t].paddingBlock:0})=>{let h=O(p,t);return `
|
|
64
|
-
${
|
|
64
|
+
${Z1(R(p,o,e,"default"))}
|
|
65
65
|
font-size: ${h.fontSize};
|
|
66
66
|
gap: ${h.gap};
|
|
67
67
|
${m(p,"padding-block",u)};
|
|
@@ -86,17 +86,17 @@
|
|
|
86
86
|
|
|
87
87
|
@media (hover: hover) {
|
|
88
88
|
&:hover {
|
|
89
|
-
${
|
|
89
|
+
${Z1(R(p,o,e,"hover"))}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
&:active {
|
|
95
|
-
${
|
|
95
|
+
${Z1(R(p,o,e,"active"))}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&:disabled {
|
|
99
|
-
${
|
|
99
|
+
${Z1(R(p,o,e,"disabled"))}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
${e1} svg {
|
|
@@ -110,25 +110,25 @@
|
|
|
110
110
|
height: 24px;
|
|
111
111
|
border-radius: ${h.borderRadius};
|
|
112
112
|
transition: all 0.2s ease;
|
|
113
|
-
${
|
|
113
|
+
${$1(R(p,o,e,"default"))}
|
|
114
114
|
}
|
|
115
115
|
@media (hover: hover) {
|
|
116
116
|
&:hover {
|
|
117
117
|
${e1} {
|
|
118
|
-
${
|
|
118
|
+
${$1(R(p,o,e,"hover"))}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&:active {
|
|
124
124
|
${e1} {
|
|
125
|
-
${
|
|
125
|
+
${$1(R(p,o,e,"active"))}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
&:disabled {
|
|
130
130
|
${e1} {
|
|
131
|
-
${
|
|
131
|
+
${$1(R(p,o,e,"disabled"))}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
`:""}
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
font-size: ${o.typography.variants[e].fontSize};
|
|
262
262
|
font-weight: ${i};
|
|
263
263
|
font-style: ${C};
|
|
264
|
-
color: ${
|
|
264
|
+
color: ${L1(o,t)||o.colors.text.main};
|
|
265
265
|
${s?"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;":""}
|
|
266
266
|
`)),e4=w(({variant:o="body",element:e,children:t,weight:i,fontStyle:C,color:s,className:l,style:d,ellipsis:p=false,...g})=>{let u=e||(o.startsWith("h")?o:"p");return jsxRuntime.jsx(L0,{as:u,$variant:o,$weight:i,$style:C,$color:s,$ellipsis:p,className:l,style:d,...g,children:t})});var ks=r(({children:o,className:e,width:t=240})=>jsxRuntime.jsx(k0,{className:e,$width:t,children:o}),"ListMenu"),k0=s1.styled.ul(({theme:o,$width:e})=>`
|
|
267
267
|
margin: 0;
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
flex-grow: ${o};
|
|
397
397
|
flex-shrink: ${e};
|
|
398
398
|
flex-basis: ${t};
|
|
399
|
-
`);var
|
|
399
|
+
`);var X1=s1.styled.tr``;var a4=s1.styled.th(({theme:o,$p:e,$hasBorder:t})=>`
|
|
400
400
|
padding-top: ${c(e,o.baseSize)};
|
|
401
401
|
padding-bottom: 10px;
|
|
402
402
|
padding-right: ${c(e,o.baseSize)};
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
text-align: left;
|
|
428
428
|
line-height: 1.5;
|
|
429
429
|
color: ${o.colors.text.main};
|
|
430
|
-
`);var Ml=r(({columns:o,rowCount:e,renderCell:t,renderHeaderCell:i,rowIds:C,hasHeader:s=true,hasBorder:l=true,cellPadding:d=15})=>{let p=o.length,g=q4.useMemo(()=>{let u=[];for(let h=0;h<e;h++){u[h]=[];for(let f=0;f<p;f++)u[h][f]=t({rowIndex:h,cellIndex:f,columnId:o[f].id});}return u},[e,p,o,t]);return jsxRuntime.jsxs(q0,{children:[s&&!!i&&jsxRuntime.jsx(J0,{children:jsxRuntime.jsx(
|
|
430
|
+
`);var Ml=r(({columns:o,rowCount:e,renderCell:t,renderHeaderCell:i,rowIds:C,hasHeader:s=true,hasBorder:l=true,cellPadding:d=15})=>{let p=o.length,g=q4.useMemo(()=>{let u=[];for(let h=0;h<e;h++){u[h]=[];for(let f=0;f<p;f++)u[h][f]=t({rowIndex:h,cellIndex:f,columnId:o[f].id});}return u},[e,p,o,t]);return jsxRuntime.jsxs(q0,{children:[s&&!!i&&jsxRuntime.jsx(J0,{children:jsxRuntime.jsx(X1,{children:o.map(({id:u,title:h,width:f})=>jsxRuntime.jsx(a4,{style:{width:f},$p:d,$hasBorder:l,children:i({title:h,columnId:u})},u))})}),jsxRuntime.jsx(Q0,{children:g.map((u,h)=>jsxRuntime.jsx(X1,{id:C?C[h]:`row-${h}`,children:u.map((f,S)=>jsxRuntime.jsx(_2,{className:o[S]?.className,$p:d,$hasBorder:l,children:f},`cell-${S}`))},`row-${h}`))})]})},"Table"),q0=s1.styled.table`
|
|
431
431
|
width: 100%;
|
|
432
432
|
border-spacing: 0;
|
|
433
433
|
table-layout: fixed;
|
|
@@ -437,10 +437,10 @@
|
|
|
437
437
|
top: 0;
|
|
438
438
|
z-index: 1;
|
|
439
439
|
`),Q0=s1.styled.tbody`
|
|
440
|
-
${
|
|
440
|
+
${X1}:last-of-type > ${_2} {
|
|
441
441
|
border-color: transparent;
|
|
442
442
|
}
|
|
443
|
-
`;var o7=9,e7=2,t7=5,
|
|
443
|
+
`;var o7=9,e7=2,t7=5,K1=1,q1="...",$l=r(({component:o,total_items:e,limit:t,offset:i,paginationPageLimit:C=o7,visiblePageLimit:s=t7,diffPageLimit:l=e7,getHref:d,onChangePage:p})=>{let g=q4.useMemo(()=>i?i/t+1:1,[t,i]),u=Math.ceil(e/t),h=q4.useMemo(()=>{let b=[];if(u<=C)for(let M=1;M<=u;M+=1)b.push(M);else {let V=u;if(b.push(1),g<=s){for(let y=2;y<=s+2;y+=1)b.push(y);b.push(q1,V);}else if(g>s&&g<V-s){b.push(q1);for(let y=g-l;y<=g+l;y+=1)b.push(y);b.push(q1,V);}else {b.push(q1);for(let y=V-s-1;y<=V;y+=1)b.push(y);}}return b},[g,u]),f=q4.useCallback(b=>typeof b=="string"||b===g,[g]),S=q4.useCallback(b=>{f(b)||p?.(b);},[p,f]);return jsxRuntime.jsxs(n7,{children:[jsxRuntime.jsx(Y2,{"aria-label":"previous page",onClick:b=>{if(!e||g===1){b.preventDefault();return}S(g-K1);},disabled:g===1,as:o,href:d?d(g-K1):void 0,children:jsxRuntime.jsx(w2,{})}),jsxRuntime.jsx(r7,{children:h.map((b,M)=>jsxRuntime.jsx("li",{children:jsxRuntime.jsx(Y2,{$current:b===g,onClick:()=>S(b),as:o,href:d?d(Number(b)):void 0,children:b})},`pagination-${b}-${M}`))}),jsxRuntime.jsx(Y2,{"aria-label":"next page",onClick:b=>{if(!e||g===u){b.preventDefault();return}S(g+K1);},disabled:!e||g===u,as:o,href:d?d(g+K1):void 0,children:jsxRuntime.jsx(v2,{})})]})},"Pagination"),r7=s1.styled.div(({theme:o})=>`
|
|
444
444
|
list-style: none;
|
|
445
445
|
padding: 0;
|
|
446
446
|
display: flex;
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
align-items: center;
|
|
474
474
|
justify-content: flex-end;
|
|
475
475
|
gap: ${o.pagination.gap};
|
|
476
|
-
`);var l4=r(({isOpen:o,onClickOutside:e,onClick:t,anchor:i,size:C="medium",disabled:s,fullWidth:l,className:d,positions:p=["bottom"],align:g="start",children:u,hasBorder:h=true,maxHeight:f=500,maxWidth:S,matchAnchorWidth:b=false,anchorIcon:M,hasShadow:
|
|
476
|
+
`);var l4=r(({isOpen:o,onClickOutside:e,onClick:t,anchor:i,size:C="medium",disabled:s,fullWidth:l,className:d,positions:p=["bottom"],align:g="start",children:u,hasBorder:h=true,maxHeight:f=500,maxWidth:S,matchAnchorWidth:b=false,anchorIcon:M,hasShadow:V=true})=>{let[y,W]=q4.useState(0),G=q4.useRef(null),P=s1.useTheme();return q4.useLayoutEffect(()=>{G.current&&typeof window<"u"&&W(G.current.offsetWidth);},[b]),jsxRuntime.jsx(reactTinyPopover.Popover,{padding:P.contextMenu.padding,isOpen:o,positions:p,align:g,onClickOutside:e,content:jsxRuntime.jsx(p7,{children:u}),ref:G,containerStyle:{backgroundColor:P.colors.background,border:`1px solid ${P.colors.stroke.lighter}`,boxShadow:V?P.contextMenu.shadow:void 0,borderRadius:"12px",overflow:"auto",maxHeight:`${f}px`,maxWidth:S?`${S}px`:void 0,zIndex:"9999",width:y&&b?`${y}px`:void 0},containerClassName:"cb-ui-context-menu",children:jsxRuntime.jsxs(g7,{onClick:t,$disabled:s,$fullWidth:l,$size:C,className:d,type:"button",disabled:s,$hasBorder:h,children:[jsxRuntime.jsx(c7,{children:i}),M||(o?jsxRuntime.jsx(B2,{width:P.contextMenu.icon.size,height:P.contextMenu.icon.size}):jsxRuntime.jsx(I2,{width:P.contextMenu.icon.size,height:P.contextMenu.icon.size}))]})})},"ContextMenu"),p7=s1.styled.div(({theme:o})=>`
|
|
477
477
|
padding: 4px;
|
|
478
478
|
display: flex;
|
|
479
479
|
flex-direction: column;
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
border-top-width: ${o.contextMenu.delimeter.thickness};
|
|
559
559
|
border-top-style: ${o.contextMenu.delimeter.style};
|
|
560
560
|
border-top-color: ${o.contextMenu.delimeter.color};
|
|
561
|
-
`);var d4=r(()=>{let[o,e]=q4.useState(false);return {isOpen:o,toggleMenu:r(()=>{e(s=>!s);},"toggleMenu"),closeMenu:r(()=>{e(false);},"closeMenu"),openMenu:r(()=>{e(true);},"openMenu")}},"useContextMenuControl");var gd=r(({options:o,selected:e,onSelect:t,placeholder:i,disabled:C=false,positions:s=["bottom"],align:l="start",size:d="small",hasBorder:p=true,maxHeight:g,maxWidth:u,matchAnchorWidth:h=true,isSearchable:f=false,...S})=>{let[b,M]=q4.useState(false),[
|
|
561
|
+
`);var d4=r(()=>{let[o,e]=q4.useState(false);return {isOpen:o,toggleMenu:r(()=>{e(s=>!s);},"toggleMenu"),closeMenu:r(()=>{e(false);},"closeMenu"),openMenu:r(()=>{e(true);},"openMenu")}},"useContextMenuControl");var gd=r(({options:o,selected:e,onSelect:t,placeholder:i,disabled:C=false,positions:s=["bottom"],align:l="start",size:d="small",hasBorder:p=true,maxHeight:g,maxWidth:u,matchAnchorWidth:h=true,isSearchable:f=false,...S})=>{let[b,M]=q4.useState(false),[V,y]=q4.useState(""),W=q4.useMemo(()=>{if(!f)return o;let H=V?.trim().toLocaleLowerCase()||"";return o.filter(({value:I,inputDisplay:B})=>String(B||I).toLocaleLowerCase().includes(H))},[o,V,f]),G=q4.useCallback(()=>{C||M(H=>!H);},[]),P="noOptionsMessage"in S?S.noOptionsMessage:"",J="inputPlaceholder"in S?S.inputPlaceholder:"";return jsxRuntime.jsx(l4,{isOpen:b,onClickOutside:()=>M(false),onClick:G,disabled:C,anchor:f&&b?jsxRuntime.jsx(x7,{type:"text",value:V,onChange:H=>y(H.target.value),placeholder:J,autoFocus:true,onClick:H=>H.stopPropagation(),$size:d}):e?o.find(H=>H.value===e)?.inputDisplay||e:i,fullWidth:true,positions:s,align:l,size:d,hasBorder:p,maxHeight:g,maxWidth:u,matchAnchorWidth:h,children:jsxRuntime.jsxs(v7,{children:[W.map(H=>jsxRuntime.jsx(w7,{onClick:I=>{I.stopPropagation(),t(H.value),f&&y(""),M(false);},type:"button",$selected:H.value===e,disabled:C,$size:d,children:H.inputDisplay||H.value},H.value)),!W.length&&jsxRuntime.jsx(S7,{$size:d,children:P})]})})},"Select"),x7=s1.styled.input(({theme:o,$size:e})=>`
|
|
562
562
|
outline: none;
|
|
563
563
|
border: none;
|
|
564
564
|
padding: 0;
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
background: ${o.select.item.hover.background};
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
`);var j1=w(({className:o,positions:e=["top"],align:t="center",anchorClassName:i,content:C,offset:s=6,children:l,onMouseLeave:d})=>{let[
|
|
669
|
+
`);var j1=w(({className:o,positions:e=["top"],align:t="center",anchorClassName:i,content:C,offset:s=6,children:l,onMouseLeave:d,hideOnClick:p=false})=>{let[g,u]=q4.useState(false),h=Array.isArray(e)?e[0]:e,f=q4.useCallback(()=>{C&&u(true);},[C]),S=q4.useCallback(()=>{u(false);},[]),b=q4.useCallback(y=>{S(),d?.(y);},[d]),M=q4.useCallback(()=>{C&&u(y=>!y);},[C]),V=q4.useCallback(()=>{p&&u(false);},[p]);return jsxRuntime.jsx(reactTinyPopover.Popover,{padding:s,positions:e,isOpen:g,align:t,onClickOutside:S,content:!!C&&jsxRuntime.jsx($7,{className:o,$position:h,$offset:s,children:C}),containerStyle:{zIndex:"9999"},children:jsxRuntime.jsx(Z7,{onMouseEnter:f,onMouseLeave:b,className:i,onClick:V,onTouchStart:M,children:l})})}),Z7=s1.styled.div`
|
|
670
670
|
display: inline-block;
|
|
671
671
|
`,$7=s1.styled.div(({theme:o,$position:e,$offset:t})=>`
|
|
672
672
|
padding: ${o.tooltip.padding};
|
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
from { opacity: 0.5; transform: translateX(-${c(t,o.baseSize)}); }
|
|
700
700
|
to { opacity: 1; transform: translateX(0); }
|
|
701
701
|
}
|
|
702
|
-
`);var h4=q4.forwardRef(r(function({error:e,errorText:t,errorIconPosition:i="after-append",append:C,prepend:s,size:l="small",variant:d="outlined",multiline:p,disabled:g,className:u,errorTooltipProps:h={positions:["top","bottom"],align:"end"},...f},S){let b=t?.trim()||void 0,M=!!e||!!b,
|
|
702
|
+
`);var h4=q4.forwardRef(r(function({error:e,errorText:t,errorIconPosition:i="after-append",append:C,prepend:s,size:l="small",variant:d="outlined",multiline:p,disabled:g,className:u,errorTooltipProps:h={positions:["top","bottom"],align:"end"},...f},S){let b=t?.trim()||void 0,M=!!e||!!b,V=M?jsxRuntime.jsx(R7,{$variant:d,$size:l,$hasErrorText:!!b,children:b?jsxRuntime.jsx(j1,{content:b,...h,children:jsxRuntime.jsx(r1,{})}):jsxRuntime.jsx(r1,{})}):null;return jsxRuntime.jsxs(A7,{$align:p?"flex-start":"center",className:u,$error:M,$size:l,$variant:d,$disabled:!!g,$multiline:p,children:[!!s&&s,jsxRuntime.jsx(z7,{$size:l,$variant:d,children:p?jsxRuntime.jsx(T7,{size:l,disabled:g,...f,ref:S}):jsxRuntime.jsx(m4,{disabled:g,...f,ref:S})}),i==="after-append"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!!C&&C,V]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[V,!!C&&C]})]})},"Input")),T7=q4.forwardRef(r(function({size:e="small",disabled:t,className:i,rows:C="1",autoResize:s=false,...l},d){let[p,g]=q4.useState(Number(C)),u=q4.useRef(Number(C)),h=q4.useRef(null),f=s1.useTheme(),S=q4.useRef(s5(f.input.sizes[e].lineHeight,f.baseSize)||f.baseSize);return q4.useEffect(()=>{if(h.current&&s&&typeof window<"u"){let b=h.current.getBoundingClientRect().height,M=Math.round(b/S.current);u.current!==M&&(u.current=M,g(M));}},[l.value,s]),jsxRuntime.jsxs("div",{style:{position:"relative",width:"100%"},children:[jsxRuntime.jsx(f4,{disabled:t,$autoResize:s,...l,rows:p,ref:d}),jsxRuntime.jsx(G7,{ref:h,$size:e,style:{minHeight:S.current*Number(C)},children:(l.value||"")+"\u200B"})]})},"Input")),f4=s1.styled.textarea(({$autoResize:o})=>`
|
|
703
703
|
resize: none;
|
|
704
704
|
margin: 0;
|
|
705
705
|
display: block;
|
|
@@ -804,7 +804,7 @@
|
|
|
804
804
|
background: ${o.input[s].disabled.background};
|
|
805
805
|
cursor: not-allowed;
|
|
806
806
|
`}
|
|
807
|
-
`);var e2=r(o=>{q4.useEffect(()=>{if(!o||typeof window>"u")return;let e=document.body,t=document.documentElement,i=window.getComputedStyle(e),C=window.innerWidth-t.clientWidth,s=i.paddingRight,l=e.style.overflow,d=t.style.overflow;return e.style.overflow="hidden",t.style.overflow="hidden",e.style.paddingRight=`${parseInt(s)+C}px`,()=>{e.style.overflow=l,t.style.overflow=d,e.style.paddingRight=s;}},[o]);},"useBodyScrollLock"),x4=r(async o=>{let e=[],t=r(async C=>{if(C.isFile){let s=await new Promise((d,p)=>{C.file(d,p);}),l="/"+s.name;s.folder_path=C.fullPath.slice(0,-l.length),e.push(s);}else if(C.isDirectory){let s=C.createReader(),l=r(async()=>{let d=await new Promise((p,g)=>{s.readEntries(p,g);});d.length!==0&&(await Promise.all(d.map(p=>t(p))),await l());},"readEntries");await l();}},"readEntry"),i=Array.from(o);return await Promise.all(i.map(async C=>{let s=C.webkitGetAsEntry();s&&await t(s);})),e},"getFilesFromDataTransfer");var kp=q4.forwardRef(r(function({error:e,variant:t="outlined",multiple:i=false,accept:C,uploadButtonText:s="Files",uploadFolderButtonText:l="Folder",dragDropPlaceholder:d="Drag and drop files here",infoPlaceholder:p,dragDropText:g="Drop to upload",enableFilePreview:u=true,value:h=[],onChange:f,onError:S,disabled:b,className:M,dragDropClassName:
|
|
807
|
+
`);var e2=r(o=>{q4.useEffect(()=>{if(!o||typeof window>"u")return;let e=document.body,t=document.documentElement,i=window.getComputedStyle(e),C=window.innerWidth-t.clientWidth,s=i.paddingRight,l=e.style.overflow,d=t.style.overflow;return e.style.overflow="hidden",t.style.overflow="hidden",e.style.paddingRight=`${parseInt(s)+C}px`,()=>{e.style.overflow=l,t.style.overflow=d,e.style.paddingRight=s;}},[o]);},"useBodyScrollLock"),x4=r(async o=>{let e=[],t=r(async C=>{if(C.isFile){let s=await new Promise((d,p)=>{C.file(d,p);}),l="/"+s.name;s.folder_path=C.fullPath.slice(0,-l.length),e.push(s);}else if(C.isDirectory){let s=C.createReader(),l=r(async()=>{let d=await new Promise((p,g)=>{s.readEntries(p,g);});d.length!==0&&(await Promise.all(d.map(p=>t(p))),await l());},"readEntries");await l();}},"readEntry"),i=Array.from(o);return await Promise.all(i.map(async C=>{let s=C.webkitGetAsEntry();s&&await t(s);})),e},"getFilesFromDataTransfer");var kp=q4.forwardRef(r(function({error:e,variant:t="outlined",multiple:i=false,accept:C,uploadButtonText:s="Files",uploadFolderButtonText:l="Folder",dragDropPlaceholder:d="Drag and drop files here",infoPlaceholder:p,dragDropText:g="Drop to upload",enableFilePreview:u=true,value:h=[],onChange:f,onError:S,disabled:b,className:M,dragDropClassName:V,hasIcon:y=true,hasButton:W=true,onClick:G,...P},J){let[H,I]=q4.useState(false),[B,V1]=q4.useState(false),l1=q4.useRef(null),d1=q4.useRef(null),Q=r(x=>{if(i){let k=[...h,...x];f?.(k);}else f?.(x.length>0?[x[0]]:[]);},"handleFiles"),d2=r(x=>{x.preventDefault(),b||I(true);},"handleDragOver"),p2=r(x=>{x.preventDefault(),I(false);},"handleDragLeave"),c2=r(async x=>{if(x.preventDefault(),I(false),!(b||B))try{V1(!0);let k=await x4(x.dataTransfer.items);Q(k);}catch(k){console.error("\u041F\u043E\u043C\u0438\u043B\u043A\u0430 \u043F\u0440\u0438 \u0447\u0438\u0442\u0430\u043D\u043D\u0456 \u0444\u0430\u0439\u043B\u0456\u0432:",k);}finally{V1(false);}},"handleDrop"),g2=r(x=>{if(!x.target.files)return;let k=Array.from(x.target.files);x.target.value="",Q(k);},"handleInputChange"),p1=r(()=>{!b&&l1.current&&l1.current.click();},"handleUploadClick"),F=r(()=>{!b&&d1.current&&d1.current.click();},"handleFolderUploadClick"),Z=r(x=>{if(!x.target.files)return;let k=Array.from(x.target.files).map(j=>{let Y=j,a5=j.webkitRelativePath??"",T4="/"+j.name,C5=a5?a5.slice(0,-T4.length):"";return Y.folder_path=C5?"/"+C5:"",Y});x.target.value="",Q(k);},"handleFolderInputChange"),N=r(x=>{if(b)return;let k=h.filter((j,Y)=>Y!==x);f?.(k);},"removeFile"),b2=r(x=>{if(x===0)return "0 Bytes";let k=1024,j=["Bytes","KB","MB","GB"],Y=Math.floor(Math.log(x)/Math.log(k));return parseFloat((x/Math.pow(k,Y)).toFixed(2))+" "+j[Y]},"formatFileSize");return jsxRuntime.jsxs(N7,{className:M,children:[jsxRuntime.jsxs(O7,{$error:!!e,$variant:t,$disabled:!!b,$isDragOver:H,onDragOver:d2,onDragLeave:p2,onDrop:c2,className:V,onClick:G||p1,children:[jsxRuntime.jsx(v4,{ref:l1,type:"file",multiple:i,accept:C,onChange:g2,disabled:b||B,onClick:x=>x.stopPropagation(),...P}),jsxRuntime.jsx(v4,{ref:d1,type:"file",webkitdirectory:"",accept:C,onChange:Z,disabled:b||B,onClick:x=>x.stopPropagation()}),jsxRuntime.jsxs(_7,{children:[y&&(H?jsxRuntime.jsx("div",{className:"mb-3 flex items-center justify-center w-[50px] h-[50px] border border-gray-200 dark:border-neutral-700 rounded-md",children:jsxRuntime.jsx(S2,{width:20,className:"-rotate-90"})}):jsxRuntime.jsx(_,{size:"small",variant:"empty",color:"primary",type:"button",onClick:x=>{x.stopPropagation(),p1();},disabled:b||B,icon:jsxRuntime.jsx(W2,{color:"currentColor",width:64,className:"shrink-0 w-[64px]! h-[47px]!"}),className:"mb-3"})),jsxRuntime.jsx("div",{className:"flex flex-wrap items-center justify-center gap-1.25",children:H?jsxRuntime.jsx(M4,{children:g}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M4,{children:d}),B&&jsxRuntime.jsx("div",{className:"h-4.5 w-4.5 shrink-0 animate-spin rounded-full border-2 border-blue-500 border-s-transparent"})]})}),!!p&&jsxRuntime.jsx(U7,{$variant:t,children:p}),W&&!B&&jsxRuntime.jsxs("div",{className:"flex flex-wrap md:flex-nowrap items-center justify-center gap-2 mt-1",children:[jsxRuntime.jsx(_,{size:"small",variant:"outlined",color:"default",type:"button",icon:jsxRuntime.jsx(G2,{}),onClick:x=>{x.stopPropagation(),p1();},disabled:b,className:"text-[14px]! py-1.5!",children:s}),jsxRuntime.jsx(_,{size:"small",variant:"outlined",color:"default",type:"button",icon:jsxRuntime.jsx(L2,{}),onClick:x=>{x.stopPropagation(),F();},disabled:b,className:"text-[14px]! py-1.5!",children:l})]}),!!e&&jsxRuntime.jsxs(Y7,{$variant:t,children:[jsxRuntime.jsx(r1,{}),jsxRuntime.jsx(e4,{ml:5,color:"error",variant:"body",children:e})]})]})]}),u&&h.length>0&&jsxRuntime.jsx(X7,{children:h.map((x,k)=>jsxRuntime.jsxs(K7,{children:[jsxRuntime.jsxs(q7,{children:[jsxRuntime.jsx(J7,{children:x.name}),jsxRuntime.jsx(Q7,{children:b2(x.size)})]}),!b&&jsxRuntime.jsx(j7,{type:"button",onClick:()=>N(k),children:"\xD7"})]},`${x.name}-${k}`))})]})},"FileField")),N7=s1.styled.div`
|
|
808
808
|
width: 100%;
|
|
809
809
|
`,v4=s1.styled.input`
|
|
810
810
|
display: none;
|
|
@@ -943,7 +943,7 @@
|
|
|
943
943
|
background-color: ${o.box.background};
|
|
944
944
|
border-width: ${e?o.box.border.width:0};
|
|
945
945
|
border-style: ${o.box.border.style};
|
|
946
|
-
border-color: ${
|
|
946
|
+
border-color: ${L1(o,t)||o.box.border.color};
|
|
947
947
|
`),{ignoreStyles:["padding-inline","padding-block"]});var pc=w(({direction:o="horizontal",...e})=>jsxRuntime.jsx(b8,{...e,$direction:o})),b8=v(s1.styled.div(({theme:o,$direction:e})=>`
|
|
948
948
|
width: ${e==="horizontal"?"100%":o.line.size};
|
|
949
949
|
height: ${e==="vertical"?"100%":o.line.size};
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
border-style: solid;
|
|
1006
1006
|
border-color: ${d};
|
|
1007
1007
|
border-radius: ${C?c(C,o.baseSize):o.tag[e].borderRadius};
|
|
1008
|
-
background-color: ${e==="outlined"?o.colors.background:
|
|
1008
|
+
background-color: ${e==="outlined"?o.colors.background:H1(d,.05)};
|
|
1009
1009
|
color: ${d};
|
|
1010
1010
|
|
|
1011
1011
|
${V4} {
|
|
@@ -1016,7 +1016,7 @@
|
|
|
1016
1016
|
cursor: pointer;
|
|
1017
1017
|
transition: color 0.2s ease;
|
|
1018
1018
|
&:hover {
|
|
1019
|
-
color: ${
|
|
1019
|
+
color: ${H1(d,.7)};
|
|
1020
1020
|
}
|
|
1021
1021
|
`:""}
|
|
1022
1022
|
}
|
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
${m(o,"padding-right",l)};
|
|
1026
1026
|
|
|
1027
1027
|
&:hover {
|
|
1028
|
-
color: ${
|
|
1028
|
+
color: ${H1(d,.7)};
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
`}),S8=v(x8,{ignoreStyles:["padding-block","padding-inline"]});var Tc=w(({title:o,note:e,...t})=>jsxRuntime.jsxs(V8,{...t,children:[jsxRuntime.jsx(v8,{children:jsxRuntime.jsx(x2,{})}),jsxRuntime.jsxs("div",{children:[!!o&&jsxRuntime.jsx(M8,{children:o}),!!e&&jsxRuntime.jsx(y8,{children:e})]})]})),v8=s1__default.default.div(({theme:{alert:o}})=>`
|
|
@@ -1107,7 +1107,7 @@
|
|
|
1107
1107
|
|
|
1108
1108
|
gap: ${o.label.sizes[i].gap};
|
|
1109
1109
|
${m(o,"margin-bottom",s)};
|
|
1110
|
-
`),{ignoreStyles:["margin-bottom"]});var qc=w(({label:o,className:e,disabled:t,...i})=>{let C=
|
|
1110
|
+
`),{ignoreStyles:["margin-bottom"]});var qc=w(({label:o,className:e,disabled:t,...i})=>{let C=P1(i);return jsxRuntime.jsxs($8,{className:e,$disabled:t,...C,children:[jsxRuntime.jsx(i2,{type:"checkbox",disabled:t,...i}),jsxRuntime.jsx(n2,{}),!!o&&jsxRuntime.jsx(Z8,{children:o})]})}),n2=s1__default.default.div(({theme:o})=>`
|
|
1111
1111
|
width: ${c(15)};
|
|
1112
1112
|
height: ${c(15)};
|
|
1113
1113
|
border-radius: ${c(2)};
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
background-color: ${o.leanerProgress.progressColor};
|
|
1164
1164
|
border-radius: ${c(2,o.baseSize)};
|
|
1165
1165
|
}
|
|
1166
|
-
`));var cg=w(({className:o,variant:e="default",size:t="medium",children:i,...C})=>{let s=
|
|
1166
|
+
`));var cg=w(({className:o,variant:e="default",size:t="medium",children:i,...C})=>{let s=P1(C);return jsxRuntime.jsxs(D8,{className:o,...s,children:[jsxRuntime.jsx(A8,{type:"checkbox",...C,$variant:e,$size:t}),jsxRuntime.jsx(q,{$variant:e,$size:t}),i]})}),z8=r((o,e)=>{switch(o){case "small":return `
|
|
1167
1167
|
width: ${c(31,e.baseSize)};
|
|
1168
1168
|
height: ${c(16,e.baseSize)};
|
|
1169
1169
|
border-radius: ${c(15,e.baseSize)};
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
box-shadow: ${o.modal.shadow};
|
|
1381
1381
|
border-radius: ${o.modal.borderRadius};
|
|
1382
1382
|
}
|
|
1383
|
-
`);var C9=r(({variant:o="primary",children:e})=>jsxRuntime.jsx("button",{className:`px-4 py-2 rounded-md font-medium text-sm transition-colors duration-200 ${{primary:"bg-blue-500 hover:bg-blue-600 text-white",secondary:"bg-gray-500 hover:bg-gray-600 text-white",success:"bg-green-500 hover:bg-green-600 text-white",danger:"bg-red-500 hover:bg-red-600 text-white"}[o]}`,children:e}),"TailwindExample");var Zb=r(({multiple:o,value:e,disableImages:t,onChangeImages:i,images:C=[],errorText:s,error:l,onError:d,button:p,prepend:g,fieldClassName:u,onUploadClick:h,shouldOpenUpload:f=false,append:S,className:b,onDropImages:M,header:
|
|
1383
|
+
`);var C9=r(({variant:o="primary",children:e})=>jsxRuntime.jsx("button",{className:`px-4 py-2 rounded-md font-medium text-sm transition-colors duration-200 ${{primary:"bg-blue-500 hover:bg-blue-600 text-white",secondary:"bg-gray-500 hover:bg-gray-600 text-white",success:"bg-green-500 hover:bg-green-600 text-white",danger:"bg-red-500 hover:bg-red-600 text-white"}[o]}`,children:e}),"TailwindExample");var Zb=r(({multiple:o,value:e,disableImages:t,onChangeImages:i,images:C=[],errorText:s,error:l,onError:d,button:p,prepend:g,fieldClassName:u,onUploadClick:h,shouldOpenUpload:f=false,append:S,className:b,onDropImages:M,header:V,uploadButtonTooltip:y,...W})=>{let [G,P]=q4.useState(false),J=q4.useRef(null);q4.useRef(null);let I=r(F=>{if(!F)return;let Z=Array.from(F).filter(N=>N.type.startsWith("image/"));if(Z.length===0){d?.("not_image");return}if(M){M(Z);return}if(o){let N=[...C,...Z];i?.(N);}else i?.(Z.length>0?[Z[0]]:[]);},"handleFiles"),B=r(F=>{F.preventDefault(),e||P(true);},"handleDragOver"),V1=r(F=>{F.preventDefault(),P(false);},"handleDragLeave"),l1=r(F=>{if(F.preventDefault(),P(false),e||t)return;let Z=F.dataTransfer.files;I(Z);},"handleDrop"),d1=r(F=>{I(F.target.files);},"handleInputChange"),Q=r(()=>{!e&&J.current&&J.current.click();},"handleUploadClick"),d2=r(F=>{let Z=C.filter((N,b2)=>b2!==F);i?.(Z);},"removeFile"),p2="rounded-lg p-2.5 border bg-white dark:bg-neutral-800",c2="border-gray-200 dark:border-neutral-700",g2="border-blue-300",p1="border-red-500";return q4.useEffect(()=>{f&&Q();},[f]),jsxRuntime.jsxs("div",{className:`${p2} ${l?p1:G&&!t?g2:c2} ${u||""}`,onDragOver:B,onDragLeave:V1,onDrop:l1,children:[!!V&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 px-2.5",children:V}),C.length?jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 p-2.5",children:C.map((F,Z)=>{let N=URL.createObjectURL(F);return jsxRuntime.jsxs("div",{className:"relative w-[82px] h-[76px] pt-1.5 pr-3",children:[jsxRuntime.jsx("img",{src:N,alt:`preview-${Z}`,className:"w-full h-full object-cover"}),jsxRuntime.jsx("button",{type:"button",onClick:()=>d2(Z),className:"absolute top-0 right-0 flex h-5.5 w-5.5 items-center justify-center rounded-full bg-white dark:bg-neutral-800 text-gray-500 dark:text-gray-400 border border-gray-300 dark:border-neutral-600 hover:text-blue-200 group",children:jsxRuntime.jsx(x1,{className:"w-2.5 h-2.5 block"})})]},`${F.name}-${Z}`)})}):jsxRuntime.jsx(h4,{multiline:true,size:"medium",rows:"2",variant:"empty",className:`[&_textarea]:pb-1! ${b||""}`,value:e,autoResize:true,...W}),jsxRuntime.jsx("input",{className:"hidden",type:"file",accept:"image/*",ref:J,onChange:d1,disabled:!!e}),jsxRuntime.jsxs("div",{className:"flex justify-between items-center gap-3 p-2.5",children:[jsxRuntime.jsxs("div",{className:"flex justify-start items-center gap-3 flex-wrap w-full",children:[!!g&&g,jsxRuntime.jsx(j1,{content:y,positions:["top","bottom"],children:jsxRuntime.jsx(_,{className:"disabled:cursor-not-allowed p-2!",type:"button",onClick:h||Q,disabled:!!e||t,"aria-label":"upload file",variant:"outlined",color:"default",icon:jsxRuntime.jsx(N2,{className:`w-3.5! h-3.5! ${t?"text-gray-300 dark:text-neutral-600":""} fill-current`})})}),!!S&&S]}),!!p&&p]}),!!s&&jsxRuntime.jsx("p",{className:"pl-2.5 mt-1 text-sm text-red-500",children:s})]})},"ChatField");var zb=r(()=>jsxRuntime.jsx("div",{className:"w-full bg-gray-200 dark:bg-neutral-700 rounded-full h-1 mt-5.5 overflow-hidden",children:jsxRuntime.jsx(c9,{className:"h-1.5 rounded-full transition-all duration-300 bg-blue-500",style:{width:"30%"}})}),"ProgressLoader"),c9=s1.styled.div`
|
|
1384
1384
|
@keyframes move {
|
|
1385
1385
|
0% {
|
|
1386
1386
|
transform: translateX(-100%);
|
|
@@ -1390,5 +1390,5 @@
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
animation: move 1.5s linear infinite;
|
|
1393
|
-
`;exports.$=Y6;exports.$a=ks;exports.A=x2;exports.Aa=Z3;exports.Ab=rg;exports.B=a6;exports.Ba=E3;exports.Bb=cg;exports.C=s6;exports.Ca=B3;exports.Cb=yg;exports.D=S2;exports.Da=z3;exports.Db=Vg;exports.E=d6;exports.Ea=R3;exports.Eb=Lg;exports.F=p6;exports.Fa=D3;exports.Fb=Ig;exports.G=w2;exports.Ga=N3;exports.Gb=$4;exports.H=v2;exports.Ha=_3;exports.Hb=rb;exports.I=u6;exports.Ia=U3;exports.Ib=nb;exports.J=f6;exports.Ja=Y3;exports.Jb=ib;exports.K=x6;exports.Ka=K3;exports.Kb=ab;exports.L=w6;exports.La=q3;exports.Lb=C9;exports.M=v6;exports.Ma=Q3;exports.Mb=Zb;exports.N=y6;exports.Na=o0;exports.Nb=zb;exports.O=L6;exports.Oa=t0;exports.P=F6;exports.Pa=r0;exports.Q=P6;exports.Qa=n0;exports.R=$6;exports.Ra=a0;exports.S=E6;exports.Sa=W2;exports.T=L2;exports.Ta=N2;exports.U=B6;exports.Ua=s0;exports.V=T6;exports.Va=i1;exports.W=G6;exports.Wa=OC;exports.X=A6;exports.Xa=QC;exports.Y=D6;exports.Ya=as;exports.Z=N6;exports.Za=gs;exports._=_6;exports._a=e4;exports.a=r;exports.aa=K6;exports.ab=Bs;exports.b=
|
|
1394
|
-
//# sourceMappingURL=chunk-
|
|
1393
|
+
`;exports.$=Y6;exports.$a=ks;exports.A=x2;exports.Aa=Z3;exports.Ab=rg;exports.B=a6;exports.Ba=E3;exports.Bb=cg;exports.C=s6;exports.Ca=B3;exports.Cb=yg;exports.D=S2;exports.Da=z3;exports.Db=Vg;exports.E=d6;exports.Ea=R3;exports.Eb=Lg;exports.F=p6;exports.Fa=D3;exports.Fb=Ig;exports.G=w2;exports.Ga=N3;exports.Gb=$4;exports.H=v2;exports.Ha=_3;exports.Hb=rb;exports.I=u6;exports.Ia=U3;exports.Ib=nb;exports.J=f6;exports.Ja=Y3;exports.Jb=ib;exports.K=x6;exports.Ka=K3;exports.Kb=ab;exports.L=w6;exports.La=q3;exports.Lb=C9;exports.M=v6;exports.Ma=Q3;exports.Mb=Zb;exports.N=y6;exports.Na=o0;exports.Nb=zb;exports.O=L6;exports.Oa=t0;exports.P=F6;exports.Pa=r0;exports.Q=P6;exports.Qa=n0;exports.R=$6;exports.Ra=a0;exports.S=E6;exports.Sa=W2;exports.T=L2;exports.Ta=N2;exports.U=B6;exports.Ua=s0;exports.V=T6;exports.Va=i1;exports.W=G6;exports.Wa=OC;exports.X=A6;exports.Xa=QC;exports.Y=D6;exports.Ya=as;exports.Z=N6;exports.Za=gs;exports._=_6;exports._a=e4;exports.a=r;exports.aa=K6;exports.ab=Bs;exports.b=L1;exports.ba=q6;exports.bb=Ds;exports.c=c;exports.ca=Q6;exports.cb=Xs;exports.d=s5;exports.da=o3;exports.db=js;exports.e=T;exports.ea=e3;exports.eb=il;exports.f=c1;exports.fa=r3;exports.fb=Ml;exports.g=R;exports.ga=i3;exports.gb=$l;exports.h=O;exports.ha=C3;exports.hb=l4;exports.i=b9;exports.ia=l3;exports.ib=ql;exports.j=u9;exports.ja=E2;exports.jb=d4;exports.k=h9;exports.ka=p3;exports.kb=gd;exports.l=H1;exports.la=I2;exports.lb=$d;exports.m=l5;exports.ma=B2;exports.mb=j1;exports.n=d5;exports.na=c3;exports.nb=$7;exports.o=p5;exports.oa=b3;exports.ob=h4;exports.p=c5;exports.pa=r1;exports.pb=x4;exports.q=u5;exports.qa=h3;exports.qb=kp;exports.r=h5;exports.ra=x1;exports.rb=r8;exports.s=q9;exports.sa=m3;exports.sb=C8;exports.t=P1;exports.ta=S3;exports.tb=rc;exports.u=m;exports.ua=v3;exports.ub=pc;exports.v=o6;exports.va=M3;exports.vb=hc;exports.w=w;exports.wa=V3;exports.wb=Hc;exports.x=v;exports.xa=H3;exports.xb=Tc;exports.y=co;exports.ya=k3;exports.yb=Oc;exports.z=_;exports.za=G2;exports.zb=qc;//# sourceMappingURL=chunk-2IGSHLHQ.js.map
|
|
1394
|
+
//# sourceMappingURL=chunk-2IGSHLHQ.js.map
|