mantine-datatable 7.1.5 → 7.1.7
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/README.md +5 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{Box as Wn,Table as Gn}from"@mantine/core";import{useMergedRef as Bn}from"@mantine/hooks";import la from"clsx";import{useCallback as Me,useMemo as Qn,useState as De}from"react";import{jsx as rt}from"react/jsx-runtime";function lt(){return rt("tr",{className:"mantine-datatable-empty-row",children:rt("td",{})})}import{Center as co,Text as mo}from"@mantine/core";import{jsx as re,jsxs as po}from"react/jsx-runtime";function it(){return po("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[re("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),re("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),re("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),re("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),re("path",{d:"M3 3l18 18"})]})}import{Fragment as uo,jsx as Te,jsxs as fo}from"react/jsx-runtime";function st({icon:e,text:t,pt:a,pb:o,active:n,children:r}){return Te(co,{pt:a,pb:o,className:"mantine-datatable-empty-state","data-active":n||void 0,children:r||fo(uo,{children:[e||Te("div",{className:"mantine-datatable-empty-state-icon",children:Te(it,{})}),Te(mo,{size:"sm",c:"dimmed",children:t})]})})}import{TableTfoot as Fo,TableTr as Vo,rem as Ao}from"@mantine/core";import _o from"clsx";import{forwardRef as Oo}from"react";import{TableTh as Eo}from"@mantine/core";import No from"clsx";import{useResizeObserver as bo}from"@mantine/hooks";function U(){let[e]=bo(),{width:t,height:a}=e.current?.getBoundingClientRect()||{width:0,height:0};return{ref:e,width:t,height:a}}import{useEffect as To,useLayoutEffect as ho}from"react";var dt=typeof window<"u"?ho:To;import{useEffect as go,useState as Co}from"react";function pt(e){let[t,a]=Co(null),o=e?.join(":")||"";return go(()=>{a(null)},[o]),{lastSelectionChangeIndex:t,setLastSelectionChangeIndex:a}}import{useEffect as yo,useRef as wo,useState as So}from"react";function Po(e,t){let a=()=>{t(e.map(n=>n.matches))},o=e.map(n=>{try{return n.addEventListener("change",a),()=>n.removeEventListener("change",a)}catch{return n.addListener(a),()=>n.removeListener(a)}});return()=>{o.forEach(n=>n())}}function xo(e,t){return t||(typeof window<"u"&&"matchMedia"in window?e.map(a=>window.matchMedia(a).matches):e.map(()=>!1))}function ct(e,t,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){let[o,n]=So(a?t:xo(e,t)),r=wo();return yo(()=>{if("matchMedia"in window)return r.current=e.map(i=>window.matchMedia(i)),n(r.current.map(i=>i.matches)),Po(r.current,i=>{n(i)})},[e]),o}import{useMantineTheme as Mo}from"@mantine/core";import{useMemo as mt}from"react";function ut(e){let t=Mo(),a=mt(()=>e.map(n=>(typeof n=="function"?n(t):n)??""),[e,t]),o=mt(()=>e.map(()=>!0),[e]);return ct(a,o)}import{useMantineTheme as Do}from"@mantine/core";import{useMediaQuery as ko}from"@mantine/hooks";function H(e){let t=Do(),a=typeof e=="function"?e(t):e;return ko(a||"",!0)}import{useState as Ro}from"react";function he(e){let t=e.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function ft(e,t,a){return e.filter(o=>!t.map(a).includes(a(o)))}function ge(e,t){return e.filter((a,o,n)=>o===n.findIndex(r=>t(a)===t(r)))}function Ae(e,t){return t?t.match(/([^[.\]])+/g).reduce((o,n)=>o&&o[n],e):void 0}function y(e,t){return typeof t=="string"?Ae(e,t):t(e)}function bt({rowExpansion:e,records:t,idAccessor:a}){let o=[];if(e&&t){let{trigger:l,allowMultiple:p,initiallyExpanded:s}=e;t&&l==="always"?o=t.map(m=>y(m,a)):s&&(o=t.filter((m,f)=>s({record:m,index:f})).map(m=>y(m,a)),p||(o=[o[0]]))}let n,r,i=Ro(o);if(e){let{trigger:l,allowMultiple:p,collapseProps:s,content:m}=e;e.expanded?{recordIds:n,onRecordIdsChange:r}=e.expanded:[n,r]=i;let f=b=>r?.(n.filter(d=>d!==y(b,a)));return{expandOnClick:l!=="always"&&l!=="never",isRowExpanded:b=>l==="always"?!0:n.includes(y(b,a)),expandRow:b=>{let d=y(b,a);r?.(p?[...n,d]:[d])},collapseRow:f,collapseProps:s,content:({record:b,index:d})=>()=>m({record:b,index:d,collapse:()=>f(b)})}}}import{useTimeout as Tt}from"@mantine/hooks";import{useEffect as vo,useState as ht}from"react";function gt(e,t){let[a,o]=ht(e),[n,r]=ht(e),i=Tt(()=>o(!0),0),l=Tt(()=>r(!1),t||200);return vo(()=>{e?(l.clear(),r(!0),i.start()):(i.clear(),o(!1),l.start())},[i,l,e]),{expanded:a,visible:n}}var K="mantine-datatable-nowrap",J="mantine-datatable-ellipsis",F="mantine-datatable-pointer-cursor",Ct="mantine-datatable-text-selection-disabled",V="mantine-datatable-text-align-left",A="mantine-datatable-text-align-center",_="mantine-datatable-text-align-right";import{jsx as Io}from"react/jsx-runtime";function yt({className:e,style:t,visibleMediaQuery:a,title:o,noWrap:n,ellipsis:r,textAlign:i,width:l}){return H(a)?Io(Eo,{className:No({[K]:n||r,[J]:r,[V]:i==="left",[A]:i==="center",[_]:i==="right"},e),style:[{width:l,minWidth:l,maxWidth:l},t],children:o}):null}import{TableTh as Lo}from"@mantine/core";import{jsx as Ho}from"react/jsx-runtime";function wt({shadowVisible:e}){return Ho(Lo,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":e||void 0})}import{jsx as _e,jsxs as zo}from"react/jsx-runtime";var St=Oo(function({className:t,style:a,columns:o,defaultColumnProps:n,selectionVisible:r,selectorCellShadowVisible:i,scrollDiff:l},p){let s=l<0;return _e(Fo,{ref:p,className:_o("mantine-datatable-footer",t),style:[{position:s?"relative":"sticky",bottom:Ao(s?l:0)},a],children:zo(Vo,{children:[r&&_e(wt,{shadowVisible:i}),o.map(({hidden:m,...f})=>{if(m)return null;let{accessor:b,visibleMediaQuery:d,textAlign:u,width:T,footer:h,footerClassName:g,footerStyle:M,noWrap:N,ellipsis:D}={...n,...f};return _e(yt,{className:g,style:M,visibleMediaQuery:d,textAlign:u,width:T,title:h,noWrap:N,ellipsis:D},b)})]})})});import{TableThead as rn,TableTr as At}from"@mantine/core";import ln from"clsx";import{forwardRef as sn}from"react";import{TableTh as Wo}from"@mantine/core";import Go from"clsx";import{useMemo as Pt}from"react";import{jsx as Bo}from"react/jsx-runtime";function xt({group:{id:e,columns:t,title:a,textAlign:o,className:n,style:r}}){let i=Pt(()=>t.map(({visibleMediaQuery:s})=>s),[t]),l=ut(i),p=Pt(()=>t.filter(({hidden:s},m)=>!s&&l?.[m]).length,[t,l]);return p>0?Bo(Wo,{colSpan:p,className:Go("mantine-datatable-column-group-header-cell",{[V]:o==="left",[A]:o==="center",[_]:o==="right"},n),style:r,children:a??he(e)}):null}import{Box as qo,Center as Lt,Group as jo,TableTh as en}from"@mantine/core";import Oe from"clsx";import{ActionIcon as $o,Popover as vt,PopoverTarget as Uo}from"@mantine/core";import{useDisclosure as Ko}from"@mantine/hooks";import{jsx as Mt,jsxs as Qo}from"react/jsx-runtime";function Dt(){return Qo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[Mt("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Mt("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}import{jsx as kt,jsxs as Xo}from"react/jsx-runtime";function Rt(){return Xo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[kt("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),kt("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}import{jsx as Ce,jsxs as Jo}from"react/jsx-runtime";function Et({children:e,isActive:t}){let[a,{close:o,toggle:n}]=Ko(!1);return Jo(vt,{withArrow:!0,withinPortal:!0,shadow:"md",opened:a,onClose:o,trapFocus:!0,children:[Ce(Uo,{children:Ce($o,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":t||void 0,size:"sm",variant:"default",onClick:i=>{i.preventDefault(),n()},children:Ce(t?Rt:Dt,{})})}),Ce(vt.Dropdown,{onClick:i=>i.preventDefault(),children:typeof e=="function"?e({close:o}):e})]})}import{jsx as ye,jsxs as Zo}from"react/jsx-runtime";function Nt(){return Zo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[ye("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),ye("path",{d:"M12 5l0 14"}),ye("path",{d:"M16 9l-4 -4"}),ye("path",{d:"M8 9l4 -4"})]})}import{jsx as we,jsxs as Yo}from"react/jsx-runtime";function It(){return Yo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[we("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),we("path",{d:"M8 7l4 -4l4 4"}),we("path",{d:"M8 17l4 4l4 -4"}),we("path",{d:"M12 3l0 18"})]})}import{Fragment as tn,jsx as O,jsxs as an}from"react/jsx-runtime";function Ht({className:e,style:t,accessor:a,visibleMediaQuery:o,title:n,sortable:r,sortIcons:i,textAlign:l,width:p,sortStatus:s,onSortStatusChange:m,filter:f,filtering:b}){if(!H(o))return null;let d=n??he(a),u=typeof d=="string"?d:void 0,T=r&&m?h=>{h?.defaultPrevented||m({columnAccessor:a,direction:s?.columnAccessor===a?s.direction==="asc"?"desc":"asc":s?.direction??"asc"})}:void 0;return O(en,{className:Oe({"mantine-datatable-header-cell-sortable":r},e),style:[{width:p,minWidth:p,maxWidth:p},t],role:r?"button":void 0,tabIndex:r?0:void 0,onClick:T,onKeyDown:h=>h.key==="Enter"&&T?.(),children:an(jo,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O(qo,{className:Oe("mantine-datatable-header-cell-sortable-text",{[V]:l==="left",[A]:l==="center",[_]:l==="right"},K,J),title:u,children:d}),r||s?.columnAccessor===a?O(tn,{children:s?.columnAccessor===a?O(Lt,{className:Oe("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":s.direction==="desc"}),role:"img","aria-label":`Sorted ${s.direction==="desc"?"descending":"ascending"}`,children:i?.sorted||O(Nt,{})}):O(Lt,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:i?.unsorted||O(It,{})})}):null,f?O(Et,{isActive:!!b,children:f}):null]})})}import{Checkbox as on,TableTh as nn}from"@mantine/core";import{jsx as Ft}from"react/jsx-runtime";function Vt({shadowVisible:e,checked:t,indeterminate:a,checkboxProps:o,onChange:n,rowSpan:r}){return Ft(nn,{className:"mantine-datatable-header-selector-cell",rowSpan:r,"data-shadow-visible":e||void 0,children:Ft(on,{classNames:{input:F},checked:t,indeterminate:a,onChange:n,...o,disabled:!(n||o.onChange)||o.disabled})})}import{jsx as ze,jsxs as We}from"react/jsx-runtime";var _t=sn(function({className:t,style:a,sortStatus:o,sortIcons:n,onSortStatusChange:r,columns:i,defaultColumnProps:l,groups:p,selectionVisible:s,selectionChecked:m,selectionIndeterminate:f,onSelectionChange:b,selectionCheckboxProps:d,selectorCellShadowVisible:u},T){let h=s?ze(Vt,{shadowVisible:u,checked:m,indeterminate:f,checkboxProps:d,onChange:b,rowSpan:p?2:void 0}):null;return We(rn,{className:ln("mantine-datatable-header",t),style:a,ref:T,children:[p&&We(At,{children:[h,p.map(g=>ze(xt,{group:g},g.id))]}),We(At,{children:[!p&&h,i.map(({hidden:g,...M})=>{if(g)return null;let{accessor:N,visibleMediaQuery:D,textAlign:S,width:x,title:w,sortable:R,titleClassName:P,titleStyle:z,filter:Z,filtering:Y}={...l,...M};return ze(Ht,{accessor:N,className:P,style:z,visibleMediaQuery:D,textAlign:S,width:x,title:w,sortable:R,sortStatus:o,sortIcons:n,onSortStatusChange:r,filter:Z,filtering:Y},N)})]})]})});import{Center as dn,Loader as pn}from"@mantine/core";import cn from"clsx";import{jsx as Ot}from"react/jsx-runtime";function zt({pt:e,pb:t,fetching:a,customContent:o,backgroundBlur:n,size:r,type:i,color:l}){return Ot(dn,{pt:e,pb:t,className:cn("mantine-datatable-loader",{"mantine-datatable-loader-fetching":a}),style:[{backdropFilter:n?`blur(${n}px)`:void 0}],children:a&&(o||Ot(pn,{size:r,type:i,color:l}))})}import{Box as wn,Pagination as Sn,Text as Pn,rem as xn}from"@mantine/core";import Kt from"clsx";import{forwardRef as Mn}from"react";import{Button as fn,Group as bn,Menu as Tn,MenuDropdown as hn,MenuItem as gn,MenuTarget as Cn,Text as Qt,rem as le}from"@mantine/core";import yn from"clsx";import{parseThemeColor as mn}from"@mantine/core";function C(e,t,a){return e?mn({color:typeof e=="object"?e[a]:e,theme:t}).value:void 0}function Wt({theme:e,c:t,backgroundColor:a,borderColor:o,rowBorderColor:n,stripedColor:r,highlightOnHoverColor:i}){return{"--mantine-datatable-color-light":C(t,e,"light"),"--mantine-datatable-color-dark":C(t,e,"dark"),"--mantine-datatable-background-color-light":C(a,e,"light"),"--mantine-datatable-background-color-dark":C(a,e,"dark"),"--mantine-datatable-border-color-light":C(o,e,"light"),"--mantine-datatable-border-color-dark":C(o,e,"dark"),"--mantine-datatable-row-border-color-light":C(n,e,"light"),"--mantine-datatable-row-border-color-dark":C(n,e,"dark"),"--mantine-datatable-striped-color-light":C(r,e,"light"),"--mantine-datatable-striped-color-dark":C(r,e,"dark"),"--mantine-datatable-highlight-on-hover-color-light":C(i,e,"light"),"--mantine-datatable-highlight-on-hover-color-dark":C(i,e,"dark")}}function Se({theme:e,paginationActiveTextColor:t,paginationActiveBackgroundColor:a}){return{"--mantine-datatable-pagination-active-text-color-light":C(t,e,"light"),"--mantine-datatable-pagination-active-text-color-dark":C(t,e,"dark"),"--mantine-datatable-pagination-active-background-color-light":C(a,e,"light"),"--mantine-datatable-pagination-active-background-color-dark":C(a,e,"dark")}}function Gt({theme:e,color:t,backgroundColor:a}){return{"--mantine-datatable-row-color-light":C(t,e,"light"),"--mantine-datatable-row-color-dark":C(t,e,"dark"),"--mantine-datatable-row-background-color-light":C(a,e,"light"),"--mantine-datatable-row-background-color-dark":C(a,e,"dark")}}import{jsx as Ge,jsxs as un}from"react/jsx-runtime";function Bt(){return un("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[Ge("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ge("path",{d:"M8 9l4 -4l4 4"}),Ge("path",{d:"M16 15l-4 4l-4 -4"})]})}import{jsx as X,jsxs as $t}from"react/jsx-runtime";var Xt={xs:le(22),sm:le(26),md:le(32),lg:le(38),xl:le(44)};function Ut({size:e,label:t,values:a,value:o,activeTextColor:n,activeBackgroundColor:r,onChange:i}){return $t(bn,{gap:"xs",children:[X(Qt,{size:e,children:t}),$t(Tn,{withinPortal:!0,withArrow:!0,children:[X(Cn,{children:X(fn,{size:e,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:X(Bt,{}),style:[{fontWeight:"normal"},l=>({height:Xt[e],paddingLeft:l.spacing[e],paddingRight:l.spacing[e]})],children:o})}),X(hn,{children:a.map(l=>{let p=l===o;return X(gn,{className:yn({"mantine-datatable-page-size-selector-active":p}),style:[{height:Xt[e]},p&&(n||r)?s=>Se({theme:s,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}):void 0],disabled:p,onClick:()=>i(l),children:X(Qt,{size:e,children:l})},l)})})]})]})}import{jsx as Be,jsxs as Dn}from"react/jsx-runtime";var Jt=Mn(function({className:t,style:a,fetching:o,page:n,onPageChange:r,paginationWithEdges:i,paginationActiveTextColor:l,paginationActiveBackgroundColor:p,paginationSize:s,loadingText:m,noRecordsText:f,paginationText:b,totalRecords:d,recordsPerPage:u,onRecordsPerPageChange:T,recordsPerPageLabel:h,recordsPerPageOptions:g,recordsLength:M,horizontalSpacing:N,paginationWrapBreakpoint:D,getPaginationControlProps:S},x){let w;if(o)w=m;else if(!d)w=f;else{let P=(n-1)*u+1,z=P+M-1;w=b({from:P,to:z,totalRecords:d})}let R=H(({breakpoints:P})=>`(min-width: ${typeof D=="number"?`${xn(D)}rem`:P[D]||D})`);return Dn(wn,{ref:x,px:N??"xs",py:"xs",className:Kt("mantine-datatable-pagination",t),style:[{flexDirection:R?"row":"column"},a],children:[Be(Pn,{className:"mantine-datatable-pagination-text",size:s,children:w}),g&&Be(Ut,{activeTextColor:l,activeBackgroundColor:p,size:s,label:h,values:g,value:u,onChange:T}),Be(Sn,{classNames:{root:Kt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":o||!M}),control:"mantine-datatable-pagination-pages-control"},style:l||p?P=>Se({theme:P,paginationActiveTextColor:l,paginationActiveBackgroundColor:p}):void 0,withEdges:i,value:n,onChange:r,size:s,total:Math.ceil(d/u),getControlProps:S})]})});import{TableTr as Vn}from"@mantine/core";import An from"clsx";import{TableTd as kn}from"@mantine/core";import Rn from"clsx";import{jsx as vn}from"react/jsx-runtime";function Zt({className:e,style:t,visibleMediaQuery:a,record:o,index:n,onClick:r,onContextMenu:i,noWrap:l,ellipsis:p,textAlign:s,width:m,accessor:f,render:b,defaultRender:d,customCellAttributes:u}){return H(a)?vn(kn,{className:Rn({[K]:l||p,[J]:p,[F]:r,[V]:s==="left",[A]:s==="center",[_]:s==="right"},e),style:[{width:m,minWidth:m,maxWidth:m},t],onClick:r,onContextMenu:i,...u?.(o,n),children:b?b(o,n):d?d(o,n,f):Ae(o,f)}):null}import{Collapse as En,TableTd as Nn,TableTr as Yt}from"@mantine/core";import{Fragment as In,jsx as ie,jsxs as Ln}from"react/jsx-runtime";function qt({open:e,colSpan:t,content:a,collapseProps:o}){let{expanded:n,visible:r}=gt(e,o?.transitionDuration);return r?Ln(In,{children:[ie(Yt,{}),ie(Yt,{children:ie(Nn,{className:"mantine-datatable-row-expansion-cell",colSpan:t,children:ie(En,{in:n,...o,children:ie("div",{className:"mantine-datatable-row-expansion-cell-content",children:a()})})})})]}):null}import{Checkbox as Hn,TableTd as Fn}from"@mantine/core";import{jsx as jt}from"react/jsx-runtime";function ea({record:e,index:t,withRightShadow:a,getCheckboxProps:o,...n}){return jt(Fn,{className:"mantine-datatable-row-selector-cell","data-shadow-visible":a||void 0,onClick:r=>r.stopPropagation(),children:jt(Hn,{classNames:{input:F},...n,...o(e,t)})})}import{Fragment as _n,jsx as Qe,jsxs as ta}from"react/jsx-runtime";function aa({record:e,index:t,columns:a,defaultColumnProps:o,defaultColumnRender:n,selectionVisible:r,selectionChecked:i,onSelectionChange:l,isRecordSelectable:p,getSelectionCheckboxProps:s,onClick:m,onContextMenu:f,onCellClick:b,onCellContextMenu:d,expansion:u,customAttributes:T,color:h,backgroundColor:g,className:M,style:N,selectorCellShadowVisible:D}){return ta(_n,{children:[ta(Vn,{className:An("mantine-datatable-row",{[F]:m||u?.expandOnClick},typeof M=="function"?M(e,t):M),"data-selected":i||void 0,onClick:S=>{if(u){let{isRowExpanded:x,expandOnClick:w,expandRow:R,collapseRow:P}=u;w&&(x(e)?P(e):R(e))}m?.({event:S,record:e,index:t})},onContextMenu:f?S=>f({event:S,record:e,index:t}):void 0,style:[h||g?S=>{let x=h?.(e,t),w=g?.(e,t);return Gt({theme:S,color:x,backgroundColor:w})}:void 0,N?.(e,t)],...T?.(e,t),children:[r&&Qe(ea,{record:e,index:t,withRightShadow:D,checked:i,disabled:!l||(p?!p(e,t):!1),onChange:l,getCheckboxProps:s}),a.map(({hidden:S,...x},w)=>{if(S)return null;let{accessor:R,visibleMediaQuery:P,textAlign:z,noWrap:Z,ellipsis:Y,width:ke,render:Re,cellsClassName:q,cellsStyle:ve,customCellAttributes:Ee}={...o,...x};return Qe(Zt,{className:typeof q=="function"?q(e,t):q,style:ve?.(e,t),visibleMediaQuery:P,record:e,index:t,onClick:b?j=>b({event:j,record:e,index:t,column:x,columnIndex:w}):void 0,onContextMenu:d?j=>d({event:j,record:e,index:t,column:x,columnIndex:w}):void 0,accessor:R,textAlign:z,noWrap:Z,ellipsis:Y,width:ke,render:Re,defaultRender:n,customCellAttributes:Ee},R)})]}),u&&Qe(qt,{colSpan:a.filter(({hidden:S})=>!S).length+(r?1:0),open:u.isRowExpanded(e),content:u.content({record:e,index:t}),collapseProps:u.collapseProps})]})}import{Box as oa,ScrollArea as On,rem as na}from"@mantine/core";import Pe from"clsx";import{jsx as xe,jsxs as zn}from"react/jsx-runtime";function ra({topShadowVisible:e,leftShadowVisible:t,leftShadowBehind:a,rightShadowVisible:o,rightShadowBehind:n,bottomShadowVisible:r,headerHeight:i,footerHeight:l,onScrollPositionChange:p,children:s,viewportRef:m,scrollAreaProps:f}){return zn(On,{...f,viewportRef:m,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:p,children:[s,xe(oa,{className:Pe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":e}),style:{top:i?na(i):0}}),xe("div",{className:Pe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":t,"mantine-datatable-scroll-area-shadow-behind":a})}),xe("div",{className:Pe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":o,"mantine-datatable-scroll-area-shadow-behind":n})}),xe(oa,{className:Pe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":r}),style:{bottom:l?na(l+1):0}})]})}import{jsx as I,jsxs as ia}from"react/jsx-runtime";function Xn({withTableBorder:e,borderRadius:t,textSelectionDisabled:a,height:o="100%",minHeight:n,shadow:r,verticalAlign:i="center",fetching:l,columns:p,groups:s,pinLastColumn:m,defaultColumnProps:f,defaultColumnRender:b,idAccessor:d="id",records:u,selectedRecords:T,onSelectedRecordsChange:h,isRecordSelectable:g,allRecordsSelectionCheckboxProps:M={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:N=(k,W)=>({"aria-label":`Select record ${W+1}`}),sortStatus:D,sortIcons:S,onSortStatusChange:x,horizontalSpacing:w,page:R,onPageChange:P,totalRecords:z,recordsPerPage:Z,onRecordsPerPageChange:Y,recordsPerPageOptions:ke,recordsPerPageLabel:Re="Records per page",paginationWithEdges:q,paginationActiveTextColor:ve,paginationActiveBackgroundColor:Ee,paginationSize:j="sm",paginationText:sa=({from:k,to:W,totalRecords:G})=>`${k} - ${W} / ${G}`,paginationWrapBreakpoint:da="sm",getPaginationControlProps:pa=k=>k==="previous"?{"aria-label":"Previous page"}:k==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:ca,customLoader:ma,loaderSize:ua,loaderType:fa,loaderColor:ba,loadingText:Ta="...",emptyState:ha,noRecordsText:Xe="No records",noRecordsIcon:ga,highlightOnHover:Ca,striped:ya,noHeader:wa,onRowClick:Sa,onRowContextMenu:Pa,onCellClick:xa,onCellContextMenu:Ma,onScroll:$e,onScrollToTop:Ue,onScrollToBottom:Ke,onScrollToLeft:Je,onScrollToRight:Ze,c:Da,backgroundColor:ka,borderColor:Ra,rowBorderColor:va,stripedColor:Ea,highlightOnHoverColor:Na,rowColor:Ia,rowBackgroundColor:La,rowExpansion:Ha,rowClassName:Fa,rowStyle:Va,customRowAttributes:Aa,scrollViewportRef:_a,scrollAreaProps:Oa,bodyRef:za,m:Wa,my:Ga,mx:Ba,mt:Qa,mb:Xa,ml:$a,mr:Ua,className:Ka,classNames:ee,style:Ja,styles:te,...Za}){let{ref:k,width:W,height:G}=U(),se=Qn(()=>s?.flatMap(c=>c.columns)??p,[p,s]),{ref:Ya,height:Ne}=U(),{ref:qa,width:Ie,height:ae}=U(),{ref:ja,height:eo}=U(),{ref:to,height:Ye}=U(),[Le,qe]=De(!0),[He,je]=De(!0),[de,et]=De(!0),[pe,tt]=De(!0),ao=bt({rowExpansion:Ha,records:u,idAccessor:d}),ce=Me(()=>{let c=k.current?.scrollTop||0,L=k.current?.scrollLeft||0;if(l||ae<=G)qe(!0),je(!0);else{let v=c===0,E=ae-c-G<1;qe(v),je(E),v&&v!==Le&&Ue?.(),E&&E!==He&&Ke?.()}if(l||Ie===W)et(!0),tt(!0);else{let v=L===0,E=Ie-L-W<1;et(v),tt(E),v&&v!==de&&Je?.(),E&&E!==pe&&Ze?.()}},[l,Ke,Je,Ze,Ue,G,k,W,He,de,pe,Le,ae,Ie]);dt(ce,[ce]);let oo=Me(c=>{$e?.(c),ce()},[ce,$e]),no=Me(c=>{k.current?.scrollTo({top:0,left:0}),P(c)},[P,k]),me=u?.length,at=u?.map(c=>y(c,d)),oe=!!T,ne=T?.map(c=>y(c,d)),ot=at!==void 0&&ne!==void 0&&ne.length>0,Fe=g?u?.filter(g):u,ue=Fe?.map(c=>y(c,d)),fe=ot&&ue.every(c=>ne.includes(c)),ro=ot&&ue.some(c=>ne.includes(c)),lo=Me(()=>{T&&h&&h(fe?T.filter(c=>!ue.includes(y(c,d))):ge([...T,...Fe],c=>y(c,d)))},[fe,d,h,ue,Fe,T]),{lastSelectionChangeIndex:be,setLastSelectionChangeIndex:io}=pt(at),Ve=oe&&!de;return ia(Wn,{...{m:Wa,my:Ga,mx:Ba,mt:Qa,mb:Xa,ml:$a,mr:Ua},className:la("mantine-datatable",{"mantine-datatable-with-border":e},Ka,ee?.root),style:[c=>({...Wt({theme:c,c:Da,backgroundColor:ka,borderColor:Ra,rowBorderColor:va,stripedColor:Ea,highlightOnHoverColor:Na}),borderRadius:c.radius[t]||t,boxShadow:c.shadows[r]||r,height:o,minHeight:n}),Ja,te?.root],children:[I(ra,{viewportRef:Bn(k,_a),topShadowVisible:!Le,leftShadowVisible:!de,leftShadowBehind:oe,rightShadowVisible:!pe,rightShadowBehind:m,bottomShadowVisible:!He,headerHeight:Ne,footerHeight:eo,onScrollPositionChange:oo,scrollAreaProps:Oa,children:ia(Gn,{ref:qa,horizontalSpacing:w,className:la("mantine-datatable-table",{[Ct]:a,"mantine-datatable-vertical-align-top":i==="top","mantine-datatable-vertical-align-bottom":i==="bottom","mantine-datatable-last-row-border-bottom-visible":ae<G,"mantine-datatable-pin-last-column":m,"mantine-datatable-pin-last-column-scrolled":!pe&&m},ee?.table),style:te?.table,"data-striped":me&&ya||void 0,"data-highlight-on-hover":Ca||void 0,...Za,children:[wa?null:I(_t,{ref:Ya,className:ee?.header,style:te?.header,columns:se,defaultColumnProps:f,groups:s,sortStatus:D,sortIcons:S,onSortStatusChange:x,selectionVisible:oe,selectionChecked:fe,selectionIndeterminate:ro&&!fe,onSelectionChange:lo,selectionCheckboxProps:M,selectorCellShadowVisible:Ve}),I("tbody",{ref:za,children:me?u.map((c,L)=>{let v=y(c,d),E=ne?.includes(v)||!1,nt;return h&&T&&(nt=so=>{if(so.nativeEvent.shiftKey&&be!==null){let $=u.filter(L>be?(B,Q)=>Q>=be&&Q<=L&&(g?g(B,Q):!0):(B,Q)=>Q>=L&&Q<=be&&(g?g(B,Q):!0));h(E?ft(T,$,B=>y(B,d)):ge([...T,...$],B=>y(B,d)))}else h(E?T.filter($=>y($,d)!==v):ge([...T,c],$=>y($,d)));io(L)}),I(aa,{record:c,index:L,columns:se,defaultColumnProps:f,defaultColumnRender:b,selectionVisible:oe,selectionChecked:E,onSelectionChange:nt,isRecordSelectable:g,getSelectionCheckboxProps:N,onClick:Sa,onCellClick:xa,onContextMenu:Pa,onCellContextMenu:Ma,expansion:ao,color:Ia,backgroundColor:La,className:Fa,style:Va,customAttributes:Aa,selectorCellShadowVisible:Ve},v)}):I(lt,{})}),se.some(({footer:c})=>c)&&I(St,{ref:ja,className:ee?.footer,style:te?.footer,columns:se,defaultColumnProps:f,selectionVisible:oe,selectorCellShadowVisible:Ve,scrollDiff:ae-G})]})}),R&&I(Jt,{ref:to,className:ee?.pagination,style:te?.pagination,horizontalSpacing:w,fetching:l,page:R,onPageChange:no,totalRecords:z,recordsPerPage:Z,onRecordsPerPageChange:Y,recordsPerPageOptions:ke,recordsPerPageLabel:Re,paginationWithEdges:q,paginationActiveTextColor:ve,paginationActiveBackgroundColor:Ee,paginationSize:j,paginationText:sa,paginationWrapBreakpoint:da,getPaginationControlProps:pa,noRecordsText:Xe,loadingText:Ta,recordsLength:me}),I(zt,{pt:Ne,pb:Ye,fetching:l,backgroundBlur:ca,customContent:ma,size:ua,type:fa,color:ba}),I(st,{pt:Ne,pb:Ye,icon:ga,text:Xe,active:!l&&!me,children:ha})]})}export{Xn as DataTable,ft as differenceBy,y as getRecordId,Ae as getValueAtPath,he as humanize,ge as uniqBy};
|
|
1
|
+
"use client";import{Box as Qn,Table as Xn}from"@mantine/core";import{useMergedRef as $n}from"@mantine/hooks";import ia from"clsx";import{useCallback as Me,useMemo as Un,useState as ke}from"react";import{jsx as lt}from"react/jsx-runtime";function it(){return lt("tr",{className:"mantine-datatable-empty-row",children:lt("td",{})})}import{Center as mo,Text as uo}from"@mantine/core";import{jsx as le,jsxs as po}from"react/jsx-runtime";function st(){return po("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[le("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),le("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),le("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),le("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),le("path",{d:"M3 3l18 18"})]})}import{Fragment as fo,jsx as he,jsxs as bo}from"react/jsx-runtime";function dt({icon:e,text:t,pt:a,pb:n,active:o,children:l}){return he(mo,{pt:a,pb:n,className:"mantine-datatable-empty-state","data-active":o||void 0,children:l||bo(fo,{children:[e||he("div",{className:"mantine-datatable-empty-state-icon",children:he(st,{})}),he(uo,{size:"sm",c:"dimmed",children:t})]})})}import{TableTfoot as Vo,TableTr as Ao,rem as _o}from"@mantine/core";import Oo from"clsx";import{forwardRef as zo}from"react";import{TableTh as No}from"@mantine/core";import Io from"clsx";import{useResizeObserver as To}from"@mantine/hooks";function U(){let[e]=To(),{width:t,height:a}=e.current?.getBoundingClientRect()||{width:0,height:0};return{ref:e,width:t,height:a}}import{useEffect as ho,useLayoutEffect as go}from"react";var ct=typeof window<"u"?go:ho;import{useEffect as Co,useState as yo}from"react";function pt(e){let[t,a]=yo(null),n=e?.join(":")||"";return Co(()=>{a(null)},[n]),{lastSelectionChangeIndex:t,setLastSelectionChangeIndex:a}}import{useEffect as So,useRef as wo,useState as Po}from"react";function xo(e,t){let a=()=>{t(e.map(o=>o.matches))},n=e.map(o=>{try{return o.addEventListener("change",a),()=>o.removeEventListener("change",a)}catch{return o.addListener(a),()=>o.removeListener(a)}});return()=>{n.forEach(o=>o())}}function Do(e,t){return t||(typeof window<"u"&&"matchMedia"in window?e.map(a=>window.matchMedia(a).matches):e.map(()=>!1))}function mt(e,t,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){let[n,o]=Po(a?t:Do(e,t)),l=wo();return So(()=>{if("matchMedia"in window)return l.current=e.map(i=>window.matchMedia(i)),o(l.current.map(i=>i.matches)),xo(l.current,i=>{o(i)})},[e]),n}import{useMantineTheme as Mo}from"@mantine/core";import{useMemo as ut}from"react";function ft(e){let t=Mo(),a=ut(()=>e.map(o=>(typeof o=="function"?o(t):o)??""),[e,t]),n=ut(()=>e.map(()=>!0),[e]);return mt(a,n)}import{useMantineTheme as ko}from"@mantine/core";import{useMediaQuery as Ro}from"@mantine/hooks";function F(e){let t=ko(),a=typeof e=="function"?e(t):e;return Ro(a||"",!0)}import{useState as vo}from"react";function ge(e){let t=e.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function bt(e,t,a){return e.filter(n=>!t.map(a).includes(a(n)))}function Ce(e,t){return e.filter((a,n,o)=>n===o.findIndex(l=>t(a)===t(l)))}function _e(e,t){return t?t.match(/([^[.\]])+/g).reduce((n,o)=>n&&n[o],e):void 0}function S(e,t){return typeof t=="string"?_e(e,t):t(e)}function Tt({rowExpansion:e,records:t,idAccessor:a}){let n=[];if(e&&t){let{trigger:r,allowMultiple:d,initiallyExpanded:s}=e;t&&r==="always"?n=t.map(p=>S(p,a)):s&&(n=t.filter((p,u)=>s({record:p,index:u})).map(p=>S(p,a)),d||(n=[n[0]]))}let o,l,i=vo(n);if(e){let{trigger:r,allowMultiple:d,collapseProps:s,content:p}=e;e.expanded?{recordIds:o,onRecordIdsChange:l}=e.expanded:[o,l]=i;let u=f=>l?.(o.filter(c=>c!==S(f,a)));return{expandOnClick:r!=="always"&&r!=="never",isRowExpanded:f=>r==="always"?!0:o.includes(S(f,a)),expandRow:f=>{let c=S(f,a);l?.(d?[...o,c]:[c])},collapseRow:u,collapseProps:s,content:({record:f,index:c})=>()=>p({record:f,index:c,collapse:()=>u(f)})}}}import{useTimeout as ht}from"@mantine/hooks";import{useEffect as Eo,useState as gt}from"react";function Ct(e,t){let[a,n]=gt(e),[o,l]=gt(e),i=ht(()=>n(!0),0),r=ht(()=>l(!1),t||200);return Eo(()=>{e?(r.clear(),l(!0),i.start()):(i.clear(),n(!1),r.start())},[i,r,e]),{expanded:a,visible:o}}var K="mantine-datatable-nowrap",J="mantine-datatable-ellipsis",I="mantine-datatable-pointer-cursor",yt="mantine-datatable-text-selection-disabled",V="mantine-datatable-text-align-left",A="mantine-datatable-text-align-center",_="mantine-datatable-text-align-right";import{jsx as Lo}from"react/jsx-runtime";function St({className:e,style:t,visibleMediaQuery:a,title:n,noWrap:o,ellipsis:l,textAlign:i,width:r}){return F(a)?Lo(No,{className:Io({[K]:o||l,[J]:l,[V]:i==="left",[A]:i==="center",[_]:i==="right"},e),style:[{width:r,minWidth:r,maxWidth:r},t],children:n}):null}import{TableTh as Ho}from"@mantine/core";import{jsx as Fo}from"react/jsx-runtime";function wt({shadowVisible:e}){return Fo(Ho,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":e||void 0})}import{jsx as Oe,jsxs as Wo}from"react/jsx-runtime";var Pt=zo(function({className:t,style:a,columns:n,defaultColumnProps:o,selectionVisible:l,selectorCellShadowVisible:i,scrollDiff:r},d){let s=r<0;return Oe(Vo,{ref:d,className:Oo("mantine-datatable-footer",t),style:[{position:s?"relative":"sticky",bottom:_o(s?r:0)},a],children:Wo(Ao,{children:[l&&Oe(wt,{shadowVisible:i}),n.map(({hidden:p,...u})=>{if(p)return null;let{accessor:f,visibleMediaQuery:c,textAlign:T,width:C,footer:b,footerClassName:y,footerStyle:h,noWrap:R,ellipsis:D}={...o,...u};return Oe(St,{className:y,style:h,visibleMediaQuery:c,textAlign:T,width:C,title:b,noWrap:R,ellipsis:D},f)})]})})});import{TableThead as sn,TableTr as _t}from"@mantine/core";import dn from"clsx";import{forwardRef as cn}from"react";import{TableTh as Go}from"@mantine/core";import Bo from"clsx";import{useMemo as xt}from"react";import{jsx as Qo}from"react/jsx-runtime";function Dt({group:{id:e,columns:t,title:a,textAlign:n,className:o,style:l}}){let i=xt(()=>t.map(({visibleMediaQuery:s})=>s),[t]),r=ft(i),d=xt(()=>t.filter(({hidden:s},p)=>!s&&r?.[p]).length,[t,r]);return d>0?Qo(Go,{colSpan:d,className:Bo("mantine-datatable-column-group-header-cell",{[V]:n==="left",[A]:n==="center",[_]:n==="right"},o),style:l,children:a??ge(e)}):null}import{Box as jo,Center as Ht,Group as en,TableTh as tn}from"@mantine/core";import ze from"clsx";import{ActionIcon as Uo,Popover as Et,PopoverTarget as Ko}from"@mantine/core";import{useDisclosure as Jo}from"@mantine/hooks";import{jsx as Mt,jsxs as Xo}from"react/jsx-runtime";function kt(){return Xo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[Mt("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Mt("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}import{jsx as Rt,jsxs as $o}from"react/jsx-runtime";function vt(){return $o("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[Rt("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Rt("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}import{jsx as ye,jsxs as Zo}from"react/jsx-runtime";function Nt({children:e,isActive:t}){let[a,{close:n,toggle:o}]=Jo(!1);return Zo(Et,{withArrow:!0,withinPortal:!0,shadow:"md",opened:a,onClose:n,trapFocus:!0,children:[ye(Ko,{children:ye(Uo,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":t||void 0,size:"sm",variant:"default",onClick:i=>{i.preventDefault(),o()},children:ye(t?vt:kt,{})})}),ye(Et.Dropdown,{onClick:i=>i.preventDefault(),children:typeof e=="function"?e({close:n}):e})]})}import{jsx as Se,jsxs as Yo}from"react/jsx-runtime";function It(){return Yo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[Se("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Se("path",{d:"M12 5l0 14"}),Se("path",{d:"M16 9l-4 -4"}),Se("path",{d:"M8 9l4 -4"})]})}import{jsx as we,jsxs as qo}from"react/jsx-runtime";function Lt(){return qo("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[we("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),we("path",{d:"M8 7l4 -4l4 4"}),we("path",{d:"M8 17l4 4l4 -4"}),we("path",{d:"M12 3l0 18"})]})}import{Fragment as an,jsx as O,jsxs as on}from"react/jsx-runtime";function Ft({className:e,style:t,accessor:a,visibleMediaQuery:n,title:o,sortable:l,sortIcons:i,textAlign:r,width:d,sortStatus:s,onSortStatusChange:p,filter:u,filtering:f}){if(!F(n))return null;let c=o??ge(a),T=typeof c=="string"?c:void 0,C=l&&p?b=>{b?.defaultPrevented||p({columnAccessor:a,direction:s?.columnAccessor===a?s.direction==="asc"?"desc":"asc":s?.direction??"asc"})}:void 0;return O(tn,{className:ze({"mantine-datatable-header-cell-sortable":l},e),style:[{width:d,minWidth:d,maxWidth:d},t],role:l?"button":void 0,tabIndex:l?0:void 0,onClick:C,onKeyDown:b=>b.key==="Enter"&&C?.(),children:on(en,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O(jo,{className:ze("mantine-datatable-header-cell-sortable-text",{[V]:r==="left",[A]:r==="center",[_]:r==="right"},K,J),title:T,children:c}),l||s?.columnAccessor===a?O(an,{children:s?.columnAccessor===a?O(Ht,{className:ze("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":s.direction==="desc"}),role:"img","aria-label":`Sorted ${s.direction==="desc"?"descending":"ascending"}`,children:i?.sorted||O(It,{})}):O(Ht,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:i?.unsorted||O(Lt,{})})}):null,u?O(Nt,{isActive:!!f,children:u}):null]})})}import{Checkbox as nn,TableTh as rn}from"@mantine/core";import ln from"clsx";import{jsx as Vt}from"react/jsx-runtime";function At({trigger:e,shadowVisible:t,checked:a,indeterminate:n,checkboxProps:o,onChange:l,rowSpan:i}){let r=!o.disabled;return Vt(rn,{className:ln("mantine-datatable-header-selector-cell",{[I]:e==="cell"&&r}),rowSpan:i,"data-shadow-visible":t||void 0,onClick:e==="cell"&&r?l:void 0,children:Vt(nn,{classNames:r?{input:I}:void 0,checked:a,indeterminate:n,onChange:l,...o,disabled:!(l||o.onChange)||o.disabled})})}import{jsx as We,jsxs as Ge}from"react/jsx-runtime";var Ot=cn(function({className:t,style:a,sortStatus:n,sortIcons:o,onSortStatusChange:l,columns:i,defaultColumnProps:r,groups:d,selectionTrigger:s,selectionVisible:p,selectionChecked:u,selectionIndeterminate:f,onSelectionChange:c,selectionCheckboxProps:T,selectorCellShadowVisible:C},b){let y=p?We(At,{trigger:s,shadowVisible:C,checked:u,indeterminate:f,checkboxProps:T,onChange:c,rowSpan:d?2:void 0}):null;return Ge(sn,{className:dn("mantine-datatable-header",t),style:a,ref:b,children:[d&&Ge(_t,{children:[y,d.map(h=>We(Dt,{group:h},h.id))]}),Ge(_t,{children:[!d&&y,i.map(({hidden:h,...R})=>{if(h)return null;let{accessor:D,visibleMediaQuery:z,textAlign:x,width:w,title:M,sortable:P,titleClassName:N,titleStyle:Z,filter:Y,filtering:q}={...r,...R};return We(Ft,{accessor:D,className:N,style:Z,visibleMediaQuery:z,textAlign:x,width:w,title:M,sortable:P,sortStatus:n,sortIcons:o,onSortStatusChange:l,filter:Y,filtering:q},D)})]})]})});import{Center as pn,Loader as mn}from"@mantine/core";import un from"clsx";import{jsx as zt}from"react/jsx-runtime";function Wt({pt:e,pb:t,fetching:a,customContent:n,backgroundBlur:o,size:l,type:i,color:r}){return zt(pn,{pt:e,pb:t,className:un("mantine-datatable-loader",{"mantine-datatable-loader-fetching":a}),style:[{backdropFilter:o?`blur(${o}px)`:void 0}],children:a&&(n||zt(mn,{size:l,type:i,color:r}))})}import{Box as Pn,Pagination as xn,Text as Dn,rem as Mn}from"@mantine/core";import Jt from"clsx";import{forwardRef as kn}from"react";import{Button as Tn,Group as hn,Menu as gn,MenuDropdown as Cn,MenuItem as yn,MenuTarget as Sn,Text as Xt,rem as ie}from"@mantine/core";import wn from"clsx";import{parseThemeColor as fn}from"@mantine/core";function g(e,t,a){return e?fn({color:typeof e=="object"?e[a]:e,theme:t}).value:void 0}function Gt({theme:e,c:t,backgroundColor:a,borderColor:n,rowBorderColor:o,stripedColor:l,highlightOnHoverColor:i}){return{"--mantine-datatable-color-light":g(t,e,"light"),"--mantine-datatable-color-dark":g(t,e,"dark"),"--mantine-datatable-background-color-light":g(a,e,"light"),"--mantine-datatable-background-color-dark":g(a,e,"dark"),"--mantine-datatable-border-color-light":g(n,e,"light"),"--mantine-datatable-border-color-dark":g(n,e,"dark"),"--mantine-datatable-row-border-color-light":g(o,e,"light"),"--mantine-datatable-row-border-color-dark":g(o,e,"dark"),"--mantine-datatable-striped-color-light":g(l,e,"light"),"--mantine-datatable-striped-color-dark":g(l,e,"dark"),"--mantine-datatable-highlight-on-hover-color-light":g(i,e,"light"),"--mantine-datatable-highlight-on-hover-color-dark":g(i,e,"dark")}}function Pe({theme:e,paginationActiveTextColor:t,paginationActiveBackgroundColor:a}){return{"--mantine-datatable-pagination-active-text-color-light":g(t,e,"light"),"--mantine-datatable-pagination-active-text-color-dark":g(t,e,"dark"),"--mantine-datatable-pagination-active-background-color-light":g(a,e,"light"),"--mantine-datatable-pagination-active-background-color-dark":g(a,e,"dark")}}function Bt({theme:e,color:t,backgroundColor:a}){return{"--mantine-datatable-row-color-light":g(t,e,"light"),"--mantine-datatable-row-color-dark":g(t,e,"dark"),"--mantine-datatable-row-background-color-light":g(a,e,"light"),"--mantine-datatable-row-background-color-dark":g(a,e,"dark")}}import{jsx as Be,jsxs as bn}from"react/jsx-runtime";function Qt(){return bn("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[Be("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Be("path",{d:"M8 9l4 -4l4 4"}),Be("path",{d:"M16 15l-4 4l-4 -4"})]})}import{jsx as X,jsxs as Ut}from"react/jsx-runtime";var $t={xs:ie(22),sm:ie(26),md:ie(32),lg:ie(38),xl:ie(44)};function Kt({size:e,label:t,values:a,value:n,activeTextColor:o,activeBackgroundColor:l,onChange:i}){return Ut(hn,{gap:"xs",children:[X(Xt,{size:e,children:t}),Ut(gn,{withinPortal:!0,withArrow:!0,children:[X(Sn,{children:X(Tn,{size:e,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:X(Qt,{}),style:[{fontWeight:"normal"},r=>({height:$t[e],paddingLeft:r.spacing[e],paddingRight:r.spacing[e]})],children:n})}),X(Cn,{children:a.map(r=>{let d=r===n;return X(yn,{className:wn({"mantine-datatable-page-size-selector-active":d}),style:[{height:$t[e]},d&&(o||l)?s=>Pe({theme:s,paginationActiveTextColor:o,paginationActiveBackgroundColor:l}):void 0],disabled:d,onClick:()=>i(r),children:X(Xt,{size:e,children:r})},r)})})]})]})}import{jsx as Qe,jsxs as Rn}from"react/jsx-runtime";var Zt=kn(function({className:t,style:a,fetching:n,page:o,onPageChange:l,paginationWithEdges:i,paginationActiveTextColor:r,paginationActiveBackgroundColor:d,paginationSize:s,loadingText:p,noRecordsText:u,paginationText:f,totalRecords:c,recordsPerPage:T,onRecordsPerPageChange:C,recordsPerPageLabel:b,recordsPerPageOptions:y,recordsLength:h,horizontalSpacing:R,paginationWrapBreakpoint:D,getPaginationControlProps:z},x){let w;if(n)w=p;else if(!c)w=u;else{let P=(o-1)*T+1,N=P+h-1;w=f({from:P,to:N,totalRecords:c})}let M=F(({breakpoints:P})=>`(min-width: ${typeof D=="number"?`${Mn(D)}rem`:P[D]||D})`);return Rn(Pn,{ref:x,px:R??"xs",py:"xs",className:Jt("mantine-datatable-pagination",t),style:[{flexDirection:M?"row":"column"},a],children:[Qe(Dn,{className:"mantine-datatable-pagination-text",size:s,children:w}),y&&Qe(Kt,{activeTextColor:r,activeBackgroundColor:d,size:s,label:b,values:y,value:T,onChange:C}),Qe(xn,{classNames:{root:Jt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":n||!h}),control:"mantine-datatable-pagination-pages-control"},style:r||d?P=>Pe({theme:P,paginationActiveTextColor:r,paginationActiveBackgroundColor:d}):void 0,withEdges:i,value:o,onChange:l,size:s,total:Math.ceil(c/T),getControlProps:z})]})});import{TableTr as On}from"@mantine/core";import zn from"clsx";import{TableTd as vn}from"@mantine/core";import En from"clsx";import{jsx as Nn}from"react/jsx-runtime";function Yt({className:e,style:t,visibleMediaQuery:a,record:n,index:o,onClick:l,onContextMenu:i,noWrap:r,ellipsis:d,textAlign:s,width:p,accessor:u,render:f,defaultRender:c,customCellAttributes:T}){return F(a)?Nn(vn,{className:En({[K]:r||d,[J]:d,[I]:l,[V]:s==="left",[A]:s==="center",[_]:s==="right"},e),style:[{width:p,minWidth:p,maxWidth:p},t],onClick:l,onContextMenu:i,...T?.(n,o),children:f?f(n,o):c?c(n,o,u):_e(n,u)}):null}import{Collapse as In,TableTd as Ln,TableTr as qt}from"@mantine/core";import{Fragment as Hn,jsx as se,jsxs as Fn}from"react/jsx-runtime";function jt({open:e,colSpan:t,content:a,collapseProps:n}){let{expanded:o,visible:l}=Ct(e,n?.transitionDuration);return l?Fn(Hn,{children:[se(qt,{}),se(qt,{children:se(Ln,{className:"mantine-datatable-row-expansion-cell",colSpan:t,children:se(In,{in:o,...n,children:se("div",{className:"mantine-datatable-row-expansion-cell-content",children:a()})})})})]}):null}import{Checkbox as Vn,TableTd as An}from"@mantine/core";import _n from"clsx";import{jsx as ea}from"react/jsx-runtime";function ta({record:e,index:t,trigger:a,onChange:n,withRightShadow:o,getCheckboxProps:l,...i}){let r=l(e,t),d=!i.disabled&&!r.disabled,s=p=>{p.stopPropagation(),a==="cell"&&d&&n?.(p)};return ea(An,{className:_n("mantine-datatable-row-selector-cell",{[I]:a==="cell"&&d}),"data-shadow-visible":o||void 0,onClick:s,children:ea(Vn,{classNames:d?{input:I}:void 0,onChange:n,...i,...r})})}import{Fragment as Wn,jsx as Xe,jsxs as aa}from"react/jsx-runtime";function oa({record:e,index:t,columns:a,defaultColumnProps:n,defaultColumnRender:o,selectionTrigger:l,selectionVisible:i,selectionChecked:r,onSelectionChange:d,isRecordSelectable:s,getSelectionCheckboxProps:p,onClick:u,onContextMenu:f,onCellClick:c,onCellContextMenu:T,expansion:C,customAttributes:b,color:y,backgroundColor:h,className:R,style:D,selectorCellShadowVisible:z}){return aa(Wn,{children:[aa(On,{className:zn("mantine-datatable-row",{[I]:u||C?.expandOnClick},typeof R=="function"?R(e,t):R),"data-selected":r||void 0,onClick:x=>{if(C){let{isRowExpanded:w,expandOnClick:M,expandRow:P,collapseRow:N}=C;M&&(w(e)?N(e):P(e))}u?.({event:x,record:e,index:t})},onContextMenu:f?x=>f({event:x,record:e,index:t}):void 0,style:[y||h?x=>{let w=y?.(e,t),M=h?.(e,t);return Bt({theme:x,color:w,backgroundColor:M})}:void 0,D?.(e,t)],...b?.(e,t),children:[i&&Xe(ta,{record:e,index:t,trigger:l,withRightShadow:z,checked:r,disabled:!d||(s?!s(e,t):!1),onChange:d,getCheckboxProps:p}),a.map(({hidden:x,...w},M)=>{if(x)return null;let{accessor:P,visibleMediaQuery:N,textAlign:Z,noWrap:Y,ellipsis:q,width:Re,render:ve,cellsClassName:j,cellsStyle:Ee,customCellAttributes:Ne}={...n,...w};return Xe(Yt,{className:typeof j=="function"?j(e,t):j,style:Ee?.(e,t),visibleMediaQuery:N,record:e,index:t,onClick:c?ee=>c({event:ee,record:e,index:t,column:w,columnIndex:M}):void 0,onContextMenu:T?ee=>T({event:ee,record:e,index:t,column:w,columnIndex:M}):void 0,accessor:P,textAlign:Z,noWrap:Y,ellipsis:q,width:Re,render:ve,defaultRender:o,customCellAttributes:Ne},P)})]}),C&&Xe(jt,{colSpan:a.filter(({hidden:x})=>!x).length+(i?1:0),open:C.isRowExpanded(e),content:C.content({record:e,index:t}),collapseProps:C.collapseProps})]})}import{Box as na,ScrollArea as Gn,rem as ra}from"@mantine/core";import xe from"clsx";import{jsx as De,jsxs as Bn}from"react/jsx-runtime";function la({topShadowVisible:e,leftShadowVisible:t,leftShadowBehind:a,rightShadowVisible:n,rightShadowBehind:o,bottomShadowVisible:l,headerHeight:i,footerHeight:r,onScrollPositionChange:d,children:s,viewportRef:p,scrollAreaProps:u}){return Bn(Gn,{...u,viewportRef:p,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:d,children:[s,De(na,{className:xe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":e}),style:{top:i?ra(i):0}}),De("div",{className:xe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":t,"mantine-datatable-scroll-area-shadow-behind":a})}),De("div",{className:xe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":n,"mantine-datatable-scroll-area-shadow-behind":o})}),De(na,{className:xe("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":l}),style:{bottom:r?ra(r+1):0}})]})}import{jsx as L,jsxs as sa}from"react/jsx-runtime";function Kn({withTableBorder:e,borderRadius:t,textSelectionDisabled:a,height:n="100%",minHeight:o,shadow:l,verticalAlign:i="center",fetching:r,columns:d,groups:s,pinLastColumn:p,defaultColumnProps:u,defaultColumnRender:f,idAccessor:c="id",records:T,selectionTrigger:C="checkbox",selectedRecords:b,onSelectedRecordsChange:y,isRecordSelectable:h,allRecordsSelectionCheckboxProps:R={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:D=(k,W)=>({"aria-label":`Select record ${W+1}`}),sortStatus:z,sortIcons:x,onSortStatusChange:w,horizontalSpacing:M,page:P,onPageChange:N,totalRecords:Z,recordsPerPage:Y,onRecordsPerPageChange:q,recordsPerPageOptions:Re,recordsPerPageLabel:ve="Records per page",paginationWithEdges:j,paginationActiveTextColor:Ee,paginationActiveBackgroundColor:Ne,paginationSize:ee="sm",paginationText:da=({from:k,to:W,totalRecords:G})=>`${k} - ${W} / ${G}`,paginationWrapBreakpoint:ca="sm",getPaginationControlProps:pa=k=>k==="previous"?{"aria-label":"Previous page"}:k==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:ma,customLoader:ua,loaderSize:fa,loaderType:ba,loaderColor:Ta,loadingText:ha="...",emptyState:ga,noRecordsText:$e="No records",noRecordsIcon:Ca,highlightOnHover:ya,striped:Sa,noHeader:wa,onRowClick:Pa,onRowContextMenu:xa,onCellClick:Da,onCellContextMenu:Ma,onScroll:Ue,onScrollToTop:Ke,onScrollToBottom:Je,onScrollToLeft:Ze,onScrollToRight:Ye,c:ka,backgroundColor:Ra,borderColor:va,rowBorderColor:Ea,stripedColor:Na,highlightOnHoverColor:Ia,rowColor:La,rowBackgroundColor:Ha,rowExpansion:Fa,rowClassName:Va,rowStyle:Aa,customRowAttributes:_a,scrollViewportRef:Oa,scrollAreaProps:za,bodyRef:Wa,m:Ga,my:Ba,mx:Qa,mt:Xa,mb:$a,ml:Ua,mr:Ka,className:Ja,classNames:te,style:Za,styles:ae,...Ya}){let{ref:k,width:W,height:G}=U(),de=Un(()=>s?.flatMap(m=>m.columns)??d,[d,s]),{ref:qa,height:Ie}=U(),{ref:ja,width:Le,height:oe}=U(),{ref:eo,height:to}=U(),{ref:ao,height:qe}=U(),[He,je]=ke(!0),[Fe,et]=ke(!0),[ce,tt]=ke(!0),[pe,at]=ke(!0),oo=Tt({rowExpansion:Fa,records:T,idAccessor:c}),me=Me(()=>{let m=k.current?.scrollTop||0,H=k.current?.scrollLeft||0;if(r||oe<=G)je(!0),et(!0);else{let v=m===0,E=oe-m-G<1;je(v),et(E),v&&v!==He&&Ke?.(),E&&E!==Fe&&Je?.()}if(r||Le===W)tt(!0),at(!0);else{let v=H===0,E=Le-H-W<1;tt(v),at(E),v&&v!==ce&&Ze?.(),E&&E!==pe&&Ye?.()}},[r,Je,Ze,Ye,Ke,G,k,W,Fe,ce,pe,He,oe,Le]);ct(me,[me]);let no=Me(m=>{Ue?.(m),me()},[me,Ue]),ro=Me(m=>{k.current?.scrollTo({top:0,left:0}),N(m)},[N,k]),ue=T?.length,ot=T?.map(m=>S(m,c)),ne=!!b,re=b?.map(m=>S(m,c)),nt=ot!==void 0&&re!==void 0&&re.length>0,Ve=h?T?.filter(h):T,fe=Ve?.map(m=>S(m,c)),be=nt&&fe.every(m=>re.includes(m)),lo=nt&&fe.some(m=>re.includes(m)),io=Me(()=>{b&&y&&y(be?b.filter(m=>!fe.includes(S(m,c))):Ce([...b,...Ve],m=>S(m,c)))},[be,c,y,fe,Ve,b]),{lastSelectionChangeIndex:Te,setLastSelectionChangeIndex:so}=pt(ot),Ae=ne&&!ce;return sa(Qn,{...{m:Ga,my:Ba,mx:Qa,mt:Xa,mb:$a,ml:Ua,mr:Ka},className:ia("mantine-datatable",{"mantine-datatable-with-border":e},Ja,te?.root),style:[m=>({...Gt({theme:m,c:ka,backgroundColor:Ra,borderColor:va,rowBorderColor:Ea,stripedColor:Na,highlightOnHoverColor:Ia}),borderRadius:m.radius[t]||t,boxShadow:m.shadows[l]||l,height:n,minHeight:o}),Za,ae?.root],children:[L(la,{viewportRef:$n(k,Oa),topShadowVisible:!He,leftShadowVisible:!ce,leftShadowBehind:ne,rightShadowVisible:!pe,rightShadowBehind:p,bottomShadowVisible:!Fe,headerHeight:Ie,footerHeight:to,onScrollPositionChange:no,scrollAreaProps:za,children:sa(Xn,{ref:ja,horizontalSpacing:M,className:ia("mantine-datatable-table",{[yt]:a,"mantine-datatable-vertical-align-top":i==="top","mantine-datatable-vertical-align-bottom":i==="bottom","mantine-datatable-last-row-border-bottom-visible":oe<G,"mantine-datatable-pin-last-column":p,"mantine-datatable-pin-last-column-scrolled":!pe&&p},te?.table),style:ae?.table,"data-striped":ue&&Sa||void 0,"data-highlight-on-hover":ya||void 0,...Ya,children:[wa?null:L(Ot,{ref:qa,className:te?.header,style:ae?.header,columns:de,defaultColumnProps:u,groups:s,sortStatus:z,sortIcons:x,onSortStatusChange:w,selectionTrigger:C,selectionVisible:ne,selectionChecked:be,selectionIndeterminate:lo&&!be,onSelectionChange:io,selectionCheckboxProps:R,selectorCellShadowVisible:Ae}),L("tbody",{ref:Wa,children:ue?T.map((m,H)=>{let v=S(m,c),E=re?.includes(v)||!1,rt;return y&&b&&(rt=co=>{if(co.nativeEvent.shiftKey&&Te!==null){let $=T.filter(H>Te?(B,Q)=>Q>=Te&&Q<=H&&(h?h(B,Q):!0):(B,Q)=>Q>=H&&Q<=Te&&(h?h(B,Q):!0));y(E?bt(b,$,B=>S(B,c)):Ce([...b,...$],B=>S(B,c)))}else y(E?b.filter($=>S($,c)!==v):Ce([...b,m],$=>S($,c)));so(H)}),L(oa,{record:m,index:H,columns:de,defaultColumnProps:u,defaultColumnRender:f,selectionTrigger:C,selectionVisible:ne,selectionChecked:E,onSelectionChange:rt,isRecordSelectable:h,getSelectionCheckboxProps:D,onClick:Pa,onCellClick:Da,onContextMenu:xa,onCellContextMenu:Ma,expansion:oo,color:La,backgroundColor:Ha,className:Va,style:Aa,customAttributes:_a,selectorCellShadowVisible:Ae},v)}):L(it,{})}),de.some(({footer:m})=>m)&&L(Pt,{ref:eo,className:te?.footer,style:ae?.footer,columns:de,defaultColumnProps:u,selectionVisible:ne,selectorCellShadowVisible:Ae,scrollDiff:oe-G})]})}),P&&L(Zt,{ref:ao,className:te?.pagination,style:ae?.pagination,horizontalSpacing:M,fetching:r,page:P,onPageChange:ro,totalRecords:Z,recordsPerPage:Y,onRecordsPerPageChange:q,recordsPerPageOptions:Re,recordsPerPageLabel:ve,paginationWithEdges:j,paginationActiveTextColor:Ee,paginationActiveBackgroundColor:Ne,paginationSize:ee,paginationText:da,paginationWrapBreakpoint:ca,getPaginationControlProps:pa,noRecordsText:$e,loadingText:ha,recordsLength:ue}),L(Wt,{pt:Ie,pb:qe,fetching:r,backgroundBlur:ma,customContent:ua,size:fa,type:ba,color:Ta}),L(dt,{pt:Ie,pb:qe,icon:Ca,text:$e,active:!r&&!ue,children:ga})]})}export{Kn as DataTable,bt as differenceBy,S as getRecordId,_e as getValueAtPath,ge as humanize,Ce as uniqBy};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|