@cyber-harbour/ui 2.0.36 → 2.0.38

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.
@@ -1,3 +1,3 @@
1
- import {a,z,Pa,mb,ma}from'./chunk-ODA2IAN2.mjs';import {useState,useRef,useEffect,useMemo}from'react';import {pdfjs,Document,Page}from'react-pdf';import'react-pdf/dist/Page/AnnotationLayer.css';import'react-pdf/dist/Page/TextLayer.css';import {jsx,jsxs}from'react/jsx-runtime';var l="/pdfjs";typeof window<"u"&&typeof document<"u"&&(pdfjs.GlobalWorkerOptions.workerSrc=`${l}/pdf.worker.min.js`);var G=a(({url:b})=>{let[i,y]=useState(0),[d,m]=useState(1),[P,f]=useState(true),[p,k]=useState(null),[N,L]=useState(400),[c,v]=useState(1),u=useRef(null),D=a(()=>{v(t=>Math.min(t+.25,4));},"handleZoomIn"),j=a(()=>{v(t=>Math.max(t-.25,.25));},"handleZoomOut");useEffect(()=>{let t=a(()=>{u.current&&L(u.current.offsetWidth-70);},"updateSize");return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let z$1=useMemo(()=>({cMapPacked:true,cMapUrl:`${l}/cmaps/`,standardFontDataUrl:`${l}/standard_fonts/`,wasmUrl:`${l}/wasm/`,iccUrl:`${l}/icc/`}),[]);function E({numPages:t}){y(t),f(false);}a(E,"onDocumentLoadSuccess");function C(t){k(`Failed to load PDF: ${t.message}`),f(false);}a(C,"onDocumentLoadError");function g(t){m(a=>a+t);}a(g,"changePage");function M(){g(-1);}a(M,"previousPage");function S(){g(1);}return a(S,"nextPage"),p?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:p})})}):jsxs("div",{className:"h-full w-full flex flex-col overflow-hidden pb-5",children:[P&&jsx("div",{className:"flex items-center justify-center h-full",children:jsx("div",{className:"text-gray-500",children:"Loading PDF..."})}),i>0&&jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3 p-4",children:[jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsx(z,{variant:"outlined","aria-label":"previous page",color:"secondary",size:"small",type:"button",disabled:d<=1,onClick:M,p:5,icon:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"m15 18-6-6 6-6"})})}),jsxs("span",{className:"flex items-center gap-2",children:[jsx("input",{type:"number",min:1,max:i,value:d,onChange:t=>{let a=parseInt(t.target.value,10);a>=1&&a<=i&&m(a);},className:"w-15 px-1 py-1 border border-gray-400! rounded text-center"}),"/ ",i]}),jsx(z,{variant:"outlined","aria-label":"next page",color:"secondary",size:"small",type:"button",disabled:d>=i,onClick:S,p:7,icon:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"m9 18 6-6-6-6"})})})]}),jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsx(Pa,{style:{width:20,height:20}}),onClick:j,disabled:c<=.25,p:7}),jsxs(mb,{py:5,px:8,children:[c*100,"%"]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsx(ma,{style:{width:14,height:14}}),onClick:D,disabled:c>=4,p:8})]})]}),jsx("div",{ref:u,className:"flex-1 flex justify-center overflow-auto",children:jsx(Document,{options:z$1,file:b,onLoadSuccess:E,onLoadError:C,loading:"",children:jsx(Page,{pageNumber:d,renderTextLayer:true,renderAnnotationLayer:true,width:N*c,className:"h-auto w-full transition-[width] duration-[600ms] ease-in-out"})})})]})},"PdfDriver");
2
- export{G as PdfDriver};//# sourceMappingURL=PdfDriver-4LXKJ6Q7.mjs.map
3
- //# sourceMappingURL=PdfDriver-4LXKJ6Q7.mjs.map
1
+ import {a,z,Pa,mb,ma}from'./chunk-HVYKSMXW.mjs';import {useState,useRef,useEffect,useMemo}from'react';import {pdfjs,Document,Page}from'react-pdf';import'react-pdf/dist/Page/AnnotationLayer.css';import'react-pdf/dist/Page/TextLayer.css';import {jsx,jsxs}from'react/jsx-runtime';var l="/pdfjs";typeof window<"u"&&typeof document<"u"&&(pdfjs.GlobalWorkerOptions.workerSrc=`${l}/pdf.worker.min.js`);var G=a(({url:b})=>{let[i,y]=useState(0),[d,m]=useState(1),[P,f]=useState(true),[p,k]=useState(null),[N,L]=useState(400),[c,v]=useState(1),u=useRef(null),D=a(()=>{v(t=>Math.min(t+.25,4));},"handleZoomIn"),j=a(()=>{v(t=>Math.max(t-.25,.25));},"handleZoomOut");useEffect(()=>{let t=a(()=>{u.current&&L(u.current.offsetWidth-70);},"updateSize");return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let z$1=useMemo(()=>({cMapPacked:true,cMapUrl:`${l}/cmaps/`,standardFontDataUrl:`${l}/standard_fonts/`,wasmUrl:`${l}/wasm/`,iccUrl:`${l}/icc/`}),[]);function E({numPages:t}){y(t),f(false);}a(E,"onDocumentLoadSuccess");function C(t){k(`Failed to load PDF: ${t.message}`),f(false);}a(C,"onDocumentLoadError");function g(t){m(a=>a+t);}a(g,"changePage");function M(){g(-1);}a(M,"previousPage");function S(){g(1);}return a(S,"nextPage"),p?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:p})})}):jsxs("div",{className:"h-full w-full flex flex-col overflow-hidden pb-5",children:[P&&jsx("div",{className:"flex items-center justify-center h-full",children:jsx("div",{className:"text-gray-500",children:"Loading PDF..."})}),i>0&&jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3 p-4",children:[jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsx(z,{variant:"outlined","aria-label":"previous page",color:"secondary",size:"small",type:"button",disabled:d<=1,onClick:M,p:5,icon:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"m15 18-6-6 6-6"})})}),jsxs("span",{className:"flex items-center gap-2",children:[jsx("input",{type:"number",min:1,max:i,value:d,onChange:t=>{let a=parseInt(t.target.value,10);a>=1&&a<=i&&m(a);},className:"w-15 px-1 py-1 border border-gray-400! rounded text-center"}),"/ ",i]}),jsx(z,{variant:"outlined","aria-label":"next page",color:"secondary",size:"small",type:"button",disabled:d>=i,onClick:S,p:7,icon:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"m9 18 6-6-6-6"})})})]}),jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsx(Pa,{style:{width:20,height:20}}),onClick:j,disabled:c<=.25,p:7}),jsxs(mb,{py:5,px:8,children:[c*100,"%"]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsx(ma,{style:{width:14,height:14}}),onClick:D,disabled:c>=4,p:8})]})]}),jsx("div",{ref:u,className:"flex-1 flex justify-center overflow-auto",children:jsx(Document,{options:z$1,file:b,onLoadSuccess:E,onLoadError:C,loading:"",children:jsx(Page,{pageNumber:d,renderTextLayer:true,renderAnnotationLayer:true,width:N*c,className:"h-auto w-full transition-[width] duration-[600ms] ease-in-out"})})})]})},"PdfDriver");
2
+ export{G as PdfDriver};//# sourceMappingURL=PdfDriver-6U4HNAOY.mjs.map
3
+ //# sourceMappingURL=PdfDriver-6U4HNAOY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/FileViewer/drivers/PdfDriver/PdfDriver.tsx"],"names":["BASE_DIR","pdfjs","PdfDriver","__name","url","numPages","setNumPages","useState","pageNumber","setPageNumber","loading","setLoading","error","setError","width","setWidth","scale","setScale","containerRef","useRef","handleZoomIn","prev","handleZoomOut","useEffect","updateSize","options","useMemo","onDocumentLoadSuccess","onDocumentLoadError","changePage","offset","prevPageNumber","previousPage","nextPage","jsx","jsxs","Button","e","page","MinusIcon","Box","PlusIcon","Document","Page"],"mappings":"qRAMA,IAAMA,CAAAA,CAAW,QAGb,CAAA,OAAO,OAAW,GAAe,EAAA,OAAO,QAAa,CAAA,GAAA,GACvDC,KAAM,CAAA,mBAAA,CAAoB,SAAY,CAAA,CAAA,EAAGD,CAAQ,CAAA,kBAAA,CAAA,CAAA,CAOtCE,IAAAA,CAAAA,CAAsCC,CAAA,CAAA,CAAC,CAAE,GAAA,CAAAC,CAAI,CAAM,GAAA,CAC9D,GAAM,CAACC,CAAUC,CAAAA,CAAW,CAAIC,CAAAA,QAAAA,CAAiB,CAAC,CAC5C,CAAA,CAACC,CAAYC,CAAAA,CAAa,CAAIF,CAAAA,QAAAA,CAAiB,CAAC,CAAA,CAChD,CAACG,CAASC,CAAAA,CAAU,CAAIJ,CAAAA,QAAAA,CAAkB,IAAI,CAAA,CAC9C,CAACK,CAAAA,CAAOC,CAAQ,CAAA,CAAIN,QAAwB,CAAA,IAAI,CAChD,CAAA,CAACO,CAAOC,CAAAA,CAAQ,EAAIR,QAAiB,CAAA,GAAG,CACxC,CAAA,CAACS,CAAOC,CAAAA,CAAQ,CAAIV,CAAAA,QAAAA,CAAS,CAAC,CAC9BW,CAAAA,CAAAA,CAAeC,MAAuB,CAAA,IAAI,CAC1CC,CAAAA,CAAAA,CAAejB,CAAA,CAAA,IAAM,CACzBc,CAAUI,CAAAA,CAAAA,EAAS,IAAK,CAAA,GAAA,CAAIA,CAAO,CAAA,GAAA,CAAM,CAAC,CAAC,EAC7C,CAAA,CAFqB,cAIfC,CAAAA,CAAAA,CAAAA,CAAgBnB,CAAA,CAAA,IAAM,CAC1Bc,CAAAA,CAAUI,GAAS,IAAK,CAAA,GAA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A,CAAYnC,CACZ,CAAA,eAAA,CAAiB,IACjB,CAAA,qBAAA,CAAuB,KACvB,KAAOM,CAAAA,CAAAA,CAAQE,CACf,CAAA,SAAA,CAAU,+DACZ,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CACF,CAEJ,CAhMmD,CAAA,WAAA","file":"PdfDriver-4LXKJ6Q7.mjs","sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\nimport { Box, Button, MinusIcon, PlusIcon } from '../../../Core';\n\nconst BASE_DIR = '/pdfjs';\n\n// Set up the worker - self-hosted configuration (client-side only)\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n pdfjs.GlobalWorkerOptions.workerSrc = `${BASE_DIR}/pdf.worker.min.js`;\n}\n\ninterface PdfDriverProps {\n url: string;\n}\n\nexport const PdfDriver: React.FC<PdfDriverProps> = ({ url }) => {\n const [numPages, setNumPages] = useState<number>(0);\n const [pageNumber, setPageNumber] = useState<number>(1);\n const [loading, setLoading] = useState<boolean>(true);\n const [error, setError] = useState<string | null>(null);\n const [width, setWidth] = useState<number>(400);\n const [scale, setScale] = useState(1);\n const containerRef = useRef<HTMLDivElement>(null);\n const handleZoomIn = () => {\n setScale((prev) => Math.min(prev + 0.25, 4));\n };\n\n const handleZoomOut = () => {\n setScale((prev) => Math.max(prev - 0.25, 0.25));\n };\n\n useEffect(() => {\n const updateSize = () => {\n if (containerRef.current) {\n setWidth(containerRef.current.offsetWidth - 70);\n }\n };\n updateSize();\n window.addEventListener('resize', updateSize);\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n\n const options = useMemo(\n () => ({\n cMapPacked: true,\n cMapUrl: `${BASE_DIR}/cmaps/`,\n standardFontDataUrl: `${BASE_DIR}/standard_fonts/`,\n wasmUrl: `${BASE_DIR}/wasm/`,\n iccUrl: `${BASE_DIR}/icc/`,\n }),\n []\n );\n\n //TODO: add fix 100px problem;\n\n function onDocumentLoadSuccess({ numPages }: { numPages: number }): void {\n setNumPages(numPages);\n setLoading(false);\n }\n\n function onDocumentLoadError(error: Error): void {\n setError(`Failed to load PDF: ${error.message}`);\n setLoading(false);\n }\n\n function changePage(offset: number): void {\n setPageNumber((prevPageNumber) => prevPageNumber + offset);\n }\n\n function previousPage(): void {\n changePage(-1);\n }\n\n function nextPage(): void {\n changePage(1);\n }\n\n if (error) {\n return (\n <div className=\"flex items-center justify-center h-full w-full\">\n <div className=\"text-red-500 text-center\">\n <p>{error}</p>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"h-full w-full flex flex-col overflow-hidden pb-5\">\n {loading && (\n <div className=\"flex items-center justify-center h-full\">\n <div className=\"text-gray-500\">Loading PDF...</div>\n </div>\n )}\n {numPages > 0 && (\n <div className=\"flex items-center justify-between flex-wrap gap-3 p-4\">\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"previous page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber <= 1}\n onClick={previousPage}\n p={5}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n }\n />\n\n <span className=\"flex items-center gap-2\">\n <input\n type=\"number\"\n min={1}\n max={numPages}\n value={pageNumber}\n onChange={(e) => {\n const page = parseInt(e.target.value, 10);\n if (page >= 1 && page <= numPages) {\n setPageNumber(page);\n }\n }}\n className=\"w-15 px-1 py-1 border border-gray-400! rounded text-center\"\n />\n / {numPages}\n </span>\n <Button\n variant=\"outlined\"\n aria-label=\"next page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber >= numPages}\n onClick={nextPage}\n p={7}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n }\n />\n </div>\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-out\"\n color=\"secondary\"\n size=\"small\"\n icon={<MinusIcon style={{ width: 20, height: 20 }} />}\n onClick={handleZoomOut}\n disabled={scale <= 0.25}\n p={7}\n />\n <Box py={5} px={8}>\n {scale * 100}%\n </Box>\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-in\"\n size=\"small\"\n color=\"secondary\"\n icon={<PlusIcon style={{ width: 14, height: 14 }} />}\n onClick={handleZoomIn}\n disabled={scale >= 4}\n p={8}\n />\n </div>\n </div>\n )}\n <div ref={containerRef} className=\"flex-1 flex justify-center overflow-auto\">\n <Document\n options={options}\n file={url}\n onLoadSuccess={onDocumentLoadSuccess}\n onLoadError={onDocumentLoadError}\n loading=\"\"\n >\n <Page\n pageNumber={pageNumber}\n renderTextLayer={true}\n renderAnnotationLayer={true}\n width={width * scale}\n className=\"h-auto w-full transition-[width] duration-[600ms] ease-in-out\"\n />\n </Document>\n </div>\n </div>\n );\n};\n"]}
1
+ {"version":3,"sources":["../src/FileViewer/drivers/PdfDriver/PdfDriver.tsx"],"names":["BASE_DIR","pdfjs","PdfDriver","__name","url","numPages","setNumPages","useState","pageNumber","setPageNumber","loading","setLoading","error","setError","width","setWidth","scale","setScale","containerRef","useRef","handleZoomIn","prev","handleZoomOut","useEffect","updateSize","options","useMemo","onDocumentLoadSuccess","onDocumentLoadError","changePage","offset","prevPageNumber","previousPage","nextPage","jsx","jsxs","Button","e","page","MinusIcon","Box","PlusIcon","Document","Page"],"mappings":"qRAMA,IAAMA,CAAAA,CAAW,QAGb,CAAA,OAAO,OAAW,GAAe,EAAA,OAAO,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AAI,MAAQ,CAAA,EAAG,CAAG,CAAA,CAAA,CACnD,OAASjB,CAAAA,CAAAA,CACT,SAAUN,CAAS,EAAA,GAAA,CACnB,CAAG,CAAA,CAAA,CACL,CACAmB,CAAAA,IAAAA,CAACK,EAAA,CAAA,CAAI,GAAI,CAAG,CAAA,EAAA,CAAI,CACb,CAAA,QAAA,CAAA,CAAAxB,CAAQ,CAAA,GAAA,CAAI,GACf,CAAA,CAAA,CAAA,CACAkB,IAACE,CAAA,CAAA,CACC,OAAQ,CAAA,UAAA,CACR,YAAW,CAAA,SAAA,CACX,IAAK,CAAA,OAAA,CACL,KAAM,CAAA,WAAA,CACN,IAAMF,CAAAA,GAAAA,CAACO,EAAA,CAAA,CAAS,KAAO,CAAA,CAAE,MAAO,EAAI,CAAA,MAAA,CAAQ,EAAG,CAAA,CAAG,CAClD,CAAA,OAAA,CAASrB,CACT,CAAA,QAAA,CAAUJ,GAAS,CACnB,CAAA,CAAA,CAAG,CACL,CAAA,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CAEFkB,GAAC,CAAA,KAAA,CAAA,CAAI,IAAKhB,CAAc,CAAA,SAAA,CAAU,0CAChC,CAAA,QAAA,CAAAgB,GAACQ,CAAAA,QAAAA,CAAA,CACC,OAAA,CAASjB,IACT,IAAMrB,CAAAA,CAAAA,CACN,aAAeuB,CAAAA,CAAAA,CACf,WAAaC,CAAAA,CAAAA,CACb,OAAQ,CAAA,EAAA,CAER,SAAAM,GAACS,CAAAA,IAAAA,CAAA,CACC,UAAA,CAAYnC,CACZ,CAAA,eAAA,CAAiB,IACjB,CAAA,qBAAA,CAAuB,KACvB,KAAOM,CAAAA,CAAAA,CAAQE,CACf,CAAA,SAAA,CAAU,+DACZ,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CACF,CAEJ,CAhMmD,CAAA,WAAA","file":"PdfDriver-6U4HNAOY.mjs","sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\nimport { Box, Button, MinusIcon, PlusIcon } from '../../../Core';\n\nconst BASE_DIR = '/pdfjs';\n\n// Set up the worker - self-hosted configuration (client-side only)\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n pdfjs.GlobalWorkerOptions.workerSrc = `${BASE_DIR}/pdf.worker.min.js`;\n}\n\ninterface PdfDriverProps {\n url: string;\n}\n\nexport const PdfDriver: React.FC<PdfDriverProps> = ({ url }) => {\n const [numPages, setNumPages] = useState<number>(0);\n const [pageNumber, setPageNumber] = useState<number>(1);\n const [loading, setLoading] = useState<boolean>(true);\n const [error, setError] = useState<string | null>(null);\n const [width, setWidth] = useState<number>(400);\n const [scale, setScale] = useState(1);\n const containerRef = useRef<HTMLDivElement>(null);\n const handleZoomIn = () => {\n setScale((prev) => Math.min(prev + 0.25, 4));\n };\n\n const handleZoomOut = () => {\n setScale((prev) => Math.max(prev - 0.25, 0.25));\n };\n\n useEffect(() => {\n const updateSize = () => {\n if (containerRef.current) {\n setWidth(containerRef.current.offsetWidth - 70);\n }\n };\n updateSize();\n window.addEventListener('resize', updateSize);\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n\n const options = useMemo(\n () => ({\n cMapPacked: true,\n cMapUrl: `${BASE_DIR}/cmaps/`,\n standardFontDataUrl: `${BASE_DIR}/standard_fonts/`,\n wasmUrl: `${BASE_DIR}/wasm/`,\n iccUrl: `${BASE_DIR}/icc/`,\n }),\n []\n );\n\n //TODO: add fix 100px problem;\n\n function onDocumentLoadSuccess({ numPages }: { numPages: number }): void {\n setNumPages(numPages);\n setLoading(false);\n }\n\n function onDocumentLoadError(error: Error): void {\n setError(`Failed to load PDF: ${error.message}`);\n setLoading(false);\n }\n\n function changePage(offset: number): void {\n setPageNumber((prevPageNumber) => prevPageNumber + offset);\n }\n\n function previousPage(): void {\n changePage(-1);\n }\n\n function nextPage(): void {\n changePage(1);\n }\n\n if (error) {\n return (\n <div className=\"flex items-center justify-center h-full w-full\">\n <div className=\"text-red-500 text-center\">\n <p>{error}</p>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"h-full w-full flex flex-col overflow-hidden pb-5\">\n {loading && (\n <div className=\"flex items-center justify-center h-full\">\n <div className=\"text-gray-500\">Loading PDF...</div>\n </div>\n )}\n {numPages > 0 && (\n <div className=\"flex items-center justify-between flex-wrap gap-3 p-4\">\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"previous page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber <= 1}\n onClick={previousPage}\n p={5}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n }\n />\n\n <span className=\"flex items-center gap-2\">\n <input\n type=\"number\"\n min={1}\n max={numPages}\n value={pageNumber}\n onChange={(e) => {\n const page = parseInt(e.target.value, 10);\n if (page >= 1 && page <= numPages) {\n setPageNumber(page);\n }\n }}\n className=\"w-15 px-1 py-1 border border-gray-400! rounded text-center\"\n />\n / {numPages}\n </span>\n <Button\n variant=\"outlined\"\n aria-label=\"next page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber >= numPages}\n onClick={nextPage}\n p={7}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n }\n />\n </div>\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-out\"\n color=\"secondary\"\n size=\"small\"\n icon={<MinusIcon style={{ width: 20, height: 20 }} />}\n onClick={handleZoomOut}\n disabled={scale <= 0.25}\n p={7}\n />\n <Box py={5} px={8}>\n {scale * 100}%\n </Box>\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-in\"\n size=\"small\"\n color=\"secondary\"\n icon={<PlusIcon style={{ width: 14, height: 14 }} />}\n onClick={handleZoomIn}\n disabled={scale >= 4}\n p={8}\n />\n </div>\n </div>\n )}\n <div ref={containerRef} className=\"flex-1 flex justify-center overflow-auto\">\n <Document\n options={options}\n file={url}\n onLoadSuccess={onDocumentLoadSuccess}\n onLoadError={onDocumentLoadError}\n loading=\"\"\n >\n <Page\n pageNumber={pageNumber}\n renderTextLayer={true}\n renderAnnotationLayer={true}\n width={width * scale}\n className=\"h-auto w-full transition-[width] duration-[600ms] ease-in-out\"\n />\n </Document>\n </div>\n </div>\n );\n};\n"]}
@@ -1,3 +1,3 @@
1
- 'use strict';var chunkAK3WMUOH_js=require('./chunk-AK3WMUOH.js'),react=require('react'),reactPdf=require('react-pdf');require('react-pdf/dist/Page/AnnotationLayer.css'),require('react-pdf/dist/Page/TextLayer.css');var jsxRuntime=require('react/jsx-runtime');var l="/pdfjs";typeof window<"u"&&typeof document<"u"&&(reactPdf.pdfjs.GlobalWorkerOptions.workerSrc=`${l}/pdf.worker.min.js`);var H=chunkAK3WMUOH_js.a(({url:b})=>{let[i,y]=react.useState(0),[d,m]=react.useState(1),[P,f]=react.useState(true),[p,k]=react.useState(null),[N,L]=react.useState(400),[c,v]=react.useState(1),u=react.useRef(null),D=chunkAK3WMUOH_js.a(()=>{v(t=>Math.min(t+.25,4));},"handleZoomIn"),j=chunkAK3WMUOH_js.a(()=>{v(t=>Math.max(t-.25,.25));},"handleZoomOut");react.useEffect(()=>{let t=chunkAK3WMUOH_js.a(()=>{u.current&&L(u.current.offsetWidth-70);},"updateSize");return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let z=react.useMemo(()=>({cMapPacked:true,cMapUrl:`${l}/cmaps/`,standardFontDataUrl:`${l}/standard_fonts/`,wasmUrl:`${l}/wasm/`,iccUrl:`${l}/icc/`}),[]);function E({numPages:t}){y(t),f(false);}chunkAK3WMUOH_js.a(E,"onDocumentLoadSuccess");function C(t){k(`Failed to load PDF: ${t.message}`),f(false);}chunkAK3WMUOH_js.a(C,"onDocumentLoadError");function g(t){m(a=>a+t);}chunkAK3WMUOH_js.a(g,"changePage");function M(){g(-1);}chunkAK3WMUOH_js.a(M,"previousPage");function S(){g(1);}return chunkAK3WMUOH_js.a(S,"nextPage"),p?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-red-500 text-center",children:jsxRuntime.jsx("p",{children:p})})}):jsxRuntime.jsxs("div",{className:"h-full w-full flex flex-col overflow-hidden pb-5",children:[P&&jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF..."})}),i>0&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3 p-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsxRuntime.jsx(chunkAK3WMUOH_js.z,{variant:"outlined","aria-label":"previous page",color:"secondary",size:"small",type:"button",disabled:d<=1,onClick:M,p:5,icon:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"m15 18-6-6 6-6"})})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{type:"number",min:1,max:i,value:d,onChange:t=>{let a=parseInt(t.target.value,10);a>=1&&a<=i&&m(a);},className:"w-15 px-1 py-1 border border-gray-400! rounded text-center"}),"/ ",i]}),jsxRuntime.jsx(chunkAK3WMUOH_js.z,{variant:"outlined","aria-label":"next page",color:"secondary",size:"small",type:"button",disabled:d>=i,onClick:S,p:7,icon:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"m9 18 6-6-6-6"})})})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsxRuntime.jsx(chunkAK3WMUOH_js.z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsxRuntime.jsx(chunkAK3WMUOH_js.Pa,{style:{width:20,height:20}}),onClick:j,disabled:c<=.25,p:7}),jsxRuntime.jsxs(chunkAK3WMUOH_js.mb,{py:5,px:8,children:[c*100,"%"]}),jsxRuntime.jsx(chunkAK3WMUOH_js.z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsxRuntime.jsx(chunkAK3WMUOH_js.ma,{style:{width:14,height:14}}),onClick:D,disabled:c>=4,p:8})]})]}),jsxRuntime.jsx("div",{ref:u,className:"flex-1 flex justify-center overflow-auto",children:jsxRuntime.jsx(reactPdf.Document,{options:z,file:b,onLoadSuccess:E,onLoadError:C,loading:"",children:jsxRuntime.jsx(reactPdf.Page,{pageNumber:d,renderTextLayer:true,renderAnnotationLayer:true,width:N*c,className:"h-auto w-full transition-[width] duration-[600ms] ease-in-out"})})})]})},"PdfDriver");
2
- exports.PdfDriver=H;//# sourceMappingURL=PdfDriver-T57BOIII.js.map
3
- //# sourceMappingURL=PdfDriver-T57BOIII.js.map
1
+ 'use strict';var chunk7VJL2NQS_js=require('./chunk-7VJL2NQS.js'),react=require('react'),reactPdf=require('react-pdf');require('react-pdf/dist/Page/AnnotationLayer.css'),require('react-pdf/dist/Page/TextLayer.css');var jsxRuntime=require('react/jsx-runtime');var l="/pdfjs";typeof window<"u"&&typeof document<"u"&&(reactPdf.pdfjs.GlobalWorkerOptions.workerSrc=`${l}/pdf.worker.min.js`);var H=chunk7VJL2NQS_js.a(({url:b})=>{let[i,y]=react.useState(0),[d,m]=react.useState(1),[P,f]=react.useState(true),[p,k]=react.useState(null),[N,L]=react.useState(400),[c,v]=react.useState(1),u=react.useRef(null),D=chunk7VJL2NQS_js.a(()=>{v(t=>Math.min(t+.25,4));},"handleZoomIn"),j=chunk7VJL2NQS_js.a(()=>{v(t=>Math.max(t-.25,.25));},"handleZoomOut");react.useEffect(()=>{let t=chunk7VJL2NQS_js.a(()=>{u.current&&L(u.current.offsetWidth-70);},"updateSize");return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let z=react.useMemo(()=>({cMapPacked:true,cMapUrl:`${l}/cmaps/`,standardFontDataUrl:`${l}/standard_fonts/`,wasmUrl:`${l}/wasm/`,iccUrl:`${l}/icc/`}),[]);function E({numPages:t}){y(t),f(false);}chunk7VJL2NQS_js.a(E,"onDocumentLoadSuccess");function C(t){k(`Failed to load PDF: ${t.message}`),f(false);}chunk7VJL2NQS_js.a(C,"onDocumentLoadError");function g(t){m(a=>a+t);}chunk7VJL2NQS_js.a(g,"changePage");function M(){g(-1);}chunk7VJL2NQS_js.a(M,"previousPage");function S(){g(1);}return chunk7VJL2NQS_js.a(S,"nextPage"),p?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-red-500 text-center",children:jsxRuntime.jsx("p",{children:p})})}):jsxRuntime.jsxs("div",{className:"h-full w-full flex flex-col overflow-hidden pb-5",children:[P&&jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF..."})}),i>0&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3 p-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsxRuntime.jsx(chunk7VJL2NQS_js.z,{variant:"outlined","aria-label":"previous page",color:"secondary",size:"small",type:"button",disabled:d<=1,onClick:M,p:5,icon:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"m15 18-6-6 6-6"})})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{type:"number",min:1,max:i,value:d,onChange:t=>{let a=parseInt(t.target.value,10);a>=1&&a<=i&&m(a);},className:"w-15 px-1 py-1 border border-gray-400! rounded text-center"}),"/ ",i]}),jsxRuntime.jsx(chunk7VJL2NQS_js.z,{variant:"outlined","aria-label":"next page",color:"secondary",size:"small",type:"button",disabled:d>=i,onClick:S,p:7,icon:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"m9 18 6-6-6-6"})})})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsxRuntime.jsx(chunk7VJL2NQS_js.z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsxRuntime.jsx(chunk7VJL2NQS_js.Pa,{style:{width:20,height:20}}),onClick:j,disabled:c<=.25,p:7}),jsxRuntime.jsxs(chunk7VJL2NQS_js.mb,{py:5,px:8,children:[c*100,"%"]}),jsxRuntime.jsx(chunk7VJL2NQS_js.z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsxRuntime.jsx(chunk7VJL2NQS_js.ma,{style:{width:14,height:14}}),onClick:D,disabled:c>=4,p:8})]})]}),jsxRuntime.jsx("div",{ref:u,className:"flex-1 flex justify-center overflow-auto",children:jsxRuntime.jsx(reactPdf.Document,{options:z,file:b,onLoadSuccess:E,onLoadError:C,loading:"",children:jsxRuntime.jsx(reactPdf.Page,{pageNumber:d,renderTextLayer:true,renderAnnotationLayer:true,width:N*c,className:"h-auto w-full transition-[width] duration-[600ms] ease-in-out"})})})]})},"PdfDriver");
2
+ exports.PdfDriver=H;//# sourceMappingURL=PdfDriver-VXD7HPVZ.js.map
3
+ //# sourceMappingURL=PdfDriver-VXD7HPVZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/FileViewer/drivers/PdfDriver/PdfDriver.tsx"],"names":["BASE_DIR","pdfjs","PdfDriver","__name","url","numPages","setNumPages","useState","pageNumber","setPageNumber","loading","setLoading","error","setError","width","setWidth","scale","setScale","containerRef","useRef","handleZoomIn","prev","handleZoomOut","useEffect","updateSize","options","useMemo","onDocumentLoadSuccess","onDocumentLoadError","changePage","offset","prevPageNumber","previousPage","nextPage","jsx","jsxs","Button","e","page","MinusIcon","Box","PlusIcon","Document","Page"],"mappings":"kQAMA,IAAMA,CAAAA,CAAW,QAGb,CAAA,OAAO,OAAW,GAAe,EAAA,OAAO,QAAa,CAAA,GAAA,GACvDC,cAAM,CAAA,mBAAA,CAAoB,SAAY,CAAA,CAAA,EAAGD,CAAQ,CAAA,kBAAA,CAAA,CAAA,CAOtCE,IAAAA,CAAAA,CAAsCC,kBAAA,CAAA,CAAC,CAAE,GAAA,CAAAC,CAAI,CAAM,GAAA,CAC9D,GAAM,CAACC,CAAUC,CAAAA,CAAW,CAAIC,CAAAA,cAAAA,CAAiB,CAAC,CAC5C,CAAA,CAACC,CAAYC,CAAAA,CAAa,CAAIF,CAAAA,cAAAA,CAAiB,CAAC,CAAA,CAChD,CAACG,CAASC,CAAAA,CAAU,CAAIJ,CAAAA,cAAAA,CAAkB,IAAI,CAAA,CAC9C,CAACK,CAAAA,CAAOC,CAAQ,CAAA,CAAIN,cAAwB,CAAA,IAAI,CAChD,CAAA,CAACO,CAAOC,CAAAA,CAAQ,EAAIR,cAAiB,CAAA,GAAG,CACxC,CAAA,CAACS,CAAOC,CAAAA,CAAQ,CAAIV,CAAAA,cAAAA,CAAS,CAAC,CAC9BW,CAAAA,CAAAA,CAAeC,YAAuB,CAAA,IAAI,CAC1CC,CAAAA,CAAAA,CAAej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IAAKhB,CAAc,CAAA,SAAA,CAAU,0CAChC,CAAA,QAAA,CAAAgB,cAACQ,CAAAA,iBAAAA,CAAA,CACC,OAAA,CAASjB,EACT,IAAMrB,CAAAA,CAAAA,CACN,aAAeuB,CAAAA,CAAAA,CACf,WAAaC,CAAAA,CAAAA,CACb,OAAQ,CAAA,EAAA,CAER,SAAAM,cAACS,CAAAA,aAAAA,CAAA,CACC,UAAA,CAAYnC,CACZ,CAAA,eAAA,CAAiB,IACjB,CAAA,qBAAA,CAAuB,KACvB,KAAOM,CAAAA,CAAAA,CAAQE,CACf,CAAA,SAAA,CAAU,+DACZ,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CACF,CAEJ,CAhMmD,CAAA,WAAA","file":"PdfDriver-T57BOIII.js","sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\nimport { Box, Button, MinusIcon, PlusIcon } from '../../../Core';\n\nconst BASE_DIR = '/pdfjs';\n\n// Set up the worker - self-hosted configuration (client-side only)\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n pdfjs.GlobalWorkerOptions.workerSrc = `${BASE_DIR}/pdf.worker.min.js`;\n}\n\ninterface PdfDriverProps {\n url: string;\n}\n\nexport const PdfDriver: React.FC<PdfDriverProps> = ({ url }) => {\n const [numPages, setNumPages] = useState<number>(0);\n const [pageNumber, setPageNumber] = useState<number>(1);\n const [loading, setLoading] = useState<boolean>(true);\n const [error, setError] = useState<string | null>(null);\n const [width, setWidth] = useState<number>(400);\n const [scale, setScale] = useState(1);\n const containerRef = useRef<HTMLDivElement>(null);\n const handleZoomIn = () => {\n setScale((prev) => Math.min(prev + 0.25, 4));\n };\n\n const handleZoomOut = () => {\n setScale((prev) => Math.max(prev - 0.25, 0.25));\n };\n\n useEffect(() => {\n const updateSize = () => {\n if (containerRef.current) {\n setWidth(containerRef.current.offsetWidth - 70);\n }\n };\n updateSize();\n window.addEventListener('resize', updateSize);\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n\n const options = useMemo(\n () => ({\n cMapPacked: true,\n cMapUrl: `${BASE_DIR}/cmaps/`,\n standardFontDataUrl: `${BASE_DIR}/standard_fonts/`,\n wasmUrl: `${BASE_DIR}/wasm/`,\n iccUrl: `${BASE_DIR}/icc/`,\n }),\n []\n );\n\n //TODO: add fix 100px problem;\n\n function onDocumentLoadSuccess({ numPages }: { numPages: number }): void {\n setNumPages(numPages);\n setLoading(false);\n }\n\n function onDocumentLoadError(error: Error): void {\n setError(`Failed to load PDF: ${error.message}`);\n setLoading(false);\n }\n\n function changePage(offset: number): void {\n setPageNumber((prevPageNumber) => prevPageNumber + offset);\n }\n\n function previousPage(): void {\n changePage(-1);\n }\n\n function nextPage(): void {\n changePage(1);\n }\n\n if (error) {\n return (\n <div className=\"flex items-center justify-center h-full w-full\">\n <div className=\"text-red-500 text-center\">\n <p>{error}</p>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"h-full w-full flex flex-col overflow-hidden pb-5\">\n {loading && (\n <div className=\"flex items-center justify-center h-full\">\n <div className=\"text-gray-500\">Loading PDF...</div>\n </div>\n )}\n {numPages > 0 && (\n <div className=\"flex items-center justify-between flex-wrap gap-3 p-4\">\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"previous page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber <= 1}\n onClick={previousPage}\n p={5}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n }\n />\n\n <span className=\"flex items-center gap-2\">\n <input\n type=\"number\"\n min={1}\n max={numPages}\n value={pageNumber}\n onChange={(e) => {\n const page = parseInt(e.target.value, 10);\n if (page >= 1 && page <= numPages) {\n setPageNumber(page);\n }\n }}\n className=\"w-15 px-1 py-1 border border-gray-400! rounded text-center\"\n />\n / {numPages}\n </span>\n <Button\n variant=\"outlined\"\n aria-label=\"next page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber >= numPages}\n onClick={nextPage}\n p={7}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n }\n />\n </div>\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-out\"\n color=\"secondary\"\n size=\"small\"\n icon={<MinusIcon style={{ width: 20, height: 20 }} />}\n onClick={handleZoomOut}\n disabled={scale <= 0.25}\n p={7}\n />\n <Box py={5} px={8}>\n {scale * 100}%\n </Box>\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-in\"\n size=\"small\"\n color=\"secondary\"\n icon={<PlusIcon style={{ width: 14, height: 14 }} />}\n onClick={handleZoomIn}\n disabled={scale >= 4}\n p={8}\n />\n </div>\n </div>\n )}\n <div ref={containerRef} className=\"flex-1 flex justify-center overflow-auto\">\n <Document\n options={options}\n file={url}\n onLoadSuccess={onDocumentLoadSuccess}\n onLoadError={onDocumentLoadError}\n loading=\"\"\n >\n <Page\n pageNumber={pageNumber}\n renderTextLayer={true}\n renderAnnotationLayer={true}\n width={width * scale}\n className=\"h-auto w-full transition-[width] duration-[600ms] ease-in-out\"\n />\n </Document>\n </div>\n </div>\n );\n};\n"]}
1
+ {"version":3,"sources":["../src/FileViewer/drivers/PdfDriver/PdfDriver.tsx"],"names":["BASE_DIR","pdfjs","PdfDriver","__name","url","numPages","setNumPages","useState","pageNumber","setPageNumber","loading","setLoading","error","setError","width","setWidth","scale","setScale","containerRef","useRef","handleZoomIn","prev","handleZoomOut","useEffect","updateSize","options","useMemo","onDocumentLoadSuccess","onDocumentLoadError","changePage","offset","prevPageNumber","previousPage","nextPage","jsx","jsxs","Button","e","page","MinusIcon","Box","PlusIcon","Document","Page"],"mappings":"kQAMA,IAAMA,CAAAA,CAAW,QAGb,CAAA,OAAO,OAAW,GAAe,EAAA,OAAO,QAAa,CAAA,GAAA,GACvDC,cAAM,CAAA,mBAAA,CAAoB,SAAY,CAAA,CAAA,EAAGD,CAAQ,CAAA,kBAAA,CAAA,CAAA,CAOtCE,IAAAA,CAAAA,CAAsCC,kBAAA,CAAA,CAAC,CAAE,GAAA,CAAAC,CAAI,CAAM,GAAA,CAC9D,GAAM,CAACC,CAAUC,CAAAA,CAAW,CAAIC,CAAAA,cAAAA,CAAiB,CAAC,CAC5C,CAAA,CAACC,CAAYC,CAAAA,CAAa,CAAIF,CAAAA,cAAAA,CAAiB,CAAC,CAAA,CAChD,CAACG,CAASC,CAAAA,CAAU,CAAIJ,CAAAA,cAAAA,CAAkB,IAAI,CAAA,CAC9C,CAACK,CAAAA,CAAOC,CAAQ,CAAA,CAAIN,cAAwB,CAAA,IAAI,CAChD,CAAA,CAACO,CAAOC,CAAAA,CAAQ,EAAIR,cAAiB,CAAA,GAAG,CACxC,CAAA,CAACS,CAAOC,CAAAA,CAAQ,CAAIV,CAAAA,cAAAA,CAAS,CAAC,CAC9BW,CAAAA,CAAAA,CAAeC,YAAuB,CAAA,IAAI,CAC1CC,CAAAA,CAAAA,CAAejB,kBAAA,CAAA,IAAM,CACzBc,CAAUI,CAAAA,CAAAA,EAAS,IAAK,CAAA,GAAA,CAAIA,CAAO,CAAA,GAAA,CAAM,CAAC,CAAC,EAC7C,CAAA,CAFqB,cAIfC,CAAAA,CAAAA,CAAAA,CAAgBnB,kBAAA,CAAA,IAAM,CAC1Bc,CAAAA,CAAUI,GAAS,IAAK,CAAA,GAAA,CAAIA,CAAO,CAAA,GAAA,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,CACZ,CAAA,eAAA,CAAiB,IACjB,CAAA,qBAAA,CAAuB,KACvB,KAAOM,CAAAA,CAAAA,CAAQE,CACf,CAAA,SAAA,CAAU,+DACZ,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CACF,CAEJ,CAhMmD,CAAA,WAAA","file":"PdfDriver-VXD7HPVZ.js","sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\nimport { Box, Button, MinusIcon, PlusIcon } from '../../../Core';\n\nconst BASE_DIR = '/pdfjs';\n\n// Set up the worker - self-hosted configuration (client-side only)\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n pdfjs.GlobalWorkerOptions.workerSrc = `${BASE_DIR}/pdf.worker.min.js`;\n}\n\ninterface PdfDriverProps {\n url: string;\n}\n\nexport const PdfDriver: React.FC<PdfDriverProps> = ({ url }) => {\n const [numPages, setNumPages] = useState<number>(0);\n const [pageNumber, setPageNumber] = useState<number>(1);\n const [loading, setLoading] = useState<boolean>(true);\n const [error, setError] = useState<string | null>(null);\n const [width, setWidth] = useState<number>(400);\n const [scale, setScale] = useState(1);\n const containerRef = useRef<HTMLDivElement>(null);\n const handleZoomIn = () => {\n setScale((prev) => Math.min(prev + 0.25, 4));\n };\n\n const handleZoomOut = () => {\n setScale((prev) => Math.max(prev - 0.25, 0.25));\n };\n\n useEffect(() => {\n const updateSize = () => {\n if (containerRef.current) {\n setWidth(containerRef.current.offsetWidth - 70);\n }\n };\n updateSize();\n window.addEventListener('resize', updateSize);\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n\n const options = useMemo(\n () => ({\n cMapPacked: true,\n cMapUrl: `${BASE_DIR}/cmaps/`,\n standardFontDataUrl: `${BASE_DIR}/standard_fonts/`,\n wasmUrl: `${BASE_DIR}/wasm/`,\n iccUrl: `${BASE_DIR}/icc/`,\n }),\n []\n );\n\n //TODO: add fix 100px problem;\n\n function onDocumentLoadSuccess({ numPages }: { numPages: number }): void {\n setNumPages(numPages);\n setLoading(false);\n }\n\n function onDocumentLoadError(error: Error): void {\n setError(`Failed to load PDF: ${error.message}`);\n setLoading(false);\n }\n\n function changePage(offset: number): void {\n setPageNumber((prevPageNumber) => prevPageNumber + offset);\n }\n\n function previousPage(): void {\n changePage(-1);\n }\n\n function nextPage(): void {\n changePage(1);\n }\n\n if (error) {\n return (\n <div className=\"flex items-center justify-center h-full w-full\">\n <div className=\"text-red-500 text-center\">\n <p>{error}</p>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"h-full w-full flex flex-col overflow-hidden pb-5\">\n {loading && (\n <div className=\"flex items-center justify-center h-full\">\n <div className=\"text-gray-500\">Loading PDF...</div>\n </div>\n )}\n {numPages > 0 && (\n <div className=\"flex items-center justify-between flex-wrap gap-3 p-4\">\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"previous page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber <= 1}\n onClick={previousPage}\n p={5}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n }\n />\n\n <span className=\"flex items-center gap-2\">\n <input\n type=\"number\"\n min={1}\n max={numPages}\n value={pageNumber}\n onChange={(e) => {\n const page = parseInt(e.target.value, 10);\n if (page >= 1 && page <= numPages) {\n setPageNumber(page);\n }\n }}\n className=\"w-15 px-1 py-1 border border-gray-400! rounded text-center\"\n />\n / {numPages}\n </span>\n <Button\n variant=\"outlined\"\n aria-label=\"next page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber >= numPages}\n onClick={nextPage}\n p={7}\n icon={\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n }\n />\n </div>\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-out\"\n color=\"secondary\"\n size=\"small\"\n icon={<MinusIcon style={{ width: 20, height: 20 }} />}\n onClick={handleZoomOut}\n disabled={scale <= 0.25}\n p={7}\n />\n <Box py={5} px={8}>\n {scale * 100}%\n </Box>\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-in\"\n size=\"small\"\n color=\"secondary\"\n icon={<PlusIcon style={{ width: 14, height: 14 }} />}\n onClick={handleZoomIn}\n disabled={scale >= 4}\n p={8}\n />\n </div>\n </div>\n )}\n <div ref={containerRef} className=\"flex-1 flex justify-center overflow-auto\">\n <Document\n options={options}\n file={url}\n onLoadSuccess={onDocumentLoadSuccess}\n onLoadError={onDocumentLoadError}\n loading=\"\"\n >\n <Page\n pageNumber={pageNumber}\n renderTextLayer={true}\n renderAnnotationLayer={true}\n width={width * scale}\n className=\"h-auto w-full transition-[width] duration-[600ms] ease-in-out\"\n />\n </Document>\n </div>\n </div>\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
- 'use strict';var H4=require('react'),Q=require('styled-components'),jsxRuntime=require('react/jsx-runtime'),reactTinyPopover=require('react-tiny-popover'),reactDom=require('react-dom'),m8=require('react-content-loader');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var H4__default=/*#__PURE__*/_interopDefault(H4);var Q__default=/*#__PURE__*/_interopDefault(Q);var m8__default=/*#__PURE__*/_interopDefault(m8);var g4=Object.defineProperty;var t=(o,e)=>g4(o,"name",{value:e,configurable:true});var h1=t((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"),g=t((o,e=16)=>{let r=typeof o=="string"?parseFloat(o.replace("px","")):o;return isNaN(r)?(console.warn(`Invalid pixel value: ${o}`),"0"):`${(r/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),U2=t((o,e=16)=>{let r=typeof o=="string"?parseFloat(o.replace("rem","")):o;return isNaN(r)?0:r*e},"remToPx"),e2={contextMenu:["padding"],baseSize:true},Z=t((o,e=16)=>{if(typeof o=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(o.trim()))return o;let r=typeof o=="string"?parseFloat(o):o;return isNaN(r)?`${o}`:`${(r/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),e1=t((o,e=14,r)=>{let i={};return Object.entries(o).forEach(([C,s])=>{s!==null&&typeof s=="object"&&!Array.isArray(s)?i[C]=e1(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()))&&!(r&&Array.isArray(e2[r])&&e2[r].includes(C))&&!e2[C]?i[C]=g(s,e):i[C]=s;}),i},"convertPaletteToRem"),B=t((o,e,r,i)=>o.button[e][r][i],"getButtonStyles"),G=t((o,e)=>o.button.sizes[e],"getButtonSizeStyles"),B8=t((o,e,r)=>o.input[e][r],"getInputStyles"),T8=t((o,e="body")=>o.typography.variants[e]||o.typography.variants.body,"getTypographyStyles"),z8=t((o,e="m")=>`@media (min-width: ${o.breakpoints[e]}px)`,"getBreakpoint"),f1=t((o,e)=>{try{let r=parseInt(o.slice(1,3),16),i=parseInt(o.slice(3,5),16),C=parseInt(o.slice(5,7),16);return `rgba(${r}, ${i}, ${C}, ${e})`}catch{return o}},"hexToRgba");var x1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},O={xs:320,s:576,m:768,l:992,xl:1200},m1={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var X2={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:m1,breakpoints:O,zIndex:x1,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:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},active:{background:"#C53939",text:"#FFFFFF",border:" #C53939",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:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",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:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",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:"#FCF5F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#FCF5F5",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:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},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 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E8EAEE",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},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:"#EBEBEB"},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}},Y2=e1(X2,X2.baseSize);var q2={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:m1,breakpoints:O,zIndex:x1,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:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},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 4px 16px rgba(255, 255, 255, 0.9), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},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}},J2=e1(q2,q2.baseSize);var t2=t(o=>{if(typeof window<"u"){let r=window.innerWidth;for(let[i,C]of Object.entries(o))if(r<C)return i}let e=Object.keys(o);return e[e.length-1]},"getBreakpoint"),Q2=H4.createContext(t2(O)),j2=t(({children:o})=>{let e=Q.useTheme(),[r,i]=H4.useState(t2(e.breakpoints));return H4.useEffect(()=>{if(typeof window>"u")return;let C=t(()=>{let s=t2(e.breakpoints);s!==r&&i(s);},"handleResize");return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C);}},[r,e.breakpoints]),jsxRuntime.jsx(Q2.Provider,{value:r,children:o})},"BreakpointProvider"),o5=t(()=>{let o=H4.useContext(Q2),e=Q.useTheme(),r=H4.useMemo(()=>Object.keys(e.breakpoints),[e.breakpoints]);return {currentBreakpoint:o,breakpointsOrder:r}},"useBreakpoint");var e5=Q.createGlobalStyle(({theme:o})=>`
1
+ 'use strict';var H4=require('react'),Q=require('styled-components'),jsxRuntime=require('react/jsx-runtime'),reactTinyPopover=require('react-tiny-popover'),reactDom=require('react-dom'),m8=require('react-content-loader');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var H4__default=/*#__PURE__*/_interopDefault(H4);var Q__default=/*#__PURE__*/_interopDefault(Q);var m8__default=/*#__PURE__*/_interopDefault(m8);var g4=Object.defineProperty;var t=(o,e)=>g4(o,"name",{value:e,configurable:true});var h1=t((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"),g=t((o,e=16)=>{let r=typeof o=="string"?parseFloat(o.replace("px","")):o;return isNaN(r)?(console.warn(`Invalid pixel value: ${o}`),"0"):`${(r/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),U2=t((o,e=16)=>{let r=typeof o=="string"?parseFloat(o.replace("rem","")):o;return isNaN(r)?0:r*e},"remToPx"),e2={contextMenu:["padding"],baseSize:true},Z=t((o,e=16)=>{if(typeof o=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(o.trim()))return o;let r=typeof o=="string"?parseFloat(o):o;return isNaN(r)?`${o}`:`${(r/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),e1=t((o,e=14,r)=>{let i={};return Object.entries(o).forEach(([C,s])=>{s!==null&&typeof s=="object"&&!Array.isArray(s)?i[C]=e1(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()))&&!(r&&Array.isArray(e2[r])&&e2[r].includes(C))&&!e2[C]?i[C]=g(s,e):i[C]=s;}),i},"convertPaletteToRem"),B=t((o,e,r,i)=>o.button[e][r][i],"getButtonStyles"),G=t((o,e)=>o.button.sizes[e],"getButtonSizeStyles"),B8=t((o,e,r)=>o.input[e][r],"getInputStyles"),T8=t((o,e="body")=>o.typography.variants[e]||o.typography.variants.body,"getTypographyStyles"),z8=t((o,e="m")=>`@media (min-width: ${o.breakpoints[e]}px)`,"getBreakpoint"),f1=t((o,e)=>{try{let r=parseInt(o.slice(1,3),16),i=parseInt(o.slice(3,5),16),C=parseInt(o.slice(5,7),16);return `rgba(${r}, ${i}, ${C}, ${e})`}catch{return o}},"hexToRgba");var x1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},O={xs:320,s:576,m:768,l:992,xl:1200},m1={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var X2={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:m1,breakpoints:O,zIndex:x1,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:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},active:{background:"#C53939",text:"#FFFFFF",border:" #C53939",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:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",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:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",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:"#E17878",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#D85B5B",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:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},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 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E8EAEE",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},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:"#EBEBEB"},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}},Y2=e1(X2,X2.baseSize);var q2={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:m1,breakpoints:O,zIndex:x1,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:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},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 4px 16px rgba(255, 255, 255, 0.9), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},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}},J2=e1(q2,q2.baseSize);var t2=t(o=>{if(typeof window<"u"){let r=window.innerWidth;for(let[i,C]of Object.entries(o))if(r<C)return i}let e=Object.keys(o);return e[e.length-1]},"getBreakpoint"),Q2=H4.createContext(t2(O)),j2=t(({children:o})=>{let e=Q.useTheme(),[r,i]=H4.useState(t2(e.breakpoints));return H4.useEffect(()=>{if(typeof window>"u")return;let C=t(()=>{let s=t2(e.breakpoints);s!==r&&i(s);},"handleResize");return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C);}},[r,e.breakpoints]),jsxRuntime.jsx(Q2.Provider,{value:r,children:o})},"BreakpointProvider"),o5=t(()=>{let o=H4.useContext(Q2),e=Q.useTheme(),r=H4.useMemo(()=>Object.keys(e.breakpoints),[e.breakpoints]);return {currentBreakpoint:o,breakpointsOrder:r}},"useBreakpoint");var e5=Q.createGlobalStyle(({theme:o})=>`
2
2
  *, *::before, *::after {
3
3
  box-sizing: border-box;
4
4
  }
@@ -1323,5 +1323,5 @@
1323
1323
  }
1324
1324
  }
1325
1325
  animation: move 1.5s linear infinite;
1326
- `;exports.$=H6;exports.$a=os;exports.A=i2;exports.Aa=p3;exports.Ab=d4;exports.B=T4;exports.Ba=g3;exports.Bb=Uc;exports.C=G4;exports.Ca=u3;exports.Cb=Xc;exports.D=R4;exports.Da=f3;exports.Db=Yc;exports.E=D4;exports.Ea=m3;exports.Eb=qc;exports.F=N4;exports.Fa=w3;exports.Fb=k8;exports.G=a2;exports.Ga=v3;exports.Gb=fg;exports.H=C2;exports.Ha=y3;exports.Hb=yg;exports.I=U4;exports.Ia=L3;exports.J=Y4;exports.Ja=H3;exports.K=J4;exports.Ka=F3;exports.L=Q4;exports.La=P3;exports.M=j4;exports.Ma=L2;exports.N=e6;exports.Na=E3;exports.O=r6;exports.Oa=I3;exports.P=i6;exports.Pa=B3;exports.Q=C6;exports.Qa=H2;exports.R=d6;exports.Ra=X;exports.S=l6;exports.Sa=_a;exports.T=c6;exports.Ta=ja;exports.U=g6;exports.Ua=CC;exports.V=u6;exports.Va=bC;exports.W=f6;exports.Wa=T5;exports.X=x6;exports.Xa=PC;exports.Y=S6;exports.Ya=TC;exports.Z=v6;exports.Za=NC;exports._=V6;exports._a=qC;exports.a=t;exports.aa=M6;exports.ab=as;exports.b=h1;exports.ba=k6;exports.bb=ys;exports.c=g;exports.ca=$6;exports.cb=Es;exports.d=U2;exports.da=E6;exports.db=_5;exports.e=Z;exports.ea=Z6;exports.eb=Js;exports.f=e1;exports.fa=T6;exports.fb=U5;exports.g=B;exports.ga=G6;exports.gb=gd;exports.h=G;exports.ha=A6;exports.hb=Ed;exports.i=B8;exports.ia=f2;exports.ib=K5;exports.j=T8;exports.ja=N6;exports.jb=Cl;exports.k=z8;exports.ka=x2;exports.kb=V7;exports.l=f1;exports.la=m2;exports.lb=F7;exports.m=X2;exports.ma=O6;exports.mb=Bl;exports.n=Y2;exports.na=_6;exports.nb=Ol;exports.o=q2;exports.oa=s1;exports.ob=Yl;exports.p=J2;exports.pa=X6;exports.pb=ip;exports.q=j2;exports.qa=d1;exports.qb=bp;exports.r=o5;exports.ra=q6;exports.rb=vp;exports.s=f9;exports.sa=K6;exports.sb=Fp;exports.t=S1;exports.ta=j6;exports.tb=Bp;exports.u=h;exports.ua=o3;exports.ub=Op;exports.v=P4;exports.va=t3;exports.vb=ic;exports.w=x;exports.wa=n3;exports.wb=ac;exports.x=S;exports.xa=a3;exports.xb=Cc;exports.y=E9;exports.ya=C3;exports.yb=mc;exports.z=y1;exports.za=d3;exports.zb=Hc;//# sourceMappingURL=chunk-AK3WMUOH.js.map
1327
- //# sourceMappingURL=chunk-AK3WMUOH.js.map
1326
+ `;exports.$=H6;exports.$a=os;exports.A=i2;exports.Aa=p3;exports.Ab=d4;exports.B=T4;exports.Ba=g3;exports.Bb=Uc;exports.C=G4;exports.Ca=u3;exports.Cb=Xc;exports.D=R4;exports.Da=f3;exports.Db=Yc;exports.E=D4;exports.Ea=m3;exports.Eb=qc;exports.F=N4;exports.Fa=w3;exports.Fb=k8;exports.G=a2;exports.Ga=v3;exports.Gb=fg;exports.H=C2;exports.Ha=y3;exports.Hb=yg;exports.I=U4;exports.Ia=L3;exports.J=Y4;exports.Ja=H3;exports.K=J4;exports.Ka=F3;exports.L=Q4;exports.La=P3;exports.M=j4;exports.Ma=L2;exports.N=e6;exports.Na=E3;exports.O=r6;exports.Oa=I3;exports.P=i6;exports.Pa=B3;exports.Q=C6;exports.Qa=H2;exports.R=d6;exports.Ra=X;exports.S=l6;exports.Sa=_a;exports.T=c6;exports.Ta=ja;exports.U=g6;exports.Ua=CC;exports.V=u6;exports.Va=bC;exports.W=f6;exports.Wa=T5;exports.X=x6;exports.Xa=PC;exports.Y=S6;exports.Ya=TC;exports.Z=v6;exports.Za=NC;exports._=V6;exports._a=qC;exports.a=t;exports.aa=M6;exports.ab=as;exports.b=h1;exports.ba=k6;exports.bb=ys;exports.c=g;exports.ca=$6;exports.cb=Es;exports.d=U2;exports.da=E6;exports.db=_5;exports.e=Z;exports.ea=Z6;exports.eb=Js;exports.f=e1;exports.fa=T6;exports.fb=U5;exports.g=B;exports.ga=G6;exports.gb=gd;exports.h=G;exports.ha=A6;exports.hb=Ed;exports.i=B8;exports.ia=f2;exports.ib=K5;exports.j=T8;exports.ja=N6;exports.jb=Cl;exports.k=z8;exports.ka=x2;exports.kb=V7;exports.l=f1;exports.la=m2;exports.lb=F7;exports.m=X2;exports.ma=O6;exports.mb=Bl;exports.n=Y2;exports.na=_6;exports.nb=Ol;exports.o=q2;exports.oa=s1;exports.ob=Yl;exports.p=J2;exports.pa=X6;exports.pb=ip;exports.q=j2;exports.qa=d1;exports.qb=bp;exports.r=o5;exports.ra=q6;exports.rb=vp;exports.s=f9;exports.sa=K6;exports.sb=Fp;exports.t=S1;exports.ta=j6;exports.tb=Bp;exports.u=h;exports.ua=o3;exports.ub=Op;exports.v=P4;exports.va=t3;exports.vb=ic;exports.w=x;exports.wa=n3;exports.wb=ac;exports.x=S;exports.xa=a3;exports.xb=Cc;exports.y=E9;exports.ya=C3;exports.yb=mc;exports.z=y1;exports.za=d3;exports.zb=Hc;//# sourceMappingURL=chunk-7VJL2NQS.js.map
1327
+ //# sourceMappingURL=chunk-7VJL2NQS.js.map