@tap-payments/os-micro-frontend-shared 0.3.222 → 0.3.224

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.
Files changed (202) hide show
  1. package/build/_chunks/{chunk-ZVC3PXJB.js → chunk-32CPM4J3.js} +1 -1
  2. package/build/_chunks/{chunk-LORKYJPD.js → chunk-33C463YL.js} +1 -1
  3. package/build/_chunks/{chunk-FUHQHDFU.js → chunk-44UNMXKS.js} +1 -1
  4. package/build/_chunks/{chunk-Y4MBLN4R.js → chunk-4AFJCOBN.js} +1 -1
  5. package/build/_chunks/{chunk-SDNCK73U.js → chunk-4SWNFKMX.js} +1 -1
  6. package/build/_chunks/{chunk-2OTSLKKQ.js → chunk-4XXNGLS6.js} +1 -1
  7. package/build/_chunks/{chunk-PCOJKH4L.js → chunk-545BCGVE.js} +1 -1
  8. package/build/_chunks/{chunk-FWVZQRRW.js → chunk-5DLQTR4L.js} +1 -1
  9. package/build/_chunks/{chunk-4DDBUSCP.js → chunk-5EP3LEOE.js} +1 -1
  10. package/build/_chunks/{chunk-PH42ORBN.js → chunk-64ILCI3S.js} +1 -1
  11. package/build/_chunks/{chunk-ZKXJ2YUK.js → chunk-6VQVT7U4.js} +1 -1
  12. package/build/_chunks/chunk-6YJ5EJTE.js +2 -0
  13. package/build/_chunks/{chunk-A422CNWA.js → chunk-7GVPGH6A.js} +1 -1
  14. package/build/_chunks/{chunk-6JTFF3VW.js → chunk-AFDB2YM6.js} +1 -1
  15. package/build/_chunks/{chunk-QOBRDOX3.js → chunk-AIT2A7YM.js} +1 -1
  16. package/build/_chunks/{chunk-LVMXAYG4.js → chunk-BIJMWICZ.js} +1 -1
  17. package/build/_chunks/{chunk-IY2CABAN.js → chunk-BL45EG5I.js} +1 -1
  18. package/build/_chunks/{chunk-T6FBC4KN.js → chunk-CAKSLKXG.js} +1 -1
  19. package/build/_chunks/{chunk-FW6NJ64Y.js → chunk-DBFH6OKQ.js} +1 -1
  20. package/build/_chunks/{chunk-7HAWTKHS.js → chunk-DEQ2OTPX.js} +1 -1
  21. package/build/_chunks/{chunk-ALEWQKNK.js → chunk-DKMFQFZU.js} +1 -1
  22. package/build/_chunks/{chunk-MIWTFNVW.js → chunk-DPOBKAVX.js} +1 -1
  23. package/build/_chunks/{chunk-XJRUEHRU.js → chunk-EI4VQCCM.js} +1 -1
  24. package/build/_chunks/{chunk-IUQKBIXU.js → chunk-F2LUAXXO.js} +1 -1
  25. package/build/_chunks/{chunk-5R6QHRGT.js → chunk-FAKPBQH3.js} +1 -1
  26. package/build/_chunks/{chunk-NE4LXCYK.js → chunk-FKG3SYY6.js} +1 -1
  27. package/build/_chunks/{chunk-2M56LBVZ.js → chunk-FNWPZLRV.js} +1 -1
  28. package/build/_chunks/{chunk-6F3F5KWC.js → chunk-FTG5LY7I.js} +1 -1
  29. package/build/_chunks/{chunk-K5A55DZO.js → chunk-GAL3X7PR.js} +1 -1
  30. package/build/_chunks/{chunk-UR23DZC6.js → chunk-GIUONT72.js} +1 -1
  31. package/build/_chunks/{chunk-QKHBIWGZ.js → chunk-GNNMQUBT.js} +1 -1
  32. package/build/_chunks/{chunk-PTLDMQUB.js → chunk-HKQY74IJ.js} +1 -1
  33. package/build/_chunks/{chunk-RPSV65AM.js → chunk-J4V7VRJY.js} +1 -1
  34. package/build/_chunks/{chunk-FCPQ7FTN.js → chunk-JEYLI22W.js} +1 -1
  35. package/build/_chunks/{chunk-4QYIGMQJ.js → chunk-JORNMG4I.js} +1 -1
  36. package/build/_chunks/{chunk-V4IMVJZP.js → chunk-JQTHWXQR.js} +1 -1
  37. package/build/_chunks/{chunk-CBV3CLCA.js → chunk-KD4RSWN6.js} +1 -1
  38. package/build/_chunks/{chunk-UWRIO72X.js → chunk-KS7YB4UX.js} +1 -1
  39. package/build/_chunks/{chunk-BFGGTWCJ.js → chunk-KSTOW7O3.js} +1 -1
  40. package/build/_chunks/{chunk-PMZQWHUD.js → chunk-KV7KQ6MZ.js} +1 -1
  41. package/build/_chunks/{chunk-B7FSN6KR.js → chunk-LIHS4ZYZ.js} +1 -1
  42. package/build/_chunks/{chunk-OLWGUR2Y.js → chunk-LOGPCQ24.js} +1 -1
  43. package/build/_chunks/{chunk-ARRLK626.js → chunk-MBTSXCJW.js} +1 -1
  44. package/build/_chunks/{chunk-IVDDMAXY.js → chunk-MHZSYMQP.js} +1 -1
  45. package/build/_chunks/{chunk-RZQR6OKW.js → chunk-MMFW3YZV.js} +1 -1
  46. package/build/_chunks/{chunk-POIIR36Y.js → chunk-MQOX7MKN.js} +1 -1
  47. package/build/_chunks/{chunk-4VFYFG3T.js → chunk-ND2SYD7Y.js} +1 -1
  48. package/build/_chunks/{chunk-HKH2SAJZ.js → chunk-O4UZRDVR.js} +1 -1
  49. package/build/_chunks/{chunk-MQ5E5PIS.js → chunk-OAEOQ7AZ.js} +1 -1
  50. package/build/_chunks/{chunk-JGAKV56G.js → chunk-OBHJVUFA.js} +1 -1
  51. package/build/_chunks/{chunk-TFM77CT6.js → chunk-OYJYQKLK.js} +1 -1
  52. package/build/_chunks/{chunk-MOX5HIJO.js → chunk-P57UJVYY.js} +1 -1
  53. package/build/_chunks/{chunk-RH5G5WEQ.js → chunk-PHVELRMX.js} +1 -1
  54. package/build/_chunks/{chunk-DYMRORFM.js → chunk-QGQRTANO.js} +1 -1
  55. package/build/_chunks/{chunk-5SZCA7UT.js → chunk-QZAVOGKZ.js} +1 -1
  56. package/build/_chunks/{chunk-MAI6ZMUP.js → chunk-R5PUIGMB.js} +1 -1
  57. package/build/_chunks/{chunk-QQIX3XWR.js → chunk-SWXXEAIZ.js} +1 -1
  58. package/build/_chunks/{chunk-EKVX2K2J.js → chunk-T5WRDF6Z.js} +1 -1
  59. package/build/_chunks/{chunk-R2LHC6Z5.js → chunk-TH5E43JD.js} +1 -1
  60. package/build/_chunks/{chunk-DAYM6H2G.js → chunk-TIO3V7XA.js} +1 -1
  61. package/build/_chunks/{chunk-LK227QND.js → chunk-TKU4GMEV.js} +1 -1
  62. package/build/_chunks/{chunk-3W63LHMY.js → chunk-TY3LDUTP.js} +1 -1
  63. package/build/_chunks/{chunk-TYMNUXPL.js → chunk-U62XSJM5.js} +1 -1
  64. package/build/_chunks/{chunk-OKG77XSE.js → chunk-UD33MPJX.js} +1 -1
  65. package/build/_chunks/{chunk-OEI2M73L.js → chunk-UO33K26R.js} +1 -1
  66. package/build/_chunks/{chunk-M5HS3EYQ.js → chunk-V2RLDP5A.js} +2 -2
  67. package/build/_chunks/{chunk-RWAHMAFU.js → chunk-VQ4INPUZ.js} +1 -1
  68. package/build/_chunks/{chunk-YEBWHL2C.js → chunk-VTJJFPK5.js} +1 -1
  69. package/build/_chunks/{chunk-C746JR2U.js → chunk-W3D5YN4V.js} +1 -1
  70. package/build/_chunks/{chunk-7KODOGMP.js → chunk-W4PURLBP.js} +1 -1
  71. package/build/_chunks/{chunk-5DVGPGJM.js → chunk-WAY7BWQL.js} +1 -1
  72. package/build/_chunks/{chunk-V62DA4NC.js → chunk-WE7NB24K.js} +1 -1
  73. package/build/_chunks/{chunk-PWQC7GH2.js → chunk-XBUO2UHM.js} +1 -1
  74. package/build/_chunks/{chunk-3QLFEKLL.js → chunk-XSRIBZ5H.js} +1 -1
  75. package/build/_chunks/{chunk-O3YBDJOY.js → chunk-YPVFVBG3.js} +1 -1
  76. package/build/_chunks/{chunk-5NOCNTU2.js → chunk-ZGZK4AZ3.js} +1 -1
  77. package/build/components/ActionsDropdownMenu/index.js +1 -1
  78. package/build/components/ActiveFilterChip/index.js +1 -1
  79. package/build/components/AmountInput/index.js +1 -1
  80. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  81. package/build/components/AppServices/index.js +1 -1
  82. package/build/components/AppServicesBar/index.js +1 -1
  83. package/build/components/AppWindowWrapper/index.js +1 -1
  84. package/build/components/AreaChart/index.js +1 -1
  85. package/build/components/Autocomplete/index.js +1 -1
  86. package/build/components/BrandLogo/index.js +1 -1
  87. package/build/components/Calender/index.js +1 -1
  88. package/build/components/ChipStack/index.js +1 -1
  89. package/build/components/ColorPicker/index.js +1 -1
  90. package/build/components/ColumnViews/index.js +1 -1
  91. package/build/components/ConfirmDialog/index.js +1 -1
  92. package/build/components/CountryFilter/index.js +1 -1
  93. package/build/components/CountryFlag/index.js +1 -1
  94. package/build/components/CurrencyAmount/index.js +1 -1
  95. package/build/components/CurrencySymbol/index.js +1 -1
  96. package/build/components/CustomBackdrop/index.js +1 -1
  97. package/build/components/Customer/index.js +1 -1
  98. package/build/components/DateFilter/index.js +1 -1
  99. package/build/components/DeviceIcon/index.js +1 -1
  100. package/build/components/DisplayAmount/index.js +1 -1
  101. package/build/components/DropdownMenu/index.js +1 -1
  102. package/build/components/EmptyState/index.js +1 -1
  103. package/build/components/Error/index.js +1 -1
  104. package/build/components/ErrorToast/index.js +1 -1
  105. package/build/components/ExpandableSideBar/index.js +1 -1
  106. package/build/components/FileInputPreview/index.js +1 -1
  107. package/build/components/FilePreview/index.js +1 -1
  108. package/build/components/FileUpload/index.js +1 -1
  109. package/build/components/FileUploader/index.js +1 -1
  110. package/build/components/FilterDropdown/index.js +1 -1
  111. package/build/components/Filters/index.js +1 -1
  112. package/build/components/FlippingCard/index.js +1 -1
  113. package/build/components/FormSelect/index.js +1 -1
  114. package/build/components/GroupedSelect/index.js +1 -1
  115. package/build/components/HeatMap/index.js +1 -1
  116. package/build/components/IconWithBadge/index.js +1 -1
  117. package/build/components/InputBase/index.js +1 -1
  118. package/build/components/Inputs/index.js +1 -1
  119. package/build/components/JSONViewer/index.js +1 -1
  120. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  121. package/build/components/ListColumnFilter/index.js +1 -1
  122. package/build/components/ListHeader/index.js +1 -1
  123. package/build/components/ListLayout/index.js +1 -1
  124. package/build/components/Loader/index.js +1 -1
  125. package/build/components/MFWidgetLoader/index.js +1 -1
  126. package/build/components/MaskedText/index.js +1 -1
  127. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  128. package/build/components/MerchantLogo/index.js +1 -1
  129. package/build/components/MerchantsDropdown/index.js +1 -1
  130. package/build/components/MultiSelect/index.js +1 -1
  131. package/build/components/NestedDropdown/index.js +1 -1
  132. package/build/components/NestedMultiSelect/index.js +1 -1
  133. package/build/components/OpenFileInNewTab/index.js +1 -1
  134. package/build/components/PaymentSourceFilter/index.js +1 -1
  135. package/build/components/PhoneFilter/index.js +1 -1
  136. package/build/components/PhoneInput/index.js +1 -1
  137. package/build/components/ProgressRing/index.js +1 -1
  138. package/build/components/RHFGroupedSelect/index.js +1 -1
  139. package/build/components/RHFInput/index.js +1 -1
  140. package/build/components/RHFPhoneInput/index.js +1 -1
  141. package/build/components/RHFSwitch/index.js +1 -1
  142. package/build/components/RadioGroup/index.js +1 -1
  143. package/build/components/RangeCalender/index.js +1 -1
  144. package/build/components/RatingCount/index.js +1 -1
  145. package/build/components/ReferenceTypeFilter/index.js +1 -1
  146. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  147. package/build/components/SearchButton/index.js +1 -1
  148. package/build/components/SearchInput/index.js +1 -1
  149. package/build/components/SheetViewChip/index.js +1 -1
  150. package/build/components/StatusBar/index.js +1 -1
  151. package/build/components/StatusButton/index.js +1 -1
  152. package/build/components/StatusFilter/index.js +1 -1
  153. package/build/components/StatusIcons/index.js +1 -1
  154. package/build/components/StatusLabel/index.js +1 -1
  155. package/build/components/TableCells/index.js +1 -1
  156. package/build/components/TableReports/index.js +1 -1
  157. package/build/components/TextInput/index.js +1 -1
  158. package/build/components/Timepicker/index.js +1 -1
  159. package/build/components/ToggleView/index.js +1 -1
  160. package/build/components/Toolbar/index.js +1 -1
  161. package/build/components/ToolbarIcon/index.js +1 -1
  162. package/build/components/TreeDropdown/index.js +1 -1
  163. package/build/components/VerificationIcon/index.js +1 -1
  164. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  165. package/build/components/VirtualTables/index.js +1 -1
  166. package/build/components/Widget/index.js +1 -1
  167. package/build/components/WindowSideBar/index.js +1 -1
  168. package/build/components/index.d.ts +0 -2
  169. package/build/components/index.js +1 -1
  170. package/build/components/primitives/index.js +1 -1
  171. package/build/constants/index.d.ts +0 -1
  172. package/build/constants/index.js +1 -1
  173. package/build/hooks/index.js +1 -1
  174. package/build/index.js +1 -1
  175. package/build/utils/index.js +1 -1
  176. package/package.json +1 -1
  177. package/build/_chunks/chunk-QIRHZ3GG.js +0 -2
  178. package/build/components/Discount/DiscountDropdown/DiscountDropdown.d.ts +0 -13
  179. package/build/components/Discount/DiscountDropdown/index.d.ts +0 -2
  180. package/build/components/Discount/DiscountDropdown/style.d.ts +0 -12
  181. package/build/components/Discount/DiscountRateDropdown/DiscountRateDropdown.d.ts +0 -12
  182. package/build/components/Discount/DiscountRateDropdown/index.d.ts +0 -2
  183. package/build/components/Discount/DiscountRateDropdown/style.d.ts +0 -7
  184. package/build/components/Discount/TotalDiscount/TotalDiscount.d.ts +0 -12
  185. package/build/components/Discount/TotalDiscount/index.d.ts +0 -1
  186. package/build/components/Discount/TotalDiscount/style.d.ts +0 -12
  187. package/build/components/Discount/index.d.ts +0 -4
  188. package/build/components/Discount/index.js +0 -1
  189. package/build/components/Discount/utils.d.ts +0 -8
  190. package/build/components/VAT/TotalVAT/TotalVAT.d.ts +0 -12
  191. package/build/components/VAT/TotalVAT/index.d.ts +0 -1
  192. package/build/components/VAT/TotalVAT/style.d.ts +0 -12
  193. package/build/components/VAT/VATDropdown/VATDropdown.d.ts +0 -11
  194. package/build/components/VAT/VATDropdown/index.d.ts +0 -1
  195. package/build/components/VAT/VATDropdown/style.d.ts +0 -7
  196. package/build/components/VAT/VATRateDropdown/VATRateDropdown.d.ts +0 -10
  197. package/build/components/VAT/VATRateDropdown/index.d.ts +0 -1
  198. package/build/components/VAT/VATRateDropdown/style.d.ts +0 -7
  199. package/build/components/VAT/index.d.ts +0 -4
  200. package/build/components/VAT/index.js +0 -1
  201. package/build/components/VAT/utils.d.ts +0 -7
  202. package/build/constants/rate.d.ts +0 -6
@@ -1 +1 @@
1
- import {r,p as p$1}from'./chunk-DAYM6H2G.js';import {zc}from'./chunk-2OTSLKKQ.js';import {useId,Fragment}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(p)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`auto repeat(${t}, 1fr)`,gridTemplateRows:`auto repeat(${e}, 1fr)`,gap:"6px"})),L=styled(p)(()=>({width:24,position:"sticky",top:0,left:0,zIndex:3})),g=styled(p)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0",position:"sticky",top:0,zIndex:2,backgroundColor:"#fbfbfb"})),M=styled(p)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),O=styled(g)(()=>({fontSize:"9px",top:"auto",left:0,zIndex:1})),w=styled(p)(()=>({padding:"22px 12px",overflow:"auto",maxHeight:"480px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:s,tooltip:l}){let c=zc(useId(),"heat-map"),d=e.labels,y=t.labels;return jsxs(w,{id:c,"data-testid":"HeatMap",children:[jsxs(u,{className:"x-labels",rows:1,columns:d.length,children:[jsx(L,{}),d.map((r,i)=>jsx(g,{children:e.render?e.render(r):r},`x-${i}-${r}`))]}),jsx(u,{className:"y-labels",rows:y.length,columns:d.length,children:y.map((r$1,i)=>jsxs(Fragment,{children:[jsx(O,{sx:{minWidth:"25px"},children:t.render?t.render(r$1):r$1},`y-${i}-${r$1}`),d.map((m,h)=>{if(s)return jsx(r,{variant:"rectangular",width:"24px",height:"8px"},`${m}-${h}`);let f=n?.[m]?.[r$1]??{};return jsx(p$1,{title:l?.render&&f?.value?l.render(f,m,r$1):null,children:jsx(M,{percentage:f?.colorOpacityDegree})},`${m}-${h}`)})]},`y-${i}-${r$1}`))})]})}var H=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let s=n-t,l=(e-t)/s,c=Math.floor(l*10);return H[Math.max(0,Math.min(10,c))]}var j=x;export{D as a,j as b};
1
+ import {r,p as p$1}from'./chunk-TIO3V7XA.js';import {zc}from'./chunk-4XXNGLS6.js';import {useId,Fragment}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(p)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`auto repeat(${t}, 1fr)`,gridTemplateRows:`auto repeat(${e}, 1fr)`,gap:"6px"})),L=styled(p)(()=>({width:24,position:"sticky",top:0,left:0,zIndex:3})),g=styled(p)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0",position:"sticky",top:0,zIndex:2,backgroundColor:"#fbfbfb"})),M=styled(p)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),O=styled(g)(()=>({fontSize:"9px",top:"auto",left:0,zIndex:1})),w=styled(p)(()=>({padding:"22px 12px",overflow:"auto",maxHeight:"480px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:s,tooltip:l}){let c=zc(useId(),"heat-map"),d=e.labels,y=t.labels;return jsxs(w,{id:c,"data-testid":"HeatMap",children:[jsxs(u,{className:"x-labels",rows:1,columns:d.length,children:[jsx(L,{}),d.map((r,i)=>jsx(g,{children:e.render?e.render(r):r},`x-${i}-${r}`))]}),jsx(u,{className:"y-labels",rows:y.length,columns:d.length,children:y.map((r$1,i)=>jsxs(Fragment,{children:[jsx(O,{sx:{minWidth:"25px"},children:t.render?t.render(r$1):r$1},`y-${i}-${r$1}`),d.map((m,h)=>{if(s)return jsx(r,{variant:"rectangular",width:"24px",height:"8px"},`${m}-${h}`);let f=n?.[m]?.[r$1]??{};return jsx(p$1,{title:l?.render&&f?.value?l.render(f,m,r$1):null,children:jsx(M,{percentage:f?.colorOpacityDegree})},`${m}-${h}`)})]},`y-${i}-${r$1}`))})]})}var H=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let s=n-t,l=(e-t)/s,c=Math.floor(l*10);return H[Math.max(0,Math.min(10,c))]}var j=x;export{D as a,j as b};
@@ -1 +1 @@
1
- import {zc}from'./chunk-2OTSLKKQ.js';import {An}from'./chunk-M5HS3EYQ.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=zc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=zc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===An.reports.code||o===An.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
1
+ import {zc}from'./chunk-4XXNGLS6.js';import {An}from'./chunk-V2RLDP5A.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=zc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=zc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===An.reports.code||o===An.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
@@ -1 +1 @@
1
- import {j,b,d as d$1,n}from'./chunk-DAYM6H2G.js';import {Wb,zc}from'./chunk-2OTSLKKQ.js';import {Bj,Cj,Ij,Oe as Oe$1}from'./chunk-M5HS3EYQ.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),w=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:b$1,successFooter:pe,progressVariant:ae},ne)=>{let{t:a}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let B=Wb(x?.maxSize||0,0).toUpperCase(),c=useMemo(()=>{let ce=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),me=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||ce?a("invalidFileType"):me?`File is larger than ${B}`:R},[j,R,s,B,a]),C=useMemo(()=>n$1.length?jsxs(w,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Wb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Bj,width:56,height:56}),C]})}),pe??jsxs(Q,{children:[jsx(b,{variant:"secondary",size:"md",icon:jsx(d$1,{src:Cj,alt:"delete"}),onClick:()=>{H([]);},"aria-label":"delete"}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a("uploading")}),jsx(g,{children:a("wait")})]}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),C]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[c?jsx(d,{isError:true,children:c}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a("uploadBulkFile")}),S||!!c&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:b$1,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:c?Ij:Oe$1,width:56,height:56}),te,C,c?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a("uploadAgain")})}):jsxs(w,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",B]}),e&&jsx(g,{children:a("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=zc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Oe=ee;export{Oe as a};
1
+ import {j,b,d as d$1,n}from'./chunk-TIO3V7XA.js';import {Wb,zc}from'./chunk-4XXNGLS6.js';import {Bj,Cj,Ij,Oe as Oe$1}from'./chunk-V2RLDP5A.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),w=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:b$1,successFooter:pe,progressVariant:ae},ne)=>{let{t:a}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let B=Wb(x?.maxSize||0,0).toUpperCase(),c=useMemo(()=>{let ce=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),me=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||ce?a("invalidFileType"):me?`File is larger than ${B}`:R},[j,R,s,B,a]),C=useMemo(()=>n$1.length?jsxs(w,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Wb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Bj,width:56,height:56}),C]})}),pe??jsxs(Q,{children:[jsx(b,{variant:"secondary",size:"md",icon:jsx(d$1,{src:Cj,alt:"delete"}),onClick:()=>{H([]);},"aria-label":"delete"}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a("uploading")}),jsx(g,{children:a("wait")})]}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),C]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[c?jsx(d,{isError:true,children:c}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a("uploadBulkFile")}),S||!!c&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:b$1,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:c?Ij:Oe$1,width:56,height:56}),te,C,c?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a("uploadAgain")})}):jsxs(w,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",B]}),e&&jsx(g,{children:a("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=zc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Oe=ee;export{Oe as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-B7FSN6KR.js';import {zc,ac}from'./chunk-2OTSLKKQ.js';import {Bi,yk,ja,Ud,Tj,E,ml,C,vb}from'./chunk-M5HS3EYQ.js';import {useId,useMemo,useState,useCallback}from'react';import {useTranslation}from'react-i18next';import b from'@mui/material/Box';import V from'@mui/material/Popper';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var L=styled(b)(({theme:n})=>({background:n.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:148,width:"max-content",marginTop:"8px"})),l=styled(b,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:s})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",fontSize:"11px",fontWeight:500,color:n.palette.text.primary,"&:hover":{boxShadow:n.shadows[3]},...s&&{boxShadow:n.shadows[3]}})),u=styled(b)(()=>({display:"flex",alignItems:"center",gap:"8px"})),d=styled("img")(()=>({width:16,height:16,objectFit:"contain"})),$=styled(b)(()=>({height:27,display:"flex",alignItems:"center",padding:"0 12px",fontFamily:"Tap Sans",fontWeight:500,fontSize:"11px",lineHeight:"100%",letterSpacing:"0%",color:"#8D8D94",pointerEvents:"none",userSelect:"none"}));var F={refund:ml,flag:E,viewReceipt:Tj,viewApi:Ud,capture:ja,void:yk,clipboard:Bi};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=zc(useId(),"actions-dropdown-menu"),{t:E}=useTranslation(),I=!!n,f=useMemo(()=>h.filter(e=>e.isShown!==false),[h]),g=useMemo(()=>M.filter(e=>e.isShown!==false),[M]);return I?jsxs(b,{id:v,"data-testid":"ActionsDropdownMenu",children:[jsx(a,{onClick:s}),jsx(V,{open:I,anchorEl:n,placement:"bottom-end",sx:{zIndex:1e3},children:jsxs(L,{children:[f.map((e,r)=>jsx(l,{onClick:p=>{p.stopPropagation(),e.onClick?.(p);},sx:r===f.length-1&&g.length>0?{borderBottom:"1px solid",borderColor:"divider"}:void 0,children:jsxs(u,{children:[jsx(d,{src:F[e.icon]??e.icon??C,alt:"action-icon"}),jsx("span",{children:e.label})]})},`direct-${r}`)),g.length>0&&jsx($,{children:E("linkedActions")}),g.map(({render:e,icon:r,label:p,onClick:T,onRightClick:i},c)=>{let m=e?.();return e&&!m?null:m?jsx(b,{children:m},`linked-${c}`):jsxs(l,{onClick:a=>{a.stopPropagation(),T?.(a),s();},onContextMenu:i?a=>{i(a);}:void 0,children:[jsxs(u,{children:[r&&jsx(d,{src:r,alt:"linked-action-icon"}),jsx("span",{children:p})]}),jsx("img",{src:vb,alt:""})]},`linked-${c}`)})]})})]}):null};var ne=({appCode:n,appIcon:s,appName:h,appInfo:M,menuItems:v})=>{let[E,I]=useState(null),f=!!E,g=useCallback(i=>{let c=i.currentTarget.firstElementChild;I(c);},[]),e=useCallback(()=>{I(null);},[]),r=useMemo(()=>v?.filter(({isShown:i=true})=>i),[v]);if(!r?.length)return null;let p=M?.iconUrl??s,T=ac(M?.name)??h;return jsxs(b,{onMouseEnter:g,onMouseLeave:e,children:[jsxs(l,{open:f,children:[jsxs(u,{children:[p&&jsx(d,{src:p,alt:"app"}),jsx("span",{children:T})]}),jsx("img",{src:vb,alt:""})]}),jsx(V,{open:f,anchorEl:E,placement:"left-start",sx:{zIndex:1301},children:jsx(L,{sx:{marginTop:0},children:r.map(({render:i,label:c,icon:m,onClick:a,onContextMenu:k},J)=>jsx(b,{children:i?.()??jsx(l,{onClick:C=>{C.stopPropagation(),a?.(C);},onContextMenu:k?C=>{k(C);}:void 0,children:jsxs(u,{children:[m&&jsx(d,{src:m,alt:"icon"}),jsx("span",{children:c})]})})},`app-${J}`))})})]})};export{X as a,ne as b};
1
+ import {a}from'./chunk-LIHS4ZYZ.js';import {zc,ac}from'./chunk-4XXNGLS6.js';import {Bi,yk,ja,Ud,Tj,E,ml,C,vb}from'./chunk-V2RLDP5A.js';import {useId,useMemo,useState,useCallback}from'react';import {useTranslation}from'react-i18next';import b from'@mui/material/Box';import V from'@mui/material/Popper';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var L=styled(b)(({theme:n})=>({background:n.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:148,width:"max-content",marginTop:"8px"})),l=styled(b,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:s})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",fontSize:"11px",fontWeight:500,color:n.palette.text.primary,"&:hover":{boxShadow:n.shadows[3]},...s&&{boxShadow:n.shadows[3]}})),u=styled(b)(()=>({display:"flex",alignItems:"center",gap:"8px"})),d=styled("img")(()=>({width:16,height:16,objectFit:"contain"})),$=styled(b)(()=>({height:27,display:"flex",alignItems:"center",padding:"0 12px",fontFamily:"Tap Sans",fontWeight:500,fontSize:"11px",lineHeight:"100%",letterSpacing:"0%",color:"#8D8D94",pointerEvents:"none",userSelect:"none"}));var F={refund:ml,flag:E,viewReceipt:Tj,viewApi:Ud,capture:ja,void:yk,clipboard:Bi};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=zc(useId(),"actions-dropdown-menu"),{t:E}=useTranslation(),I=!!n,f=useMemo(()=>h.filter(e=>e.isShown!==false),[h]),g=useMemo(()=>M.filter(e=>e.isShown!==false),[M]);return I?jsxs(b,{id:v,"data-testid":"ActionsDropdownMenu",children:[jsx(a,{onClick:s}),jsx(V,{open:I,anchorEl:n,placement:"bottom-end",sx:{zIndex:1e3},children:jsxs(L,{children:[f.map((e,r)=>jsx(l,{onClick:p=>{p.stopPropagation(),e.onClick?.(p);},sx:r===f.length-1&&g.length>0?{borderBottom:"1px solid",borderColor:"divider"}:void 0,children:jsxs(u,{children:[jsx(d,{src:F[e.icon]??e.icon??C,alt:"action-icon"}),jsx("span",{children:e.label})]})},`direct-${r}`)),g.length>0&&jsx($,{children:E("linkedActions")}),g.map(({render:e,icon:r,label:p,onClick:T,onRightClick:i},c)=>{let m=e?.();return e&&!m?null:m?jsx(b,{children:m},`linked-${c}`):jsxs(l,{onClick:a=>{a.stopPropagation(),T?.(a),s();},onContextMenu:i?a=>{i(a);}:void 0,children:[jsxs(u,{children:[r&&jsx(d,{src:r,alt:"linked-action-icon"}),jsx("span",{children:p})]}),jsx("img",{src:vb,alt:""})]},`linked-${c}`)})]})})]}):null};var ne=({appCode:n,appIcon:s,appName:h,appInfo:M,menuItems:v})=>{let[E,I]=useState(null),f=!!E,g=useCallback(i=>{let c=i.currentTarget.firstElementChild;I(c);},[]),e=useCallback(()=>{I(null);},[]),r=useMemo(()=>v?.filter(({isShown:i=true})=>i),[v]);if(!r?.length)return null;let p=M?.iconUrl??s,T=ac(M?.name)??h;return jsxs(b,{onMouseEnter:g,onMouseLeave:e,children:[jsxs(l,{open:f,children:[jsxs(u,{children:[p&&jsx(d,{src:p,alt:"app"}),jsx("span",{children:T})]}),jsx("img",{src:vb,alt:""})]}),jsx(V,{open:f,anchorEl:E,placement:"left-start",sx:{zIndex:1301},children:jsx(L,{sx:{marginTop:0},children:r.map(({render:i,label:c,icon:m,onClick:a,onContextMenu:k},J)=>jsx(b,{children:i?.()??jsx(l,{onClick:C=>{C.stopPropagation(),a?.(C);},onContextMenu:k?C=>{k(C);}:void 0,children:jsxs(u,{children:[m&&jsx(d,{src:m,alt:"icon"}),jsx("span",{children:c})]})})},`app-${J}`))})})]})};export{X as a,ne as b};
@@ -1 +1 @@
1
- import {zc,Ia}from'./chunk-2OTSLKKQ.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=zc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ia(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
1
+ import {zc,Ia}from'./chunk-4XXNGLS6.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=zc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ia(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
@@ -1 +1 @@
1
- import {j as j$1,L,R as R$1}from'./chunk-DAYM6H2G.js';import {zc,Ka}from'./chunk-2OTSLKKQ.js';import {cl,dl}from'./chunk-M5HS3EYQ.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:u,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:u.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),x=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),F=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:u,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${u[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),$=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),j=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),I=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ae=r=>r>=12?"PM":"AM",R=()=>new Date().getMinutes(),N=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var G=["AM","PM"],f=12,h=59;function O({onChange:r,defaultTime:o,enableRealTimeChange:i,size:u="large"}){let p=zc(useId(),"time-picker"),[b,H]=useState(null),[a,U]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,y]=useState(o?.hour??N()),[l,C]=useState(o?.minute??R()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:a});},[c,l,a,i]);let q=e=>{H(e.currentTarget);},J=()=>{H(null),r?.({hour:c,minute:l,period:a});},K=e=>{U(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ka(s(Number(e.target.value)));if(m>12){e.preventDefault();return}y(m);},D=()=>{y(e=>e===12?1:e+1);},E=()=>{y(e=>e===1?12:e-1);},V=e=>{let m=Ka(s(Number(e.target.value)));if(m>59){e.preventDefault();return}C(m);},X=()=>{C(e=>e===59?(D(),0):e+1);},Y=()=>{C(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:u,open:v,onClick:q,children:`${s(c)}:${s(l)}${a.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(j,{children:[jsxs(k,{children:[jsx(x,{onClick:D,children:jsx("img",{src:cl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(c),onChange:Q}),jsx(x,{onClick:E,children:jsx("img",{src:dl,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(x,{onClick:X,children:jsx("img",{src:cl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(l),onChange:V}),jsx(x,{onClick:Y,children:jsx("img",{src:dl,alt:"arrow"})})]})]}),jsx($,{children:G.map(e=>jsx(F,{onClick:()=>{K(e);},selected:a===e,children:e},e))})]})})]})})}var ve=O;export{_ as a,ae as b,R as c,N as d,ce as e,G as f,f as g,h,O as i,ve as j};
1
+ import {j as j$1,L,R as R$1}from'./chunk-TIO3V7XA.js';import {zc,Ka}from'./chunk-4XXNGLS6.js';import {cl,dl}from'./chunk-V2RLDP5A.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:u,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:u.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),x=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),F=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:u,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${u[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),$=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),j=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),I=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ae=r=>r>=12?"PM":"AM",R=()=>new Date().getMinutes(),N=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var G=["AM","PM"],f=12,h=59;function O({onChange:r,defaultTime:o,enableRealTimeChange:i,size:u="large"}){let p=zc(useId(),"time-picker"),[b,H]=useState(null),[a,U]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,y]=useState(o?.hour??N()),[l,C]=useState(o?.minute??R()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:a});},[c,l,a,i]);let q=e=>{H(e.currentTarget);},J=()=>{H(null),r?.({hour:c,minute:l,period:a});},K=e=>{U(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ka(s(Number(e.target.value)));if(m>12){e.preventDefault();return}y(m);},D=()=>{y(e=>e===12?1:e+1);},E=()=>{y(e=>e===1?12:e-1);},V=e=>{let m=Ka(s(Number(e.target.value)));if(m>59){e.preventDefault();return}C(m);},X=()=>{C(e=>e===59?(D(),0):e+1);},Y=()=>{C(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:u,open:v,onClick:q,children:`${s(c)}:${s(l)}${a.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(j,{children:[jsxs(k,{children:[jsx(x,{onClick:D,children:jsx("img",{src:cl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(c),onChange:Q}),jsx(x,{onClick:E,children:jsx("img",{src:dl,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(x,{onClick:X,children:jsx("img",{src:cl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(l),onChange:V}),jsx(x,{onClick:Y,children:jsx("img",{src:dl,alt:"arrow"})})]})]}),jsx($,{children:G.map(e=>jsx(F,{onClick:()=>{K(e);},selected:a===e,children:e},e))})]})})]})})}var ve=O;export{_ as a,ae as b,R as c,N as d,ce as e,G as f,f as g,h,O as i,ve as j};
@@ -1,4 +1,4 @@
1
- import {b,k}from'./chunk-QQIX3XWR.js';import {a as a$1}from'./chunk-3W63LHMY.js';import {a,g,e}from'./chunk-BFGGTWCJ.js';import {aa,ba}from'./chunk-DAYM6H2G.js';import {a as a$2}from'./chunk-FUHQHDFU.js';import {a as a$3,b as b$1}from'./chunk-MUR4ILTY.js';import {zc,Bc}from'./chunk-2OTSLKKQ.js';import {Pc}from'./chunk-M5HS3EYQ.js';import mo,{useState,useEffect,useMemo,useRef,useCallback,useId}from'react';import {useFormContext,Controller}from'react-hook-form';import Pe from'@mui/material/Box';import Ie from'@mui/material/MenuItem';import lo from'@mui/material/Popper';import io from'@mui/material/TextField';import {keyframes,styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var so=keyframes`
1
+ import {b,k}from'./chunk-SWXXEAIZ.js';import {a as a$1}from'./chunk-TY3LDUTP.js';import {a,g,e}from'./chunk-KSTOW7O3.js';import {aa,ba}from'./chunk-TIO3V7XA.js';import {a as a$2}from'./chunk-44UNMXKS.js';import {a as a$3,b as b$1}from'./chunk-MUR4ILTY.js';import {zc,Bc}from'./chunk-4XXNGLS6.js';import {Pc}from'./chunk-V2RLDP5A.js';import mo,{useState,useEffect,useMemo,useRef,useCallback,useId}from'react';import {useFormContext,Controller}from'react-hook-form';import Pe from'@mui/material/Box';import Ie from'@mui/material/MenuItem';import lo from'@mui/material/Popper';import io from'@mui/material/TextField';import {keyframes,styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var so=keyframes`
2
2
  0% {
3
3
  transform: rotate(-90deg);
4
4
  }
@@ -1 +1 @@
1
- import {a}from'./chunk-HDCNWBW5.js';import {d,R,L,V as V$1}from'./chunk-DAYM6H2G.js';import {lc}from'./chunk-2OTSLKKQ.js';import {Eb,A as A$1,Pc,vb}from'./chunk-M5HS3EYQ.js';import {forwardRef,useState,useMemo,memo,useRef,useLayoutEffect}from'react';import qe from'@mui/material/ClickAwayListener';import {CircularProgress}from'@mui/material';import M from'@mui/material/Box';import j from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-NestedMultiSelect",c={root:`${N}-root`,open:`${N}-open`,label:`${N}-label`,placeholder:`${N}-placeholder`,arrow:`${N}-arrow`,menu:`${N}-menu`,search:`${N}-search`,selectedBadge:`${N}-selectedBadge`,fieldRow:`${N}-fieldRow`};var ee=e=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:e,fontSize:"10px",fontWeight:500,cursor:"pointer"}),te=styled(M,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>{let{base:l}=e.v2.palette;return {width:"100%",boxSizing:"border-box",minHeight:47,textAlign:"left",flexDirection:"column",border:`1px solid ${t?"#FAFBFB":"transparent"}`,borderRadius:"4px",backgroundColor:t?"#FAFBFB":e.palette.grey[400],minWidth:"89px",position:"relative",cursor:t?"not-allowed":"pointer",...t&&{color:alpha(l.black,.6),[`& .${c.label}`]:{opacity:.7,cursor:"not-allowed"},[`& .${c.placeholder}`]:{color:alpha(l.black,.6)},[`& .${c.arrow}`]:{opacity:.6},[`& .${c.fieldRow}`]:{opacity:.7},[`& .${c.fieldRow} *`]:{cursor:"not-allowed"}},[`&.${c.open} .${c.arrow}`]:{transform:"rotate(180deg)"}}}),le=styled(j)(({theme:e})=>({position:"absolute",top:9,left:8,margin:0,cursor:"pointer",fontSize:"10px",fontWeight:500,lineHeight:"100%",color:e.palette.grey[700],display:"block",pointerEvents:"none"})),oe=styled(j)(()=>({margin:0,fontWeight:500,fontSize:"11px",lineHeight:"18px",padding:"22px 24px 8px 8px"})),ne=styled(M)(({theme:e})=>({position:"absolute",top:15,right:4,width:16,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"inherit",lineHeight:0,transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})})),ie=styled(M)(()=>({display:"flex",flexDirection:"column",padding:"8px"})),re=styled(M)(()=>({display:"flex",columnGap:"8px",rowGap:"8px",flexWrap:"wrap",paddingInlineEnd:"20px"})),se=styled(M)(({theme:e})=>({...ee(`${e.palette.info.dark}1a`),maxWidth:"150px"})),ae=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),ce=styled(M)(()=>({position:"relative",width:"100%",minWidth:0})),de=styled(M)(()=>({display:"flex",flexWrap:"nowrap",alignItems:"center",gap:"4px",width:"100%",minWidth:0,overflow:"hidden",padding:"22px 24px 8px 8px"})),$=styled(M,{shouldForwardProp:e=>e!=="$truncate"})(({theme:e,$truncate:t})=>({...ee(`${e.palette.info.dark}1a`),overflow:"hidden",cursor:"inherit",flex:t?"1 1 auto":"0 0 auto",width:"max-content",maxWidth:t?"100%":"none",minWidth:t?0:"auto"})),ue=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0})),pe=styled("span")(()=>({position:"fixed",left:0,top:0,visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",width:"max-content",display:"inline-flex",padding:"4px 8px 4px 6px",fontSize:"10px",fontWeight:500})),Se=styled(M)(()=>({flex:1,maxWidth:"220px",minWidth:"89px"})),me=styled(M,{shouldForwardProp:e=>e!=="$maxWidth"})(({$maxWidth:e})=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:e,minWidth:"89px"}));function fe(e,t,l){let i=4*Math.max(e.length-1,0);if(e.reduce((s,a)=>s+a,0)+i<=t)return {count:e.length,truncateLast:false};let r=0,n=0;for(let s=0;s<e.length;s+=1){let a=n>0?4:0,d=s===e.length-1?0:4+l;if(r+a+e[s]+d<=t){r+=a+e[s],n+=1;continue}let x=t-r-a-d;if(n===0||x>=48)return {count:n+1,truncateLast:true};break}return {count:Math.max(n,1),truncateLast:false}}function Me(e,t,l,i){let o=e.length;if(o===0)return {count:0,truncateLast:false};let r=4*Math.max(o-1,0),s=e.reduce((a,h)=>a+h,0)+r+(i?4+l:0);return {count:o,truncateLast:s>t}}var W=e=>!e.options&&typeof e.value=="string",E=e=>e.value??e.label,I=(e,t)=>t?.some(l=>l.value===e.value)??false,Ne=(e,t,l)=>{if(I(e,t)){l(t?.filter(i=>i.value!==e.value)||[]);return}l([...t||[],e]);},k=e=>W(e)?[e]:(e.options??[]).flatMap(k),A=(e,t)=>{let l=e.filter(i=>I(i,t)).length;return {allSelected:e.length>0&&l===e.length,someSelected:l>0&&l<e.length}},he=(e,t,l)=>{let i=new Set(e.map(n=>n.value));if(A(e,t).allSelected){l((t??[]).filter(n=>!i.has(n.value)));return}let o=new Set((t??[]).map(n=>n.value)),r=e.filter(n=>!o.has(n.value));l([...t??[],...r]);},ke=(e,t)=>{let l=e[t];return typeof l=="string"?l:""},Ae=(e,t,l)=>l.some(i=>ke(e,i).toLowerCase().includes(t)),D=(e,t,l)=>{if(!t)return e;let i=t.toLowerCase();return e.reduce((o,r)=>{if(W(r))return Ae(r,i,l)&&o.push(r),o;let n=D(r.options??[],t,l);return n.length>0&&o.push({...r,options:n}),o},[])};function _e({options:e,maxVisibleSelected:t}){let l=useRef(null),i=useRef(null),o=typeof t=="number"&&Number.isFinite(t),r=o?Math.max(0,Math.floor(t)):e.length,[n,s]=useState({count:Math.min(r,e.length),truncateLast:false});useLayoutEffect(()=>{let d=l.current,m=i.current;if(!d||!m)return;let x=()=>{let g=e.slice(0,r).map(y=>(m.textContent=y.label,m.offsetWidth));m.textContent=`+${e.length}`;let C=m.offsetWidth,L=getComputedStyle(d),b=d.clientWidth-parseFloat(L.paddingLeft)-parseFloat(L.paddingRight),f=o?Me(g,b,C,e.length>g.length):fe(g,b,C);s(y=>y.count===f.count&&y.truncateLast===f.truncateLast?y:f);};x();let w=new ResizeObserver(x);return w.observe(d),()=>w.disconnect()},[r,o,e]);let a=e.slice(0,n.count),h=e.length-n.count;return jsxs(ce,{children:[jsx(pe,{ref:i,"aria-hidden":true}),jsxs(de,{ref:l,className:c.fieldRow,children:[a.map((d,m)=>{let x=n.truncateLast&&m===a.length-1;return jsx($,{$truncate:x,children:jsx(ue,{children:d.label})},`${m}-${d.value}`)}),h>0?jsx($,{children:jsxs("span",{children:["+",h]})}):null]})]})}var ye=_e;function we({label:e,maxWidth:t,itemCount:l,isSelected:i,isIndeterminate:o,onToggle:r,children:n}){let[s,a]=useState(null);return jsxs(V$1,{isSelected:i,isIndeterminate:o,onClick:d=>{d.stopPropagation(),d.preventDefault(),r();},onMouseEnter:d=>{l>0&&a(d.currentTarget);},onMouseLeave:()=>{s&&a(null);},children:[jsxs(me,{$maxWidth:t,children:[e,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(R,{sx:{maxHeight:"450px",overflow:"auto"},open:!!s,anchorEl:s,placement:"right-start",children:n})]})}function Ce({option:e,value:t,onChange:l}){let i=o=>{o.stopPropagation(),o.preventDefault(),Ne(e,t,l);};return jsx(V$1,{isSelected:I(e,t),onClick:i,children:jsx(Se,{children:e.label})})}var ze=340,Ge=220;function V({node:e,depth:t,value:l,onChange:i}){if(W(e))return jsx(Ce,{option:e,value:l,onChange:i});if(!e.options)return null;let o=e.options,r=k(e),{allSelected:n,someSelected:s}=A(r,l);return jsx(we,{label:e.label,maxWidth:t===0?ze:Ge,itemCount:o.length,isSelected:n,isIndeterminate:s,onToggle:()=>he(r,l,i),children:o.map(a=>jsx(V,{node:a,depth:t+1,value:l,onChange:i},E(a)))})}var Je=["label"],Pe=forwardRef(({options:e,onChange:t,value:l,maxVisibleSelected:i,placeholder:o,label:r,isLoading:n,searchBy:s=Je,disabled:a$1,className:h,sx:d$1,searchable:m=true,searchPlaceholder:x,onOpen:w,onClose:g},C)=>{let[L$1,b]=useState(null),[f,y]=useState(""),v=!!L$1,Be=r??o,Fe=r?o??"Please Select":"Please Select",Oe=u=>{if(v){b(null),g?.();return}b(u.currentTarget),w?.();},We=()=>{b(null),g?.();},Ee=()=>{f&&y("");},Ie=useMemo(()=>D(e,f,s),[e,f,s]),G=l?.length??0,Re=n?jsx(CircularProgress,{size:16}):jsx(d,{src:f?Eb:A$1,alt:f?"close":"search",onClick:Ee,sx:{width:12,height:12,cursor:f?"pointer":"default"}});return jsx(qe,{onClickAway:()=>{v&&We();},children:jsxs(te,{ref:C,id:"FieldWrapper","data-testid":"NestedMultiSelect",$disabled:a$1,"aria-disabled":a$1||void 0,className:lc(c.root,v&&c.open,h),sx:d$1,onClick:u=>!a$1&&Oe(u),children:[jsx(le,{className:c.label,component:"label",children:Be}),G===0&&jsx(oe,{className:c.placeholder,component:"p",children:Fe}),jsx(ne,{className:c.arrow,"aria-hidden":true,children:jsx(a,{})}),G>0&&l?jsx(ye,{options:l,maxVisibleSelected:i}):null,jsx(R,{open:v,anchorEl:L$1,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},panelProps:{className:c.menu},children:jsxs(ie,{children:[m?jsx(L,{className:c.search,fullWidth:true,size:"md",placeholder:x??o??"Select",endAdornment:Re,value:f,onClick:u=>{u.stopPropagation();},onMouseDown:u=>{u.stopPropagation();},onChange:u=>{y(u.target.value);},sx:{mb:"4px"}}):null,jsx(re,{children:l?.map((u,Te)=>jsxs(se,{className:c.selectedBadge,onClick:K=>{K.stopPropagation(),K.preventDefault(),t(l?.filter($e=>$e.value!==u.value)||[]);},children:[jsx(d,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx(ae,{children:u.label}),jsx(d,{src:Eb,alt:"close",sx:{width:9,height:9}})]},`${Te}-${u.value}`))}),Ie.map(u=>jsx(V,{node:u,depth:0,value:l,onChange:t},E(u)))]})})]})})});Pe.displayName="NestedMultiSelect";var Qe=memo(Pe);export{c as a,Qe as b};
1
+ import {a}from'./chunk-HDCNWBW5.js';import {d,R,L,V as V$1}from'./chunk-TIO3V7XA.js';import {lc}from'./chunk-4XXNGLS6.js';import {Eb,A as A$1,Pc,vb}from'./chunk-V2RLDP5A.js';import {forwardRef,useState,useMemo,memo,useRef,useLayoutEffect}from'react';import qe from'@mui/material/ClickAwayListener';import {CircularProgress}from'@mui/material';import M from'@mui/material/Box';import j from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-NestedMultiSelect",c={root:`${N}-root`,open:`${N}-open`,label:`${N}-label`,placeholder:`${N}-placeholder`,arrow:`${N}-arrow`,menu:`${N}-menu`,search:`${N}-search`,selectedBadge:`${N}-selectedBadge`,fieldRow:`${N}-fieldRow`};var ee=e=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:e,fontSize:"10px",fontWeight:500,cursor:"pointer"}),te=styled(M,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>{let{base:l}=e.v2.palette;return {width:"100%",boxSizing:"border-box",minHeight:47,textAlign:"left",flexDirection:"column",border:`1px solid ${t?"#FAFBFB":"transparent"}`,borderRadius:"4px",backgroundColor:t?"#FAFBFB":e.palette.grey[400],minWidth:"89px",position:"relative",cursor:t?"not-allowed":"pointer",...t&&{color:alpha(l.black,.6),[`& .${c.label}`]:{opacity:.7,cursor:"not-allowed"},[`& .${c.placeholder}`]:{color:alpha(l.black,.6)},[`& .${c.arrow}`]:{opacity:.6},[`& .${c.fieldRow}`]:{opacity:.7},[`& .${c.fieldRow} *`]:{cursor:"not-allowed"}},[`&.${c.open} .${c.arrow}`]:{transform:"rotate(180deg)"}}}),le=styled(j)(({theme:e})=>({position:"absolute",top:9,left:8,margin:0,cursor:"pointer",fontSize:"10px",fontWeight:500,lineHeight:"100%",color:e.palette.grey[700],display:"block",pointerEvents:"none"})),oe=styled(j)(()=>({margin:0,fontWeight:500,fontSize:"11px",lineHeight:"18px",padding:"22px 24px 8px 8px"})),ne=styled(M)(({theme:e})=>({position:"absolute",top:15,right:4,width:16,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"inherit",lineHeight:0,transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})})),ie=styled(M)(()=>({display:"flex",flexDirection:"column",padding:"8px"})),re=styled(M)(()=>({display:"flex",columnGap:"8px",rowGap:"8px",flexWrap:"wrap",paddingInlineEnd:"20px"})),se=styled(M)(({theme:e})=>({...ee(`${e.palette.info.dark}1a`),maxWidth:"150px"})),ae=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),ce=styled(M)(()=>({position:"relative",width:"100%",minWidth:0})),de=styled(M)(()=>({display:"flex",flexWrap:"nowrap",alignItems:"center",gap:"4px",width:"100%",minWidth:0,overflow:"hidden",padding:"22px 24px 8px 8px"})),$=styled(M,{shouldForwardProp:e=>e!=="$truncate"})(({theme:e,$truncate:t})=>({...ee(`${e.palette.info.dark}1a`),overflow:"hidden",cursor:"inherit",flex:t?"1 1 auto":"0 0 auto",width:"max-content",maxWidth:t?"100%":"none",minWidth:t?0:"auto"})),ue=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0})),pe=styled("span")(()=>({position:"fixed",left:0,top:0,visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",width:"max-content",display:"inline-flex",padding:"4px 8px 4px 6px",fontSize:"10px",fontWeight:500})),Se=styled(M)(()=>({flex:1,maxWidth:"220px",minWidth:"89px"})),me=styled(M,{shouldForwardProp:e=>e!=="$maxWidth"})(({$maxWidth:e})=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:e,minWidth:"89px"}));function fe(e,t,l){let i=4*Math.max(e.length-1,0);if(e.reduce((s,a)=>s+a,0)+i<=t)return {count:e.length,truncateLast:false};let r=0,n=0;for(let s=0;s<e.length;s+=1){let a=n>0?4:0,d=s===e.length-1?0:4+l;if(r+a+e[s]+d<=t){r+=a+e[s],n+=1;continue}let x=t-r-a-d;if(n===0||x>=48)return {count:n+1,truncateLast:true};break}return {count:Math.max(n,1),truncateLast:false}}function Me(e,t,l,i){let o=e.length;if(o===0)return {count:0,truncateLast:false};let r=4*Math.max(o-1,0),s=e.reduce((a,h)=>a+h,0)+r+(i?4+l:0);return {count:o,truncateLast:s>t}}var W=e=>!e.options&&typeof e.value=="string",E=e=>e.value??e.label,I=(e,t)=>t?.some(l=>l.value===e.value)??false,Ne=(e,t,l)=>{if(I(e,t)){l(t?.filter(i=>i.value!==e.value)||[]);return}l([...t||[],e]);},k=e=>W(e)?[e]:(e.options??[]).flatMap(k),A=(e,t)=>{let l=e.filter(i=>I(i,t)).length;return {allSelected:e.length>0&&l===e.length,someSelected:l>0&&l<e.length}},he=(e,t,l)=>{let i=new Set(e.map(n=>n.value));if(A(e,t).allSelected){l((t??[]).filter(n=>!i.has(n.value)));return}let o=new Set((t??[]).map(n=>n.value)),r=e.filter(n=>!o.has(n.value));l([...t??[],...r]);},ke=(e,t)=>{let l=e[t];return typeof l=="string"?l:""},Ae=(e,t,l)=>l.some(i=>ke(e,i).toLowerCase().includes(t)),D=(e,t,l)=>{if(!t)return e;let i=t.toLowerCase();return e.reduce((o,r)=>{if(W(r))return Ae(r,i,l)&&o.push(r),o;let n=D(r.options??[],t,l);return n.length>0&&o.push({...r,options:n}),o},[])};function _e({options:e,maxVisibleSelected:t}){let l=useRef(null),i=useRef(null),o=typeof t=="number"&&Number.isFinite(t),r=o?Math.max(0,Math.floor(t)):e.length,[n,s]=useState({count:Math.min(r,e.length),truncateLast:false});useLayoutEffect(()=>{let d=l.current,m=i.current;if(!d||!m)return;let x=()=>{let g=e.slice(0,r).map(y=>(m.textContent=y.label,m.offsetWidth));m.textContent=`+${e.length}`;let C=m.offsetWidth,L=getComputedStyle(d),b=d.clientWidth-parseFloat(L.paddingLeft)-parseFloat(L.paddingRight),f=o?Me(g,b,C,e.length>g.length):fe(g,b,C);s(y=>y.count===f.count&&y.truncateLast===f.truncateLast?y:f);};x();let w=new ResizeObserver(x);return w.observe(d),()=>w.disconnect()},[r,o,e]);let a=e.slice(0,n.count),h=e.length-n.count;return jsxs(ce,{children:[jsx(pe,{ref:i,"aria-hidden":true}),jsxs(de,{ref:l,className:c.fieldRow,children:[a.map((d,m)=>{let x=n.truncateLast&&m===a.length-1;return jsx($,{$truncate:x,children:jsx(ue,{children:d.label})},`${m}-${d.value}`)}),h>0?jsx($,{children:jsxs("span",{children:["+",h]})}):null]})]})}var ye=_e;function we({label:e,maxWidth:t,itemCount:l,isSelected:i,isIndeterminate:o,onToggle:r,children:n}){let[s,a]=useState(null);return jsxs(V$1,{isSelected:i,isIndeterminate:o,onClick:d=>{d.stopPropagation(),d.preventDefault(),r();},onMouseEnter:d=>{l>0&&a(d.currentTarget);},onMouseLeave:()=>{s&&a(null);},children:[jsxs(me,{$maxWidth:t,children:[e,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(R,{sx:{maxHeight:"450px",overflow:"auto"},open:!!s,anchorEl:s,placement:"right-start",children:n})]})}function Ce({option:e,value:t,onChange:l}){let i=o=>{o.stopPropagation(),o.preventDefault(),Ne(e,t,l);};return jsx(V$1,{isSelected:I(e,t),onClick:i,children:jsx(Se,{children:e.label})})}var ze=340,Ge=220;function V({node:e,depth:t,value:l,onChange:i}){if(W(e))return jsx(Ce,{option:e,value:l,onChange:i});if(!e.options)return null;let o=e.options,r=k(e),{allSelected:n,someSelected:s}=A(r,l);return jsx(we,{label:e.label,maxWidth:t===0?ze:Ge,itemCount:o.length,isSelected:n,isIndeterminate:s,onToggle:()=>he(r,l,i),children:o.map(a=>jsx(V,{node:a,depth:t+1,value:l,onChange:i},E(a)))})}var Je=["label"],Pe=forwardRef(({options:e,onChange:t,value:l,maxVisibleSelected:i,placeholder:o,label:r,isLoading:n,searchBy:s=Je,disabled:a$1,className:h,sx:d$1,searchable:m=true,searchPlaceholder:x,onOpen:w,onClose:g},C)=>{let[L$1,b]=useState(null),[f,y]=useState(""),v=!!L$1,Be=r??o,Fe=r?o??"Please Select":"Please Select",Oe=u=>{if(v){b(null),g?.();return}b(u.currentTarget),w?.();},We=()=>{b(null),g?.();},Ee=()=>{f&&y("");},Ie=useMemo(()=>D(e,f,s),[e,f,s]),G=l?.length??0,Re=n?jsx(CircularProgress,{size:16}):jsx(d,{src:f?Eb:A$1,alt:f?"close":"search",onClick:Ee,sx:{width:12,height:12,cursor:f?"pointer":"default"}});return jsx(qe,{onClickAway:()=>{v&&We();},children:jsxs(te,{ref:C,id:"FieldWrapper","data-testid":"NestedMultiSelect",$disabled:a$1,"aria-disabled":a$1||void 0,className:lc(c.root,v&&c.open,h),sx:d$1,onClick:u=>!a$1&&Oe(u),children:[jsx(le,{className:c.label,component:"label",children:Be}),G===0&&jsx(oe,{className:c.placeholder,component:"p",children:Fe}),jsx(ne,{className:c.arrow,"aria-hidden":true,children:jsx(a,{})}),G>0&&l?jsx(ye,{options:l,maxVisibleSelected:i}):null,jsx(R,{open:v,anchorEl:L$1,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},panelProps:{className:c.menu},children:jsxs(ie,{children:[m?jsx(L,{className:c.search,fullWidth:true,size:"md",placeholder:x??o??"Select",endAdornment:Re,value:f,onClick:u=>{u.stopPropagation();},onMouseDown:u=>{u.stopPropagation();},onChange:u=>{y(u.target.value);},sx:{mb:"4px"}}):null,jsx(re,{children:l?.map((u,Te)=>jsxs(se,{className:c.selectedBadge,onClick:K=>{K.stopPropagation(),K.preventDefault(),t(l?.filter($e=>$e.value!==u.value)||[]);},children:[jsx(d,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx(ae,{children:u.label}),jsx(d,{src:Eb,alt:"close",sx:{width:9,height:9}})]},`${Te}-${u.value}`))}),Ie.map(u=>jsx(V,{node:u,depth:0,value:l,onChange:t},E(u)))]})})]})})});Pe.displayName="NestedMultiSelect";var Qe=memo(Pe);export{c as a,Qe as b};
@@ -1,2 +1,2 @@
1
- import {lc}from'./chunk-2OTSLKKQ.js';import {forwardRef,memo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled}from'@mui/material/styles';var o="os-shared-MaskedText",t={root:`${o}-root`,start:`${o}-start`,mask:`${o}-mask`,end:`${o}-end`};var p=()=>jsxs("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,children:[jsx("circle",{cx:"3",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"8",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"13",cy:"4",r:"1.5",fill:"currentColor"})]});var k=styled("span")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.v2.spacing(2),minWidth:0,color:"inherit",font:"inherit",lineHeight:1,whiteSpace:"nowrap"})),m=styled("span")({minWidth:0}),c=styled("span")({display:"inline-flex",alignItems:"center",flexShrink:0,lineHeight:0,"& svg":{display:"block",width:16,height:8}});function M(e,d,n){let s=Math.max(0,d),a=Math.max(0,n);return !e||s+a>=e.length?{start:e,end:"",isMasked:false}:{start:e.slice(0,s),end:e.slice(e.length-a),isMasked:true}}var T=forwardRef(({className:e,sx:d,text:n,startLength:s=8,endLength:a=4,separator:y,id:h,...g},S)=>{let{start:C,end:N,isMasked:u}=M(n,s,a);return jsxs(k,{ref:S,id:h??"MaskedText",className:lc(t.root,e),sx:d,"data-testid":"MaskedText",...g,children:[jsx(m,{className:t.start,children:C}),u&&jsxs(Fragment,{children:[jsx(c,{className:t.mask,children:y??jsx(p,{})}),jsx(m,{className:t.end,children:N})]})]})});T.displayName="MaskedText";var P=memo(T);
1
+ import {lc}from'./chunk-4XXNGLS6.js';import {forwardRef,memo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled}from'@mui/material/styles';var o="os-shared-MaskedText",t={root:`${o}-root`,start:`${o}-start`,mask:`${o}-mask`,end:`${o}-end`};var p=()=>jsxs("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,children:[jsx("circle",{cx:"3",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"8",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"13",cy:"4",r:"1.5",fill:"currentColor"})]});var k=styled("span")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.v2.spacing(2),minWidth:0,color:"inherit",font:"inherit",lineHeight:1,whiteSpace:"nowrap"})),m=styled("span")({minWidth:0}),c=styled("span")({display:"inline-flex",alignItems:"center",flexShrink:0,lineHeight:0,"& svg":{display:"block",width:16,height:8}});function M(e,d,n){let s=Math.max(0,d),a=Math.max(0,n);return !e||s+a>=e.length?{start:e,end:"",isMasked:false}:{start:e.slice(0,s),end:e.slice(e.length-a),isMasked:true}}var T=forwardRef(({className:e,sx:d,text:n,startLength:s=8,endLength:a=4,separator:y,id:h,...g},S)=>{let{start:C,end:N,isMasked:u}=M(n,s,a);return jsxs(k,{ref:S,id:h??"MaskedText",className:lc(t.root,e),sx:d,"data-testid":"MaskedText",...g,children:[jsx(m,{className:t.start,children:C}),u&&jsxs(Fragment,{children:[jsx(c,{className:t.mask,children:y??jsx(p,{})}),jsx(m,{className:t.end,children:N})]})]})});T.displayName="MaskedText";var P=memo(T);
2
2
  export{t as a,P as b};
@@ -1 +1 @@
1
- import {zc,bb,lc,kc,_b}from'./chunk-2OTSLKKQ.js';import {Ro,ta,ra}from'./chunk-M5HS3EYQ.js';import {forwardRef,useId,useRef,useState,useEffect,useCallback,memo}from'react';import {useTranslation}from'react-i18next';import {useForkRef}from'@mui/material/utils';import R from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f="os-shared-SheetViewChip",r={root:`${f}-root`,chip:`${f}-chip`,text:`${f}-text`,copyButton:`${f}-copyButton`},J=2e3,K=.3;var Q=styled("div")({position:"relative",width:"fit-content",maxWidth:"100%",'[data-column-align="right"] &':{marginLeft:"auto"}}),x=styled(R,{shouldForwardProp:e=>!["chipTextColor","chipBgColor","chipBorderColor","disabled","isSelected","disableAnimation"].includes(e)})(({theme:e,isSelected:w,chipTextColor:n=e.palette.text.primary,chipBgColor:i="#EFF1F2",chipBorderColor:o="#EFF1F2",disabled:h=false,disableAnimation:y})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:"0px 8px",borderRadius:"30px",border:`1px solid ${o}`,backgroundColor:i,color:n,cursor:h?"not-allowed":"pointer",opacity:h?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:"67px",maxWidth:"none",width:"fit-content",overflow:"hidden",textOverflow:"unset",boxSizing:"border-box",...w&&{boxShadow:"white 7px 0px 8px 2px"},...y&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transform:"none !important"}}})),L=styled(R)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),U=styled(R)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"})),Y=styled("img",{shouldForwardProp:e=>e!=="isVisible"})(({isVisible:e})=>({height:12,width:12,objectFit:"contain",opacity:e?1:0,transform:`translateX(${e?0:-5}px)`,pointerEvents:e?"auto":"none",transition:"opacity 100ms ease, transform 100ms ease"}));var oe=forwardRef(({id:e,className:w,children:n,copyText:i,copyTrigger:o="hover",animationDirection:h="right",animationDuration:y=200,disableAnimation:S=false,disabled:v=false,unknownText:ie,fullWidth:a=false,containerStyles:se,sx:b,onClick:g,onMouseEnter:V,onMouseLeave:E,...N},F)=>{let $=zc(useId(),"sheet-view-chip"),{t:ne}=useTranslation(),k=useRef(null),re=useForkRef(k,F),M=useRef(),[P,c]=useState(false),[W,A]=useState(false),p=o==="always"||P,I=p&&!!i,l=h==="left",H=Math.max(0,y),T=K*1e3,ae=p?0:T;useEffect(()=>{if(o!=="press"||!P)return;let t=me=>{k.current?.contains(me.target)||c(false);};return document.addEventListener("pointerdown",t),()=>document.removeEventListener("pointerdown",t)},[o,P]),useEffect(()=>()=>clearTimeout(M.current),[]);let pe=useCallback(t=>{o==="press"&&c(true),g?.(t);},[o,g]),le=useCallback(t=>{o==="hover"&&i&&c(true),V?.(t);},[o,i,V]),de=useCallback(t=>{o==="hover"&&c(false),E?.(t);},[o,E]),he=useCallback(t=>{t.stopPropagation(),i&&(A(true),bb(i),clearTimeout(M.current),M.current=setTimeout(()=>A(false),J));},[i]),B=lc(r.chip,w);if(!n)return jsx(x,{...N,chipBgColor:Ro.bgColor,chipBorderColor:Ro.borderColor,chipTextColor:Ro.textColor,ref:F,id:e??$,"data-testid":"SheetViewChip",className:lc(r.root,B),disabled:v,disableAnimation:S,onClick:g,onMouseEnter:V,onMouseLeave:E,sx:kc(b??{},t=>({borderColor:t.palette.divider,width:a?"100%":"auto"})),children:ne(ie??"unknown")});let ce=S?"none":`z-index 0ms linear ${p?0:T+H}ms`,z={zIndex:p?3:0,transition:ce};return jsxs(Q,{ref:re,id:e??$,"data-testid":"SheetViewChip",className:r.root,style:{...z,...se,...a&&{width:"100%",minWidth:0,marginLeft:0}},children:[jsx(x,{...N,"aria-hidden":true,className:B,disabled:v,sx:kc(b??{},{visibility:"hidden",pointerEvents:"none",width:a?"100%":"fit-content"}),children:jsx(L,{children:n})}),jsx("div",{style:{position:"absolute",top:0,...z,width:a?"100%":"max-content",left:l?"auto":0,right:l?0:"auto"},children:jsxs(x,{...N,className:B,isSelected:p,disabled:v,disableAnimation:S,onClick:pe,onMouseEnter:le,onMouseLeave:de,sx:kc({width:a?"100%":"auto"},b),children:[jsx("div",{style:{display:"flex",gap:"4px",...a&&{maxWidth:"100%",width:"100%"},paddingRight:I&&!l?12:0,paddingLeft:I&&l?12:0,transition:`padding ${H}ms ease ${ae}ms`},children:jsx(L,{className:r.text,"data-is-arabic":typeof n=="string"&&_b(n),children:n})}),i&&jsx(U,{className:r.copyButton,sx:l?{left:"8px"}:{right:"8px"},children:jsx(Y,{isVisible:I,src:W?ta:ra,alt:W?"copied":"copy",onClick:he})})]})})]})});oe.displayName="SheetViewChip";var ye=memo(oe);export{r as a,ye as b};
1
+ import {zc,bb,lc,kc,_b}from'./chunk-4XXNGLS6.js';import {Ro,ta,ra}from'./chunk-V2RLDP5A.js';import {forwardRef,useId,useRef,useState,useEffect,useCallback,memo}from'react';import {useTranslation}from'react-i18next';import {useForkRef}from'@mui/material/utils';import R from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f="os-shared-SheetViewChip",r={root:`${f}-root`,chip:`${f}-chip`,text:`${f}-text`,copyButton:`${f}-copyButton`},J=2e3,K=.3;var Q=styled("div")({position:"relative",width:"fit-content",maxWidth:"100%",'[data-column-align="right"] &':{marginLeft:"auto"}}),x=styled(R,{shouldForwardProp:e=>!["chipTextColor","chipBgColor","chipBorderColor","disabled","isSelected","disableAnimation"].includes(e)})(({theme:e,isSelected:w,chipTextColor:n=e.palette.text.primary,chipBgColor:i="#EFF1F2",chipBorderColor:o="#EFF1F2",disabled:h=false,disableAnimation:y})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:"0px 8px",borderRadius:"30px",border:`1px solid ${o}`,backgroundColor:i,color:n,cursor:h?"not-allowed":"pointer",opacity:h?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:"67px",maxWidth:"none",width:"fit-content",overflow:"hidden",textOverflow:"unset",boxSizing:"border-box",...w&&{boxShadow:"white 7px 0px 8px 2px"},...y&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transform:"none !important"}}})),L=styled(R)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),U=styled(R)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"})),Y=styled("img",{shouldForwardProp:e=>e!=="isVisible"})(({isVisible:e})=>({height:12,width:12,objectFit:"contain",opacity:e?1:0,transform:`translateX(${e?0:-5}px)`,pointerEvents:e?"auto":"none",transition:"opacity 100ms ease, transform 100ms ease"}));var oe=forwardRef(({id:e,className:w,children:n,copyText:i,copyTrigger:o="hover",animationDirection:h="right",animationDuration:y=200,disableAnimation:S=false,disabled:v=false,unknownText:ie,fullWidth:a=false,containerStyles:se,sx:b,onClick:g,onMouseEnter:V,onMouseLeave:E,...N},F)=>{let $=zc(useId(),"sheet-view-chip"),{t:ne}=useTranslation(),k=useRef(null),re=useForkRef(k,F),M=useRef(),[P,c]=useState(false),[W,A]=useState(false),p=o==="always"||P,I=p&&!!i,l=h==="left",H=Math.max(0,y),T=K*1e3,ae=p?0:T;useEffect(()=>{if(o!=="press"||!P)return;let t=me=>{k.current?.contains(me.target)||c(false);};return document.addEventListener("pointerdown",t),()=>document.removeEventListener("pointerdown",t)},[o,P]),useEffect(()=>()=>clearTimeout(M.current),[]);let pe=useCallback(t=>{o==="press"&&c(true),g?.(t);},[o,g]),le=useCallback(t=>{o==="hover"&&i&&c(true),V?.(t);},[o,i,V]),de=useCallback(t=>{o==="hover"&&c(false),E?.(t);},[o,E]),he=useCallback(t=>{t.stopPropagation(),i&&(A(true),bb(i),clearTimeout(M.current),M.current=setTimeout(()=>A(false),J));},[i]),B=lc(r.chip,w);if(!n)return jsx(x,{...N,chipBgColor:Ro.bgColor,chipBorderColor:Ro.borderColor,chipTextColor:Ro.textColor,ref:F,id:e??$,"data-testid":"SheetViewChip",className:lc(r.root,B),disabled:v,disableAnimation:S,onClick:g,onMouseEnter:V,onMouseLeave:E,sx:kc(b??{},t=>({borderColor:t.palette.divider,width:a?"100%":"auto"})),children:ne(ie??"unknown")});let ce=S?"none":`z-index 0ms linear ${p?0:T+H}ms`,z={zIndex:p?3:0,transition:ce};return jsxs(Q,{ref:re,id:e??$,"data-testid":"SheetViewChip",className:r.root,style:{...z,...se,...a&&{width:"100%",minWidth:0,marginLeft:0}},children:[jsx(x,{...N,"aria-hidden":true,className:B,disabled:v,sx:kc(b??{},{visibility:"hidden",pointerEvents:"none",width:a?"100%":"fit-content"}),children:jsx(L,{children:n})}),jsx("div",{style:{position:"absolute",top:0,...z,width:a?"100%":"max-content",left:l?"auto":0,right:l?0:"auto"},children:jsxs(x,{...N,className:B,isSelected:p,disabled:v,disableAnimation:S,onClick:pe,onMouseEnter:le,onMouseLeave:de,sx:kc({width:a?"100%":"auto"},b),children:[jsx("div",{style:{display:"flex",gap:"4px",...a&&{maxWidth:"100%",width:"100%"},paddingRight:I&&!l?12:0,paddingLeft:I&&l?12:0,transition:`padding ${H}ms ease ${ae}ms`},children:jsx(L,{className:r.text,"data-is-arabic":typeof n=="string"&&_b(n),children:n})}),i&&jsx(U,{className:r.copyButton,sx:l?{left:"8px"}:{right:"8px"},children:jsx(Y,{isVisible:I,src:W?ta:ra,alt:W?"copied":"copy",onClick:he})})]})})]})});oe.displayName="SheetViewChip";var ye=memo(oe);export{r as a,ye as b};
@@ -1 +1 @@
1
- import {L,ba,aa}from'./chunk-DAYM6H2G.js';import {zc,Bc,kc,lc,Ya}from'./chunk-2OTSLKKQ.js';import {forwardRef,useId,memo}from'react';import ee from'@mui/material/Box';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n="os-shared-TextInput",s={root:`${n}-root`,field:`${n}-field`,label:`${n}-label`,input:`${n}-input`,helperText:`${n}-helperText`};var h=styled(ee)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%"}));function S(e,t){let{borderColor:o}=aa(e,t),r=e.v2.radius(4);return {borderColor:o,borderBottom:"none",borderRadius:`${r} ${r} 0 0`,"&:focus-within":{borderColor:o,boxShadow:"none"}}}var g=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.v2.palette.base.black,.6),fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function C(e,t){let o=typeof e=="string"&&Ya(e)?e:void 0;return {resolvedLabel:o??t??void 0,resolvedPlaceholder:o&&typeof t=="string"?t:void 0}}var P=forwardRef(({onChange:e,error:t=false,helperText:o,feedback:r,label:i,placeholder:v,disabled:F,fullWidth:$=true,startAdornment:k,endAdornment:L$1,readOnly:w,inputProps:A,InputProps:E,InputLabelProps:ae,className:H,sx:B,id:l="TextInput",...R},W)=>{let O=useTheme(),D=zc(useId(),"text-input"),M=Z=>{e?.(Z.target.value??"");},{isProvided:a,isVisible:V,type:z}=Bc(r),{resolvedLabel:_,resolvedPlaceholder:j}=C(i,v),m=!!t&&!a,{sx:q,startAdornment:G,endAdornment:J,readOnly:K,inputProps:Q,disabled:U}=E??{},X=V?S(O,z):{},Y=kc(kc(X,q),B);return jsxs(ee,{className:s.root,children:[jsx(h,{id:D,"data-testid":"TextInput",children:jsx(L,{id:l,...R,ref:W,label:_,placeholder:j,disabled:F??U,fullWidth:$,error:m,startAdornment:k??G,endAdornment:L$1??J,readOnly:w??K,inputProps:{...Q,...A},onChange:M,className:lc(s.field,H),sx:Y})}),a?jsx(ba,{...r}):null,!a&&o?jsx(g,{className:s.helperText,id:l?`${l}-helper-text`:void 0,$error:m,children:o}):null]})});P.displayName="TextInput";var N=memo(P);export{s as a,N as b};
1
+ import {L,ba,aa}from'./chunk-TIO3V7XA.js';import {zc,Bc,kc,lc,Ya}from'./chunk-4XXNGLS6.js';import {forwardRef,useId,memo}from'react';import ee from'@mui/material/Box';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n="os-shared-TextInput",s={root:`${n}-root`,field:`${n}-field`,label:`${n}-label`,input:`${n}-input`,helperText:`${n}-helperText`};var h=styled(ee)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%"}));function S(e,t){let{borderColor:o}=aa(e,t),r=e.v2.radius(4);return {borderColor:o,borderBottom:"none",borderRadius:`${r} ${r} 0 0`,"&:focus-within":{borderColor:o,boxShadow:"none"}}}var g=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.v2.palette.base.black,.6),fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function C(e,t){let o=typeof e=="string"&&Ya(e)?e:void 0;return {resolvedLabel:o??t??void 0,resolvedPlaceholder:o&&typeof t=="string"?t:void 0}}var P=forwardRef(({onChange:e,error:t=false,helperText:o,feedback:r,label:i,placeholder:v,disabled:F,fullWidth:$=true,startAdornment:k,endAdornment:L$1,readOnly:w,inputProps:A,InputProps:E,InputLabelProps:ae,className:H,sx:B,id:l="TextInput",...R},W)=>{let O=useTheme(),D=zc(useId(),"text-input"),M=Z=>{e?.(Z.target.value??"");},{isProvided:a,isVisible:V,type:z}=Bc(r),{resolvedLabel:_,resolvedPlaceholder:j}=C(i,v),m=!!t&&!a,{sx:q,startAdornment:G,endAdornment:J,readOnly:K,inputProps:Q,disabled:U}=E??{},X=V?S(O,z):{},Y=kc(kc(X,q),B);return jsxs(ee,{className:s.root,children:[jsx(h,{id:D,"data-testid":"TextInput",children:jsx(L,{id:l,...R,ref:W,label:_,placeholder:j,disabled:F??U,fullWidth:$,error:m,startAdornment:k??G,endAdornment:L$1??J,readOnly:w??K,inputProps:{...Q,...A},onChange:M,className:lc(s.field,H),sx:Y})}),a?jsx(ba,{...r}):null,!a&&o?jsx(g,{className:s.helperText,id:l?`${l}-helper-text`:void 0,$error:m,children:o}):null]})});P.displayName="TextInput";var N=memo(P);export{s as a,N as b};
@@ -1 +1 @@
1
- import {zc}from'./chunk-2OTSLKKQ.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=zc(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
1
+ import {zc}from'./chunk-4XXNGLS6.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=zc(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
@@ -1 +1 @@
1
- import {lc}from'./chunk-2OTSLKKQ.js';import {Qh}from'./chunk-M5HS3EYQ.js';import {forwardRef,memo}from'react';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-EmptyState",t={root:`${o}-root`,icon:`${o}-icon`,title:`${o}-title`,description:`${o}-description`},l="Empty state",n="No data found",y="There is nothing to show here yet.";var c=styled(h)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem"})),S=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:e})=>({fontWeight:600,fontSize:"1rem",color:e.palette.text?.primary,padding:0,margin:0,textAlign:"center"})),f=styled("p")(({theme:e})=>({fontWeight:400,fontSize:"0.75rem",color:e.palette.text?.primary,padding:0,margin:0,opacity:.5,textAlign:"center"}));var T=jsx(S,{src:Qh,alt:l,className:t.icon}),x=forwardRef(({className:e,sx:E,icon:g=T,title:m=n,description:r=y,children:N,...u},D)=>jsxs(c,{ref:D,className:lc(t.root,e),sx:E,"data-testid":"EmptyState",...u,children:[g,m?jsx(d,{className:t.title,children:m}):null,r?jsx(f,{className:t.description,children:r}):null,N]}));x.displayName="EmptyState";var A=memo(x);export{t as a,A as b};
1
+ import {lc}from'./chunk-4XXNGLS6.js';import {Qh}from'./chunk-V2RLDP5A.js';import {forwardRef,memo}from'react';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-EmptyState",t={root:`${o}-root`,icon:`${o}-icon`,title:`${o}-title`,description:`${o}-description`},l="Empty state",n="No data found",y="There is nothing to show here yet.";var c=styled(h)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem"})),S=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:e})=>({fontWeight:600,fontSize:"1rem",color:e.palette.text?.primary,padding:0,margin:0,textAlign:"center"})),f=styled("p")(({theme:e})=>({fontWeight:400,fontSize:"0.75rem",color:e.palette.text?.primary,padding:0,margin:0,opacity:.5,textAlign:"center"}));var T=jsx(S,{src:Qh,alt:l,className:t.icon}),x=forwardRef(({className:e,sx:E,icon:g=T,title:m=n,description:r=y,children:N,...u},D)=>jsxs(c,{ref:D,className:lc(t.root,e),sx:E,"data-testid":"EmptyState",...u,children:[g,m?jsx(d,{className:t.title,children:m}):null,r?jsx(f,{className:t.description,children:r}):null,N]}));x.displayName="EmptyState";var A=memo(x);export{t as a,A as b};