rez-table-listing-mui 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.uat +1 -0
- package/.eslintrc.cjs +11 -9
- package/dist/index.d.ts +101 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -10
- package/src/App.tsx +172 -129
- package/src/assets/svg.tsx +33 -2
- package/src/components/common/confirm-modal/index.tsx +200 -0
- package/src/components/filter/components/attributes-filter.tsx +26 -0
- package/src/components/filter/components/forms/components/Attributes-select.tsx +180 -0
- package/src/components/filter/components/forms/components/Date.tsx +58 -0
- package/src/components/filter/components/forms/components/Dropdown.tsx +62 -0
- package/src/components/filter/components/forms/components/Filter-criteria.tsx +164 -0
- package/src/components/filter/components/forms/components/Multi-Select.tsx +57 -0
- package/src/components/filter/components/forms/components/Select.tsx +53 -0
- package/src/components/filter/components/forms/components/Textfield.tsx +43 -0
- package/src/components/filter/components/forms/components/styles.tsx +11 -0
- package/src/components/filter/components/forms/index.tsx +424 -0
- package/src/components/filter/components/main-filter.tsx +53 -0
- package/src/components/filter/components/saved-edit-filter.tsx +101 -0
- package/src/components/filter/components/saved-filter.tsx +148 -0
- package/src/components/filter/components/search/index.tsx +56 -0
- package/src/components/filter/components/tabs/custom-tab-panel.tsx +29 -0
- package/src/components/filter/components/tabs/index.tsx +52 -0
- package/src/components/filter/index.tsx +258 -0
- package/src/components/index-table.tsx +3 -6
- package/src/components/index.scss +4 -0
- package/src/components/login/index.tsx +49 -0
- package/src/components/table-body.tsx +6 -4
- package/src/components/table-head.tsx +0 -10
- package/src/components/topbar/index.scss +5 -0
- package/src/components/topbar/index.tsx +54 -19
- package/src/components/viewmore/index.tsx +2 -2
- package/src/libs/hooks/useCraftTable.tsx +29 -5
- package/src/libs/hooks/useDefaultColumns.tsx +2 -2
- package/src/libs/hooks/useEntityTableAPI.tsx +183 -0
- package/src/libs/hooks/useEntityTableHooks.ts +25 -0
- package/src/libs/utils/apiColumn.ts +123 -0
- package/src/libs/utils/common.ts +42 -0
- package/src/main.tsx +6 -3
- package/src/types/common.ts +67 -0
- package/src/types/filter.ts +211 -0
- package/src/types/table-options.ts +15 -2
- package/src/types/table.ts +5 -5
- package/tsconfig.json +1 -1
- package/vite.config.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("@tanstack/react-table"),n=require("react"),s=require("@mui/material"),o=require("@dnd-kit/core"),a=require("@dnd-kit/sortable"),i=require("@dnd-kit/utilities"),r=require("@dnd-kit/modifiers");function l(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&s.firstChild?s.insertBefore(o,s.firstChild):s.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}l('.ts__table__container {\n --black: #000;\n --white: #fff;\n --grey-100: #fafafa;\n --grey-200: #f4f4f4;\n --grey-300: #edeeef;\n --grey-500: #dcddde;\n --grey-600: #bbbbbd;\n --grey-700: #77787b;\n --grey-900: #414042;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n}\n.ts__table__container * {\n box-sizing: border-box;\n}\n.ts__table__container .ts__loader {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n color: var(--grey-900);\n font-size: 1.2rem;\n}\n.ts__table__container .ts__table__wrapper {\n overflow-x: auto;\n max-height: calc(100vh - 110px);\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--striped > .ts__body > .ts__body__tr:nth-of-type(odd) {\n background-color: var(--grey-200);\n}\n.ts__table__container .ts__table__wrapper .ts__table:not(.ts--striped) > .ts__body > .ts__body__tr:hover {\n background-color: var(--grey-100);\n box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.05), inset 0 -2px 2px rgba(0, 0, 0, 0.05);\n}\n.ts__table__container .ts__table__wrapper .ts__table:not(.ts--striped) > .ts__head > .ts__head__tr {\n background-color: var(--grey-100);\n}\n.ts__table__container .ts__table__wrapper .ts__table:not(.ts--striped) > .ts__head > .ts__head__tr .ts__head__th {\n border: 1px solid var(--grey-500);\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__head > .ts__head__tr > .ts__head__th {\n padding: 0.25rem 0.5rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__head > .ts__head__tr > .ts__head__th .ts__content {\n font-size: 0.875rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__body > .ts__body__tr > .ts__body__td {\n padding: 0.25rem 0.5rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__body > .ts__body__tr > .ts__body__td .ts__content {\n font-size: 0.75rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table {\n width: max-content;\n min-width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head.ts--sticky {\n position: sticky;\n top: 0rem;\n z-index: 3;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head {\n position: relative;\n box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr {\n background-color: var(--white);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th {\n position: relative;\n padding: 0.5rem 1rem;\n border: 1px solid var(--grey-300);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__dnd__button {\n color: var(--grey-100);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__dnd__button:hover {\n scale: 1.1;\n color: var(--grey-900);\n width: max-content;\n height: max-content;\n cursor: grabbing;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts__content__sort {\n cursor: pointer;\n user-select: none;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts__content__sort svg {\n margin-left: 0.25rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts--head--button {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts--head--button:hover {\n scale: 1.1;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts--head--button svg {\n color: var(--grey-700);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .column__resize {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n width: 5px;\n background: rgba(0, 0, 0, 0.5);\n cursor: col-resize;\n user-select: none;\n touch-action: none;\n opacity: 0;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .column__resize:hover {\n opacity: 1;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .column__resize.is__resizing {\n background: rgba(0, 0, 0, 0.8);\n opacity: 1;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__body .ts__body__tr {\n background-color: var(--white);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__body .ts__body__tr .ts__body__td {\n font-size: 0.875rem;\n padding: 0.5rem 1rem;\n border-top: 1px solid var(--grey-300);\n border-bottom: 1px solid var(--grey-300);\n}');const c=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("polyline",{points:"19 12 12 5 5 12"})]}),d=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),e.jsx("polyline",{points:"5 12 12 19 19 12"})]}),C=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),e.jsx("path",{fill:"none",d:"M24 24H0V0h24v24z"})]}),h=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),e.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),_=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),e.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),g=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),e.jsx("path",{fill:"none",d:"M0 0h24v24H0V0z"})]}),p=()=>e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M15 3.5H3C2.175 3.5 1.5 4.175 1.5 5V14C1.5 14.825 2.175 15.5 3 15.5H15C15.825 15.5 16.5 14.825 16.5 14V5C16.5 4.175 15.825 3.5 15 3.5ZM6 14H3V5H6V14ZM10.5 14H7.5V5H10.5V14ZM15 14H12V5H15V14Z",fill:"currentColor",stroke:"white",strokeWidth:"0.5"})}),u=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tabler-icon tabler-icon-grip-horizontal",transform:"rotate(90)",children:[e.jsx("path",{d:"M10 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),e.jsx("path",{d:"M10 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),e.jsx("path",{d:"M18 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),e.jsx("path",{d:"M18 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]}),m=t=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1rem",width:"1rem",...t,children:e.jsx("path",{d:"M16 12V4h1V2H7v2h1v8l-2 2v2h5.2v6h1.6v-6H18v-2l-2-2m-7.2 2l1.2-1.2V4h4v8.8l1.2 1.2H8.8z"})}),x=t=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1rem",width:"1rem",...t,children:e.jsx("path",{d:"M8 6.2V4H7V2h10v2h-1v8l2 2v2h-.2L14 12.2V4h-4v4.2l-2-2m12 14.5L18.7 22l-5.9-5.9V22h-1.6v-6H6v-2l2-2v-.7l-6-6L3.3 4 20 20.7M8.8 14h1.8l-.9-.9-.9.9z"})}),b=()=>e.jsxs("svg",{viewBox:"0 0 60 60",width:"4rem",children:[e.jsx("circle",{fill:"currentColor",stroke:"none",cx:"6",cy:"30",r:"5",children:e.jsx("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),e.jsx("circle",{fill:"currentColor",stroke:"none",cx:"24",cy:"30",r:"5",children:e.jsx("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),e.jsx("circle",{fill:"currentColor",stroke:"none",cx:"42",cy:"30",r:"5",children:e.jsx("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]}),f=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12587",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12587)",children:e.jsx("path",{d:"M4.42311 17.0834C4.00214 17.0834 3.64582 16.9375 3.35416 16.6459C3.06249 16.3542 2.91666 15.9979 2.91666 15.5769V4.42315C2.91666 4.00217 3.06249 3.64585 3.35416 3.35419C3.64582 3.06252 4.00214 2.91669 4.42311 2.91669H15.5769C15.9978 2.91669 16.3542 3.06252 16.6458 3.35419C16.9375 3.64585 17.0833 4.00217 17.0833 4.42315V15.5769C17.0833 15.9979 16.9375 16.3542 16.6458 16.6459C16.3542 16.9375 15.9978 17.0834 15.5769 17.0834H4.42311ZM4.42311 15.8334H9.37499V4.16669H4.42311C4.35895 4.16669 4.3002 4.19342 4.24687 4.24689C4.19339 4.30023 4.16666 4.35898 4.16666 4.42315V15.5769C4.16666 15.6411 4.19339 15.6998 4.24687 15.7531C4.3002 15.8066 4.35895 15.8334 4.42311 15.8334ZM10.625 15.8334H15.5769C15.641 15.8334 15.6998 15.8066 15.7531 15.7531C15.8066 15.6998 15.8333 15.6411 15.8333 15.5769V10H10.625V15.8334ZM10.625 8.75002H15.8333V4.42315C15.8333 4.35898 15.8066 4.30023 15.7531 4.24689C15.6998 4.19342 15.641 4.16669 15.5769 4.16669H10.625V8.75002Z",fill:"#1E1E1E"})})]}),w=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12719",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12719)",children:e.jsx("path",{d:"M4.99998 11.6666C4.54165 11.6666 4.14929 11.5035 3.8229 11.1771C3.49651 10.8507 3.33331 10.4583 3.33331 9.99998C3.33331 9.54165 3.49651 9.14929 3.8229 8.8229C4.14929 8.49651 4.54165 8.33331 4.99998 8.33331C5.45831 8.33331 5.85067 8.49651 6.17706 8.8229C6.50345 9.14929 6.66665 9.54165 6.66665 9.99998C6.66665 10.4583 6.50345 10.8507 6.17706 11.1771C5.85067 11.5035 5.45831 11.6666 4.99998 11.6666ZM9.99998 11.6666C9.54165 11.6666 9.14929 11.5035 8.8229 11.1771C8.49651 10.8507 8.33331 10.4583 8.33331 9.99998C8.33331 9.54165 8.49651 9.14929 8.8229 8.8229C9.14929 8.49651 9.54165 8.33331 9.99998 8.33331C10.4583 8.33331 10.8507 8.49651 11.1771 8.8229C11.5035 9.14929 11.6666 9.54165 11.6666 9.99998C11.6666 10.4583 11.5035 10.8507 11.1771 11.1771C10.8507 11.5035 10.4583 11.6666 9.99998 11.6666ZM15 11.6666C14.5416 11.6666 14.1493 11.5035 13.8229 11.1771C13.4965 10.8507 13.3333 10.4583 13.3333 9.99998C13.3333 9.54165 13.4965 9.14929 13.8229 8.8229C14.1493 8.49651 14.5416 8.33331 15 8.33331C15.4583 8.33331 15.8507 8.49651 16.1771 8.8229C16.5035 9.14929 16.6666 9.54165 16.6666 9.99998C16.6666 10.4583 16.5035 10.8507 16.1771 11.1771C15.8507 11.5035 15.4583 11.6666 15 11.6666Z",fill:"#1C1B1F"})})]}),j=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.0833 3.73919L10.2608 2.91669L6.99996 6.17752L3.73913 2.91669L2.91663 3.73919L6.17746 7.00002L2.91663 10.2609L3.73913 11.0834L6.99996 7.82252L10.2608 11.0834L11.0833 10.2609L7.82246 7.00002L11.0833 3.73919Z",fill:"#0C2033"})}),v=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12583",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12583)",children:e.jsx("path",{d:"M7.93274 13.0127C6.50969 13.0127 5.30455 12.5192 4.31733 11.5321C3.33024 10.5449 2.8367 9.33971 2.8367 7.91666C2.8367 6.4936 3.33024 5.28847 4.31733 4.30124C5.30455 3.31416 6.50969 2.82062 7.93274 2.82062C9.3558 2.82062 10.5609 3.31416 11.5482 4.30124C12.5352 5.28847 13.0288 6.4936 13.0288 7.91666C13.0288 8.5118 12.9289 9.0802 12.7292 9.62187C12.5293 10.1635 12.2627 10.6346 11.9294 11.0352L16.7244 15.8302C16.8398 15.9455 16.8989 16.0905 16.9015 16.2652C16.9041 16.4399 16.8451 16.5876 16.7244 16.7083C16.6037 16.829 16.4573 16.8894 16.2852 16.8894C16.1133 16.8894 15.967 16.829 15.8463 16.7083L11.0513 11.9133C10.6346 12.2574 10.1554 12.5266 9.61378 12.721C9.07212 12.9155 8.51177 13.0127 7.93274 13.0127ZM7.93274 11.7629C9.00649 11.7629 9.91594 11.3903 10.6611 10.645C11.4064 9.89985 11.779 8.99041 11.779 7.91666C11.779 6.84291 11.4064 5.93346 10.6611 5.18833C9.91594 4.44305 9.00649 4.07041 7.93274 4.07041C6.85899 4.07041 5.94955 4.44305 5.20441 5.18833C4.45913 5.93346 4.08649 6.84291 4.08649 7.91666C4.08649 8.99041 4.45913 9.89985 5.20441 10.645C5.94955 11.3903 6.85899 11.7629 7.93274 11.7629Z",fill:"#1E1E1E"})})]}),y=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12710",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12710)",children:e.jsx("path",{d:"M7.63605 10.5369C7.45883 10.5369 7.31036 10.477 7.19064 10.3571C7.07105 10.2374 7.01126 10.089 7.01126 9.9119V4.4696L5.08022 6.40065C4.96744 6.51606 4.82654 6.57377 4.65751 6.57377C4.48848 6.57377 4.33932 6.51398 4.21001 6.3944C4.0807 6.26398 4.01605 6.11488 4.01605 5.94711C4.01605 5.77947 4.0807 5.63099 4.21001 5.50169L7.10105 2.61065C7.17897 2.53259 7.26154 2.47759 7.34876 2.44565C7.43612 2.41356 7.52966 2.39752 7.62939 2.39752C7.72911 2.39752 7.82383 2.41363 7.91355 2.44586C8.00327 2.47822 8.08661 2.53315 8.16355 2.61065L11.0754 5.52252C11.1993 5.64641 11.2604 5.79009 11.2588 5.95356C11.2572 6.11704 11.1918 6.26398 11.0625 6.3944C10.9332 6.51398 10.7868 6.57592 10.6233 6.58023C10.4599 6.5844 10.3136 6.5219 10.1844 6.39273L8.26126 4.4696V9.91981C8.26126 10.0947 8.20133 10.2412 8.08147 10.3594C7.96161 10.4777 7.81314 10.5369 7.63605 10.5369ZM12.3706 17.5946C12.2709 17.5946 12.1762 17.5784 12.0865 17.5461C11.9967 17.5138 11.9134 17.459 11.8365 17.3815L8.92459 14.4696C8.8007 14.3456 8.73959 14.2019 8.74126 14.0386C8.74279 13.8751 8.8082 13.7281 8.93751 13.5977C9.06682 13.4781 9.2132 13.4162 9.37668 13.4119C9.54015 13.4076 9.68647 13.4701 9.81564 13.5994L11.7388 15.5225V10.0721C11.7388 9.89738 11.7987 9.75085 11.9186 9.63252C12.0384 9.51433 12.1869 9.45523 12.364 9.45523C12.5412 9.45523 12.6897 9.51509 12.8094 9.63481C12.929 9.75467 12.9888 9.90315 12.9888 10.0802V15.5225L14.9198 13.5913C15.0326 13.476 15.1735 13.4184 15.3425 13.4184C15.5115 13.4184 15.6607 13.4781 15.79 13.5977C15.9193 13.7281 15.984 13.8772 15.984 14.0448C15.984 14.2126 15.9193 14.3611 15.79 14.4904L12.899 17.3815C12.8211 17.4594 12.7385 17.5144 12.6513 17.5465C12.5639 17.5786 12.4704 17.5946 12.3706 17.5946Z",fill:"#1C1B1F"})})]}),S=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12698",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12698)",children:e.jsx("path",{d:"M8.33333 15V13.3333H11.6667V15H8.33333ZM5 10.8333V9.16667H15V10.8333H5ZM2.5 6.66667V5H17.5V6.66667H2.5Z",fill:"#1C1B1F"})})]}),k=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_957_24305",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:e.jsx("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_957_24305)",children:e.jsx("path",{d:"M9.91805 5.74863C10.1889 6.01963 10.3983 6.34891 10.5462 6.73647C10.6941 7.12413 10.75 7.51325 10.714 7.9038C10.714 8.03202 10.6679 8.14058 10.5757 8.22947C10.4834 8.31836 10.3731 8.3628 10.2449 8.3628C10.1167 8.3628 10.0081 8.31836 9.91922 8.22947C9.83033 8.14058 9.78588 8.03202 9.78588 7.9038C9.82866 7.61069 9.80455 7.33291 9.71355 7.07047C9.62255 6.80813 9.4826 6.58252 9.29372 6.39363C9.10483 6.20475 8.87705 6.06136 8.61038 5.96347C8.34372 5.86558 8.06249 5.84013 7.76672 5.88713C7.63849 5.89147 7.52783 5.84852 7.43472 5.7583C7.34149 5.66819 7.29277 5.55902 7.28855 5.4308C7.28422 5.30258 7.32544 5.19186 7.41222 5.09863C7.49899 5.00552 7.60649 4.95686 7.73472 4.95263C8.12272 4.90819 8.51266 4.9588 8.90455 5.10447C9.29644 5.25025 9.63427 5.46497 9.91805 5.74863ZM8.00005 3.99997C7.76327 3.99997 7.53099 4.01152 7.30322 4.03463C7.07544 4.05763 6.84872 4.09563 6.62305 4.14863C6.48116 4.17774 6.35338 4.15747 6.23972 4.0878C6.12605 4.01813 6.04788 3.91791 6.00522 3.78713C5.96244 3.65213 5.97655 3.52375 6.04755 3.40197C6.11844 3.28019 6.22138 3.20474 6.35638 3.17563C6.62483 3.11152 6.89599 3.06625 7.16988 3.0398C7.44388 3.01325 7.7206 2.99997 8.00005 2.99997C9.43249 2.99997 10.7483 3.37219 11.9475 4.11663C13.1467 4.86108 14.0688 5.86836 14.714 7.13847C14.7585 7.22302 14.7908 7.30825 14.8109 7.39413C14.831 7.48002 14.841 7.57086 14.841 7.66663C14.841 7.76241 14.8327 7.85325 14.816 7.93913C14.7994 8.02502 14.7688 8.11024 14.7244 8.1948C14.5202 8.62213 14.2719 9.02063 13.9796 9.3903C13.6872 9.75997 13.3654 10.0995 13.0141 10.409C12.9107 10.5013 12.7926 10.5395 12.6597 10.5236C12.5267 10.5079 12.4175 10.4414 12.332 10.3243C12.2466 10.2072 12.2112 10.0816 12.2257 9.94747C12.2403 9.81325 12.2992 9.69997 12.4026 9.60763C12.7034 9.33497 12.9778 9.03691 13.2257 8.71347C13.4736 8.38991 13.6873 8.04097 13.8667 7.66663C13.3112 6.54441 12.5084 5.65275 11.4584 4.99163C10.4084 4.33052 9.2556 3.99997 8.00005 3.99997ZM8.00005 12.3333C6.5966 12.3333 5.31027 11.9583 4.14105 11.2083C2.97183 10.4583 2.04238 9.47047 1.35272 8.2448C1.29716 8.16025 1.25655 8.06836 1.23088 7.96913C1.20522 7.87002 1.19238 7.76919 1.19238 7.66663C1.19238 7.56408 1.20349 7.46491 1.22572 7.36913C1.24794 7.27347 1.28683 7.17991 1.34238 7.08847C1.59027 6.63547 1.87105 6.20402 2.18472 5.79413C2.49838 5.38436 2.85905 5.01708 3.26672 4.6923L1.76155 3.1768C1.66933 3.07769 1.62383 2.95997 1.62505 2.82363C1.62638 2.6873 1.67533 2.57086 1.77188 2.4743C1.86844 2.37775 1.98555 2.32947 2.12322 2.32947C2.26077 2.32947 2.37783 2.37775 2.47438 2.4743L13.5257 13.5256C13.618 13.618 13.667 13.7322 13.6725 13.8685C13.6781 14.0048 13.6292 14.1247 13.5257 14.2281C13.4292 14.3247 13.312 14.373 13.1744 14.373C13.0368 14.373 12.9198 14.3247 12.8232 14.2281L10.477 11.9025C10.0838 12.0546 9.67972 12.1644 9.26472 12.232C8.84983 12.2995 8.42827 12.3333 8.00005 12.3333ZM3.96938 5.3948C3.57872 5.69658 3.22761 6.0378 2.91605 6.41847C2.60449 6.79924 2.3436 7.2153 2.13338 7.66663C2.68894 8.78886 3.49172 9.68052 4.54172 10.3416C5.59172 11.0027 6.74449 11.3333 8.00005 11.3333C8.28638 11.3333 8.56822 11.3141 8.84555 11.2756C9.12288 11.2372 9.39833 11.1778 9.67188 11.0975L8.82822 10.2333C8.69322 10.2923 8.55838 10.3322 8.42372 10.3531C8.28916 10.3741 8.14794 10.3846 8.00005 10.3846C7.2436 10.3846 6.60149 10.1207 6.07372 9.59297C5.54594 9.06519 5.28205 8.42308 5.28205 7.66663C5.28205 7.51874 5.2936 7.37752 5.31672 7.24297C5.33983 7.1083 5.37872 6.97347 5.43338 6.83847L3.96938 5.3948Z",fill:"#1C1B1F"})})]}),M=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.00147 7.38467C7.75692 7.38467 8.39853 7.12028 8.92631 6.5915C9.45408 6.06272 9.71797 5.42061 9.71797 4.66517C9.71797 3.90972 9.45358 3.26811 8.9248 2.74033C8.39603 2.21256 7.75392 1.94867 6.99847 1.94867C6.24303 1.94867 5.60142 2.21306 5.07364 2.74183C4.54586 3.27061 4.28197 3.91272 4.28197 4.66817C4.28197 5.42361 4.54636 6.06522 5.07514 6.593C5.60392 7.12078 6.24603 7.38467 7.00147 7.38467ZM6.99997 6.46667C6.49997 6.46667 6.07497 6.29167 5.72497 5.94167C5.37497 5.59167 5.19997 5.16667 5.19997 4.66667C5.19997 4.16667 5.37497 3.74167 5.72497 3.39167C6.07497 3.04167 6.49997 2.86667 6.99997 2.86667C7.49997 2.86667 7.92497 3.04167 8.27497 3.39167C8.62497 3.74167 8.79997 4.16667 8.79997 4.66667C8.79997 5.16667 8.62497 5.59167 8.27497 5.94167C7.92497 6.29167 7.49997 6.46667 6.99997 6.46667ZM6.99997 9.33333C5.59653 9.33333 4.31297 8.95894 3.1493 8.21017C1.98564 7.4615 1.0568 6.4765 0.362803 5.25517C0.307248 5.15939 0.266637 5.06289 0.24097 4.96567C0.215414 4.86844 0.202637 4.76867 0.202637 4.66633C0.202637 4.564 0.215414 4.46433 0.24097 4.36733C0.266637 4.27033 0.307248 4.17394 0.362803 4.07817C1.0568 2.85683 1.98564 1.87183 3.1493 1.12317C4.31297 0.374389 5.59653 0 6.99997 0C8.40342 0 9.68697 0.374389 10.8506 1.12317C12.0143 1.87183 12.9431 2.85683 13.6371 4.07817C13.6927 4.17394 13.7333 4.27044 13.759 4.36767C13.7845 4.46489 13.7973 4.56467 13.7973 4.667C13.7973 4.76933 13.7845 4.869 13.759 4.966C13.7333 5.063 13.6927 5.15939 13.6371 5.25517C12.9431 6.4765 12.0143 7.4615 10.8506 8.21017C9.68697 8.95894 8.40342 9.33333 6.99997 9.33333ZM6.99997 8.33333C8.25553 8.33333 9.4083 8.00278 10.4583 7.34167C11.5083 6.68055 12.3111 5.78889 12.8666 4.66667C12.3111 3.54444 11.5083 2.65278 10.4583 1.99167C9.4083 1.33056 8.25553 1 6.99997 1C5.74442 1 4.59164 1.33056 3.54164 1.99167C2.49164 2.65278 1.68886 3.54444 1.1333 4.66667C1.68886 5.78889 2.49164 6.68055 3.54164 7.34167C4.59164 8.00278 5.74442 8.33333 6.99997 8.33333Z",fill:"#505050"})}),z=()=>e.jsx("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.91793 3.74863C9.18882 4.01963 9.39821 4.34891 9.54609 4.73647C9.69398 5.12413 9.74993 5.51325 9.71393 5.9038C9.71393 6.03202 9.66782 6.14058 9.57559 6.22947C9.48326 6.31836 9.37298 6.3628 9.24476 6.3628C9.11654 6.3628 9.00798 6.31836 8.9191 6.22947C8.83021 6.14058 8.78576 6.03202 8.78576 5.9038C8.82854 5.61069 8.80443 5.33291 8.71343 5.07047C8.62243 4.80813 8.48248 4.58252 8.29359 4.39363C8.1047 4.20475 7.87693 4.06136 7.61026 3.96347C7.34359 3.86558 7.06237 3.84013 6.76659 3.88713C6.63837 3.89147 6.52771 3.84852 6.43459 3.7583C6.34137 3.66819 6.29265 3.55902 6.28843 3.4308C6.28409 3.30258 6.32532 3.19186 6.41209 3.09863C6.49887 3.00552 6.60637 2.95686 6.73459 2.95263C7.12259 2.90819 7.51254 2.9588 7.90443 3.10447C8.29632 3.25025 8.63415 3.46497 8.91793 3.74863ZM6.99993 1.99997C6.76315 1.99997 6.53087 2.01152 6.30309 2.03463C6.07532 2.05763 5.84859 2.09563 5.62293 2.14863C5.48104 2.17774 5.35326 2.15747 5.23959 2.0878C5.12593 2.01813 5.04776 1.91791 5.00509 1.78713C4.96232 1.65213 4.97643 1.52375 5.04743 1.40197C5.11832 1.28019 5.22126 1.20474 5.35626 1.17563C5.62471 1.11152 5.89587 1.06625 6.16976 1.0398C6.44376 1.01325 6.72048 0.999967 6.99993 0.999967C8.43237 0.999967 9.74821 1.37219 10.9474 2.11663C12.1465 2.86108 13.0687 3.86836 13.7139 5.13847C13.7584 5.22302 13.7907 5.30825 13.8108 5.39413C13.8309 5.48002 13.8409 5.57086 13.8409 5.66663C13.8409 5.76241 13.8326 5.85325 13.8159 5.93913C13.7993 6.02502 13.7687 6.11024 13.7243 6.1948C13.52 6.62213 13.2718 7.02063 12.9794 7.3903C12.6871 7.75997 12.3653 8.09952 12.0139 8.40897C11.9106 8.5013 11.7925 8.53952 11.6596 8.52363C11.5266 8.50786 11.4174 8.44141 11.3319 8.3243C11.2465 8.20719 11.211 8.08158 11.2256 7.94747C11.2402 7.81325 11.2991 7.69997 11.4024 7.60763C11.7033 7.33497 11.9777 7.03691 12.2256 6.71347C12.4735 6.38991 12.6872 6.04097 12.8666 5.66663C12.311 4.54441 11.5083 3.65275 10.4583 2.99163C9.40826 2.33052 8.25548 1.99997 6.99993 1.99997ZM6.99993 10.3333C5.59648 10.3333 4.31015 9.9583 3.14093 9.2083C1.97171 8.4583 1.04226 7.47047 0.352594 6.2448C0.297039 6.16025 0.256427 6.06836 0.230761 5.96913C0.205094 5.87002 0.192261 5.76919 0.192261 5.66663C0.192261 5.56408 0.203372 5.46491 0.225594 5.36913C0.247816 5.27347 0.286705 5.17991 0.342261 5.08847C0.59015 4.63547 0.870927 4.20402 1.18459 3.79413C1.49826 3.38436 1.85893 3.01708 2.26659 2.6923L0.761427 1.1768C0.669205 1.07769 0.623705 0.959967 0.624927 0.823634C0.626261 0.6873 0.675205 0.570857 0.771761 0.474301C0.868316 0.377746 0.985427 0.329468 1.12309 0.329468C1.26065 0.329468 1.37771 0.377746 1.47426 0.474301L12.5256 11.5256C12.6179 11.618 12.6669 11.7322 12.6724 11.8685C12.678 12.0048 12.629 12.1247 12.5256 12.2281C12.429 12.3247 12.3119 12.373 12.1743 12.373C12.0367 12.373 11.9197 12.3247 11.8231 12.2281L9.47693 9.90247C9.08371 10.0546 8.67959 10.1644 8.2646 10.232C7.84971 10.2995 7.42815 10.3333 6.99993 10.3333ZM2.96926 3.3948C2.57859 3.69658 2.22748 4.0378 1.91593 4.41847C1.60437 4.79924 1.34348 5.2153 1.13326 5.66663C1.68882 6.78886 2.49159 7.68052 3.54159 8.34163C4.59159 9.00274 5.74437 9.3333 6.99993 9.3333C7.28626 9.3333 7.56809 9.31408 7.84543 9.27563C8.12276 9.23719 8.3982 9.1778 8.67176 9.09747L7.82809 8.2333C7.69309 8.2923 7.55826 8.33224 7.42359 8.35313C7.28904 8.37413 7.14782 8.38463 6.99993 8.38463C6.24348 8.38463 5.60137 8.12074 5.07359 7.59297C4.54582 7.06519 4.28193 6.42308 4.28193 5.66663C4.28193 5.51874 4.29348 5.37752 4.31659 5.24297C4.33971 5.1083 4.37859 4.97347 4.43326 4.83847L2.96926 3.3948Z",fill:"#C5C5C5"})}),H=()=>e.jsx("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.00005 11.0768C1.70394 11.0768 1.45044 10.9714 1.23955 10.7605C1.02866 10.5496 0.923218 10.2961 0.923218 9.99999C0.923218 9.70388 1.02866 9.45038 1.23955 9.23949C1.45044 9.0286 1.70394 8.92316 2.00005 8.92316C2.29616 8.92316 2.54966 9.0286 2.76055 9.23949C2.97144 9.45038 3.07688 9.70388 3.07688 9.99999C3.07688 10.2961 2.97144 10.5496 2.76055 10.7605C2.54966 10.9714 2.29616 11.0768 2.00005 11.0768ZM6.00005 11.0768C5.70394 11.0768 5.45044 10.9714 5.23955 10.7605C5.02866 10.5496 4.92322 10.2961 4.92322 9.99999C4.92322 9.70388 5.02866 9.45038 5.23955 9.23949C5.45044 9.0286 5.70394 8.92316 6.00005 8.92316C6.29616 8.92316 6.54966 9.0286 6.76055 9.23949C6.97144 9.45038 7.07688 9.70388 7.07688 9.99999C7.07688 10.2961 6.97144 10.5496 6.76055 10.7605C6.54966 10.9714 6.29616 11.0768 6.00005 11.0768ZM2.00005 7.07682C1.70394 7.07682 1.45044 6.97138 1.23955 6.76049C1.02866 6.5496 0.923218 6.2961 0.923218 5.99999C0.923218 5.70388 1.02866 5.45038 1.23955 5.23949C1.45044 5.0286 1.70394 4.92316 2.00005 4.92316C2.29616 4.92316 2.54966 5.0286 2.76055 5.23949C2.97144 5.45038 3.07688 5.70388 3.07688 5.99999C3.07688 6.2961 2.97144 6.5496 2.76055 6.76049C2.54966 6.97138 2.29616 7.07682 2.00005 7.07682ZM6.00005 7.07682C5.70394 7.07682 5.45044 6.97138 5.23955 6.76049C5.02866 6.5496 4.92322 6.2961 4.92322 5.99999C4.92322 5.70388 5.02866 5.45038 5.23955 5.23949C5.45044 5.0286 5.70394 4.92316 6.00005 4.92316C6.29616 4.92316 6.54966 5.0286 6.76055 5.23949C6.97144 5.45038 7.07688 5.70388 7.07688 5.99999C7.07688 6.2961 6.97144 6.5496 6.76055 6.76049C6.54966 6.97138 6.29616 7.07682 6.00005 7.07682ZM2.00005 3.07682C1.70394 3.07682 1.45044 2.97138 1.23955 2.76049C1.02866 2.5496 0.923218 2.2961 0.923218 1.99999C0.923218 1.70388 1.02866 1.45038 1.23955 1.23949C1.45044 1.0286 1.70394 0.923157 2.00005 0.923157C2.29616 0.923157 2.54966 1.0286 2.76055 1.23949C2.97144 1.45038 3.07688 1.70388 3.07688 1.99999C3.07688 2.2961 2.97144 2.5496 2.76055 2.76049C2.54966 2.97138 2.29616 3.07682 2.00005 3.07682ZM6.00005 3.07682C5.70394 3.07682 5.45044 2.97138 5.23955 2.76049C5.02866 2.5496 4.92322 2.2961 4.92322 1.99999C4.92322 1.70388 5.02866 1.45038 5.23955 1.23949C5.45044 1.0286 5.70394 0.923157 6.00005 0.923157C6.29616 0.923157 6.54966 1.0286 6.76055 1.23949C6.97144 1.45038 7.07688 1.70388 7.07688 1.99999C7.07688 2.2961 6.97144 2.5496 6.76055 2.76049C6.54966 2.97138 6.29616 3.07682 6.00005 3.07682Z",fill:"#A6A6A6"})}),V=()=>e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.50002 5.50002H1.16669C1.02502 5.50002 0.906298 5.45208 0.81052 5.35619C0.714632 5.2603 0.666687 5.14152 0.666687 4.99985C0.666687 4.85808 0.714632 4.73935 0.81052 4.64369C0.906298 4.54791 1.02502 4.50002 1.16669 4.50002H4.50002V1.16669C4.50002 1.02502 4.54797 0.906298 4.64385 0.81052C4.73974 0.714632 4.85852 0.666687 5.00019 0.666687C5.14197 0.666687 5.26069 0.714632 5.35635 0.81052C5.45213 0.906298 5.50002 1.02502 5.50002 1.16669V4.50002H8.83335C8.97502 4.50002 9.09374 4.54797 9.18952 4.64385C9.28541 4.73974 9.33335 4.85852 9.33335 5.00019C9.33335 5.14197 9.28541 5.26069 9.18952 5.35635C9.09374 5.45213 8.97502 5.50002 8.83335 5.50002H5.50002V8.83335C5.50002 8.97502 5.45208 9.09374 5.35619 9.18952C5.2603 9.28541 5.14152 9.33335 4.99985 9.33335C4.85808 9.33335 4.73935 9.28541 4.64369 9.18952C4.54791 9.09374 4.50002 8.97502 4.50002 8.83335V5.50002Z",fill:"#888888"})}),L={Board:e.jsx((()=>e.jsx("svg",{width:"13",height:"10",viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1.37179 9H4.05763V1H1.37179C1.3119 1 1.26274 1.01922 1.22429 1.05767C1.18585 1.09611 1.16663 1.14528 1.16663 1.20517V8.79483C1.16663 8.85472 1.18585 8.90389 1.22429 8.94233C1.26274 8.98078 1.3119 9 1.37179 9ZM5.05763 9H7.94229V1H5.05763V9ZM8.94229 9H11.6281C11.688 9 11.7372 8.98078 11.7756 8.94233C11.8141 8.90389 11.8333 8.85472 11.8333 8.79483V1.20517C11.8333 1.14528 11.8141 1.09611 11.7756 1.05767C11.7372 1.01922 11.688 1 11.6281 1H8.94229V9ZM1.37179 10C1.03501 10 0.749959 9.88333 0.516626 9.65C0.283293 9.41667 0.166626 9.13161 0.166626 8.79483V1.20517C0.166626 0.868389 0.283293 0.583333 0.516626 0.35C0.749959 0.116667 1.03501 0 1.37179 0H11.6281C11.9649 0 12.25 0.116667 12.4833 0.35C12.7166 0.583333 12.8333 0.868389 12.8333 1.20517V8.79483C12.8333 9.13161 12.7166 9.41667 12.4833 9.65C12.25 9.88333 11.9649 10 11.6281 10H1.37179Z",fill:"#A6A6A6"})})),{}),Table:e.jsx((()=>e.jsx("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.17954 9.16671H5.82054C5.96243 9.16671 6.08121 9.11882 6.17687 9.02304C6.27265 8.92737 6.32054 8.8086 6.32054 8.66671C6.32054 8.52482 6.27265 8.40604 6.17687 8.31037C6.08121 8.2146 5.96243 8.16671 5.82054 8.16671H3.17954C3.03765 8.16671 2.91887 8.2146 2.82321 8.31037C2.72743 8.40604 2.67954 8.52482 2.67954 8.66671C2.67954 8.8086 2.72743 8.92737 2.82321 9.02304C2.91887 9.11882 3.03765 9.16671 3.17954 9.16671ZM5.17954 6.50004H7.82054C7.96243 6.50004 8.08121 6.45215 8.17687 6.35637C8.27265 6.26071 8.32054 6.14193 8.32054 6.00004C8.32054 5.85815 8.27265 5.73937 8.17687 5.64371C8.08121 5.54793 7.96243 5.50004 7.82054 5.50004H5.17954C5.03765 5.50004 4.91887 5.54793 4.82321 5.64371C4.72743 5.73937 4.67954 5.85815 4.67954 6.00004C4.67954 6.14193 4.72743 6.26071 4.82321 6.35637C4.91887 6.45215 5.03765 6.50004 5.17954 6.50004ZM7.17954 3.83337H9.82054C9.96243 3.83337 10.0812 3.78549 10.1769 3.68971C10.2727 3.59404 10.3205 3.47526 10.3205 3.33337C10.3205 3.19148 10.2727 3.07271 10.1769 2.97704C10.0812 2.88126 9.96243 2.83337 9.82054 2.83337H7.17954C7.03765 2.83337 6.91887 2.88126 6.82321 2.97704C6.72743 3.07271 6.67954 3.19148 6.67954 3.33337C6.67954 3.47526 6.72743 3.59404 6.82321 3.68971C6.91887 3.78549 7.03765 3.83337 7.17954 3.83337ZM2.03854 11.6667C1.70176 11.6667 1.41671 11.55 1.18337 11.3167C0.950041 11.0834 0.833374 10.7983 0.833374 10.4615V1.53854C0.833374 1.20176 0.950041 0.916707 1.18337 0.683374C1.41671 0.450041 1.70176 0.333374 2.03854 0.333374H10.9615C11.2983 0.333374 11.5834 0.450041 11.8167 0.683374C12.05 0.916707 12.1667 1.20176 12.1667 1.53854V10.4615C12.1667 10.7983 12.05 11.0834 11.8167 11.3167C11.5834 11.55 11.2983 11.6667 10.9615 11.6667H2.03854ZM2.03854 10.6667H10.9615C11.0129 10.6667 11.0599 10.6453 11.1025 10.6025C11.1453 10.5599 11.1667 10.5129 11.1667 10.4615V1.53854C11.1667 1.48721 11.1453 1.44021 11.1025 1.39754C11.0599 1.35476 11.0129 1.33337 10.9615 1.33337H2.03854C1.98721 1.33337 1.94021 1.35476 1.89754 1.39754C1.85476 1.44021 1.83337 1.48721 1.83337 1.53854V10.4615C1.83337 10.5129 1.85476 10.5599 1.89754 10.6025C1.94021 10.6453 1.98721 10.6667 2.03854 10.6667Z",fill:"#A6A6A6"})})),{}),Timeline:e.jsx((()=>e.jsx("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.17954 9.16671H5.82054C5.96243 9.16671 6.08121 9.11882 6.17687 9.02304C6.27265 8.92737 6.32054 8.8086 6.32054 8.66671C6.32054 8.52482 6.27265 8.40604 6.17687 8.31037C6.08121 8.2146 5.96243 8.16671 5.82054 8.16671H3.17954C3.03765 8.16671 2.91887 8.2146 2.82321 8.31037C2.72743 8.40604 2.67954 8.52482 2.67954 8.66671C2.67954 8.8086 2.72743 8.92737 2.82321 9.02304C2.91887 9.11882 3.03765 9.16671 3.17954 9.16671ZM5.17954 6.50004H7.82054C7.96243 6.50004 8.08121 6.45215 8.17687 6.35637C8.27265 6.26071 8.32054 6.14193 8.32054 6.00004C8.32054 5.85815 8.27265 5.73937 8.17687 5.64371C8.08121 5.54793 7.96243 5.50004 7.82054 5.50004H5.17954C5.03765 5.50004 4.91887 5.54793 4.82321 5.64371C4.72743 5.73937 4.67954 5.85815 4.67954 6.00004C4.67954 6.14193 4.72743 6.26071 4.82321 6.35637C4.91887 6.45215 5.03765 6.50004 5.17954 6.50004ZM7.17954 3.83337H9.82054C9.96243 3.83337 10.0812 3.78549 10.1769 3.68971C10.2727 3.59404 10.3205 3.47526 10.3205 3.33337C10.3205 3.19148 10.2727 3.07271 10.1769 2.97704C10.0812 2.88126 9.96243 2.83337 9.82054 2.83337H7.17954C7.03765 2.83337 6.91887 2.88126 6.82321 2.97704C6.72743 3.07271 6.67954 3.19148 6.67954 3.33337C6.67954 3.47526 6.72743 3.59404 6.82321 3.68971C6.91887 3.78549 7.03765 3.83337 7.17954 3.83337ZM2.03854 11.6667C1.70176 11.6667 1.41671 11.55 1.18337 11.3167C0.950041 11.0834 0.833374 10.7983 0.833374 10.4615V1.53854C0.833374 1.20176 0.950041 0.916707 1.18337 0.683374C1.41671 0.450041 1.70176 0.333374 2.03854 0.333374H10.9615C11.2983 0.333374 11.5834 0.450041 11.8167 0.683374C12.05 0.916707 12.1667 1.20176 12.1667 1.53854V10.4615C12.1667 10.7983 12.05 11.0834 11.8167 11.3167C11.5834 11.55 11.2983 11.6667 10.9615 11.6667H2.03854ZM2.03854 10.6667H10.9615C11.0129 10.6667 11.0599 10.6453 11.1025 10.6025C11.1453 10.5599 11.1667 10.5129 11.1667 10.4615V1.53854C11.1667 1.48721 11.1453 1.44021 11.1025 1.39754C11.0599 1.35476 11.0129 1.33337 10.9615 1.33337H2.03854C1.98721 1.33337 1.94021 1.35476 1.89754 1.39754C1.85476 1.44021 1.83337 1.48721 1.83337 1.53854V10.4615C1.83337 10.5129 1.85476 10.5599 1.89754 10.6025C1.94021 10.6453 1.98721 10.6667 2.03854 10.6667Z",fill:"#A6A6A6"})})),{}),List:e.jsx((()=>e.jsx("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.20521 10.5C5.06354 10.5 4.94476 10.452 4.84887 10.3562C4.7531 10.2603 4.70521 10.1415 4.70521 9.99982C4.70521 9.85805 4.7531 9.73932 4.84887 9.64366C4.94476 9.54788 5.06354 9.49999 5.20521 9.49999H11.6667C11.8084 9.49999 11.9271 9.54794 12.0229 9.64382C12.1188 9.73971 12.1667 9.85849 12.1667 10.0002C12.1667 10.1419 12.1188 10.2607 12.0229 10.3563C11.9271 10.4521 11.8084 10.5 11.6667 10.5H5.20521ZM5.20521 6.49999C5.06354 6.49999 4.94476 6.45205 4.84887 6.35616C4.7531 6.26027 4.70521 6.14149 4.70521 5.99982C4.70521 5.85805 4.7531 5.73932 4.84887 5.64366C4.94476 5.54788 5.06354 5.49999 5.20521 5.49999H11.6667C11.8084 5.49999 11.9271 5.54794 12.0229 5.64382C12.1188 5.73971 12.1667 5.85849 12.1667 6.00016C12.1667 6.14194 12.1188 6.26066 12.0229 6.35632C11.9271 6.4521 11.8084 6.49999 11.6667 6.49999H5.20521ZM5.20521 2.49999C5.06354 2.49999 4.94476 2.45205 4.84887 2.35616C4.7531 2.26027 4.70521 2.14149 4.70521 1.99982C4.70521 1.85805 4.7531 1.73932 4.84887 1.64366C4.94476 1.54788 5.06354 1.49999 5.20521 1.49999H11.6667C11.8084 1.49999 11.9271 1.54794 12.0229 1.64382C12.1188 1.73971 12.1667 1.85849 12.1667 2.00016C12.1667 2.14194 12.1188 2.26066 12.0229 2.35632C11.9271 2.4521 11.8084 2.49999 11.6667 2.49999H5.20521ZM1.94237 11.109C1.63737 11.109 1.37632 11.0004 1.15921 10.7832C0.941985 10.566 0.833374 10.305 0.833374 9.99999C0.833374 9.69499 0.941985 9.43394 1.15921 9.21682C1.37632 8.9996 1.63737 8.89099 1.94237 8.89099C2.24737 8.89099 2.50843 8.9996 2.72554 9.21682C2.94276 9.43394 3.05137 9.69499 3.05137 9.99999C3.05137 10.305 2.94276 10.566 2.72554 10.7832C2.50843 11.0004 2.24737 11.109 1.94237 11.109ZM1.94237 7.10899C1.63737 7.10899 1.37632 7.00038 1.15921 6.78316C0.941985 6.56605 0.833374 6.30499 0.833374 5.99999C0.833374 5.69499 0.941985 5.43394 1.15921 5.21682C1.37632 4.9996 1.63737 4.89099 1.94237 4.89099C2.24737 4.89099 2.50843 4.9996 2.72554 5.21682C2.94276 5.43394 3.05137 5.69499 3.05137 5.99999C3.05137 6.30499 2.94276 6.56605 2.72554 6.78316C2.50843 7.00038 2.24737 7.10899 1.94237 7.10899ZM1.94237 3.10899C1.63737 3.10899 1.37632 3.00038 1.15921 2.78316C0.941985 2.56605 0.833374 2.30499 0.833374 1.99999C0.833374 1.69499 0.941985 1.43394 1.15921 1.21682C1.37632 0.999602 1.63737 0.890991 1.94237 0.890991C2.24737 0.890991 2.50843 0.999602 2.72554 1.21682C2.94276 1.43394 3.05137 1.69499 3.05137 1.99999C3.05137 2.30499 2.94276 2.56605 2.72554 2.78316C2.50843 3.00038 2.24737 3.10899 1.94237 3.10899Z",fill:"#A6A6A6"})})),{}),Calendar:e.jsx((()=>e.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.03854 13.3333C1.70176 13.3333 1.41671 13.2167 1.18337 12.9833C0.950041 12.75 0.833374 12.465 0.833374 12.1282V3.20518C0.833374 2.8684 0.950041 2.58334 1.18337 2.35001C1.41671 2.11668 1.70176 2.00001 2.03854 2.00001H2.96154V1.10251C2.96154 0.956399 3.01049 0.834399 3.10837 0.73651C3.20626 0.638732 3.32826 0.589844 3.47437 0.589844C3.6206 0.589844 3.7426 0.638732 3.84037 0.73651C3.93826 0.834399 3.98721 0.956399 3.98721 1.10251V2.00001H9.03854V1.08984C9.03854 0.947955 9.08637 0.829121 9.18204 0.733344C9.27782 0.637677 9.39665 0.589844 9.53854 0.589844C9.68043 0.589844 9.79921 0.637677 9.89487 0.733344C9.99065 0.829121 10.0385 0.947955 10.0385 1.08984V2.00001H10.9615C11.2983 2.00001 11.5834 2.11668 11.8167 2.35001C12.05 2.58334 12.1667 2.8684 12.1667 3.20518V12.1282C12.1667 12.465 12.05 12.75 11.8167 12.9833C11.5834 13.2167 11.2983 13.3333 10.9615 13.3333H2.03854ZM2.03854 12.3333H10.9615C11.0129 12.3333 11.0599 12.312 11.1025 12.2692C11.1453 12.2265 11.1667 12.1795 11.1667 12.1282V5.87184H1.83337V12.1282C1.83337 12.1795 1.85476 12.2265 1.89754 12.2692C1.94021 12.312 1.98721 12.3333 2.03854 12.3333ZM1.83337 4.87184H11.1667V3.20518C11.1667 3.15384 11.1453 3.10684 11.1025 3.06418C11.0599 3.0214 11.0129 3.00001 10.9615 3.00001H2.03854C1.98721 3.00001 1.94021 3.0214 1.89754 3.06418C1.85476 3.10684 1.83337 3.15384 1.83337 3.20518V4.87184ZM6.50004 8.38468C6.33682 8.38468 6.19771 8.32718 6.08271 8.21218C5.96782 8.09729 5.91037 7.95818 5.91037 7.79484C5.91037 7.63162 5.96782 7.49251 6.08271 7.37751C6.19771 7.26262 6.33682 7.20518 6.50004 7.20518C6.66326 7.20518 6.80237 7.26262 6.91737 7.37751C7.03226 7.49251 7.08971 7.63162 7.08971 7.79484C7.08971 7.95818 7.03226 8.09729 6.91737 8.21218C6.80237 8.32718 6.66326 8.38468 6.50004 8.38468ZM3.83337 8.38468C3.67015 8.38468 3.53104 8.32718 3.41604 8.21218C3.30115 8.09729 3.24371 7.95818 3.24371 7.79484C3.24371 7.63162 3.30115 7.49251 3.41604 7.37751C3.53104 7.26262 3.67015 7.20518 3.83337 7.20518C3.9966 7.20518 4.13571 7.26262 4.25071 7.37751C4.3656 7.49251 4.42304 7.63162 4.42304 7.79484C4.42304 7.95818 4.3656 8.09729 4.25071 8.21218C4.13571 8.32718 3.9966 8.38468 3.83337 8.38468ZM9.16671 8.38468C9.00348 8.38468 8.86437 8.32718 8.74937 8.21218C8.63449 8.09729 8.57704 7.95818 8.57704 7.79484C8.57704 7.63162 8.63449 7.49251 8.74937 7.37751C8.86437 7.26262 9.00348 7.20518 9.16671 7.20518C9.32993 7.20518 9.46904 7.26262 9.58404 7.37751C9.69893 7.49251 9.75637 7.63162 9.75637 7.79484C9.75637 7.95818 9.69893 8.09729 9.58404 8.21218C9.46904 8.32718 9.32993 8.38468 9.16671 8.38468ZM6.50004 11C6.33682 11 6.19771 10.9425 6.08271 10.8275C5.96782 10.7126 5.91037 10.5736 5.91037 10.4103C5.91037 10.247 5.96782 10.1079 6.08271 9.99301C6.19771 9.87801 6.33682 9.82051 6.50004 9.82051C6.66326 9.82051 6.80237 9.87801 6.91737 9.99301C7.03226 10.1079 7.08971 10.247 7.08971 10.4103C7.08971 10.5736 7.03226 10.7126 6.91737 10.8275C6.80237 10.9425 6.66326 11 6.50004 11ZM3.83337 11C3.67015 11 3.53104 10.9425 3.41604 10.8275C3.30115 10.7126 3.24371 10.5736 3.24371 10.4103C3.24371 10.247 3.30115 10.1079 3.41604 9.99301C3.53104 9.87801 3.67015 9.82051 3.83337 9.82051C3.9966 9.82051 4.13571 9.87801 4.25071 9.99301C4.3656 10.1079 4.42304 10.247 4.42304 10.4103C4.42304 10.5736 4.3656 10.7126 4.25071 10.8275C4.13571 10.9425 3.9966 11 3.83337 11ZM9.16671 11C9.00348 11 8.86437 10.9425 8.74937 10.8275C8.63449 10.7126 8.57704 10.5736 8.57704 10.4103C8.57704 10.247 8.63449 10.1079 8.74937 9.99301C8.86437 9.87801 9.00348 9.82051 9.16671 9.82051C9.32993 9.82051 9.46904 9.87801 9.58404 9.99301C9.69893 10.1079 9.75637 10.247 9.75637 10.4103C9.75637 10.5736 9.69893 10.7126 9.58404 10.8275C9.46904 10.9425 9.32993 11 9.16671 11Z",fill:"#A6A6A6"})})),{}),Gallery:e.jsx((()=>e.jsx("svg",{width:"15",height:"10",viewBox:"0 0 15 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1.87179 9.33329C1.54035 9.33329 1.25663 9.21529 1.02063 8.97929C0.784626 8.74329 0.666626 8.45957 0.666626 8.12813V1.87179C0.666626 1.54035 0.784626 1.25663 1.02063 1.02063C1.25663 0.784626 1.54035 0.666626 1.87179 0.666626H8.12813C8.45957 0.666626 8.74329 0.784626 8.97929 1.02063C9.21529 1.25663 9.33329 1.54035 9.33329 1.87179V8.12813C9.33329 8.45957 9.21529 8.74329 8.97929 8.97929C8.74329 9.21529 8.45957 9.33329 8.12813 9.33329H1.87179ZM11.2723 4.33329C11.0984 4.33329 10.954 4.27579 10.8391 4.16079C10.7241 4.0459 10.6666 3.90151 10.6666 3.72763V1.27246C10.6666 1.09846 10.7241 0.954014 10.8391 0.839126C10.954 0.724126 11.0984 0.666626 11.2723 0.666626H13.7275C13.9015 0.666626 14.0459 0.724126 14.1608 0.839126C14.2758 0.954014 14.3333 1.09846 14.3333 1.27246V3.72763C14.3333 3.90151 14.2758 4.0459 14.1608 4.16079C14.0459 4.27579 13.9015 4.33329 13.7275 4.33329H11.2723ZM11.6666 3.33329H13.3333V1.66663H11.6666V3.33329ZM1.87179 8.33329H8.12813C8.18802 8.33329 8.23718 8.31407 8.27563 8.27563C8.31407 8.23718 8.33329 8.18802 8.33329 8.12813V1.87179C8.33329 1.8119 8.31407 1.76274 8.27563 1.72429C8.23718 1.68585 8.18802 1.66663 8.12813 1.66663H1.87179C1.8119 1.66663 1.76274 1.68585 1.72429 1.72429C1.68585 1.76274 1.66663 1.8119 1.66663 1.87179V8.12813C1.66663 8.18802 1.68585 8.23718 1.72429 8.27563C1.76274 8.31407 1.8119 8.33329 1.87179 8.33329ZM2.99996 6.96796H6.99996C7.11829 6.96796 7.20707 6.91324 7.26629 6.80379C7.32552 6.69435 7.31707 6.58835 7.24096 6.48579L6.15763 5.03579C6.09529 4.95546 6.01496 4.91529 5.91663 4.91529C5.81829 4.91529 5.73796 4.95546 5.67563 5.03579L4.66663 6.38463L3.99096 5.48579C3.92863 5.40546 3.84829 5.36529 3.74996 5.36529C3.65163 5.36529 3.57129 5.40546 3.50896 5.48579L2.75896 6.48579C2.68285 6.58835 2.6744 6.69435 2.73363 6.80379C2.79285 6.91324 2.88163 6.96796 2.99996 6.96796ZM11.2723 9.33329C11.0984 9.33329 10.954 9.27579 10.8391 9.16079C10.7241 9.0459 10.6666 8.90146 10.6666 8.72746V6.27229C10.6666 6.0984 10.7241 5.95402 10.8391 5.83913C10.954 5.72413 11.0984 5.66663 11.2723 5.66663H13.7275C13.9015 5.66663 14.0459 5.72413 14.1608 5.83913C14.2758 5.95402 14.3333 6.0984 14.3333 6.27229V8.72746C14.3333 8.90146 14.2758 9.0459 14.1608 9.16079C14.0459 9.27579 13.9015 9.33329 13.7275 9.33329H11.2723ZM11.6666 8.33329H13.3333V6.66663H11.6666V8.33329Z",fill:"#A6A6A6"})})),{}),Charts:e.jsx((()=>e.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.14485 1.42317C7.14485 1.22028 7.22413 1.058 7.38268 0.936332C7.54124 0.814666 7.71879 0.777333 7.91535 0.824333C9.12135 1.07389 10.16 1.64056 11.0314 2.52433C11.9028 3.40811 12.4633 4.46328 12.7128 5.68983C12.753 5.86583 12.7148 6.02133 12.5985 6.15633C12.4822 6.29144 12.3228 6.359 12.1205 6.359H8.42435C8.38424 6.359 8.34907 6.34894 8.31885 6.32883C8.28874 6.30872 8.26363 6.27861 8.24352 6.2385C8.14352 6.01794 8.00863 5.82105 7.83885 5.64783C7.66896 5.47461 7.47779 5.34072 7.26535 5.24617C7.22524 5.22628 7.19513 5.20389 7.17502 5.179C7.1549 5.15411 7.14485 5.12178 7.14485 5.082V1.42317ZM8.14485 1.95133V4.60267C8.29274 4.70689 8.43079 4.82206 8.55902 4.94817C8.68724 5.07417 8.80135 5.21111 8.90135 5.359H11.5653C11.3158 4.54278 10.8874 3.831 10.2802 3.22367C9.67285 2.61644 8.96107 2.19233 8.14485 1.95133ZM5.10518 13.1692C3.6804 12.8462 2.5039 12.113 1.57568 10.9697C0.647461 9.82644 0.18335 8.50322 0.18335 7C0.18335 5.49367 0.647461 4.17028 1.57568 3.02983C2.5039 1.8895 3.6804 1.1565 5.10518 0.830832C5.30607 0.783832 5.48685 0.8265 5.64752 0.958833C5.80818 1.09117 5.88852 1.25917 5.88852 1.46283V5.108C5.88852 5.11867 5.85729 5.16128 5.79485 5.23583C5.43852 5.38294 5.15352 5.61672 4.93985 5.93717C4.72607 6.25772 4.61918 6.61244 4.61918 7.00133C4.61918 7.39022 4.72607 7.74 4.93985 8.05067C5.15352 8.36133 5.43852 8.58805 5.79485 8.73083C5.81285 8.73761 5.84407 8.77989 5.88852 8.85767V12.5577C5.88852 12.7643 5.80818 12.9297 5.64752 13.0537C5.48685 13.1777 5.30607 13.2162 5.10518 13.1692ZM4.88852 1.95133C3.78341 2.28033 2.88957 2.91194 2.20702 3.84617C1.52457 4.78039 1.18335 5.83167 1.18335 7C1.18335 8.16833 1.52457 9.21961 2.20702 10.1538C2.88957 11.0881 3.78341 11.7265 4.88852 12.0692V9.37183C4.50052 9.08805 4.19196 8.74122 3.96285 8.33133C3.73385 7.92156 3.61935 7.47672 3.61935 6.99683C3.61935 6.51694 3.73279 6.071 3.95968 5.659C4.18657 5.247 4.49618 4.89911 4.88852 4.61533V1.95133ZM7.89618 13.1757C7.69963 13.2183 7.52524 13.1806 7.37302 13.0625C7.2209 12.9443 7.14485 12.7867 7.14485 12.5897V8.90133C7.14485 8.86111 7.1549 8.82594 7.17502 8.79583C7.19513 8.76572 7.22524 8.74061 7.26535 8.7205C7.48335 8.62472 7.67707 8.49194 7.84652 8.32217C8.01596 8.15228 8.14829 7.96111 8.24352 7.74867C8.2504 7.735 8.30713 7.69483 8.41368 7.62817H12.1205C12.3022 7.62817 12.4536 7.70405 12.5747 7.85583C12.6958 8.0075 12.7363 8.17822 12.6962 8.368C12.4355 9.59444 11.8667 10.6417 10.9897 11.5097C10.1128 12.3776 9.08163 12.9329 7.89618 13.1757ZM8.90135 8.62817C8.79957 8.77172 8.68502 8.90656 8.55768 9.03267C8.43035 9.15878 8.29274 9.27183 8.14485 9.37183V12.0487C8.9654 11.8034 9.67824 11.3772 10.2833 10.7698C10.8885 10.1626 11.3158 9.44872 11.5653 8.62817H8.90135Z",fill:"#A6A6A6"})})),{})},N=({onSelect:t,selectedLayout:n})=>e.jsxs(s.Box,{sx:{width:"100%",maxWidth:"500px",height:"330px"},children:[e.jsxs(s.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:2,backgroundColor:"#FBFBFC"},children:[e.jsx(s.Typography,{variant:"h5",sx:{fontWeight:400,fontSize:18,color:"#0C2033"},children:"Layouts"}),e.jsx(s.IconButton,{onClick:()=>t("close"),children:e.jsx(j,{})})]}),e.jsx(s.Grid,{container:!0,spacing:2,sx:{p:3},children:Object.keys(L).map((o=>{const a=o===n;return e.jsx(s.Grid,{size:3,children:e.jsxs(s.ButtonBase,{onClick:()=>t(o),sx:{border:a?"1.5px solid #1E1E1E":"1.5px solid #E5E7EB",borderRadius:2,p:2,width:"100%",height:"100%",flexDirection:"column",backgroundColor:a?"#fff":"",transition:"0.3s",boxShadow:a?"0px 2px 6px rgba(0,0,0,0.06)":"none"},children:[e.jsx(s.Box,{mb:1,children:L[o]}),e.jsx(s.Typography,{variant:"subtitle1",sx:{color:"#1E1E1E",fontWeight:a?400:200,opacity:a?1:.5},children:o})]})},o)}))})]}),T=({ref:e,handler:t})=>{n.useEffect((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])};function I(){const[e,t]=n.useState(!!document.fullscreenElement),[s,o]=n.useState(document.fullscreenElement??void 0);return n.useEffect((()=>{const e=()=>{const e=document.fullscreenElement??void 0;t(!!e),o(e)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[]),{isFullscreen:e,container:s}}l(".ts__table__container .ts-topbar {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #fff;\n}\n.ts__table__container .ts-topbar .right-section {\n display: flex;\n justify-content: center;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: relative;\n margin-right: 0.1rem;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-icon {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 1.2rem;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-input {\n width: 0;\n opacity: 0;\n margin-left: 8px;\n padding: 6px 8px;\n font-size: 0.875rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #f5f5f5;\n color: #000;\n transition: width 0.3s ease, opacity 0.3s ease;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-input:focus {\n outline: none;\n border-color: #000;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-input.expanded {\n width: 200px;\n opacity: 1;\n}\n.ts__table__container .ts-topbar .right-section .ts--button {\n margin-right: 0.6rem;\n margin-top: 1rem;\n cursor: pointer;\n}\n.ts__table__container .ts-topbar .right-section .change-layout {\n margin-top: 0.99rem;\n cursor: pointer;\n}\n.ts__table__container .ts-topbar .right-section .sort {\n margin-top: 1rem;\n}\n.ts__table__container .ts-topbar .right-section .fullscreen-toggle {\n margin-right: 0.5rem;\n margin-top: 0.9rem;\n}\n.ts__table__container .ts-topbar .right-section .hide-column {\n margin-top: 0.9rem;\n position: relative;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .toggle-all {\n cursor: pointer;\n width: inherit;\n background-color: #fff;\n padding: 0.25rem 1rem;\n border-radius: 0.25rem;\n border: 1px solid #dbdbdb;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .toggle-all:hover {\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .switches {\n margin-top: 1rem;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .switches .ts-column-visible {\n display: flex;\n gap: 0.5rem;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .switches .ts-column-visible .ts-column-visible-label {\n font-size: 0.875rem;\n font-weight: 500;\n}");const B=({compactMode:t,onCompactToggle:o,isFullscreen:a,onFullscreenToggle:i,groupBy:r,onGroupByChange:l,tableStates:c})=>{const[d,C]=n.useState(null),h=Boolean(d),{container:_}=I(),g=()=>{C(null)},{wrapColumns:p,setWrapColumns:u}=c;return e.jsxs(e.Fragment,{children:[e.jsx("div",{onClick:e=>{C(e.currentTarget)},children:e.jsx(w,{})}),e.jsxs(s.Popover,{open:h,anchorEl:d,onClose:g,container:_,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{mt:2,padding:3,width:380,borderRadius:1,boxShadow:4}},children:[e.jsxs(s.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,sx:{backgroundColor:"#F9FAFB",margin:"-24px -24px 24px -24px"},children:[e.jsx(s.Typography,{fontSize:"18px",fontWeight:400,color:"#0C2033",children:"View"}),e.jsx(s.IconButton,{size:"small",onClick:g,children:e.jsx(j,{})})]}),e.jsxs(s.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e.jsx(s.Typography,{fontSize:"14px",fontWeight:400,color:"#000000DE",children:"Wrap Cell"}),e.jsx(s.Switch,{checked:p?.all_wrap||!1,onChange:()=>{u((e=>({all_wrap:!e.all_wrap})))}})]}),e.jsxs(s.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e.jsx(s.Typography,{fontSize:"14px",fontWeight:400,color:"#000000DE",children:"List View"}),e.jsxs(s.Select,{size:"small",value:t?"Compact":"Comfy",onChange:e=>o(e.target.value),sx:{minWidth:120,fontWeight:400,color:"#000",fontSize:"13px"},MenuProps:{container:_,disablePortal:!1,PaperProps:{style:{zIndex:1500}}},children:[e.jsx(s.MenuItem,{value:"Comfy",children:"Comfy"}),e.jsx(s.MenuItem,{value:"Compact",children:"Compact"})]})]}),e.jsxs(s.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(s.Typography,{fontSize:"14px",fontWeight:400,color:"#000000DE",children:"Fullscreen"}),e.jsx(s.Switch,{checked:a,onChange:i})]})]})]})},Z=({id:t,children:n})=>{const{attributes:s,listeners:o,setNodeRef:r,transform:l,transition:c}=a.useSortable({id:t});return e.jsxs("div",{ref:r,style:{transform:i.CSS.Transform.toString(l),transition:c,display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{...s,...o,style:{cursor:"grab"},children:e.jsx(u,{})}),e.jsx("div",{style:{flexGrow:1},children:n})]})},P=({anchorEl:t,onClose:i,columns:r,onChange:l})=>{const[c,d]=n.useState([]),C=o.useSensors(o.useSensor(o.MouseSensor),o.useSensor(o.TouchSensor),o.useSensor(o.KeyboardSensor)),h=(e,t,n)=>{const s=c.map((s=>s.id===e?{...s,[t]:n}:s));d(s),_(s)},_=e=>{const t=e.map((e=>({id:e.field,desc:"desc"===e.direction})));l(t)};return e.jsx(s.Popover,{open:Boolean(t),anchorEl:t,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsxs(s.Box,{p:2,minWidth:300,children:[e.jsxs(s.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,sx:{backgroundColor:"#F9FAFB",margin:"-16px -16px 16px -16px"},children:[e.jsx(s.Typography,{fontSize:"18px",fontWeight:600,color:"#0C2033",children:"Sort By"}),e.jsx(s.IconButton,{size:"small",onClick:i,children:e.jsx(j,{})})]}),c.length>0&&e.jsx(o.DndContext,{sensors:C,collisionDetection:o.closestCenter,onDragEnd:e=>{const{active:t,over:n}=e;if(t.id!==n.id){const e=c.findIndex((e=>e.id===t.id)),s=c.findIndex((e=>e.id===n.id)),o=a.arrayMove(c,e,s);d(o),_(o)}},children:e.jsx(a.SortableContext,{items:c.map((e=>e.id)),strategy:a.verticalListSortingStrategy,children:c.map((t=>e.jsx(Z,{id:t.id,children:e.jsxs(s.Box,{display:"flex",gap:1,alignItems:"center",mb:1,children:[e.jsx(s.Select,{value:t.field,onChange:e=>h(t.id,"field",e.target.value),size:"small",fullWidth:!0,sx:{fontWeight:400,fontSize:14,color:"#000"},children:r.map((t=>e.jsx(s.MenuItem,{value:t.id,children:t.label},t.id)))}),e.jsxs(s.Select,{value:t.direction,onChange:e=>h(t.id,"direction",e.target.value),size:"small",sx:{fontWeight:400,fontSize:14,color:"#000"},children:[e.jsx(s.MenuItem,{value:"asc",children:"Ascending"}),e.jsx(s.MenuItem,{value:"desc",children:"Descending"})]}),e.jsx(s.IconButton,{size:"small",onClick:()=>(e=>{const t=c.filter((t=>t.id!==e));d(t),_(t)})(t.id),children:e.jsx(j,{})})]})},t.id)))})}),e.jsx(s.Button,{onClick:()=>{const e={id:Date.now().toString(),field:r[0]?.id??"",direction:"asc"},t=[...c,e];d(t),_(t)},startIcon:e.jsx("span",{children:e.jsx(V,{})}),size:"small",sx:{fontWeight:400,fontSize:12,color:"#888888"},children:"Add Sort"})]})})},D=({column:t,onToggle:n})=>{const{attributes:o,listeners:r,setNodeRef:l,transform:c,transition:d}=a.useSortable({id:t.id}),C={transform:i.CSS.Transform.toString(c),transition:d},h=t.getIsVisible(),_="string"==typeof t.columnDef.header?t.columnDef.header:t.id;return e.jsxs("div",{ref:l,style:C,...o,className:"column-row",children:[e.jsx(s.Box,{...r,className:"drag-icon",children:e.jsx(H,{})}),e.jsx(s.Typography,{children:(g=_,g?g.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,(e=>e.toUpperCase())).trim():"")}),e.jsx(s.Box,{onClick:n,className:"visibility-icon",children:h?e.jsx(M,{}):e.jsx(z,{})})]});var g};l(".column-manager {\n width: 320px;\n padding: 0;\n background-color: var(--white);\n}\n.column-manager .header {\n width: 100%;\n padding: 10px 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-weight: 400;\n font-size: 18px;\n background-color: #fbfbfc;\n color: #0c2033;\n box-sizing: border-box;\n}\n.column-manager .content-wrapper {\n padding: 10px;\n}\n.column-manager .list-section {\n margin-top: 10px;\n}\n.column-manager .list-section .list-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n font-weight: 500;\n color: #888888;\n margin-bottom: 8px;\n padding: 10px 4px;\n}\n.column-manager .list-section .column-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 9px 8px;\n border-radius: 6px;\n transition: background-color 0.2s ease;\n cursor: grab;\n}\n.column-manager .list-section .column-row:hover {\n background-color: #f5f5f5;\n}\n.column-manager .list-section .column-row.hidden {\n opacity: 0.6;\n}\n.column-manager .list-section .column-row .drag-icon {\n cursor: grab;\n margin-right: 14px;\n color: #888;\n}\n.column-manager .list-section .column-row .visibility-icon {\n cursor: pointer;\n color: #505050;\n}\n.column-manager .list-section .column-row .MuiTypography-root {\n flex-grow: 1;\n font-size: 14px;\n font-weight: 400;\n}");const E=({anchorEl:t,onClose:n,table:i,columnOrder:r,setColumnOrder:l})=>{const c=Boolean(t),d=o.useSensors(o.useSensor(o.MouseSensor),o.useSensor(o.TouchSensor),o.useSensor(o.KeyboardSensor)),C=i.getAllLeafColumns(),h=r.map((e=>C.find((t=>t.id===e)))).filter((e=>e?.getIsVisible())),_=r.map((e=>C.find((t=>t.id===e)))).filter((e=>e&&!e.getIsVisible())),g=e=>{const t=i.getColumn(e);t?.toggleVisibility()};return e.jsx(s.Popover,{open:c,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},sx:{width:"600px"},children:e.jsxs("div",{className:"column-manager",children:[e.jsxs("div",{className:"header",children:[e.jsx(s.Typography,{variant:"h6",children:"Column"}),e.jsx(s.IconButton,{size:"small",onClick:n,children:e.jsx(j,{})})]}),e.jsx("div",{className:"content-wrapper",children:e.jsxs(o.DndContext,{sensors:d,collisionDetection:o.closestCenter,onDragEnd:e=>{const{active:t,over:n}=e;if(!n||t.id===n.id)return;const s=i.getColumn(t.id),o=i.getColumn(n.id);if(!s||!o)return;s.getIsVisible()!==o.getIsVisible()&&s.toggleVisibility();const c=r.indexOf(t.id),d=r.indexOf(n.id);l(a.arrayMove(r,c,d))},children:[e.jsxs("div",{className:"list-section",children:[e.jsxs("div",{className:"list-header",children:[e.jsx(s.Typography,{variant:"subtitle2",children:"Shown in List"}),e.jsx(s.Box,{onClick:()=>{C.forEach((e=>e.toggleVisibility(!1)))},fontStyle:{cursor:"pointer",color:"#C5C5C5",fontSize:"12px"},children:"Hide All"})]}),e.jsx(a.SortableContext,{items:h.map((e=>e.id)),strategy:a.verticalListSortingStrategy,children:h.map((t=>e.jsx(D,{column:t,onToggle:()=>g(t.id)},t.id)))})]}),e.jsxs("div",{className:"list-section",children:[e.jsxs("div",{className:"list-header",children:[e.jsx(s.Typography,{variant:"subtitle2",children:"Hidden in List"}),e.jsx(s.Box,{onClick:()=>{C.forEach((e=>e.toggleVisibility(!0)))},fontStyle:{cursor:"pointer",color:"#C5C5C5",fontSize:"12px"},children:"Show All"})]}),e.jsx(a.SortableContext,{items:_.map((e=>e.id)),strategy:a.verticalListSortingStrategy,children:_.map((t=>e.jsx(D,{column:t,onToggle:()=>g(t.id)},t.id)))})]})]})})]})})},R=({value:t,onChange:s})=>{const[o,a]=n.useState(!1),[i,r]=n.useState(t),l=n.useRef(null);T({ref:l,handler:()=>a(!1)});return e.jsxs("div",{className:"search-wrapper",ref:l,children:[e.jsx("div",{className:"search-icon ts--button",onClick:()=>a((e=>!e)),children:e.jsx(v,{})}),e.jsx("input",{type:"text",className:"search-input "+(o?"expanded":""),placeholder:"Type to search",value:i,onChange:e=>r(e.target.value),onKeyDown:e=>{"Enter"===e.key&&s(i)}})]})};function O({table:t,isCompactTable:o,fullscreenToggle:a,setIsCompactTable:i,paginationComponent:r,topbarOptions:l,tableStates:c}){const[d,C]=n.useState(!1),[h,_]=n.useState(null),[g,u]=n.useState("None"),[m,x]=n.useState(!1),[b,w]=n.useState(null),[j,v]=n.useState("Table"),[k,M]=n.useState(null),[z,H]=n.useState(t.getAllLeafColumns().map((e=>e.id)));n.useEffect((()=>{t.setColumnOrder(z)}),[z]);const{leftSideComponent:V,rightSideComponent:L,showColumnToggle:Z,showChangeLayoutToggle:D,viewMoreToggle:O,showSearch:A,showFilter:F,showCustomizationToggle:W,searchValue:U,onSearchChange:$}=l??{},{container:K}=I(),q=n.useRef(null);T({ref:q,handler:()=>x(!1)});const[G,J]=n.useState(!1),Q=n.useRef(null);return T({ref:Q,handler:()=>J(!1)}),e.jsxs("div",{className:"ts-topbar",children:[e.jsx("div",{className:"tabs-section",children:V}),e.jsxs("div",{className:"right-section",children:[L,r,A&&e.jsx(R,{value:U??"",onChange:$??(()=>{})}),D&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"change-layout ts--button",title:"Layout",children:e.jsx("div",{onClick:e=>{w(e.currentTarget)},children:e.jsx(f,{})})}),e.jsx(s.Popover,{open:Boolean(b),anchorEl:b,onClose:()=>w(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},container:K,sx:{mt:2.2},children:e.jsx(N,{onSelect:e=>{v(e),w(null)},selectedLayout:j})})]}),Z&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hide-column ts--button",onClick:e=>M(e.currentTarget),title:"Column",children:e.jsx(p,{})}),e.jsx(E,{anchorEl:k,onClose:()=>M(null),table:t,columnOrder:z,setColumnOrder:H})]}),F&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filter ts--button",title:"Sort",onClick:e=>_(e.currentTarget),children:e.jsx(y,{})}),e.jsx(P,{anchorEl:h,onClose:()=>_(null),columns:t.getAllLeafColumns().map((e=>({id:e.id,label:e.columnDef.meta?.label||e.id}))),onChange:e=>t.setSorting(e)})]}),W&&e.jsx("div",{className:"customization ts--button",title:"Filter",children:e.jsx(S,{})}),O&&e.jsx("div",{className:"view-more ts--button",title:"View More",children:e.jsx(B,{compactMode:o,onCompactToggle:e=>i("Compact"===e),isFullscreen:d,onFullscreenToggle:()=>{a(),C((e=>!e))},groupBy:g,onGroupByChange:e=>u(e),tableStates:c})})]})]})}function A({table:t,rowsPerPageArray:n,paginationOptions:s}){const o=t.getState().pagination.pageIndex+1,a=t.getPageCount(),i=t.getState().pagination.pageSize,r=t.getRowCount(),l=o*i-i+1,c=Math.min(o*i,r);return e.jsx("div",{className:"pagination_container",children:"full"===s?.paginationView?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"go_to_page_container",children:[" Go to page : ",e.jsx("input",{type:"number",defaultValue:o,onKeyDown:e=>{if("Enter"===e.key){const n=e.currentTarget.value?Number(e.currentTarget.value)-1:0;t.setPageIndex(n)}},style:{width:"60px",textAlign:"center"},min:1,max:t?.getPageCount()})," "]}),e.jsxs("div",{className:"rows_per_page_container",children:[e.jsx("span",{children:"Rows Per Page : "}),e.jsx("select",{value:t.getState().pagination.pageSize,onChange:e=>{t.setPageSize(Number(e.target.value))},children:n.map((t=>e.jsx("option",{value:t,children:t},t)))})]}),e.jsxs("div",{className:"records_range_container",children:[e.jsx("span",{children:"Showing "}),e.jsxs("strong",{children:[l," - ",c," of ",r]})]}),e.jsxs("span",{className:"page_range_container",children:[e.jsx("span",{children:" Page "}),e.jsxs("strong",{children:[o," of ",a," "]})]}),e.jsxs("div",{className:"pagination_btn_container",children:[e.jsx("button",{title:"First Page",className:"pagination_btn",disabled:!t.getCanPreviousPage(),onClick:()=>t.setPageIndex(0),children:e.jsx(C,{})}),e.jsx("button",{title:"Previous Page",className:"pagination_btn",disabled:!t.getCanPreviousPage(),onClick:()=>t.previousPage(),children:e.jsx(h,{})}),e.jsx("button",{title:"Next Page",className:"pagination_btn",disabled:!t.getCanNextPage(),onClick:()=>t.nextPage(),children:e.jsx(_,{})}),e.jsx("button",{title:"Last Page",className:"pagination_btn",disabled:!t.getCanNextPage(),onClick:()=>t.setPageIndex(a-1),children:e.jsx(g,{})})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"rows_per_page_container",children:e.jsx("select",{value:t.getState().pagination.pageSize,onChange:e=>{t.setPageSize(Number(e.target.value))},children:n.map((t=>e.jsx("option",{value:t,children:t},t)))})}),e.jsx("div",{className:"records_range_container",children:e.jsxs("strong",{children:[l," - ",c," of ",r]})}),e.jsxs("div",{className:"pagination_btn_container",children:[e.jsx("button",{title:"Previous Page",className:"pagination_btn",disabled:!t.getCanPreviousPage(),onClick:()=>t.previousPage(),children:e.jsx(h,{})}),e.jsx("button",{title:"Next Page",className:"pagination_btn",disabled:!t.getCanNextPage(),onClick:()=>t.nextPage(),children:e.jsx(_,{})})]})]})})}l(".pagination_container {\n --grey-300: #edeeef;\n padding: 8px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 1.5rem;\n font-size: 0.875rem;\n background-color: #fff;\n margin-bottom: 0.5rem;\n}\n@media screen and (max-width: 991px) {\n .pagination_container {\n justify-content: center;\n font-size: 0.75rem;\n }\n .pagination_container .go_to_page_container {\n display: none;\n }\n}\n@media screen and (max-width: 768px) {\n .pagination_container {\n gap: 1rem;\n }\n .pagination_container .records_range_container,\n .pagination_container .rows_per_page_container {\n display: none;\n }\n}\n.pagination_container .pagination_btn_container {\n display: flex;\n gap: 0.5rem;\n}\n.pagination_container .pagination_btn_container .pagination_btn {\n position: relative;\n user-select: none;\n border: none;\n border-radius: 50%;\n height: 2rem;\n width: 2rem;\n padding: 4px;\n cursor: pointer;\n transition: 0.4s;\n background-color: transparent;\n}\n@media screen and (max-width: 768px) {\n .pagination_container .pagination_btn_container .pagination_btn {\n height: 1.5rem;\n width: 1.5rem;\n padding: 0rem;\n }\n .pagination_container .pagination_btn_container .pagination_btn svg {\n width: 1.25rem;\n height: 1.25rem;\n }\n}\n.pagination_container .pagination_btn_container .pagination_btn:disabled {\n cursor: unset;\n fill: rgba(0, 0, 0, 0.18);\n}\n.pagination_container .pagination_btn_container .pagination_btn:not(:disabled) {\n cursor: pointer;\n}\n.pagination_container .pagination_btn_container .pagination_btn:focus {\n outline: none;\n}\n.pagination_container .pagination_btn_container .pagination_btn:hover:not(:disabled) {\n background-color: var(--grey-300);\n box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.6), 0 1px 3px 1px rgba(60, 64, 67, 0.3);\n}");const F=e=>e.replace(/\s+/g," ").trim(),W=e=>({left:"flex-start",center:"center",right:"flex-end"}[e||"left"]),U=e=>{const t=e.getIsPinned(),n="left"===t&&e.getIsLastColumn("left"),s="right"===t&&e.getIsFirstColumn("right");return{boxShadow:n?"-4px 0 4px -4px gray inset":s?"4px 0 4px -4px gray inset":void 0,background:"inherit",left:"left"===t?`${e.getStart("left")}px`:void 0,right:"right"===t?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",width:e.getSize()}},$=e=>{const t=e.getIsPinned(),n="left"===t&&e.getIsLastColumn("left"),s="right"===t&&e.getIsFirstColumn("right");return{boxShadow:n?"-4px 0 4px -4px gray inset":s?"4px 0 4px -4px gray inset":void 0,background:"inherit",left:"left"===t?`${e.getStart("left")}px`:void 0,right:"right"===t?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",width:e.getSize()}};function K({cell:n,tableStates:s}){const{isDragging:o,setNodeRef:r,transform:l}=a.useSortable({id:n.column.id}),{wrapColumns:c}=s,d=n.column.getIsPinned(),C={opacity:o?.8:1,transform:i.CSS.Translate.toString(l),transition:"width transform 0.2s ease-in-out",width:n.column.getSize(),...$(n.column),...(c.all_wrap||c[n.column.id])&&{wordBreak:"break-all"}};return e.jsx("td",{ref:r,style:{...C,zIndex:d?2:o?1:0},align:n.column.columnDef.meta?.align||"left",className:"ts__body__td",children:n.getIsPlaceholder()?null:t.flexRender(n.column.columnDef.cell,n.getContext())})}const q=[];for(let e=0;e<256;++e)q.push((e+256).toString(16).slice(1));let G;const J=new Uint8Array(16);var Q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function X(e,t,n){if(Q.randomUUID&&!t&&!e)return Q.randomUUID();const s=(e=e||{}).random??e.rng?.()??function(){if(!G){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");G=crypto.getRandomValues.bind(crypto)}return G(J)}();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(e,t=0){return(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase()}(s)}const Y=({checked:t=!1,disabled:s=!1,onChange:o=()=>{},indeterminate:a=!1,className:i,style:r,...l})=>{const c=X(),[d,C]=n.useState(t),h=n.useRef(null);return n.useEffect((()=>{C(t)}),[t]),n.useEffect((()=>{h.current&&(h.current.indeterminate=a)}),[a]),e.jsx("input",{id:c,ref:h,type:"checkbox",checked:d,onChange:e=>{const t=e.target.checked;C(t),o&&o(t)},disabled:s,className:i,...l})};function ee({table:s,featureOptions:o,NestedComponent:i,columnOrder:r,tableStates:l}){const{enableColumnReordering:c,enableRowSelection:d}=o,{wrapColumns:C}=l;return e.jsx("tbody",{className:"ts__body",children:s?.getRowModel()?.rows?.map((s=>(s=>{const h=e.jsxs("tr",{className:"ts__body__tr",children:[d&&e.jsx("td",{className:"ts__body__td ts__body__checkbox",style:{position:"sticky",left:0,width:"50px"},children:e.jsx(Y,{checked:s.getIsSelected(),indeterminate:s.getIsSomeSelected(),onChange:s.getToggleSelectedHandler(),className:"checkbox__input"})}),s?.getVisibleCells()?.map((n=>{const s={className:"ts__body__td",style:{...$(n.column),width:n.column.getSize(),...(C.all_wrap||C[n.column.id])&&{wordBreak:"break-all"}},align:n.column.columnDef.meta?.align||"left"};return c?e.jsx(a.SortableContext,{items:r,strategy:a.horizontalListSortingStrategy,children:e.jsx(K,{cell:n,featureOptions:o,tableStates:l})},n.id):e.jsx("td",{...s,children:t.flexRender(n?.column?.columnDef?.cell,n?.getContext())},n?.id)}))]},s.id);return s.getIsExpanded()?e.jsxs(n.Fragment,{children:[h,e.jsx("tr",{children:i&&e.jsx(i,{row:s})})]},s.id):h})(s)))})}function te({header:t}){return"left"!==t.column.getIsPinned()?e.jsx("div",{className:"ts--head--button",onClick:()=>t.column.pin("left")}):e.jsx("div",{className:"ts--head--button",onClick:()=>t.column.pin(!1),children:e.jsx(x,{})})}function ne({anchorEl:t,onClose:n,header:o,tableStates:a}){const i=Boolean(t),r=o.column,l="left"===r.getIsPinned(),{wrapColumns:C,setWrapColumns:h}=a;return e.jsx(s.Popover,{open:i,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsxs(s.List,{dense:!0,children:[e.jsxs(s.ListItemButton,{onClick:()=>r.toggleSorting(!1),children:[e.jsx(s.ListItemIcon,{children:e.jsx(c,{})}),e.jsx(s.ListItemText,{primary:"Sort ascending"})]}),e.jsxs(s.ListItemButton,{onClick:()=>r.toggleSorting(!0),children:[e.jsx(s.ListItemIcon,{children:e.jsx(d,{})}),e.jsx(s.ListItemText,{primary:"Sort descending"})]}),e.jsxs(s.ListItemButton,{onClick:()=>r.toggleVisibility(),children:[e.jsx(s.ListItemIcon,{children:e.jsx(k,{})}),e.jsx(s.ListItemText,{primary:"Hide in view"})]}),e.jsxs(s.ListItemButton,{onClick:()=>{r.pin(!l&&"left")},children:[e.jsx(s.ListItemIcon,{children:l?e.jsx(x,{}):e.jsx(m,{})}),e.jsx(s.ListItemText,{primary:l?"Unfreeze column":"Freeze up to column"})]}),e.jsxs(s.ListItemButton,{children:[e.jsx(s.ListItemText,{primary:"Wrap Cell"}),e.jsx(s.Switch,{checked:C.all_wrap||C[r.id],onChange:()=>{return e=r.id,void h((t=>({...t,[e]:!t[e],all_wrap:!1})));var e}})]})]})})}function se({header:s,featureOptions:o,tableStates:r}){const{enableColumnPinning:l}=o,[C,h]=n.useState(null),_=()=>{h(null)},{isDragging:g,transform:p,attributes:m,listeners:x}=a.useSortable({id:s.column.id}),b=s.column.getIsPinned(),f={opacity:g?.8:1,position:"relative",transform:i.CSS.Translate.toString(p),transition:"width transform 0.2s ease-in-out",width:s.column.getSize(),minWidth:`${s.column.columnDef.minSize??180}px`,maxWidth:`${s.column.columnDef.maxSize}px`};let w={className:"ts__content",style:{justifyContent:W(s?.column?.columnDef?.meta?.align)}};return e.jsxs("th",{onMouseLeave:_,className:"ts__head__th",colSpan:s.colSpan,onClick:e=>{h((t=>t?null:e.currentTarget))},style:{width:`${s.column.getSize()}px `,minWidth:`${s.column.columnDef.minSize}px`,maxWidth:`${s.column.columnDef.maxSize}px`,...f,...U(s.column),zIndex:b?3:g?1:0},children:[s.isPlaceholder?null:e.jsxs("div",{...w,children:[e.jsxs("div",{className:(""+(s.column.getCanSort()?"ts__content__sort":"")).trim(),children:[t.flexRender(s.column.columnDef.header,s.getContext()),{asc:e.jsx(c,{}),desc:e.jsx(d,{})}[s.column.getIsSorted()]??null]}),l&&e.jsx(te,{header:s,featureOptions:o,tableStates:r}),e.jsx("div",{...m,...x,className:"ts__dnd__button",children:e.jsx(u,{})})]}),s.column.getCanResize()?e.jsx("div",{onDoubleClick:()=>s.column.resetSize(),onMouseDown:s.getResizeHandler(),onTouchStart:s.getResizeHandler(),className:"column__resize "+(s.column.getIsResizing()?"is__resizing":"")}):null,e.jsx(ne,{anchorEl:C,onClose:_,header:s,tableStates:r})]},s?.id)}function oe({table:s,featureOptions:o,columnOrder:i,tableStates:r}){const{stickyHeader:l,enableColumnReordering:C,enableColumnPinning:h,enableRowSelection:_}=o,[g,p]=n.useState(null);n.useState(!1);const u=e=>{p((t=>t?null:e.currentTarget))};return e.jsx("thead",{className:("ts__head "+(l?"ts--sticky":"")).trim(),children:s.getHeaderGroups().map((n=>e.jsxs("tr",{className:"ts__head__tr",children:[_&&e.jsx("th",{className:"ts__head__th ts__head__checkbox",style:{position:"sticky",left:0,width:"50px"},children:e.jsx("div",{className:"ts__content",children:e.jsx(Y,{checked:s.getIsAllRowsSelected(),indeterminate:s.getIsSomeRowsSelected(),onChange:()=>s.toggleAllRowsSelected()})})}),n.headers.map((n=>{let s={className:"ts__content",style:{justifyContent:W(n?.column?.columnDef?.meta?.align)}};return C?e.jsx(a.SortableContext,{items:i,strategy:a.horizontalListSortingStrategy,children:e.jsx(se,{header:n,featureOptions:o,tableStates:r})},n?.id):e.jsxs("th",{className:"ts__head__th",colSpan:n.colSpan,style:{...U(n.column),width:`${n.column.getSize()}px`,minWidth:`${n.column.columnDef.minSize}px`,maxWidth:`${n.column.columnDef.maxSize}px`},onClick:u,children:[n.isPlaceholder?null:e.jsxs("div",{...s,children:[e.jsxs("div",{className:(""+(n.column.getCanSort()?"ts__content__sort":"")).trim(),children:[t.flexRender(n.column.columnDef.header,n.getContext()),{asc:e.jsx(c,{}),desc:e.jsx(d,{})}[n.column.getIsSorted()]??null]}),h&&e.jsx(te,{header:n,featureOptions:o,tableStates:r})]}),n.column.getCanResize()?e.jsx("div",{onDoubleClick:()=>n.column.resetSize(),onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),className:"column__resize "+(n.column.getIsResizing()?"is__resizing":"")}):null]},n?.id)}))]},n?.id)))})}function ae({table:t,featureOptions:n,NestedComponent:s,columnOrder:o,isCompactTable:a,tableStates:i}){const{striped:r}=n;return e.jsxs("table",{className:F(`ts__table ${r?"ts--striped":""} ${a?"ts--compact":""}`),children:[e.jsx(oe,{table:t,featureOptions:n,columnOrder:o,tableStates:i}),e.jsx(ee,{table:t,featureOptions:n,NestedComponent:s,columnOrder:o,tableStates:i})]})}function ie({table:t,featureOptions:n,NestedComponent:s,columnOrder:i,setColumnOrder:l,isCompactTable:c,tableStates:d}){const C=o.useSensors(o.useSensor(o.MouseSensor,{}),o.useSensor(o.TouchSensor,{}),o.useSensor(o.KeyboardSensor,{}));return e.jsx(o.DndContext,{collisionDetection:o.closestCenter,modifiers:[r.restrictToHorizontalAxis],onDragEnd:e=>{const{active:t,over:n}=e;t&&n&&t.id!==n.id&&l((e=>{const s=e.indexOf(t.id),o=e.indexOf(n.id);return a.arrayMove(e,s,o)}))},sensors:C,children:e.jsx(ae,{table:t,featureOptions:n,NestedComponent:s,columnOrder:i,setColumnOrder:l,isCompactTable:c,tableStates:d})})}l(".table-tabs .tabs {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 0rem;\n padding: 0rem;\n}\n.table-tabs .tabs .tabs-settings {\n margin-left: 0.1rem;\n margin-right: 0.5rem;\n cursor: pointer;\n}\n.table-tabs .tabs .tab {\n display: flex;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n cursor: pointer;\n color: var(--grey-900);\n font-size: 0.875rem;\n font-family: var(--fira-700);\n}\n.table-tabs .tabs .tab .tab__label {\n font-family: inherit;\n}\n.table-tabs .tabs .tab.active {\n background: var(--grey-500);\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n backdrop-filter: blur(200px);\n}\n.table-tabs .tabs .tabs-dropdown {\n margin-left: 1rem;\n cursor: pointer;\n}"),exports.CraftTableTabs=function({loading:t=!1,tabsData:n=[],activeTab:o="ALL",onClick:a,tableStates:i}){return e.jsx("div",{className:"table-tabs",children:t?e.jsx("div",{className:"tabs-loader",children:e.jsx(s.CircularProgress,{size:24})}):e.jsx("ul",{className:"tabs",children:n?.length>0&&n.map((({tab_value:t,tab_value_count:n})=>e.jsxs("li",{className:F("tab "+(o===t?"active":"")),onClick:()=>{return e=t||"ALL",a&&a(e),void i.setPagination((e=>({...e,pageIndex:0})));var e},children:[e.jsx("span",{className:"tab__label",children:"string"==typeof t?t.toUpperCase():"UNKNOWN"}),e.jsx("span",{className:"count",children:n})]},t)))})})},exports.TableWrapper=function({data:s=[],columns:o=[],tableStates:a,paginationOptions:i,featureOptions:r,topbarOptions:l,nestedComponent:c,loadingOptions:d={isLoading:!1},customRenderFn:C={},shouldHideColumn:h}){if(!Array.isArray(s))throw new Error("data must be an array of objects.");const[_,g]=n.useState([]);n.useEffect((()=>{const e=o.filter((e=>{const t="accessorKey"in e?e.accessorKey:void 0;return"function"!=typeof h||!h(t)})).map(((e,t)=>{const n="accessorKey"in e?e.accessorKey:`col_${t}`;return{...e,id:n,cell:t=>{if("custom"===e.meta?.type&&e?.meta?.propName){const n=C?.[e.meta.propName];return"function"==typeof n?n({value:t.getValue(),row:t.row,table:t.table.getRowModel().rows}):t.getValue()}return"function"==typeof e.cell?e.cell(t):t.getValue()}}}));g(e)}),[o,a]);const[p,u]=n.useState((()=>_.map((e=>e.id))));n.useEffect((()=>{_.length>0&&u(_.map((e=>e.id)))}),[_]);const[m,x]=n.useState(r?.compactTable??!1),f=n.useRef(null);n.useEffect((()=>{x(r?.compactTable??!1)}),[r?.compactTable]);const w={showPagination:!0,paginationPosition:"bottom",paginationView:"full",...i},j=w?.totalRows??s.length,v=w?.rowsPerPageArray??[25,50,100,150],y={showColumnToggle:!0,showCompactTableToggle:!0,showFullscreenToggle:!0,showChangeLayoutToggle:!0,viewMoreToggle:!0,showAddNewButton:!0,showSearch:!0,showFilter:!0,showCustomizationToggle:!0,tableStates:a,...l},S={enableTopbar:!0,enableSorting:!0,enableServerSidePagination:!1,enableServerSideSorting:!1,enableRowSelection:!1,enableColumnResizing:!0,enableColumnReordering:!0,enableColumnPinning:!0,enableMultiColumnSorting:!0,compactTable:!1,stickyHeader:!0,enableWordBreakAll:!1,striped:!1,...r},{enableTopbar:k,enableRowSelection:M,enableServerSidePagination:z,enableServerSideSorting:H,enableSorting:V,enableColumnResizing:L,enableColumnReordering:N,enableColumnPinning:T}=S,{sorting:B,setSorting:Z,pagination:P,setPagination:D,rowSelection:E,setRowSelection:R,expanded:F,setExpanded:W}=a,U=t.useReactTable({data:s,columns:_,state:{sorting:B,pagination:P,rowSelection:E,columnOrder:p,expanded:F},getCoreRowModel:t.getCoreRowModel(),enableSorting:V,onSortingChange:Z,getSortedRowModel:t.getSortedRowModel(),manualSorting:H,getPaginationRowModel:t.getPaginationRowModel(),onPaginationChange:D,rowCount:j,manualPagination:z,enableRowSelection:M,onRowSelectionChange:R,enableColumnResizing:L,columnResizeDirection:"ltr",columnResizeMode:"onChange",onColumnOrderChange:u,enableColumnPinning:T,getExpandedRowModel:t.getExpandedRowModel(),onExpandedChange:W,getSubRows:e=>e.subRows??[]}),{isLoading:$,loadingComponent:K,loaderText:q}=d,{isFullscreen:G}=I();return e.jsx("div",{className:"ts__table__container",ref:f,children:$?K??e.jsxs("div",{className:"ts__loader",children:[e.jsx(b,{}),q&&e.jsx("p",{children:q})]}):e.jsxs(e.Fragment,{children:[k&&e.jsx(O,{table:U,topbarOptions:y,isCompactTable:m,setIsCompactTable:x,fullscreenToggle:()=>{document.fullscreenElement?document.exitFullscreen():f.current?.requestFullscreen().catch((e=>{console.error("Error attempting to enable fullscreen mode:",e)}))},paginationComponent:!0===w?.showPagination&&"top"===w?.paginationPosition?e.jsx(A,{table:U,rowsPerPageArray:v,paginationOptions:w}):null,tableStates:a}),e.jsx("div",{className:"ts__table__wrapper "+(G?"is-fullscreen":""),children:N?e.jsx(ie,{table:U,columnOrder:p,featureOptions:S,NestedComponent:c,setColumnOrder:u,isCompactTable:m,tableStates:a}):e.jsx(ae,{table:U,featureOptions:S,NestedComponent:c,columnOrder:p,setColumnOrder:u,isCompactTable:m,tableStates:a})}),!0===w?.showPagination&&"bottom"===w?.paginationPosition?e.jsx(A,{table:U,rowsPerPageArray:v,paginationOptions:w}):null]})})},exports.useCraftTable=function(e=25){const[t,s]=n.useState({pageIndex:0,pageSize:e}),[o,a]=n.useState([]),[i,r]=n.useState({}),[l,c]=n.useState({}),[d,C]=n.useState({all_wrap:!0}),[h,_]=n.useState(null);if(t.pageIndex<0||t.pageSize<=0)throw new Error("Invalid pagination values: pageIndex and pageSize must be positive.");return{sorting:o,setSorting:a,pagination:t,setPagination:s,rowSelection:i,setRowSelection:r,expanded:l,setExpanded:c,wrapColumns:d,setWrapColumns:C,globalWrapColumns:h,setGlobalWrapColumns:_}};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@tanstack/react-table"),n=require("react"),r=require("@mui/material"),o=require("@dnd-kit/core"),a=require("@dnd-kit/sortable"),s=require("@dnd-kit/utilities"),i=require("@mui/icons-material/Close"),l=require("@mui/material/Box"),d=require("react-hook-form"),c=require("@mui/x-date-pickers/LocalizationProvider"),p=require("@mui/x-date-pickers/DatePicker"),u=require("@mui/x-date-pickers/AdapterDateFns"),C=require("moment"),h=require("@mui/icons-material/Search"),x=require("@mui/icons-material/ArrowBackIosNew"),m=require("axios"),g=require("uuid"),_=require("@dnd-kit/modifiers");function b(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}b('.ts__table__container {\n --black: #000;\n --white: #fff;\n --grey-100: #fafafa;\n --grey-200: #f4f4f4;\n --grey-300: #edeeef;\n --grey-500: #dcddde;\n --grey-600: #bbbbbd;\n --grey-700: #77787b;\n --grey-900: #414042;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n}\n.ts__table__container * {\n box-sizing: border-box;\n}\n.ts__table__container .ts__loader {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n color: var(--grey-900);\n font-size: 1.2rem;\n}\n.ts__table__container .ts__table__wrapper {\n overflow-x: auto;\n max-height: calc(100vh - 110px);\n}\n.ts__table__container .ts__table__wrapper.is-fullscreen {\n max-height: calc(100vh - 56px);\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--striped > .ts__body > .ts__body__tr:nth-of-type(odd) {\n background-color: var(--grey-200);\n}\n.ts__table__container .ts__table__wrapper .ts__table:not(.ts--striped) > .ts__body > .ts__body__tr:hover {\n background-color: var(--grey-100);\n box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.05), inset 0 -2px 2px rgba(0, 0, 0, 0.05);\n}\n.ts__table__container .ts__table__wrapper .ts__table:not(.ts--striped) > .ts__head > .ts__head__tr {\n background-color: var(--grey-100);\n}\n.ts__table__container .ts__table__wrapper .ts__table:not(.ts--striped) > .ts__head > .ts__head__tr .ts__head__th {\n border: 1px solid var(--grey-500);\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__head > .ts__head__tr > .ts__head__th {\n padding: 0.25rem 0.5rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__head > .ts__head__tr > .ts__head__th .ts__content {\n font-size: 0.875rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__body > .ts__body__tr > .ts__body__td {\n padding: 0.25rem 0.5rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table.ts--compact .ts__body > .ts__body__tr > .ts__body__td .ts__content {\n font-size: 0.75rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table {\n width: max-content;\n min-width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head.ts--sticky {\n position: sticky;\n top: 0rem;\n z-index: 3;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head {\n position: relative;\n box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr {\n background-color: var(--white);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th {\n position: relative;\n padding: 0.5rem 1rem;\n border: 1px solid var(--grey-300);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__dnd__button {\n color: var(--grey-100);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__dnd__button:hover {\n scale: 1.1;\n color: var(--grey-900);\n width: max-content;\n height: max-content;\n cursor: grabbing;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts__content__sort {\n cursor: pointer;\n user-select: none;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts__content__sort svg {\n margin-left: 0.25rem;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts--head--button {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts--head--button:hover {\n scale: 1.1;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .ts__content .ts--head--button svg {\n color: var(--grey-700);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .column__resize {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n width: 5px;\n background: rgba(0, 0, 0, 0.5);\n cursor: col-resize;\n user-select: none;\n touch-action: none;\n opacity: 0;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .column__resize:hover {\n opacity: 1;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__head .ts__head__tr .ts__head__th .column__resize.is__resizing {\n background: rgba(0, 0, 0, 0.8);\n opacity: 1;\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__body .ts__body__tr {\n background-color: var(--white);\n}\n.ts__table__container .ts__table__wrapper .ts__table .ts__body .ts__body__tr .ts__body__td {\n font-size: 0.875rem;\n padding: 0.5rem 1rem;\n border-top: 1px solid var(--grey-300);\n border-bottom: 1px solid var(--grey-300);\n}');const f=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("polyline",{points:"19 12 12 5 5 12"})]}),j=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),e.jsx("polyline",{points:"5 12 12 19 19 12"})]}),w=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),e.jsx("path",{fill:"none",d:"M24 24H0V0h24v24z"})]}),v=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),e.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),y=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),e.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),S=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",children:[e.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),e.jsx("path",{fill:"none",d:"M0 0h24v24H0V0z"})]}),M=()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1.87183 11.6665C1.54039 11.6665 1.25667 11.5485 1.02067 11.3125C0.784667 11.0765 0.666667 10.7928 0.666667 10.4613V1.99982H0.5C0.358333 1.99982 0.239611 1.95188 0.143833 1.85599C0.0479445 1.7601 0 1.64132 0 1.49966C0 1.35788 0.0479445 1.23916 0.143833 1.14349C0.239611 1.04771 0.358333 0.999823 0.5 0.999823H3C3 0.836601 3.0575 0.69749 3.1725 0.58249C3.28739 0.467601 3.42644 0.410156 3.58967 0.410156H6.41033C6.57356 0.410156 6.71261 0.467601 6.8275 0.58249C6.9425 0.69749 7 0.836601 7 0.999823H9.5C9.64167 0.999823 9.76039 1.04777 9.85617 1.14366C9.95206 1.23955 10 1.35832 10 1.49999C10 1.64177 9.95206 1.76049 9.85617 1.85616C9.76039 1.95193 9.64167 1.99982 9.5 1.99982H9.33333V10.4613C9.33333 10.7928 9.21533 11.0765 8.97933 11.3125C8.74333 11.5485 8.45961 11.6665 8.12817 11.6665H1.87183ZM8.33333 1.99982H1.66667V10.4613C1.66667 10.5212 1.68589 10.5704 1.72433 10.6088C1.76278 10.6473 1.81194 10.6665 1.87183 10.6665H8.12817C8.18806 10.6665 8.23722 10.6473 8.27567 10.6088C8.31411 10.5704 8.33333 10.5212 8.33333 10.4613V1.99982ZM3.7695 9.33316C3.91117 9.33316 4.02989 9.28527 4.12567 9.18949C4.22133 9.0936 4.26917 8.97482 4.26917 8.83316V3.83316C4.26917 3.69149 4.22122 3.57271 4.12533 3.47682C4.02956 3.38104 3.91078 3.33316 3.769 3.33316C3.62733 3.33316 3.50861 3.38104 3.41283 3.47682C3.31717 3.57271 3.26933 3.69149 3.26933 3.83316V8.83316C3.26933 8.97482 3.31722 9.0936 3.413 9.18949C3.50889 9.28527 3.62772 9.33316 3.7695 9.33316ZM6.231 9.33316C6.37267 9.33316 6.49139 9.28527 6.58717 9.18949C6.68283 9.0936 6.73067 8.97482 6.73067 8.83316V3.83316C6.73067 3.69149 6.68278 3.57271 6.587 3.47682C6.49111 3.38104 6.37228 3.33316 6.2305 3.33316C6.08883 3.33316 5.97011 3.38104 5.87433 3.47682C5.77867 3.57271 5.73083 3.69149 5.73083 3.83316V8.83316C5.73083 8.97482 5.77878 9.0936 5.87467 9.18949C5.97044 9.28527 6.08922 9.33316 6.231 9.33316Z",fill:"#F63D68"})}),k=()=>e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M15 3.5H3C2.175 3.5 1.5 4.175 1.5 5V14C1.5 14.825 2.175 15.5 3 15.5H15C15.825 15.5 16.5 14.825 16.5 14V5C16.5 4.175 15.825 3.5 15 3.5ZM6 14H3V5H6V14ZM10.5 14H7.5V5H10.5V14ZM15 14H12V5H15V14Z",fill:"currentColor",stroke:"white",strokeWidth:"0.5"})}),F=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tabler-icon tabler-icon-grip-horizontal",transform:"rotate(90)",children:[e.jsx("path",{d:"M10 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),e.jsx("path",{d:"M10 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),e.jsx("path",{d:"M18 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),e.jsx("path",{d:"M18 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]}),z=t=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1rem",width:"1rem",...t,children:e.jsx("path",{d:"M16 12V4h1V2H7v2h1v8l-2 2v2h5.2v6h1.6v-6H18v-2l-2-2m-7.2 2l1.2-1.2V4h4v8.8l1.2 1.2H8.8z"})}),T=t=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1rem",width:"1rem",...t,children:e.jsx("path",{d:"M8 6.2V4H7V2h10v2h-1v8l2 2v2h-.2L14 12.2V4h-4v4.2l-2-2m12 14.5L18.7 22l-5.9-5.9V22h-1.6v-6H6v-2l2-2v-.7l-6-6L3.3 4 20 20.7M8.8 14h1.8l-.9-.9-.9.9z"})}),D=()=>e.jsxs("svg",{viewBox:"0 0 60 60",width:"4rem",children:[e.jsx("circle",{fill:"currentColor",stroke:"none",cx:"6",cy:"30",r:"5",children:e.jsx("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),e.jsx("circle",{fill:"currentColor",stroke:"none",cx:"24",cy:"30",r:"5",children:e.jsx("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),e.jsx("circle",{fill:"currentColor",stroke:"none",cx:"42",cy:"30",r:"5",children:e.jsx("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]}),V=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12587",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12587)",children:e.jsx("path",{d:"M4.42311 17.0834C4.00214 17.0834 3.64582 16.9375 3.35416 16.6459C3.06249 16.3542 2.91666 15.9979 2.91666 15.5769V4.42315C2.91666 4.00217 3.06249 3.64585 3.35416 3.35419C3.64582 3.06252 4.00214 2.91669 4.42311 2.91669H15.5769C15.9978 2.91669 16.3542 3.06252 16.6458 3.35419C16.9375 3.64585 17.0833 4.00217 17.0833 4.42315V15.5769C17.0833 15.9979 16.9375 16.3542 16.6458 16.6459C16.3542 16.9375 15.9978 17.0834 15.5769 17.0834H4.42311ZM4.42311 15.8334H9.37499V4.16669H4.42311C4.35895 4.16669 4.3002 4.19342 4.24687 4.24689C4.19339 4.30023 4.16666 4.35898 4.16666 4.42315V15.5769C4.16666 15.6411 4.19339 15.6998 4.24687 15.7531C4.3002 15.8066 4.35895 15.8334 4.42311 15.8334ZM10.625 15.8334H15.5769C15.641 15.8334 15.6998 15.8066 15.7531 15.7531C15.8066 15.6998 15.8333 15.6411 15.8333 15.5769V10H10.625V15.8334ZM10.625 8.75002H15.8333V4.42315C15.8333 4.35898 15.8066 4.30023 15.7531 4.24689C15.6998 4.19342 15.641 4.16669 15.5769 4.16669H10.625V8.75002Z",fill:"#1E1E1E"})})]}),L=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12719",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12719)",children:e.jsx("path",{d:"M4.99998 11.6666C4.54165 11.6666 4.14929 11.5035 3.8229 11.1771C3.49651 10.8507 3.33331 10.4583 3.33331 9.99998C3.33331 9.54165 3.49651 9.14929 3.8229 8.8229C4.14929 8.49651 4.54165 8.33331 4.99998 8.33331C5.45831 8.33331 5.85067 8.49651 6.17706 8.8229C6.50345 9.14929 6.66665 9.54165 6.66665 9.99998C6.66665 10.4583 6.50345 10.8507 6.17706 11.1771C5.85067 11.5035 5.45831 11.6666 4.99998 11.6666ZM9.99998 11.6666C9.54165 11.6666 9.14929 11.5035 8.8229 11.1771C8.49651 10.8507 8.33331 10.4583 8.33331 9.99998C8.33331 9.54165 8.49651 9.14929 8.8229 8.8229C9.14929 8.49651 9.54165 8.33331 9.99998 8.33331C10.4583 8.33331 10.8507 8.49651 11.1771 8.8229C11.5035 9.14929 11.6666 9.54165 11.6666 9.99998C11.6666 10.4583 11.5035 10.8507 11.1771 11.1771C10.8507 11.5035 10.4583 11.6666 9.99998 11.6666ZM15 11.6666C14.5416 11.6666 14.1493 11.5035 13.8229 11.1771C13.4965 10.8507 13.3333 10.4583 13.3333 9.99998C13.3333 9.54165 13.4965 9.14929 13.8229 8.8229C14.1493 8.49651 14.5416 8.33331 15 8.33331C15.4583 8.33331 15.8507 8.49651 16.1771 8.8229C16.5035 9.14929 16.6666 9.54165 16.6666 9.99998C16.6666 10.4583 16.5035 10.8507 16.1771 11.1771C15.8507 11.5035 15.4583 11.6666 15 11.6666Z",fill:"#1C1B1F"})})]}),I=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.0833 3.73919L10.2608 2.91669L6.99996 6.17752L3.73913 2.91669L2.91663 3.73919L6.17746 7.00002L2.91663 10.2609L3.73913 11.0834L6.99996 7.82252L10.2608 11.0834L11.0833 10.2609L7.82246 7.00002L11.0833 3.73919Z",fill:"#0C2033"})}),B=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12583",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12583)",children:e.jsx("path",{d:"M7.93274 13.0127C6.50969 13.0127 5.30455 12.5192 4.31733 11.5321C3.33024 10.5449 2.8367 9.33971 2.8367 7.91666C2.8367 6.4936 3.33024 5.28847 4.31733 4.30124C5.30455 3.31416 6.50969 2.82062 7.93274 2.82062C9.3558 2.82062 10.5609 3.31416 11.5482 4.30124C12.5352 5.28847 13.0288 6.4936 13.0288 7.91666C13.0288 8.5118 12.9289 9.0802 12.7292 9.62187C12.5293 10.1635 12.2627 10.6346 11.9294 11.0352L16.7244 15.8302C16.8398 15.9455 16.8989 16.0905 16.9015 16.2652C16.9041 16.4399 16.8451 16.5876 16.7244 16.7083C16.6037 16.829 16.4573 16.8894 16.2852 16.8894C16.1133 16.8894 15.967 16.829 15.8463 16.7083L11.0513 11.9133C10.6346 12.2574 10.1554 12.5266 9.61378 12.721C9.07212 12.9155 8.51177 13.0127 7.93274 13.0127ZM7.93274 11.7629C9.00649 11.7629 9.91594 11.3903 10.6611 10.645C11.4064 9.89985 11.779 8.99041 11.779 7.91666C11.779 6.84291 11.4064 5.93346 10.6611 5.18833C9.91594 4.44305 9.00649 4.07041 7.93274 4.07041C6.85899 4.07041 5.94955 4.44305 5.20441 5.18833C4.45913 5.93346 4.08649 6.84291 4.08649 7.91666C4.08649 8.99041 4.45913 9.89985 5.20441 10.645C5.94955 11.3903 6.85899 11.7629 7.93274 11.7629Z",fill:"#1E1E1E"})})]}),H=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12710",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12710)",children:e.jsx("path",{d:"M7.63605 10.5369C7.45883 10.5369 7.31036 10.477 7.19064 10.3571C7.07105 10.2374 7.01126 10.089 7.01126 9.9119V4.4696L5.08022 6.40065C4.96744 6.51606 4.82654 6.57377 4.65751 6.57377C4.48848 6.57377 4.33932 6.51398 4.21001 6.3944C4.0807 6.26398 4.01605 6.11488 4.01605 5.94711C4.01605 5.77947 4.0807 5.63099 4.21001 5.50169L7.10105 2.61065C7.17897 2.53259 7.26154 2.47759 7.34876 2.44565C7.43612 2.41356 7.52966 2.39752 7.62939 2.39752C7.72911 2.39752 7.82383 2.41363 7.91355 2.44586C8.00327 2.47822 8.08661 2.53315 8.16355 2.61065L11.0754 5.52252C11.1993 5.64641 11.2604 5.79009 11.2588 5.95356C11.2572 6.11704 11.1918 6.26398 11.0625 6.3944C10.9332 6.51398 10.7868 6.57592 10.6233 6.58023C10.4599 6.5844 10.3136 6.5219 10.1844 6.39273L8.26126 4.4696V9.91981C8.26126 10.0947 8.20133 10.2412 8.08147 10.3594C7.96161 10.4777 7.81314 10.5369 7.63605 10.5369ZM12.3706 17.5946C12.2709 17.5946 12.1762 17.5784 12.0865 17.5461C11.9967 17.5138 11.9134 17.459 11.8365 17.3815L8.92459 14.4696C8.8007 14.3456 8.73959 14.2019 8.74126 14.0386C8.74279 13.8751 8.8082 13.7281 8.93751 13.5977C9.06682 13.4781 9.2132 13.4162 9.37668 13.4119C9.54015 13.4076 9.68647 13.4701 9.81564 13.5994L11.7388 15.5225V10.0721C11.7388 9.89738 11.7987 9.75085 11.9186 9.63252C12.0384 9.51433 12.1869 9.45523 12.364 9.45523C12.5412 9.45523 12.6897 9.51509 12.8094 9.63481C12.929 9.75467 12.9888 9.90315 12.9888 10.0802V15.5225L14.9198 13.5913C15.0326 13.476 15.1735 13.4184 15.3425 13.4184C15.5115 13.4184 15.6607 13.4781 15.79 13.5977C15.9193 13.7281 15.984 13.8772 15.984 14.0448C15.984 14.2126 15.9193 14.3611 15.79 14.4904L12.899 17.3815C12.8211 17.4594 12.7385 17.5144 12.6513 17.5465C12.5639 17.5786 12.4704 17.5946 12.3706 17.5946Z",fill:"#1C1B1F"})})]}),N=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_811_12698",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_811_12698)",children:e.jsx("path",{d:"M8.33333 15V13.3333H11.6667V15H8.33333ZM5 10.8333V9.16667H15V10.8333H5ZM2.5 6.66667V5H17.5V6.66667H2.5Z",fill:"#1C1B1F"})})]}),A=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_957_24305",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:e.jsx("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_957_24305)",children:e.jsx("path",{d:"M9.91805 5.74863C10.1889 6.01963 10.3983 6.34891 10.5462 6.73647C10.6941 7.12413 10.75 7.51325 10.714 7.9038C10.714 8.03202 10.6679 8.14058 10.5757 8.22947C10.4834 8.31836 10.3731 8.3628 10.2449 8.3628C10.1167 8.3628 10.0081 8.31836 9.91922 8.22947C9.83033 8.14058 9.78588 8.03202 9.78588 7.9038C9.82866 7.61069 9.80455 7.33291 9.71355 7.07047C9.62255 6.80813 9.4826 6.58252 9.29372 6.39363C9.10483 6.20475 8.87705 6.06136 8.61038 5.96347C8.34372 5.86558 8.06249 5.84013 7.76672 5.88713C7.63849 5.89147 7.52783 5.84852 7.43472 5.7583C7.34149 5.66819 7.29277 5.55902 7.28855 5.4308C7.28422 5.30258 7.32544 5.19186 7.41222 5.09863C7.49899 5.00552 7.60649 4.95686 7.73472 4.95263C8.12272 4.90819 8.51266 4.9588 8.90455 5.10447C9.29644 5.25025 9.63427 5.46497 9.91805 5.74863ZM8.00005 3.99997C7.76327 3.99997 7.53099 4.01152 7.30322 4.03463C7.07544 4.05763 6.84872 4.09563 6.62305 4.14863C6.48116 4.17774 6.35338 4.15747 6.23972 4.0878C6.12605 4.01813 6.04788 3.91791 6.00522 3.78713C5.96244 3.65213 5.97655 3.52375 6.04755 3.40197C6.11844 3.28019 6.22138 3.20474 6.35638 3.17563C6.62483 3.11152 6.89599 3.06625 7.16988 3.0398C7.44388 3.01325 7.7206 2.99997 8.00005 2.99997C9.43249 2.99997 10.7483 3.37219 11.9475 4.11663C13.1467 4.86108 14.0688 5.86836 14.714 7.13847C14.7585 7.22302 14.7908 7.30825 14.8109 7.39413C14.831 7.48002 14.841 7.57086 14.841 7.66663C14.841 7.76241 14.8327 7.85325 14.816 7.93913C14.7994 8.02502 14.7688 8.11024 14.7244 8.1948C14.5202 8.62213 14.2719 9.02063 13.9796 9.3903C13.6872 9.75997 13.3654 10.0995 13.0141 10.409C12.9107 10.5013 12.7926 10.5395 12.6597 10.5236C12.5267 10.5079 12.4175 10.4414 12.332 10.3243C12.2466 10.2072 12.2112 10.0816 12.2257 9.94747C12.2403 9.81325 12.2992 9.69997 12.4026 9.60763C12.7034 9.33497 12.9778 9.03691 13.2257 8.71347C13.4736 8.38991 13.6873 8.04097 13.8667 7.66663C13.3112 6.54441 12.5084 5.65275 11.4584 4.99163C10.4084 4.33052 9.2556 3.99997 8.00005 3.99997ZM8.00005 12.3333C6.5966 12.3333 5.31027 11.9583 4.14105 11.2083C2.97183 10.4583 2.04238 9.47047 1.35272 8.2448C1.29716 8.16025 1.25655 8.06836 1.23088 7.96913C1.20522 7.87002 1.19238 7.76919 1.19238 7.66663C1.19238 7.56408 1.20349 7.46491 1.22572 7.36913C1.24794 7.27347 1.28683 7.17991 1.34238 7.08847C1.59027 6.63547 1.87105 6.20402 2.18472 5.79413C2.49838 5.38436 2.85905 5.01708 3.26672 4.6923L1.76155 3.1768C1.66933 3.07769 1.62383 2.95997 1.62505 2.82363C1.62638 2.6873 1.67533 2.57086 1.77188 2.4743C1.86844 2.37775 1.98555 2.32947 2.12322 2.32947C2.26077 2.32947 2.37783 2.37775 2.47438 2.4743L13.5257 13.5256C13.618 13.618 13.667 13.7322 13.6725 13.8685C13.6781 14.0048 13.6292 14.1247 13.5257 14.2281C13.4292 14.3247 13.312 14.373 13.1744 14.373C13.0368 14.373 12.9198 14.3247 12.8232 14.2281L10.477 11.9025C10.0838 12.0546 9.67972 12.1644 9.26472 12.232C8.84983 12.2995 8.42827 12.3333 8.00005 12.3333ZM3.96938 5.3948C3.57872 5.69658 3.22761 6.0378 2.91605 6.41847C2.60449 6.79924 2.3436 7.2153 2.13338 7.66663C2.68894 8.78886 3.49172 9.68052 4.54172 10.3416C5.59172 11.0027 6.74449 11.3333 8.00005 11.3333C8.28638 11.3333 8.56822 11.3141 8.84555 11.2756C9.12288 11.2372 9.39833 11.1778 9.67188 11.0975L8.82822 10.2333C8.69322 10.2923 8.55838 10.3322 8.42372 10.3531C8.28916 10.3741 8.14794 10.3846 8.00005 10.3846C7.2436 10.3846 6.60149 10.1207 6.07372 9.59297C5.54594 9.06519 5.28205 8.42308 5.28205 7.66663C5.28205 7.51874 5.2936 7.37752 5.31672 7.24297C5.33983 7.1083 5.37872 6.97347 5.43338 6.83847L3.96938 5.3948Z",fill:"#1C1B1F"})})]}),O=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.00147 7.38467C7.75692 7.38467 8.39853 7.12028 8.92631 6.5915C9.45408 6.06272 9.71797 5.42061 9.71797 4.66517C9.71797 3.90972 9.45358 3.26811 8.9248 2.74033C8.39603 2.21256 7.75392 1.94867 6.99847 1.94867C6.24303 1.94867 5.60142 2.21306 5.07364 2.74183C4.54586 3.27061 4.28197 3.91272 4.28197 4.66817C4.28197 5.42361 4.54636 6.06522 5.07514 6.593C5.60392 7.12078 6.24603 7.38467 7.00147 7.38467ZM6.99997 6.46667C6.49997 6.46667 6.07497 6.29167 5.72497 5.94167C5.37497 5.59167 5.19997 5.16667 5.19997 4.66667C5.19997 4.16667 5.37497 3.74167 5.72497 3.39167C6.07497 3.04167 6.49997 2.86667 6.99997 2.86667C7.49997 2.86667 7.92497 3.04167 8.27497 3.39167C8.62497 3.74167 8.79997 4.16667 8.79997 4.66667C8.79997 5.16667 8.62497 5.59167 8.27497 5.94167C7.92497 6.29167 7.49997 6.46667 6.99997 6.46667ZM6.99997 9.33333C5.59653 9.33333 4.31297 8.95894 3.1493 8.21017C1.98564 7.4615 1.0568 6.4765 0.362803 5.25517C0.307248 5.15939 0.266637 5.06289 0.24097 4.96567C0.215414 4.86844 0.202637 4.76867 0.202637 4.66633C0.202637 4.564 0.215414 4.46433 0.24097 4.36733C0.266637 4.27033 0.307248 4.17394 0.362803 4.07817C1.0568 2.85683 1.98564 1.87183 3.1493 1.12317C4.31297 0.374389 5.59653 0 6.99997 0C8.40342 0 9.68697 0.374389 10.8506 1.12317C12.0143 1.87183 12.9431 2.85683 13.6371 4.07817C13.6927 4.17394 13.7333 4.27044 13.759 4.36767C13.7845 4.46489 13.7973 4.56467 13.7973 4.667C13.7973 4.76933 13.7845 4.869 13.759 4.966C13.7333 5.063 13.6927 5.15939 13.6371 5.25517C12.9431 6.4765 12.0143 7.4615 10.8506 8.21017C9.68697 8.95894 8.40342 9.33333 6.99997 9.33333ZM6.99997 8.33333C8.25553 8.33333 9.4083 8.00278 10.4583 7.34167C11.5083 6.68055 12.3111 5.78889 12.8666 4.66667C12.3111 3.54444 11.5083 2.65278 10.4583 1.99167C9.4083 1.33056 8.25553 1 6.99997 1C5.74442 1 4.59164 1.33056 3.54164 1.99167C2.49164 2.65278 1.68886 3.54444 1.1333 4.66667C1.68886 5.78889 2.49164 6.68055 3.54164 7.34167C4.59164 8.00278 5.74442 8.33333 6.99997 8.33333Z",fill:"#505050"})}),P=()=>e.jsx("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.91793 3.74863C9.18882 4.01963 9.39821 4.34891 9.54609 4.73647C9.69398 5.12413 9.74993 5.51325 9.71393 5.9038C9.71393 6.03202 9.66782 6.14058 9.57559 6.22947C9.48326 6.31836 9.37298 6.3628 9.24476 6.3628C9.11654 6.3628 9.00798 6.31836 8.9191 6.22947C8.83021 6.14058 8.78576 6.03202 8.78576 5.9038C8.82854 5.61069 8.80443 5.33291 8.71343 5.07047C8.62243 4.80813 8.48248 4.58252 8.29359 4.39363C8.1047 4.20475 7.87693 4.06136 7.61026 3.96347C7.34359 3.86558 7.06237 3.84013 6.76659 3.88713C6.63837 3.89147 6.52771 3.84852 6.43459 3.7583C6.34137 3.66819 6.29265 3.55902 6.28843 3.4308C6.28409 3.30258 6.32532 3.19186 6.41209 3.09863C6.49887 3.00552 6.60637 2.95686 6.73459 2.95263C7.12259 2.90819 7.51254 2.9588 7.90443 3.10447C8.29632 3.25025 8.63415 3.46497 8.91793 3.74863ZM6.99993 1.99997C6.76315 1.99997 6.53087 2.01152 6.30309 2.03463C6.07532 2.05763 5.84859 2.09563 5.62293 2.14863C5.48104 2.17774 5.35326 2.15747 5.23959 2.0878C5.12593 2.01813 5.04776 1.91791 5.00509 1.78713C4.96232 1.65213 4.97643 1.52375 5.04743 1.40197C5.11832 1.28019 5.22126 1.20474 5.35626 1.17563C5.62471 1.11152 5.89587 1.06625 6.16976 1.0398C6.44376 1.01325 6.72048 0.999967 6.99993 0.999967C8.43237 0.999967 9.74821 1.37219 10.9474 2.11663C12.1465 2.86108 13.0687 3.86836 13.7139 5.13847C13.7584 5.22302 13.7907 5.30825 13.8108 5.39413C13.8309 5.48002 13.8409 5.57086 13.8409 5.66663C13.8409 5.76241 13.8326 5.85325 13.8159 5.93913C13.7993 6.02502 13.7687 6.11024 13.7243 6.1948C13.52 6.62213 13.2718 7.02063 12.9794 7.3903C12.6871 7.75997 12.3653 8.09952 12.0139 8.40897C11.9106 8.5013 11.7925 8.53952 11.6596 8.52363C11.5266 8.50786 11.4174 8.44141 11.3319 8.3243C11.2465 8.20719 11.211 8.08158 11.2256 7.94747C11.2402 7.81325 11.2991 7.69997 11.4024 7.60763C11.7033 7.33497 11.9777 7.03691 12.2256 6.71347C12.4735 6.38991 12.6872 6.04097 12.8666 5.66663C12.311 4.54441 11.5083 3.65275 10.4583 2.99163C9.40826 2.33052 8.25548 1.99997 6.99993 1.99997ZM6.99993 10.3333C5.59648 10.3333 4.31015 9.9583 3.14093 9.2083C1.97171 8.4583 1.04226 7.47047 0.352594 6.2448C0.297039 6.16025 0.256427 6.06836 0.230761 5.96913C0.205094 5.87002 0.192261 5.76919 0.192261 5.66663C0.192261 5.56408 0.203372 5.46491 0.225594 5.36913C0.247816 5.27347 0.286705 5.17991 0.342261 5.08847C0.59015 4.63547 0.870927 4.20402 1.18459 3.79413C1.49826 3.38436 1.85893 3.01708 2.26659 2.6923L0.761427 1.1768C0.669205 1.07769 0.623705 0.959967 0.624927 0.823634C0.626261 0.6873 0.675205 0.570857 0.771761 0.474301C0.868316 0.377746 0.985427 0.329468 1.12309 0.329468C1.26065 0.329468 1.37771 0.377746 1.47426 0.474301L12.5256 11.5256C12.6179 11.618 12.6669 11.7322 12.6724 11.8685C12.678 12.0048 12.629 12.1247 12.5256 12.2281C12.429 12.3247 12.3119 12.373 12.1743 12.373C12.0367 12.373 11.9197 12.3247 11.8231 12.2281L9.47693 9.90247C9.08371 10.0546 8.67959 10.1644 8.2646 10.232C7.84971 10.2995 7.42815 10.3333 6.99993 10.3333ZM2.96926 3.3948C2.57859 3.69658 2.22748 4.0378 1.91593 4.41847C1.60437 4.79924 1.34348 5.2153 1.13326 5.66663C1.68882 6.78886 2.49159 7.68052 3.54159 8.34163C4.59159 9.00274 5.74437 9.3333 6.99993 9.3333C7.28626 9.3333 7.56809 9.31408 7.84543 9.27563C8.12276 9.23719 8.3982 9.1778 8.67176 9.09747L7.82809 8.2333C7.69309 8.2923 7.55826 8.33224 7.42359 8.35313C7.28904 8.37413 7.14782 8.38463 6.99993 8.38463C6.24348 8.38463 5.60137 8.12074 5.07359 7.59297C4.54582 7.06519 4.28193 6.42308 4.28193 5.66663C4.28193 5.51874 4.29348 5.37752 4.31659 5.24297C4.33971 5.1083 4.37859 4.97347 4.43326 4.83847L2.96926 3.3948Z",fill:"#C5C5C5"})}),R=()=>e.jsx("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.00005 11.0768C1.70394 11.0768 1.45044 10.9714 1.23955 10.7605C1.02866 10.5496 0.923218 10.2961 0.923218 9.99999C0.923218 9.70388 1.02866 9.45038 1.23955 9.23949C1.45044 9.0286 1.70394 8.92316 2.00005 8.92316C2.29616 8.92316 2.54966 9.0286 2.76055 9.23949C2.97144 9.45038 3.07688 9.70388 3.07688 9.99999C3.07688 10.2961 2.97144 10.5496 2.76055 10.7605C2.54966 10.9714 2.29616 11.0768 2.00005 11.0768ZM6.00005 11.0768C5.70394 11.0768 5.45044 10.9714 5.23955 10.7605C5.02866 10.5496 4.92322 10.2961 4.92322 9.99999C4.92322 9.70388 5.02866 9.45038 5.23955 9.23949C5.45044 9.0286 5.70394 8.92316 6.00005 8.92316C6.29616 8.92316 6.54966 9.0286 6.76055 9.23949C6.97144 9.45038 7.07688 9.70388 7.07688 9.99999C7.07688 10.2961 6.97144 10.5496 6.76055 10.7605C6.54966 10.9714 6.29616 11.0768 6.00005 11.0768ZM2.00005 7.07682C1.70394 7.07682 1.45044 6.97138 1.23955 6.76049C1.02866 6.5496 0.923218 6.2961 0.923218 5.99999C0.923218 5.70388 1.02866 5.45038 1.23955 5.23949C1.45044 5.0286 1.70394 4.92316 2.00005 4.92316C2.29616 4.92316 2.54966 5.0286 2.76055 5.23949C2.97144 5.45038 3.07688 5.70388 3.07688 5.99999C3.07688 6.2961 2.97144 6.5496 2.76055 6.76049C2.54966 6.97138 2.29616 7.07682 2.00005 7.07682ZM6.00005 7.07682C5.70394 7.07682 5.45044 6.97138 5.23955 6.76049C5.02866 6.5496 4.92322 6.2961 4.92322 5.99999C4.92322 5.70388 5.02866 5.45038 5.23955 5.23949C5.45044 5.0286 5.70394 4.92316 6.00005 4.92316C6.29616 4.92316 6.54966 5.0286 6.76055 5.23949C6.97144 5.45038 7.07688 5.70388 7.07688 5.99999C7.07688 6.2961 6.97144 6.5496 6.76055 6.76049C6.54966 6.97138 6.29616 7.07682 6.00005 7.07682ZM2.00005 3.07682C1.70394 3.07682 1.45044 2.97138 1.23955 2.76049C1.02866 2.5496 0.923218 2.2961 0.923218 1.99999C0.923218 1.70388 1.02866 1.45038 1.23955 1.23949C1.45044 1.0286 1.70394 0.923157 2.00005 0.923157C2.29616 0.923157 2.54966 1.0286 2.76055 1.23949C2.97144 1.45038 3.07688 1.70388 3.07688 1.99999C3.07688 2.2961 2.97144 2.5496 2.76055 2.76049C2.54966 2.97138 2.29616 3.07682 2.00005 3.07682ZM6.00005 3.07682C5.70394 3.07682 5.45044 2.97138 5.23955 2.76049C5.02866 2.5496 4.92322 2.2961 4.92322 1.99999C4.92322 1.70388 5.02866 1.45038 5.23955 1.23949C5.45044 1.0286 5.70394 0.923157 6.00005 0.923157C6.29616 0.923157 6.54966 1.0286 6.76055 1.23949C6.97144 1.45038 7.07688 1.70388 7.07688 1.99999C7.07688 2.2961 6.97144 2.5496 6.76055 2.76049C6.54966 2.97138 6.29616 3.07682 6.00005 3.07682Z",fill:"#A6A6A6"})}),Z=({...t})=>e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M4.50002 5.50002H1.16669C1.02502 5.50002 0.906298 5.45208 0.81052 5.35619C0.714632 5.2603 0.666687 5.14152 0.666687 4.99985C0.666687 4.85808 0.714632 4.73935 0.81052 4.64369C0.906298 4.54791 1.02502 4.50002 1.16669 4.50002H4.50002V1.16669C4.50002 1.02502 4.54797 0.906298 4.64385 0.81052C4.73974 0.714632 4.85852 0.666687 5.00019 0.666687C5.14197 0.666687 5.26069 0.714632 5.35635 0.81052C5.45213 0.906298 5.50002 1.02502 5.50002 1.16669V4.50002H8.83335C8.97502 4.50002 9.09374 4.54797 9.18952 4.64385C9.28541 4.73974 9.33335 4.85852 9.33335 5.00019C9.33335 5.14197 9.28541 5.26069 9.18952 5.35635C9.09374 5.45213 8.97502 5.50002 8.83335 5.50002H5.50002V8.83335C5.50002 8.97502 5.45208 9.09374 5.35619 9.18952C5.2603 9.28541 5.14152 9.33335 4.99985 9.33335C4.85808 9.33335 4.73935 9.28541 4.64369 9.18952C4.54791 9.09374 4.50002 8.97502 4.50002 8.83335V5.50002Z",fill:"#888888"})}),E={Board:e.jsx((()=>e.jsx("svg",{width:"13",height:"10",viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1.37179 9H4.05763V1H1.37179C1.3119 1 1.26274 1.01922 1.22429 1.05767C1.18585 1.09611 1.16663 1.14528 1.16663 1.20517V8.79483C1.16663 8.85472 1.18585 8.90389 1.22429 8.94233C1.26274 8.98078 1.3119 9 1.37179 9ZM5.05763 9H7.94229V1H5.05763V9ZM8.94229 9H11.6281C11.688 9 11.7372 8.98078 11.7756 8.94233C11.8141 8.90389 11.8333 8.85472 11.8333 8.79483V1.20517C11.8333 1.14528 11.8141 1.09611 11.7756 1.05767C11.7372 1.01922 11.688 1 11.6281 1H8.94229V9ZM1.37179 10C1.03501 10 0.749959 9.88333 0.516626 9.65C0.283293 9.41667 0.166626 9.13161 0.166626 8.79483V1.20517C0.166626 0.868389 0.283293 0.583333 0.516626 0.35C0.749959 0.116667 1.03501 0 1.37179 0H11.6281C11.9649 0 12.25 0.116667 12.4833 0.35C12.7166 0.583333 12.8333 0.868389 12.8333 1.20517V8.79483C12.8333 9.13161 12.7166 9.41667 12.4833 9.65C12.25 9.88333 11.9649 10 11.6281 10H1.37179Z",fill:"#A6A6A6"})})),{}),Table:e.jsx((()=>e.jsx("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.17954 9.16671H5.82054C5.96243 9.16671 6.08121 9.11882 6.17687 9.02304C6.27265 8.92737 6.32054 8.8086 6.32054 8.66671C6.32054 8.52482 6.27265 8.40604 6.17687 8.31037C6.08121 8.2146 5.96243 8.16671 5.82054 8.16671H3.17954C3.03765 8.16671 2.91887 8.2146 2.82321 8.31037C2.72743 8.40604 2.67954 8.52482 2.67954 8.66671C2.67954 8.8086 2.72743 8.92737 2.82321 9.02304C2.91887 9.11882 3.03765 9.16671 3.17954 9.16671ZM5.17954 6.50004H7.82054C7.96243 6.50004 8.08121 6.45215 8.17687 6.35637C8.27265 6.26071 8.32054 6.14193 8.32054 6.00004C8.32054 5.85815 8.27265 5.73937 8.17687 5.64371C8.08121 5.54793 7.96243 5.50004 7.82054 5.50004H5.17954C5.03765 5.50004 4.91887 5.54793 4.82321 5.64371C4.72743 5.73937 4.67954 5.85815 4.67954 6.00004C4.67954 6.14193 4.72743 6.26071 4.82321 6.35637C4.91887 6.45215 5.03765 6.50004 5.17954 6.50004ZM7.17954 3.83337H9.82054C9.96243 3.83337 10.0812 3.78549 10.1769 3.68971C10.2727 3.59404 10.3205 3.47526 10.3205 3.33337C10.3205 3.19148 10.2727 3.07271 10.1769 2.97704C10.0812 2.88126 9.96243 2.83337 9.82054 2.83337H7.17954C7.03765 2.83337 6.91887 2.88126 6.82321 2.97704C6.72743 3.07271 6.67954 3.19148 6.67954 3.33337C6.67954 3.47526 6.72743 3.59404 6.82321 3.68971C6.91887 3.78549 7.03765 3.83337 7.17954 3.83337ZM2.03854 11.6667C1.70176 11.6667 1.41671 11.55 1.18337 11.3167C0.950041 11.0834 0.833374 10.7983 0.833374 10.4615V1.53854C0.833374 1.20176 0.950041 0.916707 1.18337 0.683374C1.41671 0.450041 1.70176 0.333374 2.03854 0.333374H10.9615C11.2983 0.333374 11.5834 0.450041 11.8167 0.683374C12.05 0.916707 12.1667 1.20176 12.1667 1.53854V10.4615C12.1667 10.7983 12.05 11.0834 11.8167 11.3167C11.5834 11.55 11.2983 11.6667 10.9615 11.6667H2.03854ZM2.03854 10.6667H10.9615C11.0129 10.6667 11.0599 10.6453 11.1025 10.6025C11.1453 10.5599 11.1667 10.5129 11.1667 10.4615V1.53854C11.1667 1.48721 11.1453 1.44021 11.1025 1.39754C11.0599 1.35476 11.0129 1.33337 10.9615 1.33337H2.03854C1.98721 1.33337 1.94021 1.35476 1.89754 1.39754C1.85476 1.44021 1.83337 1.48721 1.83337 1.53854V10.4615C1.83337 10.5129 1.85476 10.5599 1.89754 10.6025C1.94021 10.6453 1.98721 10.6667 2.03854 10.6667Z",fill:"#A6A6A6"})})),{}),Timeline:e.jsx((()=>e.jsx("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.17954 9.16671H5.82054C5.96243 9.16671 6.08121 9.11882 6.17687 9.02304C6.27265 8.92737 6.32054 8.8086 6.32054 8.66671C6.32054 8.52482 6.27265 8.40604 6.17687 8.31037C6.08121 8.2146 5.96243 8.16671 5.82054 8.16671H3.17954C3.03765 8.16671 2.91887 8.2146 2.82321 8.31037C2.72743 8.40604 2.67954 8.52482 2.67954 8.66671C2.67954 8.8086 2.72743 8.92737 2.82321 9.02304C2.91887 9.11882 3.03765 9.16671 3.17954 9.16671ZM5.17954 6.50004H7.82054C7.96243 6.50004 8.08121 6.45215 8.17687 6.35637C8.27265 6.26071 8.32054 6.14193 8.32054 6.00004C8.32054 5.85815 8.27265 5.73937 8.17687 5.64371C8.08121 5.54793 7.96243 5.50004 7.82054 5.50004H5.17954C5.03765 5.50004 4.91887 5.54793 4.82321 5.64371C4.72743 5.73937 4.67954 5.85815 4.67954 6.00004C4.67954 6.14193 4.72743 6.26071 4.82321 6.35637C4.91887 6.45215 5.03765 6.50004 5.17954 6.50004ZM7.17954 3.83337H9.82054C9.96243 3.83337 10.0812 3.78549 10.1769 3.68971C10.2727 3.59404 10.3205 3.47526 10.3205 3.33337C10.3205 3.19148 10.2727 3.07271 10.1769 2.97704C10.0812 2.88126 9.96243 2.83337 9.82054 2.83337H7.17954C7.03765 2.83337 6.91887 2.88126 6.82321 2.97704C6.72743 3.07271 6.67954 3.19148 6.67954 3.33337C6.67954 3.47526 6.72743 3.59404 6.82321 3.68971C6.91887 3.78549 7.03765 3.83337 7.17954 3.83337ZM2.03854 11.6667C1.70176 11.6667 1.41671 11.55 1.18337 11.3167C0.950041 11.0834 0.833374 10.7983 0.833374 10.4615V1.53854C0.833374 1.20176 0.950041 0.916707 1.18337 0.683374C1.41671 0.450041 1.70176 0.333374 2.03854 0.333374H10.9615C11.2983 0.333374 11.5834 0.450041 11.8167 0.683374C12.05 0.916707 12.1667 1.20176 12.1667 1.53854V10.4615C12.1667 10.7983 12.05 11.0834 11.8167 11.3167C11.5834 11.55 11.2983 11.6667 10.9615 11.6667H2.03854ZM2.03854 10.6667H10.9615C11.0129 10.6667 11.0599 10.6453 11.1025 10.6025C11.1453 10.5599 11.1667 10.5129 11.1667 10.4615V1.53854C11.1667 1.48721 11.1453 1.44021 11.1025 1.39754C11.0599 1.35476 11.0129 1.33337 10.9615 1.33337H2.03854C1.98721 1.33337 1.94021 1.35476 1.89754 1.39754C1.85476 1.44021 1.83337 1.48721 1.83337 1.53854V10.4615C1.83337 10.5129 1.85476 10.5599 1.89754 10.6025C1.94021 10.6453 1.98721 10.6667 2.03854 10.6667Z",fill:"#A6A6A6"})})),{}),List:e.jsx((()=>e.jsx("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.20521 10.5C5.06354 10.5 4.94476 10.452 4.84887 10.3562C4.7531 10.2603 4.70521 10.1415 4.70521 9.99982C4.70521 9.85805 4.7531 9.73932 4.84887 9.64366C4.94476 9.54788 5.06354 9.49999 5.20521 9.49999H11.6667C11.8084 9.49999 11.9271 9.54794 12.0229 9.64382C12.1188 9.73971 12.1667 9.85849 12.1667 10.0002C12.1667 10.1419 12.1188 10.2607 12.0229 10.3563C11.9271 10.4521 11.8084 10.5 11.6667 10.5H5.20521ZM5.20521 6.49999C5.06354 6.49999 4.94476 6.45205 4.84887 6.35616C4.7531 6.26027 4.70521 6.14149 4.70521 5.99982C4.70521 5.85805 4.7531 5.73932 4.84887 5.64366C4.94476 5.54788 5.06354 5.49999 5.20521 5.49999H11.6667C11.8084 5.49999 11.9271 5.54794 12.0229 5.64382C12.1188 5.73971 12.1667 5.85849 12.1667 6.00016C12.1667 6.14194 12.1188 6.26066 12.0229 6.35632C11.9271 6.4521 11.8084 6.49999 11.6667 6.49999H5.20521ZM5.20521 2.49999C5.06354 2.49999 4.94476 2.45205 4.84887 2.35616C4.7531 2.26027 4.70521 2.14149 4.70521 1.99982C4.70521 1.85805 4.7531 1.73932 4.84887 1.64366C4.94476 1.54788 5.06354 1.49999 5.20521 1.49999H11.6667C11.8084 1.49999 11.9271 1.54794 12.0229 1.64382C12.1188 1.73971 12.1667 1.85849 12.1667 2.00016C12.1667 2.14194 12.1188 2.26066 12.0229 2.35632C11.9271 2.4521 11.8084 2.49999 11.6667 2.49999H5.20521ZM1.94237 11.109C1.63737 11.109 1.37632 11.0004 1.15921 10.7832C0.941985 10.566 0.833374 10.305 0.833374 9.99999C0.833374 9.69499 0.941985 9.43394 1.15921 9.21682C1.37632 8.9996 1.63737 8.89099 1.94237 8.89099C2.24737 8.89099 2.50843 8.9996 2.72554 9.21682C2.94276 9.43394 3.05137 9.69499 3.05137 9.99999C3.05137 10.305 2.94276 10.566 2.72554 10.7832C2.50843 11.0004 2.24737 11.109 1.94237 11.109ZM1.94237 7.10899C1.63737 7.10899 1.37632 7.00038 1.15921 6.78316C0.941985 6.56605 0.833374 6.30499 0.833374 5.99999C0.833374 5.69499 0.941985 5.43394 1.15921 5.21682C1.37632 4.9996 1.63737 4.89099 1.94237 4.89099C2.24737 4.89099 2.50843 4.9996 2.72554 5.21682C2.94276 5.43394 3.05137 5.69499 3.05137 5.99999C3.05137 6.30499 2.94276 6.56605 2.72554 6.78316C2.50843 7.00038 2.24737 7.10899 1.94237 7.10899ZM1.94237 3.10899C1.63737 3.10899 1.37632 3.00038 1.15921 2.78316C0.941985 2.56605 0.833374 2.30499 0.833374 1.99999C0.833374 1.69499 0.941985 1.43394 1.15921 1.21682C1.37632 0.999602 1.63737 0.890991 1.94237 0.890991C2.24737 0.890991 2.50843 0.999602 2.72554 1.21682C2.94276 1.43394 3.05137 1.69499 3.05137 1.99999C3.05137 2.30499 2.94276 2.56605 2.72554 2.78316C2.50843 3.00038 2.24737 3.10899 1.94237 3.10899Z",fill:"#A6A6A6"})})),{}),Calendar:e.jsx((()=>e.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.03854 13.3333C1.70176 13.3333 1.41671 13.2167 1.18337 12.9833C0.950041 12.75 0.833374 12.465 0.833374 12.1282V3.20518C0.833374 2.8684 0.950041 2.58334 1.18337 2.35001C1.41671 2.11668 1.70176 2.00001 2.03854 2.00001H2.96154V1.10251C2.96154 0.956399 3.01049 0.834399 3.10837 0.73651C3.20626 0.638732 3.32826 0.589844 3.47437 0.589844C3.6206 0.589844 3.7426 0.638732 3.84037 0.73651C3.93826 0.834399 3.98721 0.956399 3.98721 1.10251V2.00001H9.03854V1.08984C9.03854 0.947955 9.08637 0.829121 9.18204 0.733344C9.27782 0.637677 9.39665 0.589844 9.53854 0.589844C9.68043 0.589844 9.79921 0.637677 9.89487 0.733344C9.99065 0.829121 10.0385 0.947955 10.0385 1.08984V2.00001H10.9615C11.2983 2.00001 11.5834 2.11668 11.8167 2.35001C12.05 2.58334 12.1667 2.8684 12.1667 3.20518V12.1282C12.1667 12.465 12.05 12.75 11.8167 12.9833C11.5834 13.2167 11.2983 13.3333 10.9615 13.3333H2.03854ZM2.03854 12.3333H10.9615C11.0129 12.3333 11.0599 12.312 11.1025 12.2692C11.1453 12.2265 11.1667 12.1795 11.1667 12.1282V5.87184H1.83337V12.1282C1.83337 12.1795 1.85476 12.2265 1.89754 12.2692C1.94021 12.312 1.98721 12.3333 2.03854 12.3333ZM1.83337 4.87184H11.1667V3.20518C11.1667 3.15384 11.1453 3.10684 11.1025 3.06418C11.0599 3.0214 11.0129 3.00001 10.9615 3.00001H2.03854C1.98721 3.00001 1.94021 3.0214 1.89754 3.06418C1.85476 3.10684 1.83337 3.15384 1.83337 3.20518V4.87184ZM6.50004 8.38468C6.33682 8.38468 6.19771 8.32718 6.08271 8.21218C5.96782 8.09729 5.91037 7.95818 5.91037 7.79484C5.91037 7.63162 5.96782 7.49251 6.08271 7.37751C6.19771 7.26262 6.33682 7.20518 6.50004 7.20518C6.66326 7.20518 6.80237 7.26262 6.91737 7.37751C7.03226 7.49251 7.08971 7.63162 7.08971 7.79484C7.08971 7.95818 7.03226 8.09729 6.91737 8.21218C6.80237 8.32718 6.66326 8.38468 6.50004 8.38468ZM3.83337 8.38468C3.67015 8.38468 3.53104 8.32718 3.41604 8.21218C3.30115 8.09729 3.24371 7.95818 3.24371 7.79484C3.24371 7.63162 3.30115 7.49251 3.41604 7.37751C3.53104 7.26262 3.67015 7.20518 3.83337 7.20518C3.9966 7.20518 4.13571 7.26262 4.25071 7.37751C4.3656 7.49251 4.42304 7.63162 4.42304 7.79484C4.42304 7.95818 4.3656 8.09729 4.25071 8.21218C4.13571 8.32718 3.9966 8.38468 3.83337 8.38468ZM9.16671 8.38468C9.00348 8.38468 8.86437 8.32718 8.74937 8.21218C8.63449 8.09729 8.57704 7.95818 8.57704 7.79484C8.57704 7.63162 8.63449 7.49251 8.74937 7.37751C8.86437 7.26262 9.00348 7.20518 9.16671 7.20518C9.32993 7.20518 9.46904 7.26262 9.58404 7.37751C9.69893 7.49251 9.75637 7.63162 9.75637 7.79484C9.75637 7.95818 9.69893 8.09729 9.58404 8.21218C9.46904 8.32718 9.32993 8.38468 9.16671 8.38468ZM6.50004 11C6.33682 11 6.19771 10.9425 6.08271 10.8275C5.96782 10.7126 5.91037 10.5736 5.91037 10.4103C5.91037 10.247 5.96782 10.1079 6.08271 9.99301C6.19771 9.87801 6.33682 9.82051 6.50004 9.82051C6.66326 9.82051 6.80237 9.87801 6.91737 9.99301C7.03226 10.1079 7.08971 10.247 7.08971 10.4103C7.08971 10.5736 7.03226 10.7126 6.91737 10.8275C6.80237 10.9425 6.66326 11 6.50004 11ZM3.83337 11C3.67015 11 3.53104 10.9425 3.41604 10.8275C3.30115 10.7126 3.24371 10.5736 3.24371 10.4103C3.24371 10.247 3.30115 10.1079 3.41604 9.99301C3.53104 9.87801 3.67015 9.82051 3.83337 9.82051C3.9966 9.82051 4.13571 9.87801 4.25071 9.99301C4.3656 10.1079 4.42304 10.247 4.42304 10.4103C4.42304 10.5736 4.3656 10.7126 4.25071 10.8275C4.13571 10.9425 3.9966 11 3.83337 11ZM9.16671 11C9.00348 11 8.86437 10.9425 8.74937 10.8275C8.63449 10.7126 8.57704 10.5736 8.57704 10.4103C8.57704 10.247 8.63449 10.1079 8.74937 9.99301C8.86437 9.87801 9.00348 9.82051 9.16671 9.82051C9.32993 9.82051 9.46904 9.87801 9.58404 9.99301C9.69893 10.1079 9.75637 10.247 9.75637 10.4103C9.75637 10.5736 9.69893 10.7126 9.58404 10.8275C9.46904 10.9425 9.32993 11 9.16671 11Z",fill:"#A6A6A6"})})),{}),Gallery:e.jsx((()=>e.jsx("svg",{width:"15",height:"10",viewBox:"0 0 15 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1.87179 9.33329C1.54035 9.33329 1.25663 9.21529 1.02063 8.97929C0.784626 8.74329 0.666626 8.45957 0.666626 8.12813V1.87179C0.666626 1.54035 0.784626 1.25663 1.02063 1.02063C1.25663 0.784626 1.54035 0.666626 1.87179 0.666626H8.12813C8.45957 0.666626 8.74329 0.784626 8.97929 1.02063C9.21529 1.25663 9.33329 1.54035 9.33329 1.87179V8.12813C9.33329 8.45957 9.21529 8.74329 8.97929 8.97929C8.74329 9.21529 8.45957 9.33329 8.12813 9.33329H1.87179ZM11.2723 4.33329C11.0984 4.33329 10.954 4.27579 10.8391 4.16079C10.7241 4.0459 10.6666 3.90151 10.6666 3.72763V1.27246C10.6666 1.09846 10.7241 0.954014 10.8391 0.839126C10.954 0.724126 11.0984 0.666626 11.2723 0.666626H13.7275C13.9015 0.666626 14.0459 0.724126 14.1608 0.839126C14.2758 0.954014 14.3333 1.09846 14.3333 1.27246V3.72763C14.3333 3.90151 14.2758 4.0459 14.1608 4.16079C14.0459 4.27579 13.9015 4.33329 13.7275 4.33329H11.2723ZM11.6666 3.33329H13.3333V1.66663H11.6666V3.33329ZM1.87179 8.33329H8.12813C8.18802 8.33329 8.23718 8.31407 8.27563 8.27563C8.31407 8.23718 8.33329 8.18802 8.33329 8.12813V1.87179C8.33329 1.8119 8.31407 1.76274 8.27563 1.72429C8.23718 1.68585 8.18802 1.66663 8.12813 1.66663H1.87179C1.8119 1.66663 1.76274 1.68585 1.72429 1.72429C1.68585 1.76274 1.66663 1.8119 1.66663 1.87179V8.12813C1.66663 8.18802 1.68585 8.23718 1.72429 8.27563C1.76274 8.31407 1.8119 8.33329 1.87179 8.33329ZM2.99996 6.96796H6.99996C7.11829 6.96796 7.20707 6.91324 7.26629 6.80379C7.32552 6.69435 7.31707 6.58835 7.24096 6.48579L6.15763 5.03579C6.09529 4.95546 6.01496 4.91529 5.91663 4.91529C5.81829 4.91529 5.73796 4.95546 5.67563 5.03579L4.66663 6.38463L3.99096 5.48579C3.92863 5.40546 3.84829 5.36529 3.74996 5.36529C3.65163 5.36529 3.57129 5.40546 3.50896 5.48579L2.75896 6.48579C2.68285 6.58835 2.6744 6.69435 2.73363 6.80379C2.79285 6.91324 2.88163 6.96796 2.99996 6.96796ZM11.2723 9.33329C11.0984 9.33329 10.954 9.27579 10.8391 9.16079C10.7241 9.0459 10.6666 8.90146 10.6666 8.72746V6.27229C10.6666 6.0984 10.7241 5.95402 10.8391 5.83913C10.954 5.72413 11.0984 5.66663 11.2723 5.66663H13.7275C13.9015 5.66663 14.0459 5.72413 14.1608 5.83913C14.2758 5.95402 14.3333 6.0984 14.3333 6.27229V8.72746C14.3333 8.90146 14.2758 9.0459 14.1608 9.16079C14.0459 9.27579 13.9015 9.33329 13.7275 9.33329H11.2723ZM11.6666 8.33329H13.3333V6.66663H11.6666V8.33329Z",fill:"#A6A6A6"})})),{}),Charts:e.jsx((()=>e.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.14485 1.42317C7.14485 1.22028 7.22413 1.058 7.38268 0.936332C7.54124 0.814666 7.71879 0.777333 7.91535 0.824333C9.12135 1.07389 10.16 1.64056 11.0314 2.52433C11.9028 3.40811 12.4633 4.46328 12.7128 5.68983C12.753 5.86583 12.7148 6.02133 12.5985 6.15633C12.4822 6.29144 12.3228 6.359 12.1205 6.359H8.42435C8.38424 6.359 8.34907 6.34894 8.31885 6.32883C8.28874 6.30872 8.26363 6.27861 8.24352 6.2385C8.14352 6.01794 8.00863 5.82105 7.83885 5.64783C7.66896 5.47461 7.47779 5.34072 7.26535 5.24617C7.22524 5.22628 7.19513 5.20389 7.17502 5.179C7.1549 5.15411 7.14485 5.12178 7.14485 5.082V1.42317ZM8.14485 1.95133V4.60267C8.29274 4.70689 8.43079 4.82206 8.55902 4.94817C8.68724 5.07417 8.80135 5.21111 8.90135 5.359H11.5653C11.3158 4.54278 10.8874 3.831 10.2802 3.22367C9.67285 2.61644 8.96107 2.19233 8.14485 1.95133ZM5.10518 13.1692C3.6804 12.8462 2.5039 12.113 1.57568 10.9697C0.647461 9.82644 0.18335 8.50322 0.18335 7C0.18335 5.49367 0.647461 4.17028 1.57568 3.02983C2.5039 1.8895 3.6804 1.1565 5.10518 0.830832C5.30607 0.783832 5.48685 0.8265 5.64752 0.958833C5.80818 1.09117 5.88852 1.25917 5.88852 1.46283V5.108C5.88852 5.11867 5.85729 5.16128 5.79485 5.23583C5.43852 5.38294 5.15352 5.61672 4.93985 5.93717C4.72607 6.25772 4.61918 6.61244 4.61918 7.00133C4.61918 7.39022 4.72607 7.74 4.93985 8.05067C5.15352 8.36133 5.43852 8.58805 5.79485 8.73083C5.81285 8.73761 5.84407 8.77989 5.88852 8.85767V12.5577C5.88852 12.7643 5.80818 12.9297 5.64752 13.0537C5.48685 13.1777 5.30607 13.2162 5.10518 13.1692ZM4.88852 1.95133C3.78341 2.28033 2.88957 2.91194 2.20702 3.84617C1.52457 4.78039 1.18335 5.83167 1.18335 7C1.18335 8.16833 1.52457 9.21961 2.20702 10.1538C2.88957 11.0881 3.78341 11.7265 4.88852 12.0692V9.37183C4.50052 9.08805 4.19196 8.74122 3.96285 8.33133C3.73385 7.92156 3.61935 7.47672 3.61935 6.99683C3.61935 6.51694 3.73279 6.071 3.95968 5.659C4.18657 5.247 4.49618 4.89911 4.88852 4.61533V1.95133ZM7.89618 13.1757C7.69963 13.2183 7.52524 13.1806 7.37302 13.0625C7.2209 12.9443 7.14485 12.7867 7.14485 12.5897V8.90133C7.14485 8.86111 7.1549 8.82594 7.17502 8.79583C7.19513 8.76572 7.22524 8.74061 7.26535 8.7205C7.48335 8.62472 7.67707 8.49194 7.84652 8.32217C8.01596 8.15228 8.14829 7.96111 8.24352 7.74867C8.2504 7.735 8.30713 7.69483 8.41368 7.62817H12.1205C12.3022 7.62817 12.4536 7.70405 12.5747 7.85583C12.6958 8.0075 12.7363 8.17822 12.6962 8.368C12.4355 9.59444 11.8667 10.6417 10.9897 11.5097C10.1128 12.3776 9.08163 12.9329 7.89618 13.1757ZM8.90135 8.62817C8.79957 8.77172 8.68502 8.90656 8.55768 9.03267C8.43035 9.15878 8.29274 9.27183 8.14485 9.37183V12.0487C8.9654 11.8034 9.67824 11.3772 10.2833 10.7698C10.8885 10.1626 11.3158 9.44872 11.5653 8.62817H8.90135Z",fill:"#A6A6A6"})})),{})},W=({onSelect:t,selectedLayout:n})=>e.jsxs(r.Box,{sx:{width:"100%",maxWidth:"500px",height:"330px"},children:[e.jsxs(r.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:2,backgroundColor:"#FBFBFC"},children:[e.jsx(r.Typography,{variant:"h5",sx:{fontWeight:400,fontSize:18,color:"#0C2033"},children:"Layouts"}),e.jsx(r.IconButton,{onClick:()=>t("close"),children:e.jsx(I,{})})]}),e.jsx(r.Grid,{container:!0,spacing:2,sx:{p:3},children:Object.keys(E).map((o=>{const a=o===n;return e.jsx(r.Grid,{size:3,children:e.jsxs(r.ButtonBase,{onClick:()=>t(o),sx:{border:a?"1.5px solid #1E1E1E":"1.5px solid #E5E7EB",borderRadius:2,p:2,width:"100%",height:"100%",flexDirection:"column",backgroundColor:a?"#fff":"",transition:"0.3s",boxShadow:a?"0px 2px 6px rgba(0,0,0,0.06)":"none"},children:[e.jsx(r.Box,{mb:1,children:E[o]}),e.jsx(r.Typography,{variant:"subtitle1",sx:{color:"#1E1E1E",fontWeight:a?400:200,opacity:a?1:.5},children:o})]})},o)}))})]}),$=({ref:e,handler:t})=>{n.useEffect((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])};function q(){const[e,t]=n.useState(!!document.fullscreenElement),[r,o]=n.useState(document.fullscreenElement??void 0);return n.useEffect((()=>{const e=()=>{const e=document.fullscreenElement??void 0;t(!!e),o(e)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[]),{isFullscreen:e,container:r}}b(".ts__table__container .ts-topbar {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #fff;\n}\n.ts__table__container .ts-topbar .right-section {\n display: flex;\n justify-content: center;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: relative;\n margin-right: 0.1rem;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-icon {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 1.2rem;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-input {\n width: 0;\n opacity: 0;\n margin-left: 8px;\n padding: 6px 8px;\n font-size: 0.875rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #f5f5f5;\n color: #000;\n transition: width 0.3s ease, opacity 0.3s ease;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-input:focus {\n outline: none;\n border-color: #000;\n}\n.ts__table__container .ts-topbar .right-section .search-wrapper .search-input.expanded {\n width: 200px;\n opacity: 1;\n}\n.ts__table__container .ts-topbar .right-section .ts--button {\n margin-right: 0.6rem;\n margin-top: 1rem;\n cursor: pointer;\n}\n.ts__table__container .ts-topbar .right-section .change-layout {\n margin-top: 0.99rem;\n cursor: pointer;\n}\n.ts__table__container .ts-topbar .right-section .sort {\n margin-top: 1rem;\n}\n.ts__table__container .ts-topbar .right-section .fullscreen-toggle {\n margin-right: 0.5rem;\n margin-top: 0.9rem;\n}\n.ts__table__container .ts-topbar .right-section .hide-column {\n margin-top: 0.9rem;\n position: relative;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .toggle-all {\n cursor: pointer;\n width: inherit;\n background-color: #fff;\n padding: 0.25rem 1rem;\n border-radius: 0.25rem;\n border: 1px solid #dbdbdb;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .toggle-all:hover {\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .switches {\n margin-top: 1rem;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .switches .ts-column-visible {\n display: flex;\n gap: 0.5rem;\n}\n.ts__table__container .ts-topbar .right-section .hide-column .ts-dropdown .ts-dropdown-content .switches .ts-column-visible .ts-column-visible-label {\n font-size: 0.875rem;\n font-weight: 500;\n}\n\n.MuiDrawer-root {\n display: block !important;\n transform: none !important;\n}");const U=({compactMode:t,onCompactToggle:o,isFullscreen:a,onFullscreenToggle:s,tableStates:i})=>{const[l,d]=n.useState(null),c=Boolean(l),{container:p}=q(),u=()=>{d(null)},{wrapColumns:C,setWrapColumns:h}=i;return e.jsxs(e.Fragment,{children:[e.jsx("div",{onClick:e=>{d(e.currentTarget)},children:e.jsx(L,{})}),e.jsxs(r.Popover,{open:c,anchorEl:l,onClose:u,container:p,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{mt:2,padding:3,width:380,borderRadius:1,boxShadow:4}},children:[e.jsxs(r.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,sx:{backgroundColor:"#F9FAFB",margin:"-24px -24px 24px -24px"},children:[e.jsx(r.Typography,{fontSize:"18px",fontWeight:400,color:"#0C2033",children:"View"}),e.jsx(r.IconButton,{size:"small",onClick:u,children:e.jsx(I,{})})]}),e.jsxs(r.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e.jsx(r.Typography,{fontSize:"14px",fontWeight:400,color:"#000000DE",children:"Wrap Cell"}),e.jsx(r.Switch,{checked:C?.all_wrap||!1,onChange:()=>{h((e=>({all_wrap:!e.all_wrap})))}})]}),e.jsxs(r.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e.jsx(r.Typography,{fontSize:"14px",fontWeight:400,color:"#000000DE",children:"List View"}),e.jsxs(r.Select,{size:"small",value:t?"Compact":"Comfy",onChange:e=>o(e.target.value),sx:{minWidth:120,fontWeight:400,color:"#000",fontSize:"13px"},MenuProps:{container:p,disablePortal:!1,PaperProps:{style:{zIndex:1500}}},children:[e.jsx(r.MenuItem,{value:"Comfy",children:"Comfy"}),e.jsx(r.MenuItem,{value:"Compact",children:"Compact"})]})]}),e.jsxs(r.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(r.Typography,{fontSize:"14px",fontWeight:400,color:"#000000DE",children:"Fullscreen"}),e.jsx(r.Switch,{checked:a,onChange:s})]})]})]})},Y=({id:t,children:n})=>{const{attributes:r,listeners:o,setNodeRef:i,transform:l,transition:d}=a.useSortable({id:t});return e.jsxs("div",{ref:i,style:{transform:s.CSS.Transform.toString(l),transition:d,display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{...r,...o,style:{cursor:"grab"},children:e.jsx(F,{})}),e.jsx("div",{style:{flexGrow:1},children:n})]})},K=({anchorEl:t,onClose:s,columns:i,onChange:l})=>{const[d,c]=n.useState([]),p=o.useSensors(o.useSensor(o.MouseSensor),o.useSensor(o.TouchSensor),o.useSensor(o.KeyboardSensor)),u=(e,t,n)=>{const r=d.map((r=>r.id===e?{...r,[t]:n}:r));c(r),C(r)},C=e=>{const t=e.map((e=>({id:e.field,desc:"desc"===e.direction})));l(t)};return e.jsx(r.Popover,{open:Boolean(t),anchorEl:t,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsxs(r.Box,{p:2,minWidth:300,children:[e.jsxs(r.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,sx:{backgroundColor:"#F9FAFB",margin:"-16px -16px 16px -16px"},children:[e.jsx(r.Typography,{fontSize:"18px",fontWeight:600,color:"#0C2033",children:"Sort By"}),e.jsx(r.IconButton,{size:"small",onClick:s,children:e.jsx(I,{})})]}),d.length>0&&e.jsx(o.DndContext,{sensors:p,collisionDetection:o.closestCenter,onDragEnd:e=>{const{active:t,over:n}=e;if(t.id!==n.id){const e=d.findIndex((e=>e.id===t.id)),r=d.findIndex((e=>e.id===n.id)),o=a.arrayMove(d,e,r);c(o),C(o)}},children:e.jsx(a.SortableContext,{items:d.map((e=>e.id)),strategy:a.verticalListSortingStrategy,children:d.map((t=>e.jsx(Y,{id:t.id,children:e.jsxs(r.Box,{display:"flex",gap:1,alignItems:"center",mb:1,children:[e.jsx(r.Select,{value:t.field,onChange:e=>u(t.id,"field",e.target.value),size:"small",fullWidth:!0,sx:{fontWeight:400,fontSize:14,color:"#000"},children:i.map((t=>e.jsx(r.MenuItem,{value:t.id,children:t.label},t.id)))}),e.jsxs(r.Select,{value:t.direction,onChange:e=>u(t.id,"direction",e.target.value),size:"small",sx:{fontWeight:400,fontSize:14,color:"#000"},children:[e.jsx(r.MenuItem,{value:"asc",children:"Ascending"}),e.jsx(r.MenuItem,{value:"desc",children:"Descending"})]}),e.jsx(r.IconButton,{size:"small",onClick:()=>(e=>{const t=d.filter((t=>t.id!==e));c(t),C(t)})(t.id),children:e.jsx(I,{})})]})},t.id)))})}),e.jsx(r.Button,{onClick:()=>{const e={id:Date.now().toString(),field:i[0]?.id??"",direction:"asc"},t=[...d,e];c(t),C(t)},startIcon:e.jsx("span",{children:e.jsx(Z,{})}),size:"small",sx:{fontWeight:400,fontSize:12,color:"#888888"},children:"Add Sort"})]})})},G=({column:t,onToggle:n})=>{const{attributes:o,listeners:i,setNodeRef:l,transform:d,transition:c}=a.useSortable({id:t.id}),p={transform:s.CSS.Transform.toString(d),transition:c},u=t.getIsVisible(),C="string"==typeof t.columnDef.header?t.columnDef.header:t.id;return e.jsxs("div",{ref:l,style:p,...o,className:"column-row",children:[e.jsx(r.Box,{...i,className:"drag-icon",children:e.jsx(R,{})}),e.jsx(r.Typography,{children:(h=C,h?h.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,(e=>e.toUpperCase())).trim():"")}),e.jsx(r.Box,{onClick:n,className:"visibility-icon",children:u?e.jsx(O,{}):e.jsx(P,{})})]});var h};b(".column-manager {\n width: 320px;\n padding: 0;\n background-color: var(--white);\n}\n.column-manager .header {\n width: 100%;\n padding: 10px 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-weight: 400;\n font-size: 18px;\n background-color: #fbfbfc;\n color: #0c2033;\n box-sizing: border-box;\n}\n.column-manager .content-wrapper {\n padding: 10px;\n}\n.column-manager .list-section {\n margin-top: 10px;\n}\n.column-manager .list-section .list-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n font-weight: 500;\n color: #888888;\n margin-bottom: 8px;\n padding: 10px 4px;\n}\n.column-manager .list-section .column-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 9px 8px;\n border-radius: 6px;\n transition: background-color 0.2s ease;\n cursor: grab;\n}\n.column-manager .list-section .column-row:hover {\n background-color: #f5f5f5;\n}\n.column-manager .list-section .column-row.hidden {\n opacity: 0.6;\n}\n.column-manager .list-section .column-row .drag-icon {\n cursor: grab;\n margin-right: 14px;\n color: #888;\n}\n.column-manager .list-section .column-row .visibility-icon {\n cursor: pointer;\n color: #505050;\n}\n.column-manager .list-section .column-row .MuiTypography-root {\n flex-grow: 1;\n font-size: 14px;\n font-weight: 400;\n}");const X=({anchorEl:t,onClose:n,table:s,columnOrder:i,setColumnOrder:l})=>{const d=Boolean(t),c=o.useSensors(o.useSensor(o.MouseSensor),o.useSensor(o.TouchSensor),o.useSensor(o.KeyboardSensor)),p=s.getAllLeafColumns(),u=i.map((e=>p.find((t=>t.id===e)))).filter((e=>e?.getIsVisible())),C=i.map((e=>p.find((t=>t.id===e)))).filter((e=>e&&!e.getIsVisible())),h=e=>{const t=s.getColumn(e);t?.toggleVisibility()};return e.jsx(r.Popover,{open:d,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},sx:{width:"600px"},children:e.jsxs("div",{className:"column-manager",children:[e.jsxs("div",{className:"header",children:[e.jsx(r.Typography,{variant:"h6",children:"Column"}),e.jsx(r.IconButton,{size:"small",onClick:n,children:e.jsx(I,{})})]}),e.jsx("div",{className:"content-wrapper",children:e.jsxs(o.DndContext,{sensors:c,collisionDetection:o.closestCenter,onDragEnd:e=>{const{active:t,over:n}=e;if(!n||t.id===n.id)return;const r=s.getColumn(t.id),o=s.getColumn(n.id);if(!r||!o)return;r.getIsVisible()!==o.getIsVisible()&&r.toggleVisibility();const d=i.indexOf(t.id),c=i.indexOf(n.id);l(a.arrayMove(i,d,c))},children:[e.jsxs("div",{className:"list-section",children:[e.jsxs("div",{className:"list-header",children:[e.jsx(r.Typography,{variant:"subtitle2",children:"Shown in List"}),e.jsx(r.Box,{onClick:()=>{p.forEach((e=>e.toggleVisibility(!1)))},fontStyle:{cursor:"pointer",color:"#C5C5C5",fontSize:"12px"},children:"Hide All"})]}),e.jsx(a.SortableContext,{items:u.map((e=>e.id)),strategy:a.verticalListSortingStrategy,children:u.map((t=>e.jsx(G,{column:t,onToggle:()=>h(t.id)},t.id)))})]}),e.jsxs("div",{className:"list-section",children:[e.jsxs("div",{className:"list-header",children:[e.jsx(r.Typography,{variant:"subtitle2",children:"Hidden in List"}),e.jsx(r.Box,{onClick:()=>{p.forEach((e=>e.toggleVisibility(!0)))},fontStyle:{cursor:"pointer",color:"#C5C5C5",fontSize:"12px"},children:"Show All"})]}),e.jsx(a.SortableContext,{items:C.map((e=>e.id)),strategy:a.verticalListSortingStrategy,children:C.map((t=>e.jsx(G,{column:t,onToggle:()=>h(t.id)},t.id)))})]})]})})]})})},J=({value:t,onChange:r})=>{const[o,a]=n.useState(!1),[s,i]=n.useState(t),l=n.useRef(null);$({ref:l,handler:()=>a(!1)});return e.jsxs("div",{className:"search-wrapper",ref:l,children:[e.jsx("div",{className:"search-icon ts--button",onClick:()=>a((e=>!e)),children:e.jsx(B,{})}),e.jsx("input",{type:"text",className:"search-input "+(o?"expanded":""),placeholder:"Type to search",value:s,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&r(s)}})]})},Q=({open:t,onClose:o,title:a,description:s,buttons:l,input:d,maxWidth:c="sm",fullWidth:p=!0})=>{const[u,C]=n.useState(d?.defaultValue||""),h=()=>{C(d?.defaultValue||""),o()};return e.jsxs(r.Dialog,{open:t,onClose:h,maxWidth:c,fullWidth:p,PaperProps:{sx:{borderRadius:2,padding:1}},children:[e.jsxs(r.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:"0px",marginX:"24px",paddingBottom:s?"18px":"20px",borderBottom:"1px solid #eeeeee"},children:[e.jsx(r.Typography,{variant:"h6",component:"h2",fontWeight:"bold",children:a}),e.jsx(r.IconButton,{onClick:h,size:"small",sx:{color:"text.secondary"},children:e.jsx(i,{})})]}),e.jsxs(r.DialogContent,{sx:{padding:"0 24px 16px 24px",mt:2},children:[s&&e.jsx(r.Typography,{variant:"body2",color:"text.secondary",sx:{marginBottom:d?3:0},children:s}),d&&e.jsxs(r.Box,{sx:{marginTop:s?0:2},children:[e.jsxs(r.Typography,{variant:"body2",component:"label",sx:{display:"block",marginBottom:1,fontWeight:500,color:"text.primary"},children:[d.label,d.required&&e.jsxs(r.Typography,{component:"span",color:"error.main",children:[" ","*"]})]}),e.jsx(r.TextField,{fullWidth:!0,value:u,onChange:e=>{C(e.target.value)},placeholder:d.placeholder,type:d.type||"text",multiline:d.multiline,rows:d.rows,variant:"outlined",size:"small",sx:{"& .MuiOutlinedInput-root":{maxWidth:280,borderRadius:1,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"2px solid #7A5AF8"}}}})]})]}),e.jsx(r.DialogActions,{sx:{padding:"16px 24px 24px 24px",gap:1},children:l.map(((t,n)=>e.jsx(r.Button,{variant:t.variant||"outlined",color:t.color||"primary",sx:t.sx,onClick:()=>(e=>{d?e.onClick(u):e.onClick(),C("")})(t),disabled:t.disabled||d?.required&&!u.trim()&&"contained"===t.variant,children:t.label},n)))})]})},ee=({children:t,value:n,index:r,...o})=>e.jsx("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&e.jsx(l,{sx:{p:3},children:t})}),te=({value:t,onChange:n,tabItems:o,...a})=>e.jsx(r.Tabs,{value:t,onChange:n,variant:"fullWidth",sx:{px:"12px",borderBottom:"1px solid #ccc","& .MuiTabs-indicator":{backgroundColor:"black"}},...a,children:o.map(((t,n)=>e.jsx(r.Tab,{label:t.label,sx:{fontSize:"14px",textTransform:"capitalize",color:"#888888",fontWeight:"normal",whiteSpace:"nowrap","&.Mui-selected":{color:"black",fontWeight:"bold"}}},n)))}),ne={"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#fafafa","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}},re=({filter:t,control:n,isLoading:o=!1})=>e.jsx(d.Controller,{name:`${t?.name}.value`,control:n,defaultValue:t.filter_value||"",render:({field:n})=>e.jsx(r.TextField,{...n,fullWidth:!0,variant:"outlined",size:"small",sx:{...ne,"& .MuiOutlinedInput-input":{padding:"12px 20px"}},type:t.data_type||"text",placeholder:"Enter value",disabled:o})}),oe=({filter:t,control:n,dropdownData:o,isLoading:a=!1,sx:s})=>{const i=o[t.filter_attribute]||t.dropdown_list||[];return e.jsx(d.Controller,{name:`${t?.name}.value`,control:n,defaultValue:t.filter_value||"",render:({field:t})=>e.jsx(r.FormControl,{sx:s,fullWidth:!0,size:"small",children:e.jsx(r.Select,{...t,disabled:a,sx:{"& .MuiOutlinedInput-input":{padding:"12px 20px"}},children:i.map(((t,n)=>e.jsx(r.MenuItem,{value:t.value,children:t.label},n)))})})})},ae=({filter:t,control:n,sx:r})=>e.jsx(d.Controller,{name:`${t?.name}.value`,control:n,defaultValue:t.filter_value?C(t.filter_value,"DD-MM-YYYY").toDate():null,render:({field:t})=>e.jsx(c.LocalizationProvider,{dateAdapter:u.AdapterDateFns,children:e.jsx(p.DatePicker,{sx:{"& .MuiOutlinedInput-input":{padding:"12px 20px"}},...t,value:t.value?C(t.value,"DD-MM-YYYY").toDate():null,onChange:e=>{const n=e?C(e).format("DD-MM-YYYY"):"";t.onChange(n)},format:"dd-MM-yyyy",slotProps:{textField:{size:"small",fullWidth:!0,placeholder:"DD-MM-YYYY"}}})})}),se=({filter:t,control:n,dropdownList:o,isLoading:a=!1,sx:s})=>e.jsx(d.Controller,{name:`${t?.name}.operator`,control:n,defaultValue:t.filter_operator||o?.[0]?.value||"",render:({field:t})=>e.jsx(r.FormControl,{sx:s,size:"small",children:e.jsx(r.Select,{...t,variant:"standard",sx:{fontSize:"0.875rem",minWidth:50,border:"none",boxShadow:"none","& .MuiSelect-icon":{top:"45%",transform:"translateY(-50%)","& .MuiOutlinedInput-input":{padding:"12px 20px"}}},disabled:a,disableUnderline:!0,children:o&&o.map(((t,n)=>e.jsx(r.MenuItem,{value:t.value,children:t.label},n)))})})}),ie=({filter:t,control:n,dropdownData:o,sx:a})=>{const s=o[t.filter_attribute]||[];return e.jsx(d.Controller,{name:`${t?.name}.value`,control:n,defaultValue:t.filter_value||[],render:({field:t})=>e.jsx(r.FormControl,{sx:a,fullWidth:!0,size:"small",children:e.jsx(r.Select,{...t,sx:{"& .MuiOutlinedInput-input":{padding:"12px 20px"}},multiple:!0,value:t.value||[],onChange:e=>t.onChange(e.target.value),renderValue:e=>e.map((e=>s.find((t=>t.value===e))?.label||e)).join(", "),children:s.map(((t,n)=>e.jsx(r.MenuItem,{value:t.value,children:t.label},n)))})})})},le=({columnsData:t,tableStates:o,setSelectedFilters:a})=>{const s=r.styled(r.Button)((({theme:e})=>({borderRadius:20,borderColor:e.palette.primary.main,color:e.palette.primary.main,textTransform:"none",padding:"8px 16px","&:hover":{borderColor:e.palette.primary.dark}}))),[i,l]=n.useState(!1),{filters:d,setFilters:c}=o,p=n.useRef(null);return e.jsxs(r.Box,{children:[e.jsx(s,{fullWidth:!0,startIcon:e.jsx(Z,{}),onClick:()=>{l((e=>!e))},sx:{bgcolor:"#eae4fe",borderRadius:"6px",color:"#7a5af8",fontSize:"13px",fontWeight:500},ref:p,children:"Filter Criteria"}),i&&e.jsx(r.Paper,{sx:{mt:2,width:p.current?.offsetWidth||360,p:1,maxHeight:"300px",overflowY:"auto",cursor:"pointer",position:"absolute",zIndex:1300},children:e.jsx(r.Box,{sx:{maxHeight:"300px",overflowY:"auto",width:"100%"},children:e.jsx(r.List,{subheader:e.jsx(r.ListSubheader,{component:"div",sx:{fontWeight:"bold",bgcolor:"#f5f5f9",borderRadius:"6px"},children:"Filter by..."}),children:t?.column_list?.map(((n,o)=>{const s=d?.some((e=>e.filter_attribute===n.attribute_key));return e.jsx(r.ListItem,{onClick:()=>!s&&(e=>{const n=t.operation_list[e.data_type],r="multiselect"===e.data_type?[]:"",o=n?.[0]?.value||"",s=t.operation_list[e.data_type]||[],i={filter_attribute:e.attribute_key,filter_operator:o,filter_value:r},d={...i,id:e.id,name:e.name,data_type:e.data_type,dropdown_list:s};c((e=>[...e,i])),a((e=>[...e,d])),l(!1)})(n),sx:{opacity:s?.5:1,cursor:s?"not-allowed":"pointer"},children:e.jsx(r.ListItemText,{primary:n.name})},o)}))})})})]})},de=({value:t="",onChange:o,placeholder:a="Search..."})=>{const[s,i]=n.useState(t);return e.jsx(r.TextField,{fullWidth:!0,size:"small",value:s,onChange:e=>{const t=e.target.value;i(t),o?.(t)},placeholder:a,InputProps:{startAdornment:e.jsx(r.InputAdornment,{position:"start",children:e.jsx(h,{sx:{color:"#888888",fontSize:"20px"}})})},sx:{mt:2,"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#fafafa","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}}})},ce=({columnsData:t,dropdownData:o,searchTerm:a="",setSearchTerm:s,selectedFilters:i,setSelectedFilters:l,handleRemoveFilter:c,handleClearAllFilters:p,editMode:u=!1,tableStates:C,setSavedFilterModalOpen:h,setDeleteFilterModalOpen:x})=>{const{filterMaster:m,setFilters:g,setFilterMaster:_}=C,b=m?.saved_filters?.selectedName||"",f=n.useMemo((()=>{const e=i.reduce(((e,t)=>(t.name&&(e[t.name]={value:t.filter_value??"",operator:t.filter_operator??t.dropdown_list?.[0]?.value??""}),e)),{});return{filterName:b??"",...e}}),[i,b]),{control:j,watch:w,reset:v,formState:{isDirty:y}}=d.useForm({mode:"onChange",defaultValues:f}),S=w();n.useEffect((()=>{if(y){const e=i.map((e=>{if(e.name&&"object"==typeof S[e.name]){const t=S[e.name];if(t.value!==e.filter_value||t.operator!==e.filter_operator)return{...e,filter_value:t.value,filter_operator:t.operator}}return e}));e.some(((e,t)=>e.filter_value!==i[t].filter_value||e.filter_operator!==i[t].filter_operator))&&(l(e),g(e))}}),[S,i]);return e.jsxs("form",{children:[e.jsxs(r.Box,{sx:u?{border:"1px solid #c5c5c5",borderRadius:"6px",padding:"5px 10px 10px 10px"}:{},children:[u&&e.jsxs(r.Box,{sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#fafafa","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}},display:"flex",alignItems:"center",justifyContent:"center",paddingY:2,gap:1},children:[e.jsx(d.Controller,{name:"filterName",control:j,render:({field:t})=>e.jsx(r.TextField,{fullWidth:!0,size:"small",placeholder:"Filter Name",value:t.value,onChange:e=>{t.onChange(e),u&&_((t=>({...t,saved_filters:{...t?.saved_filters,selectedName:e.target.value}})))},inputRef:t.ref,sx:{maxWidth:400,"& .MuiOutlinedInput-root":{bgcolor:"white",borderRadius:"0px",fontSize:"14px",color:"#272524",fontWeight:"500","& fieldset":{borderColor:"#c5c5c5"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}}})}),e.jsx(r.Box,{onClick:e=>e.stopPropagation(),children:e.jsx(r.IconButton,{size:"small",onClick:()=>{x&&x(!0)},children:e.jsx(M,{})})})]}),e.jsx(le,{columnsData:t,tableStates:C,setSelectedFilters:l}),!u&&e.jsx(de,{value:a,onChange:s}),i?.filter((e=>e.name?.toLowerCase().includes(a.toLowerCase())||e.filter_value?.toString().toLowerCase().includes(a.toLowerCase()))).map((t=>{const{dropdown_list:n=[]}=t;return e.jsxs(r.Box,{sx:{mt:2,p:1,borderRadius:2,backgroundColor:"#FAFAFA",display:"flex",flexDirection:"column",gap:.5},children:[e.jsxs(r.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:2},children:[e.jsx(r.Typography,{sx:{fontWeight:500,fontSize:"13px",color:"#797877"},children:t.name}),e.jsx(se,{filter:t,control:j,dropdownList:n,sx:{fontSize:"13px",minWidth:50,border:"none",boxShadow:"none"}}),e.jsx(r.IconButton,{sx:{marginLeft:"auto"},onClick:()=>c(t.filter_attribute),size:"small",children:e.jsx(I,{})})]}),e.jsx(r.Box,{children:"text"===t.data_type||"number"===t.data_type?e.jsx(re,{filter:t,control:j}):"date"===t.data_type?e.jsx(ae,{filter:t,control:j,sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#ffffff","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}}}):"select"===t.data_type?e.jsx(oe,{filter:t,control:j,dropdownData:o,sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#ffffff","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}}}):"multiselect"===t.data_type?e.jsx(ie,{filter:t,control:j,dropdownData:o,sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#ffffff","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}}}):e.jsx(r.FormControl,{fullWidth:!0,size:"small",sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#ffffff","& fieldset":{borderColor:"#c1c1c1"},"&.Mui-focused fieldset":{borderColor:"#7A5AF8"}}}})})]},t.filter_attribute)}))]}),i.length>0&&e.jsxs(r.Box,{sx:{display:"flex",justifyContent:"center",gap:1,mt:3},children:[e.jsx(r.Button,{variant:"outlined",sx:{color:"#7A5AF8",border:"1px solid #7A5AF8",borderRadius:"6px",textTransform:"none",fontSize:"14px"},fullWidth:!0,onClick:()=>{v(),p()},children:"Clear All"}),e.jsx(r.Button,{variant:"contained",fullWidth:!0,sx:{color:"white",backgroundColor:"#7A5AF8","&.Mui-disabled":{backgroundColor:"#d7cefd",color:"rgba(255, 255, 255, 0.7)"}},disabled:u&&!y,onClick:()=>{h&&h(!0)},children:"Save Filter"})]})]})},pe=({columnsData:t,dropdownData:o,tableStates:a,selectedFilters:s,setSelectedFilters:i,setSavedFilterModalOpen:l})=>{const[d,c]=n.useState(""),{setFilters:p}=a;return e.jsx(r.Box,{children:e.jsx(ce,{columnsData:t,searchTerm:d,setSearchTerm:c,selectedFilters:s,setSelectedFilters:i,handleRemoveFilter:e=>{p((t=>t.filter((t=>t.filter_attribute!==e)))),i((t=>t.filter((t=>t.filter_attribute!==e))))},handleClearAllFilters:()=>{p([]),i([])},tableStates:a,setSavedFilterModalOpen:l,dropdownData:o})})},ue=({columnsData:t,dropdownData:n,tableStates:o,selectedFilters:a,setSelectedFilters:s,editMode:i,setEditMode:l,searchTerm:d,setSearchTerm:c,setSavedFilterModalOpen:p,setDeleteFilterModalOpen:u})=>{const{setFilters:C}=o;return e.jsxs(e.Fragment,{children:[e.jsx(r.Box,{children:e.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",gap:1,cursor:"pointer",mb:2},onClick:()=>{l&&l(!1)},children:[e.jsx(x,{sx:{width:"13px",height:"13px"}}),e.jsx(r.Typography,{variant:"body2",sx:{color:"#8592A3"},children:"Back To Saved Filters"})]})}),e.jsx(ce,{selectedFilters:a,setSelectedFilters:s,handleRemoveFilter:e=>{C((t=>t.filter((t=>t.filter_attribute!==e)))),s((t=>t.filter((t=>t.filter_attribute!==e))))},handleClearAllFilters:()=>{C([]),s([])},editMode:i,tableStates:o,columnsData:t,dropdownData:n,searchTerm:d,setSearchTerm:c,setSavedFilterModalOpen:p,setDeleteFilterModalOpen:u})]})},Ce=({columnsData:t,dropdownData:o,tableStates:a,selectedFilters:s,setSelectedFilters:i,editMode:l,setEditMode:d,setDeleteFilterModalOpen:c,setSavedFilterModalOpen:p})=>{const{setFilterMaster:u,setFilterToDelete:C}=a,[h,x]=n.useState("");n.useEffect((()=>()=>{u((e=>({...e,saved_filters:{...e?.attributes,selectedId:"",selectedName:""}}))),i([]),d&&d(!1)}),[]);return e.jsxs(r.Box,{children:[!l&&e.jsxs(e.Fragment,{children:[e.jsx(de,{value:h,onChange:x}),0===t.saved_filter.length?e.jsx(r.Typography,{sx:{mt:2},children:"No saved filters yet."}):e.jsx(r.List,{sx:{display:"flex",flexDirection:"column",gap:1,mt:2},children:t.saved_filter.filter((e=>e.label?.toLowerCase().includes(h.toLowerCase()))).map((t=>e.jsxs(r.ListItem,{sx:{cursor:"pointer",border:"1px solid #ccc",borderRadius:"8px",display:"flex",justifyContent:"space-between",alignItems:"center"},onClick:()=>(e=>{u((t=>({...t,saved_filters:{...t?.attributes,selectedId:e.value,selectedName:e.label}}))),d&&d(!0),C(e)})(t),children:[e.jsx(r.ListItemText,{primary:t.label}),e.jsx(r.Box,{onClick:e=>e.stopPropagation(),children:e.jsx(r.IconButton,{size:"small",onClick:()=>{C(t),c&&c(!0)},children:e.jsx(M,{})})})]},t.value)))})]}),l&&e.jsx(ue,{columnsData:t,dropdownData:o,tableStates:a,selectedFilters:s,setSelectedFilters:i,editMode:l,setEditMode:d,searchTerm:h,setSearchTerm:x,setSavedFilterModalOpen:p,setDeleteFilterModalOpen:c})]})},he=({columnsData:t,tableStates:o,dropdownData:a,searchTerm:s="",setSearchTerm:i})=>{const{filterMaster:l,setFilterMaster:d,filters:c,setFilters:p}=o,u=l?.attributes?.selected,C=n.useMemo((()=>{const e=t.column_list.find((e=>e.datasource_list===u))?.attribute_key;return e?a[e]:[]}),[u,a]);return e.jsxs(r.Box,{sx:{mt:2},children:[e.jsxs(r.FormControl,{fullWidth:!0,size:"small",children:[e.jsx(r.Select,{value:u||"",onChange:e=>{const t=e.target.value;d((e=>({...e,attributes:{...e?.attributes,selected:t}})))},displayEmpty:!0,renderValue:n=>n?t?.column_list?.find((e=>e.datasource_list===n))?.name:e.jsx("span",{children:"Select Attribute"}),sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",fontSize:"14px",bgcolor:"#fafafa","& fieldset":{borderColor:"#7a5af8 !important"},"&:hover fieldset":{borderColor:"#7a5af8 !important"},"&.Mui-focused fieldset":{borderColor:"#7a5af8 !important",boxShadow:"none"}},"& .MuiSelect-select":{padding:"8px 14px"}},children:t?.column_list?.filter((e=>e.data_type.includes("select"))).map(((t,n)=>e.jsx(r.MenuItem,{value:t.datasource_list,disabled:t.datasource_list===u,children:t.name},n)))}),u&&e.jsx(de,{value:s,onChange:i})]}),a&&e.jsx(r.Box,{sx:{mt:2},children:e.jsx(r.FormControl,{children:e.jsx(r.RadioGroup,{onChange:e=>{e.preventDefault();const n=e.target.value;d((e=>({...e,attributes:{...e?.attributes,radio:n}})));const r=l?.attributes.selected;if(r){const e=t.column_list.find((e=>e.datasource_list===r));if(e){const r=t.operation_list[e.data_type]?.[0]?.value||"equals",o={filter_attribute:e.attribute_key,filter_operator:r,filter_value:n},a=c.findIndex((t=>t.filter_attribute===e.attribute_key));let s;-1!==a?(s=[...c],s[a]=o):s=[...c,o],p(s)}}},children:C?.filter((e=>!s||e.label.toLowerCase().includes(s.toLowerCase()))).map((t=>e.jsx(r.FormControlLabel,{value:t.value,control:e.jsx(r.Radio,{}),label:t.label},t.value)))})})})]})},xe=({columnsData:t,tableStates:n,dropdownData:o,searchTerm:a,setSearchTerm:s})=>e.jsx(r.Box,{children:e.jsx(he,{columnsData:t,tableStates:n,dropdownData:o,searchTerm:a,setSearchTerm:s})}),me=({open:t,onClose:o,columnsData:a,tableStates:s,onDeleteFilter:l,onSaveFilter:d,onUpdateFilter:c,dropdownData:p})=>{const[u,C]=n.useState(0),[h,x]=n.useState(!1),[m,g]=n.useState([]),[_,b]=n.useState(!1),[f,j]=n.useState(!1),[w,v]=n.useState(""),{filters:y,filterToDelete:S}=s;n.useEffect((()=>{if(!a||!a.column_list)return void g([]);const e=y?.map((e=>{const t=a.column_list.find((t=>t.attribute_key===e.filter_attribute)),n=a.operation_list[t?.data_type||"text"];return{...e,id:t?.id??"",name:t?.name,data_type:t?.data_type,dropdown_list:n}}));g(e||[])}),[y,a,u]);return e.jsx(r.Drawer,{anchor:"right",open:t,onClose:o,ModalProps:{keepMounted:!0},sx:{"& .MuiPaper-root":{overflowY:"auto"}},children:e.jsxs(r.Box,{sx:{width:"400px"},children:[e.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#EEEEEE",height:"50px",px:2,borderBottom:"1px solid #ccc",mx:"auto"},children:[e.jsx(r.Typography,{variant:"h6",fontWeight:"bold",fontSize:"18px",children:"Filter"}),e.jsx(r.IconButton,{onClick:e=>{e.stopPropagation(),o&&o()},"aria-label":"close",children:e.jsx(i,{fontSize:"small"})})]}),e.jsx(te,{value:u,onChange:(e,t)=>{C(t),1!==t&&(x(!1),g([]))},tabItems:[{label:"Filter"},{label:"Saved Filter"},{label:"Attributes"}]}),e.jsxs(r.Box,{children:[e.jsx(ee,{value:u,index:0,children:0===u&&e.jsx(pe,{columnsData:a,tableStates:s,selectedFilters:m,setSelectedFilters:g,setSavedFilterModalOpen:b,dropdownData:p})}),e.jsx(ee,{value:u,index:1,children:1===u&&e.jsx(Ce,{columnsData:a,tableStates:s,selectedFilters:m,setSelectedFilters:g,editMode:h,setEditMode:x,setDeleteFilterModalOpen:j,setSavedFilterModalOpen:b,dropdownData:p})}),e.jsx(ee,{value:u,index:2,children:2===u&&e.jsx(xe,{columnsData:a,tableStates:s,dropdownData:p,searchTerm:w,setSearchTerm:v})})]}),e.jsx(Q,{open:_,onClose:()=>b(!1),title:h?"Replace Existing Filter ?":"Save Filter",description:h?"You already have a filter applied. Applying a new filter will replace the current one. Do you want to continue?":"Give a name to this filter so you can easily reuse it later.",buttons:[{label:"Cancel",onClick:()=>{b(!1)},variant:"outlined",color:"primary",sx:{color:"#7A5AF8",border:"1px solid #7A5AF8"}},{label:h?"Replace Filter":"Save",onClick:e=>{if(h)return c&&c(e||""),b(!1),void x(!1);d&&d(e||""),b(!1),C(1)},variant:"contained",color:"primary",sx:{color:"white",backgroundColor:"#7A5AF8"}}],input:h?void 0:{label:"Filter Name",placeholder:'e.g., "Website Leads - This Week"',required:!0,type:"text"}}),e.jsx(Q,{open:f,onClose:()=>j(!1),title:"Delete Saved Filter?",description:`You're about to delete the saved filter: "${S?.label||"[Filter Name]"}". This action cannot be undone. Are you sure you want to continue?`,buttons:[{label:"Cancel",onClick:()=>{j(!1)},variant:"outlined",color:"primary",sx:{color:"#7A5AF8",border:"1px solid #7A5AF8"}},{label:"Delete",onClick:()=>{l&&l(),j(!1),x&&x(!1)},variant:"contained",sx:{color:"white",backgroundColor:"#f63d68"}}],maxWidth:"xs"})]})})};function ge({table:t,isCompactTable:o,isFullscreen:a,fullscreenToggle:s,setIsCompactTable:i,paginationComponent:l,topbarOptions:d,tableStates:c}){const[p,u]=n.useState(a),[C,h]=n.useState(null),[x,m]=n.useState("None"),[g,_]=n.useState(!1),[b,f]=n.useState(null),[j,w]=n.useState("Table"),[v,y]=n.useState(null),[S,M]=n.useState(t.getAllLeafColumns().map((e=>e.id))),[F,z]=n.useState(!1),[T,D]=n.useState(!1),L=n.useRef(null);n.useEffect((()=>{t.setColumnOrder(S)}),[S]);const{leftSideComponent:I,rightSideComponent:B,showColumnToggle:A,showChangeLayoutToggle:O,viewMoreToggle:P,showSortingToggle:R,showFilterToggle:Z,showSearch:E,searchValue:Y,onSearchChange:G,filterOptions:Q={columnsData:{column_list:[],operation_list:{},saved_filter:[]},onDeleteFilter:()=>{},onSaveFilter:()=>{},dropdownData:[],onUpdateFilter:()=>{}}}=d??{},{container:ee}=q(),te=n.useRef(null);$({ref:te,handler:()=>_(!1)});$({ref:L,handler:()=>D(!1)});return e.jsxs("div",{className:"ts-topbar",children:[e.jsx("div",{className:"tabs-section",children:I}),e.jsxs("div",{className:"right-section",children:[B,l,E&&e.jsx("div",{title:"Search",children:e.jsx(J,{value:Y??"",onChange:G??(()=>{})})}),O&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"change-layout ts--button",title:"Layout",children:e.jsx("div",{onClick:e=>{f(e.currentTarget)},children:e.jsx(V,{})})}),e.jsx(r.Popover,{open:Boolean(b),anchorEl:b,onClose:()=>f(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},container:ee,sx:{mt:2.2},children:e.jsx(W,{onSelect:e=>{w(e),f(null)},selectedLayout:j})})]}),A&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hide-column ts--button",onClick:e=>y(e.currentTarget),title:"Column",children:e.jsx(k,{})}),e.jsx(X,{anchorEl:v,onClose:()=>y(null),table:t,columnOrder:S,setColumnOrder:M})]}),R&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filter ts--button",title:"Sort",onClick:e=>h(e.currentTarget),children:e.jsx(H,{})}),e.jsx(K,{anchorEl:C,onClose:()=>h(null),columns:t.getAllLeafColumns().map((e=>({id:e.id,label:e.columnDef.meta?.label||e.id}))),onChange:e=>t.setSorting(e)})]}),Z&&e.jsxs("div",{className:"filter ts--button",title:"Filter",onClick:()=>z(!0),children:[e.jsx(N,{}),e.jsx(me,{tableStates:c,open:F,onClose:()=>{z((e=>!e))},onDeleteFilter:Q?.onDeleteFilter,columnsData:Q.columnsData,onSaveFilter:Q?.onSaveFilter,dropdownData:Q.dropdownData,onUpdateFilter:Q?.onUpdateFilter})]}),P&&e.jsx("div",{className:"view-more ts--button",title:"View More",children:e.jsx(U,{compactMode:o,onCompactToggle:e=>i("Compact"===e),isFullscreen:p,onFullscreenToggle:()=>{s(),u((e=>!e))},groupBy:x,onGroupByChange:e=>m(e),tableStates:c})})]})]})}function _e({table:t,rowsPerPageArray:n,paginationOptions:r}){const o=t.getState().pagination.pageIndex+1,a=t.getPageCount(),s=t.getState().pagination.pageSize,i=t.getRowCount(),l=o*s-s+1,d=Math.min(o*s,i);return e.jsx("div",{className:"pagination_container",children:"full"===r?.paginationView?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"go_to_page_container",children:[" Go to page : ",e.jsx("input",{type:"number",defaultValue:o,onKeyDown:e=>{if("Enter"===e.key){const n=e.currentTarget.value?Number(e.currentTarget.value)-1:0;t.setPageIndex(n)}},style:{width:"60px",textAlign:"center"},min:1,max:t?.getPageCount()})," "]}),e.jsxs("div",{className:"rows_per_page_container",children:[e.jsx("span",{children:"Rows Per Page : "}),e.jsx("select",{value:t.getState().pagination.pageSize,onChange:e=>{t.setPageSize(Number(e.target.value))},children:n.map((t=>e.jsx("option",{value:t,children:t},t)))})]}),e.jsxs("div",{className:"records_range_container",children:[e.jsx("span",{children:"Showing "}),e.jsxs("strong",{children:[l," - ",d," of ",i]})]}),e.jsxs("span",{className:"page_range_container",children:[e.jsx("span",{children:" Page "}),e.jsxs("strong",{children:[o," of ",a," "]})]}),e.jsxs("div",{className:"pagination_btn_container",children:[e.jsx("button",{title:"First Page",className:"pagination_btn",disabled:!t.getCanPreviousPage(),onClick:()=>t.setPageIndex(0),children:e.jsx(w,{})}),e.jsx("button",{title:"Previous Page",className:"pagination_btn",disabled:!t.getCanPreviousPage(),onClick:()=>t.previousPage(),children:e.jsx(v,{})}),e.jsx("button",{title:"Next Page",className:"pagination_btn",disabled:!t.getCanNextPage(),onClick:()=>t.nextPage(),children:e.jsx(y,{})}),e.jsx("button",{title:"Last Page",className:"pagination_btn",disabled:!t.getCanNextPage(),onClick:()=>t.setPageIndex(a-1),children:e.jsx(S,{})})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"rows_per_page_container",children:e.jsx("select",{value:t.getState().pagination.pageSize,onChange:e=>{t.setPageSize(Number(e.target.value))},children:n.map((t=>e.jsx("option",{value:t,children:t},t)))})}),e.jsx("div",{className:"records_range_container",children:e.jsxs("strong",{children:[l," - ",d," of ",i]})}),e.jsxs("div",{className:"pagination_btn_container",children:[e.jsx("button",{title:"Previous Page",className:"pagination_btn",disabled:!t.getCanPreviousPage(),onClick:()=>t.previousPage(),children:e.jsx(v,{})}),e.jsx("button",{title:"Next Page",className:"pagination_btn",disabled:!t.getCanNextPage(),onClick:()=>t.nextPage(),children:e.jsx(y,{})})]})]})})}b(".pagination_container {\n --grey-300: #edeeef;\n padding: 8px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 1.5rem;\n font-size: 0.875rem;\n background-color: #fff;\n margin-bottom: 0.5rem;\n}\n@media screen and (max-width: 991px) {\n .pagination_container {\n justify-content: center;\n font-size: 0.75rem;\n }\n .pagination_container .go_to_page_container {\n display: none;\n }\n}\n@media screen and (max-width: 768px) {\n .pagination_container {\n gap: 1rem;\n }\n .pagination_container .records_range_container,\n .pagination_container .rows_per_page_container {\n display: none;\n }\n}\n.pagination_container .pagination_btn_container {\n display: flex;\n gap: 0.5rem;\n}\n.pagination_container .pagination_btn_container .pagination_btn {\n position: relative;\n user-select: none;\n border: none;\n border-radius: 50%;\n height: 2rem;\n width: 2rem;\n padding: 4px;\n cursor: pointer;\n transition: 0.4s;\n background-color: transparent;\n}\n@media screen and (max-width: 768px) {\n .pagination_container .pagination_btn_container .pagination_btn {\n height: 1.5rem;\n width: 1.5rem;\n padding: 0rem;\n }\n .pagination_container .pagination_btn_container .pagination_btn svg {\n width: 1.25rem;\n height: 1.25rem;\n }\n}\n.pagination_container .pagination_btn_container .pagination_btn:disabled {\n cursor: unset;\n fill: rgba(0, 0, 0, 0.18);\n}\n.pagination_container .pagination_btn_container .pagination_btn:not(:disabled) {\n cursor: pointer;\n}\n.pagination_container .pagination_btn_container .pagination_btn:focus {\n outline: none;\n}\n.pagination_container .pagination_btn_container .pagination_btn:hover:not(:disabled) {\n background-color: var(--grey-300);\n box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.6), 0 1px 3px 1px rgba(60, 64, 67, 0.3);\n}");const be=e=>e.replace(/\s+/g," ").trim(),fe=e=>({left:"flex-start",center:"center",right:"flex-end"}[e||"left"]),je=e=>{const t=e.getIsPinned(),n="left"===t&&e.getIsLastColumn("left"),r="right"===t&&e.getIsFirstColumn("right");return{boxShadow:n?"-4px 0 4px -4px gray inset":r?"4px 0 4px -4px gray inset":void 0,background:"inherit",left:"left"===t?`${e.getStart("left")}px`:void 0,right:"right"===t?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",width:e.getSize()}},we=e=>{const t=e.getIsPinned(),n="left"===t&&e.getIsLastColumn("left"),r="right"===t&&e.getIsFirstColumn("right");return{boxShadow:n?"-4px 0 4px -4px gray inset":r?"4px 0 4px -4px gray inset":void 0,background:"inherit",left:"left"===t?`${e.getStart("left")}px`:void 0,right:"right"===t?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",width:e.getSize()}};function ve({cell:n,tableStates:r}){const{isDragging:o,setNodeRef:i,transform:l}=a.useSortable({id:n.column.id}),{wrapColumns:d}=r,c=n.column.getIsPinned(),p={opacity:o?.8:1,transform:s.CSS.Translate.toString(l),transition:"width transform 0.2s ease-in-out",width:n.column.getSize(),...we(n.column),...(d.all_wrap||d[n.column.id])&&{wordBreak:"break-all"}};return e.jsx("td",{ref:i,style:{...p,zIndex:c?2:o?1:0},align:n.column.columnDef.meta?.align||"left",className:"ts__body__td",children:n.getIsPlaceholder()?null:t.flexRender(n.column.columnDef.cell,n.getContext())})}m.create({baseURL:"http://13.200.182.92:9091/api",timeout:1e4,headers:{"Content-Type":"application/json"}}).interceptors.request.use((e=>{const t=localStorage.getItem("authToken");return t&&(e.headers.Authorization=`Bearer ${t}`),e}),(e=>Promise.reject(e)));const ye=({checked:t=!1,disabled:r=!1,onChange:o=()=>{},indeterminate:a=!1,className:s,style:i,...l})=>{const d=g.v4(),[c,p]=n.useState(t),u=n.useRef(null);return n.useEffect((()=>{p(t)}),[t]),n.useEffect((()=>{u.current&&(u.current.indeterminate=a)}),[a]),e.jsx("input",{id:d,ref:u,type:"checkbox",checked:c,onChange:e=>{const t=e.target.checked;p(t),o&&o(t)},disabled:r,className:s,...l})};function Se({table:r,featureOptions:o,NestedComponent:s,columnOrder:i,tableStates:l}){const{enableColumnReordering:d,enableRowSelection:c}=o,{wrapColumns:p}=l;return e.jsx("tbody",{className:"ts__body",children:r?.getRowModel()?.rows?.map((r=>(r=>{const u=e.jsxs("tr",{className:"ts__body__tr",children:[c&&e.jsx("td",{className:"ts__body__td ts__body__checkbox",style:{position:"sticky",left:0,width:"50px"},children:e.jsx(ye,{checked:r.getIsSelected(),indeterminate:r.getIsSomeSelected(),onChange:r.getToggleSelectedHandler(),className:"checkbox__input"})}),r?.getVisibleCells()?.map((n=>{const r={className:"ts__body__td",style:{...we(n.column),width:n.column.getSize(),...(p.all_wrap||p[n.column.id])&&{wordBreak:"break-all"}},align:n.column.columnDef.meta?.align||"left"};return d?e.jsx(a.SortableContext,{items:i,strategy:a.horizontalListSortingStrategy,children:e.jsx(ve,{cell:n,featureOptions:o,tableStates:l})},n.id):e.jsx("td",{...r,children:t.flexRender(n?.column?.columnDef?.cell,n?.getContext())},n?.id)}))]},r.id);return r.getIsExpanded()?e.jsxs(n.Fragment,{children:[u,s&&e.jsx("tr",{children:e.jsx(s,{row:r})})]},r.id):u})(r)))})}function Me({header:t}){return"left"!==t.column.getIsPinned()?e.jsx("div",{className:"ts--head--button",onClick:()=>t.column.pin("left")}):e.jsx("div",{className:"ts--head--button",onClick:()=>t.column.pin(!1),children:e.jsx(T,{})})}function ke({anchorEl:t,onClose:n,header:o,tableStates:a}){const s=Boolean(t),i=o.column,l="left"===i.getIsPinned(),{wrapColumns:d,setWrapColumns:c}=a;return e.jsx(r.Popover,{open:s,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsxs(r.List,{dense:!0,children:[e.jsxs(r.ListItemButton,{onClick:()=>i.toggleSorting(!1),children:[e.jsx(r.ListItemIcon,{children:e.jsx(f,{})}),e.jsx(r.ListItemText,{primary:"Sort ascending"})]}),e.jsxs(r.ListItemButton,{onClick:()=>i.toggleSorting(!0),children:[e.jsx(r.ListItemIcon,{children:e.jsx(j,{})}),e.jsx(r.ListItemText,{primary:"Sort descending"})]}),e.jsxs(r.ListItemButton,{onClick:()=>i.toggleVisibility(),children:[e.jsx(r.ListItemIcon,{children:e.jsx(A,{})}),e.jsx(r.ListItemText,{primary:"Hide in view"})]}),e.jsxs(r.ListItemButton,{onClick:()=>{i.pin(!l&&"left")},children:[e.jsx(r.ListItemIcon,{children:l?e.jsx(T,{}):e.jsx(z,{})}),e.jsx(r.ListItemText,{primary:l?"Unfreeze column":"Freeze up to column"})]}),e.jsxs(r.ListItemButton,{children:[e.jsx(r.ListItemText,{primary:"Wrap Cell"}),e.jsx(r.Switch,{checked:d.all_wrap||d[i.id],onChange:()=>{return e=i.id,void c((t=>({...t,[e]:!t[e],all_wrap:!1})));var e}})]})]})})}function Fe({header:r,featureOptions:o,tableStates:i}){const{enableColumnPinning:l}=o,[d,c]=n.useState(null),p=()=>{c(null)},{isDragging:u,transform:C,attributes:h,listeners:x}=a.useSortable({id:r.column.id}),m=r.column.getIsPinned(),g={opacity:u?.8:1,position:"relative",transform:s.CSS.Translate.toString(C),transition:"width transform 0.2s ease-in-out",width:r.column.getSize(),minWidth:`${r.column.columnDef.minSize??180}px`,maxWidth:`${r.column.columnDef.maxSize}px`};let _={className:"ts__content",style:{justifyContent:fe(r?.column?.columnDef?.meta?.align)}};return e.jsxs("th",{onMouseLeave:p,className:"ts__head__th",colSpan:r.colSpan,onClick:e=>{c((t=>t?null:e.currentTarget))},style:{width:`${r.column.getSize()}px `,minWidth:`${r.column.columnDef.minSize}px`,maxWidth:`${r.column.columnDef.maxSize}px`,...g,...je(r.column),zIndex:m?3:u?1:0},children:[r.isPlaceholder?null:e.jsxs("div",{..._,children:[e.jsxs("div",{className:(""+(r.column.getCanSort()?"ts__content__sort":"")).trim(),children:[t.flexRender(r.column.columnDef.header,r.getContext()),{asc:e.jsx(f,{}),desc:e.jsx(j,{})}[r.column.getIsSorted()]??null]}),l&&e.jsx(Me,{header:r,featureOptions:o,tableStates:i}),e.jsx("div",{...h,...x,className:"ts__dnd__button",children:e.jsx(F,{})})]}),r.column.getCanResize()?e.jsx("div",{onDoubleClick:()=>r.column.resetSize(),onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),className:"column__resize "+(r.column.getIsResizing()?"is__resizing":"")}):null,e.jsx(ke,{anchorEl:d,onClose:p,header:r,tableStates:i})]},r?.id)}function ze({table:r,featureOptions:o,columnOrder:s,tableStates:i}){const{stickyHeader:l,enableColumnReordering:d,enableColumnPinning:c,enableRowSelection:p}=o,[u,C]=n.useState(null),h=e=>{C((t=>t?null:e.currentTarget))};return e.jsx("thead",{className:("ts__head "+(l?"ts--sticky":"")).trim(),children:r.getHeaderGroups().map((n=>e.jsxs("tr",{className:"ts__head__tr",children:[p&&e.jsx("th",{className:"ts__head__th ts__head__checkbox",style:{position:"sticky",left:0,width:"50px"},children:e.jsx("div",{className:"ts__content",children:e.jsx(ye,{checked:r.getIsAllRowsSelected(),indeterminate:r.getIsSomeRowsSelected(),onChange:()=>r.toggleAllRowsSelected()})})}),n.headers.map((n=>{let r={className:"ts__content",style:{justifyContent:fe(n?.column?.columnDef?.meta?.align)}};return d?e.jsx(a.SortableContext,{items:s,strategy:a.horizontalListSortingStrategy,children:e.jsx(Fe,{header:n,featureOptions:o,tableStates:i})},n?.id):e.jsxs("th",{className:"ts__head__th",colSpan:n.colSpan,style:{...je(n.column),width:`${n.column.getSize()}px`,minWidth:`${n.column.columnDef.minSize}px`,maxWidth:`${n.column.columnDef.maxSize}px`},onClick:h,children:[n.isPlaceholder?null:e.jsxs("div",{...r,children:[e.jsxs("div",{className:(""+(n.column.getCanSort()?"ts__content__sort":"")).trim(),children:[t.flexRender(n.column.columnDef.header,n.getContext()),{asc:e.jsx(f,{}),desc:e.jsx(j,{})}[n.column.getIsSorted()]??null]}),c&&e.jsx(Me,{header:n,featureOptions:o,tableStates:i})]}),n.column.getCanResize()?e.jsx("div",{onDoubleClick:()=>n.column.resetSize(),onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),className:"column__resize "+(n.column.getIsResizing()?"is__resizing":"")}):null]},n?.id)}))]},n?.id)))})}function Te({table:t,featureOptions:n,NestedComponent:r,columnOrder:o,isCompactTable:a,tableStates:s}){const{striped:i}=n;return e.jsxs("table",{className:be(`ts__table ${i?"ts--striped":""} ${a?"ts--compact":""}`),children:[e.jsx(ze,{table:t,featureOptions:n,columnOrder:o,tableStates:s}),e.jsx(Se,{table:t,featureOptions:n,NestedComponent:r,columnOrder:o,tableStates:s})]})}function De({table:t,featureOptions:n,NestedComponent:r,columnOrder:s,setColumnOrder:i,isCompactTable:l,tableStates:d}){const c=o.useSensors(o.useSensor(o.MouseSensor,{}),o.useSensor(o.TouchSensor,{}),o.useSensor(o.KeyboardSensor,{}));return e.jsx(o.DndContext,{collisionDetection:o.closestCenter,modifiers:[_.restrictToHorizontalAxis],onDragEnd:e=>{const{active:t,over:n}=e;t&&n&&t.id!==n.id&&i((e=>{const r=e.indexOf(t.id),o=e.indexOf(n.id);return a.arrayMove(e,r,o)}))},sensors:c,children:e.jsx(Te,{table:t,featureOptions:n,NestedComponent:r,columnOrder:s,setColumnOrder:i,isCompactTable:l,tableStates:d})})}b(".table-tabs .tabs {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 0rem;\n padding: 0rem;\n}\n.table-tabs .tabs .tabs-settings {\n margin-left: 0.1rem;\n margin-right: 0.5rem;\n cursor: pointer;\n}\n.table-tabs .tabs .tab {\n display: flex;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n cursor: pointer;\n color: var(--grey-900);\n font-size: 0.875rem;\n font-family: var(--fira-700);\n}\n.table-tabs .tabs .tab .tab__label {\n font-family: inherit;\n}\n.table-tabs .tabs .tab.active {\n background: var(--grey-500);\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n backdrop-filter: blur(200px);\n}\n.table-tabs .tabs .tabs-dropdown {\n margin-left: 1rem;\n cursor: pointer;\n}"),exports.CraftTableTabs=function({loading:t=!1,tabsData:n=[],activeTab:o="ALL",onClick:a,tableStates:s}){return e.jsx("div",{className:"table-tabs",children:t?e.jsx("div",{className:"tabs-loader",children:e.jsx(r.CircularProgress,{size:24})}):e.jsx("ul",{className:"tabs",children:n?.length>0&&n.map((({tab_value:t,tab_value_count:n})=>e.jsxs("li",{className:be("tab "+(o===t?"active":"")),onClick:()=>{return e=t||"ALL",a&&a(e),void s.setPagination((e=>({...e,pageIndex:0})));var e},children:[e.jsx("span",{className:"tab__label",children:"string"==typeof t?t.toUpperCase():"UNKNOWN"}),e.jsx("span",{className:"count",children:n})]},t)))})})},exports.TableWrapper=function({data:r=[],columns:o=[],tableStates:a,paginationOptions:s,featureOptions:i,topbarOptions:l,nestedComponent:d,loadingOptions:c={isLoading:!1},customRenderFn:p={},shouldHideColumn:u}){if(!Array.isArray(r))throw new Error("data must be an array of objects.");const[C,h]=n.useState([]);n.useEffect((()=>{const e=o.filter((e=>{const t="accessorKey"in e?e.accessorKey:void 0;return"function"!=typeof u||!u(t)})).map(((e,t)=>{const n="accessorKey"in e?e.accessorKey:`col_${t}`;return{...e,id:n,cell:t=>{if("custom"===e.meta?.type&&e?.meta?.propName){const n=p?.[e.meta.propName];return"function"==typeof n?n({value:t.getValue(),row:t.row,table:t.table.getRowModel().rows}):t.getValue()}return"function"==typeof e.cell?e.cell(t):t.getValue()}}}));h(e)}),[o,a]);const[x,m]=n.useState((()=>C.map((e=>e.id))));n.useEffect((()=>{C.length>0&&m(C.map((e=>e.id)))}),[C]);const[g,_]=n.useState(i?.compactTable??!1),b=n.useRef(null);n.useEffect((()=>{_(i?.compactTable??!1)}),[i?.compactTable]);const f={showPagination:!0,paginationPosition:"bottom",paginationView:"full",...s},j=f?.totalRows??r.length,w=f?.rowsPerPageArray??[25,50,100,150],v={showColumnToggle:!0,showCompactTableToggle:!0,showChangeLayoutToggle:!0,viewMoreToggle:!0,showSearch:!0,showSortingToggle:!0,showFilterToggle:!0,tableStates:a,...l},y={enableTopbar:!0,enableSorting:!0,enableServerSidePagination:!1,enableServerSideSorting:!1,enableRowSelection:!1,enableColumnResizing:!0,enableColumnReordering:!0,enableColumnPinning:!0,enableMultiColumnSorting:!0,compactTable:!1,stickyHeader:!0,enableWordBreakAll:!1,striped:!1,...i},{enableTopbar:S,enableRowSelection:M,enableServerSidePagination:k,enableServerSideSorting:F,enableSorting:z,enableColumnResizing:T,enableColumnReordering:V,enableColumnPinning:L}=y,{sorting:I,setSorting:B,pagination:H,setPagination:N,rowSelection:A,setRowSelection:O,expanded:P,setExpanded:R}=a,Z=t.useReactTable({data:r,columns:C,state:{sorting:I,pagination:H,rowSelection:A,columnOrder:x,expanded:P},getCoreRowModel:t.getCoreRowModel(),enableSorting:z,onSortingChange:B,getSortedRowModel:t.getSortedRowModel(),manualSorting:F,getPaginationRowModel:t.getPaginationRowModel(),onPaginationChange:N,rowCount:j,manualPagination:k,enableRowSelection:M,onRowSelectionChange:O,enableColumnResizing:T,columnResizeDirection:"ltr",columnResizeMode:"onChange",onColumnOrderChange:m,enableColumnPinning:L,getExpandedRowModel:t.getExpandedRowModel(),onExpandedChange:R,getSubRows:e=>e.subRows??[]}),{isLoading:E,loadingComponent:W,loaderText:$}=c,{isFullscreen:U}=q();return e.jsx("div",{className:"ts__table__container",ref:b,children:E?W??e.jsxs("div",{className:"ts__loader",children:[e.jsx(D,{}),$&&e.jsx("p",{children:$})]}):e.jsxs(e.Fragment,{children:[S&&e.jsx(ge,{table:Z,topbarOptions:v,isCompactTable:g,setIsCompactTable:_,isFullscreen:U,fullscreenToggle:()=>{document.fullscreenElement?document.exitFullscreen():b.current?.requestFullscreen().catch((e=>{console.error("Error attempting to enable fullscreen mode:",e)}))},paginationComponent:!0===f?.showPagination&&"top"===f?.paginationPosition?e.jsx(_e,{table:Z,rowsPerPageArray:w,paginationOptions:f}):null,tableStates:a}),e.jsx("div",{className:"ts__table__wrapper "+(U?"is-fullscreen":""),children:V?e.jsx(De,{table:Z,columnOrder:x,featureOptions:y,NestedComponent:d,setColumnOrder:m,isCompactTable:g,tableStates:a}):e.jsx(Te,{table:Z,featureOptions:y,NestedComponent:d,columnOrder:x,setColumnOrder:m,isCompactTable:g,tableStates:a})}),!0===f?.showPagination&&"bottom"===f?.paginationPosition?e.jsx(_e,{table:Z,rowsPerPageArray:w,paginationOptions:f}):null]})})},exports.useCraftTable=function(e=25){const[t,r]=n.useState({pageIndex:0,pageSize:e}),[o,a]=n.useState([]),[s,i]=n.useState({}),[l,d]=n.useState({}),[c,p]=n.useState({all_wrap:!0}),[u,C]=n.useState([]),[h,x]=n.useState(""),[m,g]=n.useState(null),[_,b]=n.useState(""),[f,j]=n.useState(null);if(t.pageIndex<0||t.pageSize<=0)throw new Error("Invalid pagination values: pageIndex and pageSize must be positive.");return{sorting:o,setSorting:a,pagination:t,setPagination:r,rowSelection:s,setRowSelection:i,expanded:l,setExpanded:d,wrapColumns:c,setWrapColumns:p,filters:u,setFilters:C,savedFilterEditValue:h,setSavedFilterEditValue:x,filterToDelete:m,setFilterToDelete:g,filterSelectedAttributeValue:_,setFilterSelectedAttributeValue:b,filterMaster:f,setFilterMaster:j}};
|