@myunisoft/design-system 1.2.9-rev157-2 → 1.2.9-rev157-3
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/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Ay=Object.create;var jn=Object.defineProperty,Dy=Object.defineProperties,Ly=Object.getOwnPropertyDescriptor,Ny=Object.getOwnPropertyDescriptors,Py=Object.getOwnPropertyNames,Pi=Object.getOwnPropertySymbols,By=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable;var Tc=(e,t,r)=>t in e?jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&Tc(e,r,t[r]);if(Pi)for(var r of Pi(t))kc.call(t,r)&&Tc(e,r,t[r]);return e},y=(e,t)=>Dy(e,Ny(t));var _=(e,t)=>{var r={};for(var o in e)Fs.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Pi)for(var o of Pi(e))t.indexOf(o)<0&&kc.call(e,o)&&(r[o]=e[o]);return r};var Rc=(e,t)=>{for(var r in t)jn(e,r,{get:t[r],enumerable:!0})},Ec=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Py(t))!Fs.call(e,n)&&n!==r&&jn(e,n,{get:()=>t[n],enumerable:!(o=Ly(t,n))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?Ay(By(e)):{},Ec(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e)),Oy=e=>Ec(jn({},"__esModule",{value:!0}),e);var ee=(e,t,r)=>new Promise((o,n)=>{var i=p=>{try{a(r.next(p))}catch(c){n(c)}},l=p=>{try{a(r.throw(p))}catch(c){n(c)}},a=p=>p.done?o(p.value):Promise.resolve(p.value).then(i,l);a((r=r.apply(e,t)).next())});var cb={};Rc(cb,{AccordionSection:()=>t1,AddBoxMuiIcon:()=>Pc,AddBoxOutlinedMuiIcon:()=>_c,AddBoxRoundedMuiIcon:()=>zc,AddCircleOutlineMuiIcon:()=>Wc,AddMuiIcon:()=>Dc,AdminPanelSettingsMuiIcon:()=>$c,AlertIcon:()=>tf,ArchiveIcon:()=>of,ArrowDownwardMuiIcon:()=>Kc,ArrowDropDownMuiIcon:()=>Bi,ArrowDropUpMuiIcon:()=>Jc,ArrowLeftMuiIcon:()=>op,ArrowRightMuiIcon:()=>ip,AttachFileMuiIcon:()=>ap,Autocomplete:()=>ji,AutocompleteMultiple:()=>eu,AutocompleteMultipleInVT:()=>au,AutocompleteSingle:()=>iu,AutorenewMuiIcon:()=>dp,BackgroundLoader:()=>el,BadgeAdd:()=>bu,CalendarIcon:()=>rf,CancelMuiIcon:()=>fp,CheckBoxMuiIcon:()=>bp,CheckBoxOutlineBlankMuiIcon:()=>wp,CheckCircleMuiIcon:()=>kp,CheckCircleRoundedMuiIcon:()=>Mp,CheckMuiIcon:()=>yp,Checkbox:()=>Ur,CheckboxIcon:()=>Hr,ChevronLeftMuiIcon:()=>Lp,ChevronRightMuiIcon:()=>Bp,CloseIcon:()=>vt,CloseMuiIcon:()=>Oi,CloudIcon:()=>cl,CommentIcon:()=>nf,ContentCopyMuiIcon:()=>zp,ControlIcon:()=>lf,Crop32MuiIcon:()=>Ym,DataGridDS:()=>kl,DeleteMuiIcon:()=>Wp,DescriptionOutlinedMuiIcon:()=>jp,DocumentComposer:()=>ef,DownloadIcon:()=>sf,DragIndicatorMuiIcon:()=>Zp,DraggableList:()=>y0,DropdownIcon:()=>Yi,DuplicateIcon:()=>af,EditOutlinedMuiIcon:()=>_i,ErrorRoundedMuiIcon:()=>Fi,ExpandButton:()=>Ho,ExpandLessMuiIcon:()=>od,ExpandMoreMuiIcon:()=>Vr,FileCopyMuiIcon:()=>sd,FileDownloadMuiIcon:()=>pd,FileDownloadOutlinedMuiIcon:()=>ud,FileDropper:()=>Nl,FileUploadMuiIcon:()=>gd,FolderCheckIcon:()=>cf,FolderOpenMuiIcon:()=>Cd,HelpOutlinedMuiIcon:()=>vd,HideImageOutlinedMuiIcon:()=>Td,HistoryIcon:()=>pf,HomeOutlinedMuiIcon:()=>Ed,IndeterminateCheckBoxMuiIcon:()=>Dd,IndeterminateCheckBoxRoundedMuiIcon:()=>Pd,InfoIcon:()=>df,InfoMuiIcon:()=>_d,InfoRoundedMuiIcon:()=>Vi,KeyboardArrowDownMuiIcon:()=>Ud,KeyboardArrowLeftMuiIcon:()=>$d,KeyboardArrowRightMuiIcon:()=>Kd,ListIcon:()=>mf,Modal:()=>ke,MoreHorizMuiIcon:()=>qd,MoreIcon:()=>en,MoreVertMuiIcon:()=>zi,MoveToInboxMuiIcon:()=>om,NumericField:()=>R0,OpenInNewMuiIcon:()=>im,PanToolOutlinedMuiIcon:()=>am,PjIcon:()=>pl,PlusBoldIcon:()=>jr,PlusIcon:()=>uf,PopupIcon:()=>ff,PrintIcon:()=>hf,PrintOutlinedMuiIcon:()=>dm,ROW_TYPE:()=>te,RadioButtonCheckedMuiIcon:()=>fm,RadioButtonUncheckedMuiIcon:()=>ym,RefreshIcon:()=>gf,RefreshRoundedMuiIcon:()=>bm,RemoveMuiIcon:()=>wm,RotateRightIcon:()=>yf,SaveIcon:()=>ul,SearchIcon:()=>_o,SearchMuiIcon:()=>km,SelectedFlagIcon:()=>xf,SettingIcon:()=>fl,SettingsMuiIcon:()=>Hi,Snackbar:()=>xl,SnackbarBackgroundLoader:()=>D0,SplitButton:()=>L0,SplitIcon:()=>Cf,StacksIcon:()=>bf,SupportAgentMuiIcon:()=>Am,SwapIcon:()=>Sf,SyncMuiIcon:()=>Nm,TYPE_CELL:()=>B,TYPE_FOOTER_CELL:()=>io,TableIcon:()=>vf,ToDoIcon:()=>wf,TrashIcon:()=>ln,TrendingDownIcon:()=>If,TrendingUpIcon:()=>Tf,UnSelectedFlagIcon:()=>kf,UploadIcon:()=>Rf,VirtualTable:()=>gy,VirtualTableProvider:()=>yy,VisibilityMuiIcon:()=>Om,VisibilityOffMuiIcon:()=>Vm,WarningMuiIcon:()=>Um,WarningRoundedMuiIcon:()=>Ui,ZoomInMapRoundedIcon:()=>Xm,ZoomOutMapRoundedIcon:()=>Jm,exportData:()=>Yl,useDataManager:()=>U2,validation:()=>si});module.exports=Oy(cb);var e1=require("react"),Kt=require("@mui/material");var Mc=require("@mui/material/utils"),Ac=require("react/jsx-runtime"),Dc=(0,Mc.createSvgIcon)((0,Ac.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var Lc=require("@mui/material/utils"),Nc=require("react/jsx-runtime"),Pc=(0,Lc.createSvgIcon)((0,Nc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");var Bc=require("@mui/material/utils"),Oc=require("react/jsx-runtime"),_c=(0,Bc.createSvgIcon)((0,Oc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");var Fc=require("@mui/material/utils"),Vc=require("react/jsx-runtime"),zc=(0,Fc.createSvgIcon)((0,Vc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddBoxRounded");var Hc=require("@mui/material/utils"),Uc=require("react/jsx-runtime"),Wc=(0,Hc.createSvgIcon)((0,Uc.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var Gc=require("@mui/material/utils"),Vs=require("react/jsx-runtime"),$c=(0,Gc.createSvgIcon)([(0,Vs.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6z"},"0"),(0,Vs.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z"},"1")],"AdminPanelSettings");var jc=require("@mui/material/utils"),Yc=require("react/jsx-runtime"),Kc=(0,jc.createSvgIcon)((0,Yc.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var Zc=require("@mui/material/utils"),Xc=require("react/jsx-runtime"),Bi=(0,Zc.createSvgIcon)((0,Xc.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var qc=require("@mui/material/utils"),Qc=require("react/jsx-runtime"),Jc=(0,qc.createSvgIcon)((0,Qc.jsx)("path",{d:"M7 14l5-5 5 5z"}),"ArrowDropUp");var ep=require("@mui/material/utils"),tp=require("react/jsx-runtime"),op=(0,ep.createSvgIcon)((0,tp.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");var rp=require("@mui/material/utils"),np=require("react/jsx-runtime"),ip=(0,rp.createSvgIcon)((0,np.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");var lp=require("@mui/material/utils"),sp=require("react/jsx-runtime"),ap=(0,lp.createSvgIcon)((0,sp.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");var cp=require("@mui/material/utils"),pp=require("react/jsx-runtime"),dp=(0,cp.createSvgIcon)((0,pp.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"}),"Autorenew");var mp=require("@mui/material/utils"),up=require("react/jsx-runtime"),fp=(0,mp.createSvgIcon)((0,up.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var hp=require("@mui/material/utils"),gp=require("react/jsx-runtime"),yp=(0,hp.createSvgIcon)((0,gp.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var xp=require("@mui/material/utils"),Cp=require("react/jsx-runtime"),bp=(0,xp.createSvgIcon)((0,Cp.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");var Sp=require("@mui/material/utils"),vp=require("react/jsx-runtime"),wp=(0,Sp.createSvgIcon)((0,vp.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");var Ip=require("@mui/material/utils"),Tp=require("react/jsx-runtime"),kp=(0,Ip.createSvgIcon)((0,Tp.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");var Rp=require("@mui/material/utils"),Ep=require("react/jsx-runtime"),Mp=(0,Rp.createSvgIcon)((0,Ep.jsx)("path",{d:"M 12 2 C 6.48 2 2 6.48 2 12 s 4.48 10 10 10 s 10 -4.48 10 -10 S 17.52 2 12 2 M 9.29 16.29 L 5.7 12.7 a 0.996 0.996 0 0 1 0 -1.41 c 0.39 -0.39 1.02 -0.39 1.41 0 L 10 14.17 l 6.88 -6.88 c 0.39 -0.39 1.02 -0.39 1.41 0 s 0.39 1.02 0 1.41 l -7.59 7.59 c -0.38 0.39 -1.02 0.39 -1.41 0"}),"CheckCircleRounded");var Ap=require("@mui/material/utils"),Dp=require("react/jsx-runtime"),Lp=(0,Ap.createSvgIcon)((0,Dp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Np=require("@mui/material/utils"),Pp=require("react/jsx-runtime"),Bp=(0,Np.createSvgIcon)((0,Pp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var Op=require("@mui/material/utils"),_p=require("react/jsx-runtime"),Oi=(0,Op.createSvgIcon)((0,_p.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Fp=require("@mui/material/utils"),Vp=require("react/jsx-runtime"),zp=(0,Fp.createSvgIcon)((0,Vp.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");var Hp=require("@mui/material/utils"),Up=require("react/jsx-runtime"),Wp=(0,Hp.createSvgIcon)((0,Up.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");var Gp=require("@mui/material/utils"),$p=require("react/jsx-runtime"),jp=(0,Gp.createSvgIcon)([(0,$p.jsx)("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"})],"DescriptionOutlined");var Yp=require("@mui/material/utils"),Kp=require("react/jsx-runtime"),Zp=(0,Yp.createSvgIcon)((0,Kp.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var Xp=require("@mui/material/utils"),qp=require("react/jsx-runtime"),_i=(0,Xp.createSvgIcon)((0,qp.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");var Qp=require("@mui/material/utils"),Jp=require("react/jsx-runtime"),Fi=(0,Qp.createSvgIcon)((0,Jp.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"ErrorRounded");var ed=require("@mui/material/utils"),td=require("react/jsx-runtime"),od=(0,ed.createSvgIcon)((0,td.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");var rd=require("@mui/material/utils"),nd=require("react/jsx-runtime"),Vr=(0,rd.createSvgIcon)((0,nd.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var id=require("@mui/material/utils"),ld=require("react/jsx-runtime"),sd=(0,id.createSvgIcon)((0,ld.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");var ad=require("@mui/material/utils"),cd=require("react/jsx-runtime"),pd=(0,ad.createSvgIcon)((0,cd.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload");var dd=require("@mui/material/utils"),md=require("react/jsx-runtime"),ud=(0,dd.createSvgIcon)((0,md.jsx)("path",{d:"M 18 15 v 3 H 6 v -3 H 4 v 3 c 0 1.1 0.9 2 2 2 h 12 c 1.1 0 2 -0.9 2 -2 v -3 Z m -1 -4 l -1.41 -1.41 L 13 12.17 V 4 h -2 v 8.17 L 8.41 9.59 L 7 11 l 5 5 Z"}),"FileDownloadOutlinedIcon");var fd=require("@mui/material/utils"),hd=require("react/jsx-runtime"),gd=(0,fd.createSvgIcon)((0,hd.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload");var yd=require("@mui/material/utils"),xd=require("react/jsx-runtime"),Cd=(0,yd.createSvgIcon)((0,xd.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen");var bd=require("@mui/material/utils"),Sd=require("react/jsx-runtime"),vd=(0,bd.createSvgIcon)([(0,Sd.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})],"HelpOutlined");var wd=require("@mui/material/utils"),Id=require("react/jsx-runtime"),Td=(0,wd.createSvgIcon)((0,Id.jsx)("path",{d:"M19 5v11.17l2 2V5c0-1.1-.9-2-2-2H5.83l2 2zM2.81 2.81 1.39 4.22 3 5.83V19c0 1.1.9 2 2 2h13.17l1.61 1.61 1.41-1.41zM5 19V7.83l7.07 7.07-.82 1.1L9 13l-3 4h8.17l2 2z"}),"HideImageOutlined");var kd=require("@mui/material/utils"),Rd=require("react/jsx-runtime"),Ed=(0,kd.createSvgIcon)((0,Rd.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81l5-4.5M12 3 2 12h3v8h6v-6h2v6h6v-8h3L12 3z"}),"HomeOutlined");var Md=require("@mui/material/utils"),Ad=require("react/jsx-runtime"),Dd=(0,Md.createSvgIcon)((0,Ad.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var Ld=require("@mui/material/utils"),Nd=require("react/jsx-runtime"),Pd=(0,Ld.createSvgIcon)((0,Nd.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1z"}),"IndeterminateCheckBoxRounded");var Bd=require("@mui/material/utils"),Od=require("react/jsx-runtime"),_d=(0,Bd.createSvgIcon)((0,Od.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");var Fd=require("@mui/material/utils"),Vd=require("react/jsx-runtime"),Vi=(0,Fd.createSvgIcon)((0,Vd.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1-8h-2V7h2z"}),"InfoRounded");var zd=require("@mui/material/utils"),Hd=require("react/jsx-runtime"),Ud=(0,zd.createSvgIcon)((0,Hd.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");var Wd=require("@mui/material/utils"),Gd=require("react/jsx-runtime"),$d=(0,Wd.createSvgIcon)((0,Gd.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");var jd=require("@mui/material/utils"),Yd=require("react/jsx-runtime"),Kd=(0,jd.createSvgIcon)((0,Yd.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");var Zd=require("@mui/material/utils"),Xd=require("react/jsx-runtime"),qd=(0,Zd.createSvgIcon)((0,Xd.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var Qd=require("@mui/material/utils"),Jd=require("react/jsx-runtime"),zi=(0,Qd.createSvgIcon)((0,Jd.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");var em=require("@mui/material/utils"),tm=require("react/jsx-runtime"),om=(0,em.createSvgIcon)((0,tm.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"}),"MoveToInbox");var rm=require("@mui/material/utils"),nm=require("react/jsx-runtime"),im=(0,rm.createSvgIcon)((0,nm.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var lm=require("@mui/material/utils"),sm=require("react/jsx-runtime"),am=(0,lm.createSvgIcon)((0,sm.jsx)("path",{d:"M8.73564 18.5416C8.35412 18.5416 7.99808 18.4558 7.66752 18.2843C7.33683 18.1129 7.06148 17.8669 6.84148 17.5464L1.90064 10.306C1.82162 10.1928 1.78773 10.0696 1.79898 9.93659C1.81023 9.80353 1.86814 9.68895 1.97273 9.59284C2.19398 9.37173 2.45578 9.24701 2.75814 9.21867C3.06037 9.19034 3.33599 9.2643 3.58502 9.44055L6.25002 11.2964V3.77409C6.25002 3.59701 6.30995 3.44853 6.42981 3.32867C6.54967 3.20895 6.69814 3.14909 6.87523 3.14909C7.05245 3.14909 7.20085 3.20895 7.32044 3.32867C7.44016 3.44853 7.50002 3.59701 7.50002 3.77409V12.2595C7.50002 12.5601 7.36544 12.7824 7.09627 12.9264C6.82696 13.0704 6.56676 13.0533 6.31564 12.8749L4.12023 11.3364L7.87189 16.8285C7.96273 16.9717 8.0853 17.0846 8.2396 17.1674C8.39405 17.2502 8.55939 17.2916 8.73564 17.2916H13.9584C14.4807 17.2916 14.9238 17.1097 15.2877 16.746C15.6515 16.3821 15.8334 15.939 15.8334 15.4166V4.37492C15.8334 4.19784 15.8933 4.04944 16.0131 3.92971C16.133 3.80985 16.2815 3.74992 16.4586 3.74992C16.6358 3.74992 16.7842 3.80985 16.9038 3.92971C17.0235 4.04944 17.0834 4.19784 17.0834 4.37492V15.4166C17.0834 16.2798 16.7784 17.0164 16.1684 17.6264C15.5582 18.2365 14.8215 18.5416 13.9584 18.5416H8.73564ZM10.0725 1.48242C10.2496 1.48242 10.398 1.54228 10.5177 1.66201C10.6373 1.78187 10.6971 1.93034 10.6971 2.10742V9.16659C10.6971 9.34367 10.6372 9.49208 10.5173 9.6118C10.3974 9.73166 10.249 9.79159 10.0719 9.79159C9.89467 9.79159 9.74627 9.73166 9.62669 9.6118C9.50696 9.49208 9.4471 9.34367 9.4471 9.16659V2.10742C9.4471 1.93034 9.50703 1.78187 9.62689 1.66201C9.74676 1.54228 9.8953 1.48242 10.0725 1.48242ZM13.2696 2.31576C13.4467 2.31576 13.5951 2.37562 13.7148 2.49534C13.8344 2.6152 13.8942 2.76367 13.8942 2.94076V9.16659C13.8942 9.34367 13.8343 9.49208 13.7144 9.6118C13.5945 9.73166 13.4461 9.79159 13.269 9.79159C13.0918 9.79159 12.9434 9.73166 12.8238 9.6118C12.704 9.49208 12.6442 9.34367 12.6442 9.16659V2.94076C12.6442 2.76367 12.7041 2.6152 12.824 2.49534C12.9438 2.37562 13.0924 2.31576 13.2696 2.31576Z"}),"PanToolOutlined");var cm=require("@mui/material/utils"),pm=require("react/jsx-runtime"),dm=(0,cm.createSvgIcon)((0,pm.jsx)("path",{d:"M 19 8 h -1 V 3 H 6 v 5 H 5 c -1.66 0 -3 1.34 -3 3 v 6 h 4 v 4 h 12 v -4 h 4 v -6 c 0 -1.66 -1.34 -3 -3 -3 M 8 5 h 8 v 3 H 8 Z m 8 12 v 2 H 8 v -4 h 8 Z m 2 -2 v -2 H 6 v 2 H 4 v -4 c 0 -0.55 0.45 -1 1 -1 h 14 c 0.55 0 1 0.45 1 1 v 4 Z"}),"PrintOutlinedIcon");var mm=require("@mui/material/utils"),um=require("react/jsx-runtime"),fm=(0,mm.createSvgIcon)((0,um.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonChecked");var hm=require("@mui/material/utils"),gm=require("react/jsx-runtime"),ym=(0,hm.createSvgIcon)((0,gm.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked");var xm=require("@mui/material/utils"),Cm=require("react/jsx-runtime"),bm=(0,xm.createSvgIcon)((0,Cm.jsx)("path",{d:"M17.65 6.35c-1.63-1.63-3.94-2.57-6.48-2.31-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20c3.19 0 5.93-1.87 7.21-4.56.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53-1.13 2.43-3.84 3.97-6.8 3.31-2.22-.49-4.01-2.3-4.48-4.52C5.31 9.44 8.26 6 12 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71z"}),"RefreshRounded");var Sm=require("@mui/material/utils"),vm=require("react/jsx-runtime"),wm=(0,Sm.createSvgIcon)((0,vm.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");var Im=require("@mui/material/utils"),Tm=require("react/jsx-runtime"),km=(0,Im.createSvgIcon)((0,Tm.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");var Rm=require("@mui/material/utils"),Em=require("react/jsx-runtime"),Hi=(0,Rm.createSvgIcon)((0,Em.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");var Mm=require("@mui/material/utils"),Yn=require("react/jsx-runtime"),Am=(0,Mm.createSvgIcon)([(0,Yn.jsx)("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),(0,Yn.jsx)("circle",{cx:"9",cy:"13",r:"1"},"1"),(0,Yn.jsx)("circle",{cx:"15",cy:"13",r:"1"},"2"),(0,Yn.jsx)("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")],"supportAgent");var Dm=require("@mui/material/utils"),Lm=require("react/jsx-runtime"),Nm=(0,Dm.createSvgIcon)((0,Lm.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Sync");var Pm=require("@mui/material/utils"),Bm=require("react/jsx-runtime"),Om=(0,Pm.createSvgIcon)((0,Bm.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");var _m=require("@mui/material/utils"),Fm=require("react/jsx-runtime"),Vm=(0,_m.createSvgIcon)((0,Fm.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");var zm=require("@mui/material/utils"),Hm=require("react/jsx-runtime"),Um=(0,zm.createSvgIcon)((0,Hm.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var Wm=require("@mui/material/utils"),Gm=require("react/jsx-runtime"),Ui=(0,Wm.createSvgIcon)((0,Gm.jsx)("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"WarningRounded");var $m=require("@mui/material/utils"),jm=require("react/jsx-runtime"),Ym=(0,$m.createSvgIcon)((0,jm.jsx)("path",{d:"M5.51185 17.5C5.00668 17.5 4.5791 17.325 4.2291 16.975C3.8791 16.625 3.7041 16.1974 3.7041 15.6923V8.30775C3.7041 7.80258 3.8791 7.375 4.2291 7.025C4.5791 6.675 5.00668 6.5 5.51185 6.5H18.8964C19.4015 6.5 19.8291 6.675 20.1791 7.025C20.5291 7.375 20.7041 7.80258 20.7041 8.30775V15.6923C20.7041 16.1974 20.5291 16.625 20.1791 16.975C19.8291 17.325 19.4015 17.5 18.8964 17.5H5.51185ZM5.51185 16H18.8964C18.9734 16 19.0439 15.9679 19.1079 15.9038C19.172 15.8398 19.2041 15.7692 19.2041 15.6923V8.30775C19.2041 8.23075 19.172 8.16025 19.1079 8.09625C19.0439 8.03208 18.9734 8 18.8964 8H5.51185C5.43485 8 5.36435 8.03208 5.30035 8.09625C5.23619 8.16025 5.2041 8.23075 5.2041 8.30775V15.6923C5.2041 15.7692 5.23619 15.8398 5.30035 15.9038C5.36435 15.9679 5.43485 16 5.51185 16Z"}),"Crop32");var Km=require("@mui/material/utils"),Zm=require("react/jsx-runtime"),Xm=(0,Km.createSvgIcon)((0,Zm.jsx)("path",{d:"M9,9l0-6L7,3l0,2.59L3.91,2.5L2.5,3.91L5.59,7L3,7l0,2L9,9z M21,9V7l-2.59,0l3.09-3.09L20.09,2.5L17,5.59V3l-2,0l0,6L21,9z M3,15l0,2h2.59L2.5,20.09l1.41,1.41L7,18.41L7,21h2l0-6L3,15z M15,15l0,6h2v-2.59l3.09,3.09l1.41-1.41L18.41,17H21v-2L15,15z"}),"ZoomInMapRounded");var qm=require("@mui/material/utils"),Qm=require("react/jsx-runtime"),Jm=(0,qm.createSvgIcon)((0,Qm.jsx)("path",{d:"M15,3l2.3,2.3l-2.89,2.87l1.42,1.42L18.7,6.7L21,9V3H15z M3,9l2.3-2.3l2.87,2.89l1.42-1.42L6.7,5.3L9,3H3V9z M9,21 l-2.3-2.3l2.89-2.87l-1.42-1.42L5.3,17.3L3,15v6H9z M21,15l-2.3,2.3l-2.87-2.89l-1.42,1.42l2.89,2.87L15,21h6V15z"}),"ZoomOutMapRounded");var Bo=require("react/jsx-runtime"),_y=({title:e,children:t,extraTitle:r,isDisabled:o=!1,isExpanded:n=!0,onToggle:i})=>{let[l,a]=(0,e1.useState)(n);return(0,Bo.jsxs)(Kt.Accordion,{expanded:l,disabled:o,onChange:()=>{typeof i=="function"&&!o&&i(!l),a(c=>!c)},disableGutters:!0,"data-role":"accordionSection",sx:{"&:before":{height:"0px"}},children:[(0,Bo.jsxs)(Kt.AccordionSummary,{sx:{flexDirection:"row-reverse",width:"100%",alignItems:"center",display:"flex",overflow:"hidden"},expandIcon:(0,Bo.jsx)(Vr,{}),children:[(0,Bo.jsx)(Kt.Typography,{variant:"h6",noWrap:!0,sx:{ml:1,minWidth:"50px",flexShrink:0},children:e}),r&&(0,Bo.jsx)(Kt.Box,{sx:{ml:1,flex:1},onClick:c=>c.stopPropagation(),children:r})]}),(0,Bo.jsx)(Kt.AccordionDetails,{sx:{mt:1},children:t})]})},t1=_y;var Q=require("react"),le=require("@mui/material"),p1=v(require("autosuggest-highlight/match")),d1=v(require("autosuggest-highlight/parse")),m1=v(require("lodash/uniq")),$i=require("react-window");var zs=v(require("i18next"));var o1={attachments:{error:"Une erreur est survenue\xA0!"},autocomplete:{createOption:'Create "{{value}}"'},common:{addRow:"+ Add a row",cancel:"Cancel",export:"Export",import:"Import",loading:"Loading ...",loading2:"Loading...",or:"or",outOf:"out of",save:"Save",select:"Select",selectedCount:"{{count}} s\xE9lectionn\xE9(s)",submit:"Submit",to:"to",noResult:"No result",search:"Search",all:"All",edit:"Edit",delete:"Delete"},columnsSetting:{title:"Columns setting",subtitle:"Select the columns that you want to appear on the table",columns:{display:"Display",columnName:"Column",filterable:"Filterable"},addColumn:"+ Add a column",restoreInitial:"Restore settings"},documentComposer:{createSection:"Create a section"},dashboard:{ba:{linkTo:"Linked to",wallets:"wallets"}},exportDialog:{title:"Export the data",legend:"Export format",exportButton:"Export",errorMessage:"The data export has failed.",exportAllPages:"Export all pages"},filesDropperDialog:{dropbox:"Drag your documents here",import:"import",scan:"scan",infoScanDPI:"(in 300 DPI)",fromExplorer:"from your files",limit:"Number of files:"},tooltips:{cancel:"Cancel",delete:"Delete",edit:"Edit",save:"Save"},validation:{errors:{datePeriodInvalid:"Invalid period",empty:"This field is required",invalidDate:"Invalid date (DD/MM/YYYY)",lessOrEqualThan:"Must be less than or equal to {{maxValue}}",moreThan:"Must be greater than {{minValue}}",moreOrEqualThan:"Must be greater than or equal to {{minValue}}",negativeValue:"It is not possible to enter a negative value"}},virtualTable:{searchBar:{placeholder:"Tap {{trigger}} to select a column"},uploadDialog:{filesListTitle:"My already imported files"},attachmentCell:{title:"Attachments"}}};var r1={attachments:{error:"Une erreur est survenue\xA0!"},autocomplete:{createOption:'Cr\xE9er "{{value}}"'},common:{addRow:"+ Ajouter une ligne",cancel:"Annuler",export:"Exporter",import:"Importer",loading:"Chargement ...",loading2:"Chargement en cours...",or:"ou",outOf:"sur",save:"Enregistrer",select:"S\xE9lectionner",selectedCount:"{{count}} s\xE9lectionn\xE9(s)",submit:"Valider",to:"au",noResult:"Aucun r\xE9sultat",search:"Rechercher",all:"Tous",edit:"Modifier",delete:"Supprimer"},columnsSetting:{title:"Param\xE9trage des colonnes",subtitle:"S\xE9lectionnez les colonnes que vous souhaitez faire appara\xEEtre dans le tableau",columns:{display:"Afficher",columnName:"Colonne",filterable:"Filtrable"},addColumn:"+ Ajouter une colonne",restoreInitial:"Restaurer les param\xE8tres"},documentComposer:{createSection:"Cr\xE9er une section"},dashboard:{ba:{linkTo:"Li\xE9e \xE0",wallets:"portefeuilles"}},exportDialog:{title:"Exporter le tableau",legend:"Format d'export\xA0:",exportButton:"Exporter",errorMessage:"L'exportation du tableau a \xE9chou\xE9.",exportAllPages:"Exporter toutes les pages"},filesDropperDialog:{dropbox:"Glisser les documents ici",import:"Importer les documents",scan:"scanner",infoScanDPI:"(en 300 DPI)",fromExplorer:"depuis vos fichiers",limit:"Nombre max.\xA0:"},tooltips:{cancel:"Annuler",delete:"Supprimer",edit:"Modifier",save:"Sauvegarder"},validation:{errors:{datePeriodInvalid:"La p\xE9riode est invalide",empty:"Ce champ est obligatoire",invalidDate:"Date invalide (JJ/MM/AAAA)",lessOrEqualThan:"Doit \xEAtre inf\xE9rieur ou \xE9gal \xE0 {{maxValue}}",moreThan:"Doit \xEAtre sup\xE9rieur \xE0 {{minValue}}",moreOrEqualThan:"Doit \xEAtre sup\xE9rieur ou \xE9gal \xE0 {{minValue}}",negativeValue:"Il n'est pas possible de saisir une valeur n\xE9gative"}},virtualTable:{searchBar:{placeholder:"Appuyez sur {{trigger}} pour s\xE9lectionner une colonne"},uploadDialog:{filesListTitle:"Mes fichiers d\xE9j\xE0 import\xE9s"},attachmentCell:{title:"Pi\xE8ces jointes"}}};var n1=typeof localStorage!="undefined"&&localStorage.getItem("user_lng")||"fr";zs.default.init({resources:{en:{translation:s({},o1)},fr:{translation:s({},r1)}},lng:n1,fallbackLng:n1,interpolation:{escapeValue:!1}});var F=zs.default;var zr=require("react"),Oo=require("@mui/material");var Hs=require("react/jsx-runtime"),i1=require("react"),Fy=(0,Oo.styled)(r=>{var o=r,{className:e}=o,t=_(o,["className"]);return(0,Hs.jsx)(Oo.Tooltip,y(s({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${Oo.tooltipClasses.tooltip}`]:{boxShadow:e.shadows[2],fontWeight:"normal"}})),Vy=6,zy=p=>{var c=p,{option:e,label:t,maxChipWidth:r,reserveForCounter:o,isDisabled:n,onDelete:i,sx:l}=c,a=_(c,["option","label","maxChipWidth","reserveForCounter","isDisabled","onDelete","sx"]);let[m,f]=(0,zr.useState)(!1),d=(0,zr.useRef)(null);return(0,zr.useEffect)(()=>{if(d.current&&r){let u=d.current.querySelector(".MuiChip-label");u&&u.scrollWidth>=r&&f(!0)}},[r]),(0,Hs.jsx)(Fy,{enterDelay:800,enterNextDelay:800,title:m?t:"",children:(0,i1.createElement)(Oo.Chip,y(s(y(s({},a),{label:t,size:"small",key:e==null?void 0:e.id,sx:s({maxWidth:r?`min(calc(100% - ${Vy}px - ${o!=null?o:0}px), ${r}px) !important`:"250px"},l),color:e==null?void 0:e.optionType,disabled:(e==null?void 0:e.disabled)||n}),!(e!=null&&e.disabled)&&{onDelete:i}),{ref:d}))})},Kn=zy;var he=require("react/jsx-runtime"),u1=8,Us=200,Zt="SELECT_ALL",Wi="ADD_OPTION",Ws=250,l1=35,Gs=52,s1=50,$s=66,a1=(0,le.styled)(le.Popper)({[`& .${le.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),f1=(0,le.styled)(r=>{var o=r,{className:e}=o,t=_(o,["className"]);return(0,he.jsx)(le.Tooltip,y(s({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${le.tooltipClasses.tooltip}`]:{boxShadow:e.shadows[2],fontWeight:"normal",maxHeight:300,overflowY:"auto"}})),h1=(0,Q.createContext)(null),Hy=({index:e,itemData:t,style:r})=>{var f;let o=(0,Q.use)(h1);if(!o)throw new Error("RowComponent must be used within AutocompleteContext");let{renderOption:n,value:i}=o,l=t.items[e],m=l[0],{key:a}=m,p=_(m,["key"]),c=y(s({},r),{top:((f=r.top)!=null?f:0)+u1});return n(p,l[1],l[2],c,i)},c1=(0,Q.forwardRef)(function(t,r){let o=(0,le.useTheme)(),n=(0,le.useMediaQuery)(o.breakpoints.up("sm"),{noSsr:!0}),b=t,{children:i,internalListRef:l,onItemsBuilt:a}=b,p=_(b,["children","internalListRef","onItemsBuilt"]),c=(0,Q.useMemo)(()=>{let D=[];for(let S of i)D.push(S),"children"in S&&Array.isArray(S.children)&&D.push(...S.children);return{items:D}},[i]),m=(0,Q.useMemo)(()=>{let D=new Map;return c.items.forEach((S,T)=>{if(Array.isArray(S)&&S[1]){let k=S[1];D.set(String(k.id),T)}}),D},[c.items]);(0,Q.useEffect)(()=>{a&&a(m)},[a,m]);let f=c.items.length,d=n?36:48,u=D=>Object.hasOwn(D,"group")?48:d,h=()=>f>8?8*d:c.items.map(u).reduce((D,S)=>D+S,0),I=p,{className:g,style:C}=I,x=_(I,["className","style"]);return(0,he.jsx)("div",y(s({ref:r},x),{children:(0,he.jsx)($i.List,{className:g,listRef:l,rowCount:f,rowHeight:D=>u(c.items[D]),rowComponent:Hy,rowProps:{itemData:c},style:{height:h()+2*u1,width:"100%"},overscanCount:5,tagName:"ul"})}))}),Gi=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),Uy=e=>e==null?void 0:e.label,Wy=(e,t)=>e.id===t.id,Ie=e=>e,Gy=({label:e,tooltip:t})=>{let[r,o]=(0,Q.useState)(!1),n=(0,Q.useRef)(null);return(0,Q.useEffect)(()=>{if(n.current){let i=n.current;i&&i.scrollWidth>i.clientWidth&&o(!0)}},[]),(0,he.jsx)(f1,{title:r?t:"",placement:"bottom-start",children:(0,he.jsx)(le.Box,{sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ref:n,children:e})})},$y=e=>{let Po=(0,le.useThemeProps)({props:e,name:"Autocomplete"}),{label:r,value:o,onChange:n,options:i,isError:l,isDisplayLabel:a=!0,customSearch:p,selectAllHidden:c=!1,selectAllLabel:m=F.t("common.all"),allSelectedLabel:f=F.t("common.all"),isDisabled:d=!1,expandSelectedTagsOnEdition:u=!1,InputProps:h,onIsSearchingChange:g,getOptionLabel:C=Uy,multiple:x=!1,onCreate:b,sx:I,disableAllSelectedTag:D,renderTag:S,renderOptionLabel:T,variant:k,disableSort:w,isOptionEqualToValue:A=Wy,placeholder:O,helperText:E,minListWidth:L=400}=Po,V=_(Po,["label","value","onChange","options","isError","isDisplayLabel","customSearch","selectAllHidden","selectAllLabel","allSelectedLabel","isDisabled","expandSelectedTagsOnEdition","InputProps","onIsSearchingChange","getOptionLabel","multiple","onCreate","sx","disableAllSelectedTag","renderTag","renderOptionLabel","variant","disableSort","isOptionEqualToValue","placeholder","helperText","minListWidth"]),H=(0,$i.useListRef)(null),M=(0,Q.useRef)(new Map),z=(0,Q.useRef)(null),$=(0,Q.useRef)(null),K=(0,Q.useRef)(null),X=(0,Q.useRef)([]),Z=(0,Q.useRef)([]),R=(0,Q.useCallback)(G=>{M.current=G},[]),N=(0,Q.useCallback)(G=>{var J;return Ie(G).id===Zt?"":(J=C(G))!=null?J:""},[C]),U=(0,Q.useCallback)(G=>w?G:G.sort((J,oe)=>N(J).localeCompare(N(oe))),[w,N]),re=(0,Q.useMemo)(()=>{let G=[...i!=null?i:[]];return w?G:G.sort((J,oe)=>N(J).localeCompare(N(oe)))},[i,w,N]),de=re.filter(G=>Ie(G).selected),Re=de[0]||null,W=o!==void 0,[Y,q]=(0,Q.useState)(de),[ge,ne]=(0,Q.useState)(Re),ce=W?o:x?Y:ge,[Ve,Ne]=(0,Q.useState)(""),[me,gt]=(0,Q.useState)(!1),[ue,gr]=(0,Q.useState)(!1),[$e,$t]=(0,Q.useState)(-1),[jt,yt]=(0,Q.useState)(0),[Ao,Un]=(0,Q.useState)(!1),[He,yr]=(0,Q.useState)(re),Do=(0,Q.useMemo)(()=>(0,le.createFilterOptions)(),[]),Lt=(0,Q.useMemo)(()=>(G,{inputValue:J})=>{if(!J)return G;let oe=Gi(J);return G.filter(ie=>Gi(N(ie)).includes(oe))},[N]),je=(0,Q.useCallback)(G=>{W||(x?q(G):ne(G));let J=typeof G=="function"?G(ce):G;n==null||n(J)},[n,W,x,ce]);(0,Q.useEffect)(()=>{yr(re)},[re]),(0,Q.useEffect)(()=>{W||(x?q(de):ne(Re))},[]),(0,Q.useEffect)(()=>{g==null||g(me)},[me,g]),(0,Q.useEffect)(()=>{if(!x||!$.current)return;let G=Array.from($.current.querySelectorAll('[data-measure="chip"]'));X.current=G.map(J=>{let oe=getComputedStyle(J),ie=Number.parseFloat(oe.marginLeft||"0"),pe=Number.parseFloat(oe.marginRight||"0");return Math.ceil(J.getBoundingClientRect().width+ie+pe)})},[ce,He,x]),(0,Q.useEffect)(()=>{if(!x||jt===0)return;let G=X.current.length;if(G===1){$t(1);return}let J=Math.max(0,jt-l1-Gs),oe=jt>Ws,ie=oe?X.current[0]:0,pe=oe?1:0;for(let Ue of X.current.slice(oe?1:0))if(pe===G-1&&ie+Ue<=J||pe<G&&ie+Ue<=J-s1)ie+=Ue,pe++;else break;$t(pe)},[ce,jt,x]),(0,Q.useEffect)(()=>{if(!x||!z.current)return;let G=new ResizeObserver(()=>{z.current&&yt(z.current.clientWidth)});return G.observe(z.current),yt(z.current.clientWidth),()=>G.disconnect()},[x]),(0,Q.useEffect)(()=>{var J,oe;if(!u||!x||!$.current)return;let G=new ResizeObserver(()=>{var ie,pe;Un(((pe=(ie=$.current)==null?void 0:ie.clientHeight)!=null?pe:0)>$s)});return G.observe($.current),Un(((oe=(J=$.current)==null?void 0:J.clientHeight)!=null?oe:0)>$s),()=>G.disconnect()},[x]);let xr=(0,Q.useCallback)((G,J)=>Gi(N(G)).split(/[\s\-.()]/).findIndex(oe=>oe.startsWith(J)),[N]),Cr=(0,Q.useCallback)((G,J)=>{let{inputValue:oe,getOptionLabel:ie}=J,pe=p?p(oe,G):w?Lt(G,{inputValue:oe}):Do(G,{inputValue:oe,getOptionLabel:ie});oe&&!w&&pe.sort((ve,Pe)=>{let Ct=Gi(oe),we=xr(ve,Ct),be=xr(Pe,Ct);return we===-1&&be===-1?0:we===-1?1:be===-1?-1:we-be});let Ue=pe.every(ve=>Ie(ve).disabled);return Z.current=[...x&&pe.length>1&&!c?[{id:Zt,label:"",disabled:Ue}]:[],...pe,...pe.length===0&&b?[{id:Wi,label:F.t("autocomplete.createOption",{value:Ve})}]:[]],Z.current},[p,N,Do,Lt,x,w,b,Ve,c,xr]),Nt=()=>{x&&setTimeout(()=>{K.current&&K.current.scrollTo({top:K.current.scrollHeight})},200)},Te=()=>{gt(!1),Ne("")},xt=(G,J,oe,ie)=>{var Ct;if(G.preventDefault(),G.stopPropagation(),!x&&((Ct=Ie(ie==null?void 0:ie.option))==null?void 0:Ct.id)!==Wi){je(J),Te();return}let pe=J,Ue=ce;if(oe==="removeOption"&&Ie(ie==null?void 0:ie.option).disabled)return;let Pe=He.filter(we=>{let{disabled:be,selected:Ee}=Ie(we);return be&&Ee});if(oe==="clear"){je(Pe);return}if(Ie(ie==null?void 0:ie.option).id===Zt)if(Z.current.filter(be=>Ie(be).id!==Zt).every(be=>Ie(be).disabled||Ue.some(Ee=>A(be,Ee))))je(be=>be.filter(Ee=>Ie(Ee).disabled||!Z.current.some(Ye=>A(Ee,Ye)&&Ie(Ye).id!==Zt)));else{let be=(0,m1.default)([...Ue,...Z.current.filter(Ee=>!Ue.find(Ye=>A(Ye,Ee))&&!Ie(Ee).disabled&&Ie(Ee).id!==Zt)]);je(be)}else if(Ie(ie==null?void 0:ie.option).id===Wi){if(b==null||b(Ve,He),!W){let we={id:Ve,label:Ve};yr(be=>U([...be,we])),je(x?be=>[...be,we]:we)}}else Z.current.length===1&&Te(),je(pe);Nt()},br=G=>{if(!x)return;let oe=ce.filter(ie=>!A(G,ie));je(oe)},rt=(0,Q.useCallback)((G,J,oe)=>{if(!x)return null;let ie=oe.options.filter(ve=>!Ie(ve).disabled||Ie(ve).selected);return G.length===ie.length&&!D?(0,he.jsx)(Kn,{label:f!=null?f:"",sx:{m:"3px"},isDisabled:d,onDelete:d?void 0:()=>{je([])}}):[...(!u&&(me||ue)&&G.length>1?G.slice(0,$e):G).map((ve,Pe)=>{var we;let Ct=s(y(s(s({},J({index:Pe})),d&&{onDelete:void 0}),{label:N(ve),key:`option-${Pe}`,size:"small"}),!u&&{onClick:be=>be.stopPropagation(),clickable:!1});return(we=S==null?void 0:S(Ct,ve))!=null?we:(0,he.jsx)(Kn,y(s({},Ct),{isDisabled:oe.disabled,maxChipWidth:Ws,reserveForCounter:G.length>1?s1:0,option:ve}))}),...x&&!u&&(me||ue)&&G.length>$e?[_r(G.length-$e,!0)]:[]]},[x,N,je,D,S,f,me,$e,ue]),go=(0,Q.useCallback)((G,J,{selected:oe},ie,pe)=>{var Di;let Ai=G,{onClick:Ue}=Ai,ve=_(Ai,["onClick"]),Pe=N(J),Ct=(0,p1.default)(Pe,Ve,{insideWords:!0,findAllOccurrences:!0}),we=(0,d1.default)(Pe,Ct),be=x?pe:[],Ee=we.map((bt,St)=>(0,he.jsx)(le.Box,{component:"span",sx:s({},bt.highlight&&{fontWeight:"600",display:"inline-block"}),children:bt.text.replaceAll(" ","\xA0")},St)),Ye=Ie(J);return(0,he.jsxs)(le.Box,y(s(y(s({component:"li","data-option-id":Ye.id},ve),{"aria-disabled":!1}),Ye.disabled?{"data-disabled":!0}:{onClick:Ue}),{sx:s({},x&&Ye.id===Zt&&{borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"divider"}),style:ie,children:[x&&Ye.id!==Wi&&(0,he.jsx)(le.Checkbox,{size:"small",style:{marginRight:8},disabled:!!Ye.disabled,checked:Ye.id===Zt&&Z.current.every(bt=>Ie(bt).id===Zt||be.some(St=>Ie(bt).disabled||A(bt,St)))||oe}),(0,he.jsx)(le.Box,{sx:s({overflow:"hidden"},Ye.disabled&&{opacity:.3}),children:x&&Ye.id===Zt?`${m} (${Z.current.length-1<He.length?`${Z.current.length-1} / ${He.length}`:He.length})`:(0,he.jsx)(Gy,{label:(Di=T==null?void 0:T(Ee,J))!=null?Di:Ee,tooltip:Pe})})]}),Ye.id)},[Ve,He,x,N,T,A,m]),Lo=(0,Q.useCallback)(G=>Ao&&u?(0,he.jsx)(le.Box,{ref:K,sx:s({},u?{maxHeight:$s,overflowY:"auto"}:{overflowY:"hidden"}),children:G}):G,[Ao,u]),No=G=>{var J;return(0,he.jsx)(le.TextField,y(s(y(s({},G),{variant:k,error:l,"data-role":"selector",size:"small"}),a&&r?{label:r}:{}),{placeholder:x&&(ce!=null&&ce.length)||!x&&ce?"":O,helperText:E,slotProps:{input:s(s({},G.InputProps),x&&y(s({startAdornment:Lo((J=G.InputProps)==null?void 0:J.startAdornment)},h||{}),{sx:s(s({},(!ce||!ce.length)&&{pt:1}),!u&&{overflow:"hidden",whiteSpace:"nowrap"}),onFocus:()=>{gr(!0)},onBlur:()=>{gr(!1)}})),htmlInput:y(s({},G.inputProps),{"data-role":"input-search"})}}))},_r=(G,J=!1)=>{if(!x)return null;let oe=ce,ie=$e===1?[...oe].slice(1):[...oe].slice(oe.length-G);return(0,he.jsx)(f1,{enterDelay:300,enterNextDelay:300,sx:{[`& .${le.tooltipClasses.tooltip}`]:{pb:"1px"}},title:(0,he.jsxs)(he.Fragment,{children:[ie.slice(0,Us).map(pe=>{var Pe;let Ue=Ie(pe),ve=s({key:`option-${Ue.id}`,label:N(pe),sx:{mb:.5,"&:not(:last-child)":{mr:.5}}},(!d||Ue.disabled)&&{onDelete:()=>br(pe)});return(Pe=S==null?void 0:S(ve,pe))!=null?Pe:(0,he.jsx)(Kn,y(s({},ve),{option:pe,isDisabled:d}))}),ie.length>Us&&(0,he.jsx)(le.Chip,{label:`+ ${ie.length-Us}`,size:"small",sx:{m:"3px"},disabled:d})]}),children:(0,he.jsx)(le.Chip,{label:`+ ${G}`,size:"small",disabled:d,sx:s(s({},J&&{m:"3px"}),d&&{"&.Mui-disabled":{pointerEvents:"auto"}}),onClick:pe=>{u||pe.stopPropagation()},clickable:u})})},Wn=()=>{if(x)return me&&$e===0?-1:$e};return(0,he.jsxs)(le.Box,{ref:z,sx:s({width:"100%",minWidth:0,overflow:"hidden",position:"relative"},I),children:[x&&(0,he.jsx)(le.Box,{ref:$,sx:{position:"absolute",visibility:"hidden",pr:`${d?Gs/2:Gs+l1}px`,boxSizing:"border-box",width:"100%"},children:ce.slice(0,30).map(G=>(0,he.jsx)("span",{"data-measure":"chip",style:{margin:3},children:(0,he.jsx)(Kn,{option:G,label:N(G),onDelete:d?void 0:()=>{},clickable:!1,maxChipWidth:Ws})},N(G)))}),(0,he.jsx)(h1,{value:{renderOption:go,value:ce},children:x?(0,he.jsx)(le.Autocomplete,y(s({},V),{disableListWrap:!0,value:ce,disabled:d,multiple:!0,disableCloseOnSelect:!0,autoHighlight:!0,open:me,inputValue:Ve,onInputChange:(G,J,oe)=>{oe==="input"&&Ne(J)},noOptionsText:F.t("common.noResult"),onOpen:()=>gt(!0),onClose:()=>{gt(!1),Ne("")},getOptionDisabled:G=>!!Ie(G).disabled,getOptionLabel:N,isOptionEqualToValue:A,filterOptions:Cr,limitTags:Wn(),getLimitTagsText:_r,renderValue:rt,renderOption:(G,J,oe)=>[G,J,oe],renderInput:No,onChange:xt,options:w?[...i!=null?i:[]]:He,sx:s({[`& .MuiInputBase-root${u?":not(.Mui-focused)":""}`]:{flexWrap:"nowrap",overflow:"hidden"}},I),slots:{popper:a1,chip:{size:"small"}},slotProps:{listbox:{component:c1,internalListRef:H,onItemsBuilt:R,currentValue:ce,sx:c?{}:{paddingTop:0}},paper:{sx:s({},L&&{minWidth:L})}}})):(0,he.jsx)(le.Autocomplete,y(s({},V),{disableListWrap:!0,value:ce!=null?ce:null,disabled:d,autoHighlight:!0,open:me,inputValue:Ve,onInputChange:(G,J,oe)=>{Ne(J)},noOptionsText:F.t("common.noResult"),onOpen:()=>gt(!0),onClose:()=>{gt(!1),Ne("")},getOptionDisabled:G=>!!Ie(G).disabled,getOptionLabel:N,isOptionEqualToValue:A,filterOptions:Cr,renderOption:(G,J,oe)=>[G,J,oe],renderInput:No,onChange:xt,options:w?[...i!=null?i:[]]:He,slots:{popper:a1,chip:{size:"small"}},slotProps:{listbox:{component:c1,internalListRef:H,onItemsBuilt:R,currentValue:ce},paper:{sx:s({},L&&{minWidth:L})}}}))})]})},ji=$y;var qn=require("react"),qi=require("@mui/material"),Xi=v(require("classnames"));var jy=[{label:"s",size:14},{label:"m",size:20}],g1=e=>{var r;return e?`${((r=jy.find(o=>o.label===e))==null?void 0:r.size)||e}px`:"100%"};var y1=require("react/jsx-runtime"),Yy=n=>{var i=n,{content:e,size:t,color:r}=i,o=_(i,["content","size","color"]);let l=g1(t);return(0,y1.jsx)("svg",y(s({width:l,height:l,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",display:"flex",color:r},o),{children:e}))},j=Yy;var nt=require("react/jsx-runtime"),Ky=e=>(0,nt.jsx)(j,s({content:(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("defs",{children:(0,nt.jsx)("path",{id:"9rj0vadmla",d:"M.784.089l.07.057L10 9.293 19.146.146l.07-.057a.5.5 0 01.638.765L10.707 10l9.147 9.146a.5.5 0 01-.638.765l-.07-.057L10 10.707.854 19.854l-.07.057a.5.5 0 01-.638-.765L9.293 10 .146.854A.5.5 0 01.784.089z"})}),(0,nt.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,nt.jsx)("mask",{id:"r2s1vr2yyb",fill:"#fff",children:(0,nt.jsx)("use",{xlinkHref:"#9rj0vadmla"})}),(0,nt.jsx)("use",{fill:"currentColor",fillRule:"nonzero",xlinkHref:"#9rj0vadmla"}),(0,nt.jsx)("g",{fill:"currentColor",mask:"url(#r2s1vr2yyb)",children:(0,nt.jsx)("path",{d:"M0 0h20v20H0z"})})]})]})},e)),vt=Ky;var js=require("react/jsx-runtime"),Zy=e=>(0,js.jsx)(j,s({content:(0,js.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.24 5.336l-8.87 9.757a.5.5 0 01-.74 0L.76 5.336a.5.5 0 01.37-.836h17.74a.5.5 0 01.37.836z"})},e)),Yi=Zy;var wt=require("react"),C1=v(require("lodash/isEqual"));var Ki=require("react"),x1=(e,t=null)=>{let r=(0,Ki.useRef)(t);return(0,Ki.useEffect)(()=>{r.current=e}),r.current};var Zi=()=>`_${Math.random().toString(36).substr(2,9)}`;var Xy=(e,t)=>{let[r,o]=(0,wt.useState)(!1),[n,i]=(0,wt.useState)(""),[l,a]=(0,wt.useState)([]),[p,c]=(0,wt.useState)([]),[m,f]=(0,wt.useState)(0),d=x1(l!=null?l:[]),u=(0,wt.useRef)(null);return(0,wt.useEffect)(()=>{var h;f((h=u==null?void 0:u.current)==null?void 0:h.clientWidth)},[]),(0,wt.useEffect)(()=>{if(!(0,C1.default)(e,d||[])){let h=e==null?void 0:e.map((g,C)=>y(s({},g),{id:(g==null?void 0:g.id)||C+Zi(),label:(g==null?void 0:g.label)||""}));a(h),c(h)}},[e]),(0,wt.useEffect)(()=>{var h;if(t&&n){let g=t(n,l)||[],C=g==null?void 0:g.map(b=>b==null?void 0:b.id),x=l==null?void 0:l.filter(b=>C.includes(b==null?void 0:b.id)).sort((b,I)=>C.indexOf(b.id)-C.indexOf(I.id));c(x)}else{if(!(l!=null&&l.length))return;if(!(n!=null&&n.length)){c(l);return}if(!(l!=null&&l.length))return;if(!(n!=null&&n.length)){c(l);return}let g=n==null?void 0:n.toUpperCase().split("\\s+"),C=(h=l==null?void 0:l.filter(x=>{var b;return(b=x==null?void 0:x.label)==null?void 0:b.toUpperCase().includes(g)}))==null?void 0:h.sort((x,b)=>{var I,D;return((I=x==null?void 0:x.label)==null?void 0:I.length)-((D=b==null?void 0:b.label)==null?void 0:D.length)});c(C)}},[n]),{inputValue:n,setInputValue:i,isSearching:r,setIsSearching:o,formatedOptions:l,setFormatedOptions:a,filteredOptions:p,setFilteredOptions:c,widthContainer:m,setWidthContainer:f,htmlElRef:u}},b1=Xy;var Ys=require("react/jsx-runtime"),qy=e=>(0,Ys.jsx)(j,s({content:(0,Ys.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.521 13.636a5.121 5.121 0 01-5.124-5.12 5.121 5.121 0 015.124-5.12 5.122 5.122 0 015.124 5.12 5.122 5.122 0 01-5.124 5.12m9.274 3.172l-4.203-4.2a6.476 6.476 0 001.45-4.092A6.519 6.519 0 008.522 2 6.519 6.519 0 002 8.516a6.519 6.519 0 0010.603 5.078l4.205 4.201a.698.698 0 10.987-.987"})},e)),_o=qy;var S1=require("tss-react/mui"),Qy=(0,S1.makeStyles)()(()=>({inputContainer:{display:"flex",alignItems:"center",height:"24px",backgroundColor:"#ebebeb","& input":{border:"0",outline:"0",fontSize:"13px",width:"100%",paddingLeft:"5px","&:focus":{outline:"none !important"}}},searchIcon:{display:"flex",alignItems:"center",marginLeft:"8px",marginRight:"8px"},inputSearch:{position:"relative",display:"flex",width:"100%",height:"16px",marginRight:"8px"},closeIcon:{height:"10px",position:"absolute",right:"3px",top:"3px"}})),v1=Qy;var yo=require("react/jsx-runtime"),Jy=({value:e,setValue:t,onChange:r})=>{let{classes:o}=v1();return(0,yo.jsxs)("div",{className:o.inputContainer,"data-role":"input-search",children:[(0,yo.jsx)("div",{className:o.searchIcon,children:(0,yo.jsx)(_o,{size:12})}),(0,yo.jsxs)("div",{className:o.inputSearch,children:[(0,yo.jsx)("input",{value:e,onChange:r,placeholder:F.t("common.search")}),(e==null?void 0:e.length)>0&&(0,yo.jsx)("div",{className:o.closeIcon,onClick:()=>t(""),children:(0,yo.jsx)(vt,{})})]})]})},w1=Jy;var Be=require("react");var R1=require("react"),Ks=require("react/jsx-runtime"),Zn="MyAutoCompleteSuggestListScrollBarChips",I1=35,T1=32,k1=12;function e6(e,t,r,o,n,i){let l=0,a=0,p=!1;e.onmousedown=f=>{f=f||window.event,f.preventDefault(),p=!0,document.getElementById(Zn).style.cursor="inherit",document.onmouseup=m,document.onmousemove=c};function c(f){f=f||window.event,f.preventDefault();let d=document.getElementById("MyAutoCompleteSuggestListScrollBar").offsetHeight-e.offsetHeight;if(typeof document.getElementById(e.id)=="undefined")return;if(document.getElementById(e.id).offsetTop<0)return r(0),o(0),e.style.marginTop=0;if(l===0&&(l=f.y),p){l=f.y,p=!1;return}let u=-(l-f.y)+Number.parseFloat(e.style.marginTop),h=u<d?u:d;e.style.marginTop=`${Math.max(0,h)}px`;let g=100*Number.parseFloat(e.style.marginTop)/d,C=Number(g*t*i/100);a=r(C),o(C),l=f.y}function m(){n(a),document.onmouseup=null,document.onmousemove=null,document.getElementById(Zn).style.cursor="pointer"}}var t6=({listLength:e,numberOfItemDisplayed:t,changeListData:r,setCurrentPositionYRef:o,setStartIndexListDisplayedRef:n,startIndexListDisplayed:i,suggestListHeight:l})=>{let a=i*100/e,c=t*100/e*Number(t*T1)/100,m=0,f=l-I1,u=Number(t*30)*a/100;return c<k1&&(c=0,m=k1),c+=m,(0,R1.useEffect)(()=>{e6(document.getElementById(Zn),e,r,o,n,T1)},[]),(0,Ks.jsx)("div",{id:"MyAutoCompleteSuggestListScrollBar",className:"MyAutoCompleteSuggestListScrollBar",style:{height:f,marginTop:Number(l*-1)+I1,width:10,borderRadius:40,position:"relative",float:"right",overflowY:"hidden"},children:(0,Ks.jsx)("div",{id:Zn,className:Zn,style:{height:c,marginTop:u,width:10,borderRadius:40,backgroundColor:"rgb(234 235 234)",position:"relative",float:"right",cursor:"pointer"}})})},E1=t6;var N1=require("@mui/material"),P1=v(require("classnames"));var xo=require("react/jsx-runtime"),o6=e=>(0,xo.jsx)(j,s({content:(0,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsx)("defs",{children:(0,xo.jsx)("path",{id:"6i5t1om9ua",d:"M17.996.954a1.103 1.103 0 011.555-.233 1.13 1.13 0 01.23 1.57L7.493 19.047a1.103 1.103 0 01-1.628.173l-5.49-4.897a1.131 1.131 0 01-.097-1.585 1.103 1.103 0 011.568-.099l4.582 4.088L17.996.954z"})}),(0,xo.jsx)("use",{fill:"currentColor",xlinkHref:"#6i5t1om9ua"})]})},e)),Hr=o6;var M1=require("tss-react/mui"),r6=(0,M1.makeStyles)()(e=>({checkbox:{height:"100%",width:"100%",borderRadius:"2px",border:`2px solid ${e.palette.grey[600]}`,boxSizing:"border-box",display:"flex",alignItems:"center","&:hover":{cursor:"pointer"}},checked:{border:`2px solid ${e.palette.primary.main}`,color:"white",backgroundColor:e.palette.primary.main},disabledChecked:{border:`2px solid ${e.palette.grey[400]}`,backgroundColor:e.palette.grey[400],"&:hover":{cursor:"initial"}},disabledNotChecked:{border:`2px solid ${e.palette.grey[400]}`,"&:hover":{cursor:"initial"}}})),A1=r6;var Fo=require("react/jsx-runtime"),n6=({checked:e,size:t,disabled:r,className:o})=>{let{classes:n}=A1(),i=t?`${t}px`:"100%",l=`${o||""} ${n.checkbox} ${e&&n.checked} ${e&&r&&n.disabledChecked} ${!e&&r&&n.disabledNotChecked}`;return(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsx)("div",{style:{height:i,width:i,padding:1},role:"checkbox","aria-checked":e,className:l,children:e&&(0,Fo.jsx)(Hr,{})}),(0,Fo.jsx)("input",{type:"checkbox",checked:e,style:{display:"none"},readOnly:!0})]})},Ur=n6;var D1=require("tss-react/mui"),i6=(0,D1.makeStyles)()(()=>({line:{display:"flex",height:"30px",marginTop:"2px",alignItems:"center",paddingLeft:"8px","&:hover":{cursor:"pointer",transitionDuration:"300ms",backgroundColor:"#ebebeb"}},disabled:{color:"#c3c3c3","&:hover":{cursor:"initial"}},checkboxContainer:{height:"14px",width:"14px"},label:{marginLeft:"8px",overflow:"hidden",textAlign:"left",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",fontSize:"14px"},tooltip:{zIndex:"11000 !important"}})),L1=i6;var Vo=require("react/jsx-runtime"),l6=6.5,s6=({option:e,widthContainer:t,onClick:r})=>{var n;let{classes:o}=L1();return(0,Vo.jsxs)("div",{className:(0,P1.default)(o.line,(e==null?void 0:e.disabled)&&o.disabled),onClick:r,children:[(0,Vo.jsx)("div",{className:o.checkboxContainer,children:(0,Vo.jsx)(Ur,{checked:e.selected,disabled:e==null?void 0:e.disabled,size:14})}),t&&t<((n=e==null?void 0:e.label)==null?void 0:n.length)*l6?(0,Vo.jsx)(N1.Tooltip,{title:e==null?void 0:e.label,placement:"top",enterDelay:900,enterNextDelay:900,classes:{popper:o.tooltip},children:(0,Vo.jsx)("div",{className:o.label,children:e==null?void 0:e.label})}):(0,Vo.jsx)("div",{className:o.label,children:e==null?void 0:e.label})]})},Zs=s6;var B1=require("tss-react/mui"),a6=(0,B1.makeStyles)()(()=>({allOptions:{fontWeight:"bold",marginBottom:"5px",marginTop:"2px"}})),O1=a6;var Sr=require("react/jsx-runtime"),Co=5,c6=({itemHeight:e,list:t,myAutoCompleteInputValue:r,handleClickAll:o,widthContainer:n,onClickLine:i})=>{var Z;let{classes:l}=O1(),[a,p]=(0,Be.useState)(0),[c,m]=(0,Be.useState)([]),f=(0,Be.useRef)(a),d=(0,Be.useRef)(c),u=(0,Be.useRef)(0),h=(0,Be.useRef)(null),[g,C]=(0,Be.useState)(!1),[x,b]=(0,Be.useState)(0),I=(0,Be.useRef)(null),[D,S]=(0,Be.useState)(0),T=(0,Be.useRef)(D),[k,w]=(0,Be.useState)(0),A=(0,Be.useRef)(k),O=t==null?void 0:t.every(R=>R==null?void 0:R.selected),E={label:`${F.t("common.all")} (${t==null?void 0:t.length})`,selected:O,id:-1},L=R=>{A.current=R,w(R)},V=R=>{f.current=R,p(R)},H=R=>{d.current=R,m(R)},M=R=>{R=R||window.event,R.preventDefault&&R.preventDefault(),R.returnValue=!1},z=(R,N)=>{if(!(N!=null&&N.current))return!1;let U=N.current.getBoundingClientRect();return U&&R.clientX>=U.left&&R.clientX<=U.left+U.width&&R.clientY>=U.top&&R.clientY<=U.top+U.height},$=()=>{let R=e*(t.length-5);R>0&&a>R&&V(R)};(0,Be.useEffect)(()=>{let R=N=>{z(N,h)?(N.stopPropagation(),M(N),Number(T.current)>0?(V(Number(T.current)),S(0)):V(f.current+N.deltaY),f.current+N.deltaY<0?(V(0),C(!1)):C(!0)):C(!1)};return document.addEventListener("wheel",R,{passive:!1}),()=>{document.removeEventListener("wheel",R)}},[]);let K=R=>{if(typeof R=="undefined"&&(R=a),R===a){if(I.current){I.current=!1;return}x!==0&&(u.current=Number(R/e)*100/t.length)}else I.current=!0;R===a&&L(Number(R/e));let N,U=Number(R/e);return Number(R/e)+Co<(t==null?void 0:t.length)?N=t.slice(Number(R/e),Number(R/e)+Co):(R===a&&L((t==null?void 0:t.length)-Co<0?0:(t==null?void 0:t.length)-Co),U=(t==null?void 0:t.length)-Co<0?0:(t==null?void 0:t.length)-Co,N=t.slice((t==null?void 0:t.length)-Co<0?0:(t==null?void 0:t.length)-Co,t==null?void 0:t.length)),H(N),U};return(0,Be.useEffect)(()=>{$(),K()},[t,a,r,e]),(0,Be.useEffect)(()=>{var R,N;(R=h==null?void 0:h.current)!=null&&R.offsetHeight&&b((N=h==null?void 0:h.current)==null?void 0:N.offsetHeight)},[(Z=h==null?void 0:h.current)==null?void 0:Z.offsetHeight]),(0,Sr.jsxs)("div",{className:"MyAutoCompleteSuggestList",ref:h,style:{overscrollBehavior:g?"none":null},children:[(0,Sr.jsx)("div",{className:l.allOptions,"data-role":"allOptions",children:(0,Sr.jsx)(Zs,{option:E,onClick:o})}),c.map(R=>(0,Sr.jsx)(Zs,{widthContainer:n,option:R,onClick:()=>{R!=null&&R.disabled||i(R==null?void 0:R.id,!(R!=null&&R.selected))}},R==null?void 0:R.id)),h!=null&&h.current&&c.length===Co?(0,Sr.jsx)(E1,{suggestListHeight:x,listLength:t.length,numberOfItemDisplayed:c.length,changeListData:K,setCurrentPositionYRef:V,startIndexListDisplayed:A.current,setStartIndexListDisplayedRef:L}):null]})},_1=c6;var F1=require("tss-react/mui"),p6=(0,F1.makeStyles)()(()=>({resultsContainer:{boxShadow:"0px 2px 2px 0 rgba(0, 0, 0, 0.1)",padding:"4px",backgroundColor:"#ffffff",zIndex:9},noResult:{textAlign:"center",marginTop:"15px",color:"#9b9b9b",fontSize:"16px",marginBottom:"10px"}})),V1=p6;var Wr=require("react/jsx-runtime"),d6=({inputValue:e,setInputValue:t,filteredOptions:r,widthContainer:o,handleClickAll:n,onClickLine:i})=>{let{classes:l}=V1(),a=p=>{t(p.target.value)};return(0,Wr.jsxs)("div",{className:l.resultsContainer,"data-role":"results",children:[(0,Wr.jsx)(w1,{setValue:t,value:e,onChange:a}),(r==null?void 0:r.length)<=0?(0,Wr.jsxs)("div",{className:l.noResult,children:[" ",F.t("common.noResult")," "]}):(0,Wr.jsx)(_1,{list:r,myAutoCompleteInputValue:e,itemHeight:30,widthContainer:o,handleClickAll:n,onClickLine:i,inputValue:e})]})},z1=d6;var X1=v(require("classnames"));var W1=v(require("classnames"));var H1=require("tss-react/mui"),m6=(0,H1.makeStyles)()(e=>({chips:{display:"inline-flex",flexDirection:"row",alignItems:"center",backgroundColor:e.palette.primary.light,color:e.palette.primary.main,borderRadius:"50px",height:"100%",paddingLeft:"10px",paddingRight:"10px",fontSize:"12px",whiteSpace:"nowrap"},chipDisabled:{color:"#9b9b9b",backgroundColor:"#f5f5f5"},close:{marginLeft:"5px",cursor:"pointer",paddingTop:"3px",paddingBottom:"3px",paddingRight:"2px",paddingLeft:"2px"}})),U1=m6;var Gr=require("react/jsx-runtime"),u6=({text:e="",isClosable:t=!1,isDisabled:r,onUnselectChips:o})=>{let{classes:n}=U1();return(0,Gr.jsxs)("div",{className:(0,W1.default)(n.chips,r&&n.chipDisabled),children:[(0,Gr.jsx)("div",{children:e}),t&&!r&&(0,Gr.jsx)("div",{className:n.close,onClick:o,children:(0,Gr.jsx)(vt,{size:6})})]})},Xn=u6;var j1=require("@mui/material");var G1=require("tss-react/mui"),f6=(0,G1.makeStyles)()(()=>({listChips:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},otherChips:{display:"flex",height:"100%"},chips:{marginRight:"4px",display:"flex",height:"100%"},toolTipsList:{maxHeight:"118px",overflow:"auto",fontWeight:"normal"},lineChips:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),$1=f6;var Xt=require("react/jsx-runtime"),h6=35,g6=7,y6=50,x6=45,C6=30,b6=({options:e=[],widthContainer:t,onUnselectChips:r,isDisabled:o})=>{var c;let{classes:n}=$1(),i=()=>{var d;let m=0,f=t-(o?C6:y6);(e==null?void 0:e.length)>1&&!o&&(f-=x6);for(let u of e){let h=g6*((d=u==null?void 0:u.label)==null?void 0:d.length)+h6,g=f>h;if(f=f-h,g)m++;else break}return{numberChipsDisplayed:m,numberRestDisplay:(e==null?void 0:e.length)-m}},l=(m,f)=>{m.stopPropagation(),r(f)},{numberChipsDisplayed:a,numberRestDisplay:p}=i();return(0,Xt.jsxs)("div",{className:n.listChips,children:[e==null?void 0:e.map((m,f)=>f<a&&(0,Xt.jsx)("div",{className:n.chips,children:(0,Xt.jsx)(Xn,{text:m==null?void 0:m.label,isClosable:!m.disabled,isDisabled:o,onUnselectChips:d=>l(d,m==null?void 0:m.id)})},`chips_${m==null?void 0:m.id}_${f}`)),p>0&&(0,Xt.jsx)(j1.Tooltip,{title:(0,Xt.jsx)("div",{className:n.toolTipsList,children:(c=e==null?void 0:e.slice(a,e==null?void 0:e.length))==null?void 0:c.map((m,f)=>(0,Xt.jsx)("div",{className:n.lineChips,children:m==null?void 0:m.label},f))}),placement:"bottom",children:(0,Xt.jsx)("div",{className:n.otherChips,children:(0,Xt.jsx)(Xn,{text:`+ ${p}`,isClosable:!1,isDisabled:o})})})]})},Y1=b6;var K1=require("tss-react/mui"),S6=(0,K1.makeStyles)()(()=>({selectorContainer:{display:"flex",alignItems:"flex-end"},chipsContainer:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},description:{fontSize:"14px",color:"#000"},search:{color:"#9b9b9b"}})),Z1=S6;var vr=require("react/jsx-runtime"),v6=({isSearching:e,options:t=[],isAllSelected:r,widthContainer:o,onUnselectChips:n,isDisabled:i})=>{let l=(t==null?void 0:t.length)===0,{classes:a}=Z1();return(0,vr.jsxs)("div",{className:a.selectorContainer,children:[l&&(0,vr.jsx)("div",{className:(0,X1.default)(a.description,e&&a.search),children:F.t("common.select")}),r&&!l&&(0,vr.jsx)("div",{className:a.chipsContainer,children:(0,vr.jsx)(Xn,{text:F.t("common.all"),isClosable:!1,isDisabled:i})}),!r&&!l&&(0,vr.jsx)(Y1,{options:t,widthContainer:o,onUnselectChips:n,isDisabled:i})]})},q1=v6;var Q1=require("tss-react/mui"),w6=(0,Q1.makeStyles)()(e=>({autoCompleteContainer:{display:"flex",flexDirection:"column",height:"50px",width:"100%",minWidth:"170px"},label:{fontSize:"12px",color:"#9b9b9b",marginBottom:"4px"},search:{color:e.palette.primary.main},isError:{color:e.palette.warning.main},selector:{display:"flex",height:"24px"},icons:{marginLeft:"auto",display:"flex",flexDirection:"row"},dropDownIcon:{width:"12px",marginLeft:"8px"},rotated:{transform:"rotate(180deg)"},clear:{width:"12px",marginLeft:"auto",cursor:"pointer"},border:{width:"100%",marginTop:"5px",borderBottom:"2px solid #d7d7d7"},isErrorBorder:{borderBottom:`2px solid ${e.palette.warning.main}`},open:{borderBottom:`2px solid ${e.palette.primary.main}`}})),J1=w6;var We=require("react/jsx-runtime"),I6=({options:e=[],customSearch:t,onChange:r=()=>{},isError:o,label:n,isDisplayLabel:i=!0,onIsSearchingChange:l,isDisabled:a,isOptionsMutable:p})=>{var O,E,L;let{classes:c}=J1(),{inputValue:m,setInputValue:f,isSearching:d,setIsSearching:u,formatedOptions:h,setFormatedOptions:g,filteredOptions:C,widthContainer:x,htmlElRef:b}=b1(e,t),I=(0,qn.useRef)(null),D=()=>{u(!1),f("")};(0,qn.useEffect)(()=>{p&&h.forEach((V,H)=>e[H].selected=V.selected)},[h]),(0,qn.useEffect)(()=>{l==null||l(d)},[d]);let S=V=>{V.stopPropagation();let H=[...h];H==null||H.forEach(M=>{M!=null&&M.disabled||(M.selected=!1)}),g(H),r(h==null?void 0:h.filter(M=>M==null?void 0:M.selected))},T=()=>{let V=C==null?void 0:C.every(z=>z==null?void 0:z.selected),H=[...h],M=C==null?void 0:C.map(z=>z==null?void 0:z.id);H==null||H.forEach(z=>{!(z!=null&&z.disabled)&&(M!=null&&M.includes(z==null?void 0:z.id))&&(z.selected=!V)}),g(H),r(h==null?void 0:h.filter(z=>z==null?void 0:z.selected))},k=(V,H)=>{var z,$;let M=[...h];for(let K=0;K<M.length;K++)if(((z=M[K])==null?void 0:z.id)===V&&!(($=M[K])!=null&&$.disabled)){M[K].selected=H;break}g(M),r(h==null?void 0:h.filter(K=>K==null?void 0:K.selected))},w=(O=h==null?void 0:h.filter(V=>(V==null?void 0:V.selected)&&(V==null?void 0:V.value)))==null?void 0:O.map(V=>V.value),A=h==null?void 0:h.filter(V=>V==null?void 0:V.selected);return(0,We.jsxs)("div",{className:c.autoCompleteContainer,ref:b,children:[(0,We.jsx)("input",{type:"hidden",value:w}),(0,We.jsxs)("div",{onClick:a?null:()=>u(!0),ref:I,children:[i&&(0,We.jsx)("div",{"data-role":"label",className:(0,Xi.default)(c.label,d&&c.search,o&&c.isError),children:n||F.t("common.select")}),(0,We.jsxs)("div",{className:c.selector,"data-role":"selector",children:[(0,We.jsx)(q1,{isSearching:d,isAllSelected:h==null?void 0:h.every(V=>V==null?void 0:V.selected),widthContainer:(E=b==null?void 0:b.current)==null?void 0:E.clientWidth,options:A,onUnselectChips:V=>k(V,!1),isDisabled:a,isError:o}),(0,We.jsxs)("div",{className:c.icons,children:[(A==null?void 0:A.length)>0&&!a&&(0,We.jsx)("div",{className:c.clear,onClick:S,"data-role":"clearSelection",children:(0,We.jsx)(vt,{})}),!a&&(0,We.jsx)("div",{className:(0,Xi.default)(c.dropDownIcon,d&&c.rotated),children:(0,We.jsx)(Yi,{})})]})]}),(0,We.jsx)("div",{className:(0,Xi.default)(c.border,d&&c.open,o&&c.isErrorBorder,!o&&a&&c.noBorder)})]}),d&&(0,We.jsx)(qi.ClickAwayListener,{onClickAway:D,children:(0,We.jsx)(qi.Popper,{open:d,anchorEl:I==null?void 0:I.current,placement:"bottom-start",style:{zIndex:1e4,width:(L=b==null?void 0:b.current)==null?void 0:L.clientWidth},children:(0,We.jsx)(z1,{setInputValue:f,inputValue:m,filteredOptions:C,widthContainer:x,handleClickAll:T,onClickLine:k,isSearching:d,htmlElRef:b})})})]})},eu=I6;var zo=require("react"),Qi=require("@mui/material"),Ji=v(require("@mui/material/Autocomplete")),ru=v(require("lodash/omit"));var tu=require("tss-react/mui"),T6=(0,tu.makeStyles)()(()=>({input:{padding:"6px 0px"},chip:{marginRight:6}})),ou=T6;var Qn=require("react/jsx-runtime"),k6=(0,zo.memo)(function({props:t}){let Z=t,{data:r,dataKey:o,columnIndex:n,onChange:i,column:l,isDisabled:a,vtContext:p={},getData:c=()=>{},PROPS_EXCLUDED:m=[],onSend:f=null}=Z,d=_(Z,["data","dataKey","columnIndex","onChange","column","isDisabled","vtContext","getData","PROPS_EXCLUDED","onSend"]),{classes:u}=ou(),{send:h,config:g={}}=p,{selectableRowKey:C="id"}=g,{disableClearable:x=!0,onCreate:b,canCreate:I=!1,multiple:D=!1,renderInput:S=null,filterOptions:T=!0}=l,k=l.options||l.optionList||[],w=(0,zo.useMemo)(()=>typeof k=="function"?k(r):k,[k,r]),A=()=>D?w.filter(R=>{var N;return(N=r[o])==null?void 0:N.includes(R.value)}):w.find(R=>R.value===r[o]),[O,E]=(0,zo.useState)(A()),L=r[o];(0,zo.useEffect)(()=>{L!==O&&E(A())},[L]);let V=r[C],H=R=>{i(R)},M=R=>{b&&b(R,r,N=>{f?f(R,r,N):h("updateLine",{key:o,selectableRowKey:C,keyId:V,data:N})}),E(D?N=>[...N,R]:R)},z=R=>{typeof R=="string"?M(R):R!=null&&R.inputValue?M(R==null?void 0:R.inputValue):H(D?R.map(N=>N==null?void 0:N.value):R==null?void 0:R.value)},$=(0,Ji.createFilterOptions)();return(0,Qn.jsx)(Ji.default,s({size:"small",options:w,getOptionLabel:R=>typeof R=="string"?R:R.inputValue?R.inputValue:R.label,renderInput:S||(R=>(0,Qn.jsx)(Qi.TextField,y(s({variant:"standard"},R),{InputProps:y(s({},R.InputProps),{disableUnderline:!0})}))),renderOption:(R,{label:N,value:U})=>(0,Qn.jsx)("li",y(s({},R),{children:(0,Qn.jsx)(Qi.Typography,{color:O===U?"primary":"initial",children:N})})),filterOptions:T?(R,N)=>{let U=$(R,N);return N.inputValue!==""&&U.length===0&&I&&U.push({inputValue:N.inputValue,label:F.t("autocomplete.createOption",{value:N.inputValue})}),U}:void 0,disabled:a,onChange:(R,N)=>z(N),classes:{inputRoot:u.input},freeSolo:!0,value:O||"",disableClearable:x,multiple:D},(0,ru.default)(d,m)))}),nu=k6;var lu=require("react/jsx-runtime");function R6(t){var e=_(t,[]);return(0,lu.jsx)(nu,{props:s({},e)})}var iu=R6;var su=v(require("react"));var cu=require("react/jsx-runtime");function E6(e){let o=e,{placeholder:t=F.t("common.select")}=o,r=_(o,["placeholder"]);return(0,cu.jsx)(ji,y(s({multiple:!0},r),{placeholder:t}))}var au=su.default.memo(E6);var pu=require("tss-react/mui"),M6=(0,pu.makeStyles)()((e,{size:t})=>({loader:{width:`${t}px`,height:`${t}px`,border:`3px solid ${e.palette.primary.light}`,borderRadius:"50%",display:"block",transform:"rotate(45deg)",boxSizing:"border-box","&:before":{content:'""',position:"absolute",boxSizing:"border-box",inset:"-3px",borderRadius:"50%",border:`3px solid ${e.palette.primary.main}`,animation:"prixClipFix 1.5s infinite linear"},"@keyframes prixClipFix":{"0%":{clipPath:"polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)"},"25%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)"},"50%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)"},"75%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)"},"100%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)"}}}})),du=M6;var uu=require("react/jsx-runtime"),A6=({size:e})=>{let{classes:t}=du({size:e||12});return(0,uu.jsx)("span",{className:t.loader})},mu=A6;var fu=require("tss-react/mui"),D6=(0,fu.makeStyles)()(e=>({loaderContainer:{width:"214px",height:"47px",borderRadius:"2px",boxShadow:"1px 5px 7px 0 rgba(0, 0, 0, 0.08)",display:"flex",backgroundColor:e.palette.common.white},content:{display:"flex",gap:"17px",alignItems:"center",flexDirection:"row",marginLeft:"15px"},text:{fontSize:"14px",color:e.palette.primary.main,fontFamily:"basier_circleregular"}})),hu=D6;var $r=require("react/jsx-runtime"),L6=()=>{let{classes:e}=hu();return(0,$r.jsx)("div",{className:e.loaderContainer,children:(0,$r.jsxs)("div",{className:e.content,children:[(0,$r.jsx)(mu,{size:12}),(0,$r.jsx)("div",{className:e.text,children:F.t("common.loading2")})]})})},el=L6;var Cu=require("@mui/material");var gu=require("tss-react/mui"),N6=(0,gu.makeStyles)()((e,{color:t,size:r,fontSize:o})=>({container:{position:"relative",display:"inline-flex"},badge:{backgroundColor:t||e.palette.primary.main,height:`${r}px`,width:`${r}px`,fontSize:o||"0.6rem",borderRadius:"100%",color:"white",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:"0",top:"0",transform:"scale(1) translate(42%, -42%)",overflow:"hidden"}})),yu=N6;var ol=require("react/jsx-runtime"),P6=e=>{let{color:t,content:r,size:o=14,children:n,fontSize:i,onClick:l}=e,{classes:a}=yu({color:t,size:o,fontSize:i});return(0,ol.jsxs)("div",{className:a.container,children:[(0,ol.jsx)("div",{className:a.badge,onClick:l,"data-role":"badge",children:r}),n]})},tl=P6;var wr=require("react/jsx-runtime"),B6=e=>(0,wr.jsx)(j,s({content:(0,wr.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,wr.jsxs)("g",{fill:"currentColor",fillRule:"nonzero",children:[(0,wr.jsx)("rect",{width:"20",height:"2.5",x:"0",y:"8.75",rx:"1"}),(0,wr.jsx)("path",{d:"M1 8.75h18a1 1 0 011 1v.5a1 1 0 01-1 1H1a1 1 0 01-1-1v-.5a1 1 0 011-1z",transform:"rotate(90 10 10)"})]})})},e)),jr=B6;var Xs=require("react/jsx-runtime"),xu="+",O6="+99",_6=e=>{let{counter:t,onClick:r,color:o}=e,n=(0,Cu.useTheme)(),i=t,l="9px";return!t||!Number.isInteger(t)||t<=0?i=xu:t>99&&(i=O6,l="0.4rem"),(0,Xs.jsx)(tl,{content:i===xu?(0,Xs.jsx)(jr,{size:7,color:"white"}):i,size:16,color:o||n.palette.primary.main,fontSize:l,onClick:r,children:e.children})},bu=_6;var Su=require("@mui/material");var qs=require("react/jsx-runtime"),F6=({onToggle:e,isExpanded:t})=>(0,qs.jsx)(Su.IconButton,{onClick:e,size:"small",sx:{transition:"transform 0.3s ease",transform:t?"rotate(0deg)":"rotate(-90deg)"},children:(0,qs.jsx)(Vr,{})}),Ho=F6;var Me=require("react"),Go=require("@mui/material"),Qu=require("@mui/x-tree-view-pro"),Ju=v(require("@myunisoft/mui-symbols-material-w300-esm/AddRounded"));var rl=require("react");var vu=v(require("@myunisoft/mui-symbols-material-w300-esm/CalendarViewMonthRounded")),Au=require("react/jsx-runtime"),Qs=e=>{let t=[];for(let r of e)r.sections&&r.sections.length>0&&(t.push(r.id),t=t.concat(Qs(r.sections)));return t},Js=e=>{let t=[];for(let r of e)t.push(r),r.sections&&r.sections.length>0&&(t=t.concat(Js(r.sections)));return t},wu=e=>!e.parentId,Iu=e=>!0,Tu=e=>e.visible!==!1,ku=e=>e.sections||void 0,Ru=e=>e.id,Eu=e=>e.title,Mu=e=>(!e.sections||e.sections.length===0)&&e.title.toUpperCase().startsWith("A")?(0,Au.jsx)(vu.default,{sx:{width:20,height:20}}):null;var Du=e=>{let t=(0,rl.useMemo)(()=>{let o=new Map;for(let n of Js(e||[]))o.set(n.id,n);return o},[e]),r=(0,rl.useCallback)(o=>{var n;return(n=t.get(o))!=null?n:null},[t]);return{sectionsMap:t,getSectionById:r}};var Bt=require("react");var Lu=({apiRef:e,getSectionById:t,onSectionCreate:r,scrollToBottom:o})=>{let[n,i]=(0,Bt.useState)(null),[l,a]=(0,Bt.useState)(null);(0,Bt.useEffect)(()=>{var u,h,g;let d=e.current;!n||!d||(n.parentId!==null?(u=d.setItemExpansion)==null||u.call(d,{itemId:n.parentId,shouldBeExpanded:!0}):o==null||o(),(h=d.focusItem)==null||h.call(d,null,n.id),(g=d.setEditedItem)==null||g.call(d,n.id))},[n]),(0,Bt.useEffect)(()=>{var u,h;let d=e.current;!l||!d||((u=d.setItemSelection)==null||u.call(d,{itemId:l,shouldBeSelected:!0}),(h=d.focusItem)==null||h.call(d,null,l),a(null))},[l]);let p=(0,Bt.useCallback)((d=null)=>{var C;let u=`temp-${Date.now()}`,h=d?t(d):null,g=(C=h==null?void 0:h.visible)!=null?C:!0;i({id:u,parentId:d,parentVisible:g})},[t]),c=(0,Bt.useCallback)(d=>ee(void 0,null,function*(){if(n){if(d.trim().length>0){let u=yield r==null?void 0:r(n.parentId,d.trim());u&&a(u)}i(null)}}),[n,r]),m=(0,Bt.useCallback)(()=>{i(null)},[]),f=(0,Bt.useCallback)(d=>(n==null?void 0:n.id)===d,[n]);return{temporarySection:n,create:p,validate:c,cancel:m,isTemporary:f}};var Ke=require("@mui/material"),Se=require("react/jsx-runtime"),Uo=({indent:e=0})=>(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",alignItems:"center",gap:1,ml:e*3},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"circular",sx:{width:20,height:20,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",sx:{width:"100%",height:12}})]}),Nu=()=>(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",flexDirection:"column",gap:1,padding:1,overflow:"auto",minHeight:0,flex:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"rectangular",width:"100%",height:32}),(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"rectangular",sx:{width:40,height:20,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",width:"100%",height:12})]}),(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"rectangular",sx:{width:40,height:20,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",width:"100%",height:12})]}),(0,Se.jsx)(Uo,{indent:0}),(0,Se.jsx)(Uo,{indent:1}),(0,Se.jsx)(Uo,{indent:2}),(0,Se.jsx)(Uo,{indent:3}),(0,Se.jsx)(Uo,{indent:0}),(0,Se.jsx)(Uo,{indent:1}),(0,Se.jsx)(Uo,{indent:2}),(0,Se.jsx)(Uo,{indent:3})]}),Pu=()=>(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2,p:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"circular",sx:{width:40,height:40,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",sx:{width:"60%",height:12}})]});var Jn=require("@mui/material"),Bu=v(require("@myunisoft/mui-symbols-material-w300-esm/NewsstandRounded")),qt=require("react/jsx-runtime"),V6=({noSectionsPlaceholder:e})=>(0,qt.jsxs)(Jn.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,height:"100%",color:"text.secondary",textAlign:"center",px:2},children:[(0,qt.jsx)(Bu.default,{sx:{width:40,height:40}}),(0,qt.jsx)(Jn.Box,{children:e!=null?e:(0,qt.jsxs)(qt.Fragment,{children:["Commencez la cr\xE9ation de votre annexe en",(0,qt.jsx)("br",{}),(0,qt.jsx)(Jn.Link,{sx:{cursor:"pointer"},children:"cr\xE9ant une section"})]})})]}),Ou=V6;var Wo=require("react"),Kr=require("@mui/x-tree-view-pro");var Gu=require("react"),al=require("@mui/material"),$u=require("@mui/x-tree-view-pro");var bo=require("react"),_u=()=>{let e=(0,bo.useRef)(null),[t,r]=(0,bo.useState)(null),[o,n]=(0,bo.useState)(null),i=(0,bo.useRef)(null),l=d=>{d.stopPropagation(),d.preventDefault();let u=d.currentTarget,h=u.getBoundingClientRect();t?a():(r(u),n({top:h.bottom,left:h.left}))},a=()=>{r(null),n(null)},p=(0,bo.useCallback)(d=>{i.current=d,a()},[]),c=(0,bo.useCallback)(()=>{var d;(d=i.current)==null||d.call(i),i.current=null},[]);return{containerRef:e,menuAnchorEl:t,menuPosition:o,handleMenuClick:l,handleMenuClose:a,scheduleMenuAction:p,onMenuExited:c,createMouseMoveHandler:(d,u)=>h=>{if(!e.current||!u||t)return;let g=h.target;if(!(g instanceof Element))return;let x=g.closest('[role="treeitem"]')===e.current.querySelector('[role="treeitem"]');d!==x&&u(x)},createMouseLeaveHandler:d=>()=>{!d||t||d(!1)}}};var nl=require("@mui/material"),Fu=v(require("@myunisoft/mui-symbols-material-w300-esm/DragIndicatorRounded"));var Yr=require("react/jsx-runtime"),il=e=>{let p=e,{ownerState:t,children:r,sx:o,isDraggable:n,isVisible:i,isHovered:l}=p,a=_(p,["ownerState","children","sx","isDraggable","isVisible","isHovered"]);return(0,Yr.jsxs)(nl.Box,y(s({},a),{sx:y(s({},o),{display:"flex",alignItems:"center",gap:0,minWidth:2,opacity:i?1:.5}),children:[n&&(0,Yr.jsx)(nl.Box,{className:"tree-hover-button",sx:{display:"flex",alignItems:"center",cursor:"grab"},children:(0,Yr.jsx)(Fu.default,{})}),(0,Yr.jsx)(nl.Box,{sx:{minWidth:"24px",display:"flex",alignItems:"center"},children:r})]}))};il.displayName="IconContainerSlot";var Qt=require("react");var Vu=require("react/jsx-runtime"),ll=(0,Qt.forwardRef)((e,t)=>{let x=e,{ownerState:r,itemId:o,isTemporary:n,onTemporarySectionValidation:i,onTemporarySectionCancel:l,onItemLabelChange:a,apiRef:p,onEditingEnd:c,onKeyDown:m,onBlur:f}=x,d=_(x,["ownerState","itemId","isTemporary","onTemporarySectionValidation","onTemporarySectionCancel","onItemLabelChange","apiRef","onEditingEnd","onKeyDown","onBlur"]),u=(0,Qt.useRef)(!1);(0,Qt.useEffect)(()=>{u.current=!1},[o]);let h=(0,Qt.useCallback)(()=>{setTimeout(()=>{var b,I;(I=(b=p==null?void 0:p.current)==null?void 0:b.setEditedItem)==null||I.call(b,null)},0)},[p]),g=(0,Qt.useCallback)(b=>{if(b.key==="Escape"){if(u.current=!0,n){b.preventDefault(),b.stopPropagation(),l==null||l(),c==null||c(),h();return}c==null||c(),m==null||m(b);return}if(b.key==="Enter"){let I=b.currentTarget.value;if(I.trim().length===0){b.preventDefault(),b.stopPropagation();return}if(n){u.current=!0,i==null||i(I),c==null||c(),h();return}u.current=!0,c==null||c()}m==null||m(b)},[n,l,i,m,h,c]),C=(0,Qt.useCallback)(b=>{var D,S;if(u.current)return;let I=b.currentTarget.value;if(n){I.trim().length>0?(u.current=!0,i==null||i(I),c==null||c(),h()):(u.current=!0,l==null||l(),c==null||c(),h());return}u.current=!0,c==null||c(),(S=(D=p==null?void 0:p.current)==null?void 0:D.setEditedItem)==null||S.call(D,null)},[n,l,i,h,c,p]);return(0,Vu.jsx)("input",y(s({},d),{ref:t,onKeyDown:g,onBlurCapture:C,style:{fontSize:"14px",padding:"4px 8px",width:"100%",boxSizing:"border-box",border:"1px solid #ccc",borderRadius:"4px",outline:"none",marginRight:8}}))});ll.displayName="LabelInputSlot";var So=require("react"),Ot=require("@mui/material"),Hu=v(require("@myunisoft/mui-symbols-material-w300-esm/MoreVertRounded")),Uu=v(require("@myunisoft/mui-symbols-material-w300-esm/VisibilityOffRounded")),Wu=v(require("@myunisoft/mui-symbols-material-w300-esm/VisibilityRounded"));var pt=require("react/jsx-runtime"),sl=e=>{let k=e,{ownerState:t,editable:r,children:o,sx:n,customIcon:i,hasMenu:l,itemId:a,isVisible:p,menuAnchorEl:c,onItemVisibilityChange:m,onMenuClick:f,hiddenSectionTooltip:d,visibleIconTooltip:u,hiddenIconTooltip:h}=k,g=_(k,["ownerState","editable","children","sx","customIcon","hasMenu","itemId","isVisible","menuAnchorEl","onItemVisibilityChange","onMenuClick","hiddenSectionTooltip","visibleIconTooltip","hiddenIconTooltip"]),C=(0,So.useRef)(null),[x,b]=(0,So.useState)(!1),[I,D]=(0,So.useState)(!1),[S,T]=(0,So.useState)(!1);return(0,So.useEffect)(()=>{let w=()=>T(!0),A=()=>T(!1);return document.addEventListener("dragstart",w),document.addEventListener("dragend",A),()=>{document.removeEventListener("dragstart",w),document.removeEventListener("dragend",A)}},[]),(0,So.useEffect)(()=>{let w=()=>{C.current&&b(C.current.scrollWidth>C.current.clientWidth)};return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[o]),(0,pt.jsxs)(Ot.Box,y(s({},g),{sx:y(s({},n),{display:"flex",alignItems:"center",flex:1,minWidth:0,position:"relative",fontSize:"14px"}),children:[i&&(0,pt.jsx)(Ot.Box,{sx:{mr:1,display:"flex",alignItems:"center",opacity:p?1:.5},children:i}),(0,pt.jsx)(Ot.Tooltip,{title:x?o:!p&&d?d:"",arrow:!0,open:S?!1:I,onOpen:()=>D(!0),onClose:()=>D(!1),slotProps:zu,children:(0,pt.jsx)(Ot.Box,{ref:C,component:"span",sx:{flexGrow:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})}),(0,pt.jsxs)(Ot.Box,{sx:{display:"flex",alignItems:"center",ml:1,gap:.5},children:[l&&(0,pt.jsx)(Ot.IconButton,{size:"small",onClick:f,onMouseDown:w=>w.stopPropagation(),className:c?"tree-hover-button-visible":"tree-hover-button",sx:{color:"inherit"},"aria-label":"menu button",children:(0,pt.jsx)(Hu.default,{})}),(0,pt.jsx)(Ot.Tooltip,{title:p?u!=null?u:"":h!=null?h:"",arrow:!0,slotProps:zu,children:(0,pt.jsx)(Ot.IconButton,{size:"small",onClick:()=>{m==null||m(a,!p)},onMouseDown:w=>w.stopPropagation(),className:p?"tree-hover-button":"tree-hover-button-visible",sx:{color:"inherit"},children:p?(0,pt.jsx)(Wu.default,{}):(0,pt.jsx)(Uu.default,{})})})]})]}))};sl.displayName="LabelSlot";var zu={tooltip:{sx:{boxShadow:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)"}}};var _t=require("react/jsx-runtime"),ju=e=>{var q,ge;let Y=e,{apiRef:t,isSectionItem:r,isVisibleItem:o,getIconItem:n,hasItemMenu:i,getMenuItems:l,isItemReorderable:a,onItemVisibilityChange:p,hiddenSectionTooltip:c,visibleIconTooltip:m,hiddenIconTooltip:f,isTemporaryItem:d,onTemporarySectionValidation:u,onTemporarySectionCancel:h,onItemLabelChange:g,onEditingChange:C,itemId:x,slotProps:b}=Y,I=_(Y,["apiRef","isSectionItem","isVisibleItem","getIconItem","hasItemMenu","getMenuItems","isItemReorderable","onItemVisibilityChange","hiddenSectionTooltip","visibleIconTooltip","hiddenIconTooltip","isTemporaryItem","onTemporarySectionValidation","onTemporarySectionCancel","onItemLabelChange","onEditingChange","itemId","slotProps"]),[D,S]=(0,Gu.useState)(!1),{containerRef:T,menuAnchorEl:k,menuPosition:w,handleMenuClick:A,handleMenuClose:O,scheduleMenuAction:E,onMenuExited:L,createMouseMoveHandler:V,createMouseLeaveHandler:H}=_u(),M=(ge=(q=t.current)==null?void 0:q.getItem)==null?void 0:ge.call(q,x),z=M?r(M):!1,$=M?o(M):!1,K=M?n(M):null,X=M?i(M):!1,Z=M&&X?l(M,E):[],R=a(x),N=d(x),U=Z&&Z.length>0,re=V(D,S),de=H(S),Re=()=>{C==null||C(x)},W=()=>{C==null||C(null)};return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(al.Box,{ref:T,onMouseMove:re,onMouseLeave:de,sx:{"& .MuiTreeItem-content":{minHeight:"40px",height:"24px",paddingTop:"2px",paddingBottom:"2px",paddingLeft:ne=>`calc(var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth) + ${ne.spacing(1)})`,"& .tree-hover-button":{opacity:0,visibility:"hidden",pointerEvents:"none"},"& .tree-hover-button-visible, &:hover .tree-hover-button":{opacity:1,visibility:"visible",pointerEvents:"auto"}},"& .MuiTreeItem-dragAndDropOverlay":{height:"100%",left:0,right:0,width:"100%"}},children:(0,_t.jsx)($u.TreeItem,y(s({},I),{itemId:x,slotProps:b,slots:{labelInput:ne=>(0,_t.jsx)(ll,y(s({},ne),{itemId:x,isTemporary:N,onTemporarySectionValidation:u,onTemporarySectionCancel:h,onItemLabelChange:g,apiRef:t,onFocus:Re,onEditingEnd:W})),iconContainer:ne=>(0,_t.jsx)(il,y(s({},ne),{isDraggable:R,isHovered:D,isVisible:$})),label:Ve=>{var Ne=Ve,{sx:ne}=Ne,ce=_(Ne,["sx"]);return(0,_t.jsx)(sl,y(s({},ce),{customIcon:K,hasMenu:U,isVisible:$,isHovered:D,menuAnchorEl:k,itemId:x,onMenuClick:A,onItemVisibilityChange:p,hiddenSectionTooltip:c,visibleIconTooltip:m,hiddenIconTooltip:f,sx:y(s({},ne),{fontWeight:z?"bold":"inherit",color:$?"inherit":"text.secondary"})}))}}}))}),U&&(0,_t.jsx)(al.Menu,{open:!!k,anchorReference:"anchorPosition",anchorPosition:w||void 0,onClose:O,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:8,sx:{minWidth:200,mt:"4px",boxShadow:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",border:"1px solid rgba(0,0,0,0.12)"}},transition:{onExited:L}},onClick:ne=>{ne.stopPropagation()},children:Z})]})};var ea=require("react/jsx-runtime"),z6=e=>{let{apiRef:t,items:r,getItemId:o,getItemLabel:n,getItemChildren:i,isItemReorderable:l,canMoveItemToNewPosition:a,onItemPositionChange:p,checkboxSelection:c,multiSelect:m,hasItemMenu:f,getMenuItems:d,isSectionItem:u,getIconItem:h,isItemEditable:g,isVisibleItem:C,onItemLabelChange:x,onItemVisibilityChange:b,hiddenSectionTooltip:I,visibleIconTooltip:D,hiddenIconTooltip:S,temporaryItem:T,isTemporaryItem:k,onTemporarySectionValidation:w,onTemporarySectionCancel:A,defaultExpandedItems:O}=e,[E,L]=(0,Wo.useState)(null),V=(0,Wo.useCallback)($=>k($)||E===$?!1:l($),[l,k,E]),H=(0,Wo.useCallback)($=>{L($)},[]),M=(0,Wo.useMemo)(()=>{if(!T)return r;let $={id:T.id,title:"",visible:T.parentVisible,parentId:T.parentId,sections:null};if(T.parentId===null)return[...r,$];let K=(X,Z)=>X.map(R=>{let N=o(R),U=i(R);if(N===Z){let re=U!=null?U:[];return y(s({},R),{sections:[...re,$]})}return U&&U.length>0?y(s({},R),{sections:K(U,Z)}):R});return K(r,T.parentId)},[r,T,o,i]),z=(0,Wo.useCallback)($=>(0,ea.jsx)(ju,y(s({},$),{apiRef:t,isSectionItem:u,isVisibleItem:C,getIconItem:h,hasItemMenu:f,getMenuItems:d,isItemReorderable:V,onItemVisibilityChange:b,hiddenSectionTooltip:I,visibleIconTooltip:D,hiddenIconTooltip:S,isTemporaryItem:k,onTemporarySectionValidation:w,onTemporarySectionCancel:A,onItemLabelChange:x,onEditingChange:H})),[t,u,C,h,f,d,V,b,I,D,S,k,w,A,x,H]);return(0,ea.jsx)(Kr.RichTreeViewPro,{apiRef:t,items:M,expansionTrigger:"iconContainer",getItemId:o,getItemLabel:n,getItemChildren:i,itemsReordering:!0,isItemReorderable:V,canMoveItemToNewPosition:a,onItemPositionChange:p,isItemEditable:g,onItemLabelChange:x,checkboxSelection:c,multiSelect:m,defaultExpandedItems:O,slots:{item:z},sx:{[`& .${Kr.treeItemClasses.dragAndDropOverlay}::before`]:{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"},[`& .${Kr.treeItemClasses.dragAndDropOverlay}::after`]:{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"},[`& .${Kr.treeItemClasses.dragAndDropOverlay}`]:{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important","&::before":{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"},"&::after":{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"}}}})},Yu=z6;var Jt=require("@mui/material"),Ku=v(require("@myunisoft/mui-symbols-material-w300-esm/AddFilledRounded")),Zu=v(require("@myunisoft/mui-symbols-material-w300-esm/DeleteRounded")),Xu=v(require("@myunisoft/mui-symbols-material-w300-esm/EditRounded")),It=require("react/jsx-runtime"),qu=(e,t,r,o)=>{let{onRename:n,onDelete:i,onCreateSubsection:l}=t,{canRename:a,canDelete:p,canCreateSubsection:c}=o;return[(0,It.jsxs)(Jt.MenuItem,{disabled:!a,onClick:()=>r(()=>n(e.id)),children:[(0,It.jsx)(Jt.Box,{sx:{mr:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,It.jsx)(Xu.default,{sx:{width:20,height:20}})}),"Renommer"]},"rename"),(0,It.jsxs)(Jt.MenuItem,{disabled:!p,sx:{color:p?"error.main":void 0},onClick:()=>r(()=>i(e.id)),children:[(0,It.jsx)(Jt.Box,{sx:{mr:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,It.jsx)(Zu.default,{sx:{width:20,height:20}})}),"Supprimer"]},"delete"),(0,It.jsx)(Jt.Divider,{},"divider"),(0,It.jsxs)(Jt.MenuItem,{disabled:!c,onClick:()=>r(()=>l(e.id)),children:[(0,It.jsx)(Jt.Box,{sx:{mr:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,It.jsx)(Ku.default,{sx:{width:20,height:20}})}),"Cr\xE9er une sous-section"]},"create-subsection")]};var Ze=require("react/jsx-runtime"),ei=()=>!0,H6=({sections:e,onSectionOrderChange:t,onSectionTitleChange:r,onSectionDelete:o,onSectionVisibilityChange:n,onSectionCreate:i,noSectionsPlaceholder:l,isLoading:a=!1,getSectionRenamePermission:p=ei,getSectionDeletePermission:c=ei,getSectionReorderPermission:m=ei,getSectionCreatePermission:f=ei,getSectionVisibilityPermission:d=ei,hiddenSectionTooltip:u,visibleIconTooltip:h,hiddenIconTooltip:g})=>{let[C,x]=(0,Me.useState)("content"),b=(0,Qu.useTreeViewApiRef)(),I=(0,Me.useRef)(null),{getSectionById:D}=Du(e),S=(0,Me.useCallback)(()=>{setTimeout(()=>{var N;(N=I.current)==null||N.scrollTo({top:I.current.scrollHeight,behavior:"smooth"})},0)},[]),{temporarySection:T,create:k,validate:w,cancel:A,isTemporary:O}=Lu({apiRef:b,getSectionById:D,onSectionCreate:i,scrollToBottom:S}),E=(0,Me.useCallback)(N=>{t==null||t(N)},[t]),L=(0,Me.useCallback)((N,U)=>{r==null||r(N,U)},[r]),V=(0,Me.useCallback)(N=>{o==null||o(N)},[o]),H=(0,Me.useCallback)((N,U)=>{n==null||n(N,U)},[n]),M=(0,Me.useCallback)(N=>{var U,re,de,Re;(re=(U=b.current)==null?void 0:U.focusItem)==null||re.call(U,null,N),(Re=(de=b.current)==null?void 0:de.setEditedItem)==null||Re.call(de,N)},[]),z=(0,Me.useCallback)((N,U)=>qu(N,{onRename:M,onDelete:V,onCreateSubsection:k},U,{canRename:p(N),canDelete:c(N),canCreateSubsection:f(N)}),[M,V,k,p,c,f]),$=(0,Me.useCallback)(N=>p(N),[p]),K=(0,Me.useCallback)(N=>{let U=D(N);return U?m(U):!1},[D,m]),X=(0,Me.useCallback)(N=>{let U=D(N.itemId);return!(!U||!m(U))},[D,m]),Z=(0,Me.useCallback)((N,U)=>{let re=D(N);re&&d(re)&&H(N,U)},[D,d,H]);(0,Me.useEffect)(()=>{a&&x(null)},[a]);let R=(0,Me.useMemo)(()=>Qs(e||[]),[e]);return(0,Ze.jsxs)(Go.Box,{sx:U6,children:[(0,Ze.jsxs)(Go.Box,{sx:W6,children:[a&&(0,Ze.jsx)(Nu,{}),!a&&(e==null?void 0:e.length)&&(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsx)(Go.Box,{ref:I,sx:G6,children:(0,Ze.jsx)(Yu,{apiRef:b,items:e||[],getItemId:Ru,getItemLabel:Eu,getItemChildren:ku,hasItemMenu:Iu,getMenuItems:z,isItemEditable:$,isSectionItem:wu,getIconItem:Mu,isItemReorderable:K,canMoveItemToNewPosition:X,onItemPositionChange:E,onItemLabelChange:L,isVisibleItem:Tu,onItemVisibilityChange:Z,hiddenSectionTooltip:u,visibleIconTooltip:h,hiddenIconTooltip:g,temporaryItem:T,isTemporaryItem:O,onTemporarySectionValidation:w,onTemporarySectionCancel:A,defaultExpandedItems:R})}),(0,Ze.jsx)(Go.Box,{sx:$6,children:(0,Ze.jsx)(Go.Button,{size:"small",variant:"outlined",startIcon:(0,Ze.jsx)(Ju.default,{}),onClick:()=>k(),children:F.t("documentComposer.createSection")})})]}),!a&&!(e!=null&&e.length)&&(0,Ze.jsx)(Ou,{noSectionsPlaceholder:l})]}),a&&(0,Ze.jsx)(Pu,{}),!a&&(0,Ze.jsx)(Go.Box,{children:C})]})},ef=H6,U6={display:"grid",gridTemplateColumns:"430px 1fr",gap:2,height:"100%",minHeight:0},W6={display:"flex",flexDirection:"column",minHeight:0},G6={flex:1,overflow:"auto",minHeight:0},$6={height:48,display:"flex",justifyContent:"center",alignItems:"center",borderTop:1,borderColor:"divider"};var Ft=require("react/jsx-runtime"),j6=e=>(0,Ft.jsx)(j,s({content:(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)("defs",{children:(0,Ft.jsx)("path",{id:"oacgutx6wa",d:"M9.5 12.78l-.21-3.82V8h1.44v.96l-.26 3.82H9.5zm.5 2.31c-.53 0-.81-.31-.81-.82 0-.49.28-.8.81-.8.52 0 .81.31.81.8 0 .51-.29.82-.81.82z"})}),(0,Ft.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Ft.jsx)("path",{fill:"currentColor",d:"M10.894 1.789l8.382 16.764A1 1 0 0118.382 20H1.618a1 1 0 01-.894-1.447L9.106 1.789a1 1 0 011.788 0z"}),(0,Ft.jsx)("use",{fill:"#FFF",xlinkHref:"#oacgutx6wa"})]})]})},e)),tf=j6;var vo=require("react/jsx-runtime"),Y6=e=>(0,vo.jsx)(j,s({content:(0,vo.jsxs)(vo.Fragment,{children:[(0,vo.jsx)("defs",{children:(0,vo.jsx)("path",{id:"archive",d:"M5.7 8c.2 0 .4 0 .6.2l1.4 1.1.6.2h3.4c.2 0 .4 0 .6-.2l1.4-1.1.6-.2H19c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1H1a1 1 0 0 1-1-1V9c0-.6.4-1 1-1h4.7Zm0 1H1v8h18V9h-4.7L13 10.1a2 2 0 0 1-1 .4H8.3a2 2 0 0 1-1-.3l-.2-.1L5.7 9ZM18 4c.8 0 1.4.6 1.5 1.4v2.1h-1v-2c0-.2-.2-.4-.4-.5H2c-.2 0-.5.2-.5.4v2.1h-1v-2c0-.8.6-1.4 1.4-1.5H18ZM17 0c.8 0 1.4.6 1.5 1.4v2.1h-1v-2c0-.2-.2-.4-.4-.5H3c-.2 0-.5.2-.5.4v2.1h-1v-2C1.5.7 2.1.1 2.9 0H17Z"})}),(0,vo.jsx)("use",{fill:"currentColor",xlinkHref:"#archive"})]})},e)),of=Y6;var $o=require("react/jsx-runtime"),K6=e=>(0,$o.jsx)(j,s({content:(0,$o.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,$o.jsx)("path",{fillRule:"nonzero",d:"M18.718 1c.446 0 .607.044.77.127a.886.886 0 01.378.359c.088.155.134.308.134.732v16.564c0 .424-.046.577-.134.732a.887.887 0 01-.378.36c-.163.082-.324.126-.77.126H1.282c-.446 0-.607-.044-.77-.127a.887.887 0 01-.378-.359C.046 19.359 0 19.206 0 18.782V2.218c0-.424.046-.577.134-.732a.887.887 0 01.378-.36C.675 1.045.836 1 1.282 1h17.436zm.274 1.005L18.919 2H1.08l-.074.005-.005.07v16.849l.005.068.074.006.201.002 17.64-.002.072-.006.006-.068.002-.19-.002-16.66-.006-.07z"}),(0,$o.jsx)("path",{d:"M5.641 6h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19C6.663 7.976 6.582 8 6.36 8h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C5.024 7.663 5 7.582 5 7.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19C5.337 6.024 5.418 6 5.64 6zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C5.024 11.663 5 11.582 5 11.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C5.024 15.663 5 15.582 5 15.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm4-8h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C9.024 7.663 9 7.582 9 7.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19C9.337 6.024 9.418 6 9.64 6zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C9.024 11.663 9 11.582 9 11.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C9.024 15.663 9 15.582 9 15.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm4-8h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C13.024 7.663 13 7.582 13 7.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189c-.043-.081-.066-.162-.066-.385v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189c-.043-.081-.066-.162-.066-.385v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066z"}),(0,$o.jsx)("rect",{width:"1",height:"2",x:"5",rx:"0.5"}),(0,$o.jsx)("rect",{width:"1",height:"2",x:"14",rx:"0.5"})]})},e)),rf=K6;var eo=require("react/jsx-runtime"),Z6=e=>(0,eo.jsx)(j,s({content:(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("mask",{id:"u61g1wksra",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",children:(0,eo.jsx)("path",{fill:"currentColor",d:"M0 0h32v32H0z"})}),(0,eo.jsx)("g",{mask:"url(#u61g1wksra)",children:(0,eo.jsx)("path",{d:"m15 16.287-1.777 1.757a.923.923 0 0 1-.684.276c-.274 0-.51-.099-.708-.297a.91.91 0 0 1-.284-.702.976.976 0 0 1 .284-.703l3.325-3.326c.241-.24.523-.361.844-.361.321 0 .603.12.844.361l3.325 3.326a.998.998 0 0 1 .294.691.908.908 0 0 1-.294.715.954.954 0 0 1-.692.28.996.996 0 0 1-.713-.273L17 16.287v7.303c0 .102.043.196.128.282.086.085.18.128.282.128h7.257c.933 0 1.722-.322 2.366-.967.645-.644.967-1.433.967-2.366 0-.934-.322-1.723-.967-2.367-.644-.644-1.433-.967-2.366-.967h-2v-2.666c0-1.845-.65-3.417-1.95-4.717C19.417 8.65 17.844 8 16 8c-1.844 0-3.417.65-4.717 1.95-1.3 1.3-1.95 2.872-1.95 4.717h-.692c-1.263 0-2.353.455-3.268 1.366-.915.911-1.373 2.011-1.373 3.3 0 1.29.456 2.39 1.367 3.3.91.911 2.01 1.367 3.3 1.367H11c.283 0 .52.096.713.288.191.191.287.429.287.712a.967.967 0 0 1-.287.713A.969.969 0 0 1 11 26H8.667c-1.843 0-3.415-.64-4.716-1.918C2.651 22.804 2 21.242 2 19.395c0-1.656.533-3.113 1.599-4.37 1.065-1.258 2.387-2.003 3.965-2.235.427-1.993 1.43-3.623 3.007-4.89C12.148 6.633 13.957 6 16 6c2.414 0 4.462.84 6.144 2.523 1.682 1.681 2.523 3.73 2.523 6.144v.666h.41c1.405.11 2.577.675 3.515 1.695.939 1.02 1.408 2.234 1.408 3.639 0 1.487-.513 2.747-1.538 3.782C27.436 25.483 26.179 26 24.692 26H17.41a2.327 2.327 0 0 1-1.71-.7 2.327 2.327 0 0 1-.7-1.71v-7.303z",fill:"currentColor"})})]}),viewBox:"0 0 32 32"},e)),cl=Z6;var Zr=require("react/jsx-runtime"),X6=e=>(0,Zr.jsx)(j,s({content:(0,Zr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Zr.jsx)("path",{d:"M16 5H4c-.3 0-.5.2-.5.5s.2.5.5.5h12c.3 0 .5-.2.5-.5 0-.1-.1-.3-.2-.4 0 0-.1-.1-.3-.1zm0 4H4c-.3 0-.5.2-.5.5s.2.5.5.5h12c.3 0 .5-.2.5-.5 0-.1-.1-.3-.2-.4 0 0-.1-.1-.3-.1z"}),(0,Zr.jsx)("path",{fillRule:"nonzero",d:"M19 0a1 1 0 011 1v13a1 1 0 01-1 1H9.144a.3.3 0 00-.234.113L5.402 19.89a.3.3 0 01-.528-.129l-.826-4.52A.3.3 0 003.754 15H1a1 1 0 01-1-1V1a1 1 0 011-1h18zm0 1H1v13h2.754a1.3 1.3 0 011.243.918l.032.127.53 2.654 2.57-3.211a1.3 1.3 0 01.868-.48L9.144 14H19V1z"})]})},e)),nf=X6;var qe=require("react/jsx-runtime"),q6=e=>(0,qe.jsx)(j,s({content:(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)("circle",{cx:"16",cy:"14",r:"3",fill:"transparent",stroke:"currentColor"}),(0,qe.jsx)("rect",{width:"7",height:"1",x:"3.5",y:"9.5",fill:"currentColor",rx:"0.5"}),(0,qe.jsx)("rect",{width:"7",height:"1",x:"3.5",y:"5.5",fill:"currentColor",rx:"0.5"}),(0,qe.jsx)("rect",{width:"7",height:"1",x:"3.5",y:"14",fill:"currentColor",rx:"0.5"}),(0,qe.jsx)("circle",{cx:"16",cy:"6",r:"3",fill:"transparent",stroke:"currentColor"}),(0,qe.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",d:"M15 5l2 2M17 5l-2 2"}),(0,qe.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.5 1.5h-14v17h14v-1.035a3.538 3.538 0 001 0V18.5a1 1 0 01-1 1h-14a1 1 0 01-1-1v-17a1 1 0 011-1h14a1 1 0 011 1v1.035a3.53 3.53 0 00-1 0V1.5zm0 7.965v1.07a3.538 3.538 0 011 0v-1.07a3.53 3.53 0 01-1 0z",clipRule:"evenodd"}),(0,qe.jsx)("path",{fill:"currentColor",d:"M15.244 15.46a.5.5 0 010-.708l1.935-1.935a.5.5 0 11.707.707l-1.935 1.935a.5.5 0 01-.707 0z"}),(0,qe.jsx)("path",{fill:"currentColor",d:"M15.854 15.563a.5.5 0 01-.708 0l-1.021-1.022a.5.5 0 01.707-.707l1.022 1.022a.5.5 0 010 .707z"})]})},e)),lf=q6;var Xr=require("react/jsx-runtime"),Q6=e=>(0,Xr.jsx)(j,s({content:(0,Xr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Xr.jsx)("path",{d:"M19.004 10.335v5.203c0 1.415-1.335 2.564-2.746 2.564H3.708a2.567 2.567 0 01-2.564-2.564V10.25a.57.57 0 00-.572-.572.57.57 0 00-.572.572v5.288a3.712 3.712 0 003.708 3.708h12.55c2.047 0 3.742-1.665 3.742-3.708v-5.203c0-.314-.182-.585-.5-.585s-.496.267-.496.585z"}),(0,Xr.jsx)("path",{d:"M9.808 14.712c.11.11.259.17.403.17a.558.558 0 00.402-.17l3.636-3.636a.57.57 0 000-.81.57.57 0 00-.81 0l-2.656 2.662V1.322A.57.57 0 0010.21.75a.57.57 0 00-.572.572v11.606l-2.661-2.661a.57.57 0 00-.81 0 .57.57 0 000 .81l3.64 3.635z"})]})},e)),sf=Q6;var qr=require("react/jsx-runtime"),J6=e=>(0,qr.jsx)(j,s({content:(0,qr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,qr.jsx)("path",{d:"M17.4 0c.9 0 1.6.7 1.6 1.6v11.6c0 .8-.7 1.5-1.6 1.5H5.8c-.9 0-1.6-.7-1.6-1.5V1.6C4.2.7 5 0 5.8 0Zm0 1H5.8c-.3 0-.5.2-.5.5v11.7c0 .2.2.4.4.5h11.7c.3 0 .5-.2.5-.4V1.6c0-.3-.1-.5-.4-.5Zm0 0"}),(0,qr.jsx)("path",{d:"M3.2 4.2v1h-2v.1l-.1.1v11.4c0 .6.4 1 .9 1H2l10.6.1c.7 0 1-.1 1-.5v-1.6h1v1.6c0 1-.6 1.5-1.9 1.5H2.1C1 19 .1 18.1 0 17V5.8l.1-.9c.2-.4.6-.6 1-.7h.2Zm0 0"})]})},e)),af=J6;var Qr=require("react/jsx-runtime"),e8=e=>(0,Qr.jsx)(j,s({content:(0,Qr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Qr.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.12821 2.60093C7.8874 2.50785 7.61631 2.50005 6.8144 2.50005H6C5.04306 2.50005 4.37565 2.50111 3.87208 2.56882C3.3829 2.63459 3.12385 2.75488 2.93934 2.93939C2.75483 3.1239 2.63453 3.38295 2.56877 3.87213C2.50106 4.3757 2.5 5.04311 2.5 6.00005V11.0001H1.5L1.5 5.96347C1.49999 5.05174 1.49998 4.31686 1.57768 3.73888C1.65836 3.13881 1.83096 2.63356 2.23223 2.23228C2.63351 1.83101 3.13876 1.65841 3.73883 1.57773C4.31681 1.50003 5.05169 1.50004 5.96342 1.50005L6.8144 1.50005C6.84434 1.50005 6.87389 1.50004 6.90305 1.50003C7.58121 1.49972 8.05236 1.49951 8.48874 1.66818C8.92511 1.83684 9.27364 2.15387 9.77531 2.6102C9.79688 2.62982 9.81874 2.6497 9.8409 2.66984L10.8893 3.62263L10.8928 3.62573C11.4828 4.16188 11.6874 4.3375 11.9266 4.43054C12.1659 4.52358 12.4354 4.53238 13.2326 4.53559L15.0547 4.54295C15.963 4.5466 16.6952 4.54954 17.271 4.62921C17.8689 4.71192 18.372 4.88573 18.7713 5.28662C19.1706 5.68752 19.3424 6.19137 19.4227 6.78958C19.5 7.3657 19.5 8.09794 19.5 9.00626V14.0366C19.5 14.9484 19.5 15.6832 19.4223 16.2612C19.3416 16.8613 19.169 17.3665 18.7678 17.7678C18.3665 18.1691 17.8612 18.3417 17.2612 18.4224C16.6832 18.5001 15.9483 18.5001 15.0366 18.5001H9V17.5001H15C15.9569 17.5001 16.6244 17.499 17.1279 17.4313C17.6171 17.3655 17.8762 17.2452 18.0607 17.0607C18.2452 16.8762 18.3655 16.6172 18.4312 16.128C18.4989 15.6244 18.5 14.957 18.5 14V9.04276C18.5 8.08932 18.4989 7.42445 18.4316 6.92262C18.3661 6.43516 18.2465 6.1767 18.0628 5.9923C17.8791 5.80791 17.6212 5.68717 17.134 5.61977C16.6324 5.55038 15.9676 5.54664 15.0141 5.54279L13.2286 5.53559C13.1988 5.53547 13.1694 5.53536 13.1404 5.53526C12.4662 5.53284 11.9978 5.53116 11.5642 5.36256C11.1307 5.19396 10.7842 4.87878 10.2854 4.42512C10.2651 4.40664 10.2445 4.38794 10.2237 4.369L10.2202 4.3659L9.16834 3.40989C8.57489 2.87056 8.36903 2.69401 8.12821 2.60093Z",fill:"#222222"}),(0,Qr.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.3536 11.6464C10.5488 11.8417 10.5488 12.1583 10.3536 12.3536L5.06066 17.6464C4.47487 18.2322 3.52513 18.2322 2.93934 17.6464L0.646447 15.3536C0.451184 15.1583 0.451184 14.8417 0.646447 14.6464C0.841709 14.4512 1.15829 14.4512 1.35355 14.6464L3.64645 16.9393C3.84171 17.1346 4.15829 17.1346 4.35355 16.9393L9.64645 11.6464C9.84171 11.4512 10.1583 11.4512 10.3536 11.6464Z",fill:"#0BD1D1"})]})},e)),cf=e8;var Jr=require("react/jsx-runtime"),t8=e=>(0,Jr.jsx)(j,s({content:(0,Jr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Jr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50584 3.06766C5.7012 3.26282 5.70136 3.5794 5.50619 3.77476L1.70693 7.57783L5.5074 11.3783C5.70266 11.5736 5.70266 11.8901 5.5074 12.0854C5.31214 12.2807 4.99555 12.2807 4.80029 12.0854L0.646447 7.93156C0.451253 7.73636 0.451174 7.41992 0.64627 7.22463L4.79873 3.06801C4.9939 2.87265 5.31048 2.87249 5.50584 3.06766Z",fill:"currentColor"}),(0,Jr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 7.57812C0.5 7.30198 0.723858 7.07812 1 7.07812H14.8462C16.3186 7.07812 17.5118 7.47877 18.3289 8.36398C19.1391 9.24164 19.5 10.5105 19.5 12.0781C19.5 13.6457 19.1391 14.9146 18.3289 15.7923C17.5118 16.6775 16.3186 17.0781 14.8462 17.0781H7.92308C7.64693 17.0781 7.42308 16.8543 7.42308 16.5781C7.42308 16.302 7.64693 16.0781 7.92308 16.0781H14.8462C16.143 16.0781 17.0266 15.7288 17.5941 15.114C18.1686 14.4916 18.5 13.5105 18.5 12.0781C18.5 10.6457 18.1686 9.66461 17.5941 9.04227C17.0266 8.42748 16.143 8.07812 14.8462 8.07812H1C0.723858 8.07812 0.5 7.85427 0.5 7.57812Z",fill:"currentColor"})]})},e)),pf=t8;var Ir=require("react/jsx-runtime"),o8=e=>(0,Ir.jsx)(j,s({content:(0,Ir.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Ir.jsx)("path",{fillRule:"nonzero",d:"M18.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v17.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h17.436zm.274 1.007l-.073-.005H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.002-17.638-.006-.074z"}),(0,Ir.jsx)("circle",{cx:"10",cy:"5.5",r:"1"}),(0,Ir.jsx)("path",{d:"M10 7a.5.5 0 01.5.5v7a.5.5 0 11-1 0v-7A.5.5 0 0110 7z"})]})},e)),df=o8;var ta=require("react/jsx-runtime"),r8=e=>(0,ta.jsx)(j,s({content:(0,ta.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.845 0c.861 0 1.082.734 1.129.96l.006 18.012c0 .622-.517 1.008-.998 1.008H.998c-.617 0-.998-.523-.998-1.008V1.007C0 .385.518 0 .998 0zm.158.977H.978v18.025h18.025V.977zm-3.245 13.706v.978h-11.5v-.978h11.5zm0-3.407v.978h-11.5v-.978h11.5zm0-3.407v.978h-11.5v-.978h11.5zm0-3.408v.978h-11.5v-.978h11.5z"})},e)),mf=r8;var Tr=require("react/jsx-runtime"),n8=e=>(0,Tr.jsx)(j,s({content:(0,Tr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",transform:"translate(8)",children:[(0,Tr.jsx)("circle",{cx:"2",cy:"2",r:"2"}),(0,Tr.jsx)("circle",{cx:"2",cy:"10",r:"2"}),(0,Tr.jsx)("circle",{cx:"2",cy:"18",r:"2"})]})},e)),en=n8;var it=require("react/jsx-runtime"),i8=e=>(0,it.jsx)(j,s({content:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("defs",{children:(0,it.jsx)("path",{id:"73qebg572a",d:"M15 3.562C14.875 1.388 13.25-.242 11.125.03 9.25.165 7.875 1.796 7.75 3.698v9.374c0 1.358 1 2.58 2.375 2.58s2.375-1.222 2.375-2.58V6.143c0-.408-.25-.68-.625-.68s-.625.272-.625.544v6.929c0 .679-.5 1.358-1.125 1.358S9 13.751 9 12.936V3.562c.125-1.495 1.375-2.581 2.75-2.446C13 1.252 13.875 2.34 14 3.562v11.14c0 2.31-1.75 4.211-3.875 4.211S6.25 17.011 6.25 14.702V3.834c0-.408-.25-.68-.625-.68S5 3.426 5 3.698v10.868C5 17.555 7.25 20 10 20s5-2.445 5-5.434V3.562z"})}),(0,it.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,it.jsx)("mask",{id:"3co1ycm7eb",fill:"#fff",children:(0,it.jsx)("use",{xlinkHref:"#73qebg572a"})}),(0,it.jsx)("use",{fill:"currentColor",xlinkHref:"#73qebg572a"}),(0,it.jsx)("g",{fill:"currentColor",mask:"url(#3co1ycm7eb)",children:(0,it.jsx)("path",{d:"M0 0h20v20H0z"})})]})]})},e)),pl=i8;var wo=require("react/jsx-runtime"),l8=e=>(0,wo.jsx)(j,s({content:(0,wo.jsxs)(wo.Fragment,{children:[(0,wo.jsx)("defs",{children:(0,wo.jsx)("path",{id:"plus",d:"M20 9H11V0h-2v9H0v2h9V20h2V11H20z"})}),(0,wo.jsx)("use",{fill:"currentColor",xlinkHref:"#plus"})]})},e)),uf=l8;var tn=require("react/jsx-runtime"),s8=e=>(0,tn.jsx)(j,s({content:(0,tn.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,tn.jsx)("path",{d:"M15.6 9.4c.2 0 .4-.2.4-.4V3.9h-5.2c-.2 0-.4.1-.4.4 0 .2.2.4.4.4h3.7L8.2 11l-.2.3c0 .2 0 .3.2.4.1.1.3.2.6 0l6.4-6.4V9c-.1.3.1.4.4.4Z"}),(0,tn.jsx)("path",{d:"M19 .3H5c-.3 0-.4.2-.4.5v3.9h-4c-.3 0-.4.1-.4.4v14c0 .3.1.5.4.5h14c.3 0 .5-.2.5-.4v-4H19c.2 0 .4-.1.4-.4V.8c.1-.3 0-.5-.3-.5Zm-4.8 18.5H1.1V5.6h3.5v9.2c0 .3.1.4.4.4h9.2v3.6Zm4.4-4.4H5.4V1.2h13.2v13.2Z",fillRule:"nonzero"})]})},e)),ff=s8;var dl=require("react/jsx-runtime"),a8=e=>(0,dl.jsx)(j,s({content:(0,dl.jsx)("g",{fill:"currentColor",fillRule:"evenodd",children:(0,dl.jsx)("path",{d:"M15 0c.7 0 1.2.5 1.2 1.2v3.7h2c1 0 1.8.8 1.8 1.8V14c0 1-.8 1.7-1.8 1.7h-2v3.1c0 .7-.5 1.2-1.2 1.2H5c-.7 0-1.2-.5-1.2-1.2v-3h-2c-1 0-1.8-.9-1.8-1.8V6.7c0-1 .8-1.8 1.8-1.8h2V1.2C3.8.5 4.3 0 5 0Zm.2 10.8H4.8v8l.2.2h10s.2 0 .2-.2v-8Zm-2.3 5.9c.3 0 .5.2.5.5 0 .2-.2.5-.5.5H7.1a.5.5 0 0 1-.6-.5c0-.3.3-.5.6-.5Zm0-2.3c.3 0 .5.2.5.5s-.2.5-.5.5H7.1a.5.5 0 0 1-.6-.5c0-.3.3-.5.6-.5Zm5.3-8.5H1.8c-.4 0-.8.3-.8.8V14c0 .4.4.7.8.7h2v-4.4c0-.3.2-.5.5-.5h11.4c.3 0 .5.2.5.5v4.4h2c.4 0 .8-.3.8-.7V6.7c0-.5-.4-.8-.8-.8ZM12.9 12c.3 0 .5.3.5.5 0 .3-.2.5-.5.5H7.1a.5.5 0 0 1-.6-.5c0-.2.3-.5.6-.5ZM2.7 7.5c.2-.2.5-.2.7 0l.2.3c0 .2 0 .3-.2.4a.5.5 0 0 1-.7 0 .5.5 0 0 1 0-.7ZM15 1H5s-.2 0-.2.2v3.7h10.4V1.2L15 1Z"})})},e)),hf=a8;var on=require("react/jsx-runtime"),c8=e=>(0,on.jsx)(j,s({content:(0,on.jsxs)("g",{fill:"currentColor",children:[(0,on.jsx)("path",{d:"M14.272 3.585l-.55.836C11.72 3.105 9.127 2.996 6.99 4.136a6.99 6.99 0 00-2.88 2.917c-1.066 2.063-.999 4.516.174 6.458l.134.214-.835.55c-1.501-2.278-1.631-5.223-.361-7.681a7.989 7.989 0 013.298-3.34c2.459-1.311 5.443-1.187 7.753.331zm2.145 2.14c1.973 2.987 1.547 7.018-1.064 9.629-2.528 2.528-6.437 2.983-9.408 1.19l-.21-.131.544-.84c2.6 1.689 6.114 1.327 8.367-.926 2.217-2.217 2.626-5.598 1.067-8.165l-.13-.206.834-.552z"}),(0,on.jsx)("path",{d:"M14.825 3.732a.511.511 0 01-.212.72l-.071.03-.075.02-1.565.284a.389.389 0 01-.445-.285.339.339 0 01.213-.4l.064-.017 1.324-.241-.667-1.17a.341.341 0 01.087-.445l.055-.034a.389.389 0 01.467.102l.038.055.787 1.381zM5.173 16.22a.511.511 0 01.212-.721l.071-.03.076-.019 1.564-.284c.2-.037.399.091.445.285a.339.339 0 01-.213.4l-.064.017-1.324.24.667 1.17a.34.34 0 01-.086.446l-.056.034A.389.389 0 016 17.655l-.038-.054-.788-1.382z"})]})},e)),gf=c8;var ml=require("react/jsx-runtime"),p8=e=>(0,ml.jsx)(j,s({content:(0,ml.jsx)("g",{fill:"currentColor",children:(0,ml.jsx)("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"})})},e)),yf=p8;var kr=require("react/jsx-runtime"),d8=e=>(0,kr.jsx)(j,s({content:(0,kr.jsxs)("g",{fill:"currentColor",children:[(0,kr.jsx)("path",{d:"M13.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v5.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H6.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378C5.046 7.325 5 7.164 5 6.718V1.282c0-.446.046-.607.134-.77a.909.909 0 01.378-.378C5.675.046 5.836 0 6.282 0h7.436zm.274 1.007l-.073-.005H6.081l-.074.005-.005.074v5.838l.005.073.074.006.2.002 7.638-.002.073-.006.006-.073.002-.2-.002-5.638-.006-.074zM14.718 11c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v6.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H5.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77v-6.436c0-.446.046-.607.134-.77a.909.909 0 01.378-.378c.163-.088.324-.134.77-.134h9.436zm.274 1.007l-.073-.005H5.081l-.074.005-.005.074v6.838l.005.073.074.006.2.002 9.638-.002.073-.006.006-.073.002-.2-.002-6.638-.006-.074z"}),(0,kr.jsx)("path",{d:"M15.825.032a.87.87 0 01.272.113l.086.06.103.088.15.145L19.56 3.56l.146.15.088.103.06.085a.87.87 0 01.113.273c.011.05.02.097.024.164l.007.167L20 18.718c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h14.212l.167.008c.067.005.114.013.164.024zm-.244.971l-.033-.001H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.004-14.305-.023-.026-3.392-3.385z"}),(0,kr.jsx)("path",{d:"M12.359 2c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v2.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189.59.59 0 01-.064-.285L11 2.641c0-.223.023-.304.067-.385a.454.454 0 01.189-.19.59.59 0 01.285-.064L12.359 2zm.137.503l-.031-.002-.962.002-.003.074.003 2.919.138.004.855-.004.004-.137-.004-2.856z"})]})},e)),ul=d8;var Vt=require("react/jsx-runtime"),m8=e=>(0,Vt.jsx)(j,s({content:(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)("rect",{width:"20",height:"20",fill:"currentColor",rx:"10"}),(0,Vt.jsx)("mask",{id:"mask0_1887_3226",style:{maskType:"alpha"},width:"16",height:"16",x:"2",y:"2",maskUnits:"userSpaceOnUse",children:(0,Vt.jsx)("path",{fill:"currentColor",d:"M2 2H18V18H2z"})}),(0,Vt.jsx)("g",{mask:"url(#mask0_1887_3226)",children:(0,Vt.jsx)("path",{fill:"#fff",d:"M6.667 11v4.333c0 .142-.048.26-.144.357a.484.484 0 01-.357.143.483.483 0 01-.356-.143.484.484 0 01-.143-.357v-9.73c0-.171.057-.314.173-.43A.583.583 0 016.27 5h4.295c.143 0 .27.045.382.134a.58.58 0 01.21.348l.174.851h3.066c.171 0 .314.058.43.173a.579.579 0 01.173.427v4.8c0 .17-.058.313-.173.428a.584.584 0 01-.43.172h-2.962a.593.593 0 01-.382-.134.58.58 0 01-.21-.348L10.668 11H6.667z"})})]})},e)),xf=m8;var rn=require("react/jsx-runtime"),u8=e=>(0,rn.jsx)(j,s({content:(0,rn.jsxs)("g",{fill:"currentColor",fillRule:"nonzero",children:[(0,rn.jsx)("path",{d:"M10.268 0a2 2 0 0 1 1.98 1.718l.09.63c.358.108.705.242 1.039.397l.793-.595a2 2 0 0 1 2.615.186l.38.379a2 2 0 0 1 .185 2.615l-.457.607c.318.538.574 1.116.76 1.725l.629.09A2 2 0 0 1 20 9.732v.536a2 2 0 0 1-1.718 1.98l-.63.09a7.957 7.957 0 0 1-.76 1.725l.458.607a2 2 0 0 1-.068 2.487l-.117.128-.38.38a2 2 0 0 1-2.47.283l-.145-.098-.793-.595c-.334.155-.681.289-1.039.398l-.09.629a2 2 0 0 1-1.824 1.712l-.156.006h-.536a2 2 0 0 1-1.952-1.565l-.028-.153-.09-.629a7.944 7.944 0 0 1-1.039-.398l-.793.595a2 2 0 0 1-2.487-.068l-.128-.117-.38-.38a2 2 0 0 1-.283-2.47l.098-.145.457-.607a7.957 7.957 0 0 1-.76-1.726l-.629-.09A2 2 0 0 1 0 10.268v-.535a2 2 0 0 1 1.718-1.98l.63-.09a7.957 7.957 0 0 1 .76-1.725L2.65 5.33a2 2 0 0 1 .186-2.615l.379-.38A2 2 0 0 1 5.83 2.15l.793.595c.335-.155.682-.289 1.04-.398l.09-.629A2 2 0 0 1 9.732 0h.535zm0 1h-.536a1 1 0 0 0-.968.748l-.022.11-.179 1.26-.609.185a6.94 6.94 0 0 0-.611.219l-.297.13-.543.253-1.274-.955a1 1 0 0 0-1.215.011l-.092.082-.38.379a1 1 0 0 0-.16 1.204l.068.103.858 1.141-.34.576c-.224.379-.412.778-.56 1.193l-.104.314-.186.608-1.259.18a1 1 0 0 0-.853.877L1 9.732v.536a1 1 0 0 0 .748.968l.11.022 1.26.179.185.609c.13.422.298.83.504 1.22l.161.288.34.576-.833 1.106-.074.107a1 1 0 0 0 .059 1.141l.083.094.348.35.096.089a1 1 0 0 0 1.138.102l.105-.07 1.273-.954.543.253c.196.092.396.174.6.247l.308.102.61.185.172 1.22.02.116a1 1 0 0 0 .86.775l.116.007h.498l.117-.003a1 1 0 0 0 .888-.743l.023-.114.18-1.258.608-.186a6.94 6.94 0 0 0 .611-.218l.297-.13.543-.253 1.239.93.107.074a1 1 0 0 0 1.141-.059l.094-.083.35-.348.089-.096a1 1 0 0 0 .102-1.137l-.068-.105-.859-1.141.34-.576c.224-.379.412-.779.56-1.193l.104-.315.186-.607 1.259-.18a1 1 0 0 0 .853-.877l.006-.114v-.536a1 1 0 0 0-.748-.968l-.112-.022-1.258-.18-.186-.608a6.95 6.95 0 0 0-.503-1.22l-.161-.288-.34-.576.858-1.14a1 1 0 0 0-.011-1.216l-.082-.092-.379-.38a1 1 0 0 0-1.205-.16l-.103.069-1.273.954-.543-.253a6.948 6.948 0 0 0-.6-.246l-.308-.102-.607-.186-.18-1.259a1 1 0 0 0-.877-.853L10.268 1z"}),(0,rn.jsx)("path",{d:"M10 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"})]})},e)),fl=u8;var Io=require("react/jsx-runtime"),f8=e=>(0,Io.jsx)(j,s({content:(0,Io.jsxs)(Io.Fragment,{children:[(0,Io.jsx)("defs",{children:(0,Io.jsx)("path",{fillRule:"evenodd",id:"split",d:"M.8 8.3h17.5V1.7H.8v6.6Zm18-7.5H.4C.2.8 0 1 0 1.2v7.5c0 .3.2.5.4.5h18.3c.3 0 .5-.2.5-.5V1.2c0-.2-.2-.4-.4-.4ZM.8 19.2h17.5v-6.7H.8v6.7Zm-.4.8h18.3c.3 0 .5-.2.5-.4V12c0-.2-.2-.4-.4-.4H.4c-.2 0-.4.2-.4.4v7.5c0 .2.2.4.4.4Z"})}),(0,Io.jsx)("use",{fill:"currentColor",xlinkHref:"#split"})]})},e)),Cf=f8;var to=require("react/jsx-runtime"),h8=e=>(0,to.jsx)(j,s({content:(0,to.jsxs)(to.Fragment,{children:[(0,to.jsx)("mask",{id:"fmhusd4g4a",fill:"#fff",maskUnits:"userSpaceOnUse",x:"0",y:"0",children:(0,to.jsx)("path",{d:"M0 0h20v20H0z"})}),(0,to.jsx)("g",{mask:"url(#fmhusd4g4a)",fill:"none",children:(0,to.jsx)("path",{d:"M10.39 11.433c-.123 0-.243-.016-.359-.048a1.81 1.81 0 0 1-.345-.137L2.885 7.631a.724.724 0 0 1-.295-.288.8.8 0 0 1-.09-.377.8.8 0 0 1 .09-.376.724.724 0 0 1 .295-.289l6.8-3.617c.115-.058.23-.104.346-.136a1.335 1.335 0 0 1 .716 0c.117.032.232.078.346.136l6.81 3.617a.725.725 0 0 1 .294.289.8.8 0 0 1 .09.376.8.8 0 0 1-.09.377.725.725 0 0 1-.295.288l-6.81 3.617a1.81 1.81 0 0 1-.345.137 1.334 1.334 0 0 1-.358.048zm0-1.226 6.143-3.24-6.144-3.241-6.136 3.24 6.136 3.24zm0 3.253 6.67-3.53c.032-.02.146-.038.339-.056a.595.595 0 0 1 .569.609.64.64 0 0 1-.076.312.59.59 0 0 1-.25.232l-6.55 3.475c-.113.058-.229.104-.345.136a1.338 1.338 0 0 1-.716 0 1.816 1.816 0 0 1-.345-.136l-6.542-3.475a.618.618 0 0 1-.253-.232.615.615 0 0 1-.08-.313.602.602 0 0 1 .577-.609.467.467 0 0 1 .17 0c.054.01.11.029.17.057l6.661 3.53zm0 3.253 6.67-3.53c.032-.02.146-.038.339-.056a.595.595 0 0 1 .569.609.64.64 0 0 1-.076.312.59.59 0 0 1-.25.232l-6.55 3.475c-.113.059-.229.104-.345.136a1.335 1.335 0 0 1-.716 0 1.81 1.81 0 0 1-.345-.136L3.144 14.28a.617.617 0 0 1-.253-.232.615.615 0 0 1-.08-.312.603.603 0 0 1 .577-.609.467.467 0 0 1 .17-.001.7.7 0 0 1 .17.057l6.661 3.53z",fill:"currentColor"})})]})},e)),bf=h8;var Tt=require("react/jsx-runtime"),g8=e=>(0,Tt.jsx)(j,s({content:(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsx)("path",{id:"a",d:"M0 0h19.2v19.2H0z"})}),(0,Tt.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Tt.jsx)("mask",{id:"b",fill:"#fff",children:(0,Tt.jsx)("use",{xlinkHref:"#a"})}),(0,Tt.jsx)("path",{d:"M.9 8.3h7.4V.9H.9v7.4ZM8.7 0H.5C.2 0 0 .2 0 .5v8.2c0 .3.2.5.5.5h8.2c.3 0 .5-.2.5-.5V.5C9.2.2 9 0 8.7 0ZM10.9 18.3h7.4v-7.4h-7.4v7.4Zm7.8.9c.3 0 .5-.2.5-.5v-8.2c0-.3-.2-.5-.5-.5h-8.2c-.3 0-.5.2-.5.5v8.2c0 .3.2.5.5.5h8.2ZM13.7 0H12c-.3 0-.5.2-.5.5s.2.5.5.5h1.8a3 3 0 0 1 3 3v2.3l-.8-.5a.6.6 0 0 0-.3-.1l-.4.1v.7L16.8 8c.2.2.5.2.7 0l1.6-1.5v-.7c-.2-.2-.6-.2-.8 0l-.6.6V3.9a4 4 0 0 0-4-3.9M5.3 19.2H7c.3 0 .5-.2.5-.5 0-.2-.2-.4-.5-.4H5.3a2.8 2.8 0 0 1-2.9-2.7v-2.3l.7.5c.2.2.5.2.6 0 .2-.2.2-.4 0-.6l-1.4-1.4a.5.5 0 0 0-.7 0L0 13.2v.6c.2.1.5.2.7 0l.7-.5v2.3c0 2 1.7 3.6 3.8 3.6",fill:"currentColor",mask:"url(#b)"})]})]})},e)),Sf=g8;var nn=require("react/jsx-runtime"),y8=e=>(0,nn.jsx)(j,s({content:(0,nn.jsxs)("g",{fillRule:"evenodd",children:[(0,nn.jsx)("path",{fillRule:"nonzero",d:"M18.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v17.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h17.436zm.274 1.007l-.073-.005H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.002-17.638-.006-.074z"}),(0,nn.jsx)("path",{d:"M5.5 5h1a.5.5 0 010 1h-1a.5.5 0 010-1zm0 6h1a.5.5 0 110 1h-1a.5.5 0 110-1zm0 3h1a.5.5 0 110 1h-1a.5.5 0 110-1zm0-6h1a.5.5 0 010 1h-1a.5.5 0 010-1zm3-3h6a.5.5 0 110 1h-6a.5.5 0 010-1zm0 6h6a.5.5 0 110 1h-6a.5.5 0 110-1zm0 3h6a.5.5 0 110 1h-6a.5.5 0 110-1zm0-6h6a.5.5 0 110 1h-6a.5.5 0 010-1z"})]})},e)),vf=y8;var hl=require("react/jsx-runtime"),x8=e=>(0,hl.jsx)(j,s({content:(0,hl.jsx)("g",{fill:"currentColor",fillRule:"evenodd",children:(0,hl.jsx)("path",{d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fillRule:"evenodd",clipRule:"evenodd"})})},e)),wf=x8;var jo=require("react/jsx-runtime"),C8=e=>(0,jo.jsx)(j,s({content:(0,jo.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,jo.jsx)("path",{d:"M.5 2.5h17a.5.5 0 1 1 0 1H.5a.5.5 0 0 1 0-1Z"}),(0,jo.jsx)("path",{d:"M15 3h1l-1 15c0 .8-.6 1.4-1.3 1.5H4.4c-.7 0-1.3-.5-1.4-1.3v-.1L2 3 3 3l1 15c0 .3.1.5.4.5h9.2c.2 0 .4-.2.4-.4L15 3Z",fillRule:"nonzero"}),(0,jo.jsx)("path",{d:"M9 5.5c.3 0 .5.2.5.5v10a.5.5 0 1 1-1 0V6c0-.3.2-.5.5-.5ZM12 5.5c.3 0 .5.2.5.5v10a.5.5 0 1 1-1 0V6c0-.3.2-.5.5-.5ZM6 5.5c.3 0 .5.2.5.5v10a.5.5 0 1 1-1 0V6c0-.3.2-.5.5-.5Z"}),(0,jo.jsx)("path",{d:"M11.3 0c.6 0 1.1.3 1.4.8V1l.8 2-1 .3-.7-1.9c0-.1-.2-.3-.4-.3H6.6c-.2 0-.3 0-.4.2v.1l-.8 1.9-1-.4.8-1.9C5.5.4 6 .1 6.6 0h4.7Z",fillRule:"nonzero"})]})},e)),ln=C8;var gl=require("react/jsx-runtime"),b8=e=>(0,gl.jsx)(j,s({content:(0,gl.jsx)("g",{fill:"currentColor",children:(0,gl.jsx)("path",{d:"M15.7421 14.1859L11.165 9.63776C11.1117 9.5897 11.0503 9.56568 10.9808 9.56568C10.9114 9.56568 10.8526 9.5897 10.8044 9.63776L8.76437 11.678C8.49937 11.9428 8.18263 12.0753 7.81416 12.0753C7.44555 12.0753 7.13145 11.9428 6.87187 11.678L2.78708 7.59922C2.67583 7.48936 2.62367 7.36311 2.63062 7.22047C2.63756 7.07783 2.69874 6.9488 2.81416 6.83339C2.93485 6.71269 3.06381 6.65234 3.20103 6.65234C3.33839 6.65234 3.46742 6.71269 3.58812 6.83339L7.62978 10.8959C7.67784 10.9439 7.7393 10.968 7.81416 10.968C7.88888 10.968 7.95027 10.9439 7.99833 10.8959L10.0385 8.85589C10.2981 8.5963 10.6122 8.46651 10.9808 8.46651C11.3493 8.46651 11.6634 8.5963 11.9231 8.85589L16.5 13.4119V11.2276C16.5 11.0738 16.5514 10.9451 16.6542 10.8415C16.7571 10.7378 16.8848 10.6859 17.0373 10.6859C17.1898 10.6859 17.3189 10.7378 17.4246 10.8415C17.5304 10.9451 17.5833 11.0738 17.5833 11.2276V14.5994C17.5833 14.7905 17.5194 14.95 17.3917 15.0778C17.264 15.2054 17.1046 15.2692 16.9133 15.2692H13.5417C13.3879 15.2692 13.2592 15.2178 13.1556 15.1151C13.0519 15.0121 13 14.8844 13 14.7319C13 14.5794 13.0519 14.4503 13.1556 14.3446C13.2592 14.2388 13.3879 14.1859 13.5417 14.1859H15.7421Z",fill:"currentColor"})})},e)),If=b8;var yl=require("react/jsx-runtime"),S8=e=>(0,yl.jsx)(j,s({content:(0,yl.jsx)("g",{fill:"currentColor",children:(0,yl.jsx)("path",{d:"M2.81414 15.0496C2.69872 14.9343 2.63754 14.8067 2.6306 14.6667C2.62365 14.5267 2.67789 14.399 2.7933 14.2838L6.87185 10.2131C7.13143 9.94814 7.44553 9.81564 7.81414 9.81564C8.18261 9.81564 8.49935 9.94814 8.76435 10.2131L10.8043 12.2452C10.8525 12.2933 10.9114 12.3173 10.9808 12.3173C11.0502 12.3173 11.1116 12.2933 11.165 12.2452L15.7421 7.6971H13.5416C13.3879 7.6971 13.2592 7.64571 13.1556 7.54294C13.0518 7.44002 13 7.31231 13 7.15981C13 7.00731 13.0518 6.87821 13.1556 6.77252C13.2592 6.66669 13.3879 6.61377 13.5416 6.61377H16.9133C17.1046 6.61377 17.264 6.67766 17.3916 6.80544C17.5194 6.93321 17.5833 7.09266 17.5833 7.28377V10.6554C17.5833 10.8092 17.5318 10.9379 17.4289 11.0417C17.3262 11.1453 17.1985 11.1971 17.046 11.1971C16.8935 11.1971 16.7644 11.1486 16.6587 11.0517C16.5529 10.9546 16.5 10.8322 16.5 10.6844V8.47106L11.9231 13.0481C11.6634 13.3077 11.3493 13.4375 10.9808 13.4375C10.6122 13.4375 10.2981 13.3077 10.0385 13.0481L7.99831 10.9871C7.95025 10.939 7.88886 10.915 7.81414 10.915C7.73928 10.915 7.67782 10.939 7.62976 10.9871L3.5881 15.0496C3.4674 15.1704 3.33837 15.2309 3.20101 15.2309C3.06379 15.2309 2.93483 15.1704 2.81414 15.0496Z",fill:"currentColor"})})},e)),Tf=S8;var sn=require("react/jsx-runtime"),v8=e=>(0,sn.jsx)(j,s({content:(0,sn.jsx)(sn.Fragment,{children:(0,sn.jsx)("rect",{width:"20",height:"20",fill:"currentColor",rx:"10"})})},e)),kf=v8;var an=require("react/jsx-runtime"),w8=e=>(0,an.jsx)(j,s({content:(0,an.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,an.jsx)("path",{d:"M19.4 9c-.3 0-.6.3-.6.6v5.2c0 1.4-1.1 2.6-2.5 2.6H3.7a2.6 2.6 0 0 1-2.6-2.6V9.5c0-.3-.2-.6-.5-.6s-.6.3-.6.6v5.3c0 2 1.7 3.7 3.7 3.7h12.6c2 0 3.7-1.7 3.7-3.7V9.6c0-.3-.3-.6-.6-.6"}),(0,an.jsx)("path",{d:"m9.8.2.4-.2c.2 0 .3 0 .4.2l3.6 3.6c.3.2.3.6 0 .8-.2.2-.5.2-.8 0L10.8 2v11.6c0 .3-.3.5-.6.5a.6.6 0 0 1-.6-.5V2L7 4.6c-.2.2-.6.2-.8 0a.6.6 0 0 1 0-.8L9.8.2Z"})]})},e)),Rf=w8;var Ef=require("tss-react/mui"),I8=(0,Ef.makeStyles)()(()=>({snackbar:{position:"fixed",top:"60px",transform:"translate(-50%)",zIndex:999,left:"50%",animation:"$fadeIn 300ms"},"@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}})),Mf=I8;var Af=require("react/jsx-runtime"),T8=e=>{let{children:t}=e,{classes:r}=Mf();return(0,Af.jsx)("div",{className:r.snackbar,children:t})},xl=T8;var To=require("react"),Nf=require("react/jsx-runtime"),Df=(0,To.createContext)(void 0),Lf=({children:e})=>{let[t,r]=(0,To.useState)(!1),[o,n]=(0,To.useState)(!1),i=(0,To.useMemo)(()=>({isBulkEditing:t,setIsBulkEditing:r,isEditSaving:o,setIsEditSaving:n}),[t,o]);return(0,Nf.jsx)(Df.Provider,{value:i,children:e})},Cl=()=>{let e=(0,To.useContext)(Df);if(!e)throw new Error("useEditContext must be used within a EditProvider");return e};var hn=require("@mui/x-data-grid-pro");var cn=require("@mui/material"),bl=require("react/jsx-runtime"),k8=({isOpen:e,onClose:t,mouseX:r,mouseY:o,rowMenuActions:n,selectedRows:i})=>(0,bl.jsx)(cn.Menu,{open:e,onClose:t,onContextMenu:l=>{l.preventDefault(),t()},anchorReference:"anchorPosition",anchorPosition:{top:o,left:r},elevation:2,children:n.map(({key:l,label:a,onClick:p,disabled:c})=>{let m=typeof c=="function"?c(i):c!=null?c:!1;return(0,bl.jsx)(cn.MenuItem,{onClick:()=>{p(i),t()},disabled:m,"data-id":`menu-item-${l}`,children:(0,bl.jsx)(cn.ListItemText,{children:a})},l)})}),Pf=k8;var Of=require("react"),Bf={isOpen:!1,mouseX:0,mouseY:0},_f=()=>{let[e,t]=(0,Of.useState)(Bf);return{rowMenuState:e,openRowMenu:(n,i)=>{t({isOpen:!0,mouseX:n,mouseY:i})},closeRowMenu:()=>{t(Bf)}}};var e0=require("react"),dn=require("@mui/x-data-grid-pro");var dt=v(require("react")),ko=require("@mui/material"),Xf=v(require("react-draggable"));var Ff=require("@mui/material");var oa=require("react/jsx-runtime"),R8=({onClick:e})=>(0,oa.jsx)(Ff.IconButton,{"aria-label":"close",onClick:e,sx:t=>({position:"absolute",right:8,top:8,color:t.palette.grey[500]}),children:(0,oa.jsx)(Oi,{})}),Vf=R8;var zf=require("@mui/material"),Hf=require("react/jsx-runtime"),E8=({children:e})=>(0,Hf.jsx)(zf.DialogContent,{sx:{px:2,fontSize:14},children:e}),ra=E8;var Sl=require("react/jsx-runtime"),M8=({children:e})=>(0,Sl.jsx)(Sl.Fragment,{children:e}),na=M8;var jf=require("react"),Yf=require("@mui/material");var Gf=require("@mui/material/styles"),$f=v(require("classnames")),ia=v(require("react-spinners/ClipLoader"));var Uf=require("tss-react/mui"),A8=(0,Uf.makeStyles)()(()=>({container:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}})),Wf=A8;var oo=require("react/jsx-runtime"),D8=({className:e="",size:t=70,color:r,inline:o=!1})=>{let{palette:{primary:n}}=(0,Gf.useTheme)(),{classes:i}=Wf();return(0,oo.jsx)(oo.Fragment,{children:o?(0,oo.jsxs)(oo.Fragment,{children:["\xA0 \xA0",(0,oo.jsx)(ia.default,{size:t,color:r||n.main})]}):(0,oo.jsx)("div",{className:(0,$f.default)(i.container,e),children:(0,oo.jsx)(ia.default,{size:t,color:r||n.main})})})},zt=D8;var vl=zt;var la=require("react/jsx-runtime"),L8=({color:e,variant:t,disabled:r=!1,onClick:o,children:n,ref:i})=>{let[l,a]=(0,jf.useState)(!1);return(0,la.jsx)(Yf.Button,{ref:i,variant:t,color:e,onClick:()=>ee(void 0,null,function*(){if(typeof o=="function"){a(!0);try{yield o()}finally{a(!1)}}}),disabled:r||l,endIcon:l?(0,la.jsx)(vl,{size:18,color:"inherit"}):null,children:n})},wl=L8;var Kf=require("react/jsx-runtime"),N8=({isDangerous:e=!1,disabled:t=!1,onClick:r,children:o,__variant:n,ref:i})=>(0,Kf.jsx)(wl,{ref:i,color:e||n==="alert"?"warning":"primary",variant:"contained",disabled:t,onClick:r,"data-id":"primaryAction",children:o}),sa=N8;var Zf=require("react/jsx-runtime"),P8=({color:e="secondaryAction",disabled:t=!1,onClick:r,children:o})=>(0,Zf.jsx)(wl,{color:e,variant:"outlined",disabled:t,onClick:r,"data-id":"secondaryAction",children:o}),aa=P8;var Il=require("@mui/material");var Rr=require("react/jsx-runtime"),B8=({children:e,__variant:t})=>{let r;if(t)switch(t){case"alert":r=(0,Rr.jsx)(Ui,{color:"error"});break;case"warning":r=(0,Rr.jsx)(Fi,{color:"secondary"});break;case"info":r=(0,Rr.jsx)(Vi,{color:"primary"});break}return(0,Rr.jsxs)(Il.DialogTitle,{sx:{p:2,pb:4,pr:5,display:"flex",alignItems:"center",gap:1,cursor:"move",typography:"h2"},children:[r,(0,Rr.jsx)(Il.Box,{component:"span",sx:{cursor:"text"},onMouseDown:o=>{o.stopPropagation()},children:e})]})},ca=B8;var ro=require("react/jsx-runtime"),O8=e=>{let[t,r]=(0,dt.useState)(void 0),o=(0,dt.useRef)(null);return(0,dt.useEffect)(()=>{if(o.current){let{top:n,left:i,right:l}=o.current.getBoundingClientRect();r({top:-n,left:-l+30,right:window.innerWidth-i-30,bottom:window.innerHeight-n-30})}},[o]),(0,ro.jsx)(Xf.default,{nodeRef:o,handle:".MuiDialogTitle-root",onMouseDown:n=>n.stopPropagation(),bounds:t,children:(0,ro.jsx)(ko.Paper,y(s({},e),{ref:o}))})},pn=({isOpen:e,onClose:t,isCloseIconShown:r=!0,variant:o,fullWidth:n=!0,fullScreen:i=!1,maxWidth:l="sm",dialogProps:a,children:p,"data-id":c})=>{let m=null,f=null,d=null,u=null,h=[];dt.Children.forEach(p,C=>{if(dt.default.isValidElement(C))if(C.type===ca){if(m)throw new Error("Only one dialog title can be defined");m=dt.default.cloneElement(C,{__variant:o})}else if(C.type===ra){if(f)throw new Error("Only one dialog content can be defined");f=C}else if(C.type===na){if(d)throw new Error("Only one dialog custom action can be defined");d=C}else if(C.type===sa){if(u)throw new Error("Only one dialog primary action can be defined");u=dt.default.cloneElement(C,{__variant:o})}else if(C.type===aa)h.push(C);else throw new Error(`${C.type} is not supported as a Modal child`)}),m===null&&console.warn("<Modal.Title> is missing. In a future version, providing a title will be required.");let g=d||u||h.length>0;return(0,ro.jsxs)(ko.Dialog,y(s({open:e,onClose:t,fullWidth:n,fullScreen:i,slotProps:{paper:i&&{sx:{margin:"0px 55x",maxWidth:"calc(100% - 110px)",maxHeight:"calc(100% - 110px)"}}},maxWidth:l,PaperComponent:O8,scroll:"paper","data-id":c},a),{children:[r&&t&&(0,ro.jsx)(Vf,{onClick:t}),m,f,g&&(0,ro.jsxs)(ko.DialogActions,{sx:{p:2},children:[(0,ro.jsx)(ko.Box,{sx:{flex:1},"data-id":"customActionCt",children:d}),(0,ro.jsxs)(ko.Box,{sx:{display:"flex",gap:1},children:[h.map((C,x)=>(0,ro.jsx)(dt.default.Fragment,{children:C},x)),u]})]})]}))};pn.Title=ca;pn.Content=ra;pn.PrimaryAction=sa;pn.SecondaryAction=aa;pn.CustomAction=na;var ke=pn;var qf=require("react"),Qf=require("@mui/material"),no=require("@mui/x-data-grid-pro");var Tl=require("react/jsx-runtime"),_8=({visibilityModel:e,setVisibilityModel:t})=>{let r=(0,no.useGridApiContext)(),o=(0,no.useGridRootProps)(),n=(0,no.useGridSelector)(r,no.gridColumnDefinitionsSelector),i=(0,qf.useMemo)(()=>n.filter(p=>p.headerName&&p.field!==no.GRID_CHECKBOX_SELECTION_FIELD).map(p=>({id:p.field,columnName:p.headerName,isDisplayed:e[p.field]!==!1,isDisabled:p.hideable===!1})),[n,e]),l=p=>{let{name:c}=p.target;t(y(s({},e),{[c]:e[c]===!1}))},a=[{field:"columnName",headerName:F.t("columnsSetting.columns.columnName"),flex:1},{field:"isDisplayed",width:65,headerName:F.t("columnsSetting.columns.display"),renderCell:({row:p})=>(0,Tl.jsx)(Qf.Box,{sx:{display:"flex",justifyContent:"center",height:"100%"},children:(0,Tl.jsx)(o.slots.baseCheckbox,{name:p.id,size:"small",checked:p.isDisplayed,disabled:p.isDisabled,onClick:l,sx:{m:0}})})}];return(0,Tl.jsx)(kl,{rows:i,columns:a,checkboxSelection:!1,hideFooter:!0,disableDensitySelector:!0,disableRowSelectionOnClick:!0,disableColumnReorder:!0,disableColumnFilter:!0,disableColumnSelector:!0,disableColumnMenu:!0,disableColumnSorting:!0,disableColumnResize:!0,slotProps:{toolbar:{showQuickFilter:!1}}})},Jf=_8;var Yo=require("react/jsx-runtime"),F8=()=>{let e=(0,dn.useGridApiContext)(),t=(0,dn.useGridSelector)(e,dn.gridColumnVisibilityModelSelector),[r,o]=(0,e0.useState)(t),n=()=>{e.current.hidePreferences()},i=()=>{e.current.setColumnVisibilityModel(r),n()};return(0,Yo.jsxs)(ke,{isOpen:!0,onClose:n,children:[(0,Yo.jsx)(ke.Title,{children:F.t("columnsSetting.title")}),(0,Yo.jsx)(ke.Content,{children:(0,Yo.jsx)(Jf,{visibilityModel:r,setVisibilityModel:o})}),(0,Yo.jsx)(ke.PrimaryAction,{onClick:i,children:F.t("common.save")}),(0,Yo.jsx)(ke.SecondaryAction,{onClick:n,children:F.t("common.cancel")})]})},t0=F8;var ti=require("react"),Ml=require("@mui/material"),kt=require("@mui/x-data-grid-pro");var mn=e=>Array.from(e.current.getSelectedRows().values());var Ko=require("@mui/material"),un=require("react/jsx-runtime"),V8=({isOpen:e,anchorEl:t,menuActions:r,selectedRows:o,onClose:n})=>(0,un.jsx)(Ko.Menu,{open:e,onClose:n,onContextMenu:i=>{i.preventDefault(),n()},anchorEl:t,elevation:2,children:r.map(({key:i,label:l,icon:a,color:p,disabled:c,onClick:m})=>{let f=typeof c=="function"?c(o):c!=null?c:!1;return(0,un.jsxs)(Ko.MenuItem,{onClick:()=>{m(o),n()},disabled:f,"data-id":`action-menu-item-${i}`,sx:!f&&p?{color:p}:{},children:[a&&(0,un.jsx)(Ko.ListItemIcon,{children:a}),(0,un.jsx)(Ko.ListItemText,{children:l})]},i)})}),o0=V8;var Rl=require("@mui/material");var r0=require("@mui/material");var n0=require("react/jsx-runtime"),z8=n=>{var i=n,{children:e,color:t="primary",sx:r}=i,o=_(i,["children","color","sx"]);return(0,n0.jsx)(r0.IconButton,y(s({sx:s({p:0,height:34,width:34,borderRadius:1,bgcolor:`${t}.main`,"&:hover":{bgcolor:`${t}.dark`},color:`${t}.contrastText`,"&.Mui-disabled":{color:"action.disabled",bgcolor:"action.disabledBackground","&:hover":{bgcolor:"action.disabled"}}},r)},o),{children:e}))},Zo=z8;var Er=require("react/jsx-runtime"),H8=({buttons:e})=>(0,Er.jsx)(Rl.Box,{sx:{display:"flex",gap:1},children:e.map(p=>{var c=p,{key:t,type:r,onClick:o,color:n,disabled:i,isLoading:l}=c,a=_(c,["key","type","onClick","color","disabled","isLoading"]);let m={color:n,disabled:i,onClick:o,size:"small","data-id":`button-${t}`};if(r==="text"){let{text:f="DefaultText"}=a;return(0,Er.jsxs)(Rl.Button,y(s({variant:"contained"},m),{sx:{display:"flex",alignItems:"center",gap:.5},children:[f,l&&(0,Er.jsx)(zt,{size:12,color:"inherit",className:"button-loader"})]}),t)}if(r==="icon"){let{icon:f}=a;return(0,Er.jsxs)(Zo,y(s(s({},m),l&&{sx:{width:40}}),{children:[f,l&&(0,Er.jsx)(zt,{size:12,color:"inherit",className:"button-loader"})]}),t)}return null})}),pa=H8;var i0=require("@mui/x-data-grid-pro");var El=require("react/jsx-runtime"),U8=({onClick:e})=>(0,El.jsx)(Zo,{onClick:e,"data-id":"columnsButton",children:(0,El.jsx)(fl,{size:"24"})}),W8=()=>(0,El.jsx)(i0.GridToolbarColumnsButton,{slotProps:{button:{component:U8}}}),l0=W8;var s0=require("react"),a0=require("@mui/material"),c0=require("@mui/x-data-grid-pro");var fn=require("react/jsx-runtime"),G8=e=>{let[t,r]=(0,s0.useState)(!1);return(0,fn.jsxs)(a0.Box,{children:[(0,fn.jsx)(Zo,{onClick:()=>{r(!0)},"data-id":"quickFilterButton",children:(0,fn.jsx)(_o,{size:"20"})}),t&&(0,fn.jsx)(c0.GridToolbarQuickFilter,y(s({},e),{autoFocus:!0,focused:!0,color:"primary",variant:"outlined",InputProps:{startAdornment:!1,endAdornment:!1,sx:{height:"100%",backgroundColor:"common.white",borderRadius:1,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px 1px 1px 0px"}}},sx:{width:300,height:34,p:0,"& input":{p:1,m:0}},onBlur:o=>{r(o.target.value!=="")}}))]})},p0=G8;var Ae=require("react/jsx-runtime"),$8=function(t){var E;let{showQuickFilter:r=!1,showSelectedCount:o=!0,quickFilterProps:n={},customButtons:i,deleteAction:l,bulkEditAction:a,menuActions:p}=t,c=(0,kt.useGridRootProps)(),m=(0,kt.useGridApiContext)(),f=(0,kt.useGridSelector)(m,kt.gridRowSelectionStateSelector),{isBulkEditing:d,setIsBulkEditing:u}=Cl(),[h,g]=(0,ti.useState)(!1),C=(0,ti.useRef)(null),{editMode:x,disableColumnFilter:b,disableColumnSelector:I,disableDensitySelector:D}=c,S=f.length>0,[T,k]=(0,ti.useState)(null);if(b&&I&&D&&!r&&!(i!=null&&i.length)&&!(p!=null&&p.length))return null;let w=L=>ee(this,null,function*(){if(typeof L.onClick=="function"){let V=mn(m),H=L.onClick(f,V);if(H instanceof Promise)try{k(L.key),yield H}finally{k(null)}}}),A=(E=i==null?void 0:i.map(L=>y(s({},L),{onClick:()=>w(L),disabled:!!T||L.disabled,isLoading:T===L.key})))!=null?E:[],O=[];if(a)if(!d)O.push({type:"icon",key:"defaultBtnEnterEdit",icon:(0,Ae.jsx)(_i,{}),color:"primary",onClick:()=>{u(!0);for(let L of f)m.current.startRowEditMode({id:L})},disabled:!!T||a.disabled||!S});else{let L="defaultBtnSaveEdit";O.push({type:"icon",key:L,icon:(0,Ae.jsx)(ul,{size:"20"}),color:"primary",onClick:()=>ee(this,null,function*(){let V=Array.from(m.current.getRowModels().values());for(let H of f)m.current.stopRowEditMode({id:H,ignoreModifications:!1});setTimeout(()=>ee(this,null,function*(){yield w({key:L,onClick:(H,M)=>ee(this,null,function*(){(yield a.onBulkEditSave(H,M))?m.current.setRowSelectionModel([]):m.current.setRows(V),u(!1)})})}),0)}),disabled:!!T||x===kt.GridEditModes.Row&&!S,isLoading:T===L},{type:"icon",key:"defaultBtnCancelEdit",icon:(0,Ae.jsx)(vt,{size:"20"}),color:"warning",onClick:()=>{u(!1);for(let V of f)m.current.stopRowEditMode({id:V,ignoreModifications:!0});m.current.setRowSelectionModel([])},disabled:!!T})}if(l&&!d){let L="defaultBtnDelete";O.push({type:"icon",key:L,icon:(0,Ae.jsx)(ln,{size:"20"}),color:"warning",onClick:()=>ee(this,null,function*(){yield w({key:L,onClick:V=>ee(this,null,function*(){(yield l.onDelete(V))&&m.current.setRowSelectionModel([])})})}),disabled:!!T||l.disabled||!S,isLoading:T===L})}return(0,Ae.jsxs)(Ml.Box,{sx:{display:"flex",justifyContent:"space-between",backgroundColor:"common.greyBackground",p:1},"data-id":"toolbarContainer",children:[(0,Ae.jsxs)(Ml.Box,{display:"flex",children:[r&&(0,Ae.jsx)(p0,s({},n)),o&&f.length>0&&(0,Ae.jsx)(kt.GridSelectedRowCount,{selectedRowCount:f.length,sx:{mx:1}})]}),(0,Ae.jsxs)(Ml.Box,{sx:{display:"flex",gap:1},children:[(A==null?void 0:A.length)>0&&(0,Ae.jsx)(pa,{buttons:A}),(O==null?void 0:O.length)>0&&(0,Ae.jsx)(pa,{buttons:O}),!c.disableColumnSelector&&(0,Ae.jsx)(l0,{}),!!(p!=null&&p.length)&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Zo,{ref:C,onClick:()=>g(!0),"data-id":"actionsMenuButton",children:(0,Ae.jsx)(zi,{})}),h&&(0,Ae.jsx)(o0,{isOpen:h,onClose:()=>g(!1),menuActions:p,selectedRows:mn(m),anchorEl:C.current})]})]})]})},d0=$8;var Xo=require("react/jsx-runtime"),j8=e=>{var D,S,T;let I=e,{getRowClassName:t,slots:r={},slotProps:o,rowContextMenu:n,apiRef:i,rows:l}=I,a=_(I,["getRowClassName","slots","slotProps","rowContextMenu","apiRef","rows"]),p=(0,hn.useGridApiRef)(),{isBulkEditing:c,setIsEditSaving:m,isEditSaving:f}=Cl(),{rowMenuState:d,openRowMenu:u,closeRowMenu:h}=_f(),g=i!=null?i:p,C=k=>{let A=k.indexRelativeToCurrentPage%2===0?"Mui-even":"Mui-odd";return typeof t=="function"?[t(k),A].filter(Boolean).join(" "):A},x=k=>{if(k.preventDefault(),!k.currentTarget)return;let w=k.currentTarget.getAttribute("data-id"),A=l==null?void 0:l.find(({id:O})=>String(O)===w);if(A){let O=mn(g),E=O.find(({id:L})=>L===A.id);if(E||g.current.selectRow(A.id,!0,!0),n!=null&&n.canOpen&&!n.canOpen(E?O:[A]))return;u(k.clientX,k.clientY)}},b={};if((D=o==null?void 0:o.toolbar)!=null&&D.bulkEditAction&&(b=y(s({},b),{editMode:hn.GridEditModes.Row,onRowEditStart:(k,w)=>{w.defaultMuiPrevented=!0},onRowEditStop:(k,w)=>{w.defaultMuiPrevented=!0}})),typeof e.processRowUpdate=="function"){let k=e.processRowUpdate;b=y(s({},b),{processRowUpdate:(...w)=>ee(void 0,null,function*(){try{return m(!0),yield k(...w)}finally{m(!1)}})})}return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(hn.DataGridPro,y(s(s({},a),b),{apiRef:g,rows:l,density:"compact",rowHeight:46,columnHeaderHeight:46,disableDensitySelector:!0,disableColumnFilter:!0,disableColumnMenu:!0,checkboxSelection:e.checkboxSelection||!!((S=o==null?void 0:o.toolbar)!=null&&S.deleteAction)||!!((T=o==null?void 0:o.toolbar)!=null&&T.bulkEditAction),disableRowSelectionOnClick:!0,loading:e.loading||f,slots:y(s({},r),{toolbar:d0,columnsPanel:t0,columnMenuManageColumnsIcon:()=>(0,Xo.jsx)(Hi,{sx:{fontSize:"1.25rem"}})}),slotProps:y(s({},o),{baseCheckbox:y(s({},o==null?void 0:o.baseCheckbox),{size:"small"}),toolbar:s({showQuickFilter:!0},o==null?void 0:o.toolbar),row:s(s({},o==null?void 0:o.row),n?{onContextMenu:x,style:{cursor:"context-menu"}}:{})}),getRowClassName:C,sx:s(s({},a.sx),c&&{".MuiDataGrid-cellCheckbox, .MuiDataGrid-columnHeaderCheckbox":{pointerEvents:"none",opacity:.5}})})),n&&d.isOpen&&(0,Xo.jsx)(Pf,{isOpen:!0,onClose:h,mouseX:d.mouseX||0,mouseY:d.mouseY||0,rowMenuActions:n.actions,selectedRows:mn(g)})]})},m0=j8;var da=require("react/jsx-runtime"),Y8=e=>(0,da.jsx)(Lf,{children:(0,da.jsx)(m0,s({},e))}),kl=Y8;var Al=require("react"),Dl=require("@mui/material"),h0=v(require("classnames")),g0=v(require("sortablejs"));var u0=require("tss-react/mui"),K8=(0,u0.makeStyles)()(e=>({row:{display:"flex"},draggable:{maxWidth:18,minWidth:18,display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",padding:"10px 4px",cursor:"move",boxSizing:"border-box","&>span":{display:"block",width:2,height:2,borderRadius:"50%",background:e.palette.grey[300],margin:1}},odd:{"&:nth-child(odd)":{background:e.palette.grey[100]}},rowAttribute:{justifyContent:"left",display:"flex",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"}})),f0=K8;var Rt=require("react/jsx-runtime"),Z8=({rows:e,onChange:t,renderer:r})=>{let o=(0,Al.useRef)(null),n=(0,Dl.useTheme)(),{classes:i}=f0(),l=e.map((a,p)=>s({sortableId:p+1},a));return(0,Al.useEffect)(()=>{new g0.default(o.current,{handle:`.${i.draggable}`,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{set(a){let c=a.toArray("sortableId").map(m=>l.find(f=>f.sortableId===Number(m)));t(c)}}})},[]),(0,Rt.jsx)(Dl.Box,{ref:o,sx:{background:n.palette.common.white,fontSize:n.typography.body2},children:l.map((a,p)=>(0,Rt.jsxs)("div",{"data-id":a.sortableId,className:(0,h0.default)(i.row,{[i.odd]:!0}),children:[(0,Rt.jsxs)("div",{className:i.draggable,children:[(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})]}),(0,Rt.jsx)("div",{className:i.rowAttribute,children:r(a)})]},p))})},y0=Z8;var ma=require("@mui/material"),T0=v(require("lodash/isEmpty"));var gn=require("@mui/material"),C0=v(require("classnames")),b0=v(require("react-dropzone"));var x0=require("tss-react/mui"),X8=(0,x0.makeStyles)()((e,t,r)=>({container:{boxSizing:"border-box",flex:"0 0 auto",display:"flex",flexDirection:"column",alignItems:"center",border:`1px dashed ${e.palette.grey[300]}`,borderRadius:2,padding:10,width:"100%","&:not(:last-child)":{marginBottom:20},[`&.${r.active}`]:{borderColor:e.palette.primary.main}},active:{},title:{margin:"10px 0",fontSize:18,textAlign:"center"},icon:{margin:"10px 0",color:e.palette.primary.main},or:{color:e.palette.grey[300],marginBottom:10},button:{marginBottom:10},scanButton:{color:e.palette.secondary.main},files:{flex:1,maxHeight:"200px",overflow:"auto"},listItem:{border:`1px dashed ${e.palette.grey[300]}`,borderRadius:2,padding:"0 8px",overflow:"hidden",textOverflow:"ellipsis","& + &":{marginTop:8}},removeBtn:{marginRight:-8},imageLink:{cursor:"pointer"}})),Ll=X8;var Qe=require("react/jsx-runtime"),q8=e=>{let{isScannable:t=!1,isUploading:r=!1,fileTypeAccepted:o={},onAddFiles:n}=e,i=a=>p=>{p.preventDefault(),p.stopPropagation(),a()},{classes:l}=Ll();return(0,Qe.jsx)(b0.default,{noClick:!0,onDrop:n,accept:o,disabled:r,children:({getInputProps:a,getRootProps:p,isDragActive:c,open:m})=>(0,Qe.jsx)("div",y(s({className:(0,C0.default)(l.container,{[l.active]:c})},p()),{children:r?(0,Qe.jsx)(vl,{}):(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(cl,{size:40,className:l.icon}),(0,Qe.jsx)(gn.Typography,{classes:{root:l.title},variant:"h1",children:F.t("filesDropperDialog.dropbox")}),(0,Qe.jsx)("input",s({},a())),(0,Qe.jsx)(gn.Typography,{className:l.or,children:F.t("common.or")}),(0,Qe.jsx)(gn.Button,{color:"primary",variant:"outlined",onClick:i(m),classes:{root:l.button},children:F.t("filesDropperDialog.import")}),t&&(0,Qe.jsxs)(gn.Typography,{children:[F.t("common.or")," ",(0,Qe.jsx)("span",{className:l.scanButton,children:F.t("filesDropperDialog.scan")})," ",F.t("filesDropperDialog.infoScanDPI")]})]})}))})},S0=q8;var qo=require("@mui/material"),v0=v(require("classnames"));var Mr=require("react/jsx-runtime"),Q8=e=>{let{files:t,onRemoveFile:r,disabled:o,canRemove:n,onCustomFileClick:i}=e,{classes:l}=Ll(),a=c=>{i?i(c):window.open(c.link,"_blank")},p=(c,m,f)=>{c.stopPropagation(),r(m,f)};return(0,Mr.jsx)(qo.List,{classes:{root:l.files},disablePadding:!0,children:t.map((c,m)=>(0,Mr.jsxs)(qo.ListItem,{onClick:c.link?()=>a(c):void 0,classes:{root:(0,v0.default)(l.listItem,{[l.imageLink]:c.link})},children:[(0,Mr.jsx)(qo.ListItemText,{primaryTypographyProps:{noWrap:!0},children:c.name}),n&&(0,Mr.jsx)(qo.IconButton,{classes:{root:l.removeBtn},onClick:f=>p(f,c,m),disabled:o,size:"small",title:"",children:(0,Mr.jsx)(ln,{size:16})})]},m))})},w0=Q8;var yn=require("react");var J8=e=>{let{initialFiles:t=[],onAddFiles:r,onRemoveFile:o=()=>{},onChange:n=()=>{},maxFiles:i}=e,[l,a]=(0,yn.useState)(!1),[p,c]=(0,yn.useState)(!1),[m,f]=(0,yn.useState)(t);(0,yn.useEffect)(()=>{n(m)},[m]);function d(g){if(!i)return g;let C=i-m.length;return g.length>C?g.splice(0,C):g}return{files:m,addFiles:g=>ee(void 0,null,function*(){if(!g.length||l||i&&m.length>=i)return;let C=d(g);try{r&&(a(!0),yield r(C),a(!1)),f(x=>[...x,...C])}catch(x){console.error(x)}}),removeFile:(g,C)=>ee(void 0,null,function*(){if(!p)try{o&&(c(!0),yield o(g,C),c(!1)),f(x=>x.filter(b=>b!==g))}catch(x){}}),isUploading:l,isRemoving:p}},I0=J8;var Ht=require("react/jsx-runtime"),ex=e=>{let{displayList:t=!0,canRemove:r=!0,maxFiles:o,filesListTitle:n,fileTypeAccepted:i,onCustomFileClick:l}=e,{files:a=[],addFiles:p,removeFile:c,isUploading:m,isRemoving:f}=I0(s({isDisplayCloseBtn:!1},e));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(S0,{files:a,onAddFiles:p,isUploading:m,fileTypeAccepted:i}),o&&(0,Ht.jsxs)(ma.Typography,{variant:"body2",children:[F.t("filesDropperDialog.limit")," ",a.length," ",F.t("common.outOf")," ",o]}),!(0,T0.default)(a)&&t&&(0,Ht.jsxs)(Ht.Fragment,{children:[n&&(0,Ht.jsx)(ma.Typography,{variant:"h2",sx:{marginBottom:"16px",marginTop:"24px"},children:n}),(0,Ht.jsx)(w0,{files:a,onRemoveFile:c,onCustomFileClick:l,disabled:f,canRemove:r})]})]})},Nl=ex;var Qo=require("react"),k0=require("@mui/material");var E0=require("react/jsx-runtime"),tx=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"],ox=0,rx=0,nx=l=>{var a=l,{locale:e="fr-FR",intl:t,onChange:r,onKeyDown:o,value:n}=a,i=_(a,["locale","intl","onChange","onKeyDown","value"]);var I,D;let[p,c]=(0,Qo.useState)(""),[m,f]=(0,Qo.useState)(!1),d=(I=t==null?void 0:t.minimumFractionDigits)!=null?I:rx,u=Math.max((D=t==null?void 0:t.maximumFractionDigits)!=null?D:ox,d);(0,Qo.useEffect)(()=>{if(n){let S=n.toString();c(S)}},[n]);let h=S=>{let{key:T}=S,k=S.target,w=p,A=k.selectionStart||0;if(tx.includes(T)||S.ctrlKey||S.metaKey){o==null||o(S);return}if(/^\d$/.test(T)){let O=Math.max(w.indexOf("."),w.indexOf(","));if(O!==-1){let E=w.substring(O+1);if(A>O&&E.length>=u){S.preventDefault();return}}o==null||o(S);return}if(T==="-"&&A===0&&!w.includes("-")){o==null||o(S);return}if((T==="."||T===",")&&!w.includes(".")&&!w.includes(",")&&u>0){o==null||o(S);return}S.preventDefault()},g=S=>S.replace(",","."),C=S=>{let T=S.indexOf(".");return T!==-1&&S.length>T+u+1?S.substring(0,T+u+1):S},x=(0,Qo.useMemo)(()=>{if(!p||p===""||p==="-")return null;let S=g(p),T=Number(S);return Number.isNaN(T)?null:T},[p]),b=(0,Qo.useMemo)(()=>m||x===null?p:(t==null?void 0:t.style)==="percent"&&(t!=null&&t.customPercent)?`${new Intl.NumberFormat(e,y(s({},t),{style:"decimal",maximumFractionDigits:u,minimumFractionDigits:d})).format(x)}%`:new Intl.NumberFormat(e,y(s({},t),{maximumFractionDigits:u,minimumFractionDigits:d})).format(x),[p,x,m,e,t,u,d]);return(0,E0.jsx)(k0.TextField,s({inputMode:"numeric",onKeyDown:h,value:b,onFocus:S=>{var T;f(!0),(T=i.onFocus)==null||T.call(i,S)},onBlur:S=>{var T;f(!1),(T=i.onBlur)==null||T.call(i,S)},onChange:S=>{let T=S.target.value,k;if(m)k=C(T),c(k);else{let E=g(T);k=C(E),c(k)}let w=g(k),A=Number(w),O=Number.isNaN(A)?0:A;r==null||r(S,O)},inputProps:s({style:{textAlign:"right"},inputMode:"decimal"},i.inputProps)},i))},R0=nx;var M0=require("tss-react/mui"),ix=(0,M0.makeStyles)()(()=>({overlay:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:999}})),A0=ix;var Pl=require("react/jsx-runtime"),lx=({isBackgroundClickBlocked:e=!1})=>{let{classes:t}=A0();return(0,Pl.jsx)("div",{className:e?t.overlay:"",children:(0,Pl.jsx)(xl,{children:(0,Pl.jsx)(el,{})})})},D0=lx;var Bl=require("react"),Je=require("@mui/material");var lt=require("react/jsx-runtime"),sx=({options:e,variant:t="outlined",initialIndex:r=0,height:o})=>{let[n,i]=(0,Bl.useState)(!1),l=(0,Bl.useRef)(null),a=f=>{!f.disabled&&f.onClick&&(f.onClick(),i(!1))},p=()=>i(f=>!f),c=f=>{var d;(d=l.current)!=null&&d.contains(f.target)||i(!1)},m=e[r];return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsxs)(Je.ButtonGroup,{variant:t,ref:l,children:[(0,lt.jsx)(Je.Button,{sx:y(s({},o&&{height:o}),{whiteSpace:"nowrap","& .MuiButton-startIcon":{"& svg":{fontSize:16}}}),onClick:()=>a(m),startIcon:m.icon,disabled:m.disabled,"data-id":"splitButton",children:m.label}),(0,lt.jsx)(Je.Button,{size:"small",onClick:p,"data-id":"toggleOptions",children:(0,lt.jsx)(Bi,{sx:{transform:n?"rotate(-180deg)":"rotate(0deg)",transition:"transform 200ms ease-in-out"}})})]}),(0,lt.jsx)(Je.Menu,{anchorEl:l.current,open:n,onClose:c,children:e.filter((f,d)=>d!==r).map((f,d)=>(0,lt.jsx)(Je.MenuItem,{onClick:()=>a(f),disabled:f.disabled,"data-id":`option-${d}`,children:(0,lt.jsxs)(Je.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.icon&&(0,lt.jsx)(Je.ListItemIcon,{sx:{"& svg":{fontSize:16}},children:f.icon}),(0,lt.jsx)(Je.ListItemText,{children:f.label})]})},f.label))})]})},L0=sx;var xe=v(require("react")),wc=v(require("lodash/cloneDeep"));var N0=require("tss-react/mui"),ax=(0,N0.makeStyles)()(()=>{let e={};for(let t=0;t<1e3;e[`feed${t++}`]={});return e}),P0=ax;var Da=require("react"),$2=require("@mui/material");var G0=v(require("lodash/cloneDeep")),$0=v(require("lodash/get"));var xn="@",et={ADD_FILTER:"addFilter",CHANGE_SEARCH:"changeSearch",DELETE_FILTER:"deleteFilter",SET_CONFIG:"setConfig",UPDATE_FILTER:"updateFilter",INIT:"initFilter"};var B={SELECT:"select",STRING:"string",CHECKBOX:"check_box",DATE:"date",AMOUNT:"amount",NUMBER:"number",RATE:"rate",BADGE_STATUS:"badge_status",STATUS:"status",THUMBNAIL:"thumbnail",ATTACHMENT:"attachment",CHIP:"chip",BUTTON:"button",MULTIPLE_INPUTS:"multiple",WALLET:"wallet",AUTOCOMPLETE:"autocomplete",SWITCH_BADGE_STATUS:"switch_badge_status",COMPONENT:"component",EMPTY:"empty"},io={STRING:"string",SUM:"sum",AMOUNT:"amount"};var Jo={FUNCTION:"function",NUMBER:"number",STRING:"string"};var _0=v(require("lodash/get")),F0=v(require("lodash/isArray")),V0=v(require("lodash/isNil")),z0=v(require("moment/moment"));var ua=[B.AMOUNT,B.NUMBER,B.STATUS,B.SELECT,B.STRING,B.DATE,B.WALLET],cx=e=>e.map(t=>({value:t.status,name:t.value}));function B0(e){return e.reduce((t,r)=>oi(r)?y(s({},t),{[r.key]:{label:r.header,value:r.key,type:r.typeCell===B.STATUS?B.SELECT:r.typeCell,listData:r.typeCell===B.STATUS?cx(r.listStatus):r.listData||r.options}}):t,{})}function oi(e){return(!e.typeCell||ua.includes(e.typeCell)||e.searchValue)&&e.header}var Ol="NO_SELECT",Cn="DD/MM/YYYY";function ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var _l=(e,t,r,o={})=>{if(!["number","string"].includes(typeof e)||(0,V0.default)(t))return!1;let{filterComparator:n="contains"}=o,i=ri(e.toString());if(typeof n=="function")return n(i,t);if(B.AMOUNT===r)return dx(e.toString(),t);if(B.NUMBER===r)return H0(e.toString(),t);if(B.DATE===r)return mx(e.toString(),t,o);if(B.SELECT===r)return e===t;if(B.WALLET===r)return ux(i,t,o);let l;switch(n){case"startsBy":l=new RegExp(`^${i}`,"i");break;case"endsBy":l=new RegExp(`${i}$`,"i");break;case"equals":l=new RegExp(`^${i}$`,"i");break;default:l=new RegExp(i,"i");break}return l.test(t)},H0=(e,t)=>{let r=Number.parseFloat(t).toFixed(2);if((e==null?void 0:e[0])===".")return new RegExp(`${ri(e)}`,"i").test(r);if((e==null?void 0:e[0])==="+"){let n=e.substring(1);return new RegExp(`^${ri(n)}`,"i").test(r)}return new RegExp(`^-?${ri(e)}`,"i").test(r)},px=(e,t)=>{let r=Number.parseFloat(e);if(Number.isNaN(r))return!1;let o=t.trim();if(o.startsWith(">=")){let n=Number.parseFloat(o.substring(2));return r>=n}if(o.startsWith("<=")){let n=Number.parseFloat(o.substring(2));return r<=n}if(o.startsWith(">")){let n=Number.parseFloat(o.substring(1));return r>n}if(o.startsWith("<")){let n=Number.parseFloat(o.substring(1));return r<n}if(o.startsWith("=")){let n=Number.parseFloat(o.substring(1));return r===n}return!1},dx=(e,t)=>{if(!["<",">","="].some(n=>e.includes(n)))return H0(e,t);let o=e.split(";");try{return o.every(n=>px(t,n))}catch(n){return!1}},mx=(e,t,r={})=>{let{formatDate:o=Cn,outputFormat:n=Cn}=r,i=(0,z0.default)(t,o).format(n),l=ri(e.toString());return new RegExp(l,"i").test(i)},ux=(e,t,r={})=>{let o=new RegExp(e,"i");if(r!=null&&r.searchValue)return o.test(t);if(t!=null&&t.array&&Array.isArray(t==null?void 0:t.array)){let n=t.array.map(i=>i.id).join(", ");return o.test(n)}return!1},O0=(e,t,r)=>{let o=r.find(i=>i.key===e),n=(0,_0.default)(t,(o==null?void 0:o.searchKey)||e);return o!=null&&o.searchValue&&(n=o.searchValue(t)),y(s({},o),{value:n})},U0=(e,t=[],r=[])=>t.every(([o,n])=>{if(!n)return!0;if((0,F0.default)(o))return o.some(c=>{let u=O0(c,e,r),{value:m,typeCell:f}=u,d=_(u,["value","typeCell"]);return _l(n,m,f,d)});let p=O0(o,e,r),{value:i,typeCell:l}=p,a=_(p,["value","typeCell"]);return _l(n,i,l,a)}),W0=e=>e.reduce((t,r)=>!r.typeCell||ua.includes(r.typeCell)||r.searchValue?[...t,r]:t,[]);var lo={ASC:"asc",DESC:"desc"},st={BOTTOM:"bottom",TOP:"top"},fx=[B.AMOUNT,B.AUTOCOMPLETE,B.CHECKBOX,B.DATE,B.NUMBER,B.SELECT,B.STRING,B.WALLET],hx=[B.AMOUNT,B.ATTACHMENT,B.AUTOCOMPLETE,B.BADGE_STATUS,B.CHECKBOX,B.COMPONENT,B.DATE,B.NUMBER,B.SELECT,B.STATUS,B.STRING,B.SWITCH_BADGE_STATUS,B.THUMBNAIL,B.WALLET,B.EMPTY],te={ADD_BUTTON:"add_button",GROUP_BUTTON:"group_button",NEW:"new",EDIT:"edit",VIEW:"view"},Xe={READ:"IDLE",ADD:"ADD",EDIT:"EDIT",PERMANENT_EDIT:"PERMANENT_EDIT"},gx=(e,t)=>y(s({},t),{groupId:e}),j0=(e,t="id")=>e.data.map((r,o)=>y(s({},gx(e[t],r)),{parentRowIndex:o})),Y0=e=>({name:e.name,rowType:te.GROUP_BUTTON,groupId:e.id}),K0=e=>({name:e.addGroupRowLabel||F.t("common.addRow"),rowType:te.ADD_BUTTON,groupId:e.id}),Z0=({ignoreExport:e,typeCell:t,renderExport:r})=>!e&&(!t||typeof t===Jo.FUNCTION||!!r||hx.includes(t)),X0=({typeCell:e,sortable:t})=>t!==!1&&(t||fx.includes(e)||!e),q0=(e,t,r=[],o="")=>U0(t,r,e)?o&&o[0]!==xn?e.some(i=>{let l=(0,$0.default)(t,(i==null?void 0:i.searchKey)||(i==null?void 0:i.key));return i!=null&&i.searchValue&&(l=i.searchValue(t)),_l(o,l,i.typeCell,i)}):!0:!1;function Q0(e){var t;return["Promise","AsyncFunction"].includes((t=e==null?void 0:e.constructor)==null?void 0:t.name)}function J0(e,t,r=100){let o=0,n=0;return e.forEach(i=>{o+=Number.isNaN(Number(i==null?void 0:i.width))?i!=null&&i.size?0:r:i.width,n+=Number.isNaN(Number(i==null?void 0:i.size))?0:i.size}),e.reduce((i,p)=>{var c=p,{key:l}=c,a=_(c,["key"]);return y(s({},i),{[l]:yx(a,t,o,n,r)})},{})}function yx(e,t,r,o,n){let{width:i=-1,size:l=-1}=e;if(l!==-1&&t>r){let a=(t-r)/o,p=Math.floor(a*l);return p>n?p:n}return i!==-1?i:n}function ni(e,t){if(e){let r=e.toString().split("|")||[];return(0,G0.default)(t).sort((n,i)=>r.indexOf(n.key)-r.indexOf(i.key))}return t}var E2=v(require("lodash/escapeRegExp")),Ra=v(require("lodash/find")),M2=v(require("lodash/get")),A2=v(require("lodash/isNil"));var o2=v(require("lodash/isNil"));var xx=v(require("lodash/min")),e2=v(require("numeral"));function fa(e){if(typeof e=="number")return e;if(typeof e=="string"){let t=e.toString().replace(",",".").replace(" ","");return Number.parseFloat(t)}return 0}var Fl=(e,t="0,0.00")=>(0,e2.default)(+e||e).format(t),t2=()=>`_${Math.random().toString(36).substr(2,9)}`;var bn=(e,t)=>{let{formatAmount:r=Fl,format:o}=t;return!(0,o2.default)(e)&&e!==""?r(e,o):""};var C2=v(require("lodash/get")),b2=v(require("lodash/set")),S2=v(require("moment/moment"));var Ro=v(require("lodash/cloneDeep")),wa=v(require("lodash/isNil")),P=require("robot3");var ga=v(require("lodash/get"));var ha=v(require("lodash/get")),Cx=({hasSecuredRows:e,row:t})=>!!(e&&(t!=null&&t.secured)),Vl=({unlockedRowsIds:e,row:t,selectableRowKey:r="id",hasSecuredRows:o})=>Cx({hasSecuredRows:o,row:t})?!e.includes((0,ha.default)(t,r)):!1,r2=(e=[],t)=>e.map(r=>typeof r=="number"?r:(r==null?void 0:r.id)||(0,ha.default)(r,t));var bx=e=>e.rowType!==te.GROUP_BUTTON&&e.rowType!==te.ADD_BUTTON,Sx=(e,t,r)=>r===!1||r instanceof Function&&!r({rowIndex:t,row:e});function mt(e=[]){return[...e]}function ya(e,t){let r=e.indexOf(t),o=[...e];return r>-1&&o.splice(r,1),o}function zl(e=[],t=[],r="id"){let o=t.map(i=>(0,ga.default)(i,r));return e.filter(i=>!o.includes(i))}function Sn(e=[],t=[],r="id"){let o=t.map(i=>(0,ga.default)(i,r));return e.filter(i=>o.includes(i))}function n2({displayableRows:e=[],selectableRowKey:t="id",hasSecuredRows:r,unlockedRowsIds:o=[],hideCheckbox:n}){let i=[];for(let l=0;l<e.length;l++){let a=e[l];bx(a)&&!Vl({row:a,selectableRowKey:t,hasSecuredRows:r,unlockedRowsIds:o})&&Sx(a,l,n)&&i.push(a[t])}return i}var h2={dataRows:[],selectedRows:mt(),groupCollapsed:new Set,addRows:[],dataRowsBeforeEdit:[]},xa=e=>e.selectedRows.length>0,vx=(e,t)=>e.indexOf(t)>-1,i2=(e,t)=>{let r=e.dataRows.map(o=>{if(vx(t.allSelectableKey,o[t.selectableRowKey])){if(t.changeOtherColumnOnClick){let{keyColumn:n,newValue:i}=t.changeOtherColumnOnClick;return y(s({},o),{[t.keyColumn]:t.value,rowType:te.EDIT,[n]:i})}return y(s({},o),{[t.keyColumn]:t.value,rowType:te.EDIT})}return o});return y(s({},e),{dataRows:r})},l2=e=>y(s({},e),{selectedRows:mt()}),Ca=(e,t)=>{let{addOneByOne:r,selectableRowKey:o,groupKey:n,groupId:i}=t,{addRows:l}=e,a=[...l,s({[o]:Date.now(),rowType:te.NEW},n!==o?{[n]:i}:{})];return y(s({},e),{addRows:l!=null&&l.length&&r?l:a})},s2=(e,{keyId:t,selectableRowKey:r})=>{let{addRows:o}=e;return y(s({},e),{addRows:o.filter(n=>n[r]!==t)})},a2=e=>y(s({},e),{addRows:[]}),g2=(e,t,r,o,n,i)=>{var a;let l=t.findIndex(p=>p[n]===o);if(l>-1){t[l]=Hl(y(s({},t[l]),{rowType:te.EDIT,_touched:!0}),r,e);return}for(let p of t)(a=p==null?void 0:p[i])!=null&&a.length&&g2(e,p[i],r,o,n,i)},ba=(e,{data:t,key:r,keyId:o,selectableRowKey:n,isSubLevels:i=!1,subDataKey:l=""})=>{let{addRows:a,dataRows:p}=e,c=[...p],m=[...a];if(i)g2(t,c,r,o,n,l);else{let f=c.findIndex(u=>u[n]===o);f>-1&&(c[f]=Hl(y(s({},c[f]),{rowType:te.EDIT,_touched:!0}),r,t));let d=m.findIndex(u=>u[n]===o);d>-1&&(m[d]=Hl(y(s({},m[d]),{_touched:!0}),r,t))}return y(s({},e),{dataRows:c,addRows:m})},wx=(e,{selectableRowKey:t,keyId:r,data:o})=>{let{dataRows:n,addRows:i}=e,l=[...n],a=l.findIndex(u=>u[t]===r),p=[...i],c=p.findIndex(u=>u[t]===r),m=c!==-1,f=m?p:l,d=m?c:a;return f[d]=s(s(s({},f[d]),o),m?{}:{rowType:te.EDIT}),y(s({},e),{[m?"addRows":"dataRows"]:f})},c2=(e,t)=>{let{itemKey:r,onlyOneRow:o,selectableRowKey:n,groupSelection:i,shiftKey:l}=t,{dataRows:a}=e,p=a.find(c=>c[n]===r);if(!(0,wa.default)(p==null?void 0:p.groupId)&&i){let c=a.reduce((m,f)=>f.groupId===p.groupId?[...m,f[n]]:m,[]);return y(s({},e),{selectedRows:mt(o?[c]:[...e.selectedRows,...c])})}if(l&&!o){let c=[],m=a.findIndex(d=>d[n].toString()===r.toString()),f=t.displayableRows.map(d=>d[n]);for(;m>=0;){let d=a[m][n];if(e.selectedRows.includes(d))break;f.includes(d)&&c.push(d),m--}return y(s({},e),{selectedRows:mt([...c,...e.selectedRows])})}return y(s({},e),{selectedRows:mt(o?[r]:[...e.selectedRows,r])})},p2=(e,t)=>{let{itemKey:r,selectableRowKey:o,groupSelection:n}=t,{dataRows:i}=e,l=i.find(p=>p[o]===r),a=mt(e.selectedRows);return!(0,wa.default)(l==null?void 0:l.groupId)&&n&&i.forEach(p=>{p.groupId===l.groupId&&(a=ya(a,p[o]))}),a=ya(a,t.itemKey),y(s({},e),{selectedRows:a})},Sa=(e,t,r,o)=>{let n=t[0];t.length===1?e[n].isCollapsed=r:(t.shift(),Sa(e[n][o],t,r,o))},y2=(e,t,r)=>{var o;for(let n=0;n<e.length;n++)(o=e[n][r])!=null&&o.length&&(e[n].isCollapsed=t,y2(e[n][r],t,r))},d2=(e,t)=>{let{groupId:r}=t,o=new Set(e.groupCollapsed);return o.add(r),y(s({},e),{groupCollapsed:o})},m2=(e,t)=>{let{groupId:r}=t,o=new Set(e.groupCollapsed);return o.delete(r),y(s({},e),{groupCollapsed:o})},vn={IDLE:"IDLE",EDIT:"EDIT",PERMANENT_EDIT:"PERMANENT_EDIT",ADD:"ADD"},Ix=e=>e,u2=(e,t,r)=>(0,P.transition)(t,e,(0,P.reduce)((o,{groupId:n})=>{let i=new Set(o.groupCollapsed);return r(i,n),y(s({},o),{groupCollapsed:i})})),va=(e,t)=>y(s({},e),{dataRows:t}),f2=(e,{subDataKey:t,shouldCollapse:r})=>{let o=(0,Ro.default)(e.dataRows);return y2(o,r,t),va(e,o)},x2=(0,P.createMachine)({IDLE:(0,P.state)((0,P.transition)("selectItem","IDLE",(0,P.reduce)(c2)),(0,P.transition)("unselectItem","IDLE",(0,P.reduce)(p2)),(0,P.transition)("selectRows","IDLE",(0,P.reduce)((e,{selectedRows:t})=>y(s({},e),{selectedRows:t}))),(0,P.transition)("add","ADD",(0,P.reduce)(Ca)),(0,P.transition)("updateCtx","IDLE",(0,P.reduce)((e,t)=>y(s({},e),{dataRows:t.data}))),(0,P.transition)("edit","EDIT",(0,P.reduce)(e=>y(s({},e),{dataRowsBeforeEdit:(0,Ro.default)(e.dataRows)})),(0,P.guard)(xa)),(0,P.transition)("deleteRow","IDLE",(0,P.guard)(xa)),u2("IDLE","collapseGroup",(e,t)=>e.add(t)),u2("IDLE","expandGroup",(e,t)=>e.delete(t)),(0,P.transition)("collapse","IDLE",(0,P.reduce)((e,{root:t,subDataKey:r})=>{let o=(0,Ro.default)(e.dataRows);return Sa(o,t,!0,r),va(e,o)})),(0,P.transition)("unCollapse","IDLE",(0,P.reduce)((e,{root:t,subDataKey:r})=>{let o=(0,Ro.default)(e.dataRows);return Sa(o,t,!1,r),va(e,o)})),(0,P.transition)("collapseAll","IDLE",(0,P.reduce)((e,{subDataKey:t})=>f2(e,{subDataKey:t,shouldCollapse:!0}))),(0,P.transition)("unCollapseAll","IDLE",(0,P.reduce)((e,{subDataKey:t})=>f2(e,{subDataKey:t,shouldCollapse:!1}))),(0,P.transition)("collapseGroup","IDLE",(0,P.reduce)(d2)),(0,P.transition)("expandGroup","IDLE",(0,P.reduce)(m2)),(0,P.transition)("input","IDLE",(0,P.reduce)(ba)),(0,P.transition)("alwaysEditMode","PERMANENT_EDIT",(0,P.reduce)(e=>y(s({},e),{dataRowsBeforeEdit:(0,Ro.default)(e.dataRows)}))),(0,P.transition)("search","IDLE",(0,P.reduce)((e,{dataRows:t})=>s(y(s({},e),{searchState:!0}),t?{dataRows:t}:{})))),ADD:(0,P.state)((0,P.transition)("cancel","IDLE",(0,P.reduce)(e=>y(s({},e),{addRows:[]}))),(0,P.transition)("delete","ADD",(0,P.reduce)(s2)),(0,P.transition)("deleteNewRows","ADD",(0,P.reduce)(a2)),(0,P.transition)("input","ADD",(0,P.reduce)((e,t)=>{let{addRows:r}=e,o=[...r],n=o.findIndex(i=>i[t.selectableRowKey]===t.keyId);return o[n]=y(s({},o[n]),{[t.key]:t.data,_touched:!0}),y(s({},e),{addRows:o})})),(0,P.transition)("updateLine","ADD",(0,P.reduce)((e,t)=>{let{addRows:r}=e,o=[...r],n=o.findIndex(i=>i[t.selectableRowKey]===t.keyId);return o[n]=s(y(s({},o[n]),{_touched:!0}),t.data),y(s({},e),{addRows:o})})),(0,P.transition)("add","ADD",(0,P.reduce)(Ca)),(0,P.transition)("validate","IDLE",(0,P.reduce)((e,t)=>y(s({},e),{addRows:[]})))),EDIT:(0,P.state)((0,P.transition)("cancel","IDLE",(0,P.reduce)(e=>y(s({},e),{selectedRows:mt(),dataRows:e.dataRowsBeforeEdit,dataRowsBeforeEdit:(0,Ro.default)(e.dataRowsBeforeEdit)}))),(0,P.transition)("validate","IDLE",(0,P.reduce)(e=>y(s({},e),{selectedRows:mt(),dataRowsBeforeEdit:[]}))),(0,P.transition)("input","EDIT",(0,P.reduce)(ba)),(0,P.transition)("updateLine","EDIT",(0,P.reduce)((e,t)=>{let{dataRows:r}=e,o=[...r],n=o.findIndex(i=>i[t.selectableRowKey]===t.keyId);return o[n]=y(s(s({},o[n]),t.data),{rowType:te.EDIT}),y(s({},e),{dataRows:o})})),(0,P.transition)("updateCtx","EDIT",(0,P.reduce)((e,t)=>y(s({},e),{dataRows:t.data}))),(0,P.transition)("selectAllColumn","PERMANENT_EDIT",(0,P.reduce)(i2)),(0,P.transition)("unselectAllColumn","PERMANENT_EDIT",(0,P.reduce)(l2))),PERMANENT_EDIT:(0,P.state)((0,P.transition)("leaveAlwaysEditMode","IDLE",(0,P.reduce)(e=>e)),(0,P.transition)("add","PERMANENT_EDIT",(0,P.reduce)(Ca)),(0,P.transition)("selectItem","PERMANENT_EDIT",(0,P.reduce)(c2)),(0,P.transition)("unselectItem","PERMANENT_EDIT",(0,P.reduce)(p2)),(0,P.transition)("delete","PERMANENT_EDIT",(0,P.reduce)(s2)),(0,P.transition)("deleteNewRows","PERMANENT_EDIT",(0,P.reduce)(a2)),(0,P.transition)("selectRows","PERMANENT_EDIT",(0,P.reduce)((e,{selectedRows:t})=>y(s({},e),{selectedRows:t}))),(0,P.transition)("cancel","PERMANENT_EDIT",(0,P.reduce)(e=>y(s({},e),{dataRows:e.dataRowsBeforeEdit,dataRowsBeforeEdit:(0,Ro.default)(e.dataRowsBeforeEdit),addRows:[]}))),(0,P.transition)("validate","PERMANENT_EDIT",(0,P.reduce)((e,t)=>y(s({},e),{addRows:[]}))),(0,P.transition)("input","PERMANENT_EDIT",(0,P.reduce)(ba)),(0,P.transition)("updateLine","PERMANENT_EDIT",(0,P.reduce)(wx)),(0,P.transition)("updateCtx","PERMANENT_EDIT",(0,P.reduce)((e,t)=>y(s({},e),{dataRows:t.data,dataRowsBeforeEdit:(0,Ro.default)(t.data)}))),(0,P.transition)("selectAllColumn","PERMANENT_EDIT",(0,P.reduce)(i2)),(0,P.transition)("unselectAllColumn","PERMANENT_EDIT",(0,P.reduce)(l2)),(0,P.transition)("deleteRow","PERMANENT_EDIT",(0,P.guard)(xa)),(0,P.transition)("collapseGroup","PERMANENT_EDIT",(0,P.reduce)(d2)),(0,P.transition)("expandGroup","PERMANENT_EDIT",(0,P.reduce)(m2)))},Ix);var ut=["keyId","columnIndex","vtContext","tooltipDetail"],v2=[...ut,"type"];function w2(e,t,r,o,n){return n||!((e===vn.EDIT&&t||e===vn.ADD&&o===te.NEW||e===vn.PERMANENT_EDIT)&&r)}var fe=(e,t,r)=>(0,C2.default)(e,t,r),Hl=(e,t,r)=>(0,b2.default)(e,t,r),Ia=e=>e==="Invalid date"?"":e,I2=(e,t,r)=>{let o=(0,S2.default)(e,t).format(r);return Ia(o)};var Ul=(e,t)=>{let{multiple:r=!1,options:o,optionList:n=[],key:i}=t,l=o||n,a=fe(e,i,""),p=typeof l=="function"?l(e):l;return r?p.filter(({value:c})=>a==null?void 0:a.includes(c)):p.find(({value:c})=>c===a)};var T2=v(require("lodash/isEmpty")),k2=v(require("moment"));var Wl=(e,t={})=>{let{formatDate:r=Cn,outputFormat:o=Cn}=t;return!(0,T2.default)(e)&&(0,k2.default)(e,r!=="YYYY-MM-DD"?r:void 0).format(o)};var Gl=(e,t)=>{let{options:r,listData:o=[]}=t,i=(r||o).find(({value:l})=>l===e);return(i==null?void 0:i.name)||(i==null?void 0:i.label)||""};var $l=(e,t)=>{let{options:r,listStatus:o=[]}=t,i=(r||o).find(({status:l})=>l===e);return(i==null?void 0:i.value)||(i==null?void 0:i.label)};var Ut={OK_MANUEL:{value:"ok-manuel",label:"Valid\xE9 manuellement"},OK:{value:"ok",label:"Valid\xE9"},TO_DO:{value:"to-do",label:"\xC0 faire"},IN_PROGRESS:{value:"in-progress",label:"En cours"},TIME_OUT:{value:"time-out",label:"Retard"},ERROR:{value:"error",label:"Refus\xE9"},ERROR_MANUEL:{value:"error-manuel",label:"Refus\xE9 manuellement"}},R2="NONE";var jl=(e,t)=>{let{typeFooter:r,key:o,footerValue:n}=e;if(n&&["string","number"].includes(typeof n))return n;if(n&&typeof n=="function")return typeof n(t)=="string"?n(t):"";switch(r){case io.SUM:return t.reduce((i,l)=>i+(l[o]?fa(l[o]):0),0);case io.AMOUNT:return Fl(Number(t.reduce((i,l)=>i+(l[o]?fa(l[o]):0),0)).toFixed(2))}return""};var Ta={type:"text/csv;charset=utf-8",extension:".csv"},ka={type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",extension:".xlsx"},D2=(e,t,r="csv")=>{var m;let{key:o,idx:n,typeCell:i}=t,l=(0,M2.default)(e,o),a="";if(e.rowType===te.GROUP_BUTTON&&n===0)a=e.name;else{let f=typeof i===Jo.FUNCTION?i(e):i;switch(f){case B.AMOUNT:{a=r==="csv"?l:bn(l,t);break}case B.ATTACHMENT:case B.THUMBNAIL:{a=Array.isArray(l)?l==null?void 0:l.map(({link:d})=>d).join(", "):l==null?void 0:l.link;break}case B.AUTOCOMPLETE:{let d=Ul(e,t);Array.isArray(d)?a=d.map(({label:u})=>u).join(", "):a=d==null?void 0:d.label;break}case B.BADGE_STATUS:case B.SWITCH_BADGE_STATUS:{if(!l)a="";else{let d=f===B.SWITCH_BADGE_STATUS&&t.switchKey?(0,Ra.default)(l,{key:t.switchKey}):l;d?(d==null?void 0:d.status)===Ut.IN_PROGRESS.value&&(d!=null&&d.value)?a=(d==null?void 0:d.value)>999?`+${999}`:d==null?void 0:d.value:a=(m=(0,Ra.default)(Ut,u=>u.value===(d==null?void 0:d.status)))==null?void 0:m.label:a=""}break}case B.CHECKBOX:{a=l?"X":"";break}case B.DATE:{a=Wl(l,t);break}case B.NUMBER:{a=l;break}case B.SELECT:{a=Gl(l,t);break}case B.STATUS:{a=$l(l,t);break}case B.STRING:{a=l;break}case B.WALLET:{if(!l)a="";else{let{array:d=[]}=l;if(!d)return"";a=d.map(({id:u})=>u).join(", ")}break}case B.EMPTY:{a="";break}default:a=["string","number"].includes(typeof l)?l:""}}let{renderExport:p}=t;p&&(a=typeof p=="function"?p(e,a,r):p);let c=(a==null?void 0:a.content)||a;return["string","number"].includes(typeof c)?c:""},Tx=(e,t,r)=>{let o=D2(e,t,r),n={content:"",typeCell:t.typeCell,raw:e[t.key],rowType:e.rowType,groupId:e==null?void 0:e.groupId},{renderExport:i}=t;return i&&(o=typeof i=="function"?i(e,o,r):i),(o==null?void 0:o.style)!==void 0&&(o==null?void 0:o.content)!==void 0&&(n.style=o==null?void 0:o.style,n.content=o==null?void 0:o.content),["string","number"].includes(typeof o)&&(n.content=o),n},L2=(e,t)=>{let r=1;if(!(t==null?void 0:t.some(({footerValue:l,renderExportFooter:a,typeFooter:p})=>l||a||p)))return[];t==null||t.forEach(l=>{let{renderExportFooter:a}=l;if(a){let p=a(l,e);(p==null?void 0:p.length)>r&&(r=p==null?void 0:p.length)}});let n=new Array(t.length).fill({content:"",colSpan:1}),i=new Array(r).fill([]).map(()=>[...n.map(l=>s({},l))]);return t==null||t.forEach((l,a)=>{let{typeFooter:p,footerProps:c,renderExportFooter:m}=l,{colspan:f}=c||{};m?m(l,e).forEach((u,h)=>{i[h][a]={content:u,colSpan:1,typeCell:io.AMOUNT}}):i[0][a]={content:jl(l,e),colSpan:f||1,typeCell:p}}),i},kx=e=>!e.secured&&e.rowType!==te.ADD_BUTTON,Ea=(e,t,r={})=>{let{rowsFilter:o=kx,type:n="csv"}=r,i=[];for(let l of e)o(l)&&i.push(t.map((a,p)=>{let c=y(s({},a),{idx:p});return n==="csv"?D2(l,c,n):Tx(l,c,n)}));return i},N2=(e,t,r={})=>{let{delimiter:o=","}=r;var n=a=>{let p="";for(let c=0;c<a.length;c++){let m=(0,A2.default)(a[c])?"":a[c].toString();a[c]instanceof Date&&(m=a[c].toLocaleString());let f=m.replace(/"/g,'""'),d=new RegExp(`("|${(0,E2.default)(o)}|
|
|
1
|
+
"use strict";var Ay=Object.create;var jn=Object.defineProperty,Dy=Object.defineProperties,Ly=Object.getOwnPropertyDescriptor,Ny=Object.getOwnPropertyDescriptors,Py=Object.getOwnPropertyNames,Pi=Object.getOwnPropertySymbols,By=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable;var Tc=(e,t,r)=>t in e?jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&Tc(e,r,t[r]);if(Pi)for(var r of Pi(t))kc.call(t,r)&&Tc(e,r,t[r]);return e},y=(e,t)=>Dy(e,Ny(t));var _=(e,t)=>{var r={};for(var o in e)Fs.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Pi)for(var o of Pi(e))t.indexOf(o)<0&&kc.call(e,o)&&(r[o]=e[o]);return r};var Rc=(e,t)=>{for(var r in t)jn(e,r,{get:t[r],enumerable:!0})},Ec=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Py(t))!Fs.call(e,n)&&n!==r&&jn(e,n,{get:()=>t[n],enumerable:!(o=Ly(t,n))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?Ay(By(e)):{},Ec(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e)),Oy=e=>Ec(jn({},"__esModule",{value:!0}),e);var ee=(e,t,r)=>new Promise((o,n)=>{var i=p=>{try{a(r.next(p))}catch(c){n(c)}},l=p=>{try{a(r.throw(p))}catch(c){n(c)}},a=p=>p.done?o(p.value):Promise.resolve(p.value).then(i,l);a((r=r.apply(e,t)).next())});var cb={};Rc(cb,{AccordionSection:()=>t1,AddBoxMuiIcon:()=>Pc,AddBoxOutlinedMuiIcon:()=>_c,AddBoxRoundedMuiIcon:()=>zc,AddCircleOutlineMuiIcon:()=>Wc,AddMuiIcon:()=>Dc,AdminPanelSettingsMuiIcon:()=>$c,AlertIcon:()=>tf,ArchiveIcon:()=>of,ArrowDownwardMuiIcon:()=>Kc,ArrowDropDownMuiIcon:()=>Bi,ArrowDropUpMuiIcon:()=>Jc,ArrowLeftMuiIcon:()=>op,ArrowRightMuiIcon:()=>ip,AttachFileMuiIcon:()=>ap,Autocomplete:()=>ji,AutocompleteMultiple:()=>eu,AutocompleteMultipleInVT:()=>au,AutocompleteSingle:()=>iu,AutorenewMuiIcon:()=>dp,BackgroundLoader:()=>el,BadgeAdd:()=>bu,CalendarIcon:()=>rf,CancelMuiIcon:()=>fp,CheckBoxMuiIcon:()=>bp,CheckBoxOutlineBlankMuiIcon:()=>wp,CheckCircleMuiIcon:()=>kp,CheckCircleRoundedMuiIcon:()=>Mp,CheckMuiIcon:()=>yp,Checkbox:()=>Ur,CheckboxIcon:()=>Hr,ChevronLeftMuiIcon:()=>Lp,ChevronRightMuiIcon:()=>Bp,CloseIcon:()=>vt,CloseMuiIcon:()=>Oi,CloudIcon:()=>cl,CommentIcon:()=>nf,ContentCopyMuiIcon:()=>zp,ControlIcon:()=>lf,Crop32MuiIcon:()=>Ym,DataGridDS:()=>kl,DeleteMuiIcon:()=>Wp,DescriptionOutlinedMuiIcon:()=>jp,DocumentComposer:()=>ef,DownloadIcon:()=>sf,DragIndicatorMuiIcon:()=>Zp,DraggableList:()=>y0,DropdownIcon:()=>Yi,DuplicateIcon:()=>af,EditOutlinedMuiIcon:()=>_i,ErrorRoundedMuiIcon:()=>Fi,ExpandButton:()=>Ho,ExpandLessMuiIcon:()=>od,ExpandMoreMuiIcon:()=>Vr,FileCopyMuiIcon:()=>sd,FileDownloadMuiIcon:()=>pd,FileDownloadOutlinedMuiIcon:()=>ud,FileDropper:()=>Nl,FileUploadMuiIcon:()=>gd,FolderCheckIcon:()=>cf,FolderOpenMuiIcon:()=>Cd,HelpOutlinedMuiIcon:()=>vd,HideImageOutlinedMuiIcon:()=>Td,HistoryIcon:()=>pf,HomeOutlinedMuiIcon:()=>Ed,IndeterminateCheckBoxMuiIcon:()=>Dd,IndeterminateCheckBoxRoundedMuiIcon:()=>Pd,InfoIcon:()=>df,InfoMuiIcon:()=>_d,InfoRoundedMuiIcon:()=>Vi,KeyboardArrowDownMuiIcon:()=>Ud,KeyboardArrowLeftMuiIcon:()=>$d,KeyboardArrowRightMuiIcon:()=>Kd,ListIcon:()=>mf,Modal:()=>ke,MoreHorizMuiIcon:()=>qd,MoreIcon:()=>en,MoreVertMuiIcon:()=>zi,MoveToInboxMuiIcon:()=>om,NumericField:()=>R0,OpenInNewMuiIcon:()=>im,PanToolOutlinedMuiIcon:()=>am,PjIcon:()=>pl,PlusBoldIcon:()=>jr,PlusIcon:()=>uf,PopupIcon:()=>ff,PrintIcon:()=>hf,PrintOutlinedMuiIcon:()=>dm,ROW_TYPE:()=>te,RadioButtonCheckedMuiIcon:()=>fm,RadioButtonUncheckedMuiIcon:()=>ym,RefreshIcon:()=>gf,RefreshRoundedMuiIcon:()=>bm,RemoveMuiIcon:()=>wm,RotateRightIcon:()=>yf,SaveIcon:()=>ul,SearchIcon:()=>_o,SearchMuiIcon:()=>km,SelectedFlagIcon:()=>xf,SettingIcon:()=>fl,SettingsMuiIcon:()=>Hi,Snackbar:()=>xl,SnackbarBackgroundLoader:()=>D0,SplitButton:()=>L0,SplitIcon:()=>Cf,StacksIcon:()=>bf,SupportAgentMuiIcon:()=>Am,SwapIcon:()=>Sf,SyncMuiIcon:()=>Nm,TYPE_CELL:()=>B,TYPE_FOOTER_CELL:()=>io,TableIcon:()=>vf,ToDoIcon:()=>wf,TrashIcon:()=>ln,TrendingDownIcon:()=>If,TrendingUpIcon:()=>Tf,UnSelectedFlagIcon:()=>kf,UploadIcon:()=>Rf,VirtualTable:()=>gy,VirtualTableProvider:()=>yy,VisibilityMuiIcon:()=>Om,VisibilityOffMuiIcon:()=>Vm,WarningMuiIcon:()=>Um,WarningRoundedMuiIcon:()=>Ui,ZoomInMapRoundedIcon:()=>Xm,ZoomOutMapRoundedIcon:()=>Jm,exportData:()=>Yl,useDataManager:()=>U2,validation:()=>si});module.exports=Oy(cb);var e1=require("react"),Kt=require("@mui/material");var Mc=require("@mui/material/utils"),Ac=require("react/jsx-runtime"),Dc=(0,Mc.createSvgIcon)((0,Ac.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var Lc=require("@mui/material/utils"),Nc=require("react/jsx-runtime"),Pc=(0,Lc.createSvgIcon)((0,Nc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");var Bc=require("@mui/material/utils"),Oc=require("react/jsx-runtime"),_c=(0,Bc.createSvgIcon)((0,Oc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");var Fc=require("@mui/material/utils"),Vc=require("react/jsx-runtime"),zc=(0,Fc.createSvgIcon)((0,Vc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddBoxRounded");var Hc=require("@mui/material/utils"),Uc=require("react/jsx-runtime"),Wc=(0,Hc.createSvgIcon)((0,Uc.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var Gc=require("@mui/material/utils"),Vs=require("react/jsx-runtime"),$c=(0,Gc.createSvgIcon)([(0,Vs.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6z"},"0"),(0,Vs.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z"},"1")],"AdminPanelSettings");var jc=require("@mui/material/utils"),Yc=require("react/jsx-runtime"),Kc=(0,jc.createSvgIcon)((0,Yc.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var Zc=require("@mui/material/utils"),Xc=require("react/jsx-runtime"),Bi=(0,Zc.createSvgIcon)((0,Xc.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var qc=require("@mui/material/utils"),Qc=require("react/jsx-runtime"),Jc=(0,qc.createSvgIcon)((0,Qc.jsx)("path",{d:"M7 14l5-5 5 5z"}),"ArrowDropUp");var ep=require("@mui/material/utils"),tp=require("react/jsx-runtime"),op=(0,ep.createSvgIcon)((0,tp.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");var rp=require("@mui/material/utils"),np=require("react/jsx-runtime"),ip=(0,rp.createSvgIcon)((0,np.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");var lp=require("@mui/material/utils"),sp=require("react/jsx-runtime"),ap=(0,lp.createSvgIcon)((0,sp.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");var cp=require("@mui/material/utils"),pp=require("react/jsx-runtime"),dp=(0,cp.createSvgIcon)((0,pp.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"}),"Autorenew");var mp=require("@mui/material/utils"),up=require("react/jsx-runtime"),fp=(0,mp.createSvgIcon)((0,up.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var hp=require("@mui/material/utils"),gp=require("react/jsx-runtime"),yp=(0,hp.createSvgIcon)((0,gp.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var xp=require("@mui/material/utils"),Cp=require("react/jsx-runtime"),bp=(0,xp.createSvgIcon)((0,Cp.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");var Sp=require("@mui/material/utils"),vp=require("react/jsx-runtime"),wp=(0,Sp.createSvgIcon)((0,vp.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");var Ip=require("@mui/material/utils"),Tp=require("react/jsx-runtime"),kp=(0,Ip.createSvgIcon)((0,Tp.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");var Rp=require("@mui/material/utils"),Ep=require("react/jsx-runtime"),Mp=(0,Rp.createSvgIcon)((0,Ep.jsx)("path",{d:"M 12 2 C 6.48 2 2 6.48 2 12 s 4.48 10 10 10 s 10 -4.48 10 -10 S 17.52 2 12 2 M 9.29 16.29 L 5.7 12.7 a 0.996 0.996 0 0 1 0 -1.41 c 0.39 -0.39 1.02 -0.39 1.41 0 L 10 14.17 l 6.88 -6.88 c 0.39 -0.39 1.02 -0.39 1.41 0 s 0.39 1.02 0 1.41 l -7.59 7.59 c -0.38 0.39 -1.02 0.39 -1.41 0"}),"CheckCircleRounded");var Ap=require("@mui/material/utils"),Dp=require("react/jsx-runtime"),Lp=(0,Ap.createSvgIcon)((0,Dp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Np=require("@mui/material/utils"),Pp=require("react/jsx-runtime"),Bp=(0,Np.createSvgIcon)((0,Pp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var Op=require("@mui/material/utils"),_p=require("react/jsx-runtime"),Oi=(0,Op.createSvgIcon)((0,_p.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Fp=require("@mui/material/utils"),Vp=require("react/jsx-runtime"),zp=(0,Fp.createSvgIcon)((0,Vp.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");var Hp=require("@mui/material/utils"),Up=require("react/jsx-runtime"),Wp=(0,Hp.createSvgIcon)((0,Up.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");var Gp=require("@mui/material/utils"),$p=require("react/jsx-runtime"),jp=(0,Gp.createSvgIcon)([(0,$p.jsx)("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"})],"DescriptionOutlined");var Yp=require("@mui/material/utils"),Kp=require("react/jsx-runtime"),Zp=(0,Yp.createSvgIcon)((0,Kp.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var Xp=require("@mui/material/utils"),qp=require("react/jsx-runtime"),_i=(0,Xp.createSvgIcon)((0,qp.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");var Qp=require("@mui/material/utils"),Jp=require("react/jsx-runtime"),Fi=(0,Qp.createSvgIcon)((0,Jp.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"ErrorRounded");var ed=require("@mui/material/utils"),td=require("react/jsx-runtime"),od=(0,ed.createSvgIcon)((0,td.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");var rd=require("@mui/material/utils"),nd=require("react/jsx-runtime"),Vr=(0,rd.createSvgIcon)((0,nd.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var id=require("@mui/material/utils"),ld=require("react/jsx-runtime"),sd=(0,id.createSvgIcon)((0,ld.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");var ad=require("@mui/material/utils"),cd=require("react/jsx-runtime"),pd=(0,ad.createSvgIcon)((0,cd.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload");var dd=require("@mui/material/utils"),md=require("react/jsx-runtime"),ud=(0,dd.createSvgIcon)((0,md.jsx)("path",{d:"M 18 15 v 3 H 6 v -3 H 4 v 3 c 0 1.1 0.9 2 2 2 h 12 c 1.1 0 2 -0.9 2 -2 v -3 Z m -1 -4 l -1.41 -1.41 L 13 12.17 V 4 h -2 v 8.17 L 8.41 9.59 L 7 11 l 5 5 Z"}),"FileDownloadOutlinedIcon");var fd=require("@mui/material/utils"),hd=require("react/jsx-runtime"),gd=(0,fd.createSvgIcon)((0,hd.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload");var yd=require("@mui/material/utils"),xd=require("react/jsx-runtime"),Cd=(0,yd.createSvgIcon)((0,xd.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen");var bd=require("@mui/material/utils"),Sd=require("react/jsx-runtime"),vd=(0,bd.createSvgIcon)([(0,Sd.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})],"HelpOutlined");var wd=require("@mui/material/utils"),Id=require("react/jsx-runtime"),Td=(0,wd.createSvgIcon)((0,Id.jsx)("path",{d:"M19 5v11.17l2 2V5c0-1.1-.9-2-2-2H5.83l2 2zM2.81 2.81 1.39 4.22 3 5.83V19c0 1.1.9 2 2 2h13.17l1.61 1.61 1.41-1.41zM5 19V7.83l7.07 7.07-.82 1.1L9 13l-3 4h8.17l2 2z"}),"HideImageOutlined");var kd=require("@mui/material/utils"),Rd=require("react/jsx-runtime"),Ed=(0,kd.createSvgIcon)((0,Rd.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81l5-4.5M12 3 2 12h3v8h6v-6h2v6h6v-8h3L12 3z"}),"HomeOutlined");var Md=require("@mui/material/utils"),Ad=require("react/jsx-runtime"),Dd=(0,Md.createSvgIcon)((0,Ad.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var Ld=require("@mui/material/utils"),Nd=require("react/jsx-runtime"),Pd=(0,Ld.createSvgIcon)((0,Nd.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1z"}),"IndeterminateCheckBoxRounded");var Bd=require("@mui/material/utils"),Od=require("react/jsx-runtime"),_d=(0,Bd.createSvgIcon)((0,Od.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");var Fd=require("@mui/material/utils"),Vd=require("react/jsx-runtime"),Vi=(0,Fd.createSvgIcon)((0,Vd.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1-8h-2V7h2z"}),"InfoRounded");var zd=require("@mui/material/utils"),Hd=require("react/jsx-runtime"),Ud=(0,zd.createSvgIcon)((0,Hd.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");var Wd=require("@mui/material/utils"),Gd=require("react/jsx-runtime"),$d=(0,Wd.createSvgIcon)((0,Gd.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");var jd=require("@mui/material/utils"),Yd=require("react/jsx-runtime"),Kd=(0,jd.createSvgIcon)((0,Yd.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");var Zd=require("@mui/material/utils"),Xd=require("react/jsx-runtime"),qd=(0,Zd.createSvgIcon)((0,Xd.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var Qd=require("@mui/material/utils"),Jd=require("react/jsx-runtime"),zi=(0,Qd.createSvgIcon)((0,Jd.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");var em=require("@mui/material/utils"),tm=require("react/jsx-runtime"),om=(0,em.createSvgIcon)((0,tm.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"}),"MoveToInbox");var rm=require("@mui/material/utils"),nm=require("react/jsx-runtime"),im=(0,rm.createSvgIcon)((0,nm.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var lm=require("@mui/material/utils"),sm=require("react/jsx-runtime"),am=(0,lm.createSvgIcon)((0,sm.jsx)("path",{d:"M8.73564 18.5416C8.35412 18.5416 7.99808 18.4558 7.66752 18.2843C7.33683 18.1129 7.06148 17.8669 6.84148 17.5464L1.90064 10.306C1.82162 10.1928 1.78773 10.0696 1.79898 9.93659C1.81023 9.80353 1.86814 9.68895 1.97273 9.59284C2.19398 9.37173 2.45578 9.24701 2.75814 9.21867C3.06037 9.19034 3.33599 9.2643 3.58502 9.44055L6.25002 11.2964V3.77409C6.25002 3.59701 6.30995 3.44853 6.42981 3.32867C6.54967 3.20895 6.69814 3.14909 6.87523 3.14909C7.05245 3.14909 7.20085 3.20895 7.32044 3.32867C7.44016 3.44853 7.50002 3.59701 7.50002 3.77409V12.2595C7.50002 12.5601 7.36544 12.7824 7.09627 12.9264C6.82696 13.0704 6.56676 13.0533 6.31564 12.8749L4.12023 11.3364L7.87189 16.8285C7.96273 16.9717 8.0853 17.0846 8.2396 17.1674C8.39405 17.2502 8.55939 17.2916 8.73564 17.2916H13.9584C14.4807 17.2916 14.9238 17.1097 15.2877 16.746C15.6515 16.3821 15.8334 15.939 15.8334 15.4166V4.37492C15.8334 4.19784 15.8933 4.04944 16.0131 3.92971C16.133 3.80985 16.2815 3.74992 16.4586 3.74992C16.6358 3.74992 16.7842 3.80985 16.9038 3.92971C17.0235 4.04944 17.0834 4.19784 17.0834 4.37492V15.4166C17.0834 16.2798 16.7784 17.0164 16.1684 17.6264C15.5582 18.2365 14.8215 18.5416 13.9584 18.5416H8.73564ZM10.0725 1.48242C10.2496 1.48242 10.398 1.54228 10.5177 1.66201C10.6373 1.78187 10.6971 1.93034 10.6971 2.10742V9.16659C10.6971 9.34367 10.6372 9.49208 10.5173 9.6118C10.3974 9.73166 10.249 9.79159 10.0719 9.79159C9.89467 9.79159 9.74627 9.73166 9.62669 9.6118C9.50696 9.49208 9.4471 9.34367 9.4471 9.16659V2.10742C9.4471 1.93034 9.50703 1.78187 9.62689 1.66201C9.74676 1.54228 9.8953 1.48242 10.0725 1.48242ZM13.2696 2.31576C13.4467 2.31576 13.5951 2.37562 13.7148 2.49534C13.8344 2.6152 13.8942 2.76367 13.8942 2.94076V9.16659C13.8942 9.34367 13.8343 9.49208 13.7144 9.6118C13.5945 9.73166 13.4461 9.79159 13.269 9.79159C13.0918 9.79159 12.9434 9.73166 12.8238 9.6118C12.704 9.49208 12.6442 9.34367 12.6442 9.16659V2.94076C12.6442 2.76367 12.7041 2.6152 12.824 2.49534C12.9438 2.37562 13.0924 2.31576 13.2696 2.31576Z"}),"PanToolOutlined");var cm=require("@mui/material/utils"),pm=require("react/jsx-runtime"),dm=(0,cm.createSvgIcon)((0,pm.jsx)("path",{d:"M 19 8 h -1 V 3 H 6 v 5 H 5 c -1.66 0 -3 1.34 -3 3 v 6 h 4 v 4 h 12 v -4 h 4 v -6 c 0 -1.66 -1.34 -3 -3 -3 M 8 5 h 8 v 3 H 8 Z m 8 12 v 2 H 8 v -4 h 8 Z m 2 -2 v -2 H 6 v 2 H 4 v -4 c 0 -0.55 0.45 -1 1 -1 h 14 c 0.55 0 1 0.45 1 1 v 4 Z"}),"PrintOutlinedIcon");var mm=require("@mui/material/utils"),um=require("react/jsx-runtime"),fm=(0,mm.createSvgIcon)((0,um.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonChecked");var hm=require("@mui/material/utils"),gm=require("react/jsx-runtime"),ym=(0,hm.createSvgIcon)((0,gm.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked");var xm=require("@mui/material/utils"),Cm=require("react/jsx-runtime"),bm=(0,xm.createSvgIcon)((0,Cm.jsx)("path",{d:"M17.65 6.35c-1.63-1.63-3.94-2.57-6.48-2.31-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20c3.19 0 5.93-1.87 7.21-4.56.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53-1.13 2.43-3.84 3.97-6.8 3.31-2.22-.49-4.01-2.3-4.48-4.52C5.31 9.44 8.26 6 12 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71z"}),"RefreshRounded");var Sm=require("@mui/material/utils"),vm=require("react/jsx-runtime"),wm=(0,Sm.createSvgIcon)((0,vm.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");var Im=require("@mui/material/utils"),Tm=require("react/jsx-runtime"),km=(0,Im.createSvgIcon)((0,Tm.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");var Rm=require("@mui/material/utils"),Em=require("react/jsx-runtime"),Hi=(0,Rm.createSvgIcon)((0,Em.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");var Mm=require("@mui/material/utils"),Yn=require("react/jsx-runtime"),Am=(0,Mm.createSvgIcon)([(0,Yn.jsx)("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),(0,Yn.jsx)("circle",{cx:"9",cy:"13",r:"1"},"1"),(0,Yn.jsx)("circle",{cx:"15",cy:"13",r:"1"},"2"),(0,Yn.jsx)("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")],"supportAgent");var Dm=require("@mui/material/utils"),Lm=require("react/jsx-runtime"),Nm=(0,Dm.createSvgIcon)((0,Lm.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Sync");var Pm=require("@mui/material/utils"),Bm=require("react/jsx-runtime"),Om=(0,Pm.createSvgIcon)((0,Bm.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");var _m=require("@mui/material/utils"),Fm=require("react/jsx-runtime"),Vm=(0,_m.createSvgIcon)((0,Fm.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");var zm=require("@mui/material/utils"),Hm=require("react/jsx-runtime"),Um=(0,zm.createSvgIcon)((0,Hm.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var Wm=require("@mui/material/utils"),Gm=require("react/jsx-runtime"),Ui=(0,Wm.createSvgIcon)((0,Gm.jsx)("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"WarningRounded");var $m=require("@mui/material/utils"),jm=require("react/jsx-runtime"),Ym=(0,$m.createSvgIcon)((0,jm.jsx)("path",{d:"M5.51185 17.5C5.00668 17.5 4.5791 17.325 4.2291 16.975C3.8791 16.625 3.7041 16.1974 3.7041 15.6923V8.30775C3.7041 7.80258 3.8791 7.375 4.2291 7.025C4.5791 6.675 5.00668 6.5 5.51185 6.5H18.8964C19.4015 6.5 19.8291 6.675 20.1791 7.025C20.5291 7.375 20.7041 7.80258 20.7041 8.30775V15.6923C20.7041 16.1974 20.5291 16.625 20.1791 16.975C19.8291 17.325 19.4015 17.5 18.8964 17.5H5.51185ZM5.51185 16H18.8964C18.9734 16 19.0439 15.9679 19.1079 15.9038C19.172 15.8398 19.2041 15.7692 19.2041 15.6923V8.30775C19.2041 8.23075 19.172 8.16025 19.1079 8.09625C19.0439 8.03208 18.9734 8 18.8964 8H5.51185C5.43485 8 5.36435 8.03208 5.30035 8.09625C5.23619 8.16025 5.2041 8.23075 5.2041 8.30775V15.6923C5.2041 15.7692 5.23619 15.8398 5.30035 15.9038C5.36435 15.9679 5.43485 16 5.51185 16Z"}),"Crop32");var Km=require("@mui/material/utils"),Zm=require("react/jsx-runtime"),Xm=(0,Km.createSvgIcon)((0,Zm.jsx)("path",{d:"M9,9l0-6L7,3l0,2.59L3.91,2.5L2.5,3.91L5.59,7L3,7l0,2L9,9z M21,9V7l-2.59,0l3.09-3.09L20.09,2.5L17,5.59V3l-2,0l0,6L21,9z M3,15l0,2h2.59L2.5,20.09l1.41,1.41L7,18.41L7,21h2l0-6L3,15z M15,15l0,6h2v-2.59l3.09,3.09l1.41-1.41L18.41,17H21v-2L15,15z"}),"ZoomInMapRounded");var qm=require("@mui/material/utils"),Qm=require("react/jsx-runtime"),Jm=(0,qm.createSvgIcon)((0,Qm.jsx)("path",{d:"M15,3l2.3,2.3l-2.89,2.87l1.42,1.42L18.7,6.7L21,9V3H15z M3,9l2.3-2.3l2.87,2.89l1.42-1.42L6.7,5.3L9,3H3V9z M9,21 l-2.3-2.3l2.89-2.87l-1.42-1.42L5.3,17.3L3,15v6H9z M21,15l-2.3,2.3l-2.87-2.89l-1.42,1.42l2.89,2.87L15,21h6V15z"}),"ZoomOutMapRounded");var Bo=require("react/jsx-runtime"),_y=({title:e,children:t,extraTitle:r,isDisabled:o=!1,isExpanded:n=!0,onToggle:i})=>{let[l,a]=(0,e1.useState)(n);return(0,Bo.jsxs)(Kt.Accordion,{expanded:l,disabled:o,onChange:()=>{typeof i=="function"&&!o&&i(!l),a(c=>!c)},disableGutters:!0,"data-role":"accordionSection",sx:{"&:before":{height:"0px"}},children:[(0,Bo.jsxs)(Kt.AccordionSummary,{sx:{flexDirection:"row-reverse",width:"100%",alignItems:"center",display:"flex",overflow:"hidden"},expandIcon:(0,Bo.jsx)(Vr,{}),children:[(0,Bo.jsx)(Kt.Typography,{variant:"h6",noWrap:!0,sx:{ml:1,minWidth:"50px",flexShrink:0},children:e}),r&&(0,Bo.jsx)(Kt.Box,{sx:{ml:1,flex:1},onClick:c=>c.stopPropagation(),children:r})]}),(0,Bo.jsx)(Kt.AccordionDetails,{sx:{mt:1},children:t})]})},t1=_y;var Q=require("react"),le=require("@mui/material"),p1=v(require("autosuggest-highlight/match")),d1=v(require("autosuggest-highlight/parse")),m1=v(require("lodash/uniq")),$i=require("react-window");var zs=v(require("i18next"));var o1={attachments:{error:"Une erreur est survenue\xA0!"},autocomplete:{createOption:'Create "{{value}}"'},common:{addRow:"+ Add a row",cancel:"Cancel",export:"Export",import:"Import",loading:"Loading ...",loading2:"Loading...",or:"or",outOf:"out of",save:"Save",select:"Select",selectedCount:"{{count}} s\xE9lectionn\xE9(s)",submit:"Submit",to:"to",noResult:"No result",search:"Search",all:"All",edit:"Edit",delete:"Delete"},columnsSetting:{title:"Columns setting",subtitle:"Select the columns that you want to appear on the table",columns:{display:"Display",columnName:"Column",filterable:"Filterable"},addColumn:"+ Add a column",restoreInitial:"Restore settings"},documentComposer:{createSection:"Create a section"},dashboard:{ba:{linkTo:"Linked to",wallets:"wallets"}},exportDialog:{title:"Export the data",legend:"Export format",exportButton:"Export",errorMessage:"The data export has failed.",exportAllPages:"Export all pages"},filesDropperDialog:{dropbox:"Drag your documents here",import:"import",scan:"scan",infoScanDPI:"(in 300 DPI)",fromExplorer:"from your files",limit:"Number of files:"},tooltips:{cancel:"Cancel",delete:"Delete",edit:"Edit",save:"Save"},validation:{errors:{datePeriodInvalid:"Invalid period",empty:"This field is required",invalidDate:"Invalid date (DD/MM/YYYY)",lessOrEqualThan:"Must be less than or equal to {{maxValue}}",moreThan:"Must be greater than {{minValue}}",moreOrEqualThan:"Must be greater than or equal to {{minValue}}",negativeValue:"It is not possible to enter a negative value"}},virtualTable:{searchBar:{placeholder:"Tap {{trigger}} to select a column"},uploadDialog:{filesListTitle:"My already imported files"},attachmentCell:{title:"Attachments"}}};var r1={attachments:{error:"Une erreur est survenue\xA0!"},autocomplete:{createOption:'Cr\xE9er "{{value}}"'},common:{addRow:"+ Ajouter une ligne",cancel:"Annuler",export:"Exporter",import:"Importer",loading:"Chargement ...",loading2:"Chargement en cours...",or:"ou",outOf:"sur",save:"Enregistrer",select:"S\xE9lectionner",selectedCount:"{{count}} s\xE9lectionn\xE9(s)",submit:"Valider",to:"au",noResult:"Aucun r\xE9sultat",search:"Rechercher",all:"Tous",edit:"Modifier",delete:"Supprimer"},columnsSetting:{title:"Param\xE9trage des colonnes",subtitle:"S\xE9lectionnez les colonnes que vous souhaitez faire appara\xEEtre dans le tableau",columns:{display:"Afficher",columnName:"Colonne",filterable:"Filtrable"},addColumn:"+ Ajouter une colonne",restoreInitial:"Restaurer les param\xE8tres"},documentComposer:{createSection:"Cr\xE9er une section"},dashboard:{ba:{linkTo:"Li\xE9e \xE0",wallets:"portefeuilles"}},exportDialog:{title:"Exporter le tableau",legend:"Format d'export\xA0:",exportButton:"Exporter",errorMessage:"L'exportation du tableau a \xE9chou\xE9.",exportAllPages:"Exporter toutes les pages"},filesDropperDialog:{dropbox:"Glisser les documents ici",import:"Importer les documents",scan:"scanner",infoScanDPI:"(en 300 DPI)",fromExplorer:"depuis vos fichiers",limit:"Nombre max.\xA0:"},tooltips:{cancel:"Annuler",delete:"Supprimer",edit:"Modifier",save:"Sauvegarder"},validation:{errors:{datePeriodInvalid:"La p\xE9riode est invalide",empty:"Ce champ est obligatoire",invalidDate:"Date invalide (JJ/MM/AAAA)",lessOrEqualThan:"Doit \xEAtre inf\xE9rieur ou \xE9gal \xE0 {{maxValue}}",moreThan:"Doit \xEAtre sup\xE9rieur \xE0 {{minValue}}",moreOrEqualThan:"Doit \xEAtre sup\xE9rieur ou \xE9gal \xE0 {{minValue}}",negativeValue:"Il n'est pas possible de saisir une valeur n\xE9gative"}},virtualTable:{searchBar:{placeholder:"Appuyez sur {{trigger}} pour s\xE9lectionner une colonne"},uploadDialog:{filesListTitle:"Mes fichiers d\xE9j\xE0 import\xE9s"},attachmentCell:{title:"Pi\xE8ces jointes"}}};var n1=typeof localStorage!="undefined"&&localStorage.getItem("user_lng")||"fr";zs.default.init({resources:{en:{translation:s({},o1)},fr:{translation:s({},r1)}},lng:n1,fallbackLng:n1,interpolation:{escapeValue:!1}});var F=zs.default;var zr=require("react"),Oo=require("@mui/material");var Hs=require("react/jsx-runtime"),i1=require("react"),Fy=(0,Oo.styled)(r=>{var o=r,{className:e}=o,t=_(o,["className"]);return(0,Hs.jsx)(Oo.Tooltip,y(s({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${Oo.tooltipClasses.tooltip}`]:{boxShadow:e.shadows[2],fontWeight:"normal"}})),Vy=6,zy=p=>{var c=p,{option:e,label:t,maxChipWidth:r,reserveForCounter:o,isDisabled:n,onDelete:i,sx:l}=c,a=_(c,["option","label","maxChipWidth","reserveForCounter","isDisabled","onDelete","sx"]);let[m,f]=(0,zr.useState)(!1),d=(0,zr.useRef)(null);return(0,zr.useEffect)(()=>{if(d.current&&r){let u=d.current.querySelector(".MuiChip-label");u&&u.scrollWidth>=r&&f(!0)}},[r]),(0,Hs.jsx)(Fy,{enterDelay:800,enterNextDelay:800,title:m?t:"",children:(0,i1.createElement)(Oo.Chip,y(s(y(s({},a),{label:t,size:"small",key:e==null?void 0:e.id,sx:s({maxWidth:r?`min(calc(100% - ${Vy}px - ${o!=null?o:0}px), ${r}px) !important`:"250px"},l),color:e==null?void 0:e.optionType,disabled:(e==null?void 0:e.disabled)||n}),!(e!=null&&e.disabled)&&{onDelete:i}),{ref:d}))})},Kn=zy;var he=require("react/jsx-runtime"),u1=8,Us=200,Zt="SELECT_ALL",Wi="ADD_OPTION",Ws=250,l1=35,Gs=52,s1=50,$s=66,a1=(0,le.styled)(le.Popper)({[`& .${le.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),f1=(0,le.styled)(r=>{var o=r,{className:e}=o,t=_(o,["className"]);return(0,he.jsx)(le.Tooltip,y(s({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${le.tooltipClasses.tooltip}`]:{boxShadow:e.shadows[2],fontWeight:"normal",maxHeight:300,overflowY:"auto"}})),h1=(0,Q.createContext)(null),Hy=({index:e,itemData:t,style:r})=>{var f;let o=(0,Q.use)(h1);if(!o)throw new Error("RowComponent must be used within AutocompleteContext");let{renderOption:n,value:i}=o,l=t.items[e],m=l[0],{key:a}=m,p=_(m,["key"]),c=y(s({},r),{top:((f=r.top)!=null?f:0)+u1});return n(p,l[1],l[2],c,i)},c1=(0,Q.forwardRef)(function(t,r){let o=(0,le.useTheme)(),n=(0,le.useMediaQuery)(o.breakpoints.up("sm"),{noSsr:!0}),b=t,{children:i,internalListRef:l,onItemsBuilt:a}=b,p=_(b,["children","internalListRef","onItemsBuilt"]),c=(0,Q.useMemo)(()=>{let D=[];for(let S of i)D.push(S),"children"in S&&Array.isArray(S.children)&&D.push(...S.children);return{items:D}},[i]),m=(0,Q.useMemo)(()=>{let D=new Map;return c.items.forEach((S,T)=>{if(Array.isArray(S)&&S[1]){let k=S[1];D.set(String(k.id),T)}}),D},[c.items]);(0,Q.useEffect)(()=>{a&&a(m)},[a,m]);let f=c.items.length,d=n?36:48,u=D=>Object.hasOwn(D,"group")?48:d,h=()=>f>8?8*d:c.items.map(u).reduce((D,S)=>D+S,0),I=p,{className:g,style:C}=I,x=_(I,["className","style"]);return(0,he.jsx)("div",y(s({ref:r},x),{children:(0,he.jsx)($i.List,{className:g,listRef:l,rowCount:f,rowHeight:D=>u(c.items[D]),rowComponent:Hy,rowProps:{itemData:c},style:{height:h()+2*u1,width:"100%"},overscanCount:5,tagName:"ul"})}))}),Gi=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),Uy=e=>e==null?void 0:e.label,Wy=(e,t)=>e.id===t.id,Ie=e=>e,Gy=({label:e,tooltip:t})=>{let[r,o]=(0,Q.useState)(!1),n=(0,Q.useRef)(null);return(0,Q.useEffect)(()=>{if(n.current){let i=n.current;i&&i.scrollWidth>i.clientWidth&&o(!0)}},[]),(0,he.jsx)(f1,{title:r?t:"",placement:"bottom-start",children:(0,he.jsx)(le.Box,{sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ref:n,children:e})})},$y=e=>{let Po=(0,le.useThemeProps)({props:e,name:"Autocomplete"}),{label:r,value:o,onChange:n,options:i,isError:l,isDisplayLabel:a=!0,customSearch:p,selectAllHidden:c=!1,selectAllLabel:m=F.t("common.all"),allSelectedLabel:f=F.t("common.all"),isDisabled:d=!1,expandSelectedTagsOnEdition:u=!1,InputProps:h,onIsSearchingChange:g,getOptionLabel:C=Uy,multiple:x=!1,onCreate:b,sx:I,disableAllSelectedTag:D,renderTag:S,renderOptionLabel:T,variant:k,disableSort:w,isOptionEqualToValue:A=Wy,placeholder:O,helperText:E,minListWidth:L=400}=Po,V=_(Po,["label","value","onChange","options","isError","isDisplayLabel","customSearch","selectAllHidden","selectAllLabel","allSelectedLabel","isDisabled","expandSelectedTagsOnEdition","InputProps","onIsSearchingChange","getOptionLabel","multiple","onCreate","sx","disableAllSelectedTag","renderTag","renderOptionLabel","variant","disableSort","isOptionEqualToValue","placeholder","helperText","minListWidth"]),H=(0,$i.useListRef)(null),M=(0,Q.useRef)(new Map),z=(0,Q.useRef)(null),$=(0,Q.useRef)(null),K=(0,Q.useRef)(null),X=(0,Q.useRef)([]),Z=(0,Q.useRef)([]),R=(0,Q.useCallback)(G=>{M.current=G},[]),N=(0,Q.useCallback)(G=>{var J;return Ie(G).id===Zt?"":(J=C(G))!=null?J:""},[C]),U=(0,Q.useCallback)(G=>w?G:G.sort((J,oe)=>N(J).localeCompare(N(oe))),[w,N]),re=(0,Q.useMemo)(()=>{let G=[...i!=null?i:[]];return w?G:G.sort((J,oe)=>N(J).localeCompare(N(oe)))},[i,w,N]),de=re.filter(G=>Ie(G).selected),Re=de[0]||null,W=o!==void 0,[Y,q]=(0,Q.useState)(de),[ge,ne]=(0,Q.useState)(Re),ce=W?o:x?Y:ge,[Ve,Ne]=(0,Q.useState)(""),[me,gt]=(0,Q.useState)(!1),[ue,gr]=(0,Q.useState)(!1),[$e,$t]=(0,Q.useState)(-1),[jt,yt]=(0,Q.useState)(0),[Ao,Un]=(0,Q.useState)(!1),[He,yr]=(0,Q.useState)(re),Do=(0,Q.useMemo)(()=>(0,le.createFilterOptions)(),[]),Lt=(0,Q.useMemo)(()=>(G,{inputValue:J})=>{if(!J)return G;let oe=Gi(J);return G.filter(ie=>Gi(N(ie)).includes(oe))},[N]),je=(0,Q.useCallback)(G=>{W||(x?q(G):ne(G));let J=typeof G=="function"?G(ce):G;n==null||n(J)},[n,W,x,ce]);(0,Q.useEffect)(()=>{yr(re)},[re]),(0,Q.useEffect)(()=>{W||(x?q(de):ne(Re))},[]),(0,Q.useEffect)(()=>{g==null||g(me)},[me,g]),(0,Q.useEffect)(()=>{if(!x||!$.current)return;let G=Array.from($.current.querySelectorAll('[data-measure="chip"]'));X.current=G.map(J=>{let oe=getComputedStyle(J),ie=Number.parseFloat(oe.marginLeft||"0"),pe=Number.parseFloat(oe.marginRight||"0");return Math.ceil(J.getBoundingClientRect().width+ie+pe)})},[ce,He,x]),(0,Q.useEffect)(()=>{if(!x||jt===0)return;let G=X.current.length;if(G===1){$t(1);return}let J=Math.max(0,jt-l1-Gs),oe=jt>Ws,ie=oe?X.current[0]:0,pe=oe?1:0;for(let Ue of X.current.slice(oe?1:0))if(pe===G-1&&ie+Ue<=J||pe<G&&ie+Ue<=J-s1)ie+=Ue,pe++;else break;$t(pe)},[ce,jt,x]),(0,Q.useEffect)(()=>{if(!x||!z.current)return;let G=new ResizeObserver(()=>{z.current&&yt(z.current.clientWidth)});return G.observe(z.current),yt(z.current.clientWidth),()=>G.disconnect()},[x]),(0,Q.useEffect)(()=>{var J,oe;if(!u||!x||!$.current)return;let G=new ResizeObserver(()=>{var ie,pe;Un(((pe=(ie=$.current)==null?void 0:ie.clientHeight)!=null?pe:0)>$s)});return G.observe($.current),Un(((oe=(J=$.current)==null?void 0:J.clientHeight)!=null?oe:0)>$s),()=>G.disconnect()},[x]);let xr=(0,Q.useCallback)((G,J)=>Gi(N(G)).split(/[\s\-.()]/).findIndex(oe=>oe.startsWith(J)),[N]),Cr=(0,Q.useCallback)((G,J)=>{let{inputValue:oe,getOptionLabel:ie}=J,pe=p?p(oe,G):w?Lt(G,{inputValue:oe}):Do(G,{inputValue:oe,getOptionLabel:ie});oe&&!w&&pe.sort((ve,Pe)=>{let Ct=Gi(oe),we=xr(ve,Ct),be=xr(Pe,Ct);return we===-1&&be===-1?0:we===-1?1:be===-1?-1:we-be});let Ue=pe.every(ve=>Ie(ve).disabled);return Z.current=[...x&&pe.length>1&&!c?[{id:Zt,label:"",disabled:Ue}]:[],...pe,...pe.length===0&&b?[{id:Wi,label:F.t("autocomplete.createOption",{value:Ve})}]:[]],Z.current},[p,N,Do,Lt,x,w,b,Ve,c,xr]),Nt=()=>{x&&setTimeout(()=>{K.current&&K.current.scrollTo({top:K.current.scrollHeight})},200)},Te=()=>{gt(!1),Ne("")},xt=(G,J,oe,ie)=>{var Ct;if(G.preventDefault(),G.stopPropagation(),!x&&((Ct=Ie(ie==null?void 0:ie.option))==null?void 0:Ct.id)!==Wi){je(J),Te();return}let pe=J,Ue=ce;if(oe==="removeOption"&&Ie(ie==null?void 0:ie.option).disabled)return;let Pe=He.filter(we=>{let{disabled:be,selected:Ee}=Ie(we);return be&&Ee});if(oe==="clear"){je(Pe);return}if(Ie(ie==null?void 0:ie.option).id===Zt)if(Z.current.filter(be=>Ie(be).id!==Zt).every(be=>Ie(be).disabled||Ue.some(Ee=>A(be,Ee))))je(be=>be.filter(Ee=>Ie(Ee).disabled||!Z.current.some(Ye=>A(Ee,Ye)&&Ie(Ye).id!==Zt)));else{let be=(0,m1.default)([...Ue,...Z.current.filter(Ee=>!Ue.find(Ye=>A(Ye,Ee))&&!Ie(Ee).disabled&&Ie(Ee).id!==Zt)]);je(be)}else if(Ie(ie==null?void 0:ie.option).id===Wi){if(b==null||b(Ve,He),!W){let we={id:Ve,label:Ve};yr(be=>U([...be,we])),je(x?be=>[...be,we]:we)}}else Z.current.length===1&&Te(),je(pe);Nt()},br=G=>{if(!x)return;let oe=ce.filter(ie=>!A(G,ie));je(oe)},rt=(0,Q.useCallback)((G,J,oe)=>{if(!x)return null;let ie=oe.options.filter(ve=>!Ie(ve).disabled||Ie(ve).selected);return G.length===ie.length&&!D?(0,he.jsx)(Kn,{label:f!=null?f:"",sx:{m:"3px"},isDisabled:d,onDelete:d?void 0:()=>{je([])}}):[...(!u&&(me||ue)&&G.length>1?G.slice(0,$e):G).map((ve,Pe)=>{var we;let Ct=s(y(s(s({},J({index:Pe})),d&&{onDelete:void 0}),{label:N(ve),key:`option-${Pe}`,size:"small"}),!u&&{onClick:be=>be.stopPropagation(),clickable:!1});return(we=S==null?void 0:S(Ct,ve))!=null?we:(0,he.jsx)(Kn,y(s({},Ct),{isDisabled:oe.disabled,maxChipWidth:Ws,reserveForCounter:G.length>1?s1:0,option:ve}))}),...x&&!u&&(me||ue)&&G.length>$e?[_r(G.length-$e,!0)]:[]]},[x,N,je,D,S,f,me,$e,ue]),go=(0,Q.useCallback)((G,J,{selected:oe},ie,pe)=>{var Di;let Ai=G,{onClick:Ue}=Ai,ve=_(Ai,["onClick"]),Pe=N(J),Ct=(0,p1.default)(Pe,Ve,{insideWords:!0,findAllOccurrences:!0}),we=(0,d1.default)(Pe,Ct),be=x?pe:[],Ee=we.map((bt,St)=>(0,he.jsx)(le.Box,{component:"span",sx:s({},bt.highlight&&{fontWeight:"600",display:"inline-block"}),children:bt.text.replaceAll(" ","\xA0")},St)),Ye=Ie(J);return(0,he.jsxs)(le.Box,y(s(y(s({component:"li","data-option-id":Ye.id},ve),{"aria-disabled":!1}),Ye.disabled?{"data-disabled":!0}:{onClick:Ue}),{sx:s({},x&&Ye.id===Zt&&{borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"divider"}),style:ie,children:[x&&Ye.id!==Wi&&(0,he.jsx)(le.Checkbox,{size:"small",style:{marginRight:8},disabled:!!Ye.disabled,checked:Ye.id===Zt&&Z.current.every(bt=>Ie(bt).id===Zt||be.some(St=>Ie(bt).disabled||A(bt,St)))||oe}),(0,he.jsx)(le.Box,{sx:s({overflow:"hidden"},Ye.disabled&&{opacity:.3}),children:x&&Ye.id===Zt?`${m} (${Z.current.length-1<He.length?`${Z.current.length-1} / ${He.length}`:He.length})`:(0,he.jsx)(Gy,{label:(Di=T==null?void 0:T(Ee,J))!=null?Di:Ee,tooltip:Pe})})]}),Ye.id)},[Ve,He,x,N,T,A,m]),Lo=(0,Q.useCallback)(G=>Ao&&u?(0,he.jsx)(le.Box,{ref:K,sx:s({},u?{maxHeight:$s,overflowY:"auto"}:{overflowY:"hidden"}),children:G}):G,[Ao,u]),No=G=>{var J;return(0,he.jsx)(le.TextField,y(s(y(s({},G),{variant:k,error:l,"data-role":"selector",size:"small"}),a&&r?{label:r}:{}),{placeholder:x&&(ce!=null&&ce.length)||!x&&ce?"":O,helperText:E,slotProps:{input:s(s({},G.InputProps),x&&y(s({startAdornment:Lo((J=G.InputProps)==null?void 0:J.startAdornment)},h||{}),{sx:s(s({},(!ce||!ce.length)&&{pt:1}),!u&&{overflow:"hidden",whiteSpace:"nowrap"}),onFocus:()=>{gr(!0)},onBlur:()=>{gr(!1)}})),htmlInput:y(s({},G.inputProps),{"data-role":"input-search"})}}))},_r=(G,J=!1)=>{if(!x)return null;let oe=ce,ie=$e===1?[...oe].slice(1):[...oe].slice(oe.length-G);return(0,he.jsx)(f1,{enterDelay:300,enterNextDelay:300,sx:{[`& .${le.tooltipClasses.tooltip}`]:{pb:"1px"}},title:(0,he.jsxs)(he.Fragment,{children:[ie.slice(0,Us).map(pe=>{var Pe;let Ue=Ie(pe),ve=s({key:`option-${Ue.id}`,label:N(pe),sx:{mb:.5,"&:not(:last-child)":{mr:.5}}},(!d||Ue.disabled)&&{onDelete:()=>br(pe)});return(Pe=S==null?void 0:S(ve,pe))!=null?Pe:(0,he.jsx)(Kn,y(s({},ve),{option:pe,isDisabled:d}))}),ie.length>Us&&(0,he.jsx)(le.Chip,{label:`+ ${ie.length-Us}`,size:"small",sx:{m:"3px"},disabled:d})]}),children:(0,he.jsx)(le.Chip,{label:`+ ${G}`,size:"small",disabled:d,sx:s(s({},J&&{m:"3px"}),d&&{"&.Mui-disabled":{pointerEvents:"auto"}}),onClick:pe=>{u||pe.stopPropagation()},clickable:u})})},Wn=()=>{if(x)return me&&$e===0?-1:$e};return(0,he.jsxs)(le.Box,{ref:z,sx:s({width:"100%",minWidth:0,overflow:"hidden",position:"relative"},I),children:[x&&(0,he.jsx)(le.Box,{ref:$,sx:{position:"absolute",visibility:"hidden",pr:`${d?Gs/2:Gs+l1}px`,boxSizing:"border-box",width:"100%"},children:ce.slice(0,30).map(G=>(0,he.jsx)("span",{"data-measure":"chip",style:{margin:3},children:(0,he.jsx)(Kn,{option:G,label:N(G),onDelete:d?void 0:()=>{},clickable:!1,maxChipWidth:Ws})},N(G)))}),(0,he.jsx)(h1,{value:{renderOption:go,value:ce},children:x?(0,he.jsx)(le.Autocomplete,y(s({},V),{disableListWrap:!0,value:ce,disabled:d,multiple:!0,disableCloseOnSelect:!0,autoHighlight:!0,open:me,inputValue:Ve,onInputChange:(G,J,oe)=>{oe==="input"&&Ne(J)},noOptionsText:F.t("common.noResult"),onOpen:()=>gt(!0),onClose:()=>{gt(!1),Ne("")},getOptionDisabled:G=>!!Ie(G).disabled,getOptionLabel:N,isOptionEqualToValue:A,filterOptions:Cr,limitTags:Wn(),getLimitTagsText:_r,renderValue:rt,renderOption:(G,J,oe)=>[G,J,oe],renderInput:No,onChange:xt,options:w?[...i!=null?i:[]]:He,sx:s({[`& .MuiInputBase-root${u?":not(.Mui-focused)":""}`]:{flexWrap:"nowrap",overflow:"hidden"}},I),slots:{popper:a1,chip:{size:"small"}},slotProps:{listbox:{component:c1,internalListRef:H,onItemsBuilt:R,currentValue:ce,sx:c?{}:{paddingTop:0}},paper:{sx:s({},L&&{minWidth:L})}}})):(0,he.jsx)(le.Autocomplete,y(s({},V),{disableListWrap:!0,value:ce!=null?ce:null,disabled:d,autoHighlight:!0,open:me,inputValue:Ve,onInputChange:(G,J,oe)=>{Ne(J)},noOptionsText:F.t("common.noResult"),onOpen:()=>gt(!0),onClose:()=>{gt(!1),Ne("")},getOptionDisabled:G=>!!Ie(G).disabled,getOptionLabel:N,isOptionEqualToValue:A,filterOptions:Cr,renderOption:(G,J,oe)=>[G,J,oe],renderInput:No,onChange:xt,options:w?[...i!=null?i:[]]:He,slots:{popper:a1,chip:{size:"small"}},slotProps:{listbox:{component:c1,internalListRef:H,onItemsBuilt:R,currentValue:ce},paper:{sx:s({},L&&{minWidth:L})}}}))})]})},ji=$y;var qn=require("react"),qi=require("@mui/material"),Xi=v(require("classnames"));var jy=[{label:"s",size:14},{label:"m",size:20}],g1=e=>{var r;return e?`${((r=jy.find(o=>o.label===e))==null?void 0:r.size)||e}px`:"100%"};var y1=require("react/jsx-runtime"),Yy=n=>{var i=n,{content:e,size:t,color:r}=i,o=_(i,["content","size","color"]);let l=g1(t);return(0,y1.jsx)("svg",y(s({width:l,height:l,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",display:"flex",color:r},o),{children:e}))},j=Yy;var nt=require("react/jsx-runtime"),Ky=e=>(0,nt.jsx)(j,s({content:(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("defs",{children:(0,nt.jsx)("path",{id:"9rj0vadmla",d:"M.784.089l.07.057L10 9.293 19.146.146l.07-.057a.5.5 0 01.638.765L10.707 10l9.147 9.146a.5.5 0 01-.638.765l-.07-.057L10 10.707.854 19.854l-.07.057a.5.5 0 01-.638-.765L9.293 10 .146.854A.5.5 0 01.784.089z"})}),(0,nt.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,nt.jsx)("mask",{id:"r2s1vr2yyb",fill:"#fff",children:(0,nt.jsx)("use",{xlinkHref:"#9rj0vadmla"})}),(0,nt.jsx)("use",{fill:"currentColor",fillRule:"nonzero",xlinkHref:"#9rj0vadmla"}),(0,nt.jsx)("g",{fill:"currentColor",mask:"url(#r2s1vr2yyb)",children:(0,nt.jsx)("path",{d:"M0 0h20v20H0z"})})]})]})},e)),vt=Ky;var js=require("react/jsx-runtime"),Zy=e=>(0,js.jsx)(j,s({content:(0,js.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.24 5.336l-8.87 9.757a.5.5 0 01-.74 0L.76 5.336a.5.5 0 01.37-.836h17.74a.5.5 0 01.37.836z"})},e)),Yi=Zy;var wt=require("react"),C1=v(require("lodash/isEqual"));var Ki=require("react"),x1=(e,t=null)=>{let r=(0,Ki.useRef)(t);return(0,Ki.useEffect)(()=>{r.current=e}),r.current};var Zi=()=>`_${Math.random().toString(36).substr(2,9)}`;var Xy=(e,t)=>{let[r,o]=(0,wt.useState)(!1),[n,i]=(0,wt.useState)(""),[l,a]=(0,wt.useState)([]),[p,c]=(0,wt.useState)([]),[m,f]=(0,wt.useState)(0),d=x1(l!=null?l:[]),u=(0,wt.useRef)(null);return(0,wt.useEffect)(()=>{var h;f((h=u==null?void 0:u.current)==null?void 0:h.clientWidth)},[]),(0,wt.useEffect)(()=>{if(!(0,C1.default)(e,d||[])){let h=e==null?void 0:e.map((g,C)=>y(s({},g),{id:(g==null?void 0:g.id)||C+Zi(),label:(g==null?void 0:g.label)||""}));a(h),c(h)}},[e]),(0,wt.useEffect)(()=>{var h;if(t&&n){let g=t(n,l)||[],C=g==null?void 0:g.map(b=>b==null?void 0:b.id),x=l==null?void 0:l.filter(b=>C.includes(b==null?void 0:b.id)).sort((b,I)=>C.indexOf(b.id)-C.indexOf(I.id));c(x)}else{if(!(l!=null&&l.length))return;if(!(n!=null&&n.length)){c(l);return}if(!(l!=null&&l.length))return;if(!(n!=null&&n.length)){c(l);return}let g=n==null?void 0:n.toUpperCase().split("\\s+"),C=(h=l==null?void 0:l.filter(x=>{var b;return(b=x==null?void 0:x.label)==null?void 0:b.toUpperCase().includes(g)}))==null?void 0:h.sort((x,b)=>{var I,D;return((I=x==null?void 0:x.label)==null?void 0:I.length)-((D=b==null?void 0:b.label)==null?void 0:D.length)});c(C)}},[n]),{inputValue:n,setInputValue:i,isSearching:r,setIsSearching:o,formatedOptions:l,setFormatedOptions:a,filteredOptions:p,setFilteredOptions:c,widthContainer:m,setWidthContainer:f,htmlElRef:u}},b1=Xy;var Ys=require("react/jsx-runtime"),qy=e=>(0,Ys.jsx)(j,s({content:(0,Ys.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.521 13.636a5.121 5.121 0 01-5.124-5.12 5.121 5.121 0 015.124-5.12 5.122 5.122 0 015.124 5.12 5.122 5.122 0 01-5.124 5.12m9.274 3.172l-4.203-4.2a6.476 6.476 0 001.45-4.092A6.519 6.519 0 008.522 2 6.519 6.519 0 002 8.516a6.519 6.519 0 0010.603 5.078l4.205 4.201a.698.698 0 10.987-.987"})},e)),_o=qy;var S1=require("tss-react/mui"),Qy=(0,S1.makeStyles)()(()=>({inputContainer:{display:"flex",alignItems:"center",height:"24px",backgroundColor:"#ebebeb","& input":{border:"0",outline:"0",fontSize:"13px",width:"100%",paddingLeft:"5px","&:focus":{outline:"none !important"}}},searchIcon:{display:"flex",alignItems:"center",marginLeft:"8px",marginRight:"8px"},inputSearch:{position:"relative",display:"flex",width:"100%",height:"16px",marginRight:"8px"},closeIcon:{height:"10px",position:"absolute",right:"3px",top:"3px"}})),v1=Qy;var yo=require("react/jsx-runtime"),Jy=({value:e,setValue:t,onChange:r})=>{let{classes:o}=v1();return(0,yo.jsxs)("div",{className:o.inputContainer,"data-role":"input-search",children:[(0,yo.jsx)("div",{className:o.searchIcon,children:(0,yo.jsx)(_o,{size:12})}),(0,yo.jsxs)("div",{className:o.inputSearch,children:[(0,yo.jsx)("input",{value:e,onChange:r,placeholder:F.t("common.search")}),(e==null?void 0:e.length)>0&&(0,yo.jsx)("div",{className:o.closeIcon,onClick:()=>t(""),children:(0,yo.jsx)(vt,{})})]})]})},w1=Jy;var Be=require("react");var R1=require("react"),Ks=require("react/jsx-runtime"),Zn="MyAutoCompleteSuggestListScrollBarChips",I1=35,T1=32,k1=12;function e6(e,t,r,o,n,i){let l=0,a=0,p=!1;e.onmousedown=f=>{f=f||window.event,f.preventDefault(),p=!0,document.getElementById(Zn).style.cursor="inherit",document.onmouseup=m,document.onmousemove=c};function c(f){f=f||window.event,f.preventDefault();let d=document.getElementById("MyAutoCompleteSuggestListScrollBar").offsetHeight-e.offsetHeight;if(typeof document.getElementById(e.id)=="undefined")return;if(document.getElementById(e.id).offsetTop<0)return r(0),o(0),e.style.marginTop=0;if(l===0&&(l=f.y),p){l=f.y,p=!1;return}let u=-(l-f.y)+Number.parseFloat(e.style.marginTop),h=u<d?u:d;e.style.marginTop=`${Math.max(0,h)}px`;let g=100*Number.parseFloat(e.style.marginTop)/d,C=Number(g*t*i/100);a=r(C),o(C),l=f.y}function m(){n(a),document.onmouseup=null,document.onmousemove=null,document.getElementById(Zn).style.cursor="pointer"}}var t6=({listLength:e,numberOfItemDisplayed:t,changeListData:r,setCurrentPositionYRef:o,setStartIndexListDisplayedRef:n,startIndexListDisplayed:i,suggestListHeight:l})=>{let a=i*100/e,c=t*100/e*Number(t*T1)/100,m=0,f=l-I1,u=Number(t*30)*a/100;return c<k1&&(c=0,m=k1),c+=m,(0,R1.useEffect)(()=>{e6(document.getElementById(Zn),e,r,o,n,T1)},[]),(0,Ks.jsx)("div",{id:"MyAutoCompleteSuggestListScrollBar",className:"MyAutoCompleteSuggestListScrollBar",style:{height:f,marginTop:Number(l*-1)+I1,width:10,borderRadius:40,position:"relative",float:"right",overflowY:"hidden"},children:(0,Ks.jsx)("div",{id:Zn,className:Zn,style:{height:c,marginTop:u,width:10,borderRadius:40,backgroundColor:"rgb(234 235 234)",position:"relative",float:"right",cursor:"pointer"}})})},E1=t6;var N1=require("@mui/material"),P1=v(require("classnames"));var xo=require("react/jsx-runtime"),o6=e=>(0,xo.jsx)(j,s({content:(0,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsx)("defs",{children:(0,xo.jsx)("path",{id:"6i5t1om9ua",d:"M17.996.954a1.103 1.103 0 011.555-.233 1.13 1.13 0 01.23 1.57L7.493 19.047a1.103 1.103 0 01-1.628.173l-5.49-4.897a1.131 1.131 0 01-.097-1.585 1.103 1.103 0 011.568-.099l4.582 4.088L17.996.954z"})}),(0,xo.jsx)("use",{fill:"currentColor",xlinkHref:"#6i5t1om9ua"})]})},e)),Hr=o6;var M1=require("tss-react/mui"),r6=(0,M1.makeStyles)()(e=>({checkbox:{height:"100%",width:"100%",borderRadius:"2px",border:`2px solid ${e.palette.grey[600]}`,boxSizing:"border-box",display:"flex",alignItems:"center","&:hover":{cursor:"pointer"}},checked:{border:`2px solid ${e.palette.primary.main}`,color:"white",backgroundColor:e.palette.primary.main},disabledChecked:{border:`2px solid ${e.palette.grey[400]}`,backgroundColor:e.palette.grey[400],"&:hover":{cursor:"initial"}},disabledNotChecked:{border:`2px solid ${e.palette.grey[400]}`,"&:hover":{cursor:"initial"}}})),A1=r6;var Fo=require("react/jsx-runtime"),n6=({checked:e,size:t,disabled:r,className:o})=>{let{classes:n}=A1(),i=t?`${t}px`:"100%",l=`${o||""} ${n.checkbox} ${e&&n.checked} ${e&&r&&n.disabledChecked} ${!e&&r&&n.disabledNotChecked}`;return(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsx)("div",{style:{height:i,width:i,padding:1},role:"checkbox","aria-checked":e,className:l,children:e&&(0,Fo.jsx)(Hr,{})}),(0,Fo.jsx)("input",{type:"checkbox",checked:e,style:{display:"none"},readOnly:!0})]})},Ur=n6;var D1=require("tss-react/mui"),i6=(0,D1.makeStyles)()(()=>({line:{display:"flex",height:"30px",marginTop:"2px",alignItems:"center",paddingLeft:"8px","&:hover":{cursor:"pointer",transitionDuration:"300ms",backgroundColor:"#ebebeb"}},disabled:{color:"#c3c3c3","&:hover":{cursor:"initial"}},checkboxContainer:{height:"14px",width:"14px"},label:{marginLeft:"8px",overflow:"hidden",textAlign:"left",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",fontSize:"14px"},tooltip:{zIndex:"11000 !important"}})),L1=i6;var Vo=require("react/jsx-runtime"),l6=6.5,s6=({option:e,widthContainer:t,onClick:r})=>{var n;let{classes:o}=L1();return(0,Vo.jsxs)("div",{className:(0,P1.default)(o.line,(e==null?void 0:e.disabled)&&o.disabled),onClick:r,children:[(0,Vo.jsx)("div",{className:o.checkboxContainer,children:(0,Vo.jsx)(Ur,{checked:e.selected,disabled:e==null?void 0:e.disabled,size:14})}),t&&t<((n=e==null?void 0:e.label)==null?void 0:n.length)*l6?(0,Vo.jsx)(N1.Tooltip,{title:e==null?void 0:e.label,placement:"top",enterDelay:900,enterNextDelay:900,classes:{popper:o.tooltip},children:(0,Vo.jsx)("div",{className:o.label,children:e==null?void 0:e.label})}):(0,Vo.jsx)("div",{className:o.label,children:e==null?void 0:e.label})]})},Zs=s6;var B1=require("tss-react/mui"),a6=(0,B1.makeStyles)()(()=>({allOptions:{fontWeight:"bold",marginBottom:"5px",marginTop:"2px"}})),O1=a6;var Sr=require("react/jsx-runtime"),Co=5,c6=({itemHeight:e,list:t,myAutoCompleteInputValue:r,handleClickAll:o,widthContainer:n,onClickLine:i})=>{var Z;let{classes:l}=O1(),[a,p]=(0,Be.useState)(0),[c,m]=(0,Be.useState)([]),f=(0,Be.useRef)(a),d=(0,Be.useRef)(c),u=(0,Be.useRef)(0),h=(0,Be.useRef)(null),[g,C]=(0,Be.useState)(!1),[x,b]=(0,Be.useState)(0),I=(0,Be.useRef)(null),[D,S]=(0,Be.useState)(0),T=(0,Be.useRef)(D),[k,w]=(0,Be.useState)(0),A=(0,Be.useRef)(k),O=t==null?void 0:t.every(R=>R==null?void 0:R.selected),E={label:`${F.t("common.all")} (${t==null?void 0:t.length})`,selected:O,id:-1},L=R=>{A.current=R,w(R)},V=R=>{f.current=R,p(R)},H=R=>{d.current=R,m(R)},M=R=>{R=R||window.event,R.preventDefault&&R.preventDefault(),R.returnValue=!1},z=(R,N)=>{if(!(N!=null&&N.current))return!1;let U=N.current.getBoundingClientRect();return U&&R.clientX>=U.left&&R.clientX<=U.left+U.width&&R.clientY>=U.top&&R.clientY<=U.top+U.height},$=()=>{let R=e*(t.length-5);R>0&&a>R&&V(R)};(0,Be.useEffect)(()=>{let R=N=>{z(N,h)?(N.stopPropagation(),M(N),Number(T.current)>0?(V(Number(T.current)),S(0)):V(f.current+N.deltaY),f.current+N.deltaY<0?(V(0),C(!1)):C(!0)):C(!1)};return document.addEventListener("wheel",R,{passive:!1}),()=>{document.removeEventListener("wheel",R)}},[]);let K=R=>{if(typeof R=="undefined"&&(R=a),R===a){if(I.current){I.current=!1;return}x!==0&&(u.current=Number(R/e)*100/t.length)}else I.current=!0;R===a&&L(Number(R/e));let N,U=Number(R/e);return Number(R/e)+Co<(t==null?void 0:t.length)?N=t.slice(Number(R/e),Number(R/e)+Co):(R===a&&L((t==null?void 0:t.length)-Co<0?0:(t==null?void 0:t.length)-Co),U=(t==null?void 0:t.length)-Co<0?0:(t==null?void 0:t.length)-Co,N=t.slice((t==null?void 0:t.length)-Co<0?0:(t==null?void 0:t.length)-Co,t==null?void 0:t.length)),H(N),U};return(0,Be.useEffect)(()=>{$(),K()},[t,a,r,e]),(0,Be.useEffect)(()=>{var R,N;(R=h==null?void 0:h.current)!=null&&R.offsetHeight&&b((N=h==null?void 0:h.current)==null?void 0:N.offsetHeight)},[(Z=h==null?void 0:h.current)==null?void 0:Z.offsetHeight]),(0,Sr.jsxs)("div",{className:"MyAutoCompleteSuggestList",ref:h,style:{overscrollBehavior:g?"none":null},children:[(0,Sr.jsx)("div",{className:l.allOptions,"data-role":"allOptions",children:(0,Sr.jsx)(Zs,{option:E,onClick:o})}),c.map(R=>(0,Sr.jsx)(Zs,{widthContainer:n,option:R,onClick:()=>{R!=null&&R.disabled||i(R==null?void 0:R.id,!(R!=null&&R.selected))}},R==null?void 0:R.id)),h!=null&&h.current&&c.length===Co?(0,Sr.jsx)(E1,{suggestListHeight:x,listLength:t.length,numberOfItemDisplayed:c.length,changeListData:K,setCurrentPositionYRef:V,startIndexListDisplayed:A.current,setStartIndexListDisplayedRef:L}):null]})},_1=c6;var F1=require("tss-react/mui"),p6=(0,F1.makeStyles)()(()=>({resultsContainer:{boxShadow:"0px 2px 2px 0 rgba(0, 0, 0, 0.1)",padding:"4px",backgroundColor:"#ffffff",zIndex:9},noResult:{textAlign:"center",marginTop:"15px",color:"#9b9b9b",fontSize:"16px",marginBottom:"10px"}})),V1=p6;var Wr=require("react/jsx-runtime"),d6=({inputValue:e,setInputValue:t,filteredOptions:r,widthContainer:o,handleClickAll:n,onClickLine:i})=>{let{classes:l}=V1(),a=p=>{t(p.target.value)};return(0,Wr.jsxs)("div",{className:l.resultsContainer,"data-role":"results",children:[(0,Wr.jsx)(w1,{setValue:t,value:e,onChange:a}),(r==null?void 0:r.length)<=0?(0,Wr.jsxs)("div",{className:l.noResult,children:[" ",F.t("common.noResult")," "]}):(0,Wr.jsx)(_1,{list:r,myAutoCompleteInputValue:e,itemHeight:30,widthContainer:o,handleClickAll:n,onClickLine:i,inputValue:e})]})},z1=d6;var X1=v(require("classnames"));var W1=v(require("classnames"));var H1=require("tss-react/mui"),m6=(0,H1.makeStyles)()(e=>({chips:{display:"inline-flex",flexDirection:"row",alignItems:"center",backgroundColor:e.palette.primary.light,color:e.palette.primary.main,borderRadius:"50px",height:"100%",paddingLeft:"10px",paddingRight:"10px",fontSize:"12px",whiteSpace:"nowrap"},chipDisabled:{color:"#9b9b9b",backgroundColor:"#f5f5f5"},close:{marginLeft:"5px",cursor:"pointer",paddingTop:"3px",paddingBottom:"3px",paddingRight:"2px",paddingLeft:"2px"}})),U1=m6;var Gr=require("react/jsx-runtime"),u6=({text:e="",isClosable:t=!1,isDisabled:r,onUnselectChips:o})=>{let{classes:n}=U1();return(0,Gr.jsxs)("div",{className:(0,W1.default)(n.chips,r&&n.chipDisabled),children:[(0,Gr.jsx)("div",{children:e}),t&&!r&&(0,Gr.jsx)("div",{className:n.close,onClick:o,children:(0,Gr.jsx)(vt,{size:6})})]})},Xn=u6;var j1=require("@mui/material");var G1=require("tss-react/mui"),f6=(0,G1.makeStyles)()(()=>({listChips:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},otherChips:{display:"flex",height:"100%"},chips:{marginRight:"4px",display:"flex",height:"100%"},toolTipsList:{maxHeight:"118px",overflow:"auto",fontWeight:"normal"},lineChips:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),$1=f6;var Xt=require("react/jsx-runtime"),h6=35,g6=7,y6=50,x6=45,C6=30,b6=({options:e=[],widthContainer:t,onUnselectChips:r,isDisabled:o})=>{var c;let{classes:n}=$1(),i=()=>{var d;let m=0,f=t-(o?C6:y6);(e==null?void 0:e.length)>1&&!o&&(f-=x6);for(let u of e){let h=g6*((d=u==null?void 0:u.label)==null?void 0:d.length)+h6,g=f>h;if(f=f-h,g)m++;else break}return{numberChipsDisplayed:m,numberRestDisplay:(e==null?void 0:e.length)-m}},l=(m,f)=>{m.stopPropagation(),r(f)},{numberChipsDisplayed:a,numberRestDisplay:p}=i();return(0,Xt.jsxs)("div",{className:n.listChips,children:[e==null?void 0:e.map((m,f)=>f<a&&(0,Xt.jsx)("div",{className:n.chips,children:(0,Xt.jsx)(Xn,{text:m==null?void 0:m.label,isClosable:!m.disabled,isDisabled:o,onUnselectChips:d=>l(d,m==null?void 0:m.id)})},`chips_${m==null?void 0:m.id}_${f}`)),p>0&&(0,Xt.jsx)(j1.Tooltip,{title:(0,Xt.jsx)("div",{className:n.toolTipsList,children:(c=e==null?void 0:e.slice(a,e==null?void 0:e.length))==null?void 0:c.map((m,f)=>(0,Xt.jsx)("div",{className:n.lineChips,children:m==null?void 0:m.label},f))}),placement:"bottom",children:(0,Xt.jsx)("div",{className:n.otherChips,children:(0,Xt.jsx)(Xn,{text:`+ ${p}`,isClosable:!1,isDisabled:o})})})]})},Y1=b6;var K1=require("tss-react/mui"),S6=(0,K1.makeStyles)()(()=>({selectorContainer:{display:"flex",alignItems:"flex-end"},chipsContainer:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},description:{fontSize:"14px",color:"#000"},search:{color:"#9b9b9b"}})),Z1=S6;var vr=require("react/jsx-runtime"),v6=({isSearching:e,options:t=[],isAllSelected:r,widthContainer:o,onUnselectChips:n,isDisabled:i})=>{let l=(t==null?void 0:t.length)===0,{classes:a}=Z1();return(0,vr.jsxs)("div",{className:a.selectorContainer,children:[l&&(0,vr.jsx)("div",{className:(0,X1.default)(a.description,e&&a.search),children:F.t("common.select")}),r&&!l&&(0,vr.jsx)("div",{className:a.chipsContainer,children:(0,vr.jsx)(Xn,{text:F.t("common.all"),isClosable:!1,isDisabled:i})}),!r&&!l&&(0,vr.jsx)(Y1,{options:t,widthContainer:o,onUnselectChips:n,isDisabled:i})]})},q1=v6;var Q1=require("tss-react/mui"),w6=(0,Q1.makeStyles)()(e=>({autoCompleteContainer:{display:"flex",flexDirection:"column",height:"50px",width:"100%",minWidth:"170px"},label:{fontSize:"12px",color:"#9b9b9b",marginBottom:"4px"},search:{color:e.palette.primary.main},isError:{color:e.palette.warning.main},selector:{display:"flex",height:"24px"},icons:{marginLeft:"auto",display:"flex",flexDirection:"row"},dropDownIcon:{width:"12px",marginLeft:"8px"},rotated:{transform:"rotate(180deg)"},clear:{width:"12px",marginLeft:"auto",cursor:"pointer"},border:{width:"100%",marginTop:"5px",borderBottom:"2px solid #d7d7d7"},isErrorBorder:{borderBottom:`2px solid ${e.palette.warning.main}`},open:{borderBottom:`2px solid ${e.palette.primary.main}`}})),J1=w6;var We=require("react/jsx-runtime"),I6=({options:e=[],customSearch:t,onChange:r=()=>{},isError:o,label:n,isDisplayLabel:i=!0,onIsSearchingChange:l,isDisabled:a,isOptionsMutable:p})=>{var O,E,L;let{classes:c}=J1(),{inputValue:m,setInputValue:f,isSearching:d,setIsSearching:u,formatedOptions:h,setFormatedOptions:g,filteredOptions:C,widthContainer:x,htmlElRef:b}=b1(e,t),I=(0,qn.useRef)(null),D=()=>{u(!1),f("")};(0,qn.useEffect)(()=>{p&&h.forEach((V,H)=>e[H].selected=V.selected)},[h]),(0,qn.useEffect)(()=>{l==null||l(d)},[d]);let S=V=>{V.stopPropagation();let H=[...h];H==null||H.forEach(M=>{M!=null&&M.disabled||(M.selected=!1)}),g(H),r(h==null?void 0:h.filter(M=>M==null?void 0:M.selected))},T=()=>{let V=C==null?void 0:C.every(z=>z==null?void 0:z.selected),H=[...h],M=C==null?void 0:C.map(z=>z==null?void 0:z.id);H==null||H.forEach(z=>{!(z!=null&&z.disabled)&&(M!=null&&M.includes(z==null?void 0:z.id))&&(z.selected=!V)}),g(H),r(h==null?void 0:h.filter(z=>z==null?void 0:z.selected))},k=(V,H)=>{var z,$;let M=[...h];for(let K=0;K<M.length;K++)if(((z=M[K])==null?void 0:z.id)===V&&!(($=M[K])!=null&&$.disabled)){M[K].selected=H;break}g(M),r(h==null?void 0:h.filter(K=>K==null?void 0:K.selected))},w=(O=h==null?void 0:h.filter(V=>(V==null?void 0:V.selected)&&(V==null?void 0:V.value)))==null?void 0:O.map(V=>V.value),A=h==null?void 0:h.filter(V=>V==null?void 0:V.selected);return(0,We.jsxs)("div",{className:c.autoCompleteContainer,ref:b,children:[(0,We.jsx)("input",{type:"hidden",value:w}),(0,We.jsxs)("div",{onClick:a?null:()=>u(!0),ref:I,children:[i&&(0,We.jsx)("div",{"data-role":"label",className:(0,Xi.default)(c.label,d&&c.search,o&&c.isError),children:n||F.t("common.select")}),(0,We.jsxs)("div",{className:c.selector,"data-role":"selector",children:[(0,We.jsx)(q1,{isSearching:d,isAllSelected:h==null?void 0:h.every(V=>V==null?void 0:V.selected),widthContainer:(E=b==null?void 0:b.current)==null?void 0:E.clientWidth,options:A,onUnselectChips:V=>k(V,!1),isDisabled:a,isError:o}),(0,We.jsxs)("div",{className:c.icons,children:[(A==null?void 0:A.length)>0&&!a&&(0,We.jsx)("div",{className:c.clear,onClick:S,"data-role":"clearSelection",children:(0,We.jsx)(vt,{})}),!a&&(0,We.jsx)("div",{className:(0,Xi.default)(c.dropDownIcon,d&&c.rotated),children:(0,We.jsx)(Yi,{})})]})]}),(0,We.jsx)("div",{className:(0,Xi.default)(c.border,d&&c.open,o&&c.isErrorBorder,!o&&a&&c.noBorder)})]}),d&&(0,We.jsx)(qi.ClickAwayListener,{onClickAway:D,children:(0,We.jsx)(qi.Popper,{open:d,anchorEl:I==null?void 0:I.current,placement:"bottom-start",style:{zIndex:1e4,width:(L=b==null?void 0:b.current)==null?void 0:L.clientWidth},children:(0,We.jsx)(z1,{setInputValue:f,inputValue:m,filteredOptions:C,widthContainer:x,handleClickAll:T,onClickLine:k,isSearching:d,htmlElRef:b})})})]})},eu=I6;var zo=require("react"),Qi=require("@mui/material"),Ji=v(require("@mui/material/Autocomplete")),ru=v(require("lodash/omit"));var tu=require("tss-react/mui"),T6=(0,tu.makeStyles)()(()=>({input:{padding:"6px 0px"},chip:{marginRight:6}})),ou=T6;var Qn=require("react/jsx-runtime"),k6=(0,zo.memo)(function({props:t}){let Z=t,{data:r,dataKey:o,columnIndex:n,onChange:i,column:l,isDisabled:a,vtContext:p={},getData:c=()=>{},PROPS_EXCLUDED:m=[],onSend:f=null}=Z,d=_(Z,["data","dataKey","columnIndex","onChange","column","isDisabled","vtContext","getData","PROPS_EXCLUDED","onSend"]),{classes:u}=ou(),{send:h,config:g={}}=p,{selectableRowKey:C="id"}=g,{disableClearable:x=!0,onCreate:b,canCreate:I=!1,multiple:D=!1,renderInput:S=null,filterOptions:T=!0}=l,k=l.options||l.optionList||[],w=(0,zo.useMemo)(()=>typeof k=="function"?k(r):k,[k,r]),A=()=>D?w.filter(R=>{var N;return(N=r[o])==null?void 0:N.includes(R.value)}):w.find(R=>R.value===r[o]),[O,E]=(0,zo.useState)(A()),L=r[o];(0,zo.useEffect)(()=>{L!==O&&E(A())},[L]);let V=r[C],H=R=>{i(R)},M=R=>{b&&b(R,r,N=>{f?f(R,r,N):h("updateLine",{key:o,selectableRowKey:C,keyId:V,data:N})}),E(D?N=>[...N,R]:R)},z=R=>{typeof R=="string"?M(R):R!=null&&R.inputValue?M(R==null?void 0:R.inputValue):H(D?R.map(N=>N==null?void 0:N.value):R==null?void 0:R.value)},$=(0,Ji.createFilterOptions)();return(0,Qn.jsx)(Ji.default,s({size:"small",options:w,getOptionLabel:R=>typeof R=="string"?R:R.inputValue?R.inputValue:R.label,renderInput:S||(R=>(0,Qn.jsx)(Qi.TextField,y(s({variant:"standard"},R),{InputProps:y(s({},R.InputProps),{disableUnderline:!0})}))),renderOption:(R,{label:N,value:U})=>(0,Qn.jsx)("li",y(s({},R),{children:(0,Qn.jsx)(Qi.Typography,{color:O===U?"primary":"initial",children:N})})),filterOptions:T?(R,N)=>{let U=$(R,N);return N.inputValue!==""&&U.length===0&&I&&U.push({inputValue:N.inputValue,label:F.t("autocomplete.createOption",{value:N.inputValue})}),U}:void 0,disabled:a,onChange:(R,N)=>z(N),classes:{inputRoot:u.input},freeSolo:!0,value:O||"",disableClearable:x,multiple:D},(0,ru.default)(d,m)))}),nu=k6;var lu=require("react/jsx-runtime");function R6(t){var e=_(t,[]);return(0,lu.jsx)(nu,{props:s({},e)})}var iu=R6;var su=v(require("react"));var cu=require("react/jsx-runtime");function E6(e){let o=e,{placeholder:t=F.t("common.select")}=o,r=_(o,["placeholder"]);return(0,cu.jsx)(ji,y(s({multiple:!0},r),{placeholder:t}))}var au=su.default.memo(E6);var pu=require("tss-react/mui"),M6=(0,pu.makeStyles)()((e,{size:t})=>({loader:{width:`${t}px`,height:`${t}px`,border:`3px solid ${e.palette.primary.light}`,borderRadius:"50%",display:"block",transform:"rotate(45deg)",boxSizing:"border-box","&:before":{content:'""',position:"absolute",boxSizing:"border-box",inset:"-3px",borderRadius:"50%",border:`3px solid ${e.palette.primary.main}`,animation:"prixClipFix 1.5s infinite linear"},"@keyframes prixClipFix":{"0%":{clipPath:"polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)"},"25%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)"},"50%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)"},"75%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)"},"100%":{clipPath:"polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)"}}}})),du=M6;var uu=require("react/jsx-runtime"),A6=({size:e})=>{let{classes:t}=du({size:e||12});return(0,uu.jsx)("span",{className:t.loader})},mu=A6;var fu=require("tss-react/mui"),D6=(0,fu.makeStyles)()(e=>({loaderContainer:{width:"214px",height:"47px",borderRadius:"2px",boxShadow:"1px 5px 7px 0 rgba(0, 0, 0, 0.08)",display:"flex",backgroundColor:e.palette.common.white},content:{display:"flex",gap:"17px",alignItems:"center",flexDirection:"row",marginLeft:"15px"},text:{fontSize:"14px",color:e.palette.primary.main,fontFamily:"basier_circleregular"}})),hu=D6;var $r=require("react/jsx-runtime"),L6=()=>{let{classes:e}=hu();return(0,$r.jsx)("div",{className:e.loaderContainer,children:(0,$r.jsxs)("div",{className:e.content,children:[(0,$r.jsx)(mu,{size:12}),(0,$r.jsx)("div",{className:e.text,children:F.t("common.loading2")})]})})},el=L6;var Cu=require("@mui/material");var gu=require("tss-react/mui"),N6=(0,gu.makeStyles)()((e,{color:t,size:r,fontSize:o})=>({container:{position:"relative",display:"inline-flex"},badge:{backgroundColor:t||e.palette.primary.main,height:`${r}px`,width:`${r}px`,fontSize:o||"0.6rem",borderRadius:"100%",color:"white",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:"0",top:"0",transform:"scale(1) translate(42%, -42%)",overflow:"hidden"}})),yu=N6;var ol=require("react/jsx-runtime"),P6=e=>{let{color:t,content:r,size:o=14,children:n,fontSize:i,onClick:l}=e,{classes:a}=yu({color:t,size:o,fontSize:i});return(0,ol.jsxs)("div",{className:a.container,children:[(0,ol.jsx)("div",{className:a.badge,onClick:l,"data-role":"badge",children:r}),n]})},tl=P6;var wr=require("react/jsx-runtime"),B6=e=>(0,wr.jsx)(j,s({content:(0,wr.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,wr.jsxs)("g",{fill:"currentColor",fillRule:"nonzero",children:[(0,wr.jsx)("rect",{width:"20",height:"2.5",x:"0",y:"8.75",rx:"1"}),(0,wr.jsx)("path",{d:"M1 8.75h18a1 1 0 011 1v.5a1 1 0 01-1 1H1a1 1 0 01-1-1v-.5a1 1 0 011-1z",transform:"rotate(90 10 10)"})]})})},e)),jr=B6;var Xs=require("react/jsx-runtime"),xu="+",O6="+99",_6=e=>{let{counter:t,onClick:r,color:o}=e,n=(0,Cu.useTheme)(),i=t,l="9px";return!t||!Number.isInteger(t)||t<=0?i=xu:t>99&&(i=O6,l="0.4rem"),(0,Xs.jsx)(tl,{content:i===xu?(0,Xs.jsx)(jr,{size:7,color:"white"}):i,size:16,color:o||n.palette.primary.main,fontSize:l,onClick:r,children:e.children})},bu=_6;var Su=require("@mui/material");var qs=require("react/jsx-runtime"),F6=({onToggle:e,isExpanded:t})=>(0,qs.jsx)(Su.IconButton,{onClick:e,size:"small",sx:{transition:"transform 0.3s ease",transform:t?"rotate(0deg)":"rotate(-90deg)"},children:(0,qs.jsx)(Vr,{})}),Ho=F6;var Me=require("react"),Go=require("@mui/material"),Qu=require("@mui/x-tree-view-pro"),Ju=v(require("@myunisoft/mui-symbols-material-w300-esm/AddRounded"));var rl=require("react");var vu=v(require("@myunisoft/mui-symbols-material-w300-esm/CalendarViewMonthRounded")),Au=require("react/jsx-runtime"),Qs=e=>{let t=[];for(let r of e)r.sections&&r.sections.length>0&&(t.push(r.id),t=t.concat(Qs(r.sections)));return t},Js=e=>{let t=[];for(let r of e)t.push(r),r.sections&&r.sections.length>0&&(t=t.concat(Js(r.sections)));return t},wu=e=>!e.parentId,Iu=e=>!0,Tu=e=>e.visible!==!1,ku=e=>e.sections||void 0,Ru=e=>e.id,Eu=e=>e.title,Mu=e=>(!e.sections||e.sections.length===0)&&e.title.toUpperCase().startsWith("A")?(0,Au.jsx)(vu.default,{sx:{width:20,height:20}}):null;var Du=e=>{let t=(0,rl.useMemo)(()=>{let o=new Map;for(let n of Js(e||[]))o.set(n.id,n);return o},[e]),r=(0,rl.useCallback)(o=>{var n;return(n=t.get(o))!=null?n:null},[t]);return{sectionsMap:t,getSectionById:r}};var Bt=require("react");var Lu=({apiRef:e,getSectionById:t,onSectionCreate:r,scrollToBottom:o})=>{let[n,i]=(0,Bt.useState)(null),[l,a]=(0,Bt.useState)(null);(0,Bt.useEffect)(()=>{var u,h,g;let d=e.current;!n||!d||(n.parentId!==null?(u=d.setItemExpansion)==null||u.call(d,{itemId:n.parentId,shouldBeExpanded:!0}):o==null||o(),(h=d.focusItem)==null||h.call(d,null,n.id),(g=d.setEditedItem)==null||g.call(d,n.id))},[n]),(0,Bt.useEffect)(()=>{var u,h;let d=e.current;!l||!d||((u=d.setItemSelection)==null||u.call(d,{itemId:l,shouldBeSelected:!0}),(h=d.focusItem)==null||h.call(d,null,l),a(null))},[l]);let p=(0,Bt.useCallback)((d=null)=>{var C;let u=`temp-${Date.now()}`,h=d?t(d):null,g=(C=h==null?void 0:h.visible)!=null?C:!0;i({id:u,parentId:d,parentVisible:g})},[t]),c=(0,Bt.useCallback)(d=>ee(void 0,null,function*(){if(n){if(d.trim().length>0){let u=yield r==null?void 0:r(n.parentId,d.trim());u&&a(u)}i(null)}}),[n,r]),m=(0,Bt.useCallback)(()=>{i(null)},[]),f=(0,Bt.useCallback)(d=>(n==null?void 0:n.id)===d,[n]);return{temporarySection:n,create:p,validate:c,cancel:m,isTemporary:f}};var Ke=require("@mui/material"),Se=require("react/jsx-runtime"),Uo=({indent:e=0})=>(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",alignItems:"center",gap:1,ml:e*3},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"circular",sx:{width:20,height:20,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",sx:{width:"100%",height:12}})]}),Nu=()=>(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",flexDirection:"column",gap:1,padding:1,overflow:"auto",minHeight:0,flex:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"rectangular",width:"100%",height:32}),(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"rectangular",sx:{width:40,height:20,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",width:"100%",height:12})]}),(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"rectangular",sx:{width:40,height:20,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",width:"100%",height:12})]}),(0,Se.jsx)(Uo,{indent:0}),(0,Se.jsx)(Uo,{indent:1}),(0,Se.jsx)(Uo,{indent:2}),(0,Se.jsx)(Uo,{indent:3}),(0,Se.jsx)(Uo,{indent:0}),(0,Se.jsx)(Uo,{indent:1}),(0,Se.jsx)(Uo,{indent:2}),(0,Se.jsx)(Uo,{indent:3})]}),Pu=()=>(0,Se.jsxs)(Ke.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2,p:1},children:[(0,Se.jsx)(Ke.Skeleton,{variant:"circular",sx:{width:40,height:40,flexShrink:0}}),(0,Se.jsx)(Ke.Skeleton,{variant:"rounded",sx:{width:"60%",height:12}})]});var Jn=require("@mui/material"),Bu=v(require("@myunisoft/mui-symbols-material-w300-esm/NewsstandRounded")),qt=require("react/jsx-runtime"),V6=({noSectionsPlaceholder:e})=>(0,qt.jsxs)(Jn.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,height:"100%",color:"text.secondary",textAlign:"center",px:2},children:[(0,qt.jsx)(Bu.default,{sx:{width:40,height:40}}),(0,qt.jsx)(Jn.Box,{children:e!=null?e:(0,qt.jsxs)(qt.Fragment,{children:["Commencez la cr\xE9ation de votre annexe en",(0,qt.jsx)("br",{}),(0,qt.jsx)(Jn.Link,{sx:{cursor:"pointer"},children:"cr\xE9ant une section"})]})})]}),Ou=V6;var Wo=require("react"),Kr=require("@mui/x-tree-view-pro");var Gu=require("react"),al=require("@mui/material"),$u=require("@mui/x-tree-view-pro");var bo=require("react"),_u=()=>{let e=(0,bo.useRef)(null),[t,r]=(0,bo.useState)(null),[o,n]=(0,bo.useState)(null),i=(0,bo.useRef)(null),l=d=>{d.stopPropagation(),d.preventDefault();let u=d.currentTarget,h=u.getBoundingClientRect();t?a():(r(u),n({top:h.bottom,left:h.left}))},a=()=>{r(null),n(null)},p=(0,bo.useCallback)(d=>{i.current=d,a()},[]),c=(0,bo.useCallback)(()=>{var d;(d=i.current)==null||d.call(i),i.current=null},[]);return{containerRef:e,menuAnchorEl:t,menuPosition:o,handleMenuClick:l,handleMenuClose:a,scheduleMenuAction:p,onMenuExited:c,createMouseMoveHandler:(d,u)=>h=>{if(!e.current||!u||t)return;let g=h.target;if(!(g instanceof Element))return;let x=g.closest('[role="treeitem"]')===e.current.querySelector('[role="treeitem"]');d!==x&&u(x)},createMouseLeaveHandler:d=>()=>{!d||t||d(!1)}}};var nl=require("@mui/material"),Fu=v(require("@myunisoft/mui-symbols-material-w300-esm/DragIndicatorRounded"));var Yr=require("react/jsx-runtime"),il=e=>{let p=e,{ownerState:t,children:r,sx:o,isDraggable:n,isVisible:i,isHovered:l}=p,a=_(p,["ownerState","children","sx","isDraggable","isVisible","isHovered"]);return(0,Yr.jsxs)(nl.Box,y(s({},a),{sx:y(s({},o),{display:"flex",alignItems:"center",gap:0,minWidth:2,opacity:i?1:.5}),children:[n&&(0,Yr.jsx)(nl.Box,{className:"tree-hover-button",sx:{display:"flex",alignItems:"center",cursor:"grab"},children:(0,Yr.jsx)(Fu.default,{})}),(0,Yr.jsx)(nl.Box,{sx:{minWidth:"24px",display:"flex",alignItems:"center"},children:r})]}))};il.displayName="IconContainerSlot";var Qt=require("react");var Vu=require("react/jsx-runtime"),ll=(0,Qt.forwardRef)((e,t)=>{let x=e,{ownerState:r,itemId:o,isTemporary:n,onTemporarySectionValidation:i,onTemporarySectionCancel:l,onItemLabelChange:a,apiRef:p,onEditingEnd:c,onKeyDown:m,onBlur:f}=x,d=_(x,["ownerState","itemId","isTemporary","onTemporarySectionValidation","onTemporarySectionCancel","onItemLabelChange","apiRef","onEditingEnd","onKeyDown","onBlur"]),u=(0,Qt.useRef)(!1);(0,Qt.useEffect)(()=>{u.current=!1},[o]);let h=(0,Qt.useCallback)(()=>{setTimeout(()=>{var b,I;(I=(b=p==null?void 0:p.current)==null?void 0:b.setEditedItem)==null||I.call(b,null)},0)},[p]),g=(0,Qt.useCallback)(b=>{if(b.key==="Escape"){if(u.current=!0,n){b.preventDefault(),b.stopPropagation(),l==null||l(),c==null||c(),h();return}c==null||c(),m==null||m(b);return}if(b.key==="Enter"){let I=b.currentTarget.value;if(I.trim().length===0){b.preventDefault(),b.stopPropagation();return}if(n){u.current=!0,i==null||i(I),c==null||c(),h();return}u.current=!0,c==null||c()}m==null||m(b)},[n,l,i,m,h,c]),C=(0,Qt.useCallback)(b=>{var D,S;if(u.current)return;let I=b.currentTarget.value;if(n){I.trim().length>0?(u.current=!0,i==null||i(I),c==null||c(),h()):(u.current=!0,l==null||l(),c==null||c(),h());return}u.current=!0,c==null||c(),(S=(D=p==null?void 0:p.current)==null?void 0:D.setEditedItem)==null||S.call(D,null)},[n,l,i,h,c,p]);return(0,Vu.jsx)("input",y(s({},d),{ref:t,onKeyDown:g,onBlurCapture:C,style:{fontSize:"14px",padding:"4px 8px",width:"100%",boxSizing:"border-box",border:"1px solid #ccc",borderRadius:"4px",outline:"none",marginRight:8}}))});ll.displayName="LabelInputSlot";var So=require("react"),Ot=require("@mui/material"),Hu=v(require("@myunisoft/mui-symbols-material-w300-esm/MoreVertRounded")),Uu=v(require("@myunisoft/mui-symbols-material-w300-esm/VisibilityOffRounded")),Wu=v(require("@myunisoft/mui-symbols-material-w300-esm/VisibilityRounded"));var pt=require("react/jsx-runtime"),sl=e=>{let k=e,{ownerState:t,editable:r,children:o,sx:n,customIcon:i,hasMenu:l,itemId:a,isVisible:p,menuAnchorEl:c,onItemVisibilityChange:m,onMenuClick:f,hiddenSectionTooltip:d,visibleIconTooltip:u,hiddenIconTooltip:h}=k,g=_(k,["ownerState","editable","children","sx","customIcon","hasMenu","itemId","isVisible","menuAnchorEl","onItemVisibilityChange","onMenuClick","hiddenSectionTooltip","visibleIconTooltip","hiddenIconTooltip"]),C=(0,So.useRef)(null),[x,b]=(0,So.useState)(!1),[I,D]=(0,So.useState)(!1),[S,T]=(0,So.useState)(!1);return(0,So.useEffect)(()=>{let w=()=>T(!0),A=()=>T(!1);return document.addEventListener("dragstart",w),document.addEventListener("dragend",A),()=>{document.removeEventListener("dragstart",w),document.removeEventListener("dragend",A)}},[]),(0,So.useEffect)(()=>{let w=()=>{C.current&&b(C.current.scrollWidth>C.current.clientWidth)};return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[o]),(0,pt.jsxs)(Ot.Box,y(s({},g),{sx:y(s({},n),{display:"flex",alignItems:"center",flex:1,minWidth:0,position:"relative",fontSize:"14px"}),children:[i&&(0,pt.jsx)(Ot.Box,{sx:{mr:1,display:"flex",alignItems:"center",opacity:p?1:.5},children:i}),(0,pt.jsx)(Ot.Tooltip,{title:x?o:!p&&d?d:"",arrow:!0,open:S?!1:I,onOpen:()=>D(!0),onClose:()=>D(!1),slotProps:zu,children:(0,pt.jsx)(Ot.Box,{ref:C,component:"span",sx:{flexGrow:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})}),(0,pt.jsxs)(Ot.Box,{sx:{display:"flex",alignItems:"center",ml:1,gap:.5},children:[l&&(0,pt.jsx)(Ot.IconButton,{size:"small",onClick:f,onMouseDown:w=>w.stopPropagation(),className:c?"tree-hover-button-visible":"tree-hover-button",sx:{color:"inherit"},"aria-label":"menu button",children:(0,pt.jsx)(Hu.default,{})}),(0,pt.jsx)(Ot.Tooltip,{title:p?u!=null?u:"":h!=null?h:"",arrow:!0,slotProps:zu,children:(0,pt.jsx)(Ot.IconButton,{size:"small",onClick:()=>{m==null||m(a,!p)},onMouseDown:w=>w.stopPropagation(),className:p?"tree-hover-button":"tree-hover-button-visible",sx:{color:"inherit"},children:p?(0,pt.jsx)(Wu.default,{}):(0,pt.jsx)(Uu.default,{})})})]})]}))};sl.displayName="LabelSlot";var zu={tooltip:{sx:{boxShadow:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)"}}};var _t=require("react/jsx-runtime"),ju=e=>{var q,ge;let Y=e,{apiRef:t,isSectionItem:r,isVisibleItem:o,getIconItem:n,hasItemMenu:i,getMenuItems:l,isItemReorderable:a,onItemVisibilityChange:p,hiddenSectionTooltip:c,visibleIconTooltip:m,hiddenIconTooltip:f,isTemporaryItem:d,onTemporarySectionValidation:u,onTemporarySectionCancel:h,onItemLabelChange:g,onEditingChange:C,itemId:x,slotProps:b}=Y,I=_(Y,["apiRef","isSectionItem","isVisibleItem","getIconItem","hasItemMenu","getMenuItems","isItemReorderable","onItemVisibilityChange","hiddenSectionTooltip","visibleIconTooltip","hiddenIconTooltip","isTemporaryItem","onTemporarySectionValidation","onTemporarySectionCancel","onItemLabelChange","onEditingChange","itemId","slotProps"]),[D,S]=(0,Gu.useState)(!1),{containerRef:T,menuAnchorEl:k,menuPosition:w,handleMenuClick:A,handleMenuClose:O,scheduleMenuAction:E,onMenuExited:L,createMouseMoveHandler:V,createMouseLeaveHandler:H}=_u(),M=(ge=(q=t.current)==null?void 0:q.getItem)==null?void 0:ge.call(q,x),z=M?r(M):!1,$=M?o(M):!1,K=M?n(M):null,X=M?i(M):!1,Z=M&&X?l(M,E):[],R=a(x),N=d(x),U=Z&&Z.length>0,re=V(D,S),de=H(S),Re=()=>{C==null||C(x)},W=()=>{C==null||C(null)};return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(al.Box,{ref:T,onMouseMove:re,onMouseLeave:de,sx:{"& .MuiTreeItem-content":{minHeight:"40px",height:"24px",paddingTop:"2px",paddingBottom:"2px",paddingLeft:ne=>`calc(var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth) + ${ne.spacing(1)})`,"& .tree-hover-button":{opacity:0,visibility:"hidden",pointerEvents:"none"},"& .tree-hover-button-visible, &:hover .tree-hover-button":{opacity:1,visibility:"visible",pointerEvents:"auto"}},"& .MuiTreeItem-dragAndDropOverlay":{height:"100%",left:0,right:0,width:"100%"}},children:(0,_t.jsx)($u.TreeItem,y(s({},I),{itemId:x,slotProps:b,slots:{labelInput:ne=>(0,_t.jsx)(ll,y(s({},ne),{itemId:x,isTemporary:N,onTemporarySectionValidation:u,onTemporarySectionCancel:h,onItemLabelChange:g,apiRef:t,onFocus:Re,onEditingEnd:W})),iconContainer:ne=>(0,_t.jsx)(il,y(s({},ne),{isDraggable:R,isHovered:D,isVisible:$})),label:Ve=>{var Ne=Ve,{sx:ne}=Ne,ce=_(Ne,["sx"]);return(0,_t.jsx)(sl,y(s({},ce),{customIcon:K,hasMenu:U,isVisible:$,isHovered:D,menuAnchorEl:k,itemId:x,onMenuClick:A,onItemVisibilityChange:p,hiddenSectionTooltip:c,visibleIconTooltip:m,hiddenIconTooltip:f,sx:y(s({},ne),{fontWeight:z?"bold":"inherit",color:$?"inherit":"text.secondary"})}))}}}))}),U&&(0,_t.jsx)(al.Menu,{open:!!k,anchorReference:"anchorPosition",anchorPosition:w||void 0,onClose:O,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:8,sx:{minWidth:200,mt:"4px",boxShadow:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",border:"1px solid rgba(0,0,0,0.12)"}},transition:{onExited:L}},onClick:ne=>{ne.stopPropagation()},children:Z})]})};var ea=require("react/jsx-runtime"),z6=e=>{let{apiRef:t,items:r,getItemId:o,getItemLabel:n,getItemChildren:i,isItemReorderable:l,canMoveItemToNewPosition:a,onItemPositionChange:p,checkboxSelection:c,multiSelect:m,hasItemMenu:f,getMenuItems:d,isSectionItem:u,getIconItem:h,isItemEditable:g,isVisibleItem:C,onItemLabelChange:x,onItemVisibilityChange:b,hiddenSectionTooltip:I,visibleIconTooltip:D,hiddenIconTooltip:S,temporaryItem:T,isTemporaryItem:k,onTemporarySectionValidation:w,onTemporarySectionCancel:A,defaultExpandedItems:O}=e,[E,L]=(0,Wo.useState)(null),V=(0,Wo.useCallback)($=>k($)||E===$?!1:l($),[l,k,E]),H=(0,Wo.useCallback)($=>{L($)},[]),M=(0,Wo.useMemo)(()=>{if(!T)return r;let $={id:T.id,title:"",visible:T.parentVisible,parentId:T.parentId,sections:null};if(T.parentId===null)return[...r,$];let K=(X,Z)=>X.map(R=>{let N=o(R),U=i(R);if(N===Z){let re=U!=null?U:[];return y(s({},R),{sections:[...re,$]})}return U&&U.length>0?y(s({},R),{sections:K(U,Z)}):R});return K(r,T.parentId)},[r,T,o,i]),z=(0,Wo.useCallback)($=>(0,ea.jsx)(ju,y(s({},$),{apiRef:t,isSectionItem:u,isVisibleItem:C,getIconItem:h,hasItemMenu:f,getMenuItems:d,isItemReorderable:V,onItemVisibilityChange:b,hiddenSectionTooltip:I,visibleIconTooltip:D,hiddenIconTooltip:S,isTemporaryItem:k,onTemporarySectionValidation:w,onTemporarySectionCancel:A,onItemLabelChange:x,onEditingChange:H})),[t,u,C,h,f,d,V,b,I,D,S,k,w,A,x,H]);return(0,ea.jsx)(Kr.RichTreeViewPro,{apiRef:t,items:M,expansionTrigger:"iconContainer",getItemId:o,getItemLabel:n,getItemChildren:i,itemsReordering:!0,isItemReorderable:V,canMoveItemToNewPosition:a,onItemPositionChange:p,isItemEditable:g,onItemLabelChange:x,checkboxSelection:c,multiSelect:m,defaultExpandedItems:O,slots:{item:z},sx:{[`& .${Kr.treeItemClasses.dragAndDropOverlay}::before`]:{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"},[`& .${Kr.treeItemClasses.dragAndDropOverlay}::after`]:{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"},[`& .${Kr.treeItemClasses.dragAndDropOverlay}`]:{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important","&::before":{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"},"&::after":{borderColor:"#1E88E5 !important",borderWidth:"2px !important",borderTopWidth:"2px !important",borderBottomWidth:"2px !important"}}}})},Yu=z6;var Jt=require("@mui/material"),Ku=v(require("@myunisoft/mui-symbols-material-w300-esm/AddFilledRounded")),Zu=v(require("@myunisoft/mui-symbols-material-w300-esm/DeleteRounded")),Xu=v(require("@myunisoft/mui-symbols-material-w300-esm/EditRounded")),It=require("react/jsx-runtime"),qu=(e,t,r,o)=>{let{onRename:n,onDelete:i,onCreateSubsection:l}=t,{canRename:a,canDelete:p,canCreateSubsection:c}=o;return[(0,It.jsxs)(Jt.MenuItem,{disabled:!a,onClick:()=>r(()=>n(e.id)),children:[(0,It.jsx)(Jt.Box,{sx:{mr:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,It.jsx)(Xu.default,{sx:{width:20,height:20}})}),"Renommer"]},"rename"),(0,It.jsxs)(Jt.MenuItem,{disabled:!p,sx:{color:p?"error.main":void 0},onClick:()=>r(()=>i(e.id)),children:[(0,It.jsx)(Jt.Box,{sx:{mr:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,It.jsx)(Zu.default,{sx:{width:20,height:20}})}),"Supprimer"]},"delete"),(0,It.jsx)(Jt.Divider,{},"divider"),(0,It.jsxs)(Jt.MenuItem,{disabled:!c,onClick:()=>r(()=>l(e.id)),children:[(0,It.jsx)(Jt.Box,{sx:{mr:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,It.jsx)(Ku.default,{sx:{width:20,height:20}})}),"Cr\xE9er une sous-section"]},"create-subsection")]};var Ze=require("react/jsx-runtime"),ei=()=>!0,H6=({sections:e,onSectionOrderChange:t,onSectionTitleChange:r,onSectionDelete:o,onSectionVisibilityChange:n,onSectionCreate:i,noSectionsPlaceholder:l,isLoading:a=!1,getSectionTitleChangePermission:p=ei,getSectionDeletePermission:c=ei,getSectionReorderPermission:m=ei,getSectionCreatePermission:f=ei,getSectionVisibilityPermission:d=ei,hiddenSectionTooltip:u,visibleIconTooltip:h,hiddenIconTooltip:g})=>{let[C,x]=(0,Me.useState)("content"),b=(0,Qu.useTreeViewApiRef)(),I=(0,Me.useRef)(null),{getSectionById:D}=Du(e),S=(0,Me.useCallback)(()=>{setTimeout(()=>{var N;(N=I.current)==null||N.scrollTo({top:I.current.scrollHeight,behavior:"smooth"})},0)},[]),{temporarySection:T,create:k,validate:w,cancel:A,isTemporary:O}=Lu({apiRef:b,getSectionById:D,onSectionCreate:i,scrollToBottom:S}),E=(0,Me.useCallback)(N=>{t==null||t(N)},[t]),L=(0,Me.useCallback)((N,U)=>{r==null||r(N,U)},[r]),V=(0,Me.useCallback)(N=>{o==null||o(N)},[o]),H=(0,Me.useCallback)((N,U)=>{n==null||n(N,U)},[n]),M=(0,Me.useCallback)(N=>{var U,re,de,Re;(re=(U=b.current)==null?void 0:U.focusItem)==null||re.call(U,null,N),(Re=(de=b.current)==null?void 0:de.setEditedItem)==null||Re.call(de,N)},[]),z=(0,Me.useCallback)((N,U)=>qu(N,{onRename:M,onDelete:V,onCreateSubsection:k},U,{canRename:p(N),canDelete:c(N),canCreateSubsection:f(N)}),[M,V,k,p,c,f]),$=(0,Me.useCallback)(N=>p(N),[p]),K=(0,Me.useCallback)(N=>{let U=D(N);return U?m(U):!1},[D,m]),X=(0,Me.useCallback)(N=>{let U=D(N.itemId);return!(!U||!m(U))},[D,m]),Z=(0,Me.useCallback)((N,U)=>{let re=D(N);re&&d(re)&&H(N,U)},[D,d,H]);(0,Me.useEffect)(()=>{a&&x(null)},[a]);let R=(0,Me.useMemo)(()=>Qs(e||[]),[e]);return(0,Ze.jsxs)(Go.Box,{sx:U6,children:[(0,Ze.jsxs)(Go.Box,{sx:W6,children:[a&&(0,Ze.jsx)(Nu,{}),!a&&(e==null?void 0:e.length)&&(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsx)(Go.Box,{ref:I,sx:G6,children:(0,Ze.jsx)(Yu,{apiRef:b,items:e||[],getItemId:Ru,getItemLabel:Eu,getItemChildren:ku,hasItemMenu:Iu,getMenuItems:z,isItemEditable:$,isSectionItem:wu,getIconItem:Mu,isItemReorderable:K,canMoveItemToNewPosition:X,onItemPositionChange:E,onItemLabelChange:L,isVisibleItem:Tu,onItemVisibilityChange:Z,hiddenSectionTooltip:u,visibleIconTooltip:h,hiddenIconTooltip:g,temporaryItem:T,isTemporaryItem:O,onTemporarySectionValidation:w,onTemporarySectionCancel:A,defaultExpandedItems:R})}),(0,Ze.jsx)(Go.Box,{sx:$6,children:(0,Ze.jsx)(Go.Button,{size:"small",variant:"outlined",startIcon:(0,Ze.jsx)(Ju.default,{}),onClick:()=>k(),children:F.t("documentComposer.createSection")})})]}),!a&&!(e!=null&&e.length)&&(0,Ze.jsx)(Ou,{noSectionsPlaceholder:l})]}),a&&(0,Ze.jsx)(Pu,{}),!a&&(0,Ze.jsx)(Go.Box,{children:C})]})},ef=H6,U6={display:"grid",gridTemplateColumns:"430px 1fr",gap:2,height:"100%",minHeight:0},W6={display:"flex",flexDirection:"column",minHeight:0},G6={flex:1,overflow:"auto",minHeight:0},$6={height:48,display:"flex",justifyContent:"center",alignItems:"center",borderTop:1,borderColor:"divider"};var Ft=require("react/jsx-runtime"),j6=e=>(0,Ft.jsx)(j,s({content:(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)("defs",{children:(0,Ft.jsx)("path",{id:"oacgutx6wa",d:"M9.5 12.78l-.21-3.82V8h1.44v.96l-.26 3.82H9.5zm.5 2.31c-.53 0-.81-.31-.81-.82 0-.49.28-.8.81-.8.52 0 .81.31.81.8 0 .51-.29.82-.81.82z"})}),(0,Ft.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Ft.jsx)("path",{fill:"currentColor",d:"M10.894 1.789l8.382 16.764A1 1 0 0118.382 20H1.618a1 1 0 01-.894-1.447L9.106 1.789a1 1 0 011.788 0z"}),(0,Ft.jsx)("use",{fill:"#FFF",xlinkHref:"#oacgutx6wa"})]})]})},e)),tf=j6;var vo=require("react/jsx-runtime"),Y6=e=>(0,vo.jsx)(j,s({content:(0,vo.jsxs)(vo.Fragment,{children:[(0,vo.jsx)("defs",{children:(0,vo.jsx)("path",{id:"archive",d:"M5.7 8c.2 0 .4 0 .6.2l1.4 1.1.6.2h3.4c.2 0 .4 0 .6-.2l1.4-1.1.6-.2H19c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1H1a1 1 0 0 1-1-1V9c0-.6.4-1 1-1h4.7Zm0 1H1v8h18V9h-4.7L13 10.1a2 2 0 0 1-1 .4H8.3a2 2 0 0 1-1-.3l-.2-.1L5.7 9ZM18 4c.8 0 1.4.6 1.5 1.4v2.1h-1v-2c0-.2-.2-.4-.4-.5H2c-.2 0-.5.2-.5.4v2.1h-1v-2c0-.8.6-1.4 1.4-1.5H18ZM17 0c.8 0 1.4.6 1.5 1.4v2.1h-1v-2c0-.2-.2-.4-.4-.5H3c-.2 0-.5.2-.5.4v2.1h-1v-2C1.5.7 2.1.1 2.9 0H17Z"})}),(0,vo.jsx)("use",{fill:"currentColor",xlinkHref:"#archive"})]})},e)),of=Y6;var $o=require("react/jsx-runtime"),K6=e=>(0,$o.jsx)(j,s({content:(0,$o.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,$o.jsx)("path",{fillRule:"nonzero",d:"M18.718 1c.446 0 .607.044.77.127a.886.886 0 01.378.359c.088.155.134.308.134.732v16.564c0 .424-.046.577-.134.732a.887.887 0 01-.378.36c-.163.082-.324.126-.77.126H1.282c-.446 0-.607-.044-.77-.127a.887.887 0 01-.378-.359C.046 19.359 0 19.206 0 18.782V2.218c0-.424.046-.577.134-.732a.887.887 0 01.378-.36C.675 1.045.836 1 1.282 1h17.436zm.274 1.005L18.919 2H1.08l-.074.005-.005.07v16.849l.005.068.074.006.201.002 17.64-.002.072-.006.006-.068.002-.19-.002-16.66-.006-.07z"}),(0,$o.jsx)("path",{d:"M5.641 6h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19C6.663 7.976 6.582 8 6.36 8h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C5.024 7.663 5 7.582 5 7.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19C5.337 6.024 5.418 6 5.64 6zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C5.024 11.663 5 11.582 5 11.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C5.024 15.663 5 15.582 5 15.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm4-8h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C9.024 7.663 9 7.582 9 7.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19C9.337 6.024 9.418 6 9.64 6zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C9.024 11.663 9 11.582 9 11.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C9.024 15.663 9 15.582 9 15.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm4-8h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189C13.024 7.663 13 7.582 13 7.36v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189c-.043-.081-.066-.162-.066-.385v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066zm0 4h.718c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189c-.043-.081-.066-.162-.066-.385v-.718c0-.223.023-.304.067-.385a.454.454 0 01.189-.19c.081-.043.162-.066.385-.066z"}),(0,$o.jsx)("rect",{width:"1",height:"2",x:"5",rx:"0.5"}),(0,$o.jsx)("rect",{width:"1",height:"2",x:"14",rx:"0.5"})]})},e)),rf=K6;var eo=require("react/jsx-runtime"),Z6=e=>(0,eo.jsx)(j,s({content:(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("mask",{id:"u61g1wksra",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",children:(0,eo.jsx)("path",{fill:"currentColor",d:"M0 0h32v32H0z"})}),(0,eo.jsx)("g",{mask:"url(#u61g1wksra)",children:(0,eo.jsx)("path",{d:"m15 16.287-1.777 1.757a.923.923 0 0 1-.684.276c-.274 0-.51-.099-.708-.297a.91.91 0 0 1-.284-.702.976.976 0 0 1 .284-.703l3.325-3.326c.241-.24.523-.361.844-.361.321 0 .603.12.844.361l3.325 3.326a.998.998 0 0 1 .294.691.908.908 0 0 1-.294.715.954.954 0 0 1-.692.28.996.996 0 0 1-.713-.273L17 16.287v7.303c0 .102.043.196.128.282.086.085.18.128.282.128h7.257c.933 0 1.722-.322 2.366-.967.645-.644.967-1.433.967-2.366 0-.934-.322-1.723-.967-2.367-.644-.644-1.433-.967-2.366-.967h-2v-2.666c0-1.845-.65-3.417-1.95-4.717C19.417 8.65 17.844 8 16 8c-1.844 0-3.417.65-4.717 1.95-1.3 1.3-1.95 2.872-1.95 4.717h-.692c-1.263 0-2.353.455-3.268 1.366-.915.911-1.373 2.011-1.373 3.3 0 1.29.456 2.39 1.367 3.3.91.911 2.01 1.367 3.3 1.367H11c.283 0 .52.096.713.288.191.191.287.429.287.712a.967.967 0 0 1-.287.713A.969.969 0 0 1 11 26H8.667c-1.843 0-3.415-.64-4.716-1.918C2.651 22.804 2 21.242 2 19.395c0-1.656.533-3.113 1.599-4.37 1.065-1.258 2.387-2.003 3.965-2.235.427-1.993 1.43-3.623 3.007-4.89C12.148 6.633 13.957 6 16 6c2.414 0 4.462.84 6.144 2.523 1.682 1.681 2.523 3.73 2.523 6.144v.666h.41c1.405.11 2.577.675 3.515 1.695.939 1.02 1.408 2.234 1.408 3.639 0 1.487-.513 2.747-1.538 3.782C27.436 25.483 26.179 26 24.692 26H17.41a2.327 2.327 0 0 1-1.71-.7 2.327 2.327 0 0 1-.7-1.71v-7.303z",fill:"currentColor"})})]}),viewBox:"0 0 32 32"},e)),cl=Z6;var Zr=require("react/jsx-runtime"),X6=e=>(0,Zr.jsx)(j,s({content:(0,Zr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Zr.jsx)("path",{d:"M16 5H4c-.3 0-.5.2-.5.5s.2.5.5.5h12c.3 0 .5-.2.5-.5 0-.1-.1-.3-.2-.4 0 0-.1-.1-.3-.1zm0 4H4c-.3 0-.5.2-.5.5s.2.5.5.5h12c.3 0 .5-.2.5-.5 0-.1-.1-.3-.2-.4 0 0-.1-.1-.3-.1z"}),(0,Zr.jsx)("path",{fillRule:"nonzero",d:"M19 0a1 1 0 011 1v13a1 1 0 01-1 1H9.144a.3.3 0 00-.234.113L5.402 19.89a.3.3 0 01-.528-.129l-.826-4.52A.3.3 0 003.754 15H1a1 1 0 01-1-1V1a1 1 0 011-1h18zm0 1H1v13h2.754a1.3 1.3 0 011.243.918l.032.127.53 2.654 2.57-3.211a1.3 1.3 0 01.868-.48L9.144 14H19V1z"})]})},e)),nf=X6;var qe=require("react/jsx-runtime"),q6=e=>(0,qe.jsx)(j,s({content:(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)("circle",{cx:"16",cy:"14",r:"3",fill:"transparent",stroke:"currentColor"}),(0,qe.jsx)("rect",{width:"7",height:"1",x:"3.5",y:"9.5",fill:"currentColor",rx:"0.5"}),(0,qe.jsx)("rect",{width:"7",height:"1",x:"3.5",y:"5.5",fill:"currentColor",rx:"0.5"}),(0,qe.jsx)("rect",{width:"7",height:"1",x:"3.5",y:"14",fill:"currentColor",rx:"0.5"}),(0,qe.jsx)("circle",{cx:"16",cy:"6",r:"3",fill:"transparent",stroke:"currentColor"}),(0,qe.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",d:"M15 5l2 2M17 5l-2 2"}),(0,qe.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.5 1.5h-14v17h14v-1.035a3.538 3.538 0 001 0V18.5a1 1 0 01-1 1h-14a1 1 0 01-1-1v-17a1 1 0 011-1h14a1 1 0 011 1v1.035a3.53 3.53 0 00-1 0V1.5zm0 7.965v1.07a3.538 3.538 0 011 0v-1.07a3.53 3.53 0 01-1 0z",clipRule:"evenodd"}),(0,qe.jsx)("path",{fill:"currentColor",d:"M15.244 15.46a.5.5 0 010-.708l1.935-1.935a.5.5 0 11.707.707l-1.935 1.935a.5.5 0 01-.707 0z"}),(0,qe.jsx)("path",{fill:"currentColor",d:"M15.854 15.563a.5.5 0 01-.708 0l-1.021-1.022a.5.5 0 01.707-.707l1.022 1.022a.5.5 0 010 .707z"})]})},e)),lf=q6;var Xr=require("react/jsx-runtime"),Q6=e=>(0,Xr.jsx)(j,s({content:(0,Xr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Xr.jsx)("path",{d:"M19.004 10.335v5.203c0 1.415-1.335 2.564-2.746 2.564H3.708a2.567 2.567 0 01-2.564-2.564V10.25a.57.57 0 00-.572-.572.57.57 0 00-.572.572v5.288a3.712 3.712 0 003.708 3.708h12.55c2.047 0 3.742-1.665 3.742-3.708v-5.203c0-.314-.182-.585-.5-.585s-.496.267-.496.585z"}),(0,Xr.jsx)("path",{d:"M9.808 14.712c.11.11.259.17.403.17a.558.558 0 00.402-.17l3.636-3.636a.57.57 0 000-.81.57.57 0 00-.81 0l-2.656 2.662V1.322A.57.57 0 0010.21.75a.57.57 0 00-.572.572v11.606l-2.661-2.661a.57.57 0 00-.81 0 .57.57 0 000 .81l3.64 3.635z"})]})},e)),sf=Q6;var qr=require("react/jsx-runtime"),J6=e=>(0,qr.jsx)(j,s({content:(0,qr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,qr.jsx)("path",{d:"M17.4 0c.9 0 1.6.7 1.6 1.6v11.6c0 .8-.7 1.5-1.6 1.5H5.8c-.9 0-1.6-.7-1.6-1.5V1.6C4.2.7 5 0 5.8 0Zm0 1H5.8c-.3 0-.5.2-.5.5v11.7c0 .2.2.4.4.5h11.7c.3 0 .5-.2.5-.4V1.6c0-.3-.1-.5-.4-.5Zm0 0"}),(0,qr.jsx)("path",{d:"M3.2 4.2v1h-2v.1l-.1.1v11.4c0 .6.4 1 .9 1H2l10.6.1c.7 0 1-.1 1-.5v-1.6h1v1.6c0 1-.6 1.5-1.9 1.5H2.1C1 19 .1 18.1 0 17V5.8l.1-.9c.2-.4.6-.6 1-.7h.2Zm0 0"})]})},e)),af=J6;var Qr=require("react/jsx-runtime"),e8=e=>(0,Qr.jsx)(j,s({content:(0,Qr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Qr.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.12821 2.60093C7.8874 2.50785 7.61631 2.50005 6.8144 2.50005H6C5.04306 2.50005 4.37565 2.50111 3.87208 2.56882C3.3829 2.63459 3.12385 2.75488 2.93934 2.93939C2.75483 3.1239 2.63453 3.38295 2.56877 3.87213C2.50106 4.3757 2.5 5.04311 2.5 6.00005V11.0001H1.5L1.5 5.96347C1.49999 5.05174 1.49998 4.31686 1.57768 3.73888C1.65836 3.13881 1.83096 2.63356 2.23223 2.23228C2.63351 1.83101 3.13876 1.65841 3.73883 1.57773C4.31681 1.50003 5.05169 1.50004 5.96342 1.50005L6.8144 1.50005C6.84434 1.50005 6.87389 1.50004 6.90305 1.50003C7.58121 1.49972 8.05236 1.49951 8.48874 1.66818C8.92511 1.83684 9.27364 2.15387 9.77531 2.6102C9.79688 2.62982 9.81874 2.6497 9.8409 2.66984L10.8893 3.62263L10.8928 3.62573C11.4828 4.16188 11.6874 4.3375 11.9266 4.43054C12.1659 4.52358 12.4354 4.53238 13.2326 4.53559L15.0547 4.54295C15.963 4.5466 16.6952 4.54954 17.271 4.62921C17.8689 4.71192 18.372 4.88573 18.7713 5.28662C19.1706 5.68752 19.3424 6.19137 19.4227 6.78958C19.5 7.3657 19.5 8.09794 19.5 9.00626V14.0366C19.5 14.9484 19.5 15.6832 19.4223 16.2612C19.3416 16.8613 19.169 17.3665 18.7678 17.7678C18.3665 18.1691 17.8612 18.3417 17.2612 18.4224C16.6832 18.5001 15.9483 18.5001 15.0366 18.5001H9V17.5001H15C15.9569 17.5001 16.6244 17.499 17.1279 17.4313C17.6171 17.3655 17.8762 17.2452 18.0607 17.0607C18.2452 16.8762 18.3655 16.6172 18.4312 16.128C18.4989 15.6244 18.5 14.957 18.5 14V9.04276C18.5 8.08932 18.4989 7.42445 18.4316 6.92262C18.3661 6.43516 18.2465 6.1767 18.0628 5.9923C17.8791 5.80791 17.6212 5.68717 17.134 5.61977C16.6324 5.55038 15.9676 5.54664 15.0141 5.54279L13.2286 5.53559C13.1988 5.53547 13.1694 5.53536 13.1404 5.53526C12.4662 5.53284 11.9978 5.53116 11.5642 5.36256C11.1307 5.19396 10.7842 4.87878 10.2854 4.42512C10.2651 4.40664 10.2445 4.38794 10.2237 4.369L10.2202 4.3659L9.16834 3.40989C8.57489 2.87056 8.36903 2.69401 8.12821 2.60093Z",fill:"#222222"}),(0,Qr.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.3536 11.6464C10.5488 11.8417 10.5488 12.1583 10.3536 12.3536L5.06066 17.6464C4.47487 18.2322 3.52513 18.2322 2.93934 17.6464L0.646447 15.3536C0.451184 15.1583 0.451184 14.8417 0.646447 14.6464C0.841709 14.4512 1.15829 14.4512 1.35355 14.6464L3.64645 16.9393C3.84171 17.1346 4.15829 17.1346 4.35355 16.9393L9.64645 11.6464C9.84171 11.4512 10.1583 11.4512 10.3536 11.6464Z",fill:"#0BD1D1"})]})},e)),cf=e8;var Jr=require("react/jsx-runtime"),t8=e=>(0,Jr.jsx)(j,s({content:(0,Jr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Jr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50584 3.06766C5.7012 3.26282 5.70136 3.5794 5.50619 3.77476L1.70693 7.57783L5.5074 11.3783C5.70266 11.5736 5.70266 11.8901 5.5074 12.0854C5.31214 12.2807 4.99555 12.2807 4.80029 12.0854L0.646447 7.93156C0.451253 7.73636 0.451174 7.41992 0.64627 7.22463L4.79873 3.06801C4.9939 2.87265 5.31048 2.87249 5.50584 3.06766Z",fill:"currentColor"}),(0,Jr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 7.57812C0.5 7.30198 0.723858 7.07812 1 7.07812H14.8462C16.3186 7.07812 17.5118 7.47877 18.3289 8.36398C19.1391 9.24164 19.5 10.5105 19.5 12.0781C19.5 13.6457 19.1391 14.9146 18.3289 15.7923C17.5118 16.6775 16.3186 17.0781 14.8462 17.0781H7.92308C7.64693 17.0781 7.42308 16.8543 7.42308 16.5781C7.42308 16.302 7.64693 16.0781 7.92308 16.0781H14.8462C16.143 16.0781 17.0266 15.7288 17.5941 15.114C18.1686 14.4916 18.5 13.5105 18.5 12.0781C18.5 10.6457 18.1686 9.66461 17.5941 9.04227C17.0266 8.42748 16.143 8.07812 14.8462 8.07812H1C0.723858 8.07812 0.5 7.85427 0.5 7.57812Z",fill:"currentColor"})]})},e)),pf=t8;var Ir=require("react/jsx-runtime"),o8=e=>(0,Ir.jsx)(j,s({content:(0,Ir.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,Ir.jsx)("path",{fillRule:"nonzero",d:"M18.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v17.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h17.436zm.274 1.007l-.073-.005H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.002-17.638-.006-.074z"}),(0,Ir.jsx)("circle",{cx:"10",cy:"5.5",r:"1"}),(0,Ir.jsx)("path",{d:"M10 7a.5.5 0 01.5.5v7a.5.5 0 11-1 0v-7A.5.5 0 0110 7z"})]})},e)),df=o8;var ta=require("react/jsx-runtime"),r8=e=>(0,ta.jsx)(j,s({content:(0,ta.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.845 0c.861 0 1.082.734 1.129.96l.006 18.012c0 .622-.517 1.008-.998 1.008H.998c-.617 0-.998-.523-.998-1.008V1.007C0 .385.518 0 .998 0zm.158.977H.978v18.025h18.025V.977zm-3.245 13.706v.978h-11.5v-.978h11.5zm0-3.407v.978h-11.5v-.978h11.5zm0-3.407v.978h-11.5v-.978h11.5zm0-3.408v.978h-11.5v-.978h11.5z"})},e)),mf=r8;var Tr=require("react/jsx-runtime"),n8=e=>(0,Tr.jsx)(j,s({content:(0,Tr.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",transform:"translate(8)",children:[(0,Tr.jsx)("circle",{cx:"2",cy:"2",r:"2"}),(0,Tr.jsx)("circle",{cx:"2",cy:"10",r:"2"}),(0,Tr.jsx)("circle",{cx:"2",cy:"18",r:"2"})]})},e)),en=n8;var it=require("react/jsx-runtime"),i8=e=>(0,it.jsx)(j,s({content:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("defs",{children:(0,it.jsx)("path",{id:"73qebg572a",d:"M15 3.562C14.875 1.388 13.25-.242 11.125.03 9.25.165 7.875 1.796 7.75 3.698v9.374c0 1.358 1 2.58 2.375 2.58s2.375-1.222 2.375-2.58V6.143c0-.408-.25-.68-.625-.68s-.625.272-.625.544v6.929c0 .679-.5 1.358-1.125 1.358S9 13.751 9 12.936V3.562c.125-1.495 1.375-2.581 2.75-2.446C13 1.252 13.875 2.34 14 3.562v11.14c0 2.31-1.75 4.211-3.875 4.211S6.25 17.011 6.25 14.702V3.834c0-.408-.25-.68-.625-.68S5 3.426 5 3.698v10.868C5 17.555 7.25 20 10 20s5-2.445 5-5.434V3.562z"})}),(0,it.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,it.jsx)("mask",{id:"3co1ycm7eb",fill:"#fff",children:(0,it.jsx)("use",{xlinkHref:"#73qebg572a"})}),(0,it.jsx)("use",{fill:"currentColor",xlinkHref:"#73qebg572a"}),(0,it.jsx)("g",{fill:"currentColor",mask:"url(#3co1ycm7eb)",children:(0,it.jsx)("path",{d:"M0 0h20v20H0z"})})]})]})},e)),pl=i8;var wo=require("react/jsx-runtime"),l8=e=>(0,wo.jsx)(j,s({content:(0,wo.jsxs)(wo.Fragment,{children:[(0,wo.jsx)("defs",{children:(0,wo.jsx)("path",{id:"plus",d:"M20 9H11V0h-2v9H0v2h9V20h2V11H20z"})}),(0,wo.jsx)("use",{fill:"currentColor",xlinkHref:"#plus"})]})},e)),uf=l8;var tn=require("react/jsx-runtime"),s8=e=>(0,tn.jsx)(j,s({content:(0,tn.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,tn.jsx)("path",{d:"M15.6 9.4c.2 0 .4-.2.4-.4V3.9h-5.2c-.2 0-.4.1-.4.4 0 .2.2.4.4.4h3.7L8.2 11l-.2.3c0 .2 0 .3.2.4.1.1.3.2.6 0l6.4-6.4V9c-.1.3.1.4.4.4Z"}),(0,tn.jsx)("path",{d:"M19 .3H5c-.3 0-.4.2-.4.5v3.9h-4c-.3 0-.4.1-.4.4v14c0 .3.1.5.4.5h14c.3 0 .5-.2.5-.4v-4H19c.2 0 .4-.1.4-.4V.8c.1-.3 0-.5-.3-.5Zm-4.8 18.5H1.1V5.6h3.5v9.2c0 .3.1.4.4.4h9.2v3.6Zm4.4-4.4H5.4V1.2h13.2v13.2Z",fillRule:"nonzero"})]})},e)),ff=s8;var dl=require("react/jsx-runtime"),a8=e=>(0,dl.jsx)(j,s({content:(0,dl.jsx)("g",{fill:"currentColor",fillRule:"evenodd",children:(0,dl.jsx)("path",{d:"M15 0c.7 0 1.2.5 1.2 1.2v3.7h2c1 0 1.8.8 1.8 1.8V14c0 1-.8 1.7-1.8 1.7h-2v3.1c0 .7-.5 1.2-1.2 1.2H5c-.7 0-1.2-.5-1.2-1.2v-3h-2c-1 0-1.8-.9-1.8-1.8V6.7c0-1 .8-1.8 1.8-1.8h2V1.2C3.8.5 4.3 0 5 0Zm.2 10.8H4.8v8l.2.2h10s.2 0 .2-.2v-8Zm-2.3 5.9c.3 0 .5.2.5.5 0 .2-.2.5-.5.5H7.1a.5.5 0 0 1-.6-.5c0-.3.3-.5.6-.5Zm0-2.3c.3 0 .5.2.5.5s-.2.5-.5.5H7.1a.5.5 0 0 1-.6-.5c0-.3.3-.5.6-.5Zm5.3-8.5H1.8c-.4 0-.8.3-.8.8V14c0 .4.4.7.8.7h2v-4.4c0-.3.2-.5.5-.5h11.4c.3 0 .5.2.5.5v4.4h2c.4 0 .8-.3.8-.7V6.7c0-.5-.4-.8-.8-.8ZM12.9 12c.3 0 .5.3.5.5 0 .3-.2.5-.5.5H7.1a.5.5 0 0 1-.6-.5c0-.2.3-.5.6-.5ZM2.7 7.5c.2-.2.5-.2.7 0l.2.3c0 .2 0 .3-.2.4a.5.5 0 0 1-.7 0 .5.5 0 0 1 0-.7ZM15 1H5s-.2 0-.2.2v3.7h10.4V1.2L15 1Z"})})},e)),hf=a8;var on=require("react/jsx-runtime"),c8=e=>(0,on.jsx)(j,s({content:(0,on.jsxs)("g",{fill:"currentColor",children:[(0,on.jsx)("path",{d:"M14.272 3.585l-.55.836C11.72 3.105 9.127 2.996 6.99 4.136a6.99 6.99 0 00-2.88 2.917c-1.066 2.063-.999 4.516.174 6.458l.134.214-.835.55c-1.501-2.278-1.631-5.223-.361-7.681a7.989 7.989 0 013.298-3.34c2.459-1.311 5.443-1.187 7.753.331zm2.145 2.14c1.973 2.987 1.547 7.018-1.064 9.629-2.528 2.528-6.437 2.983-9.408 1.19l-.21-.131.544-.84c2.6 1.689 6.114 1.327 8.367-.926 2.217-2.217 2.626-5.598 1.067-8.165l-.13-.206.834-.552z"}),(0,on.jsx)("path",{d:"M14.825 3.732a.511.511 0 01-.212.72l-.071.03-.075.02-1.565.284a.389.389 0 01-.445-.285.339.339 0 01.213-.4l.064-.017 1.324-.241-.667-1.17a.341.341 0 01.087-.445l.055-.034a.389.389 0 01.467.102l.038.055.787 1.381zM5.173 16.22a.511.511 0 01.212-.721l.071-.03.076-.019 1.564-.284c.2-.037.399.091.445.285a.339.339 0 01-.213.4l-.064.017-1.324.24.667 1.17a.34.34 0 01-.086.446l-.056.034A.389.389 0 016 17.655l-.038-.054-.788-1.382z"})]})},e)),gf=c8;var ml=require("react/jsx-runtime"),p8=e=>(0,ml.jsx)(j,s({content:(0,ml.jsx)("g",{fill:"currentColor",children:(0,ml.jsx)("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"})})},e)),yf=p8;var kr=require("react/jsx-runtime"),d8=e=>(0,kr.jsx)(j,s({content:(0,kr.jsxs)("g",{fill:"currentColor",children:[(0,kr.jsx)("path",{d:"M13.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v5.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H6.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378C5.046 7.325 5 7.164 5 6.718V1.282c0-.446.046-.607.134-.77a.909.909 0 01.378-.378C5.675.046 5.836 0 6.282 0h7.436zm.274 1.007l-.073-.005H6.081l-.074.005-.005.074v5.838l.005.073.074.006.2.002 7.638-.002.073-.006.006-.073.002-.2-.002-5.638-.006-.074zM14.718 11c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v6.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H5.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77v-6.436c0-.446.046-.607.134-.77a.909.909 0 01.378-.378c.163-.088.324-.134.77-.134h9.436zm.274 1.007l-.073-.005H5.081l-.074.005-.005.074v6.838l.005.073.074.006.2.002 9.638-.002.073-.006.006-.073.002-.2-.002-6.638-.006-.074z"}),(0,kr.jsx)("path",{d:"M15.825.032a.87.87 0 01.272.113l.086.06.103.088.15.145L19.56 3.56l.146.15.088.103.06.085a.87.87 0 01.113.273c.011.05.02.097.024.164l.007.167L20 18.718c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h14.212l.167.008c.067.005.114.013.164.024zm-.244.971l-.033-.001H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.004-14.305-.023-.026-3.392-3.385z"}),(0,kr.jsx)("path",{d:"M12.359 2c.223 0 .304.023.385.067a.454.454 0 01.19.189c.043.081.066.162.066.385v2.718c0 .223-.023.304-.067.385a.454.454 0 01-.189.19c-.081.043-.162.066-.385.066h-.718c-.223 0-.304-.023-.385-.067a.454.454 0 01-.19-.189.59.59 0 01-.064-.285L11 2.641c0-.223.023-.304.067-.385a.454.454 0 01.189-.19.59.59 0 01.285-.064L12.359 2zm.137.503l-.031-.002-.962.002-.003.074.003 2.919.138.004.855-.004.004-.137-.004-2.856z"})]})},e)),ul=d8;var Vt=require("react/jsx-runtime"),m8=e=>(0,Vt.jsx)(j,s({content:(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)("rect",{width:"20",height:"20",fill:"currentColor",rx:"10"}),(0,Vt.jsx)("mask",{id:"mask0_1887_3226",style:{maskType:"alpha"},width:"16",height:"16",x:"2",y:"2",maskUnits:"userSpaceOnUse",children:(0,Vt.jsx)("path",{fill:"currentColor",d:"M2 2H18V18H2z"})}),(0,Vt.jsx)("g",{mask:"url(#mask0_1887_3226)",children:(0,Vt.jsx)("path",{fill:"#fff",d:"M6.667 11v4.333c0 .142-.048.26-.144.357a.484.484 0 01-.357.143.483.483 0 01-.356-.143.484.484 0 01-.143-.357v-9.73c0-.171.057-.314.173-.43A.583.583 0 016.27 5h4.295c.143 0 .27.045.382.134a.58.58 0 01.21.348l.174.851h3.066c.171 0 .314.058.43.173a.579.579 0 01.173.427v4.8c0 .17-.058.313-.173.428a.584.584 0 01-.43.172h-2.962a.593.593 0 01-.382-.134.58.58 0 01-.21-.348L10.668 11H6.667z"})})]})},e)),xf=m8;var rn=require("react/jsx-runtime"),u8=e=>(0,rn.jsx)(j,s({content:(0,rn.jsxs)("g",{fill:"currentColor",fillRule:"nonzero",children:[(0,rn.jsx)("path",{d:"M10.268 0a2 2 0 0 1 1.98 1.718l.09.63c.358.108.705.242 1.039.397l.793-.595a2 2 0 0 1 2.615.186l.38.379a2 2 0 0 1 .185 2.615l-.457.607c.318.538.574 1.116.76 1.725l.629.09A2 2 0 0 1 20 9.732v.536a2 2 0 0 1-1.718 1.98l-.63.09a7.957 7.957 0 0 1-.76 1.725l.458.607a2 2 0 0 1-.068 2.487l-.117.128-.38.38a2 2 0 0 1-2.47.283l-.145-.098-.793-.595c-.334.155-.681.289-1.039.398l-.09.629a2 2 0 0 1-1.824 1.712l-.156.006h-.536a2 2 0 0 1-1.952-1.565l-.028-.153-.09-.629a7.944 7.944 0 0 1-1.039-.398l-.793.595a2 2 0 0 1-2.487-.068l-.128-.117-.38-.38a2 2 0 0 1-.283-2.47l.098-.145.457-.607a7.957 7.957 0 0 1-.76-1.726l-.629-.09A2 2 0 0 1 0 10.268v-.535a2 2 0 0 1 1.718-1.98l.63-.09a7.957 7.957 0 0 1 .76-1.725L2.65 5.33a2 2 0 0 1 .186-2.615l.379-.38A2 2 0 0 1 5.83 2.15l.793.595c.335-.155.682-.289 1.04-.398l.09-.629A2 2 0 0 1 9.732 0h.535zm0 1h-.536a1 1 0 0 0-.968.748l-.022.11-.179 1.26-.609.185a6.94 6.94 0 0 0-.611.219l-.297.13-.543.253-1.274-.955a1 1 0 0 0-1.215.011l-.092.082-.38.379a1 1 0 0 0-.16 1.204l.068.103.858 1.141-.34.576c-.224.379-.412.778-.56 1.193l-.104.314-.186.608-1.259.18a1 1 0 0 0-.853.877L1 9.732v.536a1 1 0 0 0 .748.968l.11.022 1.26.179.185.609c.13.422.298.83.504 1.22l.161.288.34.576-.833 1.106-.074.107a1 1 0 0 0 .059 1.141l.083.094.348.35.096.089a1 1 0 0 0 1.138.102l.105-.07 1.273-.954.543.253c.196.092.396.174.6.247l.308.102.61.185.172 1.22.02.116a1 1 0 0 0 .86.775l.116.007h.498l.117-.003a1 1 0 0 0 .888-.743l.023-.114.18-1.258.608-.186a6.94 6.94 0 0 0 .611-.218l.297-.13.543-.253 1.239.93.107.074a1 1 0 0 0 1.141-.059l.094-.083.35-.348.089-.096a1 1 0 0 0 .102-1.137l-.068-.105-.859-1.141.34-.576c.224-.379.412-.779.56-1.193l.104-.315.186-.607 1.259-.18a1 1 0 0 0 .853-.877l.006-.114v-.536a1 1 0 0 0-.748-.968l-.112-.022-1.258-.18-.186-.608a6.95 6.95 0 0 0-.503-1.22l-.161-.288-.34-.576.858-1.14a1 1 0 0 0-.011-1.216l-.082-.092-.379-.38a1 1 0 0 0-1.205-.16l-.103.069-1.273.954-.543-.253a6.948 6.948 0 0 0-.6-.246l-.308-.102-.607-.186-.18-1.259a1 1 0 0 0-.877-.853L10.268 1z"}),(0,rn.jsx)("path",{d:"M10 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"})]})},e)),fl=u8;var Io=require("react/jsx-runtime"),f8=e=>(0,Io.jsx)(j,s({content:(0,Io.jsxs)(Io.Fragment,{children:[(0,Io.jsx)("defs",{children:(0,Io.jsx)("path",{fillRule:"evenodd",id:"split",d:"M.8 8.3h17.5V1.7H.8v6.6Zm18-7.5H.4C.2.8 0 1 0 1.2v7.5c0 .3.2.5.4.5h18.3c.3 0 .5-.2.5-.5V1.2c0-.2-.2-.4-.4-.4ZM.8 19.2h17.5v-6.7H.8v6.7Zm-.4.8h18.3c.3 0 .5-.2.5-.4V12c0-.2-.2-.4-.4-.4H.4c-.2 0-.4.2-.4.4v7.5c0 .2.2.4.4.4Z"})}),(0,Io.jsx)("use",{fill:"currentColor",xlinkHref:"#split"})]})},e)),Cf=f8;var to=require("react/jsx-runtime"),h8=e=>(0,to.jsx)(j,s({content:(0,to.jsxs)(to.Fragment,{children:[(0,to.jsx)("mask",{id:"fmhusd4g4a",fill:"#fff",maskUnits:"userSpaceOnUse",x:"0",y:"0",children:(0,to.jsx)("path",{d:"M0 0h20v20H0z"})}),(0,to.jsx)("g",{mask:"url(#fmhusd4g4a)",fill:"none",children:(0,to.jsx)("path",{d:"M10.39 11.433c-.123 0-.243-.016-.359-.048a1.81 1.81 0 0 1-.345-.137L2.885 7.631a.724.724 0 0 1-.295-.288.8.8 0 0 1-.09-.377.8.8 0 0 1 .09-.376.724.724 0 0 1 .295-.289l6.8-3.617c.115-.058.23-.104.346-.136a1.335 1.335 0 0 1 .716 0c.117.032.232.078.346.136l6.81 3.617a.725.725 0 0 1 .294.289.8.8 0 0 1 .09.376.8.8 0 0 1-.09.377.725.725 0 0 1-.295.288l-6.81 3.617a1.81 1.81 0 0 1-.345.137 1.334 1.334 0 0 1-.358.048zm0-1.226 6.143-3.24-6.144-3.241-6.136 3.24 6.136 3.24zm0 3.253 6.67-3.53c.032-.02.146-.038.339-.056a.595.595 0 0 1 .569.609.64.64 0 0 1-.076.312.59.59 0 0 1-.25.232l-6.55 3.475c-.113.058-.229.104-.345.136a1.338 1.338 0 0 1-.716 0 1.816 1.816 0 0 1-.345-.136l-6.542-3.475a.618.618 0 0 1-.253-.232.615.615 0 0 1-.08-.313.602.602 0 0 1 .577-.609.467.467 0 0 1 .17 0c.054.01.11.029.17.057l6.661 3.53zm0 3.253 6.67-3.53c.032-.02.146-.038.339-.056a.595.595 0 0 1 .569.609.64.64 0 0 1-.076.312.59.59 0 0 1-.25.232l-6.55 3.475c-.113.059-.229.104-.345.136a1.335 1.335 0 0 1-.716 0 1.81 1.81 0 0 1-.345-.136L3.144 14.28a.617.617 0 0 1-.253-.232.615.615 0 0 1-.08-.312.603.603 0 0 1 .577-.609.467.467 0 0 1 .17-.001.7.7 0 0 1 .17.057l6.661 3.53z",fill:"currentColor"})})]})},e)),bf=h8;var Tt=require("react/jsx-runtime"),g8=e=>(0,Tt.jsx)(j,s({content:(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsx)("path",{id:"a",d:"M0 0h19.2v19.2H0z"})}),(0,Tt.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Tt.jsx)("mask",{id:"b",fill:"#fff",children:(0,Tt.jsx)("use",{xlinkHref:"#a"})}),(0,Tt.jsx)("path",{d:"M.9 8.3h7.4V.9H.9v7.4ZM8.7 0H.5C.2 0 0 .2 0 .5v8.2c0 .3.2.5.5.5h8.2c.3 0 .5-.2.5-.5V.5C9.2.2 9 0 8.7 0ZM10.9 18.3h7.4v-7.4h-7.4v7.4Zm7.8.9c.3 0 .5-.2.5-.5v-8.2c0-.3-.2-.5-.5-.5h-8.2c-.3 0-.5.2-.5.5v8.2c0 .3.2.5.5.5h8.2ZM13.7 0H12c-.3 0-.5.2-.5.5s.2.5.5.5h1.8a3 3 0 0 1 3 3v2.3l-.8-.5a.6.6 0 0 0-.3-.1l-.4.1v.7L16.8 8c.2.2.5.2.7 0l1.6-1.5v-.7c-.2-.2-.6-.2-.8 0l-.6.6V3.9a4 4 0 0 0-4-3.9M5.3 19.2H7c.3 0 .5-.2.5-.5 0-.2-.2-.4-.5-.4H5.3a2.8 2.8 0 0 1-2.9-2.7v-2.3l.7.5c.2.2.5.2.6 0 .2-.2.2-.4 0-.6l-1.4-1.4a.5.5 0 0 0-.7 0L0 13.2v.6c.2.1.5.2.7 0l.7-.5v2.3c0 2 1.7 3.6 3.8 3.6",fill:"currentColor",mask:"url(#b)"})]})]})},e)),Sf=g8;var nn=require("react/jsx-runtime"),y8=e=>(0,nn.jsx)(j,s({content:(0,nn.jsxs)("g",{fillRule:"evenodd",children:[(0,nn.jsx)("path",{fillRule:"nonzero",d:"M18.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v17.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h17.436zm.274 1.007l-.073-.005H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.002-17.638-.006-.074z"}),(0,nn.jsx)("path",{d:"M5.5 5h1a.5.5 0 010 1h-1a.5.5 0 010-1zm0 6h1a.5.5 0 110 1h-1a.5.5 0 110-1zm0 3h1a.5.5 0 110 1h-1a.5.5 0 110-1zm0-6h1a.5.5 0 010 1h-1a.5.5 0 010-1zm3-3h6a.5.5 0 110 1h-6a.5.5 0 010-1zm0 6h6a.5.5 0 110 1h-6a.5.5 0 110-1zm0 3h6a.5.5 0 110 1h-6a.5.5 0 110-1zm0-6h6a.5.5 0 110 1h-6a.5.5 0 010-1z"})]})},e)),vf=y8;var hl=require("react/jsx-runtime"),x8=e=>(0,hl.jsx)(j,s({content:(0,hl.jsx)("g",{fill:"currentColor",fillRule:"evenodd",children:(0,hl.jsx)("path",{d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fillRule:"evenodd",clipRule:"evenodd"})})},e)),wf=x8;var jo=require("react/jsx-runtime"),C8=e=>(0,jo.jsx)(j,s({content:(0,jo.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,jo.jsx)("path",{d:"M.5 2.5h17a.5.5 0 1 1 0 1H.5a.5.5 0 0 1 0-1Z"}),(0,jo.jsx)("path",{d:"M15 3h1l-1 15c0 .8-.6 1.4-1.3 1.5H4.4c-.7 0-1.3-.5-1.4-1.3v-.1L2 3 3 3l1 15c0 .3.1.5.4.5h9.2c.2 0 .4-.2.4-.4L15 3Z",fillRule:"nonzero"}),(0,jo.jsx)("path",{d:"M9 5.5c.3 0 .5.2.5.5v10a.5.5 0 1 1-1 0V6c0-.3.2-.5.5-.5ZM12 5.5c.3 0 .5.2.5.5v10a.5.5 0 1 1-1 0V6c0-.3.2-.5.5-.5ZM6 5.5c.3 0 .5.2.5.5v10a.5.5 0 1 1-1 0V6c0-.3.2-.5.5-.5Z"}),(0,jo.jsx)("path",{d:"M11.3 0c.6 0 1.1.3 1.4.8V1l.8 2-1 .3-.7-1.9c0-.1-.2-.3-.4-.3H6.6c-.2 0-.3 0-.4.2v.1l-.8 1.9-1-.4.8-1.9C5.5.4 6 .1 6.6 0h4.7Z",fillRule:"nonzero"})]})},e)),ln=C8;var gl=require("react/jsx-runtime"),b8=e=>(0,gl.jsx)(j,s({content:(0,gl.jsx)("g",{fill:"currentColor",children:(0,gl.jsx)("path",{d:"M15.7421 14.1859L11.165 9.63776C11.1117 9.5897 11.0503 9.56568 10.9808 9.56568C10.9114 9.56568 10.8526 9.5897 10.8044 9.63776L8.76437 11.678C8.49937 11.9428 8.18263 12.0753 7.81416 12.0753C7.44555 12.0753 7.13145 11.9428 6.87187 11.678L2.78708 7.59922C2.67583 7.48936 2.62367 7.36311 2.63062 7.22047C2.63756 7.07783 2.69874 6.9488 2.81416 6.83339C2.93485 6.71269 3.06381 6.65234 3.20103 6.65234C3.33839 6.65234 3.46742 6.71269 3.58812 6.83339L7.62978 10.8959C7.67784 10.9439 7.7393 10.968 7.81416 10.968C7.88888 10.968 7.95027 10.9439 7.99833 10.8959L10.0385 8.85589C10.2981 8.5963 10.6122 8.46651 10.9808 8.46651C11.3493 8.46651 11.6634 8.5963 11.9231 8.85589L16.5 13.4119V11.2276C16.5 11.0738 16.5514 10.9451 16.6542 10.8415C16.7571 10.7378 16.8848 10.6859 17.0373 10.6859C17.1898 10.6859 17.3189 10.7378 17.4246 10.8415C17.5304 10.9451 17.5833 11.0738 17.5833 11.2276V14.5994C17.5833 14.7905 17.5194 14.95 17.3917 15.0778C17.264 15.2054 17.1046 15.2692 16.9133 15.2692H13.5417C13.3879 15.2692 13.2592 15.2178 13.1556 15.1151C13.0519 15.0121 13 14.8844 13 14.7319C13 14.5794 13.0519 14.4503 13.1556 14.3446C13.2592 14.2388 13.3879 14.1859 13.5417 14.1859H15.7421Z",fill:"currentColor"})})},e)),If=b8;var yl=require("react/jsx-runtime"),S8=e=>(0,yl.jsx)(j,s({content:(0,yl.jsx)("g",{fill:"currentColor",children:(0,yl.jsx)("path",{d:"M2.81414 15.0496C2.69872 14.9343 2.63754 14.8067 2.6306 14.6667C2.62365 14.5267 2.67789 14.399 2.7933 14.2838L6.87185 10.2131C7.13143 9.94814 7.44553 9.81564 7.81414 9.81564C8.18261 9.81564 8.49935 9.94814 8.76435 10.2131L10.8043 12.2452C10.8525 12.2933 10.9114 12.3173 10.9808 12.3173C11.0502 12.3173 11.1116 12.2933 11.165 12.2452L15.7421 7.6971H13.5416C13.3879 7.6971 13.2592 7.64571 13.1556 7.54294C13.0518 7.44002 13 7.31231 13 7.15981C13 7.00731 13.0518 6.87821 13.1556 6.77252C13.2592 6.66669 13.3879 6.61377 13.5416 6.61377H16.9133C17.1046 6.61377 17.264 6.67766 17.3916 6.80544C17.5194 6.93321 17.5833 7.09266 17.5833 7.28377V10.6554C17.5833 10.8092 17.5318 10.9379 17.4289 11.0417C17.3262 11.1453 17.1985 11.1971 17.046 11.1971C16.8935 11.1971 16.7644 11.1486 16.6587 11.0517C16.5529 10.9546 16.5 10.8322 16.5 10.6844V8.47106L11.9231 13.0481C11.6634 13.3077 11.3493 13.4375 10.9808 13.4375C10.6122 13.4375 10.2981 13.3077 10.0385 13.0481L7.99831 10.9871C7.95025 10.939 7.88886 10.915 7.81414 10.915C7.73928 10.915 7.67782 10.939 7.62976 10.9871L3.5881 15.0496C3.4674 15.1704 3.33837 15.2309 3.20101 15.2309C3.06379 15.2309 2.93483 15.1704 2.81414 15.0496Z",fill:"currentColor"})})},e)),Tf=S8;var sn=require("react/jsx-runtime"),v8=e=>(0,sn.jsx)(j,s({content:(0,sn.jsx)(sn.Fragment,{children:(0,sn.jsx)("rect",{width:"20",height:"20",fill:"currentColor",rx:"10"})})},e)),kf=v8;var an=require("react/jsx-runtime"),w8=e=>(0,an.jsx)(j,s({content:(0,an.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",children:[(0,an.jsx)("path",{d:"M19.4 9c-.3 0-.6.3-.6.6v5.2c0 1.4-1.1 2.6-2.5 2.6H3.7a2.6 2.6 0 0 1-2.6-2.6V9.5c0-.3-.2-.6-.5-.6s-.6.3-.6.6v5.3c0 2 1.7 3.7 3.7 3.7h12.6c2 0 3.7-1.7 3.7-3.7V9.6c0-.3-.3-.6-.6-.6"}),(0,an.jsx)("path",{d:"m9.8.2.4-.2c.2 0 .3 0 .4.2l3.6 3.6c.3.2.3.6 0 .8-.2.2-.5.2-.8 0L10.8 2v11.6c0 .3-.3.5-.6.5a.6.6 0 0 1-.6-.5V2L7 4.6c-.2.2-.6.2-.8 0a.6.6 0 0 1 0-.8L9.8.2Z"})]})},e)),Rf=w8;var Ef=require("tss-react/mui"),I8=(0,Ef.makeStyles)()(()=>({snackbar:{position:"fixed",top:"60px",transform:"translate(-50%)",zIndex:999,left:"50%",animation:"$fadeIn 300ms"},"@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}})),Mf=I8;var Af=require("react/jsx-runtime"),T8=e=>{let{children:t}=e,{classes:r}=Mf();return(0,Af.jsx)("div",{className:r.snackbar,children:t})},xl=T8;var To=require("react"),Nf=require("react/jsx-runtime"),Df=(0,To.createContext)(void 0),Lf=({children:e})=>{let[t,r]=(0,To.useState)(!1),[o,n]=(0,To.useState)(!1),i=(0,To.useMemo)(()=>({isBulkEditing:t,setIsBulkEditing:r,isEditSaving:o,setIsEditSaving:n}),[t,o]);return(0,Nf.jsx)(Df.Provider,{value:i,children:e})},Cl=()=>{let e=(0,To.useContext)(Df);if(!e)throw new Error("useEditContext must be used within a EditProvider");return e};var hn=require("@mui/x-data-grid-pro");var cn=require("@mui/material"),bl=require("react/jsx-runtime"),k8=({isOpen:e,onClose:t,mouseX:r,mouseY:o,rowMenuActions:n,selectedRows:i})=>(0,bl.jsx)(cn.Menu,{open:e,onClose:t,onContextMenu:l=>{l.preventDefault(),t()},anchorReference:"anchorPosition",anchorPosition:{top:o,left:r},elevation:2,children:n.map(({key:l,label:a,onClick:p,disabled:c})=>{let m=typeof c=="function"?c(i):c!=null?c:!1;return(0,bl.jsx)(cn.MenuItem,{onClick:()=>{p(i),t()},disabled:m,"data-id":`menu-item-${l}`,children:(0,bl.jsx)(cn.ListItemText,{children:a})},l)})}),Pf=k8;var Of=require("react"),Bf={isOpen:!1,mouseX:0,mouseY:0},_f=()=>{let[e,t]=(0,Of.useState)(Bf);return{rowMenuState:e,openRowMenu:(n,i)=>{t({isOpen:!0,mouseX:n,mouseY:i})},closeRowMenu:()=>{t(Bf)}}};var e0=require("react"),dn=require("@mui/x-data-grid-pro");var dt=v(require("react")),ko=require("@mui/material"),Xf=v(require("react-draggable"));var Ff=require("@mui/material");var oa=require("react/jsx-runtime"),R8=({onClick:e})=>(0,oa.jsx)(Ff.IconButton,{"aria-label":"close",onClick:e,sx:t=>({position:"absolute",right:8,top:8,color:t.palette.grey[500]}),children:(0,oa.jsx)(Oi,{})}),Vf=R8;var zf=require("@mui/material"),Hf=require("react/jsx-runtime"),E8=({children:e})=>(0,Hf.jsx)(zf.DialogContent,{sx:{px:2,fontSize:14},children:e}),ra=E8;var Sl=require("react/jsx-runtime"),M8=({children:e})=>(0,Sl.jsx)(Sl.Fragment,{children:e}),na=M8;var jf=require("react"),Yf=require("@mui/material");var Gf=require("@mui/material/styles"),$f=v(require("classnames")),ia=v(require("react-spinners/ClipLoader"));var Uf=require("tss-react/mui"),A8=(0,Uf.makeStyles)()(()=>({container:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}})),Wf=A8;var oo=require("react/jsx-runtime"),D8=({className:e="",size:t=70,color:r,inline:o=!1})=>{let{palette:{primary:n}}=(0,Gf.useTheme)(),{classes:i}=Wf();return(0,oo.jsx)(oo.Fragment,{children:o?(0,oo.jsxs)(oo.Fragment,{children:["\xA0 \xA0",(0,oo.jsx)(ia.default,{size:t,color:r||n.main})]}):(0,oo.jsx)("div",{className:(0,$f.default)(i.container,e),children:(0,oo.jsx)(ia.default,{size:t,color:r||n.main})})})},zt=D8;var vl=zt;var la=require("react/jsx-runtime"),L8=({color:e,variant:t,disabled:r=!1,onClick:o,children:n,ref:i})=>{let[l,a]=(0,jf.useState)(!1);return(0,la.jsx)(Yf.Button,{ref:i,variant:t,color:e,onClick:()=>ee(void 0,null,function*(){if(typeof o=="function"){a(!0);try{yield o()}finally{a(!1)}}}),disabled:r||l,endIcon:l?(0,la.jsx)(vl,{size:18,color:"inherit"}):null,children:n})},wl=L8;var Kf=require("react/jsx-runtime"),N8=({isDangerous:e=!1,disabled:t=!1,onClick:r,children:o,__variant:n,ref:i})=>(0,Kf.jsx)(wl,{ref:i,color:e||n==="alert"?"warning":"primary",variant:"contained",disabled:t,onClick:r,"data-id":"primaryAction",children:o}),sa=N8;var Zf=require("react/jsx-runtime"),P8=({color:e="secondaryAction",disabled:t=!1,onClick:r,children:o})=>(0,Zf.jsx)(wl,{color:e,variant:"outlined",disabled:t,onClick:r,"data-id":"secondaryAction",children:o}),aa=P8;var Il=require("@mui/material");var Rr=require("react/jsx-runtime"),B8=({children:e,__variant:t})=>{let r;if(t)switch(t){case"alert":r=(0,Rr.jsx)(Ui,{color:"error"});break;case"warning":r=(0,Rr.jsx)(Fi,{color:"secondary"});break;case"info":r=(0,Rr.jsx)(Vi,{color:"primary"});break}return(0,Rr.jsxs)(Il.DialogTitle,{sx:{p:2,pb:4,pr:5,display:"flex",alignItems:"center",gap:1,cursor:"move",typography:"h2"},children:[r,(0,Rr.jsx)(Il.Box,{component:"span",sx:{cursor:"text"},onMouseDown:o=>{o.stopPropagation()},children:e})]})},ca=B8;var ro=require("react/jsx-runtime"),O8=e=>{let[t,r]=(0,dt.useState)(void 0),o=(0,dt.useRef)(null);return(0,dt.useEffect)(()=>{if(o.current){let{top:n,left:i,right:l}=o.current.getBoundingClientRect();r({top:-n,left:-l+30,right:window.innerWidth-i-30,bottom:window.innerHeight-n-30})}},[o]),(0,ro.jsx)(Xf.default,{nodeRef:o,handle:".MuiDialogTitle-root",onMouseDown:n=>n.stopPropagation(),bounds:t,children:(0,ro.jsx)(ko.Paper,y(s({},e),{ref:o}))})},pn=({isOpen:e,onClose:t,isCloseIconShown:r=!0,variant:o,fullWidth:n=!0,fullScreen:i=!1,maxWidth:l="sm",dialogProps:a,children:p,"data-id":c})=>{let m=null,f=null,d=null,u=null,h=[];dt.Children.forEach(p,C=>{if(dt.default.isValidElement(C))if(C.type===ca){if(m)throw new Error("Only one dialog title can be defined");m=dt.default.cloneElement(C,{__variant:o})}else if(C.type===ra){if(f)throw new Error("Only one dialog content can be defined");f=C}else if(C.type===na){if(d)throw new Error("Only one dialog custom action can be defined");d=C}else if(C.type===sa){if(u)throw new Error("Only one dialog primary action can be defined");u=dt.default.cloneElement(C,{__variant:o})}else if(C.type===aa)h.push(C);else throw new Error(`${C.type} is not supported as a Modal child`)}),m===null&&console.warn("<Modal.Title> is missing. In a future version, providing a title will be required.");let g=d||u||h.length>0;return(0,ro.jsxs)(ko.Dialog,y(s({open:e,onClose:t,fullWidth:n,fullScreen:i,slotProps:{paper:i&&{sx:{margin:"0px 55x",maxWidth:"calc(100% - 110px)",maxHeight:"calc(100% - 110px)"}}},maxWidth:l,PaperComponent:O8,scroll:"paper","data-id":c},a),{children:[r&&t&&(0,ro.jsx)(Vf,{onClick:t}),m,f,g&&(0,ro.jsxs)(ko.DialogActions,{sx:{p:2},children:[(0,ro.jsx)(ko.Box,{sx:{flex:1},"data-id":"customActionCt",children:d}),(0,ro.jsxs)(ko.Box,{sx:{display:"flex",gap:1},children:[h.map((C,x)=>(0,ro.jsx)(dt.default.Fragment,{children:C},x)),u]})]})]}))};pn.Title=ca;pn.Content=ra;pn.PrimaryAction=sa;pn.SecondaryAction=aa;pn.CustomAction=na;var ke=pn;var qf=require("react"),Qf=require("@mui/material"),no=require("@mui/x-data-grid-pro");var Tl=require("react/jsx-runtime"),_8=({visibilityModel:e,setVisibilityModel:t})=>{let r=(0,no.useGridApiContext)(),o=(0,no.useGridRootProps)(),n=(0,no.useGridSelector)(r,no.gridColumnDefinitionsSelector),i=(0,qf.useMemo)(()=>n.filter(p=>p.headerName&&p.field!==no.GRID_CHECKBOX_SELECTION_FIELD).map(p=>({id:p.field,columnName:p.headerName,isDisplayed:e[p.field]!==!1,isDisabled:p.hideable===!1})),[n,e]),l=p=>{let{name:c}=p.target;t(y(s({},e),{[c]:e[c]===!1}))},a=[{field:"columnName",headerName:F.t("columnsSetting.columns.columnName"),flex:1},{field:"isDisplayed",width:65,headerName:F.t("columnsSetting.columns.display"),renderCell:({row:p})=>(0,Tl.jsx)(Qf.Box,{sx:{display:"flex",justifyContent:"center",height:"100%"},children:(0,Tl.jsx)(o.slots.baseCheckbox,{name:p.id,size:"small",checked:p.isDisplayed,disabled:p.isDisabled,onClick:l,sx:{m:0}})})}];return(0,Tl.jsx)(kl,{rows:i,columns:a,checkboxSelection:!1,hideFooter:!0,disableDensitySelector:!0,disableRowSelectionOnClick:!0,disableColumnReorder:!0,disableColumnFilter:!0,disableColumnSelector:!0,disableColumnMenu:!0,disableColumnSorting:!0,disableColumnResize:!0,slotProps:{toolbar:{showQuickFilter:!1}}})},Jf=_8;var Yo=require("react/jsx-runtime"),F8=()=>{let e=(0,dn.useGridApiContext)(),t=(0,dn.useGridSelector)(e,dn.gridColumnVisibilityModelSelector),[r,o]=(0,e0.useState)(t),n=()=>{e.current.hidePreferences()},i=()=>{e.current.setColumnVisibilityModel(r),n()};return(0,Yo.jsxs)(ke,{isOpen:!0,onClose:n,children:[(0,Yo.jsx)(ke.Title,{children:F.t("columnsSetting.title")}),(0,Yo.jsx)(ke.Content,{children:(0,Yo.jsx)(Jf,{visibilityModel:r,setVisibilityModel:o})}),(0,Yo.jsx)(ke.PrimaryAction,{onClick:i,children:F.t("common.save")}),(0,Yo.jsx)(ke.SecondaryAction,{onClick:n,children:F.t("common.cancel")})]})},t0=F8;var ti=require("react"),Ml=require("@mui/material"),kt=require("@mui/x-data-grid-pro");var mn=e=>Array.from(e.current.getSelectedRows().values());var Ko=require("@mui/material"),un=require("react/jsx-runtime"),V8=({isOpen:e,anchorEl:t,menuActions:r,selectedRows:o,onClose:n})=>(0,un.jsx)(Ko.Menu,{open:e,onClose:n,onContextMenu:i=>{i.preventDefault(),n()},anchorEl:t,elevation:2,children:r.map(({key:i,label:l,icon:a,color:p,disabled:c,onClick:m})=>{let f=typeof c=="function"?c(o):c!=null?c:!1;return(0,un.jsxs)(Ko.MenuItem,{onClick:()=>{m(o),n()},disabled:f,"data-id":`action-menu-item-${i}`,sx:!f&&p?{color:p}:{},children:[a&&(0,un.jsx)(Ko.ListItemIcon,{children:a}),(0,un.jsx)(Ko.ListItemText,{children:l})]},i)})}),o0=V8;var Rl=require("@mui/material");var r0=require("@mui/material");var n0=require("react/jsx-runtime"),z8=n=>{var i=n,{children:e,color:t="primary",sx:r}=i,o=_(i,["children","color","sx"]);return(0,n0.jsx)(r0.IconButton,y(s({sx:s({p:0,height:34,width:34,borderRadius:1,bgcolor:`${t}.main`,"&:hover":{bgcolor:`${t}.dark`},color:`${t}.contrastText`,"&.Mui-disabled":{color:"action.disabled",bgcolor:"action.disabledBackground","&:hover":{bgcolor:"action.disabled"}}},r)},o),{children:e}))},Zo=z8;var Er=require("react/jsx-runtime"),H8=({buttons:e})=>(0,Er.jsx)(Rl.Box,{sx:{display:"flex",gap:1},children:e.map(p=>{var c=p,{key:t,type:r,onClick:o,color:n,disabled:i,isLoading:l}=c,a=_(c,["key","type","onClick","color","disabled","isLoading"]);let m={color:n,disabled:i,onClick:o,size:"small","data-id":`button-${t}`};if(r==="text"){let{text:f="DefaultText"}=a;return(0,Er.jsxs)(Rl.Button,y(s({variant:"contained"},m),{sx:{display:"flex",alignItems:"center",gap:.5},children:[f,l&&(0,Er.jsx)(zt,{size:12,color:"inherit",className:"button-loader"})]}),t)}if(r==="icon"){let{icon:f}=a;return(0,Er.jsxs)(Zo,y(s(s({},m),l&&{sx:{width:40}}),{children:[f,l&&(0,Er.jsx)(zt,{size:12,color:"inherit",className:"button-loader"})]}),t)}return null})}),pa=H8;var i0=require("@mui/x-data-grid-pro");var El=require("react/jsx-runtime"),U8=({onClick:e})=>(0,El.jsx)(Zo,{onClick:e,"data-id":"columnsButton",children:(0,El.jsx)(fl,{size:"24"})}),W8=()=>(0,El.jsx)(i0.GridToolbarColumnsButton,{slotProps:{button:{component:U8}}}),l0=W8;var s0=require("react"),a0=require("@mui/material"),c0=require("@mui/x-data-grid-pro");var fn=require("react/jsx-runtime"),G8=e=>{let[t,r]=(0,s0.useState)(!1);return(0,fn.jsxs)(a0.Box,{children:[(0,fn.jsx)(Zo,{onClick:()=>{r(!0)},"data-id":"quickFilterButton",children:(0,fn.jsx)(_o,{size:"20"})}),t&&(0,fn.jsx)(c0.GridToolbarQuickFilter,y(s({},e),{autoFocus:!0,focused:!0,color:"primary",variant:"outlined",InputProps:{startAdornment:!1,endAdornment:!1,sx:{height:"100%",backgroundColor:"common.white",borderRadius:1,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px 1px 1px 0px"}}},sx:{width:300,height:34,p:0,"& input":{p:1,m:0}},onBlur:o=>{r(o.target.value!=="")}}))]})},p0=G8;var Ae=require("react/jsx-runtime"),$8=function(t){var E;let{showQuickFilter:r=!1,showSelectedCount:o=!0,quickFilterProps:n={},customButtons:i,deleteAction:l,bulkEditAction:a,menuActions:p}=t,c=(0,kt.useGridRootProps)(),m=(0,kt.useGridApiContext)(),f=(0,kt.useGridSelector)(m,kt.gridRowSelectionStateSelector),{isBulkEditing:d,setIsBulkEditing:u}=Cl(),[h,g]=(0,ti.useState)(!1),C=(0,ti.useRef)(null),{editMode:x,disableColumnFilter:b,disableColumnSelector:I,disableDensitySelector:D}=c,S=f.length>0,[T,k]=(0,ti.useState)(null);if(b&&I&&D&&!r&&!(i!=null&&i.length)&&!(p!=null&&p.length))return null;let w=L=>ee(this,null,function*(){if(typeof L.onClick=="function"){let V=mn(m),H=L.onClick(f,V);if(H instanceof Promise)try{k(L.key),yield H}finally{k(null)}}}),A=(E=i==null?void 0:i.map(L=>y(s({},L),{onClick:()=>w(L),disabled:!!T||L.disabled,isLoading:T===L.key})))!=null?E:[],O=[];if(a)if(!d)O.push({type:"icon",key:"defaultBtnEnterEdit",icon:(0,Ae.jsx)(_i,{}),color:"primary",onClick:()=>{u(!0);for(let L of f)m.current.startRowEditMode({id:L})},disabled:!!T||a.disabled||!S});else{let L="defaultBtnSaveEdit";O.push({type:"icon",key:L,icon:(0,Ae.jsx)(ul,{size:"20"}),color:"primary",onClick:()=>ee(this,null,function*(){let V=Array.from(m.current.getRowModels().values());for(let H of f)m.current.stopRowEditMode({id:H,ignoreModifications:!1});setTimeout(()=>ee(this,null,function*(){yield w({key:L,onClick:(H,M)=>ee(this,null,function*(){(yield a.onBulkEditSave(H,M))?m.current.setRowSelectionModel([]):m.current.setRows(V),u(!1)})})}),0)}),disabled:!!T||x===kt.GridEditModes.Row&&!S,isLoading:T===L},{type:"icon",key:"defaultBtnCancelEdit",icon:(0,Ae.jsx)(vt,{size:"20"}),color:"warning",onClick:()=>{u(!1);for(let V of f)m.current.stopRowEditMode({id:V,ignoreModifications:!0});m.current.setRowSelectionModel([])},disabled:!!T})}if(l&&!d){let L="defaultBtnDelete";O.push({type:"icon",key:L,icon:(0,Ae.jsx)(ln,{size:"20"}),color:"warning",onClick:()=>ee(this,null,function*(){yield w({key:L,onClick:V=>ee(this,null,function*(){(yield l.onDelete(V))&&m.current.setRowSelectionModel([])})})}),disabled:!!T||l.disabled||!S,isLoading:T===L})}return(0,Ae.jsxs)(Ml.Box,{sx:{display:"flex",justifyContent:"space-between",backgroundColor:"common.greyBackground",p:1},"data-id":"toolbarContainer",children:[(0,Ae.jsxs)(Ml.Box,{display:"flex",children:[r&&(0,Ae.jsx)(p0,s({},n)),o&&f.length>0&&(0,Ae.jsx)(kt.GridSelectedRowCount,{selectedRowCount:f.length,sx:{mx:1}})]}),(0,Ae.jsxs)(Ml.Box,{sx:{display:"flex",gap:1},children:[(A==null?void 0:A.length)>0&&(0,Ae.jsx)(pa,{buttons:A}),(O==null?void 0:O.length)>0&&(0,Ae.jsx)(pa,{buttons:O}),!c.disableColumnSelector&&(0,Ae.jsx)(l0,{}),!!(p!=null&&p.length)&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Zo,{ref:C,onClick:()=>g(!0),"data-id":"actionsMenuButton",children:(0,Ae.jsx)(zi,{})}),h&&(0,Ae.jsx)(o0,{isOpen:h,onClose:()=>g(!1),menuActions:p,selectedRows:mn(m),anchorEl:C.current})]})]})]})},d0=$8;var Xo=require("react/jsx-runtime"),j8=e=>{var D,S,T;let I=e,{getRowClassName:t,slots:r={},slotProps:o,rowContextMenu:n,apiRef:i,rows:l}=I,a=_(I,["getRowClassName","slots","slotProps","rowContextMenu","apiRef","rows"]),p=(0,hn.useGridApiRef)(),{isBulkEditing:c,setIsEditSaving:m,isEditSaving:f}=Cl(),{rowMenuState:d,openRowMenu:u,closeRowMenu:h}=_f(),g=i!=null?i:p,C=k=>{let A=k.indexRelativeToCurrentPage%2===0?"Mui-even":"Mui-odd";return typeof t=="function"?[t(k),A].filter(Boolean).join(" "):A},x=k=>{if(k.preventDefault(),!k.currentTarget)return;let w=k.currentTarget.getAttribute("data-id"),A=l==null?void 0:l.find(({id:O})=>String(O)===w);if(A){let O=mn(g),E=O.find(({id:L})=>L===A.id);if(E||g.current.selectRow(A.id,!0,!0),n!=null&&n.canOpen&&!n.canOpen(E?O:[A]))return;u(k.clientX,k.clientY)}},b={};if((D=o==null?void 0:o.toolbar)!=null&&D.bulkEditAction&&(b=y(s({},b),{editMode:hn.GridEditModes.Row,onRowEditStart:(k,w)=>{w.defaultMuiPrevented=!0},onRowEditStop:(k,w)=>{w.defaultMuiPrevented=!0}})),typeof e.processRowUpdate=="function"){let k=e.processRowUpdate;b=y(s({},b),{processRowUpdate:(...w)=>ee(void 0,null,function*(){try{return m(!0),yield k(...w)}finally{m(!1)}})})}return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(hn.DataGridPro,y(s(s({},a),b),{apiRef:g,rows:l,density:"compact",rowHeight:46,columnHeaderHeight:46,disableDensitySelector:!0,disableColumnFilter:!0,disableColumnMenu:!0,checkboxSelection:e.checkboxSelection||!!((S=o==null?void 0:o.toolbar)!=null&&S.deleteAction)||!!((T=o==null?void 0:o.toolbar)!=null&&T.bulkEditAction),disableRowSelectionOnClick:!0,loading:e.loading||f,slots:y(s({},r),{toolbar:d0,columnsPanel:t0,columnMenuManageColumnsIcon:()=>(0,Xo.jsx)(Hi,{sx:{fontSize:"1.25rem"}})}),slotProps:y(s({},o),{baseCheckbox:y(s({},o==null?void 0:o.baseCheckbox),{size:"small"}),toolbar:s({showQuickFilter:!0},o==null?void 0:o.toolbar),row:s(s({},o==null?void 0:o.row),n?{onContextMenu:x,style:{cursor:"context-menu"}}:{})}),getRowClassName:C,sx:s(s({},a.sx),c&&{".MuiDataGrid-cellCheckbox, .MuiDataGrid-columnHeaderCheckbox":{pointerEvents:"none",opacity:.5}})})),n&&d.isOpen&&(0,Xo.jsx)(Pf,{isOpen:!0,onClose:h,mouseX:d.mouseX||0,mouseY:d.mouseY||0,rowMenuActions:n.actions,selectedRows:mn(g)})]})},m0=j8;var da=require("react/jsx-runtime"),Y8=e=>(0,da.jsx)(Lf,{children:(0,da.jsx)(m0,s({},e))}),kl=Y8;var Al=require("react"),Dl=require("@mui/material"),h0=v(require("classnames")),g0=v(require("sortablejs"));var u0=require("tss-react/mui"),K8=(0,u0.makeStyles)()(e=>({row:{display:"flex"},draggable:{maxWidth:18,minWidth:18,display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",padding:"10px 4px",cursor:"move",boxSizing:"border-box","&>span":{display:"block",width:2,height:2,borderRadius:"50%",background:e.palette.grey[300],margin:1}},odd:{"&:nth-child(odd)":{background:e.palette.grey[100]}},rowAttribute:{justifyContent:"left",display:"flex",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"}})),f0=K8;var Rt=require("react/jsx-runtime"),Z8=({rows:e,onChange:t,renderer:r})=>{let o=(0,Al.useRef)(null),n=(0,Dl.useTheme)(),{classes:i}=f0(),l=e.map((a,p)=>s({sortableId:p+1},a));return(0,Al.useEffect)(()=>{new g0.default(o.current,{handle:`.${i.draggable}`,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{set(a){let c=a.toArray("sortableId").map(m=>l.find(f=>f.sortableId===Number(m)));t(c)}}})},[]),(0,Rt.jsx)(Dl.Box,{ref:o,sx:{background:n.palette.common.white,fontSize:n.typography.body2},children:l.map((a,p)=>(0,Rt.jsxs)("div",{"data-id":a.sortableId,className:(0,h0.default)(i.row,{[i.odd]:!0}),children:[(0,Rt.jsxs)("div",{className:i.draggable,children:[(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})," ",(0,Rt.jsx)("span",{})]}),(0,Rt.jsx)("div",{className:i.rowAttribute,children:r(a)})]},p))})},y0=Z8;var ma=require("@mui/material"),T0=v(require("lodash/isEmpty"));var gn=require("@mui/material"),C0=v(require("classnames")),b0=v(require("react-dropzone"));var x0=require("tss-react/mui"),X8=(0,x0.makeStyles)()((e,t,r)=>({container:{boxSizing:"border-box",flex:"0 0 auto",display:"flex",flexDirection:"column",alignItems:"center",border:`1px dashed ${e.palette.grey[300]}`,borderRadius:2,padding:10,width:"100%","&:not(:last-child)":{marginBottom:20},[`&.${r.active}`]:{borderColor:e.palette.primary.main}},active:{},title:{margin:"10px 0",fontSize:18,textAlign:"center"},icon:{margin:"10px 0",color:e.palette.primary.main},or:{color:e.palette.grey[300],marginBottom:10},button:{marginBottom:10},scanButton:{color:e.palette.secondary.main},files:{flex:1,maxHeight:"200px",overflow:"auto"},listItem:{border:`1px dashed ${e.palette.grey[300]}`,borderRadius:2,padding:"0 8px",overflow:"hidden",textOverflow:"ellipsis","& + &":{marginTop:8}},removeBtn:{marginRight:-8},imageLink:{cursor:"pointer"}})),Ll=X8;var Qe=require("react/jsx-runtime"),q8=e=>{let{isScannable:t=!1,isUploading:r=!1,fileTypeAccepted:o={},onAddFiles:n}=e,i=a=>p=>{p.preventDefault(),p.stopPropagation(),a()},{classes:l}=Ll();return(0,Qe.jsx)(b0.default,{noClick:!0,onDrop:n,accept:o,disabled:r,children:({getInputProps:a,getRootProps:p,isDragActive:c,open:m})=>(0,Qe.jsx)("div",y(s({className:(0,C0.default)(l.container,{[l.active]:c})},p()),{children:r?(0,Qe.jsx)(vl,{}):(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(cl,{size:40,className:l.icon}),(0,Qe.jsx)(gn.Typography,{classes:{root:l.title},variant:"h1",children:F.t("filesDropperDialog.dropbox")}),(0,Qe.jsx)("input",s({},a())),(0,Qe.jsx)(gn.Typography,{className:l.or,children:F.t("common.or")}),(0,Qe.jsx)(gn.Button,{color:"primary",variant:"outlined",onClick:i(m),classes:{root:l.button},children:F.t("filesDropperDialog.import")}),t&&(0,Qe.jsxs)(gn.Typography,{children:[F.t("common.or")," ",(0,Qe.jsx)("span",{className:l.scanButton,children:F.t("filesDropperDialog.scan")})," ",F.t("filesDropperDialog.infoScanDPI")]})]})}))})},S0=q8;var qo=require("@mui/material"),v0=v(require("classnames"));var Mr=require("react/jsx-runtime"),Q8=e=>{let{files:t,onRemoveFile:r,disabled:o,canRemove:n,onCustomFileClick:i}=e,{classes:l}=Ll(),a=c=>{i?i(c):window.open(c.link,"_blank")},p=(c,m,f)=>{c.stopPropagation(),r(m,f)};return(0,Mr.jsx)(qo.List,{classes:{root:l.files},disablePadding:!0,children:t.map((c,m)=>(0,Mr.jsxs)(qo.ListItem,{onClick:c.link?()=>a(c):void 0,classes:{root:(0,v0.default)(l.listItem,{[l.imageLink]:c.link})},children:[(0,Mr.jsx)(qo.ListItemText,{primaryTypographyProps:{noWrap:!0},children:c.name}),n&&(0,Mr.jsx)(qo.IconButton,{classes:{root:l.removeBtn},onClick:f=>p(f,c,m),disabled:o,size:"small",title:"",children:(0,Mr.jsx)(ln,{size:16})})]},m))})},w0=Q8;var yn=require("react");var J8=e=>{let{initialFiles:t=[],onAddFiles:r,onRemoveFile:o=()=>{},onChange:n=()=>{},maxFiles:i}=e,[l,a]=(0,yn.useState)(!1),[p,c]=(0,yn.useState)(!1),[m,f]=(0,yn.useState)(t);(0,yn.useEffect)(()=>{n(m)},[m]);function d(g){if(!i)return g;let C=i-m.length;return g.length>C?g.splice(0,C):g}return{files:m,addFiles:g=>ee(void 0,null,function*(){if(!g.length||l||i&&m.length>=i)return;let C=d(g);try{r&&(a(!0),yield r(C),a(!1)),f(x=>[...x,...C])}catch(x){console.error(x)}}),removeFile:(g,C)=>ee(void 0,null,function*(){if(!p)try{o&&(c(!0),yield o(g,C),c(!1)),f(x=>x.filter(b=>b!==g))}catch(x){}}),isUploading:l,isRemoving:p}},I0=J8;var Ht=require("react/jsx-runtime"),ex=e=>{let{displayList:t=!0,canRemove:r=!0,maxFiles:o,filesListTitle:n,fileTypeAccepted:i,onCustomFileClick:l}=e,{files:a=[],addFiles:p,removeFile:c,isUploading:m,isRemoving:f}=I0(s({isDisplayCloseBtn:!1},e));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(S0,{files:a,onAddFiles:p,isUploading:m,fileTypeAccepted:i}),o&&(0,Ht.jsxs)(ma.Typography,{variant:"body2",children:[F.t("filesDropperDialog.limit")," ",a.length," ",F.t("common.outOf")," ",o]}),!(0,T0.default)(a)&&t&&(0,Ht.jsxs)(Ht.Fragment,{children:[n&&(0,Ht.jsx)(ma.Typography,{variant:"h2",sx:{marginBottom:"16px",marginTop:"24px"},children:n}),(0,Ht.jsx)(w0,{files:a,onRemoveFile:c,onCustomFileClick:l,disabled:f,canRemove:r})]})]})},Nl=ex;var Qo=require("react"),k0=require("@mui/material");var E0=require("react/jsx-runtime"),tx=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"],ox=0,rx=0,nx=l=>{var a=l,{locale:e="fr-FR",intl:t,onChange:r,onKeyDown:o,value:n}=a,i=_(a,["locale","intl","onChange","onKeyDown","value"]);var I,D;let[p,c]=(0,Qo.useState)(""),[m,f]=(0,Qo.useState)(!1),d=(I=t==null?void 0:t.minimumFractionDigits)!=null?I:rx,u=Math.max((D=t==null?void 0:t.maximumFractionDigits)!=null?D:ox,d);(0,Qo.useEffect)(()=>{if(n){let S=n.toString();c(S)}},[n]);let h=S=>{let{key:T}=S,k=S.target,w=p,A=k.selectionStart||0;if(tx.includes(T)||S.ctrlKey||S.metaKey){o==null||o(S);return}if(/^\d$/.test(T)){let O=Math.max(w.indexOf("."),w.indexOf(","));if(O!==-1){let E=w.substring(O+1);if(A>O&&E.length>=u){S.preventDefault();return}}o==null||o(S);return}if(T==="-"&&A===0&&!w.includes("-")){o==null||o(S);return}if((T==="."||T===",")&&!w.includes(".")&&!w.includes(",")&&u>0){o==null||o(S);return}S.preventDefault()},g=S=>S.replace(",","."),C=S=>{let T=S.indexOf(".");return T!==-1&&S.length>T+u+1?S.substring(0,T+u+1):S},x=(0,Qo.useMemo)(()=>{if(!p||p===""||p==="-")return null;let S=g(p),T=Number(S);return Number.isNaN(T)?null:T},[p]),b=(0,Qo.useMemo)(()=>m||x===null?p:(t==null?void 0:t.style)==="percent"&&(t!=null&&t.customPercent)?`${new Intl.NumberFormat(e,y(s({},t),{style:"decimal",maximumFractionDigits:u,minimumFractionDigits:d})).format(x)}%`:new Intl.NumberFormat(e,y(s({},t),{maximumFractionDigits:u,minimumFractionDigits:d})).format(x),[p,x,m,e,t,u,d]);return(0,E0.jsx)(k0.TextField,s({inputMode:"numeric",onKeyDown:h,value:b,onFocus:S=>{var T;f(!0),(T=i.onFocus)==null||T.call(i,S)},onBlur:S=>{var T;f(!1),(T=i.onBlur)==null||T.call(i,S)},onChange:S=>{let T=S.target.value,k;if(m)k=C(T),c(k);else{let E=g(T);k=C(E),c(k)}let w=g(k),A=Number(w),O=Number.isNaN(A)?0:A;r==null||r(S,O)},inputProps:s({style:{textAlign:"right"},inputMode:"decimal"},i.inputProps)},i))},R0=nx;var M0=require("tss-react/mui"),ix=(0,M0.makeStyles)()(()=>({overlay:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:999}})),A0=ix;var Pl=require("react/jsx-runtime"),lx=({isBackgroundClickBlocked:e=!1})=>{let{classes:t}=A0();return(0,Pl.jsx)("div",{className:e?t.overlay:"",children:(0,Pl.jsx)(xl,{children:(0,Pl.jsx)(el,{})})})},D0=lx;var Bl=require("react"),Je=require("@mui/material");var lt=require("react/jsx-runtime"),sx=({options:e,variant:t="outlined",initialIndex:r=0,height:o})=>{let[n,i]=(0,Bl.useState)(!1),l=(0,Bl.useRef)(null),a=f=>{!f.disabled&&f.onClick&&(f.onClick(),i(!1))},p=()=>i(f=>!f),c=f=>{var d;(d=l.current)!=null&&d.contains(f.target)||i(!1)},m=e[r];return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsxs)(Je.ButtonGroup,{variant:t,ref:l,children:[(0,lt.jsx)(Je.Button,{sx:y(s({},o&&{height:o}),{whiteSpace:"nowrap","& .MuiButton-startIcon":{"& svg":{fontSize:16}}}),onClick:()=>a(m),startIcon:m.icon,disabled:m.disabled,"data-id":"splitButton",children:m.label}),(0,lt.jsx)(Je.Button,{size:"small",onClick:p,"data-id":"toggleOptions",children:(0,lt.jsx)(Bi,{sx:{transform:n?"rotate(-180deg)":"rotate(0deg)",transition:"transform 200ms ease-in-out"}})})]}),(0,lt.jsx)(Je.Menu,{anchorEl:l.current,open:n,onClose:c,children:e.filter((f,d)=>d!==r).map((f,d)=>(0,lt.jsx)(Je.MenuItem,{onClick:()=>a(f),disabled:f.disabled,"data-id":`option-${d}`,children:(0,lt.jsxs)(Je.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[f.icon&&(0,lt.jsx)(Je.ListItemIcon,{sx:{"& svg":{fontSize:16}},children:f.icon}),(0,lt.jsx)(Je.ListItemText,{children:f.label})]})},f.label))})]})},L0=sx;var xe=v(require("react")),wc=v(require("lodash/cloneDeep"));var N0=require("tss-react/mui"),ax=(0,N0.makeStyles)()(()=>{let e={};for(let t=0;t<1e3;e[`feed${t++}`]={});return e}),P0=ax;var Da=require("react"),$2=require("@mui/material");var G0=v(require("lodash/cloneDeep")),$0=v(require("lodash/get"));var xn="@",et={ADD_FILTER:"addFilter",CHANGE_SEARCH:"changeSearch",DELETE_FILTER:"deleteFilter",SET_CONFIG:"setConfig",UPDATE_FILTER:"updateFilter",INIT:"initFilter"};var B={SELECT:"select",STRING:"string",CHECKBOX:"check_box",DATE:"date",AMOUNT:"amount",NUMBER:"number",RATE:"rate",BADGE_STATUS:"badge_status",STATUS:"status",THUMBNAIL:"thumbnail",ATTACHMENT:"attachment",CHIP:"chip",BUTTON:"button",MULTIPLE_INPUTS:"multiple",WALLET:"wallet",AUTOCOMPLETE:"autocomplete",SWITCH_BADGE_STATUS:"switch_badge_status",COMPONENT:"component",EMPTY:"empty"},io={STRING:"string",SUM:"sum",AMOUNT:"amount"};var Jo={FUNCTION:"function",NUMBER:"number",STRING:"string"};var _0=v(require("lodash/get")),F0=v(require("lodash/isArray")),V0=v(require("lodash/isNil")),z0=v(require("moment/moment"));var ua=[B.AMOUNT,B.NUMBER,B.STATUS,B.SELECT,B.STRING,B.DATE,B.WALLET],cx=e=>e.map(t=>({value:t.status,name:t.value}));function B0(e){return e.reduce((t,r)=>oi(r)?y(s({},t),{[r.key]:{label:r.header,value:r.key,type:r.typeCell===B.STATUS?B.SELECT:r.typeCell,listData:r.typeCell===B.STATUS?cx(r.listStatus):r.listData||r.options}}):t,{})}function oi(e){return(!e.typeCell||ua.includes(e.typeCell)||e.searchValue)&&e.header}var Ol="NO_SELECT",Cn="DD/MM/YYYY";function ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var _l=(e,t,r,o={})=>{if(!["number","string"].includes(typeof e)||(0,V0.default)(t))return!1;let{filterComparator:n="contains"}=o,i=ri(e.toString());if(typeof n=="function")return n(i,t);if(B.AMOUNT===r)return dx(e.toString(),t);if(B.NUMBER===r)return H0(e.toString(),t);if(B.DATE===r)return mx(e.toString(),t,o);if(B.SELECT===r)return e===t;if(B.WALLET===r)return ux(i,t,o);let l;switch(n){case"startsBy":l=new RegExp(`^${i}`,"i");break;case"endsBy":l=new RegExp(`${i}$`,"i");break;case"equals":l=new RegExp(`^${i}$`,"i");break;default:l=new RegExp(i,"i");break}return l.test(t)},H0=(e,t)=>{let r=Number.parseFloat(t).toFixed(2);if((e==null?void 0:e[0])===".")return new RegExp(`${ri(e)}`,"i").test(r);if((e==null?void 0:e[0])==="+"){let n=e.substring(1);return new RegExp(`^${ri(n)}`,"i").test(r)}return new RegExp(`^-?${ri(e)}`,"i").test(r)},px=(e,t)=>{let r=Number.parseFloat(e);if(Number.isNaN(r))return!1;let o=t.trim();if(o.startsWith(">=")){let n=Number.parseFloat(o.substring(2));return r>=n}if(o.startsWith("<=")){let n=Number.parseFloat(o.substring(2));return r<=n}if(o.startsWith(">")){let n=Number.parseFloat(o.substring(1));return r>n}if(o.startsWith("<")){let n=Number.parseFloat(o.substring(1));return r<n}if(o.startsWith("=")){let n=Number.parseFloat(o.substring(1));return r===n}return!1},dx=(e,t)=>{if(!["<",">","="].some(n=>e.includes(n)))return H0(e,t);let o=e.split(";");try{return o.every(n=>px(t,n))}catch(n){return!1}},mx=(e,t,r={})=>{let{formatDate:o=Cn,outputFormat:n=Cn}=r,i=(0,z0.default)(t,o).format(n),l=ri(e.toString());return new RegExp(l,"i").test(i)},ux=(e,t,r={})=>{let o=new RegExp(e,"i");if(r!=null&&r.searchValue)return o.test(t);if(t!=null&&t.array&&Array.isArray(t==null?void 0:t.array)){let n=t.array.map(i=>i.id).join(", ");return o.test(n)}return!1},O0=(e,t,r)=>{let o=r.find(i=>i.key===e),n=(0,_0.default)(t,(o==null?void 0:o.searchKey)||e);return o!=null&&o.searchValue&&(n=o.searchValue(t)),y(s({},o),{value:n})},U0=(e,t=[],r=[])=>t.every(([o,n])=>{if(!n)return!0;if((0,F0.default)(o))return o.some(c=>{let u=O0(c,e,r),{value:m,typeCell:f}=u,d=_(u,["value","typeCell"]);return _l(n,m,f,d)});let p=O0(o,e,r),{value:i,typeCell:l}=p,a=_(p,["value","typeCell"]);return _l(n,i,l,a)}),W0=e=>e.reduce((t,r)=>!r.typeCell||ua.includes(r.typeCell)||r.searchValue?[...t,r]:t,[]);var lo={ASC:"asc",DESC:"desc"},st={BOTTOM:"bottom",TOP:"top"},fx=[B.AMOUNT,B.AUTOCOMPLETE,B.CHECKBOX,B.DATE,B.NUMBER,B.SELECT,B.STRING,B.WALLET],hx=[B.AMOUNT,B.ATTACHMENT,B.AUTOCOMPLETE,B.BADGE_STATUS,B.CHECKBOX,B.COMPONENT,B.DATE,B.NUMBER,B.SELECT,B.STATUS,B.STRING,B.SWITCH_BADGE_STATUS,B.THUMBNAIL,B.WALLET,B.EMPTY],te={ADD_BUTTON:"add_button",GROUP_BUTTON:"group_button",NEW:"new",EDIT:"edit",VIEW:"view"},Xe={READ:"IDLE",ADD:"ADD",EDIT:"EDIT",PERMANENT_EDIT:"PERMANENT_EDIT"},gx=(e,t)=>y(s({},t),{groupId:e}),j0=(e,t="id")=>e.data.map((r,o)=>y(s({},gx(e[t],r)),{parentRowIndex:o})),Y0=e=>({name:e.name,rowType:te.GROUP_BUTTON,groupId:e.id}),K0=e=>({name:e.addGroupRowLabel||F.t("common.addRow"),rowType:te.ADD_BUTTON,groupId:e.id}),Z0=({ignoreExport:e,typeCell:t,renderExport:r})=>!e&&(!t||typeof t===Jo.FUNCTION||!!r||hx.includes(t)),X0=({typeCell:e,sortable:t})=>t!==!1&&(t||fx.includes(e)||!e),q0=(e,t,r=[],o="")=>U0(t,r,e)?o&&o[0]!==xn?e.some(i=>{let l=(0,$0.default)(t,(i==null?void 0:i.searchKey)||(i==null?void 0:i.key));return i!=null&&i.searchValue&&(l=i.searchValue(t)),_l(o,l,i.typeCell,i)}):!0:!1;function Q0(e){var t;return["Promise","AsyncFunction"].includes((t=e==null?void 0:e.constructor)==null?void 0:t.name)}function J0(e,t,r=100){let o=0,n=0;return e.forEach(i=>{o+=Number.isNaN(Number(i==null?void 0:i.width))?i!=null&&i.size?0:r:i.width,n+=Number.isNaN(Number(i==null?void 0:i.size))?0:i.size}),e.reduce((i,p)=>{var c=p,{key:l}=c,a=_(c,["key"]);return y(s({},i),{[l]:yx(a,t,o,n,r)})},{})}function yx(e,t,r,o,n){let{width:i=-1,size:l=-1}=e;if(l!==-1&&t>r){let a=(t-r)/o,p=Math.floor(a*l);return p>n?p:n}return i!==-1?i:n}function ni(e,t){if(e){let r=e.toString().split("|")||[];return(0,G0.default)(t).sort((n,i)=>r.indexOf(n.key)-r.indexOf(i.key))}return t}var E2=v(require("lodash/escapeRegExp")),Ra=v(require("lodash/find")),M2=v(require("lodash/get")),A2=v(require("lodash/isNil"));var o2=v(require("lodash/isNil"));var xx=v(require("lodash/min")),e2=v(require("numeral"));function fa(e){if(typeof e=="number")return e;if(typeof e=="string"){let t=e.toString().replace(",",".").replace(" ","");return Number.parseFloat(t)}return 0}var Fl=(e,t="0,0.00")=>(0,e2.default)(+e||e).format(t),t2=()=>`_${Math.random().toString(36).substr(2,9)}`;var bn=(e,t)=>{let{formatAmount:r=Fl,format:o}=t;return!(0,o2.default)(e)&&e!==""?r(e,o):""};var C2=v(require("lodash/get")),b2=v(require("lodash/set")),S2=v(require("moment/moment"));var Ro=v(require("lodash/cloneDeep")),wa=v(require("lodash/isNil")),P=require("robot3");var ga=v(require("lodash/get"));var ha=v(require("lodash/get")),Cx=({hasSecuredRows:e,row:t})=>!!(e&&(t!=null&&t.secured)),Vl=({unlockedRowsIds:e,row:t,selectableRowKey:r="id",hasSecuredRows:o})=>Cx({hasSecuredRows:o,row:t})?!e.includes((0,ha.default)(t,r)):!1,r2=(e=[],t)=>e.map(r=>typeof r=="number"?r:(r==null?void 0:r.id)||(0,ha.default)(r,t));var bx=e=>e.rowType!==te.GROUP_BUTTON&&e.rowType!==te.ADD_BUTTON,Sx=(e,t,r)=>r===!1||r instanceof Function&&!r({rowIndex:t,row:e});function mt(e=[]){return[...e]}function ya(e,t){let r=e.indexOf(t),o=[...e];return r>-1&&o.splice(r,1),o}function zl(e=[],t=[],r="id"){let o=t.map(i=>(0,ga.default)(i,r));return e.filter(i=>!o.includes(i))}function Sn(e=[],t=[],r="id"){let o=t.map(i=>(0,ga.default)(i,r));return e.filter(i=>o.includes(i))}function n2({displayableRows:e=[],selectableRowKey:t="id",hasSecuredRows:r,unlockedRowsIds:o=[],hideCheckbox:n}){let i=[];for(let l=0;l<e.length;l++){let a=e[l];bx(a)&&!Vl({row:a,selectableRowKey:t,hasSecuredRows:r,unlockedRowsIds:o})&&Sx(a,l,n)&&i.push(a[t])}return i}var h2={dataRows:[],selectedRows:mt(),groupCollapsed:new Set,addRows:[],dataRowsBeforeEdit:[]},xa=e=>e.selectedRows.length>0,vx=(e,t)=>e.indexOf(t)>-1,i2=(e,t)=>{let r=e.dataRows.map(o=>{if(vx(t.allSelectableKey,o[t.selectableRowKey])){if(t.changeOtherColumnOnClick){let{keyColumn:n,newValue:i}=t.changeOtherColumnOnClick;return y(s({},o),{[t.keyColumn]:t.value,rowType:te.EDIT,[n]:i})}return y(s({},o),{[t.keyColumn]:t.value,rowType:te.EDIT})}return o});return y(s({},e),{dataRows:r})},l2=e=>y(s({},e),{selectedRows:mt()}),Ca=(e,t)=>{let{addOneByOne:r,selectableRowKey:o,groupKey:n,groupId:i}=t,{addRows:l}=e,a=[...l,s({[o]:Date.now(),rowType:te.NEW},n!==o?{[n]:i}:{})];return y(s({},e),{addRows:l!=null&&l.length&&r?l:a})},s2=(e,{keyId:t,selectableRowKey:r})=>{let{addRows:o}=e;return y(s({},e),{addRows:o.filter(n=>n[r]!==t)})},a2=e=>y(s({},e),{addRows:[]}),g2=(e,t,r,o,n,i)=>{var a;let l=t.findIndex(p=>p[n]===o);if(l>-1){t[l]=Hl(y(s({},t[l]),{rowType:te.EDIT,_touched:!0}),r,e);return}for(let p of t)(a=p==null?void 0:p[i])!=null&&a.length&&g2(e,p[i],r,o,n,i)},ba=(e,{data:t,key:r,keyId:o,selectableRowKey:n,isSubLevels:i=!1,subDataKey:l=""})=>{let{addRows:a,dataRows:p}=e,c=[...p],m=[...a];if(i)g2(t,c,r,o,n,l);else{let f=c.findIndex(u=>u[n]===o);f>-1&&(c[f]=Hl(y(s({},c[f]),{rowType:te.EDIT,_touched:!0}),r,t));let d=m.findIndex(u=>u[n]===o);d>-1&&(m[d]=Hl(y(s({},m[d]),{_touched:!0}),r,t))}return y(s({},e),{dataRows:c,addRows:m})},wx=(e,{selectableRowKey:t,keyId:r,data:o})=>{let{dataRows:n,addRows:i}=e,l=[...n],a=l.findIndex(u=>u[t]===r),p=[...i],c=p.findIndex(u=>u[t]===r),m=c!==-1,f=m?p:l,d=m?c:a;return f[d]=s(s(s({},f[d]),o),m?{}:{rowType:te.EDIT}),y(s({},e),{[m?"addRows":"dataRows"]:f})},c2=(e,t)=>{let{itemKey:r,onlyOneRow:o,selectableRowKey:n,groupSelection:i,shiftKey:l}=t,{dataRows:a}=e,p=a.find(c=>c[n]===r);if(!(0,wa.default)(p==null?void 0:p.groupId)&&i){let c=a.reduce((m,f)=>f.groupId===p.groupId?[...m,f[n]]:m,[]);return y(s({},e),{selectedRows:mt(o?[c]:[...e.selectedRows,...c])})}if(l&&!o){let c=[],m=a.findIndex(d=>d[n].toString()===r.toString()),f=t.displayableRows.map(d=>d[n]);for(;m>=0;){let d=a[m][n];if(e.selectedRows.includes(d))break;f.includes(d)&&c.push(d),m--}return y(s({},e),{selectedRows:mt([...c,...e.selectedRows])})}return y(s({},e),{selectedRows:mt(o?[r]:[...e.selectedRows,r])})},p2=(e,t)=>{let{itemKey:r,selectableRowKey:o,groupSelection:n}=t,{dataRows:i}=e,l=i.find(p=>p[o]===r),a=mt(e.selectedRows);return!(0,wa.default)(l==null?void 0:l.groupId)&&n&&i.forEach(p=>{p.groupId===l.groupId&&(a=ya(a,p[o]))}),a=ya(a,t.itemKey),y(s({},e),{selectedRows:a})},Sa=(e,t,r,o)=>{let n=t[0];t.length===1?e[n].isCollapsed=r:(t.shift(),Sa(e[n][o],t,r,o))},y2=(e,t,r)=>{var o;for(let n=0;n<e.length;n++)(o=e[n][r])!=null&&o.length&&(e[n].isCollapsed=t,y2(e[n][r],t,r))},d2=(e,t)=>{let{groupId:r}=t,o=new Set(e.groupCollapsed);return o.add(r),y(s({},e),{groupCollapsed:o})},m2=(e,t)=>{let{groupId:r}=t,o=new Set(e.groupCollapsed);return o.delete(r),y(s({},e),{groupCollapsed:o})},vn={IDLE:"IDLE",EDIT:"EDIT",PERMANENT_EDIT:"PERMANENT_EDIT",ADD:"ADD"},Ix=e=>e,u2=(e,t,r)=>(0,P.transition)(t,e,(0,P.reduce)((o,{groupId:n})=>{let i=new Set(o.groupCollapsed);return r(i,n),y(s({},o),{groupCollapsed:i})})),va=(e,t)=>y(s({},e),{dataRows:t}),f2=(e,{subDataKey:t,shouldCollapse:r})=>{let o=(0,Ro.default)(e.dataRows);return y2(o,r,t),va(e,o)},x2=(0,P.createMachine)({IDLE:(0,P.state)((0,P.transition)("selectItem","IDLE",(0,P.reduce)(c2)),(0,P.transition)("unselectItem","IDLE",(0,P.reduce)(p2)),(0,P.transition)("selectRows","IDLE",(0,P.reduce)((e,{selectedRows:t})=>y(s({},e),{selectedRows:t}))),(0,P.transition)("add","ADD",(0,P.reduce)(Ca)),(0,P.transition)("updateCtx","IDLE",(0,P.reduce)((e,t)=>y(s({},e),{dataRows:t.data}))),(0,P.transition)("edit","EDIT",(0,P.reduce)(e=>y(s({},e),{dataRowsBeforeEdit:(0,Ro.default)(e.dataRows)})),(0,P.guard)(xa)),(0,P.transition)("deleteRow","IDLE",(0,P.guard)(xa)),u2("IDLE","collapseGroup",(e,t)=>e.add(t)),u2("IDLE","expandGroup",(e,t)=>e.delete(t)),(0,P.transition)("collapse","IDLE",(0,P.reduce)((e,{root:t,subDataKey:r})=>{let o=(0,Ro.default)(e.dataRows);return Sa(o,t,!0,r),va(e,o)})),(0,P.transition)("unCollapse","IDLE",(0,P.reduce)((e,{root:t,subDataKey:r})=>{let o=(0,Ro.default)(e.dataRows);return Sa(o,t,!1,r),va(e,o)})),(0,P.transition)("collapseAll","IDLE",(0,P.reduce)((e,{subDataKey:t})=>f2(e,{subDataKey:t,shouldCollapse:!0}))),(0,P.transition)("unCollapseAll","IDLE",(0,P.reduce)((e,{subDataKey:t})=>f2(e,{subDataKey:t,shouldCollapse:!1}))),(0,P.transition)("collapseGroup","IDLE",(0,P.reduce)(d2)),(0,P.transition)("expandGroup","IDLE",(0,P.reduce)(m2)),(0,P.transition)("input","IDLE",(0,P.reduce)(ba)),(0,P.transition)("alwaysEditMode","PERMANENT_EDIT",(0,P.reduce)(e=>y(s({},e),{dataRowsBeforeEdit:(0,Ro.default)(e.dataRows)}))),(0,P.transition)("search","IDLE",(0,P.reduce)((e,{dataRows:t})=>s(y(s({},e),{searchState:!0}),t?{dataRows:t}:{})))),ADD:(0,P.state)((0,P.transition)("cancel","IDLE",(0,P.reduce)(e=>y(s({},e),{addRows:[]}))),(0,P.transition)("delete","ADD",(0,P.reduce)(s2)),(0,P.transition)("deleteNewRows","ADD",(0,P.reduce)(a2)),(0,P.transition)("input","ADD",(0,P.reduce)((e,t)=>{let{addRows:r}=e,o=[...r],n=o.findIndex(i=>i[t.selectableRowKey]===t.keyId);return o[n]=y(s({},o[n]),{[t.key]:t.data,_touched:!0}),y(s({},e),{addRows:o})})),(0,P.transition)("updateLine","ADD",(0,P.reduce)((e,t)=>{let{addRows:r}=e,o=[...r],n=o.findIndex(i=>i[t.selectableRowKey]===t.keyId);return o[n]=s(y(s({},o[n]),{_touched:!0}),t.data),y(s({},e),{addRows:o})})),(0,P.transition)("add","ADD",(0,P.reduce)(Ca)),(0,P.transition)("validate","IDLE",(0,P.reduce)((e,t)=>y(s({},e),{addRows:[]})))),EDIT:(0,P.state)((0,P.transition)("cancel","IDLE",(0,P.reduce)(e=>y(s({},e),{selectedRows:mt(),dataRows:e.dataRowsBeforeEdit,dataRowsBeforeEdit:(0,Ro.default)(e.dataRowsBeforeEdit)}))),(0,P.transition)("validate","IDLE",(0,P.reduce)(e=>y(s({},e),{selectedRows:mt(),dataRowsBeforeEdit:[]}))),(0,P.transition)("input","EDIT",(0,P.reduce)(ba)),(0,P.transition)("updateLine","EDIT",(0,P.reduce)((e,t)=>{let{dataRows:r}=e,o=[...r],n=o.findIndex(i=>i[t.selectableRowKey]===t.keyId);return o[n]=y(s(s({},o[n]),t.data),{rowType:te.EDIT}),y(s({},e),{dataRows:o})})),(0,P.transition)("updateCtx","EDIT",(0,P.reduce)((e,t)=>y(s({},e),{dataRows:t.data}))),(0,P.transition)("selectAllColumn","PERMANENT_EDIT",(0,P.reduce)(i2)),(0,P.transition)("unselectAllColumn","PERMANENT_EDIT",(0,P.reduce)(l2))),PERMANENT_EDIT:(0,P.state)((0,P.transition)("leaveAlwaysEditMode","IDLE",(0,P.reduce)(e=>e)),(0,P.transition)("add","PERMANENT_EDIT",(0,P.reduce)(Ca)),(0,P.transition)("selectItem","PERMANENT_EDIT",(0,P.reduce)(c2)),(0,P.transition)("unselectItem","PERMANENT_EDIT",(0,P.reduce)(p2)),(0,P.transition)("delete","PERMANENT_EDIT",(0,P.reduce)(s2)),(0,P.transition)("deleteNewRows","PERMANENT_EDIT",(0,P.reduce)(a2)),(0,P.transition)("selectRows","PERMANENT_EDIT",(0,P.reduce)((e,{selectedRows:t})=>y(s({},e),{selectedRows:t}))),(0,P.transition)("cancel","PERMANENT_EDIT",(0,P.reduce)(e=>y(s({},e),{dataRows:e.dataRowsBeforeEdit,dataRowsBeforeEdit:(0,Ro.default)(e.dataRowsBeforeEdit),addRows:[]}))),(0,P.transition)("validate","PERMANENT_EDIT",(0,P.reduce)((e,t)=>y(s({},e),{addRows:[]}))),(0,P.transition)("input","PERMANENT_EDIT",(0,P.reduce)(ba)),(0,P.transition)("updateLine","PERMANENT_EDIT",(0,P.reduce)(wx)),(0,P.transition)("updateCtx","PERMANENT_EDIT",(0,P.reduce)((e,t)=>y(s({},e),{dataRows:t.data,dataRowsBeforeEdit:(0,Ro.default)(t.data)}))),(0,P.transition)("selectAllColumn","PERMANENT_EDIT",(0,P.reduce)(i2)),(0,P.transition)("unselectAllColumn","PERMANENT_EDIT",(0,P.reduce)(l2)),(0,P.transition)("deleteRow","PERMANENT_EDIT",(0,P.guard)(xa)),(0,P.transition)("collapseGroup","PERMANENT_EDIT",(0,P.reduce)(d2)),(0,P.transition)("expandGroup","PERMANENT_EDIT",(0,P.reduce)(m2)))},Ix);var ut=["keyId","columnIndex","vtContext","tooltipDetail"],v2=[...ut,"type"];function w2(e,t,r,o,n){return n||!((e===vn.EDIT&&t||e===vn.ADD&&o===te.NEW||e===vn.PERMANENT_EDIT)&&r)}var fe=(e,t,r)=>(0,C2.default)(e,t,r),Hl=(e,t,r)=>(0,b2.default)(e,t,r),Ia=e=>e==="Invalid date"?"":e,I2=(e,t,r)=>{let o=(0,S2.default)(e,t).format(r);return Ia(o)};var Ul=(e,t)=>{let{multiple:r=!1,options:o,optionList:n=[],key:i}=t,l=o||n,a=fe(e,i,""),p=typeof l=="function"?l(e):l;return r?p.filter(({value:c})=>a==null?void 0:a.includes(c)):p.find(({value:c})=>c===a)};var T2=v(require("lodash/isEmpty")),k2=v(require("moment"));var Wl=(e,t={})=>{let{formatDate:r=Cn,outputFormat:o=Cn}=t;return!(0,T2.default)(e)&&(0,k2.default)(e,r!=="YYYY-MM-DD"?r:void 0).format(o)};var Gl=(e,t)=>{let{options:r,listData:o=[]}=t,i=(r||o).find(({value:l})=>l===e);return(i==null?void 0:i.name)||(i==null?void 0:i.label)||""};var $l=(e,t)=>{let{options:r,listStatus:o=[]}=t,i=(r||o).find(({status:l})=>l===e);return(i==null?void 0:i.value)||(i==null?void 0:i.label)};var Ut={OK_MANUEL:{value:"ok-manuel",label:"Valid\xE9 manuellement"},OK:{value:"ok",label:"Valid\xE9"},TO_DO:{value:"to-do",label:"\xC0 faire"},IN_PROGRESS:{value:"in-progress",label:"En cours"},TIME_OUT:{value:"time-out",label:"Retard"},ERROR:{value:"error",label:"Refus\xE9"},ERROR_MANUEL:{value:"error-manuel",label:"Refus\xE9 manuellement"}},R2="NONE";var jl=(e,t)=>{let{typeFooter:r,key:o,footerValue:n}=e;if(n&&["string","number"].includes(typeof n))return n;if(n&&typeof n=="function")return typeof n(t)=="string"?n(t):"";switch(r){case io.SUM:return t.reduce((i,l)=>i+(l[o]?fa(l[o]):0),0);case io.AMOUNT:return Fl(Number(t.reduce((i,l)=>i+(l[o]?fa(l[o]):0),0)).toFixed(2))}return""};var Ta={type:"text/csv;charset=utf-8",extension:".csv"},ka={type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",extension:".xlsx"},D2=(e,t,r="csv")=>{var m;let{key:o,idx:n,typeCell:i}=t,l=(0,M2.default)(e,o),a="";if(e.rowType===te.GROUP_BUTTON&&n===0)a=e.name;else{let f=typeof i===Jo.FUNCTION?i(e):i;switch(f){case B.AMOUNT:{a=r==="csv"?l:bn(l,t);break}case B.ATTACHMENT:case B.THUMBNAIL:{a=Array.isArray(l)?l==null?void 0:l.map(({link:d})=>d).join(", "):l==null?void 0:l.link;break}case B.AUTOCOMPLETE:{let d=Ul(e,t);Array.isArray(d)?a=d.map(({label:u})=>u).join(", "):a=d==null?void 0:d.label;break}case B.BADGE_STATUS:case B.SWITCH_BADGE_STATUS:{if(!l)a="";else{let d=f===B.SWITCH_BADGE_STATUS&&t.switchKey?(0,Ra.default)(l,{key:t.switchKey}):l;d?(d==null?void 0:d.status)===Ut.IN_PROGRESS.value&&(d!=null&&d.value)?a=(d==null?void 0:d.value)>999?`+${999}`:d==null?void 0:d.value:a=(m=(0,Ra.default)(Ut,u=>u.value===(d==null?void 0:d.status)))==null?void 0:m.label:a=""}break}case B.CHECKBOX:{a=l?"X":"";break}case B.DATE:{a=Wl(l,t);break}case B.NUMBER:{a=l;break}case B.SELECT:{a=Gl(l,t);break}case B.STATUS:{a=$l(l,t);break}case B.STRING:{a=l;break}case B.WALLET:{if(!l)a="";else{let{array:d=[]}=l;if(!d)return"";a=d.map(({id:u})=>u).join(", ")}break}case B.EMPTY:{a="";break}default:a=["string","number"].includes(typeof l)?l:""}}let{renderExport:p}=t;p&&(a=typeof p=="function"?p(e,a,r):p);let c=(a==null?void 0:a.content)||a;return["string","number"].includes(typeof c)?c:""},Tx=(e,t,r)=>{let o=D2(e,t,r),n={content:"",typeCell:t.typeCell,raw:e[t.key],rowType:e.rowType,groupId:e==null?void 0:e.groupId},{renderExport:i}=t;return i&&(o=typeof i=="function"?i(e,o,r):i),(o==null?void 0:o.style)!==void 0&&(o==null?void 0:o.content)!==void 0&&(n.style=o==null?void 0:o.style,n.content=o==null?void 0:o.content),["string","number"].includes(typeof o)&&(n.content=o),n},L2=(e,t)=>{let r=1;if(!(t==null?void 0:t.some(({footerValue:l,renderExportFooter:a,typeFooter:p})=>l||a||p)))return[];t==null||t.forEach(l=>{let{renderExportFooter:a}=l;if(a){let p=a(l,e);(p==null?void 0:p.length)>r&&(r=p==null?void 0:p.length)}});let n=new Array(t.length).fill({content:"",colSpan:1}),i=new Array(r).fill([]).map(()=>[...n.map(l=>s({},l))]);return t==null||t.forEach((l,a)=>{let{typeFooter:p,footerProps:c,renderExportFooter:m}=l,{colspan:f}=c||{};m?m(l,e).forEach((u,h)=>{i[h][a]={content:u,colSpan:1,typeCell:io.AMOUNT}}):i[0][a]={content:jl(l,e),colSpan:f||1,typeCell:p}}),i},kx=e=>!e.secured&&e.rowType!==te.ADD_BUTTON,Ea=(e,t,r={})=>{let{rowsFilter:o=kx,type:n="csv"}=r,i=[];for(let l of e)o(l)&&i.push(t.map((a,p)=>{let c=y(s({},a),{idx:p});return n==="csv"?D2(l,c,n):Tx(l,c,n)}));return i},N2=(e,t,r={})=>{let{delimiter:o=","}=r;var n=a=>{let p="";for(let c=0;c<a.length;c++){let m=(0,A2.default)(a[c])?"":a[c].toString();a[c]instanceof Date&&(m=a[c].toLocaleString());let f=m.replace(/"/g,'""'),d=new RegExp(`("|${(0,E2.default)(o)}|
|
|
2
2
|
|w)`,"g");f.search(d)>=0&&(f=`"${f}"`),c>0&&(p+=o),p+=f}return`${p}
|
|
3
3
|
`};let i="";for(let a=0;a<e.length;a++)i+=n(e[a]);let l=new Blob([new Uint8Array([239,187,191]),i],{type:Ta.type,cellStyles:!0});Ma(l,t+Ta.extension,Ta.type)},P2=(n,i)=>ee(void 0,[n,i],function*({header:e,body:t,footer:r},o){let l=(yield import("exceljs")).default,a=new l.Workbook,p=a.addWorksheet("ExcelJS sheet");e.forEach(f=>{let d=p.addRow(f);f.forEach((u,h)=>{let g=d.getCell(h+1);g.font={bold:!0}})}),p.addRows(t),p.addRows(r);let c=yield a.xlsx.writeBuffer(),m=new Blob([c],{type:ka.type,cellStyles:!0});Ma(m,o+ka.extension,ka.type)});var Aa=v(require("jspdf")),pA=require("jspdf-autotable");var Rx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAYAAAD+MdrbAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9btSIVBzsUdchQneyiRRxrFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxdnBSdJES/5cUWsR4cNyPd/ced+8Af7PKVLMnAaiaZWRSSSGXXxWCrwhgFH2IIyIxU58TxTQ8x9c9fHy9i/Es73N/jkGlYDLAJxAnmG5YxBvEM5uWznmfOMzKkkJ8Tjxp0AWJH7kuu/zGueSwn2eGjWxmnjhMLJS6WO5iVjZU4jhxVFE1yvfnXFY4b3FWq3XWvid/YaigrSxzneYYUljEEkQIkFFHBVVYiNGqkWIiQ/tJD/+I4xfJJZOrAkaOBdSgQnL84H/wu1uzOD3lJoWSQO+LbX+MA8FdoNWw7e9j226dAIFn4Err+GtNYPaT9EZHix4BQ9vAxXVHk/eAyx0g8qRLhuRIAZr+YhF4P6NvygPDt8DAmttbex+nD0CWukrfAAeHwESJstc93t3f3du/Z9r9/QC1lXLBaLW75AAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAAd0SU1FB+gDGwcAKiiPRlIAAAASdEVYdENvbW1lbnQAU2NyZWVuc2hvdPsRqwoAAAEUSURBVEjH7VbBDYMwDHSZ4EYJE3gFNvMqrJAJKjZhA/dRHKVRHBIefbRYioTAOc524I6oM5hZASgRKQAFoMysNBrHJncBUBEJl8CYWZlZRSQYW1unoEdCYuHl5W1oAhYMziJVMHkZ+74b07mjNel6yqZXltsdy7LMREQxxk+6zjB6Q4nIL/lq/CCgnU/vsxsGXNf1mU/0D3p4A96AN+BXAEt92bZtHNBEJ/9dlWoI4FxTa/dNxGsuwsmvJ7Q8jeMS3s9bViK3Iw1mKQ+AdmmwiISW+A8DnoVVKSJhijE+ir4Nq6BNvjqAUVBjV9vXbx4LItWpd5wzN98lUFpdM+c2ZbPEIy+uudfqGh6gsTKWpWn39r0Ax6jyIoutCZIAAAAASUVORK5CYII=",Ex=(e,t)=>{var i;let r=e==null?void 0:e.map((l,a)=>a+1).join(" ").length,o=" ".repeat(r),n=null;if((e==null?void 0:e.length)>0){let{service:l}=t,a=e==null?void 0:e.map(({token:p})=>`1-${p}`);n=(i=l==null?void 0:l.ged)==null?void 0:i.getDocumentViewUrl(a)}return{content:o,documentUrl:n}},O2=(e,t)=>{let r=e;return typeof e=="function"&&(r=e(t)),r},Mx=(e,t,r)=>e.map((o,n)=>{let i=t==null?void 0:t[n];return o.filter((l,a)=>{let p=l===te.GROUP_BUTTON;return p&&a===0||!p}).map(({content:l,style:a,typeCell:p,raw:c,groupId:m,rowType:f})=>{let d={typeCell:p,content:l,style:a,groupId:m,rowType:f,raw:c},u=O2(p,i);if(["number","amount","badge_status"].includes(u)&&(d.styles={halign:"right"}),u==="attachment"){let h=Ex(c,r);d=s(s({},d),h)}return d})}),Ax=e=>{let t=!0,r=0,o=e.map(n=>n.filter(({colSpan:i})=>{let l=r===0;return r>0&&r--,i&&(r+=i-1),l}).map(({content:i,typeCell:l,colSpan:a})=>{let p={content:i||"",colSpan:a};return i&&(t=!1),[io.AMOUNT,io.SUM].includes(l)&&(p.styles={halign:"right"}),p}));return t?null:o},Dx=e=>[e.map(({header:r})=>r||"")],Lx=e=>new Promise((t,r)=>{let o=new Image;o.onload=()=>{t({width:o.width,height:o.height}),URL.revokeObjectURL(o.src)},o.onerror=n=>{r(n)},o.src=e}),B2="p",Nx=(e,t,r,o,n)=>ee(void 0,null,function*(){var T,k;let{orientation:i=B2,title:l,isOnlyOutput:a,fontSize:p=8,watermark:c="",theme:m={}}=n,f="#89e7e8",d="#DDFAFA",u="#0bd1d1",h=((k=(T=m==null?void 0:m.palette)==null?void 0:T.common)==null?void 0:k.grey)||"#000000",g=[212,212,212],C=[154,232,232],x=e==null?void 0:e.rawRows,b=Dx(e==null?void 0:e.columns),I=Mx(e==null?void 0:e.rows,x,o),D=Ax(e==null?void 0:e.footer),S=new Aa.default({putOnlyUsedFonts:!0,format:"a4",unit:"pt",orientation:i});if(l){let w=S.getPageWidth();if(S.setTextColor("#000000"),S.setLineWidth(1),S.setDrawColor(f),S.rect(w/4,25,w/2,45),S.setFontSize(13),S.text(l.line1,w/2,45,{align:"center"}),S.setFontSize(11),S.text(l.line2,w/2,60,{align:"center"}),S.setFontSize(9),S.text(l.line3,w/2,87,{align:"center"}),S.setLineWidth(0),S.setDrawColor("#000000"),l.logo){let{width:A,height:O}=yield Lx(l.logo),E=A/O,L=45,V=L*E;S.addImage(l.logo,l.logoFormat||"PNG",w-33-V,25,V,L)}}return S.autoTable({head:b,body:I,foot:D,startY:l?100:25,theme:"grid",allSectionHooks:!0,styles:{fontSize:p,halign:"center",cellPadding:3.5,cellWidth:"auto",lineWidth:.5,lineColor:[0,0,0],textColor:[0,0,0]},headStyles:{textColor:[0,0,0],lineColor:[0,0,0],fillColor:d},footStyles:{fillColor:C},bodyStyles:{fillColor:"#FFFFFF",textColor:"#000000"},rowStyles:{lineWidth:.5,lineColor:[0,0,0]},tableLineColor:[0,0,0],didParseCell:w=>{var A,O;if(w.row.section==="body"){let E=((A=w.cell.raw)==null?void 0:A.groupId)!==void 0;(E&&((O=w.cell.raw)==null?void 0:O.groupId)%2!==0||!E&&w.row.index%2===0)&&(w.cell.styles.fillColor=g),w.cell.raw.style&&(w.cell.styles=s(s({},w.cell.styles),w.cell.raw.style)),w.cell.raw.rowType===te.GROUP_BUTTON&&(w.cell.styles.fillColor=u,w.cell.styles.textColor="#FFFFFF")}},didDrawCell:w=>{var H,M;let A=(H=w==null?void 0:w.row)==null?void 0:H.index,O=x==null?void 0:x[A],E=(M=w.cell.raw)==null?void 0:M.typeCell,L=O2(E,O),V=w.cell.raw.documentUrl;if(L==="attachment"&&V){let z=w.cell.x+w.cell.width/2-2,$=w.cell.y+4;S.addImage(Rx,"PNG",z,$,5,10),S.link(z,$,5,10,{url:V})}},didDrawPage:()=>{if(c){let w=S.internal.pageSize.getHeight();S.saveGraphicsState(),S.setGState(new Aa.default().GState({opacity:.75}));let A=240-c.length*11;S.setFontSize(A<70?70:A),S.setTextColor(h);let O=i===B2;S.text(c,100,w-50,{angle:O?50:30}),S.restoreGraphicsState()}}}),a?S.output("blob"):(r?(S.autoPrint({variant:"non-conform"}),S.output("pdfobjectnewwindow")):S.save(`${t}.pdf`),null)}),_2=(e,t,r,o,n)=>ee(void 0,null,function*(){return yield Nx(t,e,r,o,n)});var F2=e=>e&&(e.constructor.name==="File"||e.constructor.name==="FileList"),Ma=(e,t,r="application/pdf")=>{let o=new Blob([e],{type:r}),n=document.createElement("a");n.style="display: none",document.body.appendChild(n);let i=window.URL.createObjectURL(o);n.href=i,n.download=t,n.click(),setTimeout(()=>{window.URL.revokeObjectURL(i),document.body.removeChild(n)},100)},Yl=(e,t,r,o,n,i={})=>{let l=t.filter(Z0),a=L2(e,l);if(["csv","xls"].includes(r)){let p=Ea(e,l,{type:"csv"});if(r==="csv"){let c=[l.map(({header:m})=>m),...p,...(a==null?void 0:a.map(m=>m==null?void 0:m.map(f=>f==null?void 0:f.content)))||[]];N2(c,o,i)}if(r==="xls"){let c={header:[l.map(({header:m})=>m)],body:p,footer:a==null?void 0:a.map(m=>m==null?void 0:m.map(f=>f==null?void 0:f.content))};P2(c,o)}return null}if(["pdf","print","output"].includes(r)){let p=Ea(e,l,{type:"pdf"}),c={columns:l,rows:p,rawRows:e,footer:a},m={};return r==="output"&&(m.isOnlyOutput=!0),_2(o,c,r==="print",n,s(s({},i),m))}};var In=require("react");var V2=v(require("react")),Px=V2.default.createContext({}),z2=Px;var er=z2;var H2=(e,t,r)=>{let[o,n]=(0,In.useState)(e),[i,l]=(0,In.useState)(t);return{order:o,orderDirection:i,onOrderChange:p=>{if(typeof r=="function"&&p){let c=i===lo.ASC?"desc":"asc";l(c),r(p,c);return}p===o?l(c=>c===lo.ASC?lo.DESC:lo.ASC):(n(p),l(lo.ASC))}}},U2=(e=[],t="id",r=!1,o="groupId")=>{let[n,i]=(0,In.useState)(e),l=(m,f,d=0,u=te.VIEW)=>{let h=[...m],g=f.filter(C=>C.rowType===te.NEW);if(g)if(r){let C={};g.forEach(x=>{let b=x[o];C[b]||(C[b]=[]),C[b].push(y(s({},x),{rowType:u}))});for(let x in C){let b=h.find(({id:I})=>Number.parseInt(x,10)===I);b&&(d!==0?b.data.push(...C[x]):b.data.unshift(...C[x]))}}else h.splice(d,0,...g.map(C=>y(s({},C),{rowType:u})));return h};return{data:n,setData:i,onAdd:(m,f)=>{i(l(n,m,f))},onEdit:(m,f)=>{let d=[...n];r?m.forEach(u=>{let h=n.findIndex(({id:g})=>g===u[o]);if(h!==-1){let g=n[h].data.findIndex(C=>C[t]===u[t]);g!==-1&&(d[h].data[g]=y(s({},u),{rowType:te.VIEW}))}}):m.forEach(u=>{let h=n.findIndex(g=>g[t]===u[t]);h!==-1&&(d[h]=y(s({},u),{rowType:te.VIEW}))}),i(l([...d],m,f))},onDelete:m=>{let f=d=>d.filter(u=>!m.includes(u[t]));i(r?n.map(d=>y(s({},d),{data:f(d.data)})):f(n))}}},ae=()=>(0,In.useContext)(er);var G2=require("react");var W2=v(require("react")),Bx=W2.default.createContext({}),Kl=Bx;var Ox=()=>(0,G2.useContext)(Kl),so=Ox;var Zl=(e={})=>{let t=(0,$2.useTheme)(),{onSuccess:r}=e,{config:{columns:o,exportFilename:n="export",exportOptions:i},displayableRows:l}=ae(),a=so(),[p,c]=(0,Da.useState)(!1),[m,f]=(0,Da.useState)(!1);return{exportData:(u,h)=>ee(void 0,null,function*(){c(!0);let g=null;try{g=yield Yl(l,o,u,(h==null?void 0:h.exportFilename)||n,a,y(s(s({},i),h),{theme:t})),r&&r()}catch(C){console.error(C),f(!0)}return c(!1),g}),loading:p,error:m}};var li=require("react");function ii(e,t){if(!t||e.length!==t.length)return!1;let r=0;for(let o=0,n=e.length;o<n;o++)if(Array.isArray(e[o])&&Array.isArray(t[o+r])){if(!ii(e[o],t[o+r]))return!1}else if(e[o]!==t[o+r]){let i=t.indexOf(e[o]);if(i===-1)return!1;r=i>o?r-1:r+1}return!0}var _x=()=>{let{context:e,send:t,displayableRows:r,props:{defaultSelectedRows:o,selectRows:n},config:{selectableRowKey:i="id"}}=ae(),{selectedRows:l=[]}=e,a=(0,li.useRef)([]);(0,li.useEffect)(()=>{o&&p(mt(o))},[]),(0,li.useEffect)(()=>{if(n){let c=Sn(l,r,i);ii(a.current,c)||(a.current=c,n(c))}},[l,r]);let p=c=>{t("selectRows",{selectedRows:c})};return{selectRows:p,selectedRows:l}},j2=_x;var Y2=require("react"),Na=v(require("lodash/isEmpty"));var si={};Rc(si,{after:()=>Hx,date:()=>zx,max:()=>Wx,min:()=>Ux,pipe:()=>Gx,positive:()=>Fx,required:()=>Vx,validate:()=>La});var tr=v(require("lodash/get")),Ar=v(require("moment"));var Fx=e=>(t,r)=>{if((0,tr.default)(t,r,0)<0)return e||F.t("validation.errors.negativeValue")},Vx=e=>(t,r)=>{if((0,tr.default)(t,r,"")==="")return e||F.t("validation.errors.empty")},zx=e=>(t,r)=>{if(!(0,Ar.default)((0,tr.default)(t,r,Ar.default.invalid())).isValid())return e||F.t("validation.errors.invalidDate")},Hx=(e,t)=>(r,o)=>{let n=(0,tr.default)(r,o),i=(0,tr.default)(r,e);if(n&&i&&(0,Ar.default)(i).isValid()&&(0,Ar.default)(n).isValid()&&!(0,Ar.default)(n).isAfter(i))return t||F.t("validation.errors.moreThan",{minValue:(0,Ar.default)(i).format("DD/MM/YYYY")})},Ux=(e,t)=>(r,o)=>{let n=(0,tr.default)(r,o,Number.NEGATIVE_INFINITY);if(Number(n)<e)return t||F.t("validation.errors.moreOrEqualThan",{minValue:e})},Wx=(e,t)=>(r,o)=>{let n=(0,tr.default)(r,o,Number.POSITIVE_INFINITY);if(Number(n)>e)return t||F.t("validation.errors.lessOrEqualThan",{maxValue:e})};var La=(e,t)=>{if(!t)return{};let r={};return Object.keys(t).forEach(o=>{let n=t[o](e,o);n&&(r[o]=n)}),r},Gx=(...e)=>(...t)=>e.reduce((r,o)=>r!=null?r:o(...t),null);var $x=()=>{let{config:{selectableRowKey:e="id"},props:{validationRules:t,validationResolver:r}}=ae(),[o,n]=(0,Y2.useState)({});function i(f,d){n(u=>y(s({},u),{[f]:d}))}function l(f){n(d=>s(s({},d),f))}function a(f){o[f]&&n(d=>{let u=s({},d);return delete u[f],u})}function p(f){n(d=>{let u=s({},d);return f.forEach(h=>{delete u[h]}),u})}function c(f){return r?r(f):La(f,t)}function m(f){let d=f._touched||f.rowType!==te.NEW?c(f):{};return(0,Na.default)(d)?a(f[e]):i(f[e],d),d}return{hasError:!(0,Na.default)(o),errors:o,validate:m,addError:i,addErrors:l,removeError:a,removeErrors:p}},K2=$x;var jx=()=>{let{exportData:e}=Zl(),t=K2(),{selectRows:r,selectedRows:o}=j2(),{apiRef:n,send:i,config:l,allRows:a,displayableRows:p}=ae();return n.current.exportData=e,n.current.selectRows=r,n.current.getSelectedRows=()=>o,n.current.edit=()=>i("edit"),n.current.deleteNewRows=()=>i("deleteNewRows"),n.current.state={selection:o},n.current.getData=c=>c!=null&&c.filtered?p:a,n.current.getColumns=()=>l.columnsRaw,n.current.setCellValue=({keyId:c,key:m,value:f})=>i("input",{key:m,selectableRowKey:l.selectableRowKey,keyId:c,data:f,isSubLevels:l.isSubLevels,subDataKey:l.subDataKey||""}),n.current.setRowValue=({keyId:c,value:m})=>i("updateLine",{selectableRowKey:l.selectableRowKey,keyId:c,data:m}),n.current.validation=t,null},Z2=jx;var X2=require("@mui/material"),q2=require("tss-react/mui"),Yx=(0,q2.makeStyles)()(e=>({root:{flexShrink:0,cursor:"pointer",height:32,backgroundColor:e.palette.primary.light,fontSize:12,fontWeight:"bold",fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",alignItems:"center",color:"#000000",lineHeight:"32px",textAlign:"left",paddingLeft:10,"&:hover":{backgroundColor:(0,X2.darken)(e.palette.primary.light,.05)}}})),Xl=Yx;var Q2=require("react/jsx-runtime"),Kx=function({onAdd:t,label:r=F.t("common.addRow")}){let{classes:o}=Xl();return(0,Q2.jsx)("div",{className:o.root,onClick:t,"data-role":"add-row",role:"button",children:r})},ai=Kx;var po=require("react"),hg=v(require("classnames"));var Pa=class{constructor(){this.callbacks=new Map,this.observer=new ResizeObserver(t=>{for(let r of t){let o=this.callbacks.get(r.target);o&&o(r)}})}observe(t,r){this.callbacks.has(t)||this.observer.observe(t),this.callbacks.set(t,r)}unobserve(t){this.observer.unobserve(t),this.callbacks.delete(t)}disconnect(){this.observer.disconnect()}},J2=Pa;var oh=v(require("classnames"));var eh=require("tss-react/mui"),Zx=(0,eh.makeStyles)()(e=>({cell:{cursor:"pointer",fontSize:13,lineHeight:"32px",letterSpacing:"normal",color:"inherit",overflow:"hidden"},groupRow:{fontFamily:"basier_circlemedium",backgroundColor:e.palette.primary.main,boxSizing:"border-box",padding:"0 4px",color:"white",alignItems:"center",position:"absolute",display:"flex",width:"100%",height:32}})),th=Zx;var ci=require("react/jsx-runtime"),Xx=e=>{let{style:t,row:r,hasCheckBoxHidden:o}=e,{groupId:n,name:i}=r,{context:{groupCollapsed:l},send:a}=ae(),{classes:p}=th(),c=l.has(n);function m(){a(c?"expandGroup":"collapseGroup",{groupId:n})}return(0,ci.jsxs)("div",{"data-role":"group","data-key":`group-${n}`,className:(0,oh.default)("groupRow",p.groupRow),style:{top:t.top},children:[!o&&(0,ci.jsx)(Ho,{onToggle:m,isExpanded:!c}),(0,ci.jsx)("span",{onClick:m,className:p.cell,children:i})]})},rh=Xx;var lh=v(require("classnames"));var nh=require("tss-react/mui"),qx=(0,nh.makeStyles)()(()=>({root:{display:"flex",position:"absolute",width:"100%",boxSizing:"border-box"}})),ih=qx;var ah=require("react/jsx-runtime"),Qx=e=>{let{style:t,row:r,handleAddClick:o}=e,{groupId:n,name:i}=r,{classes:l}=Xl(),{classes:a}=ih();function p(){o(n)}return(0,ah.jsx)("div",{"data-role":"add-group-row","data-key":`add-group-${n}`,onClick:p,className:(0,lh.default)(l.root,a.root),role:"button",style:{top:t.top},children:i})},sh=Qx;var ui=require("react"),sg=require("@mui/material"),ag=v(require("classnames"));var ch=e=>{let{config:{unlockedRowsIds:t,selectableRowKey:r,hasSecuredRows:o}}=ae();return{isSecuredRow:Vl({hasSecuredRows:o,row:e,unlockedRowsIds:t,selectableRowKey:r})}};var ph=require("reselect"),Jx=e=>e.selection,Tn=(0,ph.createSelector)(Jx,e=>e);var dh=require("react");function or(){return(0,dh.useContext)(er).apiRef}var mh=e=>[e.current.state];var kn=(e,t)=>{let[r]=mh(e);return t(r)};var ot=require("react"),ig=require("@mui/material"),mi=v(require("classnames")),sc=v(require("lodash/upperFirst"));var lc=v(require("lodash/get"));var bh=require("react");var uh=v(require("prop-types")),De={isReadOnly:uh.default.bool.isRequired};var Mn=require("react"),yh=v(require("classnames")),xh=v(require("lodash/omit"));var fh=require("tss-react/mui"),e7=(0,fh.makeStyles)()(()=>({amountCell:{height:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},amountViewCell:{paddingRight:10,height:"100%",display:"flex",justifyContent:"flex-end"},disabled:{opacity:.5},input:{outline:"none",padding:0,border:"none",width:"100%",paddingRight:10,background:"transparent"}})),ql=e7;function hh(e){let t="",r=!1,o=!1,n=-1;for(;++n<e.length;){let i=e[n];("+".includes(i)||i>=0&&i<=9||".,".includes(i)&&!r&&!o||"-".includes(i)&&n===0||"eE".includes(i)&&!o)&&(t+=i,".,".includes(i)&&(r=!0),"eE".includes(i)&&(o=!0))}return t}var gh=require("react");var Rn=require("react/jsx-runtime");function t7({data:e,dataKey:t,column:r,customProps:o}){let{classes:n}=ql(),{renderExport:i,negNumParenthesis:l,getValue:a}=r,p=a?a(e,t):fe(e,t),c=(i==null?void 0:i(e,t))||(a==null?void 0:a(e,t))||bn(p,r);return l&&p<0?(0,Rn.jsxs)("div",y(s({className:n.amountViewCell},o),{children:["(",(0,Rn.jsx)("span",{className:n.amountCell,title:c,children:bn(Math.abs(p),r)}),")"]})):(0,Rn.jsx)("div",y(s({className:n.amountViewCell},o),{children:(0,Rn.jsx)("div",{className:n.amountCell,title:c,children:bn(p,r)})}))}var Ql=(0,gh.memo)(t7);var En=require("react/jsx-runtime"),o7=(0,Mn.memo)(function(t){let h=t,{data:r,dataKey:o,columnIndex:n,onChange:i,column:l,isFocused:a,isDisabled:p}=h,c=_(h,["data","dataKey","columnIndex","onChange","column","isFocused","isDisabled"]),{classes:m}=ql(),[f,d]=(0,Mn.useState)(fe(r,o)),u=g=>{c.type==="number"&&(g.target.value=hh(g.target.value));let C=g.target.value;d(C),i(C)};return(0,Mn.useEffect)(()=>{d(fe(r,o))},[r]),(0,En.jsx)(En.Fragment,{children:a?(0,En.jsx)("input",s({type:"text",disabled:p,className:(0,yh.default)(m.input,{[m.disabled]:p}),onChange:u,value:f},(0,xh.default)(c,v2))):(0,En.jsx)(Ql,y(s({},t),{customProps:{tabIndex:"0",onFocus:()=>c.onFocus(),onClick:()=>c.onFocus()}}))})}),Ch=o7;var Ba=require("react/jsx-runtime"),Sh=(0,bh.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,Ba.jsx)(Ql,s({},r)):(0,Ba.jsx)(Ch,s({},r))});Sh.propTypes=De;var vh=Sh;var Dr=require("react"),pi=require("@mui/material");var Jl=require("react");var es=(e={})=>{let[t,r]=(0,Jl.useState)({open:!1,focusing:!1});return(0,Jl.useDebugValue)(e.open||t.open?"Opened":"Closed"),{open:(o,n=!1)=>r(i=>y(s({},i),{message:o,open:!0,focusing:n})),send:(o,n=!1)=>r(i=>y(s({},i),{message:o,focusing:n})),focus:()=>r(o=>y(s({},o),{focusing:!0})),close:()=>r(o=>y(s({},o),{open:!1})),props:y(s({},e),{open:e.open||t.open,focusing:t.focusing,message:t.message,onOpen:()=>{e.open===void 0?(r(o=>y(s({},o),{open:!0})),e.onOpen&&e.onOpen()):e.onOpen()},onFocusChanged:()=>{r(o=>y(s({},o),{focusing:!1})),e.onFocusChanged&&e.onFocusChanged()},onClose:()=>{e.open===void 0?(r(o=>y(s({},o),{open:!1,focusing:!1})),e.onClose&&e.onClose()):e.onClose()}})}};var wh=require("tss-react/mui"),r7=(0,wh.makeStyles)()(e=>({root:{alignItems:"center",display:"inline-flex",height:"100%",justifyContent:"center"},attachment:{marginTop:"3px","&.Mui-disabled":{opacity:.3}},badge:{marginLeft:8,borderRadius:9,height:18,minWidth:18,backgroundColor:e.palette.primary.main,fontSize:11,lineHeight:"18px",textAlign:"center",color:e.palette.primary.contrastText,padding:"0 6px","&:focus":{backgroundColor:e.palette.primary.dark}}})),Ih=r7;var ts=require("react"),Th=require("@mui/material"),kh=v(require("lodash/isArray"));var Eo=require("react/jsx-runtime"),n7=(e,t)=>{let r=[],o=[],n={},i={};return e.forEach(({token:l})=>i[l]=!0),t.forEach(({token:l})=>n[l]=!0),e==null||e.forEach(l=>{let{token:a}=l;n[a]||r.push(l)}),t==null||t.forEach(l=>{let{token:a}=l;i[a]||o.push(l)}),{added:o,deleted:r}},i7=e=>{let{open:t,onClose:r,cell:o,files:n=[],onChange:i,onFileClick:l}=e,[a,p]=(0,ts.useState)(n),[c,m]=(0,ts.useState)(!1),{column:{isDisplayCloseBtn:f=!0,onSubmit:d,filesDropperProps:u={}}}=o,[h,g]=(0,ts.useState)(!1),S=u,{onRemoveFile:C=()=>{},onAddFiles:x=()=>{}}=S,b=_(S,["onRemoveFile","onAddFiles"]),I=()=>ee(void 0,null,function*(){g(!0);let{added:T,deleted:k}=n7(n,a),w=yield d(o,a,T,k);(0,kh.default)(w)&&i(w),r(),g(!1)}),D=T=>{m(!0),f||i(T),p(T)};return(0,Eo.jsxs)(ke,{isOpen:t,onClose:r,isCloseIconShown:!1,children:[(0,Eo.jsx)(ke.Title,{children:F.t("virtualTable.attachmentCell.title")}),(0,Eo.jsx)(ke.Content,{children:(0,Eo.jsx)(Th.Box,{sx:{mt:1},children:(0,Eo.jsx)(Nl,s({initialFiles:n,isScannable:!0,displayList:!0,onChange:D,onAddFiles:(...T)=>x(o,...T),onRemoveFile:(...T)=>C(o,...T),filesListTitle:F.t("virtualTable.uploadDialog.filesListTitle"),onCustomFileClick:l},b))})}),d&&(0,Eo.jsx)(ke.PrimaryAction,{onClick:I,disabled:h||!c,children:F.t("common.import")}),f&&(0,Eo.jsx)(ke.SecondaryAction,{onClick:r,disabled:h,children:F.t("common.cancel")})]})},Rh=i7;var tt=require("react/jsx-runtime"),l7=(0,Dr.memo)(function({data:t=[],column:r,onChange:o,onMouseEnter:n,onMouseLeave:i,cell:l,isDisabled:a}){let p=(0,pi.useTheme)(),{component:{Window:c}}=so(),{classes:m}=Ih(),f=es(),[d,u]=(0,Dr.useState)(0),[h,g]=(0,Dr.useState)(!1);if(typeof window=="undefined"){let S={screenX:0,innerWidth:1280}}let{hasPreviewer:C=!0,hasUploader:x=!0}=r,b=t?Array.isArray(t)?t:[t]:[];(0,Dr.useEffect)(()=>{u(b.length)},[b]);let I=()=>{f.open({documents:b},!0)},D=S=>{f.open({documents:[S]},!0)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("div",{className:m.root,onMouseEnter:n,onMouseLeave:i,children:[x&&(0,tt.jsx)(pi.ButtonBase,{size:"small",className:m.attachment,disabled:a,disableRipple:!0,onClick:()=>g(!0),children:(0,tt.jsx)(tl,{content:(0,tt.jsx)(jr,{size:7,color:"white"}),size:16,color:p.palette.primary.main,fontSize:"9px",onClick:null,children:(0,tt.jsx)(pl,{size:20})})}),C&&(0,tt.jsxs)(tt.Fragment,{children:[d>0&&(0,tt.jsx)(pi.ButtonBase,{disableRipple:!0,onClick:I,className:m.badge,children:d}),f.props.open&&(0,tt.jsx)(c,s({path:"/overview",window_id:"overview",features:`width=${window.innerWidth/2}, left=${window.screenX+window.innerWidth/2}`},f.props))]})]}),(0,tt.jsx)(Rh,{open:h,onClose:()=>g(!1),files:t,cell:l,onChange:o,onFileClick:D})]})}),Eh=l7;var Oh=require("react");var rr=require("react"),ns=require("@mui/material"),is=v(require("@mui/material/Autocomplete")),Ah=v(require("lodash/omit"));var Mh=require("tss-react/mui"),s7=(0,Mh.makeStyles)()(()=>({input:{padding:"6px 0px"},chip:{marginRight:6},viewValue:{whiteSpace:"pre"}})),os=s7;var rs=require("react/jsx-runtime"),Lh=require("react"),a7=(0,rr.memo)(function(c){var m=c,{data:t,dataKey:r,columnIndex:o,onChange:n,column:i,isDisabled:l,vtContext:a={}}=m,p=_(m,["data","dataKey","columnIndex","onChange","column","isDisabled","vtContext"]);let{classes:f}=os(),{send:d,config:u={}}=a,{selectableRowKey:h="id"}=u,{disableClearable:g=!0,onCreate:C,canCreate:x=!1,multiple:b=!1,isResetOnEscape:I=!1}=i,D=i.options||i.optionList||[],S=(0,rr.useMemo)(()=>typeof D=="function"?D(t):D,[D,t]),T=()=>b?S.filter(M=>{var z;return(z=fe(t,r))==null?void 0:z.includes(M.value)}):S.find(M=>M.value===fe(t,r)),[k,w]=(0,rr.useState)(T()),A=fe(t,r);(0,rr.useEffect)(()=>{A!==k&&w(T())},[A,S]);let O=t[h],E=M=>{n(M)},L=M=>{C&&C(M,t,z=>{d("updateLine",{key:r,selectableRowKey:h,keyId:O,data:z})}),w(b?z=>[...z,M]:M)},V=M=>{typeof M=="string"?L(M):M!=null&&M.inputValue?L(M==null?void 0:M.inputValue):E(b?M.map(z=>z==null?void 0:z.value):M==null?void 0:M.value)},H=(0,is.createFilterOptions)();return(0,rs.jsx)(is.default,s({id:"autocomplete-cell-edit-vt",size:"small",options:S,getOptionLabel:M=>typeof M=="string"?M:M.inputValue?M.inputValue:M.label,renderInput:M=>(0,rs.jsx)(ns.TextField,y(s({variant:"standard"},M),{InputProps:y(s({},M.InputProps),{disableUnderline:!0}),onKeyDown:z=>{I&&z.code==="Escape"&&w($=>s({},$))}})),renderOption:(M,{label:z,value:$})=>(0,Lh.createElement)("li",y(s({},M),{key:$}),(0,rs.jsx)(ns.Typography,{color:k===$?"primary":"initial",children:z})),filterOptions:(M,z)=>{let $=H(M,z);return z.inputValue!==""&&$.length===0&&x&&$.push({inputValue:z.inputValue,label:F.t("autocomplete.createOption",{value:z.inputValue})}),$},disabled:l,onChange:(M,z)=>V(z),classes:{inputRoot:f.input},freeSolo:!0,value:k||"",disableClearable:g,multiple:b},(0,Ah.default)(p,ut)))}),Dh=a7;var Nh=require("react"),Ph=require("@mui/material");var Oa=require("react/jsx-runtime"),c7=(0,Nh.memo)(function({data:t,column:r}){let{classes:o}=os(),n=Ul(t,r),i=Array.isArray(n)?n.map((l,a)=>(0,Oa.jsx)(Ph.Chip,{classes:{root:o.chip},id:l.id,label:l.operator?`${l.operator} ${l==null?void 0:l.label}`:l==null?void 0:l.label,color:"primary",size:"small"},a)):n==null?void 0:n.label;return(0,Oa.jsx)("div",{className:o.viewValue,children:i})}),Bh=c7;var _a=require("react/jsx-runtime"),_h=(0,Oh.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,_a.jsx)(Bh,s({},r)):(0,_a.jsx)(Dh,s({},r))});_h.propTypes=De;var Fh=_h;var Xh=require("react"),qh=v(require("lodash/get"));var nr=v(require("classnames"));var Hh=v(require("@mui/material/Tooltip")),Uh=v(require("@mui/material/Typography")),Fa=v(require("classnames"));var Vh=require("tss-react/mui"),p7=(0,Vh.makeStyles)()((e,{color:t})=>{var r,o;return{infoBulle:{border:"none",heigth:15,width:"auto",padding:"4px 10px",borderRadius:2,fontWeight:500,boxShadow:"1px 5px 7px 0 rgba(0, 0, 0, 0.08)",backgroundColor:"#ffffff",color:e.palette.grey[800],fontFamily:"basier_circlemedium"},label:{whiteSpace:"pre-line"},fontIcon:{fontSize:24,color:((o=(r=e.palette)==null?void 0:r[t])==null?void 0:o.main)||t,"[data-role=cell]:hover &":{textDecoration:"none"}},dataIconChar:{"&:before":{content:"attr(data-icon-char)"}},multiTitleContainer:{display:"flex",flexDirection:"column",alignItems:"stretch"},multiTitle:{flex:1,marginTop:10,borderBottom:"2px solid red",paddingBottom:10,"&:last-child":{borderBottom:"none",paddingBottom:0}}}}),zh=p7;var Lr=require("react/jsx-runtime"),d7=e=>{let h=e,{name:t,size:r,color:o,titleInfoBulle:n="",tooltipPlacement:i="top",marginRight:l=0,className:a="",iconChar:p,iconCharStyle:c,tooltipProps:m}=h,f=_(h,["name","size","color","titleInfoBulle","tooltipPlacement","marginRight","className","iconChar","iconCharStyle","tooltipProps"]),{classes:d}=zh({color:o}),u=g=>{if(typeof g=="string")return g;if(Array.isArray(g))return(0,Lr.jsx)("div",{className:d.multiTitleContainer,children:g.map((C,x)=>(0,Lr.jsx)("div",{className:d.multiTitle,children:C},`titleInfo_${C}_${x}`))})};return n?(0,Lr.jsx)(Hh.default,y(s({title:(0,Lr.jsx)(Uh.default,{classes:{root:d.label},children:u(n)}),placement:i,disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:d.infoBulle}},m),{children:(0,Lr.jsx)("span",s({className:(0,Fa.default)(t,a,d.fontIcon),style:{fontSize:r}},f))})):(0,Lr.jsx)("span",s({className:(0,Fa.default)(t,a,d.fontIcon,p&&d.dataIconChar,c),style:{fontSize:r,marginRight:l},"data-icon-char":p},f))},ze=d7;var Wh=require("tss-react/mui"),m7=(0,Wh.makeStyles)()(e=>({container:{display:"flex",height:"inherit",alignItems:"center",paddingLeft:16},badge:{fontSize:11,fontFamily:"basier_circleregular",textAlign:"center",lineHeight:"24px",borderRadius:"24px",height:"24px",width:"24px",color:"white"},badgeOk:{fontSize:11,textAlign:"center",lineHeight:"24px",borderRadius:"24px",height:"24px",width:"24px",color:e.palette.primary.main,border:`1px solid ${e.palette.primary.main}`},badgeToDo:{boxSizing:"border-box",border:`3px solid ${e.palette.warning.main}`},inProgressBackground:{backgroundColor:e.palette.secondary.main},maxExceeded:{fontSize:10},errorBackground:{backgroundColor:e.palette.warning.main},validBackground:{backgroundColor:e.palette.primary.main},badgeAlert:{color:e.palette.warning.main},emptyDiv:{height:32,"&::before":{content:"'\\200b'"}}})),Gh=m7;var ao=require("react/jsx-runtime");function u7({status:e="",value:t=-1}){let{classes:r}=Gh();switch(e){case Ut.OK_MANUEL.value:return(0,ao.jsx)("div",{className:(0,nr.default)(r.badge,r.validBackground),children:"OK"});case Ut.OK.value:return(0,ao.jsx)("div",{className:r.badgeOk,children:"OK"});case Ut.TO_DO.value:return(0,ao.jsx)("div",{className:(0,nr.default)(r.badge,r.badgeToDo)});case Ut.TIME_OUT.value:return(0,ao.jsx)("div",{className:(0,nr.default)(r.badge,r.errorBackground)});case Ut.ERROR_MANUEL.value:return(0,ao.jsx)("div",{className:(0,nr.default)(r.badge,r.errorBackground),children:"KO"});case Ut.IN_PROGRESS.value:return(0,ao.jsx)("div",{className:(0,nr.default)(r.badge,r.inProgressBackground,{[r.maxExceeded]:t!==-1&&t>999}),children:t!==-1?t>999?`+${999}`:t:""});case Ut.ERROR.value:return(0,ao.jsx)("div",{className:(0,nr.default)(r.badge),children:(0,ao.jsx)(ze,{name:"icon-alert",className:r.badgeAlert})});default:return(0,ao.jsx)("div",{className:(0,nr.default)("empty-badge",r.emptyDiv)})}}var $h=u7;var Dn=require("react"),ls=require("@mui/material");var jh=require("tss-react/mui"),f7=(0,jh.makeStyles)()(()=>({contextMenuCell:{cursor:"context-menu",display:"contents",height:"100%",width:"100%"}})),Yh=f7;var An=require("react/jsx-runtime");function h7({children:e,listAction:t,canClick:r,data:o}){let{classes:n}=Yh(),[i,l]=(0,Dn.useState)(null),a=(0,Dn.useCallback)(()=>t.map(({label:f,action:d,disabled:u=()=>!1,itemProps:h={}},g)=>(0,An.jsx)(ls.MenuItem,y(s({onClick:m.bind(null,d),disabled:u(o)},h),{children:f}),g)),[t,o]);if(!r)return e;function p(f){f.preventDefault(),l(f.currentTarget)}function c(f){f.preventDefault(),l(null)}function m(f){o?f(o):f(),l(null)}return(0,An.jsxs)("div",{className:n.contextMenuCell,children:[(0,An.jsx)("span",{onContextMenu:p,children:e}),i&&(0,An.jsx)(ls.Menu,{id:"context-menu",anchorEl:i,keepMounted:!0,open:!!i,onClose:c,onContextMenu:c,children:a()})]})}var ss=(0,Dn.memo)(h7);var Kh=require("tss-react/mui"),g7=(0,Kh.makeStyles)()(()=>({container:{display:"flex",height:"100%",alignItems:"center",paddingLeft:16},badge:{fontSize:11,textAlign:"center",lineHeight:"22px",borderRadius:"22px",height:"22px",width:"22px",color:"white"}})),Zh=g7;var as=require("react/jsx-runtime");function y7({data:e,dataKey:t,column:r}){let{classes:o}=Zh(),n=(0,qh.default)(e,t,{}),i=(0,Xh.useMemo)(()=>{let{actionsByStatus:l=[]}=r;return n!=null&&n.status?l==null?void 0:l.filter(a=>a.status.includes(n.status)):l==null?void 0:l.filter(a=>a.status.includes(R2))},[r,n]);return(0,as.jsx)("div",{className:o.container,children:(0,as.jsx)(ss,{listAction:i,canClick:(i==null?void 0:i.length)>0,data:e,children:(0,as.jsx)($h,{status:n==null?void 0:n.status,value:n==null?void 0:n.value})})})}var cs=y7;var l5=require("react");var e5=require("react"),t5=require("@mui/material"),o5=v(require("classnames"));var ps=require("@mui/material"),Qh=require("tss-react/mui"),x7=(0,Qh.makeStyles)()(e=>({error:{"&.MuiButton-contained":{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText,"&:hover":{backgroundColor:(0,ps.darken)(e.palette.error.main,.1)}},"&.MuiButton-outlined":{color:e.palette.error.main,borderColor:e.palette.error.main,"&:hover":{color:(0,ps.darken)(e.palette.error.main,.1),borderColor:(0,ps.darken)(e.palette.error.main,.1)}}}})),Jh=x7;var r5=require("react/jsx-runtime"),C7=e=>{let{classes:t}=Jh(),p=e,{className:r,color:o,disabled:n,variant:i="text",buttonRef:l}=p,a=_(p,["className","color","disabled","variant","buttonRef"]);return(0,r5.jsx)(t5.Button,y(s({},a),{focusRipple:!0,disableRipple:!1,ref:l,className:(0,o5.default)(r,t[i],{[t.error]:!n&&o==="error"}),color:o==="error"?void 0:o,variant:i,disabled:n}))},Et=(0,e5.memo)(C7);var n5=require("tss-react/mui"),b7=(0,n5.makeStyles)()(()=>({cellButton:{padding:"2px 10px",minWidth:"89px !important",maxWidth:"100%",height:"20px"}})),i5=b7;var Va=require("react/jsx-runtime"),S7=({data:e,dataKey:t,column:r,isDisabled:o})=>{let[n,i]=(0,l5.useState)(!1),{classes:l}=i5(),{showCellButton:a=!0,handleClick:p,label:c}=r;function m(){return ee(this,null,function*(){try{i(!0),yield p(e,t),i(!1)}catch(f){i(!1)}})}return n?(0,Va.jsx)("div",{children:F.t("common.loading")}):a&&(0,Va.jsx)(Et,{className:l.cellButton,size:"small",color:"primary",variant:"contained",onClick:m,disabled:o,children:c})},s5=S7;var g5=v(require("react"));var ms=require("react"),m5=v(require("lodash/omit"));var p5=v(require("classnames"));var a5=require("tss-react/mui"),v7=(0,a5.makeStyles)()((e,t,r)=>({checkbox:{position:"absolute"},cbCell:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},disabled:{opacity:"0.3"},container:{height:"14px",width:"14px",display:"block",position:"relative",cursor:"pointer",fontSize:"22px","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none",userSelect:"none","& input":{position:"absolute",opacity:0,cursor:"pointer",height:0,width:0},[`& .${r.checkmark}:after`]:{left:"5px",top:"1px",width:"3px",height:"7px",border:"solid white",borderBottomRightRadius:"1px",borderWidth:"0 1.5px 1.5px 0",transform:"rotate(40deg)"},"& input:checked ~ .checkmarkPrimary":{backgroundColor:e.palette.primary.main},"& input:checked ~ .checkmarkError":{backgroundColor:"#f54b4b"},[`& input:checked ~ .${r.checkmark}`]:{height:"14px",width:"14px",border:"none","&:after":{display:"block"}},[`& input:disabled ~ .${r.checkmark}`]:{opacity:.3,cursor:"not-allowed"},"&:hover":{"& input:not(:disabled) ~ .checkmarkPrimary":{backgroundColor:"#bcf8f8"},"& input:not(:disabled) ~ .checkmarkError":{backgroundColor:"#f8bcbc"}}},checkmark:{"&:after":{content:'""',position:"absolute",display:"none"},position:"absolute",height:"12px",width:"12px",borderRadius:"2px",border:"solid 1px #9b9b9b"}})),c5=v7;var Ln=require("react/jsx-runtime"),w7=p=>{var c=p,{name:e,checked:t=!1,disabled:r=!1,onChange:o=()=>{},variant:n,keyId:i,columnIndex:l}=c,a=_(c,["name","checked","disabled","onChange","variant","keyId","columnIndex"]);let{classes:m}=c5();return(0,Ln.jsx)("div",{className:m.checkbox,children:(0,Ln.jsxs)("label",{className:m.container,children:[(0,Ln.jsx)("input",s({type:"checkbox",name:e,checked:t,disabled:r,onChange:o},a)),(0,Ln.jsx)("span",{className:(0,p5.default)(m.checkmark,n==="error"?"checkmarkError":"checkmarkPrimary")})]})})},co=w7;var d5=require("tss-react/mui"),I7=(0,d5.makeStyles)()((e,t,r)=>({checkbox:{position:"absolute"},cbCell:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},disabled:{opacity:"0.3"},container:{height:"14px",width:"14px",display:"block",position:"relative",cursor:"pointer",fontSize:"22px","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none",userSelect:"none","& input":{position:"absolute",opacity:0,cursor:"pointer",height:0,width:0},[`& .${r.checkmark}:after`]:{left:"5px",top:"1px",width:"3px",height:"7px",border:"solid white",borderBottomRightRadius:"1px",borderWidth:"0 1.5px 1.5px 0",transform:"rotate(40deg)"},"& input:checked ~ .checkmarkPrimary":{backgroundColor:"#0bd1c4"},"& input:checked ~ .checkmarkError":{backgroundColor:"#f54b4b"},[`& input:checked ~ .${r.checkmark}`]:{height:"14px",width:"14px",border:"none","&:after":{display:"block"}},[`& input:disabled ~ .${r.checkmark}`]:{opacity:.3,cursor:"not-allowed"},"&:hover":{"& input:not(:disabled) ~ .checkmarkPrimary":{backgroundColor:"#bcf8f8"},"& input:not(:disabled) ~ .checkmarkError":{backgroundColor:"#f8bcbc"}}},checkmark:{"&:after":{content:'""',position:"absolute",display:"none"},position:"absolute",height:"12px",width:"12px",borderRadius:"2px",border:"solid 1px #9b9b9b"}})),ds=I7;var za=require("react/jsx-runtime"),T7=a=>{var p=a,{data:e,dataKey:t,column:r,onChange:o,vtContext:n={},isDisabled:i}=p,l=_(p,["data","dataKey","column","onChange","vtContext","isDisabled"]);let{classes:c}=ds(),{send:m,config:f={}}=n,{selectableRowKey:d}=f,{variant:u="primary",changeOtherColumnOnClick:h}=r,g=e[d],[C,x]=(0,ms.useState)(fe(e,t)),b=I=>{h&&m("input",{key:h.keyColumn,selectableRowKey:d,keyId:g,data:h.value}),o(I)};return(0,ms.useEffect)(()=>{fe(e,t)!==void 0?x(fe(e,t)):x("")},[e,t]),(0,za.jsx)("div",{className:c.cbCell,children:(0,za.jsx)(co,s({variant:u,type:"checkbox",name:`${e[d]}_${t}`,checked:!!C,disabled:i,onChange:I=>{b(I.target.checked)}},(0,m5.default)(l,ut)))})},u5=T7;var f5=require("react");var Ha=require("react/jsx-runtime"),k7=(0,f5.memo)(function({keyId:t,data:r,dataKey:o,column:n,vtContext:i,isDisabled:l}){let{classes:a}=ds(),{config:p={}}=i,{selectableRowKey:c}=p,{variant:m="primary"}=n;return(0,Ha.jsx)("div",{className:a.cbCell,children:(0,Ha.jsx)(co,{variant:m,checked:!!r,name:`${t}_${o}`,disabled:l})})}),h5=k7;var Ua=require("react/jsx-runtime"),y5=g5.default.memo(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,Ua.jsx)(h5,s({},r)):(0,Ua.jsx)(u5,s({},r))});y5.propTypes=De;var x5=y5;var R5=require("react");var C5=require("react"),us=require("@mui/material"),b5=v(require("@mui/material/Autocomplete"));var di=require("react/jsx-runtime"),R7=(0,C5.memo)(function(l){var a=l,{data:t={},dataKey:r="",columnIndex:o=0,onChange:n}=a,i=_(a,["data","dataKey","columnIndex","onChange"]);let{config:{columns:p}}=ae(),{listOptions:c=[]}=p[o],m=f=>n(f);return Array.isArray(fe(t,r))?(0,di.jsx)(b5.default,s({multiple:!0,id:"chip-cell-virtual-table",options:c,getOptionLabel:({operator:f,label:d})=>f?`${f} ${d}`:d,defaultValue:fe(t,r),renderInput:f=>(0,di.jsx)(us.TextField,s({},f)),filterSelectedOptions:!0,ChipProps:{size:"small"},onChange:(f,d)=>m(d),renderOption:({operator:f,label:d})=>(0,di.jsx)(us.Chip,{label:f?`${f} ${d}`:d,size:"small"})},i)):(0,di.jsx)("div",{children:fe(t,r)})}),S5=R7;var I5=require("react"),T5=require("@mui/material");var v5=require("tss-react/mui"),E7=(0,v5.makeStyles)()(()=>({chip:{marginRight:6}})),w5=E7;var Wa=require("react/jsx-runtime"),M7=(0,I5.memo)(function({data:t}){let{classes:r}=w5(),o=Array.isArray(t)?t.map((n,i)=>(0,Wa.jsx)(T5.Chip,{classes:{root:r.chip},id:n.id,label:n.operator?`${n.operator} ${n.label}`:n.label,color:"primary",size:"small"},i)):t;return(0,Wa.jsx)("div",{children:o})}),k5=M7;var Ga=require("react/jsx-runtime"),E5=(0,R5.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,Ga.jsx)(k5,s({},r)):(0,Ga.jsx)(S5,s({},r))});E5.propTypes=De;var M5=E5;var B5=require("react");var Nn=require("react"),A5=require("@mui/material"),D5=v(require("lodash/omit")),fs=v(require("moment"));var $a=require("react/jsx-runtime"),A7=a=>{var p=a,{data:e,dataKey:t,column:r,onBlur:o,onChange:n,isDisabled:i}=p,l=_(p,["data","dataKey","column","onBlur","onChange","isDisabled"]);let[c,m]=(0,Nn.useState)(fe(e,t)),{formatDate:f="DD-MM-YYYY"}=r;(0,Nn.useEffect)(()=>{fe(e,t)!==void 0?m(fe(e,t)):m("")},[e,t]);let d=C=>{let x=(0,fs.default)(C).format(f),I=Number.parseInt((0,fs.default)(C).year(),10)>=1e3;m(x),I&&n(x)},u=C=>{let x=C.target.value,b=(0,fs.default)(x).format(f),I=Ia(b);m(I),n(I),o(C)},h=(0,Nn.useMemo)(()=>I2(c,f,"YYYY-MM-DD"),[c,f]),g=s({},(0,D5.default)(l,ut));return(0,$a.jsx)("div",{children:(0,$a.jsx)(A5.TextField,s({type:"date",value:h,onChange:C=>{d(C.target.value)},onBlur:C=>{u(C)},disabled:i,InputProps:{disableUnderline:!0},variant:"standard"},y(s({},g),{inputProps:s({max:"9999-12-31"},(g==null?void 0:g.inputProps)||{})})))})},L5=A7;var P5=require("react/jsx-runtime");function D7({data:e="",column:t}){return(0,P5.jsx)("div",{children:Wl(e,t)})}var N5=D7;var ja=require("react/jsx-runtime"),O5=(0,B5.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,ja.jsx)(N5,s({},r)):(0,ja.jsx)(L5,s({},r))});O5.propTypes=De;var _5=O5;var j5=v(require("react"));var Pn=v(require("react")),V5=v(require("classnames")),z5=v(require("lodash/isNil")),H5=v(require("lodash/omit"));var F5=require("tss-react/mui"),L7=(0,F5.makeStyles)()(()=>({disabled:{opacity:.5},input:{outline:"none",padding:0,border:"none",width:"100%",background:"transparent",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},stringCell:{paddingRight:4,paddingLeft:4,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),hs=L7;var Ya=require("react/jsx-runtime"),N7=Pn.default.memo(function(m){var f=m,{data:t={},dataKey:r="",column:o,columnIndex:n,vtContext:i,typeCell:l,onChange:a,keyId:p}=f,c=_(f,["data","dataKey","column","columnIndex","vtContext","typeCell","onChange","keyId"]);let{classes:d}=hs(),{isDisabled:u=()=>!1}=o,[h,g]=(0,Pn.useState)(fe(t,r)||"");(0,Pn.useEffect)(()=>{let x=fe(t,r);(0,z5.default)(x)?g(""):x!==h&&g(x)},[t,r]);let C=x=>{if(x.preventDefault(),!u(t)){let b=x.target.value;g(b),a(b)}};return(0,Ya.jsx)("div",{className:d.stringCell,title:h,children:(0,Ya.jsx)("input",s({type:"text",disabled:u(t),className:(0,V5.default)(d.input,{[d.disabled]:u(t)}),onChange:C,value:h},(0,H5.default)(c,ut)))})}),gs=N7;var Ka=require("@mui/material"),G5=v(require("classnames"));var U5=require("tss-react/mui"),W5=(0,U5.makeStyles)()(()=>({disabled:{opacity:"0.5"},input:{outline:"none",padding:0,border:"none",width:"100%",background:"transparent"},borderBottom:{borderBottom:"1px solid black"},borderRight:{borderRight:"1px solid black"},multipleCell:{border:"none"}}));var ys=require("react/jsx-runtime"),P7=({data:e="",arrayData:t})=>{let{classes:r}=W5();return(0,ys.jsx)("div",{className:(0,G5.default)(r.multipleCell),children:Array.isArray(t)?t.map((o,n)=>(0,ys.jsx)(Ka.Box,{display:"flex",flexDirection:"row",sx:r.borderBottom,children:Object.keys(o).map((i,l)=>(0,ys.jsx)(Ka.Box,{flex:o[i].size,sx:l!==Object.keys(o).length-1?r.borderRight:{},pl:"4px",pr:"4px",children:o[i].label},l))},n)):e==null?void 0:e.toString()})},$5=P7;var Za=require("react/jsx-runtime"),Y5=j5.default.memo(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,Za.jsx)($5,s({},r)):(0,Za.jsx)(gs,s({},r))});Y5.propTypes=De;var K5=Y5;var o3=require("react");var Bn=require("react"),X5=v(require("classnames")),q5=v(require("lodash/isNil")),Q5=v(require("lodash/omit"));var Z5=require("tss-react/mui"),B7=(0,Z5.makeStyles)()(()=>({disabled:{opacity:.5},input:{outline:"none",padding:0,border:"none",width:"100%",background:"transparent"},numberCell:{paddingRight:4,paddingLeft:8}})),xs=B7;var Xa=require("react/jsx-runtime"),O7=(0,Bn.memo)(function(a){var p=a,{data:t={},dataKey:r="",column:o,onChange:n,isDisabled:i}=p,l=_(p,["data","dataKey","column","onChange","isDisabled"]);var u;let{classes:c}=xs(),[m,f]=(0,Bn.useState)((u=fe(t,r))!=null?u:"");(0,Bn.useEffect)(()=>{f((0,q5.default)(fe(t,r))?"":fe(t,r))},[t,r]);let d=h=>{let g=h.target.value;f(g),n(g)};return(0,Xa.jsx)("div",{className:c.numberCell,children:(0,Xa.jsx)("input",s({type:"number",disabled:i,className:(0,X5.default)(c.input,{[c.disabled]:i}),onChange:d,value:m},(0,Q5.default)(l,ut)))})}),J5=O7;var t3=require("react/jsx-runtime"),_7=({data:e})=>{let{classes:t}=xs();return(0,t3.jsx)("div",{className:t.numberCell,children:e==null?void 0:e.toString()})},e3=_7;var qa=require("react/jsx-runtime"),r3=(0,o3.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,qa.jsx)(e3,s({},r)):(0,qa.jsx)(J5,s({},r))});r3.propTypes=De;var n3=r3;var h3=require("react");var bs=require("react"),l3=require("@mui/material"),Qa=v(require("@mui/material/MenuItem")),s3=v(require("@mui/material/Select")),a3=v(require("classnames")),c3=v(require("lodash/isNil")),p3=v(require("lodash/omit"));var i3=require("tss-react/mui"),F7=(0,i3.makeStyles)()(()=>({select:{minWidth:60},selectCell:{display:"flex",justifyContent:"flex-start",alignItems:"center",height:"100%",width:"100%"},selectViewCell:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},menuItem:{minHeight:33}})),Cs=F7;var ir=require("react/jsx-runtime"),V7=(0,bs.memo)(function(p){var c=p,{data:t,dataKey:r,column:o,onChange:n,tooltipDetail:i,isDisabled:l}=c,a=_(c,["data","dataKey","column","onChange","tooltipDetail","isDisabled"]);let{classes:m}=Cs(),{listData:f=[],options:d,renderLabelCustom:u,cellProps:h}=o,g=d||f,C=I=>{n(I)},x=(0,c3.default)(fe(t,r))?Ol:fe(t,r),b=(0,bs.useMemo)(()=>{let I=g.find(({value:D})=>D===x);return(I==null?void 0:I.name)||(I==null?void 0:I.label)||F.t("common.select")},[x]);return(0,ir.jsx)("div",{className:m.selectCell,children:(0,ir.jsxs)(s3.default,y(s({disableUnderline:!0,value:x,disabled:l,onChange:I=>{C(I.target.value)},renderValue:()=>{let I=b;return typeof u=="function"&&(I=u(I,t)),i?(0,ir.jsx)(l3.Tooltip,{title:i,placement:"left",arrow:!0,children:(0,ir.jsx)("span",{children:I})}):I},variant:"standard",sx:s(s({maxWidth:"100%"},x===Ol&&{color:"grey.500"}),h==null?void 0:h.style)},(0,p3.default)(a,ut)),{children:[(0,ir.jsx)(Qa.default,{value:Ol,disabled:!0,children:F.t("common.select")}),g.map((I,D)=>(0,ir.jsx)(Qa.default,{style:I.style,className:(0,a3.default)(m.menuItem,I.className),disabled:I.disabled,value:I.value,children:(I==null?void 0:I.name)||(I==null?void 0:I.label)},D))]}))})}),d3=V7;var m3=require("react"),u3=require("@mui/material");var Ss=require("react/jsx-runtime"),z7=(0,m3.memo)(function({data:t="",column:r,tooltipDetail:o}){let n=Gl(t,r),{classes:i}=Cs();return o?(0,Ss.jsx)(u3.Tooltip,{title:o,placement:"left",arrow:!0,children:(0,Ss.jsx)("div",{className:i.selectViewCell,children:n})}):(0,Ss.jsx)("div",{className:i.selectViewCell,children:n})}),f3=z7;var Ja=require("react/jsx-runtime"),g3=(0,h3.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,Ja.jsx)(f3,s({},r)):(0,Ja.jsx)(d3,s({},r))});g3.propTypes=De;var y3=g3;var k3=require("react");var b3=require("react"),vs=require("@mui/material"),S3=v(require("classnames")),ec=v(require("lodash/get"));var x3=require("tss-react/mui"),H7=(0,x3.makeStyles)()(()=>({disabled:{opacity:.5}})),C3=H7;var lr=require("react/jsx-runtime"),U7=({data:e,dataKey:t,column:r,onChange:o,isDisabled:n})=>{let[i,l]=(0,b3.useState)(null),{classes:a}=C3(),p=x=>{n||l(x.currentTarget)},c=()=>{l(null)},{options:m,listStatus:f=[]}=r,d=m||f,u=d.find(x=>x.status===(0,ec.default)(e,t)),h=x=>{o(x)},g=x=>{h(x),c()},C=d.filter(x=>{var b;return(b=x.showMenu)==null?void 0:b.includes((0,ec.default)(e,t))});return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)("div",{style:u==null?void 0:u.styles,onClick:p,className:(0,S3.default)({[a.disabled]:n}),children:(u==null?void 0:u.value)||(u==null?void 0:u.label)}),C.length>0&&(0,lr.jsx)(vs.Menu,{anchorEl:i,keepMounted:!0,open:!!i,onClose:c,children:C.map((x,b)=>(0,lr.jsx)(vs.MenuItem,{onClick:()=>g(x.status),children:x.value||x.label},b))})]})},v3=U7;var w3=require("react");var T3=require("react/jsx-runtime"),W7=(0,w3.memo)(function({data:t="",column:r}){return(0,T3.jsx)("div",{children:$l(t,r)})}),I3=W7;var tc=require("react/jsx-runtime"),R3=(0,k3.memo)(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,tc.jsx)(I3,s({},r)):(0,tc.jsx)(v3,s({},r))});R3.propTypes=De;var E3=R3;var D3=v(require("react"));var A3=require("react/jsx-runtime"),G7="<mark>",$7="</mark>",j7=({data:e=""})=>{let{classes:t}=hs(),r=[...new Set(e==null?void 0:e.toString().match(/<[^>]*?>/g))],o=e==null?void 0:e.toString().replace(/(<([^>]+)>)/gi,""),n=(r==null?void 0:r.length)===2&&(r==null?void 0:r[0])===G7&&(r==null?void 0:r[1])===$7?e==null?void 0:e.toString():o;return(0,A3.jsx)("div",{className:t.stringCell,title:o,dangerouslySetInnerHTML:{__html:n}})},M3=j7;var oc=require("react/jsx-runtime"),L3=D3.default.memo(function(o){var n=o,{isReadOnly:t}=n,r=_(n,["isReadOnly"]);return t?(0,oc.jsx)(M3,s({},r)):(0,oc.jsx)(gs,s({},r))});L3.propTypes=De;var N3=L3;var P3=v(require("lodash/get")),ws=v(require("prop-types"));var _3=require("react/jsx-runtime");function B3({data:e,dataKey:t,column:r}){let o=(0,P3.default)(e,t,[]),{switchKey:n}=r,i=o==null?void 0:o.findIndex(a=>a.key===n),l=i!==void 0?`${t}[${i}]`:t;return(0,_3.jsx)(cs,{data:e,dataKey:l,column:r})}B3.propTypes={data:ws.default.object.isRequired,column:ws.default.object.isRequired,dataKey:ws.default.string.isRequired};var O3=B3;var Is=require("react"),nc=v(require("classnames")),G3=v(require("lodash/first")),$3=v(require("lodash/get"));var rc=require("react"),z3=v(require("classnames"));var F3=require("tss-react/mui"),Y7=(0,F3.makeStyles)()(e=>({container:{position:"relative",overflow:"hidden"},img:{height:"100%",width:"auto",opacity:1,transition:"opacity ease 250ms"},loader:{position:"absolute",top:0,bottom:0,left:0,height:30,width:30,right:0,"& img":{opacity:0}},error:{"& img":{opacity:0}},errorMessage:{position:"absolute",top:5,bottom:5,left:5,right:5,display:"flex",flexDirection:"column","& .icon":{color:`${e.palette.warning.main} !important`,margin:"auto"},"& .label":{fontSize:10,textAlign:"center",color:"#9b9b9b"}}})),V3=Y7;var sr=require("react/jsx-runtime"),K7=e=>{let{className:t,src:r,alt:o="",hidden:n=!1,onClick:i,onUnload:l}=e,{classes:a}=V3(),[p,c]=(0,rc.useState)(!0),[m,f]=(0,rc.useState)(!1),d=u=>{u.key==="Enter"&&i&&i()};return(0,sr.jsxs)("div",{className:(0,z3.default)(a.container,t,{[a.loading]:p,[a.error]:m}),role:"button",tabIndex:0,onClick:i,onKeyPress:d,children:[(!n||!p)&&(0,sr.jsx)("img",{src:r,alt:o,onUnload:l,onLoad:()=>c(!1),onError:()=>{c(!1),f(!0)},className:a.img}),!n&&p&&(0,sr.jsx)(zt,{className:a.loader,size:20}),m&&(0,sr.jsxs)("div",{className:a.errorMessage,children:[(0,sr.jsx)(ze,{name:"icon-close1",className:"icon",size:20}),(0,sr.jsx)("span",{className:"label",children:F.t("attachments.error")})]})]})},H3=K7;var U3=require("tss-react/mui"),Z7=(0,U3.makeStyles)()(e=>({thumbnailCell:{position:"absolute",top:2,left:2},thumbnail:{height:28,width:20,display:"flex",justifyContent:"center",alignItems:"center"},opacity:{"&:hover":{opacity:.77,backgroundColor:e.palette.text.primary}},viewIcon:{color:e.palette.text.white,position:"absolute",top:6,left:2}})),W3=Z7;var ar=require("react/jsx-runtime"),X7=(0,Is.memo)(function({isReadOnly:t,data:r=[],dataKey:o}){let{component:{Window:n}}=so(),{classes:i}=W3(),[l,a]=(0,Is.useState)(!1),p=es();if(typeof window=="undefined"){let h={screenX:0,innerWidth:1280}}let c=t?r:(0,$3.default)(r,o),m=Array.isArray(c)?c:[c],f=(0,G3.default)(m);if(!f)return(0,ar.jsx)("div",{className:i.thumbnailCell});let d=F2(f.thumbnail),u=d?URL.createObjectURL(f.thumbnail):f.thumbnail;return(0,ar.jsxs)("div",{className:i.thumbnailCell,onClick:()=>p.open({documents:m},!0),onMouseEnter:a.bind(null,!0),onMouseLeave:a.bind(null,!1),children:[(0,ar.jsxs)("div",{className:l&&i.opacity,children:[(0,ar.jsx)(H3,{className:(0,nc.default)(i.thumbnail,l&&i.opacity),src:u,onUnload:()=>d&&URL.revokeObjectURL(u)}),l&&(0,ar.jsx)(ze,{name:"icon-view1",size:16,className:(0,nc.default)(i.viewIcon)})]}),p.props.open&&(0,ar.jsx)(n,s({path:"/overview",window_id:"overview",features:`width=${window.innerWidth/2}, left=${window.screenX+window.innerWidth/2}`},p.props))]})}),j3=X7;var Z3=v(require("@mui/material/Tooltip")),ic=v(require("i18next")),X3=v(require("lodash/get")),q3=v(require("lodash/head"));var Y3=require("tss-react/mui"),q7=(0,Y3.makeStyles)()(e=>({count:{color:e.palette.primary.main,padding:"0 6px"}})),K3=q7;var cr=require("react/jsx-runtime");function Q7({isReadOnly:e,data:t,dataKey:r}){var a;let{classes:o}=K3(),{count:n=0,array:i=[]}=e?t:(0,X3.default)(t,r,{});if(n===0)return(0,cr.jsx)("div",{});if(n===1)return(0,cr.jsx)("div",{children:(a=(0,q3.default)(i))==null?void 0:a.id});function l(){return i.map((p,c)=>(0,cr.jsx)("li",{children:p.id},c))}return(0,cr.jsx)(Z3.default,{title:l(),children:(0,cr.jsxs)("div",{children:[ic.default.t("dashboard.ba.linkTo"),(0,cr.jsx)("span",{className:o.count,children:n}),ic.default.t("dashboard.ba.wallets")]})})}var Q3=Q7;var Oe=require("react/jsx-runtime"),J7=function(D){var S=D,{typeCell:t=B.STRING,subtype:r,data:o={},dataKey:n,columnIndex:i,spaceBetween:l,rowIndex:a,onKeyDown:p=()=>{},onBlur:c=()=>{},onFocus:m=()=>{},onClick:f=()=>{},onDoubleClick:d=()=>{},onMouseEnter:u=()=>{},onMouseLeave:h=()=>{},vtContext:g={config:{},send:()=>{}},column:C={},isFocused:x,rowKey:b}=S,I=_(S,["typeCell","subtype","data","dataKey","columnIndex","spaceBetween","rowIndex","onKeyDown","onBlur","onFocus","onClick","onDoubleClick","onMouseEnter","onMouseLeave","vtContext","column","isFocused","rowKey"]);let{send:T,config:k={},state:w,context:A={}}=g,{selectableRowKey:O="id"}=k,{selectedRows:E=[]}=A,L=o[O],{onChange:V,onKeyDown:H,onClick:M,onDoubleClick:z,onBlur:$,onFocus:K,onMouseEnter:X,onMouseLeave:Z,renderComponent:R,editable:N=!0,isDisabled:U}=C,re={dataKey:n,keyId:L,row:o,columnIndex:i,rowIndex:a,column:C},de=ue=>{M&&M(ue,a,o),f(ue,a,i,o)},Re=ue=>{z&&z(ue,a,o),d(ue,a,i,o)},W=ue=>{H&&H(ue,a,o),p(ue)},Y=ue=>{$&&$(ue,a,o),c()},q=ue=>{K&&K(ue,a,o),m()},ge=ue=>{X&&X(ue,a,o),u(ue)},ne=ue=>{Z&&Z(ue,a,o),h(ue)},ce=ue=>{V&&V({dataKey:n,value:ue,data:o,rowIndex:a,rowKey:b}),T("input",{key:n,selectableRowKey:O,keyId:o[O],data:ue})},Ve=typeof U=="function"?U(o,re):U,Ne=w2(w,E.includes(o[O]),N,o.rowType,o.isReadOnly),me=s({data:Ne?(0,lc.default)(o,n):o,isDisabled:Ve,keyId:L,dataKey:n,columnIndex:i,onChange:ce,onKeyDown:W,onBlur:Y,onFocus:q,onMouseEnter:ge,onMouseLeave:ne,column:C,isReadOnly:Ne,vtContext:g},I);function gt(){switch(t){case B.ATTACHMENT:return(0,Oe.jsx)(Eh,y(s({subtype:r,cell:re},me),{data:(0,lc.default)(o,n)}));case B.THUMBNAIL:return(0,Oe.jsx)(j3,s({},me));case B.CHECKBOX:return(0,Oe.jsx)(x5,s({},me));case B.DATE:return(0,Oe.jsx)(_5,s({},me));case B.SELECT:return(0,Oe.jsx)(y3,s({},me));case B.AMOUNT:return(0,Oe.jsx)(vh,y(s({},me),{isFocused:x,data:o}));case B.NUMBER:return(0,Oe.jsx)(n3,s({},me));case B.BADGE_STATUS:return(0,Oe.jsx)(cs,y(s({},me),{data:o}));case B.SWITCH_BADGE_STATUS:return(0,Oe.jsx)(O3,y(s({},me),{data:o}));case B.STATUS:return(0,Oe.jsx)(E3,s({},me));case B.BUTTON:return(0,Oe.jsx)(s5,y(s({},me),{data:o}));case B.MULTIPLE_INPUTS:return(0,Oe.jsx)(K5,s({},me));case B.WALLET:return(0,Oe.jsx)(Q3,s({},me));case B.CHIP:return(0,Oe.jsx)(M5,s({},me));case B.AUTOCOMPLETE:return(o==null?void 0:o.rowType)===te.GROUP_BUTTON?(0,Oe.jsx)("div",{className:styles.groupRow,children:i===0?o.name:null}):(0,Oe.jsx)(Fh,y(s({},me),{data:o}));case B.COMPONENT:return R(y(s({},me),{data:o,rowIndex:a}));case B.EMPTY:return null;default:return(0,Oe.jsx)(N3,s({},me))}}return[B.CHECKBOX].includes(t)?gt():(0,Oe.jsx)("div",{style:{margin:`0 ${l/2}px`,height:"100%"},onClick:de,onDoubleClick:Re,children:gt()})},Ts=J7;var Wt={LEFT:"left",CENTER:"center",RIGHT:"right",BOTTOM:"bottom",TOP:"top"};var pr=(e,t)=>[Wt.LEFT,Wt.CENTER,Wt.RIGHT].includes(t)?t:[B.CHECKBOX,B.ATTACHMENT].includes(e)?Wt.CENTER:[B.AMOUNT,B.NUMBER].includes(e)?Wt.RIGHT:Wt.LEFT;var J3=v(require("@mui/material/Tooltip")),eg=require("tss-react/mui"),og=require("react/jsx-runtime"),eC=({children:e,title:t,classes:r})=>(0,og.jsx)(J3.default,{title:t,placement:"top",arrow:!0,classes:{tooltip:t!==""?r.tooltip:r.tooltipDisplayNone,arrow:r.arrow},children:e}),tC=e=>({tooltip:{backgroundColor:e.palette.warning.main,color:"white",padding:6,borderRadius:5,border:"none",fontSize:12},arrow:{color:e.palette.warning.main},tooltipDisplayNone:{display:"none"}}),tg=(0,eg.withStyles)(eC,tC);var rg=require("tss-react/mui"),oC=(0,rg.makeStyles)()(e=>({BodyGrid:{width:"100%","&_withBorders":{border:"1px solid black"}},defaultStyle:{outline:"none"},even:{backgroundColor:e.palette.grey[100]},odd:{backgroundColor:"#ffffff"},cell:{fontSize:12,fontStretch:"normal",fontStyle:"normal",lineHeight:"32px",letterSpacing:"normal",color:"#000000",overflow:"hidden"},focused:{boxShadow:`inset 0px 0px 0px 1px ${e.palette.primary.main} !important`},cbCell:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px"},expandCell:{display:"flex",justifyContent:"flex-start",width:100,"&:hover":{cursor:"pointer",opacity:.75}},expandIcon:{paddingLeft:16,paddingRight:8,display:"flex",alignItems:"center"},lockRow:{backgroundColor:"#ebebeb",display:"flex",alignItems:"center",color:"#9b9b9b"},thumbnail:{lineHeight:100,display:"flex"},pointer:{cursor:"pointer","&:hover > *":{textDecoration:"underline"}},onError:{backgroundColor:`${e.palette.warning.light} !important`},withGrid:{borderBottom:`1px solid ${e.palette.grey[200]}`,borderRight:`1px solid ${e.palette.grey[200]}`},groupRow:{backgroundColor:e.palette.primary.main,color:"white"},alignRight:{textAlign:"right","& input":{textAlign:"right"}},alignLeft:{textAlign:"left","& input":{textAlign:"left"}},alignCenter:{textAlign:"center","& input":{textAlign:"center"}},align:{display:"flex","& > div":{width:"100%"}},alignVerticalCenter:{alignItems:"center"},alignVerticalBottom:{alignItems:"flex-end"},alignVerticalTop:{alignItems:"flexStart"},iconButton:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{cursor:"pointer"}}})),ng=oC;var _e=require("react/jsx-runtime"),rC=({columnIndex:e,keyName:t,parent:r,rowIndex:o,originalIndex:n,style:i,displayableRows:l=[],hasCheckBoxHidden:a=!1,tableKeyName:p,onCellFocus:c,onCellBlur:m,onClick:f,onDoubleClick:d,focusedCell:u,onKeyDown:h,isSecuredRow:g,errors:C,row:x={},isSelected:b,bodyCellStylesProp:I,onDeleteRow:D,subLvl:S,rowData:T})=>{var Cr,Nt;let{classes:k}=ng(),w="checkboxColumn",A="levelColumn",O=(0,ot.useContext)(er),{config:{columns:E,selectableRowKey:L="id",selectRows:V,withBorders:H=!1,spaceBetween:M=2,selectableOnlyOneRow:z=!1,groupSelection:$=!1,subDataKey:K},send:X,state:Z,can:R}=ae(),{dbClick:N,simpleClick:U,key:re,typeCell:de,withLockIcon:Re=!1,showLockInfo:W=!1,alignText:Y,alignVertical:q,hasContextMenu:ge,listActionContextMenu:ne,contextMenuOnlySelectedRows:ce=!1,tooltipError:Ve=()=>!1,tooltipDetail:Ne=()=>!1}=E[e]||{},me=(0,ot.useRef)(),{rowType:gt}=x,ue=(u==null?void 0:u[0])===o&&(u==null?void 0:u[2])===re,gr=(0,ot.useMemo)(()=>Ve(x),[x]),$e=(C||gr)&&[Xe.EDIT,Xe.PERMANENT_EDIT,Xe.ADD].includes(Z);(0,ot.useEffect)(()=>{var Te;ue&&me.current&&((Te=me.current.querySelector("input, button"))==null||Te.focus())},[ue]),(0,ot.useEffect)(()=>{var Te;ue&&me.current&&((Te=me.current.querySelector("input, button"))==null||Te.focus())},[$e]);let $t=(0,ot.useMemo)(()=>I==null?void 0:I({rowData:T,key:re,rowIndex:o,columnIndex:e}),[x,e,o]),jt=(0,mi.default)(k.cell,{[k.lockRow]:g}),yt=(0,ot.useCallback)(({key:Te,rowIndex:xt,style:br})=>{let{rowType:rt=te.VIEW}=x;function go(){return a===!0||a instanceof Function&&a({rowIndex:xt,row:x})?(0,_e.jsx)("div",{}):(0,_e.jsx)(co,{id:`${xt}_selectable_${p}`,name:`${xt}_selectable_${p}`,checked:b,disabled:!R("selectItem")||!R("unselectItem")||g,onClick:Lo=>{X(Lo.target.checked?"selectItem":"unselectItem",{itemKey:x[L],selectableRowKey:L,groupSelection:$,onlyOneRow:z,shiftKey:Lo.shiftKey,displayableRows:l})}})}return(0,_e.jsx)("div",{className:(0,mi.default)(jt,k.cbCell,{[k.withGrid]:H}),"data-role":"cell",style:s(s({},br),x==null?void 0:x.style),children:rt!==te.NEW?go():(0,_e.jsx)(ze,{name:"icon-trash",color:"red",size:"18px",onClick:D})},Te)},[V,L,b,R,x,H]);if(re===w)return yt({key:t,parent:r,rowIndex:o,style:i});if(re===A){let Te=!!((Cr=T==null?void 0:T[K])!=null&&Cr.length);return(0,_e.jsx)("div",{className:(0,mi.default)(jt,{[k.expandCell]:Te,[k.withGrid]:H}),"data-role":"cell",style:s(s({},i),x==null?void 0:x.style),children:Te&&(0,_e.jsx)("div",{style:{marginLeft:S*12},className:k.expandIcon,children:(0,_e.jsx)(Ho,{isExpanded:T==null?void 0:T.isCollapsed,onToggle:()=>X(T!=null&&T.isCollapsed?"unCollapse":"collapse",{root:T.root,subDataKey:K})})})},t)}let Ao=gt===te.ADD_BUTTON,Un=!ce||b,He=(0,ot.useMemo)(()=>Ne(x),[x]);function yr(Te){return(0,_e.jsxs)(_e.Fragment,{children:[Re&&g&&(0,_e.jsx)(ze,{name:"icon-lock1"}),(!g||W)&&Te]})}let Do=({displayableRow:Te,typeCell:xt,keyColumn:br,columnIndex:rt,rowIndex:go,originalIndex:Lo,isFocused:No})=>{let _r=G=>typeof xt===Jo.FUNCTION?xt(G):xt,Wn=G=>{h&&h(G,go,rt)},{cellProps:Po={}}=E[rt]||{};return He&&(Po.title=""),(0,_e.jsx)("span",{ref:me,children:(0,_e.jsx)(Ts,s({data:Te,dataKey:br,columnIndex:rt,typeCell:_r(Te),spaceBetween:M,onBlur:()=>m(go,rt),onFocus:()=>c(go,rt),onKeyDown:Wn,onClick:f,onDoubleClick:d,rowIndex:Lo,column:E[rt],vtContext:O,isFocused:No,tooltipDetail:He},Po))})},Lt=pr(de,Y),je=(0,_e.jsx)("div",{className:(0,mi.default)(jt,{[k.onError]:$e&&!Ao,[k.withGrid]:H,[k.align]:[Wt.CENTER,Wt.BOTTOM,Wt.TOP].includes(q),[k[`align${(0,sc.default)(Lt)}`]]:Lt,[k[`alignVertical${(0,sc.default)(q)}`]]:q,[k.pointer]:!!U,[k.focused]:ue,[k.thumbnail]:[B.THUMBNAIL].includes(de)}),"data-role":"cell","data-column-key":re,style:s(s(s({},i),(Nt=l[o])==null?void 0:Nt.style),$t==null?void 0:$t.style),onDoubleClick:N,onClick:U==null?void 0:U.bind(null,T),children:ge?(0,_e.jsx)(ss,{listAction:ne,canClick:Un,data:T,children:yr(Do({displayableRow:T,typeCell:de,keyColumn:re,columnIndex:e,rowIndex:o,originalIndex:n,isFocused:ue}))}):yr(Do({displayableRow:T,typeCell:de,keyColumn:re,columnIndex:e,originalIndex:n,rowIndex:o,isFocused:ue}))},t);function xr(){return $e?(0,_e.jsx)(tg,{title:C||gr,children:je}):(0,_e.jsx)(ig.Tooltip,{title:He&&de!==B.SELECT?He:void 0,placement:"left",arrow:!0,children:je})}return xr()},lg=(0,ot.memo)(rC);var ac=require("react/jsx-runtime"),nC=e=>{var Re;let de=e,{columns:t,columnWidth:r,displayableRows:o,fixedColumnCount:n,hasCheckBoxHidden:i,rowIndex:l,originalIndex:a,row:p={},scrollLeft:c,selectableRowKey:m,style:f,classes:d,isVisible:u,alwaysInEdition:h=!1,bodyStylesProp:g,onRowContextMenu:C,onRowClick:x,isSubLevels:b,handleOpenSubData:I,subLvl:D}=de,S=_(de,["columns","columnWidth","displayableRows","fixedColumnCount","hasCheckBoxHidden","rowIndex","originalIndex","row","scrollLeft","selectableRowKey","style","classes","isVisible","alwaysInEdition","bodyStylesProp","onRowContextMenu","onRowClick","isSubLevels","handleOpenSubData","subLvl"]),{send:T,config:{isHighlightOnHover:k=!1}}=ae(),w=(0,sg.useTheme)(),[A,O]=(0,ui.useState)(null),E=or(),V=kn(E,Tn).includes(p[m]),{isSecuredRow:H}=ch(p),M=(0,ui.useMemo)(()=>{var W;return(W=g==null?void 0:g.row)==null?void 0:W.call(g,{rowData:e.rowData,rowIndex:l})},[p,l]),{[m]:z}=p,$=((Re=p.parentRowIndex)!=null?Re:l)%2,K=(0,ui.useMemo)(()=>{var W,Y,q;return(q=(Y=(W=E.current)==null?void 0:W.validation)==null?void 0:Y.validate)==null?void 0:q.call(Y,p)},[p]);function X(){var W,Y;(Y=(W=E==null?void 0:E.current)==null?void 0:W.validation)==null||Y.removeError(p[m]),T("delete",{selectableRowKey:m,keyId:p[m]})}function Z(W){switch(W.type){case"click":x==null||x(W,R(W));break;case"contextmenu":C==null||C(W,R(W));break}}let R=W=>{var Y,q;return{columnKey:(q=(Y=W.target.closest("[data-role=cell]"))==null?void 0:Y.dataset)==null?void 0:q.columnKey,keyId:z,row:p}},N=q=>{var ge=q,{key:W}=ge,Y=_(ge,["key"]);let{columnIndex:ne}=Y,{key:ce}=t[ne];return(0,ac.jsx)(lg,s(s({displayableRows:o,keyName:`${z}-${ce}`,hasCheckBoxHidden:i,fixedColumnCount:n,isSecuredRow:H,row:p,isSelected:V,bodyCellStylesProp:g==null?void 0:g.cell,errors:K[ce],onDeleteRow:X,isSubLevels:b,subLvl:D},Y),S),`${z}-${ne}-${ce}`)},U=()=>{let W=0;return t.map((Y,q)=>{let ge=q<n,ne=N(y(s({rowIndex:l,originalIndex:a,columnIndex:q},Y),{style:s({zIndex:ge?1:0,backgroundColor:"inherit",left:ge?W:0,position:ge?"sticky":"relative",width:r({index:q})},k&&h&&(Y==null?void 0:Y.editable)!==!1&&(Y==null?void 0:Y.key)!=="checkboxColumn"&&l!==null&&A===l&&{boxShadow:`inset 0px 0px 0px 1px ${w.palette.grey[700]}`})}));return ge&&(W+=r({index:q})),ne})},re=W=>{k&&O(W)};return(0,ac.jsx)("div",{"data-role":"row","data-key":z,onContextMenu:Z,onClick:Z,className:(0,ag.default)("bodyRow",M==null?void 0:M.classes,$?"odd":"even",{selectedRow:V}),onMouseEnter:()=>re(l),onMouseLeave:()=>re(null),style:y(s({},M==null?void 0:M.style),{top:f.top}),children:u&&U()},l)},cg=nC;var pg=require("tss-react/mui"),iC=(0,pg.makeStyles)()((e,{rowHeight:t})=>({gridContainer:{background:"#fff"},BodyGrid:{width:"100%",overflow:"auto","&_withBorders":{border:"1px solid black"},"& .bodyRow":{display:"flex",height:t||32,position:"absolute",width:"100%"},"& .even":{backgroundColor:e.palette.grey[100],"&$selectedRow":{backgroundColor:"#d3eded"}},"& .odd":{backgroundColor:"#ffffff"},"& .selectedRow":{backgroundColor:e.palette.primary.light}},defaultStyle:{outline:"none"}})),dg=iC;var ug=require("react");function lC(e,t){return Math.ceil(e/t)}function mg({scrollTop:e=0,height:t},r,o){let n=lC(t,r),i=Math.floor(e/r),l=i+n,a=i-o,p=l+o;return{firstIndex:a,firstVisibleIndex:i,lastVisibleIndex:l,lastIndex:p}}var cc=require("react/jsx-runtime"),sC=(0,ug.forwardRef)(function(t,r){let{className:o,contentWidth:n,estimatedRowSize:i=32,height:l,onScroll:a=()=>{},overscanRowCount:p=5,rowCount:c,rowRenderer:m=()=>null,scrollTop:f,displayableRows:d,subDataKey:u,isSubLevels:h=!1}=t,{firstVisibleIndex:g,lastVisibleIndex:C}=mg({height:l,scrollTop:f},i,p),x=(b,I,D,S)=>{var w,A,O;let T=[],k=S;for(let E=0;E<b.length;E++){let L={top:I*i},V=k.concat([E]),H=b[E];h&&(H.root=V);let M=m({rowIndex:E,originalIndex:H==null?void 0:H._originIndex,style:L,isVisible:I+5>=g&&I-5<=C,subLvl:D,rowData:H});if(M&&(T.push(M),I++),(A=(w=b[E])==null?void 0:w[u])!=null&&A.length&&b[E].isCollapsed){let z=x((O=b[E])==null?void 0:O[u],I,D+1,V);T=T.concat(z),I=I+z.length}k=S}return T};return(0,cc.jsx)("div",{ref:r,className:o,"data-role":"body",onScroll:b=>a(b.target),scrollable:"true",children:(0,cc.jsx)("div",{style:{width:n,height:c*i,position:"relative",minWidth:"100%",transform:"translateZ(0)"},children:x(d,0,0,[])})})}),fg=sC;var ks=require("react/jsx-runtime"),yg=require("react"),aC=function(t){let O=t,{displayableRows:r,domRef:o,scrollLeft:n,totalWidth:i,onScroll:l,setWidth:a,onRowContextMenu:p,isSubLevels:c}=O,m=_(O,["displayableRows","domRef","scrollLeft","totalWidth","onScroll","setWidth","onRowContextMenu","isSubLevels"]),[f,d]=(0,po.useState)(),u=(0,po.useRef)(),{config:{alwaysInEdition:h=!1,columns:g,withBorders:C=!1,selectableRowKey:x,hasSecuredRows:b=!1,styles:I,subDataKey:D}}=ae();(0,po.useEffect)(()=>{let E=new J2;return E.observe(u.current,L=>{var V,H;d(Math.ceil((H=(V=L.borderBoxSize)==null?void 0:V[0])==null?void 0:H.blockSize)),a(L.contentRect.width)}),()=>{E.disconnect()}},[]);let S=(E=[],L=0)=>{var H;let V=L+E.length;for(let M of E)M.isCollapsed&&((H=M[D])!=null&&H.length)&&(V+=S(M[D],L));return V},T=()=>{let E=S(r);return Math.max(E,r.length)},{classes:k}=dg({rowHeight:t.rowHeight}),w=(0,po.useMemo)(()=>{var E,L;return(L=(E=I==null?void 0:I.body)==null?void 0:E.container)==null?void 0:L.call(E,{rowCount:r.length})},[r.length]),A=(0,po.useCallback)(E=>{let L=E==null?void 0:E.rowData;return L?L.rowType===te.GROUP_BUTTON?(0,ks.jsx)(rh,s(y(s({},E),{row:L}),m),`group_${L.groupId}`):L.rowType===te.ADD_BUTTON?(0,ks.jsx)(sh,s(y(s({},E),{row:L}),m),`add_${L.groupId}`):(0,yg.createElement)(cg,s(y(s({},E),{key:E.rowIndex+(c?Zi():""),row:L,scrollLeft:n,columns:g,selectableRowKey:x,displayableRows:r,alwaysInEdition:h,bodyStylesProp:I==null?void 0:I.body,onRowContextMenu:p,isSubLevels:c,rowIndex:E.rowIndex,rowData:E.rowData}),m)):null},[r,n,g,b,h,m.focusedCell,m.columnWidth]);return(0,ks.jsx)(fg,s({ref:u,className:(0,hg.default)("vtBody",k.BodyGrid,k.defaultStyle,w==null?void 0:w.classes,{[k.BodyGrid_withBorders]:C}),rowCount:c?T():r.length,onScroll:l,contentWidth:i,height:f,rowRenderer:A,scrollLeft:n,estimatedRowSize:t.rowHeight,displayableRows:r,isSubLevels:c,subDataKey:D},m))},gg=aC;var Nr=require("react"),dc=v(require("classnames"));var bg=require("react"),Sg=v(require("@mui/material/Tooltip")),pc=v(require("classnames")),vg=v(require("lodash/upperFirst"));var xg=require("tss-react/mui"),cC=(0,xg.makeStyles)()(()=>({cell:{display:"inline-block",fontSize:12,fontStretch:"normal",fontStyle:"normal",lineHeight:"32px",letterSpacing:"normal",overflow:"hidden",verticalAlign:"top"},alignRight:{textAlign:"right","& input":{textAlign:"right"}},alignLeft:{textAlign:"left","& input":{textAlign:"left"}},alignCenter:{textAlign:"center","& input":{textAlign:"center"}},align:{display:"flex","& > div":{width:"100%"}},alignVerticalCenter:{alignItems:"center"},alignVerticalBottom:{alignItems:"flex-end"},alignVerticalTop:{alignItems:"flex-start"},footerCell:{paddingLeft:8,paddingRight:10,"&_noPadding":{padding:0}},footer:{fontWeight:"bold","&_fakeCheckboxCell":{width:"32px"}}})),Cg=cC;var Rs=require("react/jsx-runtime"),pC=(e,t)=>{let{footerValue:r}=e;return r&&typeof r=="function"?r(t):jl(e,t)},dC=({column:e,style:t,displayableRows:r,classes:o,columnIndex:n,footerCellStylesProp:i})=>{let{classes:l}=Cg(),{tooltipFooter:a,typeCell:p,footerStyle:c,key:m,alignText:f,noFooter:d}=e,u=pr(p,f),h=(0,bg.useMemo)(()=>i==null?void 0:i({key:m,columnIndex:n}),[m,n]),g=()=>(0,Rs.jsx)("div",{className:(0,pc.default)(h==null?void 0:h.classes,l.cell,l.footer,o,{[l[`align${(0,vg.default)(u)}`]]:u}),"data-role":"cell","data-column-key":m,style:s(s(s({},c),t),h==null?void 0:h.style),children:(0,Rs.jsx)("div",{className:(0,pc.default)(l.footerCell),children:pC(e,r)})},m);return d?null:a?(0,Rs.jsx)(Sg.default,{title:a,placement:"top",arrow:!0,children:g()}):g()},wg=dC;var Ig=require("tss-react/mui"),mC=(0,Ig.makeStyles)()((e,{backgroundColor:t,color:r})=>({gridContainer:{flexShrink:0,backgroundColor:"#fff",overflow:"hidden"},FooterGrid:{position:"relative",width:"100%",zIndex:0,whiteSpace:"nowrap",backgroundColor:"inherit","&_withBorders":{borderRight:"1px solid black",borderLeft:"1px solid black",borderTop:"1px solid black"}},defaultStyle:{outline:"none",backgroundColor:t!=null?t:e.palette.primary.light,color:r!=null?r:"#000000"},fixed:{backgroundColor:"inherit",height:"100%"}})),Tg=mC;var On=require("react/jsx-runtime"),uC=function(i){var l=i,{modeEdit:t,displayableRows:r,domRef:o}=l,n=_(l,["modeEdit","displayableRows","domRef"]);let{config:{columns:a,footerStyle:p={},styles:c}}=ae(),m=(0,Nr.useRef)(),f=(0,Nr.useMemo)(()=>{let g=[];for(let C=0;C<a.length;C++){let x=n.columnWidth({index:C}),b=a[C],{colspan:I}=b.footerProps||{};if(I&&typeof I=="number"&&I>0&&C+I<=a.length){for(let D=1;D<I;D++)x+=n.columnWidth({index:C+D});g.push({column:b,width:x,columnIndex:C}),C+=I-1}else g.push({column:b,width:x,columnIndex:C})}return g},[a,n.columnWidth]),d=(0,Nr.useMemo)(()=>{var g,C;return(C=(g=c==null?void 0:c.footer)==null?void 0:g.container)==null?void 0:C.call(g)},[]),{classes:u}=Tg(p),h=(0,Nr.useCallback)(({column:g,key:C,style:x,classes:b,columnIndex:I})=>{var D;return(0,On.jsx)(wg,{column:g,style:x,displayableRows:r,columnIndex:I,classes:b,footerCellStylesProp:(D=c==null?void 0:c.footer)==null?void 0:D.cell},C)},[a,r]);return(0,On.jsxs)("div",{className:(0,dc.default)(u.gridContainer,u.defaultStyle,d==null?void 0:d.classes),ref:o,"data-role":"footer",style:d==null?void 0:d.style,children:[t&&(0,On.jsx)("div",{className:u.footer_fakeCheckboxCell}),(0,On.jsx)("div",{ref:m,"data-role":"row",className:(0,dc.default)("vtFooter",u.FooterGrid),style:{left:-n.scrollLeft},children:f.map(({column:g,width:C,columnIndex:x})=>h({key:g.key,column:g,columnIndex:x,style:{width:C,position:"relative",left:x<n.fixedColumnCount?n.scrollLeft:0,zIndex:x<n.fixedColumnCount?1:0},classes:x<n.fixedColumnCount?u.fixed:null}))})]})},kg=uC;var _n=require("react"),hi=v(require("classnames")),Fg=v(require("lodash/uniq"));var Lg=require("react"),Ng=require("@mui/material"),fi=v(require("classnames")),Pg=v(require("lodash/upperFirst"));var Rg=require("tss-react/mui"),fC=(0,Rg.makeStyles)()((e,{key:t,order:r})=>({button:{alignItems:"center",color:t===r?e.palette.primary.main:"inherit",display:"inline-flex",font:"inherit",padding:0,border:"none",background:"none",maxWidth:"100%"}})),Eg=fC;var Es=require("react/jsx-runtime"),hC=({children:e,column:t,order:r,onOrderChange:o})=>{let{classes:n}=Eg({key:t.key,order:r});return(0,Es.jsxs)("button",{onClick:l=>{l.preventDefault(),o(t.key)},className:n.button,children:[e,(0,Es.jsx)(ze,{name:"icon-tri",size:24,color:"inherit"})]})},Mg=hC;var Ag=require("tss-react/mui"),gC=(0,Ag.makeStyles)()(e=>({cell:{display:"inline-block",backgroundColor:"inherit",fontSize:12,fontStretch:"normal",fontStyle:"normal",lineHeight:"32px",letterSpacing:"normal",color:"#000000",overflow:"hidden",height:32,verticalAlign:"top"},hasSelectAll:{display:"inline-flex",justifyContent:"center"},thumbnail:{lineHeight:100,display:"flex"},withGrid:{borderBottom:`1px solid ${e.palette.grey[200]}`,borderRight:`1px solid ${e.palette.grey[200]}`},alignRight:{textAlign:"right","& input":{textAlign:"right"}},alignLeft:{textAlign:"left","& input":{textAlign:"left"}},alignCenter:{textAlign:"center","& input":{textAlign:"center"}},align:{display:"flex","& > div":{width:"100%"}},alignVerticalCenter:{alignItems:"center"},alignVerticalBottom:{alignItems:"flex-end"},alignVerticalTop:{alignItems:"flexStart"},headerCell:{paddingLeft:4,paddingRight:4,fontWeight:"bold",whiteSpace:"nowrap",display:"block"},headerCellContent:{display:"block",textOverflow:"ellipsis",overflow:"hidden"},headerCell_wrap:{textOverflow:"unset",overflowWrap:"break-word",whiteSpace:"normal",textAlign:"center",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},cbCell:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px"}})),Dg=gC;var mo=require("react/jsx-runtime"),yC=({allSelectableKey:e,column:t,columnIndex:r,style:o,headerCellStylesProp:n,withBorders:i,wrapHeaderText:l,order:a,orderDirection:p,onOrderChange:c,isAllCheckedColumn:m,displayableRows:f})=>{let{header:d,key:u,tooltipHeader:h,typeCell:g,headerOnClick:C=()=>{},selectAll:x=!1,variant:b="primary",changeOtherColumnOnClick:I,alignText:D,sortable:S}=t,{send:T,config:{selectableRowKey:k="id"}}=ae(),{classes:w}=Dg(),A=pr(g,D),O=(0,Lg.useMemo)(()=>n==null?void 0:n({columnIndex:r}),[r]),E=h?"":d,L=()=>(0,mo.jsxs)("div",{className:(0,fi.default)(O==null?void 0:O.classes,w.cell,{[w[`align${(0,Pg.default)(A)}`]]:A,[w.hasSelectAll]:x,[w.withGrid]:i}),style:s(s({},o),O==null?void 0:O.style),onClick:C,"data-role":"cell","data-column-key":u,children:[x&&(0,mo.jsx)("div",{className:w.cbCell,children:(0,mo.jsx)(co,{name:`${d}_${r}`,id:`${d}_${r}`,checked:m(u,f),onChange:V=>{T("selectAllColumn",{selectableRowKey:k,value:V.target.checked,keyColumn:u,changeOtherColumnOnClick:I,allSelectableKey:e})},variant:b})}),(0,mo.jsx)("div",{className:(0,fi.default)(w.headerCell),title:E,children:X0({typeCell:g,sortable:S})?(0,mo.jsx)(Mg,{column:t,order:a,orderDirection:p,onOrderChange:c,children:(0,mo.jsx)("span",{className:(0,fi.default)(w.headerCellContent,l&&w.headerCell_wrap),children:d})}):(0,mo.jsx)("span",{className:(0,fi.default)(w.headerCellContent,l&&w.headerCell_wrap),children:d})})]},u);return h?(0,mo.jsx)(Ng.Tooltip,{title:h,placement:"top",arrow:!0,children:L()}):L()},Bg=yC;var Og=require("tss-react/mui"),xC=(0,Og.makeStyles)()(e=>({gridContainer:{flexShrink:0,backgroundColor:"#fff",overflow:"hidden"},HeaderGrid:{height:32,position:"relative",width:"100%",zIndex:0,whiteSpace:"nowrap",backgroundColor:"inherit","&_withBorders":{borderRight:"1px solid black",borderLeft:"1px solid black",borderTop:"1px solid black"}},withGrid:{borderBottom:`1px solid ${e.palette.grey[200]}`,borderRight:`1px solid ${e.palette.grey[200]}`},cell:{fontSize:12,fontStretch:"normal",fontStyle:"normal",lineHeight:"32px",letterSpacing:"normal",color:"#000000",overflow:"hidden",backgroundColor:"inherit",height:32},cbCell:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"32px"},expandCell:{display:"inline-flex",alignItems:"center","&:hover":{cursor:"pointer",opacity:.75}},expandIcon:{paddingLeft:16,paddingRight:8,justifyContent:"center",display:"flex"},iconButton:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{cursor:"pointer"}}})),_g=xC;var uo=require("react/jsx-runtime"),CC=function(p){var c=p,{displayableRows:t,wrapHeaderText:r,tableKeyName:o,order:n,orderDirection:i,onOrderChange:l}=c,a=_(c,["displayableRows","wrapHeaderText","tableKeyName","order","orderDirection","onOrderChange"]);let m="checkboxColumn",f="levelColumn",{classes:d}=_g(),{config:{columns:u,hasCheckBoxHidden:h=!1,hasSecuredRows:g=!1,unlockedRowsIds:C,selectableOnlyOneRow:x=!1,selectableRowKey:b="id",withBorders:I=!1,styles:D,hideCheckbox:S=!1,subDataKey:T},send:k}=ae(),w=(K,X)=>{for(let Z of X)if(!Z[K])return!1;return!0},A=or(),O=kn(A,Tn),E=(0,_n.useMemo)(()=>{var K,X;return(X=(K=D==null?void 0:D.header)==null?void 0:K.container)==null?void 0:X.call(K)},[]),L=(0,_n.useMemo)(()=>n2({displayableRows:t,selectableRowKey:b,hasSecuredRows:g,unlockedRowsIds:C,hideCheckbox:S}),[t,b,g,C,S]),V=(0,_n.useMemo)(()=>ii(L,Sn(O,t,b)),[L,O,t,b]),H=K=>!K.some(X=>{let Z=X[T];return(Z==null?void 0:Z.length)&&(!X.isCollapsed||!H(Z))}),M=H(t),z=(0,_n.useCallback)(({key:K,rowIndex:X,style:Z})=>h?(0,uo.jsx)("div",{}):(0,uo.jsx)("div",{className:(0,hi.default)(d.cell,d.cbCell,{[d.withGrid]:I}),"data-role":"cell",style:Z,children:!x&&(0,uo.jsx)(co,{id:`${X}_selectable_header_${o}`,name:`${X}_selectable_header__${o}`,checked:V,onChange:R=>{var N;(N=A==null?void 0:A.current)==null||N.selectRows(R.target.checked?(0,Fg.default)([...O,...L]):zl(O,t,b))}})},K),[t,b,V,I]),$=K=>{var N;let{columnIndex:X}=K,{key:Z}=u[X];if(Z===m)return z(K);if(Z===f)return(0,uo.jsx)("div",{className:(0,hi.default)(d.cell,d.expandCell,{[d.withGrid]:I}),"data-role":"cell",style:K.style,children:(0,uo.jsx)("div",{className:d.expandIcon,children:(0,uo.jsx)(Ho,{isExpanded:M,onToggle:()=>k(M?"unCollapseAll":"collapseAll",{subDataKey:T})})})},K.key);let R={order:n,orderDirection:i,onOrderChange:l,isAllCheckedColumn:w,displayableRows:t,allSelectableKey:L,headerCellStylesProp:(N=D==null?void 0:D.header)==null?void 0:N.cell};return(0,uo.jsx)(Bg,s(s({column:u[X],withBorders:I},K),R))};return(0,uo.jsx)("div",{className:(0,hi.default)(E==null?void 0:E.classes,d.gridContainer),"data-role":"header",style:E==null?void 0:E.style,children:(0,uo.jsx)("div",{"data-role":"row",className:(0,hi.default)("vtHeader",d.HeaderGrid,{[d.HeaderGrid_withBorders]:I}),style:{left:-a.scrollLeft},children:u.map((K,X)=>$({key:K.key,columnIndex:X,style:{width:a.columnWidth({index:X}),position:"relative",left:X<a.fixedColumnCount?a.scrollLeft:0,zIndex:X<a.fixedColumnCount?1:0}}))})})},Vg=CC;var ki=require("react"),G4=v(require("classnames")),$4=v(require("lodash/isEmpty"));var Ge=require("react"),As=require("@mui/material"),mc=v(require("classnames")),o4=v(require("lodash/debounce")),r4=v(require("lodash/escapeRegExp")),n4=v(require("lodash/isEmpty")),i4=v(require("lodash/map"));var gi=v(require("localforage"));var bC=e=>{let{tableKeyName:t=e}=ae();function r(l){return ee(this,null,function*(){var a,p;if(t){let c=JSON.parse(yield(a=gi.default)==null?void 0:a.getItem("virtualTable"))||{};c[t]=l,yield(p=gi.default)==null?void 0:p.setItem("virtualTable",JSON.stringify(c,null,2))}})}function o(){return ee(this,null,function*(){var p,c,m;t||console.error("The `tableKeyName` key is not defined in VirtualTable config.");let l=yield(p=gi.default)==null?void 0:p.getItem("virtualTable");return l||(yield(c=gi.default)==null?void 0:c.setItem("virtualTable","{}")),((m=JSON.parse(l))==null?void 0:m[t])||{}})}function n(l,a){return ee(this,null,function*(){let p=yield o();return(p==null?void 0:p[l])||a})}function i(l,a){return ee(this,null,function*(){let p=yield o();p[l]=a,yield r(p)})}return{setItem:i,getItem:n}},dr=bC;var mr=require("@mui/material");var zg=require("tss-react/mui"),SC=(0,zg.makeStyles)()((e,{isFocusedSearch:t})=>({wrapper:{zIndex:1},menuItem:{fontSize:11,minHeight:"32px !important","&:first-child":{background:t?e.palette.grey[200]:null}}})),Hg=SC;var yi=require("react/jsx-runtime"),vC=l=>{var a=l,{columns:e=[],filters:t=new Map,menuRef:r,onClick:o,isFocusedSearch:n}=a,i=_(a,["columns","filters","menuRef","onClick","isFocusedSearch"]);let{classes:p}=Hg({isFocusedSearch:n});return(0,yi.jsx)(mr.Popper,y(s({placement:"bottom-start",className:p.wrapper},i),{children:(0,yi.jsx)(mr.Paper,{elevation:2,children:(0,yi.jsx)(mr.MenuList,{ref:r,children:e.map(c=>(0,yi.jsx)(mr.MenuItem,{className:p.menuItem,disabled:t.has(c.value),onClick:()=>o(c.value),children:c.label},c.value))})})}))},Ug=vC;var ur=require("@mui/material"),$g=v(require("classnames")),jg=v(require("react-input-autosize"));var Wg=require("tss-react/mui"),wC=(0,Wg.makeStyles)()(e=>({root:{fontSize:11,marginRight:8,paddingRight:0},input:{"& input, & div":{border:"none",background:"none",fontSize:11,outline:"none"}},select:{fontSize:11,"& .MuiSelect-root":{padding:"4px 24px 4px 6px"}},closeIcon:{color:e.palette.primary.main}})),Gg=wC;var Mt=require("react/jsx-runtime"),IC=({data:e={},inputProps:t={},name:r,onClose:o,value:n})=>{let{classes:i}=Gg();return(0,Mt.jsx)(ur.Chip,{color:"primary",className:(0,$g.default)("search-chip",i.root),size:"small",label:(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("label",{children:[e.label,":"]}),e.type===B.SELECT?(0,Mt.jsx)(ur.Select,y(s({disableUnderline:!0},t),{name:r,className:i.select,value:n,children:(e.listData||e.options||[]).map(l=>(0,Mt.jsx)(ur.MenuItem,{value:l.value,children:l.name||l.label},l.value))})):(0,Mt.jsx)(jg.default,y(s({},t),{name:r,className:i.input,value:n})),(0,Mt.jsx)(ur.IconButton,{size:"small",onClick:()=>o(r),children:(0,Mt.jsx)(vt,{className:i.closeIcon,size:8})})]})},r)},Yg=IC;var xi=v(require("prop-types")),Kg=v(require("react-input-autosize"));var Ms={ARROW_DOWN:"ArrowDown",ENTER:"Enter"};var qg=require("react/jsx-runtime"),Zg=p=>{var c=p,{isMenuOpen:e,mainInputRef:t,menuRef:r,onSelectFirst:o,value:n="",isFocused:i,onSearchBarEnterKeyDown:l}=c,a=_(c,["isMenuOpen","mainInputRef","menuRef","onSelectFirst","value","isFocused","onSearchBarEnterKeyDown"]);function m(f){var d,u;if(i&&f.code===Ms.ENTER&&typeof l=="function"){f.preventDefault(),l(n);return}e&&(f.code===Ms.ARROW_DOWN&&r.current?(f.preventDefault(),r.current&&((u=(d=r.current.querySelectorAll('[role="menuitem"]:not([aria-disabled=true])'))==null?void 0:d[1])==null||u.focus())):f.code===Ms.ENTER&&o())}return(0,qg.jsx)(Kg.default,y(s({},a),{ref:t,onKeyDown:m,value:n,placeholder:F.t("virtualTable.searchBar.placeholder",{trigger:xn})}))};Zg.propTypes={isMenuOpen:xi.default.bool.isRequired,mainInputRef:xi.default.object.isRequired,menuRef:xi.default.object.isRequired,value:xi.default.string};var Xg=Zg;var Ci=require("react");var TC=(e,t)=>{var r;switch(t.type){case et.SET_CONFIG:{let o=(r=e.unmappedFilters)==null?void 0:r.filter(n=>t.data[n[0]]);return y(s({},e),{columns:t.data,filters:new Map([...o]),unmappedFilters:[...o]})}case et.ADD_FILTER:{let o=new Map([...e.filters]);return o.set(t.key,""),y(s({},e),{focusedFilter:t.key,search:"",filters:o,unmappedFilters:[...o]})}case et.UPDATE_FILTER:{let o=new Map([...e.filters]);return o.set(t.key,t.value),y(s({},e),{filters:o,unmappedFilters:[...o]})}case et.DELETE_FILTER:{let o=new Map([...e.filters]);return o.delete(t.key),y(s({},e),{filters:o,unmappedFilters:[...o]})}case et.CHANGE_SEARCH:return y(s({},e),{search:t.value});case et.INIT:return t==null?void 0:t.value;default:return e}},Qg=e=>{let r=s(s({},{columns:{},filters:new Map,focusedFilter:null,unmappedFilters:[],search:""}),e);return y(s({},r),{filters:new Map([...r.unmappedFilters])})};function kC({columns:e}){let{getItem:t}=dr(),[r,o]=(0,Ci.useReducer)(TC,Qg({}));return(0,Ci.useEffect)(()=>{o({type:et.SET_CONFIG,data:B0(e)})},[e]),(0,Ci.useEffect)(()=>{ee(this,null,function*(){let n=yield t("SearchBar",{});o({type:et.INIT,value:Qg(n!=null?n:{})})})},[]),[r,o]}var Jg=kC;var e4=require("tss-react/mui"),RC=(0,e4.makeStyles)()(e=>({root:{border:`1px solid ${e.palette.primary.main}`,borderRadius:2,display:"inline-flex"},termsWrapper:{alignItems:"center",background:"white",display:"flex",maxWidth:0,overflow:"hidden",padding:0,width:300,".search-bar.unfold &":{maxWidth:300,padding:"0 8px"}},button:{minWidth:"auto",padding:6,".search-bar.unfold &":{borderBottomRightRadius:0,borderTopRightRadius:0}},input:{cursor:"text","& input, & div":{background:"none",border:"none",fontSize:11,outline:"none"},"& input":{height:32,minWidth:"100%"}},inputEmpty:{"& input":{width:"100% !important"}},mainInput:{width:"100%"},chipsGroup:{display:"flex"},closeIcon:{color:e.palette.primary.main,fontSize:"0.875rem"},menu:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"all"}},inputWrapper:{display:"flex",flexGrow:1}})),t4=RC;var At=require("react/jsx-runtime"),EC=({columns:e,onChange:t,onChipFocus:r,onChipBlur:o,onSearchBarEnterKeyDown:n,tableKeyName:i,service:l})=>{var X,Z,R,N;let{classes:a}=t4(),p=(0,Ge.useRef)(),c=(0,Ge.useRef)(),m=(0,Ge.useRef)(),f=(0,Ge.useRef)(),{setItem:d}=dr(),[{filters:u,focusedFilter:h,search:g,columns:C,unmappedFilters:x},b]=Jg({columns:e}),[I,D]=(0,Ge.useState)(!1),[S,T]=(0,Ge.useState)(!0),k=(0,Ge.useMemo)(()=>(g==null?void 0:g[0])===xn,[g]),w=(0,Ge.useMemo)(()=>!(0,n4.default)(u)||I||g,[u,I,g]);(0,Ge.useEffect)(()=>()=>{A.cancel()},[]);let A=(0,Ge.useCallback)((0,o4.default)((U,re)=>ee(void 0,null,function*(){t(U,re),yield d("SearchBar",{filters:u,search:re,unmappedFilters:U}),i&&(l!=null&&l.updateVTConfig)&&typeof l.updateVTConfig=="function"&&!S&&l.updateVTConfig()}),600),[S]);(0,Ge.useEffect)(()=>{t&&A(x,g)},[g,x]);let O=(0,Ge.useMemo)(()=>{if(g.length>1){let U=new RegExp(`^${(0,r4.default)(g.slice(1))}`,"i");return Object.values(C).filter(({label:re,value:de})=>U.test(re)&&!u.has(de))}return Object.values(C).filter(({value:U})=>!u.has(U))},[C,g]);function E(U){T(!1),b({type:et.UPDATE_FILTER,key:U.target.name,value:U.target.value})}function L(U){T(!1),b({type:et.DELETE_FILTER,key:U}),z()}function V(U){T(!1),b({type:et.CHANGE_SEARCH,value:U.target.value})}function H(U){T(!1),b({type:et.ADD_FILTER,key:U})}function M(){k&&(T(!1),b({type:et.CHANGE_SEARCH,value:""}))}function z(){var U;(U=m.current)==null||U.focus()}function $(){O.length&&H(O[0].value)}let K=(X=f==null?void 0:f.current)!=null&&X.clientWidth?((Z=f==null?void 0:f.current)==null?void 0:Z.clientWidth)+(g?(N=(R=m==null?void 0:m.current)==null?void 0:R.state)==null?void 0:N.inputWidth:50)+16:void 0;return(0,At.jsx)(As.ClickAwayListener,{onClickAway:M,children:(0,At.jsxs)("div",{className:(0,mc.default)("search-bar",a.root,{unfold:w}),children:[(0,At.jsx)(As.Button,{className:a.button,color:"primary",onClick:z,variant:"contained",children:(0,At.jsx)(_o,{size:"m"})}),(0,At.jsxs)("div",{className:a.termsWrapper,style:{minWidth:K},children:[(0,At.jsx)("div",{className:a.chipsGroup,ref:f,children:(0,i4.default)(Array.from(u.entries()),([U,re])=>(0,At.jsx)(Yg,{data:C[U],inputProps:{autoFocus:h===U,onFocus:r,onBlur:o,onChange:E},name:U,onClose:L,value:re},U))}),(0,At.jsxs)("div",{className:a.inputWrapper,ref:p,children:[(0,At.jsx)(Xg,{className:(0,mc.default)("main-search",a.input,a.mainInput,{[a.inputEmpty]:!g}),isMenuOpen:k,mainInputRef:m,menuRef:c,onBlur:()=>D(!1),onChange:V,onFocus:()=>D(!0),value:g,onSelectFirst:$,isFocused:I,onSearchBarEnterKeyDown:n}),(0,At.jsx)(Ug,{anchorEl:p.current,columns:O,filters:u,menuRef:c,onClick:H,open:k,isFocusedSearch:I})]})]})]})})},l4=EC;var Ti=require("react"),Gt=require("@mui/material");var MC=[te.NEW,te.EDIT],bi=(e=[])=>e.some(t=>MC.includes(t.rowType)&&t._touched===!0);var Ds=v(require("react")),s4=v(require("@mui/material/Menu")),uc=v(require("@mui/material/MenuItem")),a4=require("tss-react/mui");var Pr=require("react/jsx-runtime"),p4=require("react"),AC=48,c4=e=>{let[t,r]=Ds.default.useState(null),o=!!t;function n(m){r(m.currentTarget)}function i(){r(null)}let{children:l=()=>(0,Pr.jsx)(ze,{name:"icon-options",color:"#464545"}),options:a,classes:p,onClick:c}=e;return(0,Pr.jsxs)(Ds.default.Fragment,{children:[Ds.default.cloneElement(l,{onClick:n}),(0,Pr.jsx)(s4.default,{id:"long-menu",anchorEl:t,open:o,onClose:i,PaperProps:{style:{maxHeight:AC*4.5}},children:a.map((m,f)=>m.options?(0,p4.createElement)(c4,y(s({},e),{options:m.options,key:`${m.label}-${f}`}),(0,Pr.jsx)(uc.default,{onClick:()=>{c(m.value),i()},classes:{root:p.menuItem},children:m.label},m.value)):(0,Pr.jsx)(uc.default,{onClick:()=>{c(m.value),i()},classes:{root:p.menuItem},children:m.label},m.value))})]})},DC=()=>({menuItem:{"padding-top":"6px","padding-bottom":"6px","font-size":"13px"}}),fc=(0,a4.withStyles)(c4,DC);var Mo=require("react"),Fn=require("@mui/material"),u4=v(require("@mui/material/IconButton")),Si=v(require("classnames")),f4=v(require("lodash/deburr")),h4=require("tss-react/mui");var d4=require("tss-react/mui");var m4=()=>({noPadding:{padding:"2px",minHeight:"32px",minWidth:"36px"}}),V_=(0,d4.makeStyles)()(({palette:{primary:{main:e}}})=>({content:{textAlign:"center",Zindex:1500,overflow:"visible"},button:{background:e,marginLeft:"20px"},footer:{margin:"50px",justifyContent:"space-evenly"},buttonValidate:{background:e,color:"white"}}));var ye=require("react/jsx-runtime"),LC=e=>{let{badgeContent:t,badgeColor:r,children:o}=e;return t?(0,ye.jsx)(Fn.Badge,{badgeContent:t,color:r||"primary",children:o}):(0,ye.jsx)(ye.Fragment,{children:o})},NC=e=>{let t=(0,Fn.useTheme)(),{buttons:r,marginDirection:o="left",classes:n}=e,[i,l]=(0,Mo.useState)({}),[a,p]=(0,Mo.useState)(!1),c=(0,Mo.useRef)(!0);(0,Mo.useEffect)(()=>()=>{c.current=!1},[]);let f={left:n.marginLeft,right:n.marginRight,none:""}[o],d=(u,h)=>ee(void 0,null,function*(){var g;if(h.onClick)try{!h.noLoader&&((g=h.onClick)!=null&&g.then||Q0(h.onClick))&&l({[h.text]:!0}),p(!0),yield h.onClick(u)}finally{c.current&&(l({[h.text]:!1}),p(!1))}});return r==null?void 0:r.map((u,h)=>{var k;if(!u)return null;let g=u.size||"small",C=u.variant||"contained",x=u.disabled||a,b=u.color||u.colorError&&"secondary"||"primary",I=u.iconSize||"40px",D=(k=t.palette[b])==null?void 0:k.contrastText,S=C==="contained"?D||u.iconColor||"white":b,T=u.variant==="text"||u._type==="icon"?t.palette.disabled:"white";return D&&u.iconColor&&console.warn(`The provided iconColor ${u.iconColor} is ignored and replaced with ${b}'s constrast text (${D}) from theme palette`),(0,ye.jsxs)(Mo.Fragment,{children:[u._type==="icon-link"&&(0,ye.jsx)(Et,{className:f,classes:{root:(0,Si.default)(n.noPadding,u.className)},size:g,variant:C,color:b,onClick:w=>d(w,u),disabled:x,children:(0,ye.jsx)("a",{href:u.href,children:(0,ye.jsx)(ze,{titleInfoBulle:u.titleInfoBulle,tooltipPlacement:u.tooltipPlacement,name:u.iconName,size:I,color:S})})}),u._type==="icon"&&(0,ye.jsx)(Et,{className:f,classes:{root:(0,Si.default)(n.noPadding,u.className)},size:g,variant:C,color:b,onClick:w=>d(w,u),disabled:x,type:u.type||"button",children:(0,ye.jsxs)(LC,y(s({},u),{children:[(0,ye.jsx)(ze,{titleInfoBulle:u.titleInfoBulle,tooltipPlacement:u.tooltipPlacement,name:u.iconName,size:I,color:x?T:S}),i[u.text]&&(0,ye.jsxs)(ye.Fragment,{children:["\xA0",(0,ye.jsx)(zt,{size:12})]})]}))}),u._type==="string"&&(0,ye.jsx)(Fn.Badge,{color:u.badgeColor,badgeContent:u.badgeContent,children:(0,ye.jsxs)(Et,{buttonRef:u.buttonRef,className:(0,Si.default)(f,u.className),size:g,variant:C,color:b,onClick:w=>d(w,u),disabled:x,style:u.style,id:u.id,type:u.type,children:[u.text,i[u.text]&&(0,ye.jsxs)(ye.Fragment,{children:["\xA0",(0,ye.jsx)(zt,{size:12})]})]})}),u._type==="dropdown"&&(0,ye.jsx)(fc,{className:f,size:g,tabIndex:"-1",variant:C,color:b,onClick:w=>d(w,u),disabled:x,options:u.options||[],children:(0,ye.jsx)(u4.default,{"aria-label":"More","aria-haspopup":"true",size:"large",children:(0,ye.jsx)(ze,{titleInfoBulle:u.titleInfoBulle,tooltipPlacement:u.tooltipPlacement,name:u.iconName,size:I,color:S})})}),u._type==="component"&&(0,ye.jsx)(Fn.Badge,{color:u.badgeColor,badgeContent:u.badgeContent,children:(0,ye.jsxs)(Et,{className:(0,Si.default)(f,u.className),size:g,variant:C,color:b,onClick:w=>d(w,u),disabled:x,style:u.style,id:u.id,children:[u.component,i[u.component]&&(0,ye.jsxs)(ye.Fragment,{children:["\xA0",(0,ye.jsx)(zt,{size:12})]})]})})]},u.text?`${h}-${(0,f4.default)(u.text.replace(/ /g,"-"))}`:h)})},PC=()=>y(s({},m4()),{marginLeft:{marginLeft:"10px"},marginRight:{marginRight:"10px"},infoBulle:{border:"none",height:15,width:"auto",padding:"4px 10px",borderRadius:2,fontSize:10,fontWeight:500,boxShadow:"1px 5px 7px 0 rgba(0, 0, 0, 0.08)",backgroundColor:"#ffffff",color:"#464545",fontFamily:"basier_circlemedium"}}),hc=(0,h4.withStyles)(NC,PC);var ft=v(require("prop-types")),BC=ft.default.shape({_type:ft.default.string.isRequired,iconName:ft.default.string,className:ft.default.string,text:ft.default.string,onClick:ft.default.func,color:ft.default.string,iconSize:ft.default.number,iconColor:ft.default.string,disabled:ft.default.bool,variant:ft.default.string,titleInfoBulle:ft.default.string});var Br=require("react"),L4=require("@mui/material"),N4=v(require("lodash/isMatch"));var x4=require("react"),vi=require("@mui/material"),C4=v(require("classnames"));var g4=require("tss-react/mui"),OC=(0,g4.makeStyles)()(e=>({menu:{display:"flex",justifyContent:"space-around",alignItems:"center",flexDirection:"column",width:"20px",height:"20px",borderRadius:"50%",cursor:"pointer",padding:"3px",boxSizing:"border-box","&>svg":{color:e.palette.grey[600]}},active:{background:e.palette.grey[200]}})),y4=OC;var fo=require("react/jsx-runtime"),_C=({edit:e,remove:t,isOnlyDelete:r=!1})=>{let[o,n]=(0,x4.useState)(null),{classes:i}=y4(),l=m=>{m.preventDefault(),n(m.currentTarget)},a=m=>{m.preventDefault(),n(null)},p=m=>{e(),a(m)},c=m=>{t(),a(m)};return(0,fo.jsxs)(fo.Fragment,{children:[(0,fo.jsx)("div",{className:(0,C4.default)(i.menu,{[i.active]:!!o}),onClick:l,role:"button",children:(0,fo.jsx)(en,{size:"m"})}),o&&(0,fo.jsxs)(vi.Menu,{anchorEl:o,open:!!o,onClose:a,onContextMenu:a,children:[!r&&(0,fo.jsx)(vi.MenuItem,{onClick:p,children:F.t("common.edit")}),(0,fo.jsx)(vi.MenuItem,{onClick:c,children:F.t("common.delete")})]})]})},b4=_C;var gc=require("react/jsx-runtime"),FC=({config:e,theme:t,handleEdit:r,handleDelete:o,isColSelectionmode:n,columnsOptions:i})=>[...n?[{key:"header",header:F.t("columnsSetting.columns.columnName"),size:1,editable:!0,typeCell:l=>l._isNew&&!l.header?B.SELECT:B.STRING,cellProps:{style:{width:200}},options:i}]:[{key:"header",header:F.t("columnsSetting.columns.columnName"),size:1,editable:!0}],...e?e.map(l=>y(s({},l),{_isCreatable:!0})):[],{key:"searchable",header:F.t("columnsSetting.columns.filterable"),editable:!1,width:80,alignText:"center",typeCell:B.COMPONENT,renderComponent:({data:l})=>oi(l)?(0,gc.jsx)(Hr,{color:t.palette.primary.main,size:"s"}):null},{key:"display",header:F.t("columnsSetting.columns.display"),width:60,typeCell:B.CHECKBOX,editable:!0,isDisabled:l=>l.canHide===!1},{header:"",width:40,editable:!1,alignText:"center",typeCell:B.COMPONENT,renderComponent:({data:l})=>(l._isCreatable||n&&l.selectable&&l.selected)&&(0,gc.jsx)(b4,{isOnlyDelete:n,edit:()=>r(l),remove:()=>o(l)})}],S4=FC;var Dt=require("react"),w4=v(require("lodash/cloneDeep")),I4=v(require("lodash/omit"));function v4(e){return e.map((t,r)=>y(s({},t),{display:t.display!==!1,rowIndex:r}))}function VC(e,t){let[r]=e.splice(t,1);return e.unshift(r),e}var zC=(e,t,r,o,n,i,l)=>{let a=(0,Dt.useMemo)(()=>(0,w4.default)(v4(e)),[e]),[p,c]=(0,Dt.useState)([]),[m,f]=(0,Dt.useState)({}),d=e.filter(S=>S.selected&&S.selectable||!S.selectable).map(({key:S})=>S).join("|"),[u,h]=(0,Dt.useState)(d);(0,Dt.useEffect)(()=>{d&&h(d)},[d]),(0,Dt.useEffect)(()=>{e&&c(a)},[e]),(0,Dt.useEffect)(()=>{n!=null&&n.length&&c(a)},[n]),(0,Dt.useEffect)(()=>{t.length&&c(S=>S.map(T=>y(s({},T),{_isEditable:t.indexOf(T.key)>=0})))},[t]),(0,Dt.useEffect)(()=>{r.length&&c(S=>S.map(T=>{let k={};return r.includes(T.key)&&(k._isDeleted=!0),o!=null&&o.columnSelection&&(k.selected=!1),s(s({},T),k)}))},[r]);function g(S){let{rowIndex:T,value:k,dataKey:w,data:A,rowKey:O}=S,E=p.find(({key:H})=>H===O),L=w,V;o!=null&&o.columnSelection?V=p.findIndex(H=>(H==null?void 0:H.header)===k||(A==null?void 0:A.key)===(H==null?void 0:H.key)&&!(H!=null&&H._isNew)):V=T,f(H=>{var M,z,$;return y(s({},H),{[(M=p[V])==null?void 0:M.key]:y(s(s({},m[[(z=p[V])==null?void 0:z.key]]),!!(o!=null&&o.columnSelection)&&{selected:($=A.selected)!=null?$:!0,display:!!(A!=null&&A._isNew)}),{[L]:k})})}),c(H=>{let M=H.findIndex($=>($==null?void 0:$.header)===k||(A==null?void 0:A.key)===($==null?void 0:$.key)&&!($!=null&&$._isNew));M=M===-1?T:M;let z=H.map(($,K)=>K===M?(o!=null&&o.columnSelection&&(E!=null&&E._isNew)&&(E!=null&&E._isCreatable)&&h(X=>{let Z=X.split("|").filter(R=>R!==`${O}`);return[$.key,...Z].join("|")}),y(s(s({},$),!!(o!=null&&o.columnSelection)&&{selected:!0,display:!!(A!=null&&A._isNew)}),{[L]:k})):$);return o!=null&&o.columnSelection&&(E!=null&&E._isNew)&&(E!=null&&E._isCreatable)&&(z=VC(z,M)),o!=null&&o.columnSelection?z.filter($=>!$._isNew):z})}function C(){f({}),c(v4(n!=null&&n.length&&!(o!=null&&o.columnCreation)?n:e))}let x=()=>{let S=l.reduce((T,k)=>{var w;return T[k.key]={display:k.display,selected:(w=k.selected)!=null?w:!1},T},{});f(S)};function b(){x();let S=p.filter(T=>!l.find(({key:k})=>T.key===k)).map(T=>y(s({},T),{_isDeleted:!0}));c([...S,...l].map((T,k)=>y(s({},T),{rowIndex:k})))}function I(S){return ee(this,null,function*(){let T=[],k=[],w=[],A=[];p.forEach(E=>{let L=y(s({},(0,I4.default)(E,["_isCreatable","_isDeleted","_isEditable","_isNew"])),{display:!!E.display});o!=null&&o.columnSelection?k.push(L):(E._isNew&&!E._isDeleted&&T.push(L),E._isEditable&&!E._isDeleted&&!E._isNew&&w.push(L),E._isDeleted&&!E._isNew&&A.push(L),E._isNew||k.push(L))});let O=ni(S,[...k].filter(E=>E.header!==""));return f({}),yield i("columnsSetting",O),yield i("columnsOrder",S),c(O),{new:T,old:O,updated:w,deleted:A}})}return{columns:p,changes:m,reset:C,save:I,handleChange:g,handleAddRow:S=>{h(T=>`${S.key}|${T}`),c(T=>o!=null&&o.columnSelection&&T.find(k=>k==null?void 0:k._isNew)?T:[S,...T].map((k,w)=>y(s({},k),{rowIndex:w})))},resetColumnsToDefault:b,order:u,setOrder:h}},yc=zC;var Ls=require("react"),xc=v(require("classnames")),wi=v(require("prop-types")),E4=v(require("sortablejs")),M4=require("tss-react/mui");var T4=require("react");var HC=(e=[])=>{let t=()=>e.reduce((i,{width:l=0,size:a})=>a?i:i+Number.parseInt(String(l),10),0),r=()=>e.reduce((i,{size:l=0})=>i+Number.parseInt(String(l),10),0),o=(0,T4.useMemo)(()=>{let i=t(),l=r();return e.reduce((a,{key:p,size:c,width:m=0,minWidth:f=100,typeCell:d,alignText:u})=>y(s({},a),{[p]:{width:c?`calc( (( 100% - ${i}px ) * ${c}) / ${l} )`:`${m}px`,minWidth:m||f,justifyContent:pr(d,u),display:"flex",alignItems:"center"}}),{})},[]),n=e.reduce((i,{width:l=0,minWidth:a=100,size:p})=>p?i+Number.parseInt(String(a),10):i+Number.parseInt(String(l),10),0);return{columnsStyle:o,totalWidth:n}},k4=HC;var R4=e=>({root:{background:"#FFF",fontSize:11},row:{display:"flex",height:32},header:{fontWeight:"bold",position:"sticky",zIndex:2,top:0,background:e.palette.common.white},headerCell:{padding:"0 2px"},bodyCell:{position:"relative"},draggable:{maxWidth:18,minWidth:18,display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",padding:"10px 4px",cursor:"move",boxSizing:"border-box","&>span":{display:"block",width:"2px",height:"2px",borderRadius:"50%",background:e.palette.grey[300],margin:"1px"}},intend:{maxWidth:18,minWidth:18},odd:{"&:nth-child(odd)":{background:e.palette.grey[100]}}});var Fe=require("react/jsx-runtime"),UC=(e,t)=>typeof t===Jo.FUNCTION?t(e):t,WC=e=>e===B.AUTOCOMPLETE||typeof e===B.SELECT?{width:"100%",height:34,overflow:"auto"}:{maxWidth:"100%"},A4=({classes:e,columns:t=[],rows:r=[],onChange:o,setOrder:n,addRow:i,modeAdd:l,draggable:a,order:p})=>{let{columnsStyle:c,totalWidth:m}=k4(t),f=(0,Ls.useRef)(),d=(u,h)=>!!(h.key==="display"||u._isNew)||!!(u._isEditable&&h.editable);return(0,Ls.useEffect)(()=>{a&&new E4.default(f.current,{handle:`.${e.draggable}`,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{set:u=>{let h=u.toArray();n(h.join("|"))},get:()=>p?p.split("|"):[]}})},[p]),(0,Fe.jsxs)("div",{className:e.root,style:{minWidth:m},children:[(0,Fe.jsxs)("div",{className:(0,xc.default)(e.row,e.header),children:[a&&(0,Fe.jsx)("div",{className:e.intend}),t.map(({key:u,header:h})=>(0,Fe.jsx)("div",{className:e.headerCell,style:s({},c[u]),children:h},u||"menu"))]}),l&&(0,Fe.jsx)(ai,{onAdd:i,label:F.t("columnsSetting.addColumn")}),(0,Fe.jsx)("div",{ref:f,children:r.map(u=>u._isDeleted?null:(0,Fe.jsxs)("div",{"data-id":u.key,className:(0,xc.default)(e.row,{[e.odd]:!0}),children:[a&&(0,Fe.jsxs)("div",{className:e.draggable,children:[(0,Fe.jsx)("span",{})," ",(0,Fe.jsx)("span",{})," ",(0,Fe.jsx)("span",{})," ",(0,Fe.jsx)("span",{})," ",(0,Fe.jsx)("span",{})," ",(0,Fe.jsx)("span",{})]}),t.map(h=>{let g=UC(u,h.typeCell);return(0,Fe.jsx)("div",{className:e.bodyCell,style:s({},c[h.key]),children:(0,Fe.jsx)("div",{style:WC(g),children:(0,Fe.jsx)(Ts,{rowIndex:u.rowIndex,rowKey:u.key,vtContext:{state:"PERMANENT_EDIT",send:()=>{}},typeCell:g,column:y(s({},h),{options:h.options||[],onChange:o,editable:d(u,h)}),data:u,dataKey:h.key||"menu"})})},h.key||"menu")})]},u.key))})]})};A4.propTypes={classes:wi.default.object,rows:wi.default.array,columns:wi.default.array,onChange:wi.default.func};var D4=(0,M4.withStyles)(A4,R4);var ho=require("react/jsx-runtime"),GC=(e,t)=>e.some(r=>{let o=t.find(n=>n.key===r.key);return o&&r.display!==o.display}),$C=({open:e,onClose:t,onChangeColumnsSetting:r,columnsConfig:o})=>{let{config:{columnsRaw:n=[],defaultColumnsOrder:i},tableKeyName:l}=ae(),a=o==null?void 0:o.draggable,p=i.map(W=>{var Y;return y(s({},W),{display:(Y=W==null?void 0:W.display)!=null?Y:W.display!==!1&&!(W!=null&&W.selectable)})}),c=p.filter(W=>W.selected&&W.selectable||!W.selectable),{service:m}=so(),[f,d]=(0,Br.useState)([]),[u,h]=(0,Br.useState)([]),[g,C]=(0,Br.useState)([]),{getItem:x,setItem:b}=dr(l),{columns:I,changes:D,reset:S,save:T,handleChange:k,handleAddRow:w,resetColumnsToDefault:A,order:O,setOrder:E}=yc(n,f,u,o,g,b,p),L=I.filter(W=>W.selected&&W.selectable||!W.selectable),[V,H]=(0,Br.useState)(O),M=GC(p,L),z=c.map(({key:W})=>W).join("|"),$=(O==null?void 0:O.trim())!==z,K=!M&&!$;(0,Br.useEffect)(()=>{ee(void 0,null,function*(){let W=yield x("columnsSetting",[]),Y=W.map(ne=>ne==null?void 0:ne.key),q=i.map(ne=>ne==null?void 0:ne.key);!(0,N4.default)(Y.sort(),q.sort())?(yield b("columnsSetting",[]),yield b("columnsOrder",""),C([])):C(W)})},[]);let X=(0,L4.useTheme)(),Z=W=>{o!=null&&o.columnSelection&&k({dataKey:"display",value:!1,data:y(s({},W),{_isDeleted:!0,selected:!1})}),E(Y=>Y.split("|").filter(q=>q!==W.key).join("|")),h(Y=>[...Y,W.key])},R=()=>ee(void 0,null,function*(){I.forEach(W=>{W._isCreatable&&Z(W)}),A(),E(z)}),N=()=>ee(void 0,null,function*(){r({type:"multiple",keys:D,order:O}),d([]),t();let W=yield T(O);if(C(W==null?void 0:W.old),h([]),typeof(o==null?void 0:o.handleValidate)=="function"){o==null||o.handleValidate(W);return}l&&(m!=null&&m.updateVTConfig)&&typeof m.updateVTConfig=="function"&&m.updateVTConfig(W),H(O)}),U=()=>{V!==O&&E(V),d([]),t(),S()},re=W=>d(Y=>[...Y,W.key]),de=I.filter(W=>(W==null?void 0:W.selectable)&&!(W!=null&&W.selected)).map(W=>({label:W.header,value:W.header})),Re=()=>{var q;let W={};(q=o==null?void 0:o.config)==null||q.forEach(ge=>W[ge.key]="");let Y=s({header:"",key:Date.now(),_isNew:!0,_isCreatable:!0},W);w(Y)};return(0,ho.jsxs)(ke,{isOpen:e,onClose:U,children:[(0,ho.jsx)(ke.Title,{children:F.t("columnsSetting.title")}),(0,ho.jsx)(ke.Content,{children:(0,ho.jsx)(D4,{setOrder:E,order:O,onChange:k,columns:S4({config:o==null?void 0:o.config,theme:X,handleEdit:re,handleDelete:Z,isColSelectionmode:!!(o!=null&&o.columnSelection),columnsOptions:de}),rows:L,addRow:Re,modeAdd:!!(o!=null&&o.config)||!!(o!=null&&o.columnSelection),draggable:o==null?void 0:o.draggable})}),(0,ho.jsx)(ke.PrimaryAction,{onClick:N,children:F.t("common.save")}),(0,ho.jsx)(ke.SecondaryAction,{onClick:U,children:F.t("common.cancel")}),a&&(0,ho.jsx)(ke.CustomAction,{children:(0,ho.jsx)(Et,{color:"primary",variant:"outlined",onClick:R,disabled:K,children:F.t("columnsSetting.restoreInitial")})})]})},Cc=$C;var bc=require("react"),Vn=require("@mui/material"),O4=v(require("classnames"));var P4=require("tss-react/mui"),jC=(0,P4.makeStyles)()(e=>({root:{minWidth:240,padding:16},title:{borderBottom:`1px ${e.palette.grey[200]} solid`,marginBottom:8,paddingBottom:8},fieldset:{display:"block"},exportAllPage:{padding:"15px 5px 0",display:"flex",alignItems:"center",cursor:"pointer"},checkbox:{display:"inline-block"},checkboxLabel:{display:"inline-block",marginLeft:"10px",fontSize:"14px"},switchButton:{fontSize:12,backgroundColor:e.palette.grey[200],color:e.palette.text.white,minWidth:50,padding:"2px 6px",marginRight:8,"&.active":{backgroundColor:e.palette.primary.light,color:e.palette.primary.main}},actions:{marginTop:24,display:"flex",justifyContent:"flex-end"}})),B4=jC;var ht=require("react/jsx-runtime"),YC=({onClose:e,onCustomExportClick:t,isExportAllPages:r})=>{let{classes:o}=B4(),[n,i]=(0,bc.useState)(!1),{exportData:l,loading:a,error:p}=Zl({onSuccess:e}),{config:{exportFormat:c=["csv","xls"]}}=ae(),[m,f]=(0,bc.useState)("xls"),d=()=>{if(typeof t=="function"){t(m,n);return}l(m)},u=()=>{i(h=>!h)};return(0,ht.jsxs)("div",{className:o.root,children:[(0,ht.jsx)(Vn.Typography,{variant:"h4",component:"h1",className:o.title,children:F.t("exportDialog.title")}),(0,ht.jsxs)(Vn.FormControl,{component:"fieldset",className:o.fieldset,children:[(0,ht.jsx)(Vn.Typography,{variant:"body2",gutterBottom:!0,component:"legend",children:F.t("exportDialog.legend")}),c==null?void 0:c.map(h=>(0,ht.jsxs)(Et,{className:(0,O4.default)(o.switchButton,{active:m===h}),onClick:()=>f(h),children:[".",h]},h)),r&&(0,ht.jsxs)("div",{role:"button",className:o.exportAllPage,onClick:u,children:[(0,ht.jsx)(Ur,{className:o.checkbox,size:15,checked:n}),(0,ht.jsx)("div",{className:o.checkboxLabel,children:F.t("exportDialog.exportAllPages")})]})]}),p&&(0,ht.jsx)(Vn.Typography,{color:"error",children:F.t("exportDialog.errorMessage")}),(0,ht.jsx)("div",{className:o.actions,children:(0,ht.jsx)(Et,{color:"primary",variant:"contained",size:"medium",disabled:a,onClick:d,children:a?F.t("common.loading"):F.t("exportDialog.exportButton")})})]})},_4=YC;var F4=require("react"),V4=require("@mui/material"),Ii=require("react/jsx-runtime"),KC=(0,F4.memo)(function(){return(0,Ii.jsxs)(V4.SvgIcon,{viewBox:"0 0 20 21",children:[(0,Ii.jsx)("path",{d:"M10.268.023a2 2 0 0 1 1.98 1.718l.09.63c.358.108.705.242 1.039.397l.793-.595a2 2 0 0 1 2.615.186l.38.379a2 2 0 0 1 .185 2.615l-.457.607c.318.538.574 1.116.76 1.725l.629.09A2 2 0 0 1 20 9.755v.536a2 2 0 0 1-1.718 1.98l-.63.09a7.957 7.957 0 0 1-.76 1.725l.458.607a2 2 0 0 1-.068 2.487l-.117.128-.38.38a2 2 0 0 1-2.47.283l-.145-.098-.793-.595a8.016 8.016 0 0 1-1.039.398l-.09.629a2 2 0 0 1-1.824 1.712l-.156.006h-.536a2 2 0 0 1-1.952-1.565l-.028-.153-.09-.629a7.944 7.944 0 0 1-1.039-.398l-.793.595a2 2 0 0 1-2.487-.068l-.128-.117-.38-.38a2 2 0 0 1-.283-2.47l.098-.145.457-.607a7.957 7.957 0 0 1-.76-1.726l-.629-.09A2 2 0 0 1 0 10.29v-.535a2 2 0 0 1 1.718-1.98l.63-.09a7.957 7.957 0 0 1 .76-1.725l-.458-.607a2 2 0 0 1 .186-2.615l.379-.38a2 2 0 0 1 2.615-.185l.793.595a8.085 8.085 0 0 1 1.04-.398l.09-.629A2 2 0 0 1 9.732.023h.535zm0 1h-.536a1 1 0 0 0-.968.748l-.022.11-.179 1.26-.609.185a6.94 6.94 0 0 0-.611.219l-.297.13-.543.253-1.274-.955a1 1 0 0 0-1.215.011l-.092.082-.38.379a1 1 0 0 0-.16 1.204l.068.103.858 1.141-.34.576a6.9 6.9 0 0 0-.56 1.193l-.104.314-.186.608-1.259.18a1 1 0 0 0-.853.877L1 9.755v.536a1 1 0 0 0 .748.968l.11.022 1.26.179.185.609c.13.422.298.83.504 1.22l.161.288.34.576-.833 1.106-.074.107a1 1 0 0 0 .059 1.141l.083.094.348.35.096.089a1 1 0 0 0 1.138.102l.105-.07 1.273-.954.543.253c.196.092.396.174.6.247l.308.102.61.185.172 1.22.02.116a1 1 0 0 0 .86.775l.116.007h.498l.117-.003a1 1 0 0 0 .888-.743l.023-.114.18-1.258.608-.186a6.94 6.94 0 0 0 .611-.218l.297-.13.543-.253 1.239.93.107.074a1 1 0 0 0 1.141-.059l.094-.083.35-.348.089-.096a1 1 0 0 0 .102-1.137l-.068-.105-.859-1.141.34-.576c.224-.379.412-.779.56-1.193l.104-.315.186-.607 1.259-.18a1 1 0 0 0 .853-.877L19 10.29v-.536a1 1 0 0 0-.748-.968l-.112-.022-1.258-.18-.186-.608a6.95 6.95 0 0 0-.503-1.22l-.161-.288-.34-.576.858-1.14a1 1 0 0 0-.011-1.216l-.082-.092-.379-.38a1 1 0 0 0-1.205-.16l-.103.069-1.273.954-.543-.253a6.948 6.948 0 0 0-.6-.246l-.308-.102-.607-.186-.18-1.259a1 1 0 0 0-.877-.853l-.114-.006z"}),(0,Ii.jsx)("path",{d:"M10 6.023a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"})]})}),z4=KC;var at=require("react/jsx-runtime"),ZC=({displayableRows:e,handleRowsToDelete:t,handleValidateAdd:r,handleValidateEdit:o,handleCancel:n,selectedRows:i,selectedVisibleRows:l,onChangeColumnsSetting:a,columnsConfig:p,onCustomExportClick:c,isExportAllPages:m})=>{var Re,W;let{allRows:f,can:d,config:{actionsButton:u=[],customButtons:h=[],exportFormat:g=["csv","xls"],enableColumnEdition:C=!0,insertPosition:x=st.TOP,selectableRowKey:b="id",modeDelete:I=!1,modeEdit:D=!1,hideStateActions:S=!1},context:{dataRows:T},send:k,state:w}=ae(),A=or(),O=(W=(Re=A==null?void 0:A.current)==null?void 0:Re.validation)==null?void 0:W.hasError,[E,L]=(0,Ti.useState)(null),[V,H]=(0,Ti.useState)(null),M=!!E,[z,$]=(0,Ti.useState)(!1),[K,X]=(0,Ti.useState)(!1),Z=Y=>{L(Y.currentTarget)},R=()=>{L(null),$(!1),H(null)};function N(){return ee(this,null,function*(){var Y,q;try{yield t(l),A.current.selectRows(zl(i,e,b)),(q=(Y=A.current)==null?void 0:Y.validation)==null||q.removeErrors(l)}catch(ge){}})}function U(){return ee(this,null,function*(){var q,ge;if((ge=(q=A==null?void 0:A.current)==null?void 0:q.validation)!=null&&ge.hasError)return;let Y;switch(w){case Xe.ADD:Y=yield r(e.filter(ne=>ne.rowType===te.NEW&&ne._touched),x===st.BOTTOM?e.length:0);break;case Xe.EDIT:Y=yield o(e.filter(ne=>ne.rowType===te.EDIT));break;case Xe.PERMANENT_EDIT:Y=yield o(e.filter(ne=>[te.EDIT,te.NEW].includes(ne.rowType)&&ne._touched),x===st.BOTTOM?e.length:0);break}Y!==!1&&k("validate")})}function re(){return ee(this,null,function*(){k("cancel"),n()})}A.current.save=U,A.current.cancel=re,A.current.delete=N;let de=[...(h==null?void 0:h.map(Y=>{let{isDisabled:q=()=>!1,onClick:ge=()=>{}}=Y;return y(s({_type:"icon",iconSize:28,disabled:q({dataRows:T,state:w})},Y),{onClick:()=>ge(f)})}))||[]];if(C&&de.push({_type:"component",component:(0,at.jsx)(z4,{}),style:{paddingLeft:6,paddingRight:6},onClick:()=>X(!0)}),(u.length>0||g.length>0)&&de.push({_type:"component",component:(0,at.jsx)(en,{size:"m"}),style:{padding:"6px 8px"},onClick:Z}),[Xe.READ].includes(w)&&D&&de.push({_type:"icon",iconName:"icon-pencil",color:"primary",iconSize:28,titleInfoBulle:F.t("tooltips.edit"),disabled:!d("edit"),onClick:()=>{k("edit")}}),[Xe.ADD,Xe.EDIT,Xe.PERMANENT_EDIT].includes(w)&&!S){let Y=bi(e);de.push({_type:"icon",iconName:"icon-save",color:"primary",iconSize:28,titleInfoBulle:F.t("tooltips.save"),disabled:!d("validate")||!Y||O,onClick:U},{_type:"icon",iconName:"icon-close1",iconColor:"white",color:"error",iconSize:28,titleInfoBulle:F.t("tooltips.cancel"),disabled:!d("cancel")||!Y&&!D,onClick:re})}return[Xe.READ,Xe.PERMANENT_EDIT].includes(w)&&I&&de.push({_type:"icon",iconName:"icon-trash",iconColor:"white",color:"error",noLoader:!0,iconSize:28,titleInfoBulle:F.t("tooltips.delete"),disabled:!d("deleteRow")||l.length===0,onClick:N}),(0,at.jsxs)("div",{children:[(0,at.jsx)(hc,{buttons:de}),(0,at.jsxs)(Gt.Menu,{id:"actions-button",anchorEl:E,keepMounted:!0,open:M,onClose:R,elevation:2,children:[(g==null?void 0:g.length)>0&&(0,at.jsx)(Gt.MenuItem,{onClick:Y=>{H(Y.currentTarget),$(!0)},children:F.t("common.export")}),u.map(({label:Y,onClick:q,disabled:ge=!1,icon:ne,color:ce},Ve)=>(0,at.jsxs)(Gt.MenuItem,{sx:{color:ce},disabled:ge,onClick:Ne=>{q(e,Ne),R()},children:[ne&&(0,at.jsx)(Gt.ListItemIcon,{children:ne}),Y]},`${Y}_${Ve}`))]}),(0,at.jsx)(Gt.Popper,{open:M&&z,anchorEl:V,placement:"left-start",modifiers:{offset:{enabled:!0,offset:"0, 10px"}},style:{zIndex:9999},children:(0,at.jsx)(Gt.Paper,{elevation:2,children:(0,at.jsx)(_4,{onCustomExportClick:c,isExportAllPages:m,onClose:()=>$(!1)})})}),K&&(0,at.jsx)(Cc,{open:K,onClose:()=>X(!1),onChangeColumnsSetting:a,columnsConfig:p})]})},H4=ZC;var U4=require("tss-react/mui"),XC=(0,U4.makeStyles)()(({palette:e})=>({selectionManager:{flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"center",height:40,background:"#f4f4f4",padding:"5px 10px",boxSizing:"content-box"},selectCount:{display:"flex",flexGrow:1,padding:"0 1rem"},divider:{borderRight:`1px solid ${e.grey[700]}`,margin:"0 11px"}})),W4=XC;var fr=require("react/jsx-runtime"),qC=function(d){var u=d,{displayableRows:t,handleRowsToDelete:r,handleValidateAdd:o,handleValidateEdit:n,onChipFocus:i,onChipBlur:l,columnsConfig:a,onSearchBarEnterKeyDown:p,onCustomExportClick:c,isExportAllPages:m}=u,f=_(u,["displayableRows","handleRowsToDelete","handleValidateAdd","handleValidateEdit","onChipFocus","onChipBlur","columnsConfig","onSearchBarEnterKeyDown","onCustomExportClick","isExportAllPages"]);let{tableKeyName:h,config:{customToolbar:g,hasSearchbar:C=!0,columns:x=[],selectableRowKey:b,selectableRow:I=!1,selectableOnlyOneRow:D=!1}={}}=ae(),{service:S}=so(),T=or(),k=kn(T,Tn),w=(0,ki.useMemo)(()=>Sn(k,t,b),[k,t,b]),{classes:A}=W4(),O=(0,ki.useMemo)(()=>x.filter(E=>oi(E)),[x]);return(0,fr.jsxs)("div",{className:A.selectionManager,children:[C&&!(0,$4.default)(O)&&(0,fr.jsx)(l4,{columns:O,onChange:(E,L)=>T.current.setFilters({filters:E,q:L}),onChipFocus:i,onChipBlur:l,onSearchBarEnterKeyDown:p,service:S,tableKeyName:h}),(0,fr.jsxs)("div",{className:(0,G4.default)("selectionCount",A.selectCount),children:[(I||D)&&F.t("common.selectedCount",{count:(w==null?void 0:w.length)||0}),(g==null?void 0:g.length)>0&&g.map((E,L)=>(0,fr.jsxs)(ki.Fragment,{children:[(0,fr.jsx)("div",{className:A.divider}),E]},L))]}),(0,fr.jsx)(H4,s({handleRowsToDelete:r,selectedRows:k,selectedVisibleRows:w,handleValidateEdit:n,handleValidateAdd:o,displayableRows:t,columnsConfig:a,onCustomExportClick:c,isExportAllPages:m},f))]})},j4=qC;var Or=require("react");var QC=({rows:e,groupCollapsed:t,onFilterChange:r,apiRef:o,searchableColumns:n})=>{let[i,l]=(0,Or.useState)({}),a=(0,Or.useCallback)(c=>{r&&r(c),l(c)},[r]);return o.current.getFilters=(0,Or.useCallback)(()=>i,[i]),o.current.setFilters=a,{filteredRows:(0,Or.useMemo)(()=>e.filter(c=>(!t.has(c.groupId)||c.rowType===te.GROUP_BUTTON)&&q0(n,c,i.filters,i.q)),[e,t,i])}},Y4=QC;var K4=v(require("lodash/orderBy"));var Z4=(e,t,r,o)=>{let n=e;r||(n=(0,K4.default)(e,t,o));let i=0,l=null;return n.map(a=>(l!==a[t]&&(l&&i++,l=a[t]),y(s({},a),{groupId:l,parentRowIndex:i})))},JC=(e,t=st.TOP)=>{let r=Y0(e),o=j0(e),n=[r,...o];if(e.modeAdd){let i=K0(e);t===st.BOTTOM?n.push(i):n.splice(1,0,i)}return n},X4=(e,t)=>[].concat(...e.map(r=>JC(r,t)));var Ri=v(require("lodash/get")),Q4=v(require("lodash/groupBy")),zn=v(require("moment"));var Hn=e=>e==null||e==="",eb=e=>(t,r)=>Ei(e[t],e[r]),tb=(e="DD/MM/YYYY")=>(t,r)=>{if(e==="YYYY-MM-DD")return q4(t,r);let o=t?(0,zn.default)(t,e).format("YYYY-MM-DD"):null,n=r?(0,zn.default)(r,e).format("YYYY-MM-DD"):null;return q4(o,n)},q4=(e,t)=>(0,zn.default)(e).isValid()?(0,zn.default)(t).isValid()?Ei(e,t):-1:(0,zn.default)(t).isValid()?1:0,ob=(e=0,t=0)=>Ei(e,t),Ei=(e,t)=>Hn(e)?Hn(t)?0:1:Hn(t)||e<t?-1:t<e?1:0,J4=(e,t)=>{let r=e?String(e).replace(/[^\p{L}\p{M}\d]/gmu,""):"",o=t?String(t).replace(/[^\p{L}\p{M}\d]/gmu,""):"";return Hn(r)?Hn(o)?0:1:Hn(o)?-1:new Intl.Collator("fr-FR",{caseFirst:"lower",sensitivity:"case"}).compare(r,o)},rb=(e,t)=>{var l,a;let r=((l=e==null?void 0:e.array)==null?void 0:l.length)||0,o=((a=t==null?void 0:t.array)==null?void 0:a.length)||0,n=!r,i=!o;return n&&i?0:n?1:i?-1:r===1&&o===1?J4(e.array[0].id,t.array[0].id):r>1&&o>1?r===o?0:r<o?-1:1:r===1?-1:1},ey=e=>{if(e!=null&&e.sortComparator)return e.sortComparator;switch(e==null?void 0:e.typeCell){case B.SELECT:case B.AUTOCOMPLETE:{if(!e.options||e.options instanceof Function)return e.options||console.warn(`Missing 'options' property in column named '${e.key}' with typeCell of '${e.typeCell}'`),Ei;let t=e.options.reduce((r,o)=>{var n;return y(s({},r),{[o.value]:(n=o.sortOrder)!=null?n:o.label})},{});return eb(t)}case B.AMOUNT:case B.NUMBER:return Ei;case B.DATE:return tb(e.formatDate);case B.CHECKBOX:return ob;case B.WALLET:return rb;default:return J4}},Sc=(e,t,{order:r,comparator:o,orderDirection:n})=>n===lo.ASC?o((0,Ri.default)(e,r),(0,Ri.default)(t,r),e,t):o((0,Ri.default)(t,r),(0,Ri.default)(e,r),t,e),ty=(e,t,r,o)=>{let n=t.find(l=>l.key===r),i=ey(n);return[...e].sort((l,a)=>Sc(l,a,{order:r,comparator:i,orderDirection:o}))},oy=(e,t,r,o,n,i)=>{let l=t.find(c=>c.key===r),a=ey(l),p=(0,Q4.default)(e,n);return i&&(p=Object.values(p).map(c=>[...c].sort((m,f)=>Sc(m,f,{order:r,comparator:a,orderDirection:o})))),Object.values(p).sort((c,m)=>Sc(c[0],m[0],{order:r,comparator:a,orderDirection:o})).flat()};var Ns=require("react"),nb=e=>{let t=(0,Ns.useRef)({});return(0,Ns.useImperativeHandle)(e,()=>t.current,[t]),[t]},ry=nb;var Mi=require("react"),ny=v(require("lodash/isMatch")),iy=v(require("lodash/isNil"));var ib=(e,t,r,o)=>{let{getItem:n}=dr(t),[i,l]=(0,Mi.useReducer)(a,e.map(p=>{var c;return y(s({},p),{display:(c=p==null?void 0:p.display)!=null?c:p.display!==!1&&!(p!=null&&p.selectable)})}));function a(p,c){var f;let m=p;switch(c.type){case"multiple":{let d=m.map(u=>(0,iy.default)(c.keys[u.key])?u:s(s({},u),c.keys[u.key]));return ni((f=c==null?void 0:c.order)!=null?f:null,d)}case"show":return m.map(d=>d.key===c.key?y(s({},d),{display:!0}):d);case"hide":return m.map(d=>d.key===c.key?y(s({},d),{display:!1}):d);case"reset":return p;case"init":return c.data;default:throw new Error("Action not supported")}}return(0,Mi.useEffect)(()=>{ee(void 0,null,function*(){let p=yield n("columnsSetting",[]),c=yield n("columnsOrder",null),m=p.map(g=>g==null?void 0:g.key),f=e.map(g=>g==null?void 0:g.key),d=!(0,ny.default)(m.sort(),f.sort()),u=ni(d?null:c,e),h=u==null?void 0:u.map(g=>{var x,b;let C=d?g:p.find(I=>I.key===g.key)||g;return y(s({},g),{selected:(x=C.selected)!=null?x:!1,display:(b=C.display)!=null?b:g.display!==!1&&!(g!=null&&g.selectable)})});l({type:"init",data:h})})},[e]),(0,Mi.useEffect)(()=>{o&&o(i)},[i]),{dispatch:l,state:i}},ly=ib;var hr=require("react"),sy=require("robot3");function ay(e,t={}){let r=(0,hr.useRef)(null);r.current===null&&(r.current=(0,sy.interpret)(e,()=>{i(o.machine.current),a(o.context)},t));let o=r.current,[n,i]=(0,hr.useState)(o.machine.current),[l,a]=(0,hr.useState)(o.context),p=(0,hr.useCallback)((m,f={})=>{o.send(s({type:m},f))},[o]),c=(0,hr.useCallback)(m=>{var u;let f=o.machine.state.value.transitions;if(!f.has(m))return!1;let d=f.get(m);for(let h of d)if((u=h.guards)!=null&&u.call(h,o.context)||!h.guards)return!0;return!1},[o.context,o.machine.state.value.transitions]);return[n,l,p,c]}var Ps=require("react"),cy=v(require("lodash/debounce")),py=v(require("lodash/isEqual")),vc=v(require("lodash/isNil")),lb=({hasCheckBox:e,onFocusChange:t=()=>{},columns:r=[]})=>{let o=(0,Ps.useRef)(void 0),[n,i]=(0,Ps.useState)(),l=f=>e?f-1:f,p=(0,cy.default)((f,d)=>{let[u,h]=(o==null?void 0:o.current)||[];!(0,vc.default)(f)&&!(0,vc.default)(d)?(0,py.default)([u,h],[f,l(d)])?(o.current=void 0,i(void 0),t({from:[f,l(d)]})):t({to:[u,h],from:[f,l(d)]}):t({to:[u,h]})},250);return{handleCellBlur:(f,d)=>{p(f,d)},handleCellFocus:(f,d)=>{var u,h;i([f,l(d),(u=r[l(d)])==null?void 0:u.key]),o.current||p(null,null),o.current=[f,l(d),(h=r[l(d)])==null?void 0:h.key]},focusedCell:o.current,currentCell:n,setCurrentCell:(f,d)=>{var u;return i([f,l(d),(u=r[l(d)])==null?void 0:u.key])}}},dy=lb;var my=require("tss-react/mui"),sb=(0,my.makeStyles)()(e=>({GridRow:{display:"flex",flexDirection:"column"},defaultStyle:{outline:"none"},GridColumn:{display:"flex",flexDirection:"column",flex:"1 1 auto"},LeftSideGridContainer:{flex:"0 0 30px"},LeftSideGrid:{overflow:"hidden !important"},HeaderGrid:{width:"100%",overflow:"hidden !important","&_withBorders":{borderRight:"1px solid black",borderLeft:"1px solid black",borderTop:"1px solid black"}},mb32:{marginBottom:"32px"},BodyGrid:{width:"100%","&_withBorders":{border:"1px solid black"}},cell:{fontSize:12,fontStretch:"normal",fontStyle:"normal",lineHeight:"32px",letterSpacing:"normal",color:"#000000",overflow:"hidden"},thumbnail:{lineHeight:100,display:"flex"},alignRight:{textAlign:"right","& input":{textAlign:"right"}},alignLeft:{textAlign:"left","& input":{textAlign:"left"}},alignCenter:{textAlign:"center","& input":{textAlign:"center"}},align:{display:"flex","& > div":{width:"100%"}},alignVerticalCenter:{alignItems:"center"},alignVerticalBottom:{alignItems:"flex-end"},alignVerticalTop:{alignItems:"flexStart"},center:{textAlign:"center"},hasSelectAll:{display:"flex",justifyContent:"center"},cbCell:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px"},checkbox:{position:"absolute"},disabled:{opacity:.3},container:{height:"14px",width:"14px",display:"block",position:"relative",cursor:"pointer",fontSize:"22px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none","& input":{position:"absolute",opacity:0,cursor:"pointer",height:0,width:0},"&:hover input:not(:disabled) ~ checkmark":{backgroundColor:"#bcf8f8"},'& input:checked ~ [class*="checkmark"]':{backgroundColor:"#0bd1c4",height:"14px",width:"14px",border:"none"},"& input:checked ~ checkmark:after":{display:"block"},"& input:disabled ~ checkmark":{opacity:.3,cursor:"notAllowed"},"& checkmark:after":{left:5,top:1,width:3,height:7,border:"solid white",borderBottomRightRadius:1,borderWidth:"0 15px 15px 0",transform:"rotate(40deg)"}},checkmark:{position:"absolute",height:"12px",width:"12px",borderRadius:"2px",border:"solid 1px #9b9b9b","&:after":{content:'""',position:"absolute",display:"none"}},lockRow:{backgroundColor:"#ebebeb",display:"flex",alignItems:"center",color:"#9b9b9b"},selectedRow:{backgroundColor:e.palette.primary.light},groupRow:{backgroundColor:e.palette.primary.main,color:"white",textTransform:"uppercase",cursor:"pointer"},hoverRow:{backgroundColor:"#9ae8e8"},displayNone:{display:"none"},onError:{backgroundColor:e.palette.warning.light},pointer:{cursor:"pointer"}})),uy=sb;var Le=require("react/jsx-runtime"),fy={selectableRowKey:"id"},hy=xe.default.memo(xe.default.forwardRef(function({data:t,maxHeight:r,config:o,selectRows:n,handleRowsToDelete:i,handleValidateEdit:l,handleValidateAdd:a,handleCancel:p,customHeader:c=!1,customFooter:m=!1,onCustomScroll:f,onRowClick:d,onRowContextMenu:u,isEdit:h,tableKeyName:g,defaultSelectedRows:C,onFocusChange:x,onKeyDown:b,onClick:I,onDoubleClick:D,setVTState:S,validationResolver:T,validationRules:k,onColumnsChange:w,onFilterChange:A,onChipFocus:O,onChipBlur:E,columnsConfig:L,onSearchBarEnterKeyDown:V,onCustomExportClick:H,isExportAllPages:M},z){let $=(0,xe.useMemo)(()=>(0,wc.default)(o.columns),[]),{classes:K}=P0(),{classes:X}=uy(),[Z,R]=(0,xe.useState)(0),[N,U]=(0,xe.useState)(0),[re,de]=(0,xe.useState)(0),[Re,W]=(0,xe.useState)(!1),Y=(0,xe.useMemo)(()=>{if(L!=null&&L.data){let{data:se}=L,Ce=se.map(ct=>y(s({},ct),{_isCreatable:!0}));return y(s(s({},fy),o),{columns:[...(0,wc.default)(o.columns),...Ce]})}return s(s({},fy),o)},[o])||!1,{insertPosition:q=st.TOP,columns:ge,hasFooter:ne=!1,hasHeader:ce=!0,selectableRow:Ve=!1,selectableRowKey:Ne="id",selectableOnlyOneRow:me=!1,customSelectionHeader:gt,minCellWidth:ue=100,selectableBarInfo:gr=!1,modeAdd:$e=!1,modeEdit:$t=!1,modeDelete:jt=!1,modeGroup:yt=!1,alwaysInEdition:Ao=!1,dynamicHeight:Un=!0,wrapHeaderText:He=!1,rowHeight:yr=32,headerHeight:Do,fixedColumns:Lt=0,onCustomAdd:je,addOneByOne:xr=!1,hasSearchbar:Cr=!0,groupKey:Nt="id",collapsedGroup:Te=!1,defaultCollapsedGroups:xt=[],hideToolbar:br=!1,hideCheckbox:rt=!1,defaultOrder:go="",defaultOrderDirection:Lo=lo.ASC,addRowLabel:No,onCustomOrderChange:_r,sortedGroup:Wn,unlockedRows:Po,isSubLevels:G}=Y,J=(0,xe.useMemo)(()=>r2(Po,Ne),[Po]),[oe,ie,pe,Ue]=ay(x2,y(s({},h2),{selectedRows:mt(C),groupCollapsed:new Set(xt)})),{order:ve,orderDirection:Pe,onOrderChange:Ct}=H2(go,Lo,_r),{state:we,dispatch:be}=ly(ge,g,Y,w),[Ee]=ry(z),Ye="checkboxColumn",Ai="levelColumn",Di=t2(),bt=(0,xe.useMemo)(()=>ve?yt?oy(t==null?void 0:t.map((se,Ce)=>y(s({},se),{_originIndex:Ce})),we,ve,Pe,Nt,Wn):ty(t==null?void 0:t.map((se,Ce)=>y(s({},se),{_originIndex:Ce})),we,ve,Pe):t==null?void 0:t.map((se,Ce)=>y(s({},se),{_originIndex:Ce})),[t,ve,Pe]),St=(Ve||me||$e||$t||yt)&&(rt===!1||rt instanceof Function),{handleCellBlur:Cy,handleCellFocus:by,currentCell:Sy,setCurrentCell:Ic}=dy({hasCheckBox:St,onFocusChange:x,columns:we.filter(({display:se})=>se!==!1)});Ee!=null&&Ee.current&&(Ee.current.setCurrentCell=Ic);let Yt=(0,xe.useMemo)(()=>{let se=we.filter(ct=>(ct==null?void 0:ct.display)!==!1),Ce=[];return G&&(Ce=[{key:Ai,width:100,ignoreExport:!0}]),St&&Ce.push({key:Ye,width:50,ignoreExport:!0,hasCheckBoxHidden:rt}),Ce.concat(se)},[we,St]),{dataRows:Li,addRows:Fr,groupCollapsed:vy}=ie;(0,xe.useEffect)(()=>{S&&S({setCurrentCell:Ic})},[]),(0,xe.useEffect)(()=>{Fr.length===0&&oe===Xe.ADD&&pe("cancel")},[Fr]);let Ni=(0,xe.useMemo)(()=>{if(yt){let se=[...Li],Ce={};Fr.forEach(ct=>{let $n=ct[Nt];Ce[$n]||(Ce[$n]=[]),Ce[$n].push(ct)});for(let ct in Ce){let $n=q===st.BOTTOM?"findLastIndex":"findIndex",_s=se[$n](({[Nt]:Ey,parentRowIndex:My})=>My!==void 0&&Number.parseInt(ct,10)===Ey);_s>-1&&se.splice(q===st.BOTTOM?_s+1:_s,0,...Ce[ct])}return se}return q===st.BOTTOM?[...Li,...Fr]:[...Fr,...Li]},[Fr,Li,q]);(0,xe.useEffect)(()=>{var se;h==null||h((se=bi)==null?void 0:se(Ni))},[h,bi,Ni]);let wy=(0,xe.useMemo)(()=>W0(Yt),[Yt]),Iy=(0,xe.useCallback)(()=>yt?Te?X4(bt,q):Z4(bt,Nt,ve,Pe):bt,[bt,yt,Te,Nt]);(0,xe.useEffect)(()=>{let se=Iy();if(pe("updateCtx",{data:se}),Ao&&(se==null?void 0:se.length)>0){let Ce=se.map(ct=>ct[Ne]);pe("alwaysEditMode",{keys:Ce})}else!Ao&&oe===vn.PERMANENT_EDIT&&pe("leaveAlwaysEditMode")},[bt,Ao]);let{filteredRows:Pt}=Y4({apiRef:Ee,onFilterChange:A,rows:Ni,groupCollapsed:vy,searchableColumns:wy}),Ty=($t||jt||gr||Cr)&&!br,Bs=se=>{je?je(se):pe("add",{addOneByOne:xr,position:q,groupKey:Nt,groupId:se,selectableRowKey:Ne})},Os=(0,xe.useMemo)(()=>J0(Yt,Z,ue),[Yt,Z]),ky=Yt.reduce((se,{key:Ce})=>se+=Os[Ce],0),Gn=(0,xe.useCallback)(({index:se})=>{let{key:Ce}=Yt[se];return Os[Ce]},[Os]),Ry=()=>{let[se,Ce]=(0,xe.useState)(!0);return(0,xe.useEffect)(()=>{setTimeout(()=>{Ce(!1),W(!0)},0)},[]),se?(0,Le.jsx)("div",{style:{display:"none"},children:(0,Le.jsx)("div",{className:[K.feed0]})}):(0,Le.jsx)(Le.Fragment,{})};return Y?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Ry,{}),(0,Le.jsx)("div",{style:{maxHeight:r||"inherit"},"data-role":"table",id:g,"data-rows-count":Pt==null?void 0:Pt.length,"data-columns-count":Yt==null?void 0:Yt.length,className:X.GridColumn,children:(0,Le.jsxs)(er.Provider,{value:{state:oe,context:ie,send:pe,can:Ue,allRows:Ni,displayableRows:Pt,tableKeyName:g,apiRef:Ee,config:y(s({selectableRowKey:"id"},Y),{unlockedRowsIds:J,columns:Yt,columnsRaw:we,defaultColumnsOrder:Object.freeze($)}),props:{selectRows:n,defaultSelectedRows:C,validationResolver:T,validationRules:k}},children:[(0,Le.jsx)(Z2,{}),(0,Le.jsx)("div",{id:`vt-totalrows-${Di}`,"data-totalrows":Pt==null?void 0:Pt.length}),gt||Ty&&(0,Le.jsx)(j4,{displayableRows:Pt,handleRowsToDelete:i,handleValidateEdit:l,handleValidateAdd:a,handleCancel:p,onChangeColumnsSetting:be,onChipFocus:O,onChipBlur:E,columnsConfig:L,onSearchBarEnterKeyDown:V,isExportAllPages:M,onCustomExportClick:H}),c&&xe.default.cloneElement(c,{fixedColumnCount:Lt+ +St,scrollLeft:re,columnWidth:Gn}),ce&&(0,Le.jsx)(Vg,{columnWidth:Gn,height:He?Do:32,rowHeight:He?Do:32,scrollLeft:re,fixedColumnCount:Lt+ +St,width:Z,displayableRows:Pt,order:ve,orderDirection:Pe,onOrderChange:Ct}),$e&&!yt&&q===st.TOP&&(0,Le.jsx)(ai,{onAdd:Bs,label:No}),(0,Le.jsx)(gg,{tableKeyName:g,columnWidth:Gn,displayableRows:Pt,totalWidth:ky,onScroll:se=>{de(se.scrollLeft),U(se.scrollTop),typeof f=="function"&&f(se)},scrollLeft:re,scrollTop:N,rowHeight:yr,fixedColumnCount:Lt+ +St,onCellFocus:by,onCellBlur:Cy,onClick:I,onDoubleClick:D,onRowClick:d,onRowContextMenu:u,width:Z,focusedCell:Sy,onKeyDown:b,setWidth:R,isSubLevels:G,handleAddClick:Bs,addRowLabel:No}),$e&&!yt&&q===st.BOTTOM&&(0,Le.jsx)(ai,{onAdd:Bs,label:No}),ne&&(0,Le.jsx)(kg,{modeEdit:$t,columnWidth:Gn,displayableRows:Pt,scrollLeft:re,fixedColumnCount:Lt+ +St,width:Z}),m&&xe.default.cloneElement(m,{fixedColumnCount:Lt+ +St,scrollLeft:re,columnWidth:Gn})]})})]}):null}));hy.defaultProps={heightTable:"400px",maxHeight:"600px",widthTable:"100%",selectRows:()=>{},isEdit:()=>{},handleRowsToDelete:()=>{},handleValidateEdit:()=>{},handleValidateAdd:()=>{},handleCancel:()=>{},defaultSelectedRows:[],customHeader:!1,customFooter:!1,onDoubleClick:()=>{},onClick:()=>{},onKeyDown:()=>{},onChipFocus:()=>{},onChipBlur:()=>{},isExportAllPages:!1,onCustomExportClick:null};var gy=hy;var xy=require("react/jsx-runtime");function ab({config:e={},children:t}){return(0,xy.jsx)(Kl.Provider,{value:e,children:t})}var yy=ab;
|