!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f30beeac-b365-4f21-8b2f-9c8e8ce52e5c",e._sentryDebugIdIdentifier="sentry-dbid-f30beeac-b365-4f21-8b2f-9c8e8ce52e5c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3562],{20181:function(e,t,l){l.d(t,{Z:function(){return m}});var r=l(57437),n=l(2265),o=l(33514),i=l(54175),a=l(49753),u=l(10443),s=l(91697),d=l(20450),c=l.n(d),f=l(82854),L=l(31586),p=l(34190),v=function(e){let{isPinning:t,reactTableWidth:l,tableContainer:r}=e,[o,i]=n.useState(()=>{if(t)return l});return n.useEffect(()=>{let e=r();if(e&&t&&e&&e.parentElement){let t=(function(e){l>e.clientWidth?i(l):i(void 0)}).bind(null,e.parentElement);return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}},[t,l,r]),{tableWidth:o}};function C(e){let t=e.getIsPinned();return{left:"left"===t?"".concat(e.getStart("left"),"px"):void 0,right:"right"===t?"".concat(e.getAfter("right"),"px"):void 0,position:t?"sticky":"relative",width:e.getSize(),zIndex:t?1:void 0}}let h=n.memo(e=>{let{cell:t}=e;return(0,o.ie)(t.column.columnDef.cell,t.getContext())},(e,t)=>{var l,r;let n=!0;return(null!==(r=null===(l=e.cell.column.columnDef.meta)||void 0===l?void 0:l.skipRenderKeys)&&void 0!==r?r:[]).forEach(l=>{let r=(0,s.Z)(e.cell.row.original,l),o=(0,s.Z)(t.cell.row.original,l);c()(r,o)||(n=!1)}),n});h.displayName="MemoCellContent";var m=function(e){let{columns:t,data:l,tableOptions:s={},status:d="success",PendingTemplate:c="Loading...",ErrorTemplate:m="Something wrong happened.",NoResultTemplate:b="No Result",CustomComponent:R,fetchNextPage:x,fetchNextPageEnabled:y,classNames:g,onClickRow:E,onHoverRow:w,stickyHeader:N=!1,rowDataTestId:_,parentContainer:A}=e,T=n.useMemo(()=>null!=l?l:[],[l]),j=n.useMemo(()=>(0,a.Z)({},s),[s]),Z=n.useRef(!1),D=n.useRef(null),I=(0,o.b7)({getCoreRowModel:(0,i.sC)(),data:T,meta:{skipRenderKeys:[]},...j,columns:t,getSortedRowModel:(0,i.tj)()}),{tableWidth:S}=v({isPinning:n.useMemo(()=>{let e=I.getState().columnPinning;return!(0,u.Z)(null==e?void 0:e.left)||!(0,u.Z)(null==e?void 0:e.right)},[I]),reactTableWidth:I.getTotalSize(),tableContainer:()=>D.current}),M=n.useCallback(()=>{if(!Z.current&&y&&"function"==typeof x)try{Z.current=!0,x()}finally{Z.current=!1}},[x,y]);return n.useEffect(()=>{function e(e){let{scrollHeight:t,offsetHeight:l,scrollTop:r}=e,n=l+r;t-L.jk<=n&&t>=n&&M()}if(null!=A&&""!==A){let t=document.querySelector(A);if(t){let l=e.bind(null,t);return t.addEventListener("scroll",l),l(),()=>{t.removeEventListener("scroll",l)}}}else{let t=e.bind(null,document.documentElement);return window.addEventListener("scroll",t),t(),()=>{window.removeEventListener("scroll",t)}}},[A,M]),(0,r.jsxs)(f.Z.Root,{ref:D,className:null==g?void 0:g.table,containerClassName:null==g?void 0:g.tableContainer,style:{width:S},children:[(0,r.jsx)(f.Z.Header,{className:(0,p.cn)({"sticky top-0 z-30":N},null==g?void 0:g.tableHeader),children:I.getHeaderGroups().map(e=>(0,r.jsx)(f.Z.Row,{className:null==g?void 0:g.tableRow,children:e.headers.map(e=>(0,r.jsx)(f.Z.Head,{colSpan:e.colSpan,className:(0,p.cn)("bg-canvas-stain",null==g?void 0:g.tableHead),style:{...C(e.column)},children:e.isPlaceholder?null:(0,o.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,r.jsxs)(f.Z.Body,{children:["pending"===d&&(0,r.jsx)(f.Z.Row,{className:null==g?void 0:g.tableRow,children:(0,r.jsx)(f.Z.Cell,{colSpan:t.length,className:(0,p.cn)("text-center",null==g?void 0:g.tableCell),children:c})}),"error"===d&&(0,r.jsx)(f.Z.Row,{className:null==g?void 0:g.tableRow,children:(0,r.jsx)(f.Z.Cell,{colSpan:t.length,className:(0,p.cn)("text-center",null==g?void 0:g.tableCell),children:m})}),"success"===d&&0===I.getRowModel().rows.length&&(0,r.jsx)(f.Z.Row,{className:null==g?void 0:g.tableRow,children:(0,r.jsx)(f.Z.Cell,{colSpan:t.length,className:(0,p.cn)("text-center",null==g?void 0:g.tableCell),children:b})}),"success"===d&&I.getRowModel().rows.length>0&&R?R(I):I.getRowModel().rows.map((e,t)=>{var l;return(0,r.jsx)(f.Z.Row,{"data-testid":_?"".concat(_,"-").concat(t):null,onClick:()=>null==E?void 0:E(e.original),onMouseEnter:()=>null==w?void 0:w(e.original),onMouseLeave:()=>null==w?void 0:w(null),"data-state":e.getIsSelected()&&"selected",className:(0,p.cn)("group/table-row",{"cursor-pointer":void 0!==E},null==g?void 0:g.tableRow,null==g?void 0:null===(l=g.tableRowCustom)||void 0===l?void 0:l.call(g,e.original)),children:e.getVisibleCells().map(e=>{var t;return(0,r.jsx)(f.Z.Cell,{id:e.id,style:{...C(e.column)},className:(0,p.cn)("bg-background group-hover/table-row:bg-canvas-static",{"hover:!z-10":e.column.getIsPinned()},null==g?void 0:g.tableCell),children:(0,u.Z)(null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.skipRenderKeys)?(0,o.ie)(e.column.columnDef.cell,e.getContext()):(0,r.jsx)(h,{cell:e})},e.id)})},e.id)})]})]})}},66140:function(e,t,l){var r=l(57437);l(2265);var n=l(20915),o=l(18998),i=l(75689),a=l(34190);t.Z=function(e){let{children:t,column:l,classNames:u,enableNeutralSort:s=!1,...d}=e,c=l.getIsSorted(),f=(0,r.jsx)(o.Z,{className:null==u?void 0:u.icon});return c&&("asc"===c&&(f=(0,r.jsx)(i.Z,{className:null==u?void 0:u.icon})),"desc"===c&&(f=(0,r.jsx)(n.Z,{className:null==u?void 0:u.icon}))),(0,r.jsxs)("button",{...d,className:(0,a.cn)("flex items-center gap-0 hover:text-foreground sm:gap-1 lg:gap-1.5",null==u?void 0:u.button,{"text-foreground":c}),"aria-label":"sort",onClick:function(){let e=!1===c;if("desc"===c){l.toggleSorting(!1);return}if(!s||e){l.toggleSorting(!0);return}l.clearSorting()},children:[(0,r.jsx)("div",{children:t}),(0,r.jsx)("div",{className:"flex",children:f})]})}},71730:function(e,t,l){var r=l(57437);let n=l(2265).forwardRef((e,t)=>{let{color:l="currentColor",...n}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",ref:t,...n,children:(0,r.jsx)("path",{fill:l,d:"M15 4H6v16h12V7h-3V4ZM6 2h10l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm2 10a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"})})});t.Z=n},40077:function(e,t,l){var r=l(57437);let n=l(2265).forwardRef((e,t)=>{let{color:l="currentColor",...n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:82,height:60,ref:t,fill:"none",viewBox:"0 0 82 60",...n,children:[(0,r.jsx)("path",{opacity:"0.6",d:"M23.5949 46.1757L17.6035 28.0324C17.1154 26.5545 18.0075 24.9777 19.5257 24.6349L45.9942 18.6583C47.2955 18.3644 48.6112 19.0893 49.0581 20.3463L55.0179 37.1084C55.5299 38.5485 54.7136 40.1208 53.2412 40.5306L26.8044 47.8884C25.4489 48.2656 24.0361 47.5117 23.5949 46.1757Z",fill:"#8D8E8E"}),(0,r.jsx)("path",{d:"M25.5477 42.6441L19.2248 24.5798C18.7044 23.093 19.5956 21.4848 21.1322 21.138L50.2707 14.561C51.5513 14.2719 52.8495 14.9695 53.3152 16.197L59.5941 32.744C60.1442 34.1937 59.3301 35.8027 57.8363 36.2183L28.7419 44.3126C27.4039 44.6848 26.0066 43.9549 25.5477 42.6441Z",fill:l}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.7185 42.9343L18.3956 24.8701C17.7017 22.8877 18.89 20.7434 20.9388 20.281L50.0772 13.704C51.7848 13.3186 53.5157 14.2487 54.1367 15.8853L60.4155 32.4323C61.149 34.3653 60.0636 36.5107 58.0718 37.0648L28.9774 45.159C27.1934 45.6553 25.3303 44.6821 24.7185 42.9343ZM19.2248 24.5798L25.5478 42.6441C26.0066 43.9549 27.4039 44.6848 28.7419 44.3126L57.8363 36.2184C59.3301 35.8028 60.1442 34.1937 59.5941 32.744L53.3153 16.197C52.8495 14.9695 51.5513 14.272 50.2707 14.561L21.1322 21.138C19.5957 21.4848 18.7044 23.0931 19.2248 24.5798Z",fill:"#020203"}),(0,r.jsx)("path",{d:"M46.1651 30.911L44.0651 25.4766C43.4969 24.006 44.3381 22.3688 45.8646 21.9746L50.2783 20.8345C51.5786 20.4987 52.9235 21.1942 53.4009 22.4494L55.429 27.7812C55.9778 29.224 55.1748 30.8274 53.6908 31.2522L49.3489 32.4949C48.0377 32.8702 46.6567 32.1831 46.1651 30.911Z",fill:"#FFA009"}),(0,r.jsx)("path",{opacity:"0.6",d:"M38.6362 26.7236L25.3494 29.7784C24.7464 29.917 24.1326 29.5945 23.9047 29.0193C23.6194 28.2991 24.0499 27.4953 24.8074 27.3336L38.1404 24.4872C38.6975 24.3682 39.2574 24.6768 39.4543 25.2113C39.693 25.859 39.3089 26.569 38.6362 26.7236Z",fill:"#8D8E8E"}),(0,r.jsx)("path",{opacity:"0.6",d:"M35.1456 30.8077L26.0725 32.9827C25.6542 33.0829 25.2261 32.8592 25.0697 32.4585C24.8777 31.9669 25.1691 31.4198 25.6842 31.3049L34.7905 29.273C35.1768 29.1868 35.5672 29.4008 35.7023 29.7729C35.8628 30.2148 35.6029 30.6981 35.1456 30.8077Z",fill:"#8D8E8E"}),(0,r.jsx)("path",{opacity:"0.6",d:"M43.0813 19.7758L28.7976 23.165C28.3787 23.2644 27.9507 23.0401 27.7941 22.639C27.602 22.1471 27.8927 21.5994 28.4079 21.4829L42.7267 18.2452C43.1126 18.1579 43.5033 18.3713 43.6384 18.7432C43.7987 19.1847 43.5384 19.6673 43.0813 19.7758Z",fill:"#8D8E8E"}),(0,r.jsx)("path",{opacity:"0.6",d:"M41.7018 32.6888L27.4181 36.078C26.9992 36.1774 26.5711 35.953 26.4146 35.552C26.2224 35.06 26.5132 34.5124 27.0284 34.3959L41.3472 31.1581C41.7331 31.0709 42.1237 31.2843 42.2588 31.6562C42.4192 32.0977 42.1588 32.5803 41.7018 32.6888Z",fill:"#8D8E8E"}),(0,r.jsx)("path",{opacity:"0.6",d:"M42.7778 35.3789L28.4941 38.7682C28.0752 38.8676 27.6472 38.6432 27.4906 38.2422C27.2985 37.7502 27.5892 37.2026 28.1044 37.0861L42.4232 33.8483C42.8091 33.761 43.1998 33.9744 43.3349 34.3464C43.4952 34.7879 43.2349 35.2705 42.7778 35.3789Z",fill:"#8D8E8E"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.9511 23.6169C50.2514 23.4967 50.5923 23.6428 50.7124 23.9432L51.2981 25.4075C51.4183 25.7078 51.2722 26.0487 50.9718 26.1688C50.6715 26.2889 50.3306 26.1429 50.2105 25.8425L49.6248 24.3782C49.5046 24.0779 49.6507 23.737 49.9511 23.6169ZM47.7546 24.349C48.055 24.2289 48.3958 24.375 48.516 24.6753L49.1017 26.1396C49.2218 26.4399 49.0757 26.7808 48.7754 26.9009C48.4751 27.0211 48.1342 26.875 48.0141 26.5747L47.4283 25.1104C47.3082 24.81 47.4543 24.4692 47.7546 24.349ZM53.1984 26.9978C53.4916 27.1346 53.6183 27.4831 53.4815 27.7762C52.8631 29.1014 51.6247 29.729 50.4822 29.9521C49.907 30.0644 49.334 30.08 48.8315 30.0259C48.3404 29.973 47.869 29.8483 47.5244 29.6415C47.247 29.4751 47.1571 29.1153 47.3235 28.8379C47.4899 28.5605 47.8497 28.4706 48.1271 28.637C48.2706 28.7231 48.5557 28.818 48.9569 28.8612C49.3467 28.9032 49.8017 28.8914 50.2577 28.8024C51.1774 28.6228 52.0134 28.1521 52.42 27.2809C52.5568 26.9877 52.9053 26.861 53.1984 26.9978Z",fill:"white"}),(0,r.jsx)("path",{d:"M44.5833 36.1797L45.5705 36.6474L42.5636 42.9934L41.5764 42.5256L44.5833 36.1797Z",fill:"#FFA009"}),(0,r.jsx)("path",{d:"M41.2943 42.3921L42.8456 43.1271L40.2062 48.6974C40.0032 49.1258 39.4914 49.3085 39.0631 49.1055C38.6347 48.9026 38.452 48.3908 38.655 47.9624L41.2943 42.3921Z",fill:"white"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.9522 41.7318L44.4977 36.3597C42.3988 35.1552 40.7022 33.2254 39.8248 30.7677C37.8688 25.289 40.7246 19.262 46.2033 17.306C51.6821 15.35 57.7091 18.2058 59.6651 23.6845C61.6211 29.1632 58.7653 35.1903 53.2865 37.1463C50.6357 38.0926 47.8565 37.9126 45.4722 36.854L42.9394 42.1995L42.5632 42.9934L41.576 42.5257L41.9522 41.7318ZM41.1583 41.3556L43.3684 36.6912C41.4155 35.3776 39.8493 33.4494 38.9974 31.0631C36.8782 25.1274 39.9722 18.5977 45.9079 16.4786C51.8436 14.3594 58.3734 17.4534 60.4925 23.3891C62.6116 29.3248 59.5177 35.8546 53.5819 37.9737C51.0012 38.895 48.3066 38.8305 45.9129 37.9758L43.7333 42.5757L44.0153 42.7094L40.9998 49.0736C40.589 49.9405 39.5533 50.3102 38.6865 49.8995C37.8196 49.4888 37.4499 48.4531 37.8606 47.5862L40.8762 41.222L41.1583 41.3556ZM42.469 43.921L42.8452 43.1271L41.2939 42.3921L40.9178 43.186L38.6546 47.9624C38.4516 48.3908 38.6343 48.9026 39.0627 49.1056C39.4911 49.3085 40.0028 49.1258 40.2058 48.6974L42.469 43.921Z",fill:"#171717"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.7946 35.7672C57.5117 34.0831 59.9705 28.8939 58.2864 24.1768C56.6024 19.4597 51.4132 17.0009 46.696 18.685C41.9789 20.369 39.5201 25.5582 41.2042 30.2753C42.8883 34.9925 48.0775 37.4512 52.7946 35.7672ZM53.2869 37.1462C58.7657 35.1902 61.6214 29.1632 59.6655 23.6845C57.7095 18.2057 51.6825 15.3499 46.2037 17.3059C40.725 19.2619 37.8692 25.2889 39.8252 30.7677C41.7812 36.2464 47.8082 39.1022 53.2869 37.1462Z",fill:"white"}),(0,r.jsx)("path",{opacity:"0.4",d:"M59.2545 23.7008C61.139 28.9794 58.3876 34.7863 53.109 36.6708C47.8303 38.5554 42.0235 35.8039 40.1389 30.5253C38.2544 25.2467 41.0058 19.4398 46.2845 17.5553C51.5631 15.6708 57.37 18.4222 59.2545 23.7008Z",fill:"#979797"}),(0,r.jsx)("path",{d:"M46.5315 19.8813C47.1878 20.4309 45.6404 20.9454 44.5412 22.2581C43.442 23.5707 43.2072 25.1844 42.5509 24.6348C41.8946 24.0852 42.2536 22.5755 43.3528 21.2629C44.452 19.9503 45.8751 19.3317 46.5315 19.8813Z",fill:l})]})});t.Z=n},20915:function(e,t,l){var r=l(57437);let n=l(2265).forwardRef((e,t)=>{let{color:l="currentColor",downColor:n="hsl(216 92% 50%)",...o}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",...o,ref:t,children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7188 4.29801L16.7018 8.25522C17.0994 8.65257 17.0994 9.29445 16.7018 9.6918C16.3042 10.0891 15.6619 10.0891 15.2642 9.6918L11.9949 6.46817L8.73575 9.70199C8.33813 10.0993 7.69583 10.0993 7.29821 9.70199C6.9006 9.30463 6.9006 8.66276 7.29821 8.2654L11.2812 4.29801C11.6788 3.90066 12.3212 3.90066 12.7188 4.29801Z",fill:l}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7188 19.702L16.7018 15.7448C17.0994 15.3474 17.0994 14.7056 16.7018 14.3082C16.3042 13.9109 15.6619 13.9109 15.2642 14.3082L11.9949 17.5318L8.73575 14.298C8.33813 13.9007 7.69583 13.9007 7.29821 14.298C6.9006 14.6954 6.9006 15.3372 7.29821 15.7346L11.2812 19.702C11.6788 20.0993 12.3212 20.0993 12.7188 19.702Z",fill:n})]})});t.Z=n},18998:function(e,t,l){var r=l(57437);let n=l(2265).forwardRef((e,t)=>{let{color:l="currentColor",...n}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",...n,ref:t,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.29821 14.298C7.69583 13.9007 8.33813 13.9007 8.73575 14.298L11.9949 17.5318L15.2642 14.3082C15.6619 13.9109 16.3042 13.9109 16.7018 14.3082C17.0994 14.7056 17.0994 15.3474 16.7018 15.7448L12.7188 19.702C12.3212 20.0993 11.6788 20.0993 11.2812 19.702L7.29821 15.7346C6.9006 15.3372 6.9006 14.6954 7.29821 14.298ZM12.7188 4.29801L16.7018 8.25522C17.0994 8.65257 17.0994 9.29445 16.7018 9.6918C16.3042 10.0891 15.6619 10.0891 15.2642 9.6918L11.9949 6.46817L8.73575 9.70199C8.33813 10.0993 7.69583 10.0993 7.29821 9.70199C6.9006 9.30463 6.9006 8.66276 7.29821 8.2654L11.2812 4.29801C11.6788 3.90066 12.3212 3.90066 12.7188 4.29801Z",fill:l})})});t.Z=n},75689:function(e,t,l){var r=l(57437);let n=l(2265).forwardRef((e,t)=>{let{color:l="currentColor",upColor:n="hsl(216 92% 50%)",...o}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",...o,ref:t,children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7188 4.29801L16.7018 8.25522C17.0994 8.65257 17.0994 9.29445 16.7018 9.6918C16.3042 10.0891 15.6619 10.0891 15.2642 9.6918L11.9949 6.46817L8.73575 9.70199C8.33813 10.0993 7.69583 10.0993 7.29821 9.70199C6.9006 9.30463 6.9006 8.66276 7.29821 8.2654L11.2812 4.29801C11.6788 3.90066 12.3212 3.90066 12.7188 4.29801Z",fill:n}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7188 19.702L16.7018 15.7448C17.0994 15.3474 17.0994 14.7056 16.7018 14.3082C16.3042 13.9109 15.6619 13.9109 15.2642 14.3082L11.9949 17.5318L8.73575 14.298C8.33813 13.9007 7.69583 13.9007 7.29821 14.298C6.9006 14.6954 6.9006 15.3372 7.29821 15.7346L11.2812 19.702C11.6788 20.0993 12.3212 20.0993 12.7188 19.702Z",fill:l})]})});t.Z=n},82854:function(e,t,l){var r=l(57437),n=l(2265),o=l(13027),i=l(34190);let a=(0,o.j)("w-full caption-bottom",{variants:{size:{default:"text-xs"}},defaultVariants:{size:"default"}}),u=(0,o.j)("text-left align-middle font-medium text-ink-tertiary [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"py-3"}},defaultVariants:{size:"default"}}),s=(0,o.j)("align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"py-3"}},defaultVariants:{size:"default"}}),d=n.createContext(void 0);function c(){let e=n.useContext(d);if(void 0===e)throw Error("useTable should be used within ");return e}let f=n.forwardRef((e,t)=>{let{className:l,containerClassName:o,...u}=e,{size:s,children:c,...f}=u;return(0,r.jsx)("div",{className:(0,i.cn)("relative h-[inherit] w-full overflow-auto",o),children:(0,r.jsx)("table",{ref:t,className:(0,i.cn)(a({size:s,className:l})),...f,children:(0,r.jsx)(d.Provider,{value:n.useMemo(()=>({size:s}),[s]),children:c})})})});f.displayName="TableRoot";let L=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)("thead",{ref:t,className:(0,i.cn)("[&_tr]:border-b",l),...n})});L.displayName="TableHeader";let p=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)("tbody",{ref:t,className:(0,i.cn)(l),...n})});p.displayName="TableBody";let v=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)("tfoot",{ref:t,className:(0,i.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",l),...n})});v.displayName="TableFooter";let C=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)("tr",{ref:t,className:(0,i.cn)("border-b transition-colors data-[state=selected]:bg-muted",l),...n})});C.displayName="TableRow";let h=n.forwardRef((e,t)=>{let{className:l,...n}=e,{size:o}=c();return(0,r.jsx)("th",{ref:t,className:(0,i.cn)("first-of-type:pl-6 last-of-type:pr-6",u({size:o,className:l})),...n})});h.displayName="TableHead";let m=n.forwardRef((e,t)=>{let{className:l,...n}=e,{size:o}=c();return(0,r.jsx)("td",{ref:t,className:(0,i.cn)("first-of-type:pl-6 last-of-type:pr-6",s({size:o,className:l})),...n})});m.displayName="TableCell";let b=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)("caption",{ref:t,className:(0,i.cn)("mt-4 text-sm text-muted-foreground",l),...n})});b.displayName="TableCaption";let R=Object.assign({},{Root:f,Body:p,Caption:b,Cell:m,Footer:v,Head:h,Header:L,Row:C});t.Z=R},19056:function(e,t,l){var r=l(57437),n=l(2265),o=l(78273),i=l(34190);let a=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)(o.fC,{ref:t,className:(0,i.cn)("w-full text-sm",l),...n})});a.displayName=o.fC.displayName;let u=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)(o.aV,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center text-ink-tertiary",l),...n})});u.displayName=o.aV.displayName;let s=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)(o.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap border-b-2 border-b-transparent py-2 font-semibold outline-none transition-all data-[state=active]:border-b-2 data-[state=active]:border-b-foreground data-[state=active]:text-foreground hover:text-foreground focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",l),...n})});s.displayName=o.xz.displayName;let d=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,r.jsx)(o.VY,{ref:t,className:(0,i.cn)("mt-2",l),...n})});d.displayName=o.VY.displayName;let c=Object.assign({},{Root:a,List:u,Trigger:s,Content:d});t.Z=c},29865:function(e,t,l){l.d(t,{BZ:function(){return s},Dy:function(){return u},KJ:function(){return i},WV:function(){return d},Wu:function(){return c},ek:function(){return a},fx:function(){return o},p6:function(){return n}});var r=l(28420);function n(e,t){return e instanceof Date&&e.toISOString().includes("0001-01-01")?"-":""===t?new Date(e).toISOString():(0,r.WU)(e,t)}function o(e){return n(e,"dd MMM yyyy")}function i(e){return n(e,"HH:mm:ss")}function a(e){return n(e,"dd MMM yyyy HH:mm:ss")}function u(e){return n(e,"dd MMM yyyy HH:mm")}function s(e){return n(e,"dd-MM-yyyy HH:mm:ss")}function d(e){return n(e,"dd-MM-yyyy HH:mm")}function c(e){return n(e,"dd MMM, h:mm a")}},68939:function(e,t,l){l.d(t,{CD:function(){return f},KP:function(){return u},Y3:function(){return d},e8:function(){return c},xX:function(){return s}});var r=l(62230),n=l(21900),o=l(71475),i=l(71459),a=l(70343);function u(){return(0,r.i)(new Date)}function s(){return(0,n.b)((0,o.k)(new Date,1))}function d(){return(0,n.b)((0,i.t)(new Date,1))}function c(){return(0,n.b)((0,a.W)(new Date,1))}function f(){return(0,n.b)((0,a.W)(new Date,3))}},48214:function(e,t,l){var r=l(54252),n=l(15326);t.Z=function(e){let{dataKey:t,queryConfig:l}=e,{transformedQueryKey:o,queryFn:i}=(0,n.zC)(e),a=(0,n.MZ)(e);return(0,r.useInfiniteQuery)({queryKey:o,queryFn:i,select:(0,n.BJ)(t),initialPageParam:void 0,getNextPageParam:(0,n.CR)({dataKey:t,responsePageSizeKey:a}),...l})}},3294:function(e,t,l){l.d(t,{BZ:function(){return E},C0:function(){return A},C5:function(){return g},GZ:function(){return P},JR:function(){return u},Lg:function(){return Z},M8:function(){return M},Mh:function(){return a},NM:function(){return I},Nr:function(){return w},PD:function(){return m},UR:function(){return o},WE:function(){return j},XB:function(){return T},a8:function(){return d},bU:function(){return _},f6:function(){return S},fi:function(){return O},gk:function(){return i},h9:function(){return f},jI:function(){return H},jY:function(){return c},mC:function(){return D},mq:function(){return C},nE:function(){return v},nY:function(){return s},pX:function(){return b},qh:function(){return y},r1:function(){return N},tM:function(){return h},tr:function(){return L},wU:function(){return x},wW:function(){return R},y4:function(){return p}});var r=l(68939),n=l(25244);let o="All",i={ALL:"ALL",BUY:"BUY",SELL:"SELL"},a={ALL:"ALL",BUY:"BUY",SELL:"SELL",TP_LONG:"TAKE PROFIT LONG",TP_SHORT:"TAKE PROFIT SHORT",SL_LONG:"STOP LOSS LONG",SL_SHORT:"STOP LOSS SHORT"},u={ALL:"ALL",PLACED:"PLACED",FILLED:"FILLED",PARTIALLY_FILLED:"PARTIALLY_FILLED",REJECTED:"REJECTED",CANCELED:"CANCELED"},s={ALL:"ALL",ORDER:"ORDER",TRIGGER:"TRIGGER"},d=[{label:"pro.futures.open_orders.pill.all",value:s.ALL},{label:"pro.futures.open_orders.pill.orders",value:s.ORDER},{label:"pro.futures.open_orders.pill.triggers",value:s.TRIGGER}],c=[{label:"pro.history.all.pill",value:i.ALL},{label:"pro.history.filter.​buy.pill",value:i.BUY},{label:"pro.​history.​filter.​sell.pill",value:i.SELL}],f=[{label:"pro.history.all.pill",value:i.ALL},{label:"pro.​history.​filter.​order_type.long.pill",value:i.BUY},{label:"pro.​history.​filter.​order_type.short.pill",value:i.SELL},{label:"pro.futures.badge.liq_takeover",value:n.GR},{label:"pro.futures.badge.auto_deleverage",value:n.sT},{label:"pro_web.futures.badge.early_settlement",value:n.nc}],L=[{label:"pro.history.all.pill",value:a.ALL},{label:"pro.​history.​filter.​order_type.long.pill",value:a.BUY},{label:"pro.​history.​filter.​order_type.short.pill",value:a.SELL},{label:"pro.futures.tpsl.badge.tp_long",value:a.TP_LONG},{label:"pro.futures.tpsl.badge.tp_short",value:a.TP_SHORT},{label:"pro.futures.tpsl.badge.sl_long",value:a.SL_LONG},{label:"pro.futures.tpsl.badge.sl_short",value:a.SL_SHORT}],p=[{label:"pro.history.all.pill",value:u.ALL},{label:"pro.history.filled.status",value:u.FILLED},{label:"pro.history.partially_filled.status",value:u.PARTIALLY_FILLED},{label:"pro.history.canceled.status",value:u.CANCELED},{label:"pro.history.rejected.status",value:u.REJECTED}],v=[{label:"1W",value:"week"},{label:"1M",value:"month"},{label:"3M",value:"three_months"}],C=50,h=3,m={SEND_RECEIVE_HISTORY:"sendreceive",TRANSFER_HISTORY:"transfer"},b="funding-history",R="DEPOSIT",x="WITHDRAWAL",y="OFFCHAIN_DEPOSIT",g="OFFCHAIN_WITHDRAWAL",E="INTERNAL_DEPOSIT",w="INTERNAL_WITHDRAWAL",N="INTERNAL_DEPOSIT_PERPS",_="INTERNAL_WITHDRAWAL_PERPS",A={ALL:"ALL",DEPOSIT:"DEPOSIT",WITHDRAWAL:"WITHDRAWAL"},T={ALL:"ALL",COMPLETED:"SUCCESS",IN_PROGRESS:"INIT",FAILED:"FAILED",ON_HOLD:"FROZEN",UNDER_REVIEW:"UNDER_REVIEW"},j={ALL:"ALL",INTERNAL_DEPOSIT:E,INTERNAL_DEPOSIT_PERPS:N,INTERNAL_WITHDRAWAL:w,INTERNAL_WITHDRAWAL_PERPS:_},Z=[{label:"pro.history.all.pill",value:A.ALL},{label:"pro_web.tx_details.send.label",value:A.WITHDRAWAL},{label:"pro_web.tx_details.receive.label",value:A.DEPOSIT}],D=[{label:"pro.history.all.pill",value:T.ALL},{label:"pro.tx_details.completed.label",value:T.COMPLETED},{label:"pro_web.receive.in_progress.label",value:T.IN_PROGRESS},{label:"pro.tx_details.failed.label",value:T.FAILED},{label:"pro.tx_details.onhold.label",value:T.ON_HOLD},{label:"transaction.send.reviewed",value:T.UNDER_REVIEW}],I=[{label:"pro.history.send_receive.all.pill",value:j.ALL},{label:"pro.futures.history.send_receive.transfer_to_spot.pill",value:j.INTERNAL_DEPOSIT},{label:"pro.futures.history.send_receive.transfer_from_spot.pill",value:j.INTERNAL_WITHDRAWAL},{label:"pro.futures.history.send_receive.transfer_to_futures.pill",value:j.INTERNAL_DEPOSIT_PERPS},{label:"pro.futures.history.send_receive.transfer_from_futures.pill",value:j.INTERNAL_WITHDRAWAL_PERPS}],S="0,075",M="0,1",P="0,02",O=[{trade_id:"",order_id:"",symbol:"",side:"BUY",price:0,fee:0,fee_asset:"",fee_type:"maker",client_order_id:"",traded_size:0,traded_at:0}],H={dateRange:{from:(0,r.Y3)(),to:(0,r.KP)()},side:f[0].value,symbol:o,status:p[0].value,type:s.ALL}},41886:function(e,t,l){l.d(t,{AB:function(){return d},G3:function(){return c},NO:function(){return u},ON:function(){return p},Qd:function(){return f},T$:function(){return v},b4:function(){return L},i1:function(){return s}});var r=l(5207),n=l(68939),o=l(73591),i=l(98725),a=l(3294);function u(e){switch(e){case"day":return{from:(0,n.xX)(),to:(0,n.KP)()};case"week":return{from:(0,n.Y3)(),to:(0,n.KP)()};case"month":return{from:(0,n.e8)(),to:(0,n.KP)()};case"three_months":return{from:(0,n.CD)(),to:(0,n.KP)()}}}function s(e,t){return e===o.to&&t===o.Kz?"Limit Buy":e===o.T$&&t===o.Kz?"Limit Sell":e===o.to&&t===o.rs?"Market Buy":e===o.T$&&t===o.rs?"Market Sell":""}function d(e){return e===o.Kz?"Limit Order":e===o.rs?"Market Order":""}function c(e){return e===o.to?"text-success":e===o.T$?"text-danger":""}function f(e){return void 0!==e.sender&&void 0!==e.receiver}function L(e,t,l){return e===o.rs&&t===a.JR.PARTIALLY_FILLED&&l===o.to}function p(e){let t=e.status;return L(e.type,e.status,e.side)&&(t="FILLED"),t}function v(e){var t,l;let n=new r.Z(null!==(t=e.cumSize)&&void 0!==t?t:0).div(new r.Z(null!==(l=e.size)&&void 0!==l?l:0)).times(100);return(n=n.isNaN()?new r.Z(0):n,L(e.type,e.status,e.side))?{value:new r.Z(100).toNumber(),formattedValue:new r.Z(100).toFormat()}:{value:n.toNumber(),formattedValue:n.dp(i.kR).toFormat()}}},20856:function(e,t,l){l.d(t,{Z:function(){return d}});var r=l(57437);l(2265);var n=l(6357),o=l(38093),i=l(71730),a=function(e){let{text:t,EmptyListContent:l}=e,{t:n}=(0,o.$G)();return(0,r.jsxs)("div",{className:"flex h-[240px] flex-col items-center justify-center gap-1",children:[(0,r.jsx)(i.Z,{className:"size-6 text-ink-tertiary"}),(0,r.jsx)("p",{className:"text-xs text-ink-tertiary",children:null!=t?t:n("pro.history.empty.title")}),l]})},u=l(71013),s=function(){return(0,r.jsx)("div",{className:"flex h-[240px] items-center justify-center",children:(0,r.jsx)("p",{children:(0,r.jsx)(o.cC,{i18nKey:"pro_web.trade.login_signup.cta",components:{1:(0,r.jsx)(u.Z,{href:"/login"}),2:(0,r.jsx)(u.Z,{href:"/register"})}})})})},d=function(e){let{EmptyListComponent:t=(0,r.jsx)(a,{text:e.text,EmptyListContent:e.TableEmptyListContent}),GuestBlockerComponent:l=(0,r.jsx)(s,{})}=e;return(0,n.Z)(e=>e.authenticated)?t:l}},24297:function(e,t,l){l.d(t,{Bl:function(){return a},MG:function(){return i},so:function(){return o}});var r=l(19449),n=l(5207);function o(e){return e>0?"text-success":e<0?"text-danger":"text-ink-tertiary"}function i(e){let{changes:t,withSymbol:l=!0}=e,i=new n.Z(null!=t?t:0).times(100),a=i.toFormat(2,r.Z.ROUND_HALF_UP),u=l?a:a.replace("-",""),s=Number(t),d=o(s),c=s>0?"hover:bg-subdued-success":s<0?"hover:bg-subdued-danger":"hover:bg-canvas-hover",f="";return l&&i.gt(0)&&(f="+"),{color:d,hoverBgClassname:c,percentage:"".concat(f).concat(u,"%")}}function a(e){switch(e){case"CANCELED":return"pro.history.canceled.status";case"REJECTED":return"pro.history.rejected.status";case"PARTIALLY_FILLED":return"pro.history.partially_filled.status";case"FILLED":return"pro.history.filled.status";default:return""}}},22951:function(e,t,l){var r=l(71518),n=l(62040),o=l(5207),i=l(34190);t.Z=function(e){let{symbol:t,value:l}=e,{getDecimalsFromSymbol:a}=(0,r.Z)(),{formatPrice:u}=(0,n.Z)(),s=(0,i.QW)(t),d=(null==t?void 0:t.split("-").length)===2;return s?u({omitPrefix:!0,value:l,decimalPlaces:a(d?t:"".concat(t,"-IDR"),s),isObfuscated:!1}):l?new o.Z(l).toFormat():"0"}}}]);