Files
doormile_crm_build/dist/assets/DeleteOutline-Dhk3Cr2d.js

2 lines
6.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{a5 as F,j as e,b as U,E as Z,a2 as at,I as N,_ as s,x as lt,y as it,z as rt,q as X,F as z,a6 as ct,a7 as ut,H as pt,J as x,M as dt,a8 as gt,r as bt,i as ht}from"./index-D7LVXeIK.js";import{T as G}from"./TableCell-DreGbAeW.js";import{S as Bt}from"./TextField-Sd_pshci.js";const xt=F(e.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Pt=F(e.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),mt=F(e.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),It=F(e.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),ft=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],vt=U.forwardRef(function(o,h){var R,P,y,C,_,$,m,u;const{backIconButtonProps:k,count:I,disabled:f=!1,getItemAriaLabel:p,nextIconButtonProps:H,onPageChange:v,page:a,rowsPerPage:g,showFirstButton:b,showLastButton:L,slots:d={},slotProps:n={}}=o,E=Z(o,ft),l=at(),K=B=>{v(B,0)},q=B=>{v(B,a-1)},S=B=>{v(B,a+1)},i=B=>{v(B,Math.max(0,Math.ceil(I/g)-1))},r=(R=d.firstButton)!=null?R:N,j=(P=d.lastButton)!=null?P:N,w=(y=d.nextButton)!=null?y:N,A=(C=d.previousButton)!=null?C:N,T=(_=d.firstButtonIcon)!=null?_:xt,D=($=d.lastButtonIcon)!=null?$:Pt,c=(m=d.nextButtonIcon)!=null?m:It,J=(u=d.previousButtonIcon)!=null?u:mt,O=l?j:r,tt=l?w:A,ot=l?A:w,et=l?r:j,st=l?n.lastButton:n.firstButton,W=l?n.nextButton:n.previousButton,Q=l?n.previousButton:n.nextButton,nt=l?n.firstButton:n.lastButton;return e.jsxs("div",s({ref:h},E,{children:[b&&e.jsx(O,s({onClick:K,disabled:f||a===0,"aria-label":p("first",a),title:p("first",a)},st,{children:l?e.jsx(D,s({},n.lastButtonIcon)):e.jsx(T,s({},n.firstButtonIcon))})),e.jsx(tt,s({onClick:q,disabled:f||a===0,color:"inherit","aria-label":p("previous",a),title:p("previous",a)},W??k,{children:l?e.jsx(c,s({},n.nextButtonIcon)):e.jsx(J,s({},n.previousButtonIcon))})),e.jsx(ot,s({onClick:S,disabled:f||(I!==-1?a>=Math.ceil(I/g)-1:!1),color:"inherit","aria-label":p("next",a),title:p("next",a)},Q??H,{children:l?e.jsx(J,s({},n.previousButtonIcon)):e.jsx(c,s({},n.nextButtonIcon))})),L&&e.jsx(et,s({onClick:i,disabled:f||a>=Math.ceil(I/g)-1,"aria-label":p("last",a),title:p("last",a)},nt,{children:l?e.jsx(T,s({},n.firstButtonIcon)):e.jsx(D,s({},n.lastButtonIcon))}))]}))});function Rt(t){return lt("MuiTablePagination",t)}const M=it("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Y;const Lt=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],St=x(G,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,o)=>o.root})(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}})),jt=x(gt,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,o)=>s({[`& .${M.actions}`]:o.actions},o.toolbar)})(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${M.actions}`]:{flexShrink:0,marginLeft:20}})),wt=x("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,o)=>o.spacer})({flex:"1 1 100%"}),Tt=x("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,o)=>o.selectLabel})(({theme:t})=>s({},t.typography.body2,{flexShrink:0})),Mt=x(Bt,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,o)=>s({[`& .${M.selectIcon}`]:o.selectIcon,[`& .${M.select}`]:o.select},o.input,o.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${M.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),yt=x(dt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,o)=>o.menuItem})({}),Ct=x("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,o)=>o.displayedRows})(({theme:t})=>s({},t.typography.body2,{flexShrink:0}));function _t({from:t,to:o,count:h}){return`${t}${o} of ${h!==-1?h:`more than ${o}`}`}function $t(t){return`Go to ${t} page`}const kt=t=>{const{classes:o}=t;return pt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Rt,o)},Kt=U.forwardRef(function(o,h){var R;const P=rt({props:o,name:"MuiTablePagination"}),{ActionsComponent:y=vt,backIconButtonProps:C,className:_,colSpan:$,component:m=G,count:u,disabled:k=!1,getItemAriaLabel:I=$t,labelDisplayedRows:f=_t,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:H,onPageChange:v,onRowsPerPageChange:a,page:g,rowsPerPage:b,rowsPerPageOptions:L=[10,25,50,100],SelectProps:d={},showFirstButton:n=!1,showLastButton:E=!1,slotProps:l={},slots:K={}}=P,q=Z(P,Lt),S=P,i=kt(S),r=(R=l==null?void 0:l.select)!=null?R:d,j=r.native?"option":yt;let w;(m===G||m==="td")&&(w=$||1e3);const A=X(r.id),T=X(r.labelId),D=()=>u===-1?(g+1)*b:b===-1?u:Math.min(u,(g+1)*b);return e.jsx(St,s({colSpan:w,ref:h,as:m,ownerState:S,className:z(i.root,_)},q,{children:e.jsxs(jt,{className:i.toolbar,children:[e.jsx(wt,{className:i.spacer}),L.length>1&&e.jsx(Tt,{className:i.selectLabel,id:T,children:p}),L.length>1&&e.jsx(Mt,s({variant:"standard"},!r.variant&&{input:Y||(Y=e.jsx(ct,{}))},{value:b,onChange:a,id:A,labelId:T},r,{classes:s({},r.classes,{root:z(i.input,i.selectRoot,(r.classes||{}).root),select:z(i.select,(r.classes||{}).select),icon:z(i.selectIcon,(r.classes||{}).icon)}),disabled:k,children:L.map(c=>U.createElement(j,s({},!ut(j)&&{ownerState:S},{className:i.menuItem,key:c.label?c.label:c,value:c.value?c.value:c}),c.label?c.label:c))})),e.jsx(Ct,{className:i.displayedRows,children:f({from:u===0?0:g*b+1,to:D(),count:u===-1?-1:u,page:g})}),e.jsx(y,{className:i.actions,backIconButtonProps:C,count:u,nextIconButtonProps:H,onPageChange:v,page:g,rowsPerPage:b,showFirstButton:n,showLastButton:E,slotProps:l.actions,slots:K.actions,getItemAriaLabel:I,disabled:k})]})}))});var V={},At=ht;Object.defineProperty(V,"__esModule",{value:!0});var Dt=V.default=void 0,Nt=At(bt()),zt=e;Dt=V.default=(0,Nt.default)((0,zt.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");export{mt as K,Kt as T,It as a,Dt as d};