@erpsquad/common 1.10.74 → 1.10.75

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 (270) hide show
  1. package/dist/chunks/{android-12-switch-CXEiaZf0.js → android-12-switch-Cruc3J1J.js} +5 -5
  2. package/dist/chunks/{android-12-switch-CXEiaZf0.js.map → android-12-switch-Cruc3J1J.js.map} +1 -1
  3. package/dist/chunks/{android-12-switch-DOruO2DA.esm.js → android-12-switch-DPP00xjJ.esm.js} +4 -4
  4. package/dist/chunks/{android-12-switch-DOruO2DA.esm.js.map → android-12-switch-DPP00xjJ.esm.js.map} +1 -1
  5. package/dist/chunks/{appbar-ByiY9Ehc.esm.js → appbar-7puZelDZ.esm.js} +102 -3
  6. package/dist/chunks/appbar-7puZelDZ.esm.js.map +1 -0
  7. package/dist/chunks/{appbar-Cht2DM8y.js → appbar-DbazXkez.js} +102 -3
  8. package/dist/chunks/appbar-DbazXkez.js.map +1 -0
  9. package/dist/chunks/{default-data-AYPWIApH.js → default-data-B0Y8TU26.js} +5 -5
  10. package/dist/chunks/{default-data-AYPWIApH.js.map → default-data-B0Y8TU26.js.map} +1 -1
  11. package/dist/chunks/{default-data-BJi3OcW1.esm.js → default-data-DlPr1rYe.esm.js} +5 -5
  12. package/dist/chunks/{default-data-BJi3OcW1.esm.js.map → default-data-DlPr1rYe.esm.js.map} +1 -1
  13. package/dist/chunks/{fullScreen-BT9r6A8F.esm.js → fullScreen-B4ZPj9dr.esm.js} +2 -2
  14. package/dist/chunks/{fullScreen-BT9r6A8F.esm.js.map → fullScreen-B4ZPj9dr.esm.js.map} +1 -1
  15. package/dist/chunks/{fullScreen-C1yKeusg.js → fullScreen-BrdRBi-K.js} +2 -2
  16. package/dist/chunks/{fullScreen-C1yKeusg.js.map → fullScreen-BrdRBi-K.js.map} +1 -1
  17. package/dist/chunks/{radio-button-BYtmY0l-.js → radio-button-Bxl9UISl.js} +1 -18
  18. package/dist/chunks/radio-button-Bxl9UISl.js.map +1 -0
  19. package/dist/chunks/{radio-button-wgwiOmaZ.esm.js → radio-button-mbPNQ3rc.esm.js} +16 -33
  20. package/dist/chunks/radio-button-mbPNQ3rc.esm.js.map +1 -0
  21. package/dist/chunks/{sidebar-CG90JVRA.esm.js → sidebar-B6-JNM4K.esm.js} +3 -3
  22. package/dist/chunks/{sidebar-CG90JVRA.esm.js.map → sidebar-B6-JNM4K.esm.js.map} +1 -1
  23. package/dist/chunks/{sidebar-CwqNppLF.js → sidebar-CBzmUNFw.js} +3 -3
  24. package/dist/chunks/{sidebar-CwqNppLF.js.map → sidebar-CBzmUNFw.js.map} +1 -1
  25. package/dist/chunks/{sidebarScreen-C3OHGWsn.esm.js → sidebarScreen-C7gUqSYZ.esm.js} +3 -3
  26. package/dist/chunks/{sidebarScreen-C3OHGWsn.esm.js.map → sidebarScreen-C7gUqSYZ.esm.js.map} +1 -1
  27. package/dist/chunks/{sidebarScreen-DVwqG-Hi.js → sidebarScreen-vIzHgQxd.js} +3 -3
  28. package/dist/chunks/{sidebarScreen-DVwqG-Hi.js.map → sidebarScreen-vIzHgQxd.js.map} +1 -1
  29. package/dist/chunks/{tick-B4IAsV4W.js → tick-COMAwRR1.js} +18 -1
  30. package/dist/chunks/tick-COMAwRR1.js.map +1 -0
  31. package/dist/chunks/{tick-DUuDXLjB.esm.js → tick-DaxkNl7E.esm.js} +18 -1
  32. package/dist/chunks/tick-DaxkNl7E.esm.js.map +1 -0
  33. package/dist/chunks/{uom-field-wrapper-DalNHR65.esm.js → uom-field-wrapper-BnjRsGw2.esm.js} +6 -6
  34. package/dist/chunks/{uom-field-wrapper-DalNHR65.esm.js.map → uom-field-wrapper-BnjRsGw2.esm.js.map} +1 -1
  35. package/dist/chunks/{uom-field-wrapper-DHhz5pod.js → uom-field-wrapper-aR0Kqbm9.js} +7 -7
  36. package/dist/chunks/{uom-field-wrapper-DHhz5pod.js.map → uom-field-wrapper-aR0Kqbm9.js.map} +1 -1
  37. package/dist/components/accordion/accordion.d.ts +1 -1
  38. package/dist/components/action-bar/action-bar.d.ts +1 -1
  39. package/dist/components/checkbox/checkbox.d.ts +1 -1
  40. package/dist/components/date-picker/date-picker.d.ts +1 -1
  41. package/dist/components/footer/footer.d.ts +1 -1
  42. package/dist/components/form-control/form-builder/form-builder-element/media.d.ts +1 -1
  43. package/dist/components/form-control/form-builder/form-builder-element/phone.d.ts +1 -1
  44. package/dist/components/form-control/form-builder/form-builder-element/select.d.ts +1 -1
  45. package/dist/components/form-control/form-builder/form-builder-element/text.d.ts +1 -1
  46. package/dist/components/form-control/form-builder/form-builder-element/time.d.ts +1 -1
  47. package/dist/components/form-control/form-parser/form-switcher.d.ts +1 -1
  48. package/dist/components/header/components/index.d.ts +1 -0
  49. package/dist/components/header/components/language-switch/index.d.ts +2 -0
  50. package/dist/components/header/components/language-switch/language-switch.d.ts +2 -0
  51. package/dist/components/icons/action-arrow.d.ts +3 -3
  52. package/dist/components/icons/add-circle.d.ts +3 -3
  53. package/dist/components/icons/arrow-bidirectional.d.ts +3 -3
  54. package/dist/components/icons/arrow-circle-down.d.ts +3 -3
  55. package/dist/components/icons/arrow-down-three.d.ts +3 -3
  56. package/dist/components/icons/arrow-down-two.d.ts +3 -3
  57. package/dist/components/icons/arrow-down.d.ts +3 -3
  58. package/dist/components/icons/arrow-up-down.d.ts +3 -3
  59. package/dist/components/icons/arrow-up-two.d.ts +3 -3
  60. package/dist/components/icons/arrow-up.d.ts +3 -3
  61. package/dist/components/icons/assignments.d.ts +3 -3
  62. package/dist/components/icons/blank-circle.d.ts +3 -3
  63. package/dist/components/icons/block-filled.d.ts +3 -3
  64. package/dist/components/icons/calendar-add.d.ts +3 -3
  65. package/dist/components/icons/calendar.d.ts +3 -3
  66. package/dist/components/icons/checkbox-square.d.ts +3 -3
  67. package/dist/components/icons/circular-arrow-setting.d.ts +3 -3
  68. package/dist/components/icons/clock.d.ts +3 -3
  69. package/dist/components/icons/close.d.ts +3 -3
  70. package/dist/components/icons/coin-outline.d.ts +3 -3
  71. package/dist/components/icons/copy.d.ts +3 -3
  72. package/dist/components/icons/coupon.d.ts +3 -3
  73. package/dist/components/icons/cross-hire.d.ts +3 -3
  74. package/dist/components/icons/custom-styled-icon.d.ts +3 -3
  75. package/dist/components/icons/dashboard.d.ts +3 -3
  76. package/dist/components/icons/document-download.d.ts +3 -3
  77. package/dist/components/icons/document.d.ts +3 -3
  78. package/dist/components/icons/dollar-circle-filled.d.ts +3 -3
  79. package/dist/components/icons/dollar-circle.d.ts +3 -3
  80. package/dist/components/icons/edit.d.ts +3 -3
  81. package/dist/components/icons/email.d.ts +3 -3
  82. package/dist/components/icons/export.d.ts +3 -3
  83. package/dist/components/icons/eye-off.d.ts +3 -3
  84. package/dist/components/icons/eye-plus-circle.d.ts +3 -3
  85. package/dist/components/icons/eye.d.ts +3 -3
  86. package/dist/components/icons/filled-circle.d.ts +3 -3
  87. package/dist/components/icons/filter-remove.d.ts +3 -3
  88. package/dist/components/icons/filter.d.ts +3 -3
  89. package/dist/components/icons/folder-save.d.ts +3 -3
  90. package/dist/components/icons/grid.d.ts +3 -3
  91. package/dist/components/icons/hashtag.d.ts +3 -3
  92. package/dist/components/icons/image.d.ts +3 -3
  93. package/dist/components/icons/import.d.ts +3 -3
  94. package/dist/components/icons/info-circle.d.ts +3 -3
  95. package/dist/components/icons/info.d.ts +3 -3
  96. package/dist/components/icons/link-horizontal.d.ts +3 -3
  97. package/dist/components/icons/link.d.ts +3 -3
  98. package/dist/components/icons/location.d.ts +3 -3
  99. package/dist/components/icons/lowest-lead-time.d.ts +3 -3
  100. package/dist/components/icons/lowest-min-qty.d.ts +3 -3
  101. package/dist/components/icons/lowest-price.d.ts +3 -3
  102. package/dist/components/icons/more.d.ts +3 -3
  103. package/dist/components/icons/notification.d.ts +3 -3
  104. package/dist/components/icons/paper-clip.d.ts +3 -3
  105. package/dist/components/icons/paragraph.d.ts +3 -3
  106. package/dist/components/icons/payment-request.d.ts +3 -3
  107. package/dist/components/icons/phone.d.ts +3 -3
  108. package/dist/components/icons/printer.d.ts +3 -3
  109. package/dist/components/icons/process-calendar.d.ts +3 -3
  110. package/dist/components/icons/promotion.d.ts +3 -3
  111. package/dist/components/icons/radio-button.d.ts +3 -3
  112. package/dist/components/icons/receipt-filled.d.ts +3 -3
  113. package/dist/components/icons/receipt-outline.d.ts +3 -3
  114. package/dist/components/icons/receipt.d.ts +3 -3
  115. package/dist/components/icons/refresh-icon.d.ts +3 -3
  116. package/dist/components/icons/replace.d.ts +3 -3
  117. package/dist/components/icons/save.d.ts +3 -3
  118. package/dist/components/icons/search-status.d.ts +3 -3
  119. package/dist/components/icons/search.d.ts +3 -3
  120. package/dist/components/icons/settings-fallback.d.ts +3 -3
  121. package/dist/components/icons/sort-arrow-icon.d.ts +3 -3
  122. package/dist/components/icons/stacked-layer.d.ts +3 -3
  123. package/dist/components/icons/start-filled.d.ts +3 -3
  124. package/dist/components/icons/three-dot-icon.d.ts +3 -3
  125. package/dist/components/icons/tick-circle-filled.d.ts +3 -3
  126. package/dist/components/icons/tick-circle.d.ts +3 -3
  127. package/dist/components/icons/tick-octagon.d.ts +3 -3
  128. package/dist/components/icons/tick.d.ts +3 -3
  129. package/dist/components/icons/toggle-switch.d.ts +3 -3
  130. package/dist/components/icons/trash.d.ts +3 -3
  131. package/dist/components/icons/wave.d.ts +3 -3
  132. package/dist/components/icons/with-out-tick-octagon.d.ts +3 -3
  133. package/dist/components/icons/work-centre.d.ts +3 -3
  134. package/dist/components/index.esm.js +28 -28
  135. package/dist/components/index.js +12 -12
  136. package/dist/components/location-select.d.ts +1 -1
  137. package/dist/components/material-editable-table/material-editable-table.d.ts +1 -1
  138. package/dist/components/material-table/material-table.d.ts +1 -1
  139. package/dist/components/phone-input/phone-input.d.ts +1 -1
  140. package/dist/components/radio/radio.d.ts +1 -1
  141. package/dist/components/select/select.d.ts +1 -1
  142. package/dist/components/switches/android-12-switch.d.ts +1 -3
  143. package/dist/components/text-field/text-field.d.ts +1 -1
  144. package/dist/components/time-picker/time-picker.d.ts +1 -1
  145. package/dist/components/upload-media/upload-media.d.ts +1 -1
  146. package/dist/icons/index.esm.js +26 -26
  147. package/dist/icons/index.js +8 -8
  148. package/dist/index.esm.js +46 -46
  149. package/dist/index.js +15 -15
  150. package/dist/layout/index.esm.js +2 -2
  151. package/dist/layout/index.js +2 -2
  152. package/dist/src/components/accordion/accordion.d.ts +1 -1
  153. package/dist/src/components/action-bar/action-bar.d.ts +1 -1
  154. package/dist/src/components/checkbox/checkbox.d.ts +1 -1
  155. package/dist/src/components/date-picker/date-picker.d.ts +1 -1
  156. package/dist/src/components/footer/footer.d.ts +1 -1
  157. package/dist/src/components/form-control/form-builder/form-builder-element/media.d.ts +1 -1
  158. package/dist/src/components/form-control/form-builder/form-builder-element/phone.d.ts +1 -1
  159. package/dist/src/components/form-control/form-builder/form-builder-element/select.d.ts +1 -1
  160. package/dist/src/components/form-control/form-builder/form-builder-element/text.d.ts +1 -1
  161. package/dist/src/components/form-control/form-builder/form-builder-element/time.d.ts +1 -1
  162. package/dist/src/components/form-control/form-parser/form-switcher.d.ts +1 -1
  163. package/dist/src/components/header/components/index.d.ts +1 -0
  164. package/dist/src/components/header/components/language-switch/index.d.ts +2 -0
  165. package/dist/src/components/header/components/language-switch/language-switch.d.ts +2 -0
  166. package/dist/src/components/icons/action-arrow.d.ts +3 -3
  167. package/dist/src/components/icons/add-circle.d.ts +3 -3
  168. package/dist/src/components/icons/arrow-bidirectional.d.ts +3 -3
  169. package/dist/src/components/icons/arrow-circle-down.d.ts +3 -3
  170. package/dist/src/components/icons/arrow-down-three.d.ts +3 -3
  171. package/dist/src/components/icons/arrow-down-two.d.ts +3 -3
  172. package/dist/src/components/icons/arrow-down.d.ts +3 -3
  173. package/dist/src/components/icons/arrow-up-down.d.ts +3 -3
  174. package/dist/src/components/icons/arrow-up-two.d.ts +3 -3
  175. package/dist/src/components/icons/arrow-up.d.ts +3 -3
  176. package/dist/src/components/icons/assignments.d.ts +3 -3
  177. package/dist/src/components/icons/blank-circle.d.ts +3 -3
  178. package/dist/src/components/icons/block-filled.d.ts +3 -3
  179. package/dist/src/components/icons/calendar-add.d.ts +3 -3
  180. package/dist/src/components/icons/calendar.d.ts +3 -3
  181. package/dist/src/components/icons/checkbox-square.d.ts +3 -3
  182. package/dist/src/components/icons/circular-arrow-setting.d.ts +3 -3
  183. package/dist/src/components/icons/clock.d.ts +3 -3
  184. package/dist/src/components/icons/close.d.ts +3 -3
  185. package/dist/src/components/icons/coin-outline.d.ts +3 -3
  186. package/dist/src/components/icons/copy.d.ts +3 -3
  187. package/dist/src/components/icons/coupon.d.ts +3 -3
  188. package/dist/src/components/icons/cross-hire.d.ts +3 -3
  189. package/dist/src/components/icons/custom-styled-icon.d.ts +3 -3
  190. package/dist/src/components/icons/dashboard.d.ts +3 -3
  191. package/dist/src/components/icons/document-download.d.ts +3 -3
  192. package/dist/src/components/icons/document.d.ts +3 -3
  193. package/dist/src/components/icons/dollar-circle-filled.d.ts +3 -3
  194. package/dist/src/components/icons/dollar-circle.d.ts +3 -3
  195. package/dist/src/components/icons/edit.d.ts +3 -3
  196. package/dist/src/components/icons/email.d.ts +3 -3
  197. package/dist/src/components/icons/export.d.ts +3 -3
  198. package/dist/src/components/icons/eye-off.d.ts +3 -3
  199. package/dist/src/components/icons/eye-plus-circle.d.ts +3 -3
  200. package/dist/src/components/icons/eye.d.ts +3 -3
  201. package/dist/src/components/icons/filled-circle.d.ts +3 -3
  202. package/dist/src/components/icons/filter-remove.d.ts +3 -3
  203. package/dist/src/components/icons/filter.d.ts +3 -3
  204. package/dist/src/components/icons/folder-save.d.ts +3 -3
  205. package/dist/src/components/icons/grid.d.ts +3 -3
  206. package/dist/src/components/icons/hashtag.d.ts +3 -3
  207. package/dist/src/components/icons/image.d.ts +3 -3
  208. package/dist/src/components/icons/import.d.ts +3 -3
  209. package/dist/src/components/icons/info-circle.d.ts +3 -3
  210. package/dist/src/components/icons/info.d.ts +3 -3
  211. package/dist/src/components/icons/link-horizontal.d.ts +3 -3
  212. package/dist/src/components/icons/link.d.ts +3 -3
  213. package/dist/src/components/icons/location.d.ts +3 -3
  214. package/dist/src/components/icons/lowest-lead-time.d.ts +3 -3
  215. package/dist/src/components/icons/lowest-min-qty.d.ts +3 -3
  216. package/dist/src/components/icons/lowest-price.d.ts +3 -3
  217. package/dist/src/components/icons/more.d.ts +3 -3
  218. package/dist/src/components/icons/notification.d.ts +3 -3
  219. package/dist/src/components/icons/paper-clip.d.ts +3 -3
  220. package/dist/src/components/icons/paragraph.d.ts +3 -3
  221. package/dist/src/components/icons/payment-request.d.ts +3 -3
  222. package/dist/src/components/icons/phone.d.ts +3 -3
  223. package/dist/src/components/icons/printer.d.ts +3 -3
  224. package/dist/src/components/icons/process-calendar.d.ts +3 -3
  225. package/dist/src/components/icons/promotion.d.ts +3 -3
  226. package/dist/src/components/icons/radio-button.d.ts +3 -3
  227. package/dist/src/components/icons/receipt-filled.d.ts +3 -3
  228. package/dist/src/components/icons/receipt-outline.d.ts +3 -3
  229. package/dist/src/components/icons/receipt.d.ts +3 -3
  230. package/dist/src/components/icons/refresh-icon.d.ts +3 -3
  231. package/dist/src/components/icons/replace.d.ts +3 -3
  232. package/dist/src/components/icons/save.d.ts +3 -3
  233. package/dist/src/components/icons/search-status.d.ts +3 -3
  234. package/dist/src/components/icons/search.d.ts +3 -3
  235. package/dist/src/components/icons/settings-fallback.d.ts +3 -3
  236. package/dist/src/components/icons/sort-arrow-icon.d.ts +3 -3
  237. package/dist/src/components/icons/stacked-layer.d.ts +3 -3
  238. package/dist/src/components/icons/start-filled.d.ts +3 -3
  239. package/dist/src/components/icons/three-dot-icon.d.ts +3 -3
  240. package/dist/src/components/icons/tick-circle-filled.d.ts +3 -3
  241. package/dist/src/components/icons/tick-circle.d.ts +3 -3
  242. package/dist/src/components/icons/tick-octagon.d.ts +3 -3
  243. package/dist/src/components/icons/tick.d.ts +3 -3
  244. package/dist/src/components/icons/toggle-switch.d.ts +3 -3
  245. package/dist/src/components/icons/trash.d.ts +3 -3
  246. package/dist/src/components/icons/wave.d.ts +3 -3
  247. package/dist/src/components/icons/with-out-tick-octagon.d.ts +3 -3
  248. package/dist/src/components/icons/work-centre.d.ts +3 -3
  249. package/dist/src/components/location-select.d.ts +1 -1
  250. package/dist/src/components/material-editable-table/material-editable-table.d.ts +1 -1
  251. package/dist/src/components/material-table/material-table.d.ts +1 -1
  252. package/dist/src/components/phone-input/phone-input.d.ts +1 -1
  253. package/dist/src/components/radio/radio.d.ts +1 -1
  254. package/dist/src/components/select/select.d.ts +1 -1
  255. package/dist/src/components/switches/android-12-switch.d.ts +1 -3
  256. package/dist/src/components/text-field/text-field.d.ts +1 -1
  257. package/dist/src/components/time-picker/time-picker.d.ts +1 -1
  258. package/dist/src/components/upload-media/upload-media.d.ts +1 -1
  259. package/dist/src/utils/common-utility.d.ts +2 -2
  260. package/dist/style.css +43 -0
  261. package/dist/utils/common-utility.d.ts +2 -2
  262. package/dist/views/index.esm.js +5 -5
  263. package/dist/views/index.js +4 -4
  264. package/package.json +1 -1
  265. package/dist/chunks/appbar-ByiY9Ehc.esm.js.map +0 -1
  266. package/dist/chunks/appbar-Cht2DM8y.js.map +0 -1
  267. package/dist/chunks/radio-button-BYtmY0l-.js.map +0 -1
  268. package/dist/chunks/radio-button-wgwiOmaZ.esm.js.map +0 -1
  269. package/dist/chunks/tick-B4IAsV4W.js.map +0 -1
  270. package/dist/chunks/tick-DUuDXLjB.esm.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
2
2
  import { useMemo, useState, useCallback, useEffect } from "react";
3
- import { u as useTheme, B as Box, a as AppBarWrapper, A as ActivityArea, C as ChatBot } from "./appbar-ByiY9Ehc.esm.js";
4
- import { S as Sidebar } from "./sidebar-CG90JVRA.esm.js";
3
+ import { u as useTheme, B as Box, a as AppBarWrapper, A as ActivityArea, C as ChatBot } from "./appbar-7puZelDZ.esm.js";
4
+ import { S as Sidebar } from "./sidebar-B6-JNM4K.esm.js";
5
5
  import { d as drawerWidth } from "./mui.constants-BFBzxaiA.esm.js";
6
6
  import { u as useLanguage } from "./useLangauge-dxTIlPe-.esm.js";
7
7
  import { at as getToken } from "./common-BVfS06ca.esm.js";
@@ -197,4 +197,4 @@ const SidebarLayout = (props) => {
197
197
  export {
198
198
  SidebarLayout as S
199
199
  };
200
- //# sourceMappingURL=sidebarScreen-C3OHGWsn.esm.js.map
200
+ //# sourceMappingURL=sidebarScreen-C7gUqSYZ.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidebarScreen-C3OHGWsn.esm.js","sources":["../../src/layout/sidebarScreen/sidebarScreen.tsx"],"sourcesContent":["import { useEffect, useState, useCallback, useMemo } from 'react';\n\nimport { useTheme } from '@mui/material/styles';\nimport Box from '@mui/material/Box';\n\nimport AppBar from '../../components/appbar/appbar';\nimport SideBar from '../../components/sidebar/sidebar';\nimport ActivityArea from '../../components/activityArea/activityArea';\nimport ChatBot from '../../components/chat-bot/chat-bot';\n\nimport drawerWidth from '../../constants/mui.constants';\n// const drawerWidth = 240;\nimport { useLanguage } from '../../hooks/useLangauge';\nimport { getToken } from '@/utils';\nimport { getV1Settings } from '../../api-client/api.manufacturing/api';\nimport { useLocation } from 'react-router-dom';\n\n// Local storage key for drawer state\nconst DRAWER_STATE_KEY = '_is_drawer_open';\n\n// Interface for better type safety\nexport interface ISidebarLayoutProps {\n\tmenu: any[];\n\tchildren: React.ReactNode;\n\tdashboardPath?: string;\n}\n\nexport const SidebarLayout = (props: ISidebarLayoutProps) => {\n\tconst theme = useTheme();\n\tconst { currentLanguage } = useLanguage();\n\tconst isRtl = useMemo(\n\t\t() => currentLanguage?.direction === 'rtl',\n\t\t[currentLanguage]\n\t);\n\t// Enhanced state management\n\tconst [forcedOpen, setForcedOpen] = useState(true);\n\tconst [hoverOpen, setHoverOpen] = useState(false);\n\tconst [isInitialized, setIsInitialized] = useState(false);\n\tconst location = useLocation();\n\tconst curPathName = useMemo(() => location.pathname, [location.pathname])\n\n\t// Memoized computed state for actual drawer open status\n\tconst isDrawerOpen = forcedOpen || (!forcedOpen && hoverOpen);\n\n\t// Enhanced drawer control functions with better state management\n\tconst handleDrawerOpen = useCallback(() => {\n\t\tsetForcedOpen(true);\n\t\tsetHoverOpen(false); // Clear hover state when forcing open\n\t\ttry {\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t} catch (error) {\n\t\t\tconsole.warn('Failed to save drawer state to localStorage:', error);\n\t\t}\n\t}, []);\n\n\tconst handleDrawerClose = useCallback(() => {\n\t\tsetForcedOpen(false);\n\t\twindow.localStorage.setItem('_is_drawer_open', 'false');\n\t}, []);\n\n\tconst [wipSettingsData, setWipSettingsData] = useState<any>(null);\n\n\tconst getSettings = useCallback(async () => {\n\t\t// getToken returns { \"x-token\": string; \"x-timezone\": number }, but API expects string type for \"x-timezone\"\n\t\tconst tokenData = getToken();\n\t\tconst apiParams = {\n\t\t\t'x-token': tokenData['x-token'],\n\t\t\t'x-timezone': String(tokenData['x-timezone'])\n\t\t};\n\t\tconst response = await getV1Settings(apiParams);\n\t\t// The \"data\" property may not exist on GetV1SettingsResponses, so check existence safely\n\t\tconst data = (response && (response as any)?.data?.settings?.[0]) || null;\n\t\tsetWipSettingsData(data);\n\t\tlocalStorage.setItem('wip_settings_data', JSON.stringify(data));\n\t}, []);\n\tuseEffect(() => {\n\t\tif(curPathName?.includes('manufacturing')) {\n\t\t\tgetSettings();\n\t\t}\n\t}, [getSettings, curPathName]);\n\n\tconst [manufacturingSubmenu, setManufacturingSubmenu] = useState<any>(\n\t\tprops.menu\n\t);\n\n\tuseEffect(() => {\n\t\tif (wipSettingsData && Array.isArray(props?.menu)) {\n\t\t\tconsole.log('wipSettingsData: ', wipSettingsData);\n\t\t\tconst _new = props.menu.filter((item) => {\n\t\t\t\tif (!wipSettingsData?.enable_production_planning) {\n\t\t\t\t\treturn item.label !== 'Plans';\n\t\t\t\t} else {\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetManufacturingSubmenu(_new);\n\t\t}\n\t}, [wipSettingsData, props.menu]);\n\t// const module_type = '';\n\n\tconst handleMouseEnter = () => {\n\t\tif (!forcedOpen) {\n\t\t\t// setOpen(true);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t}\n\t};\n\n\tconst handleMouseLeave = useCallback(() => {\n\t\tif (!forcedOpen && isInitialized) {\n\t\t\tsetHoverOpen(false);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'false');\n\t\t}\n\t}, [forcedOpen, isInitialized]);\n\n\t// Toggle function for programmatic control\n\tconst toggleDrawer = useCallback(() => {\n\t\tif (forcedOpen) {\n\t\t\thandleDrawerClose();\n\t\t} else {\n\t\t\thandleDrawerOpen();\n\t\t}\n\t}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);\n\n\t// Enhanced initialization with error handling\n\tuseEffect(() => {\n\t\tconst initializeDrawerState = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\tsetHoverOpen(false); // Ensure hover state is reset\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback for environments without localStorage\n\t\t\t\t\tsetForcedOpen(true);\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to read drawer state from localStorage:', error);\n\t\t\t\t// Fallback to default state\n\t\t\t\tsetForcedOpen(true);\n\t\t\t\tsetIsInitialized(true);\n\t\t\t}\n\t\t};\n\n\t\tinitializeDrawerState();\n\t}, []);\n\n\t// Handle window focus to sync state across tabs\n\tuseEffect(() => {\n\t\tconst handleWindowFocus = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tif (shouldBeOpen !== forcedOpen) {\n\t\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\t\tsetHoverOpen(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to sync drawer state on window focus:', error);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('focus', handleWindowFocus);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('focus', handleWindowFocus);\n\t\t};\n\t}, [forcedOpen]);\n\n\t// Prevent rendering until initialization is complete\n\tif (!isInitialized) {\n\t\treturn (\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tminHeight: '100vh',\n\t\t\t\t\talignItems: 'center',\n\t\t\t\t\tjustifyContent: 'center'\n\t\t\t\t}}>\n\t\t\t\t{/* Optional loading indicator */}\n\t\t\t\t<Box>Loading...</Box>\n\t\t\t</Box>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tminHeight: '100vh',\n\t\t\t\tdirection: isRtl ? 'rtl' : 'ltr'\n\t\t\t}}>\n\t\t\t<AppBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t/>\n\n\t\t\t<SideBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\ttheme={theme}\n\t\t\t\tmenu={manufacturingSubmenu}\n\t\t\t\thandleMouseEnter={handleMouseEnter}\n\t\t\t\thandleMouseLeave={handleMouseLeave}\n\t\t\t\tisInitialized={isInitialized}\n\t\t\t\tdashboardPath={props.dashboardPath}\n\t\t\t/>\n\n\t\t\t<ActivityArea\n\t\t\t\tisDrawerOpen={isDrawerOpen}\n\t\t\t\tdrawerWidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}>\n\t\t\t\t{props.children}\n\t\t\t</ActivityArea>\n\t\t\t<ChatBot />\n\t\t</Box>\n\t);\n};\n\nexport default SidebarLayout;\n"],"names":["jsx","jsxs","AppBar","SideBar"],"mappings":";;;;;;;;;AAkBA,MAAM,mBAAmB;AASlB,MAAM,gBAAgB,CAAC,UAA+B;AAC5D,QAAM,QAAQ,SAAA;AACd,QAAM,EAAE,gBAAA,IAAoB,YAAA;AAC5B,QAAM,QAAQ;AAAA,IACb,OAAM,mDAAiB,eAAc;AAAA,IACrC,CAAC,eAAe;AAAA,EAAA;AAGjB,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,IAAI;AACjD,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAChD,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAS,KAAK;AACxD,QAAM,WAAW,YAAA;AACjB,QAAM,cAAc,QAAQ,MAAM,SAAS,UAAU,CAAC,SAAS,QAAQ,CAAC;AAGxE,QAAM,eAAe,cAAe,CAAC,cAAc;AAGnD,QAAM,mBAAmB,YAAY,MAAM;AAC1C,kBAAc,IAAI;AAClB,iBAAa,KAAK;AAClB,QAAI;AACH,aAAO,aAAa,QAAQ,kBAAkB,MAAM;AAAA,IACrD,SAAS,OAAO;AACf,cAAQ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AAO,oBAAoB,SAAS,iBAAiB;AAAA,IACtD;AAAA,EACD,GAAG,CAAC,UAAU,CAAC;AAGf,MAAI,CAAC,eAAe;AACnB,WACCA,kCAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACA,IAAI;AAAA,UACH,SAAS;AAAA,UACT,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,gBAAgB;AAAA,QAAA;AAAA,QAGjB,UAAAA,kCAAAA,IAAC,OAAI,UAAA,aAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAGlB;AAEA,SACCC,kCAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACA,IAAI;AAAA,QACH,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW,QAAQ,QAAQ;AAAA,MAAA;AAAA,MAE5B,UAAA;AAAA,QAAAD,kCAAAA;AAAAA,UAACE;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAO;AAAA,YACP;AAAA,YACA;AAAA,UAAA;AAAA,QAAA;AAAA,QAGDF,kCAAAA;AAAAA,UAACG;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAO;AAAA,YACP;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,eAAe,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBH,kCAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACC,UAAA,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,8CAEP,SAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
1
+ {"version":3,"file":"sidebarScreen-C7gUqSYZ.esm.js","sources":["../../src/layout/sidebarScreen/sidebarScreen.tsx"],"sourcesContent":["import { useEffect, useState, useCallback, useMemo } from 'react';\n\nimport { useTheme } from '@mui/material/styles';\nimport Box from '@mui/material/Box';\n\nimport AppBar from '../../components/appbar/appbar';\nimport SideBar from '../../components/sidebar/sidebar';\nimport ActivityArea from '../../components/activityArea/activityArea';\nimport ChatBot from '../../components/chat-bot/chat-bot';\n\nimport drawerWidth from '../../constants/mui.constants';\n// const drawerWidth = 240;\nimport { useLanguage } from '../../hooks/useLangauge';\nimport { getToken } from '@/utils';\nimport { getV1Settings } from '../../api-client/api.manufacturing/api';\nimport { useLocation } from 'react-router-dom';\n\n// Local storage key for drawer state\nconst DRAWER_STATE_KEY = '_is_drawer_open';\n\n// Interface for better type safety\nexport interface ISidebarLayoutProps {\n\tmenu: any[];\n\tchildren: React.ReactNode;\n\tdashboardPath?: string;\n}\n\nexport const SidebarLayout = (props: ISidebarLayoutProps) => {\n\tconst theme = useTheme();\n\tconst { currentLanguage } = useLanguage();\n\tconst isRtl = useMemo(\n\t\t() => currentLanguage?.direction === 'rtl',\n\t\t[currentLanguage]\n\t);\n\t// Enhanced state management\n\tconst [forcedOpen, setForcedOpen] = useState(true);\n\tconst [hoverOpen, setHoverOpen] = useState(false);\n\tconst [isInitialized, setIsInitialized] = useState(false);\n\tconst location = useLocation();\n\tconst curPathName = useMemo(() => location.pathname, [location.pathname])\n\n\t// Memoized computed state for actual drawer open status\n\tconst isDrawerOpen = forcedOpen || (!forcedOpen && hoverOpen);\n\n\t// Enhanced drawer control functions with better state management\n\tconst handleDrawerOpen = useCallback(() => {\n\t\tsetForcedOpen(true);\n\t\tsetHoverOpen(false); // Clear hover state when forcing open\n\t\ttry {\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t} catch (error) {\n\t\t\tconsole.warn('Failed to save drawer state to localStorage:', error);\n\t\t}\n\t}, []);\n\n\tconst handleDrawerClose = useCallback(() => {\n\t\tsetForcedOpen(false);\n\t\twindow.localStorage.setItem('_is_drawer_open', 'false');\n\t}, []);\n\n\tconst [wipSettingsData, setWipSettingsData] = useState<any>(null);\n\n\tconst getSettings = useCallback(async () => {\n\t\t// getToken returns { \"x-token\": string; \"x-timezone\": number }, but API expects string type for \"x-timezone\"\n\t\tconst tokenData = getToken();\n\t\tconst apiParams = {\n\t\t\t'x-token': tokenData['x-token'],\n\t\t\t'x-timezone': String(tokenData['x-timezone'])\n\t\t};\n\t\tconst response = await getV1Settings(apiParams);\n\t\t// The \"data\" property may not exist on GetV1SettingsResponses, so check existence safely\n\t\tconst data = (response && (response as any)?.data?.settings?.[0]) || null;\n\t\tsetWipSettingsData(data);\n\t\tlocalStorage.setItem('wip_settings_data', JSON.stringify(data));\n\t}, []);\n\tuseEffect(() => {\n\t\tif(curPathName?.includes('manufacturing')) {\n\t\t\tgetSettings();\n\t\t}\n\t}, [getSettings, curPathName]);\n\n\tconst [manufacturingSubmenu, setManufacturingSubmenu] = useState<any>(\n\t\tprops.menu\n\t);\n\n\tuseEffect(() => {\n\t\tif (wipSettingsData && Array.isArray(props?.menu)) {\n\t\t\tconsole.log('wipSettingsData: ', wipSettingsData);\n\t\t\tconst _new = props.menu.filter((item) => {\n\t\t\t\tif (!wipSettingsData?.enable_production_planning) {\n\t\t\t\t\treturn item.label !== 'Plans';\n\t\t\t\t} else {\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetManufacturingSubmenu(_new);\n\t\t}\n\t}, [wipSettingsData, props.menu]);\n\t// const module_type = '';\n\n\tconst handleMouseEnter = () => {\n\t\tif (!forcedOpen) {\n\t\t\t// setOpen(true);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t}\n\t};\n\n\tconst handleMouseLeave = useCallback(() => {\n\t\tif (!forcedOpen && isInitialized) {\n\t\t\tsetHoverOpen(false);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'false');\n\t\t}\n\t}, [forcedOpen, isInitialized]);\n\n\t// Toggle function for programmatic control\n\tconst toggleDrawer = useCallback(() => {\n\t\tif (forcedOpen) {\n\t\t\thandleDrawerClose();\n\t\t} else {\n\t\t\thandleDrawerOpen();\n\t\t}\n\t}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);\n\n\t// Enhanced initialization with error handling\n\tuseEffect(() => {\n\t\tconst initializeDrawerState = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\tsetHoverOpen(false); // Ensure hover state is reset\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback for environments without localStorage\n\t\t\t\t\tsetForcedOpen(true);\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to read drawer state from localStorage:', error);\n\t\t\t\t// Fallback to default state\n\t\t\t\tsetForcedOpen(true);\n\t\t\t\tsetIsInitialized(true);\n\t\t\t}\n\t\t};\n\n\t\tinitializeDrawerState();\n\t}, []);\n\n\t// Handle window focus to sync state across tabs\n\tuseEffect(() => {\n\t\tconst handleWindowFocus = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tif (shouldBeOpen !== forcedOpen) {\n\t\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\t\tsetHoverOpen(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to sync drawer state on window focus:', error);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('focus', handleWindowFocus);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('focus', handleWindowFocus);\n\t\t};\n\t}, [forcedOpen]);\n\n\t// Prevent rendering until initialization is complete\n\tif (!isInitialized) {\n\t\treturn (\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tminHeight: '100vh',\n\t\t\t\t\talignItems: 'center',\n\t\t\t\t\tjustifyContent: 'center'\n\t\t\t\t}}>\n\t\t\t\t{/* Optional loading indicator */}\n\t\t\t\t<Box>Loading...</Box>\n\t\t\t</Box>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tminHeight: '100vh',\n\t\t\t\tdirection: isRtl ? 'rtl' : 'ltr'\n\t\t\t}}>\n\t\t\t<AppBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t/>\n\n\t\t\t<SideBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\ttheme={theme}\n\t\t\t\tmenu={manufacturingSubmenu}\n\t\t\t\thandleMouseEnter={handleMouseEnter}\n\t\t\t\thandleMouseLeave={handleMouseLeave}\n\t\t\t\tisInitialized={isInitialized}\n\t\t\t\tdashboardPath={props.dashboardPath}\n\t\t\t/>\n\n\t\t\t<ActivityArea\n\t\t\t\tisDrawerOpen={isDrawerOpen}\n\t\t\t\tdrawerWidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}>\n\t\t\t\t{props.children}\n\t\t\t</ActivityArea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AAAA,MAE5B,UAAA;AAAA,QAAAD,kCAAAA;AAAAA,UAACE;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAO;AAAA,YACP;AAAA,YACA;AAAA,UAAA;AAAA,QAAA;AAAA,QAGDF,kCAAAA;AAAAA,UAACG;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAO;AAAA,YACP;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,eAAe,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBH,kCAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACC,UAAA,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,8CAEP,SAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B6vEU3CM.js");
3
3
  const React = require("react");
4
- const appbar = require("./appbar-Cht2DM8y.js");
5
- const sidebar = require("./sidebar-CwqNppLF.js");
4
+ const appbar = require("./appbar-DbazXkez.js");
5
+ const sidebar = require("./sidebar-CBzmUNFw.js");
6
6
  const mui_constants = require("./mui.constants-CJEIUmWO.js");
7
7
  const useLangauge = require("./useLangauge-DsEM05Ll.js");
8
8
  const common = require("./common-B1hGK8kQ.js");
@@ -196,4 +196,4 @@ const SidebarLayout = (props) => {
196
196
  );
197
197
  };
198
198
  exports.SidebarLayout = SidebarLayout;
199
- //# sourceMappingURL=sidebarScreen-DVwqG-Hi.js.map
199
+ //# sourceMappingURL=sidebarScreen-vIzHgQxd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidebarScreen-DVwqG-Hi.js","sources":["../../src/layout/sidebarScreen/sidebarScreen.tsx"],"sourcesContent":["import { useEffect, useState, useCallback, useMemo } from 'react';\n\nimport { useTheme } from '@mui/material/styles';\nimport Box from '@mui/material/Box';\n\nimport AppBar from '../../components/appbar/appbar';\nimport SideBar from '../../components/sidebar/sidebar';\nimport ActivityArea from '../../components/activityArea/activityArea';\nimport ChatBot from '../../components/chat-bot/chat-bot';\n\nimport drawerWidth from '../../constants/mui.constants';\n// const drawerWidth = 240;\nimport { useLanguage } from '../../hooks/useLangauge';\nimport { getToken } from '@/utils';\nimport { getV1Settings } from '../../api-client/api.manufacturing/api';\nimport { useLocation } from 'react-router-dom';\n\n// Local storage key for drawer state\nconst DRAWER_STATE_KEY = '_is_drawer_open';\n\n// Interface for better type safety\nexport interface ISidebarLayoutProps {\n\tmenu: any[];\n\tchildren: React.ReactNode;\n\tdashboardPath?: string;\n}\n\nexport const SidebarLayout = (props: ISidebarLayoutProps) => {\n\tconst theme = useTheme();\n\tconst { currentLanguage } = useLanguage();\n\tconst isRtl = useMemo(\n\t\t() => currentLanguage?.direction === 'rtl',\n\t\t[currentLanguage]\n\t);\n\t// Enhanced state management\n\tconst [forcedOpen, setForcedOpen] = useState(true);\n\tconst [hoverOpen, setHoverOpen] = useState(false);\n\tconst [isInitialized, setIsInitialized] = useState(false);\n\tconst location = useLocation();\n\tconst curPathName = useMemo(() => location.pathname, [location.pathname])\n\n\t// Memoized computed state for actual drawer open status\n\tconst isDrawerOpen = forcedOpen || (!forcedOpen && hoverOpen);\n\n\t// Enhanced drawer control functions with better state management\n\tconst handleDrawerOpen = useCallback(() => {\n\t\tsetForcedOpen(true);\n\t\tsetHoverOpen(false); // Clear hover state when forcing open\n\t\ttry {\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t} catch (error) {\n\t\t\tconsole.warn('Failed to save drawer state to localStorage:', error);\n\t\t}\n\t}, []);\n\n\tconst handleDrawerClose = useCallback(() => {\n\t\tsetForcedOpen(false);\n\t\twindow.localStorage.setItem('_is_drawer_open', 'false');\n\t}, []);\n\n\tconst [wipSettingsData, setWipSettingsData] = useState<any>(null);\n\n\tconst getSettings = useCallback(async () => {\n\t\t// getToken returns { \"x-token\": string; \"x-timezone\": number }, but API expects string type for \"x-timezone\"\n\t\tconst tokenData = getToken();\n\t\tconst apiParams = {\n\t\t\t'x-token': tokenData['x-token'],\n\t\t\t'x-timezone': String(tokenData['x-timezone'])\n\t\t};\n\t\tconst response = await getV1Settings(apiParams);\n\t\t// The \"data\" property may not exist on GetV1SettingsResponses, so check existence safely\n\t\tconst data = (response && (response as any)?.data?.settings?.[0]) || null;\n\t\tsetWipSettingsData(data);\n\t\tlocalStorage.setItem('wip_settings_data', JSON.stringify(data));\n\t}, []);\n\tuseEffect(() => {\n\t\tif(curPathName?.includes('manufacturing')) {\n\t\t\tgetSettings();\n\t\t}\n\t}, [getSettings, curPathName]);\n\n\tconst [manufacturingSubmenu, setManufacturingSubmenu] = useState<any>(\n\t\tprops.menu\n\t);\n\n\tuseEffect(() => {\n\t\tif (wipSettingsData && Array.isArray(props?.menu)) {\n\t\t\tconsole.log('wipSettingsData: ', wipSettingsData);\n\t\t\tconst _new = props.menu.filter((item) => {\n\t\t\t\tif (!wipSettingsData?.enable_production_planning) {\n\t\t\t\t\treturn item.label !== 'Plans';\n\t\t\t\t} else {\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetManufacturingSubmenu(_new);\n\t\t}\n\t}, [wipSettingsData, props.menu]);\n\t// const module_type = '';\n\n\tconst handleMouseEnter = () => {\n\t\tif (!forcedOpen) {\n\t\t\t// setOpen(true);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t}\n\t};\n\n\tconst handleMouseLeave = useCallback(() => {\n\t\tif (!forcedOpen && isInitialized) {\n\t\t\tsetHoverOpen(false);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'false');\n\t\t}\n\t}, [forcedOpen, isInitialized]);\n\n\t// Toggle function for programmatic control\n\tconst toggleDrawer = useCallback(() => {\n\t\tif (forcedOpen) {\n\t\t\thandleDrawerClose();\n\t\t} else {\n\t\t\thandleDrawerOpen();\n\t\t}\n\t}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);\n\n\t// Enhanced initialization with error handling\n\tuseEffect(() => {\n\t\tconst initializeDrawerState = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\tsetHoverOpen(false); // Ensure hover state is reset\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback for environments without localStorage\n\t\t\t\t\tsetForcedOpen(true);\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to read drawer state from localStorage:', error);\n\t\t\t\t// Fallback to default state\n\t\t\t\tsetForcedOpen(true);\n\t\t\t\tsetIsInitialized(true);\n\t\t\t}\n\t\t};\n\n\t\tinitializeDrawerState();\n\t}, []);\n\n\t// Handle window focus to sync state across tabs\n\tuseEffect(() => {\n\t\tconst handleWindowFocus = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tif (shouldBeOpen !== forcedOpen) {\n\t\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\t\tsetHoverOpen(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to sync drawer state on window focus:', error);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('focus', handleWindowFocus);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('focus', handleWindowFocus);\n\t\t};\n\t}, [forcedOpen]);\n\n\t// Prevent rendering until initialization is complete\n\tif (!isInitialized) {\n\t\treturn (\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tminHeight: '100vh',\n\t\t\t\t\talignItems: 'center',\n\t\t\t\t\tjustifyContent: 'center'\n\t\t\t\t}}>\n\t\t\t\t{/* Optional loading indicator */}\n\t\t\t\t<Box>Loading...</Box>\n\t\t\t</Box>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tminHeight: '100vh',\n\t\t\t\tdirection: isRtl ? 'rtl' : 'ltr'\n\t\t\t}}>\n\t\t\t<AppBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t/>\n\n\t\t\t<SideBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\ttheme={theme}\n\t\t\t\tmenu={manufacturingSubmenu}\n\t\t\t\thandleMouseEnter={handleMouseEnter}\n\t\t\t\thandleMouseLeave={handleMouseLeave}\n\t\t\t\tisInitialized={isInitialized}\n\t\t\t\tdashboardPath={props.dashboardPath}\n\t\t\t/>\n\n\t\t\t<ActivityArea\n\t\t\t\tisDrawerOpen={isDrawerOpen}\n\t\t\t\tdrawerWidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}>\n\t\t\t\t{props.children}\n\t\t\t</ActivityArea>\n\t\t\t<ChatBot />\n\t\t</Box>\n\t);\n};\n\nexport default SidebarLayout;\n"],"names":["useTheme","useLanguage","useMemo","useState","useLocation","useCallback","getToken","getV1Settings","useEffect","jsx","Box","jsxs","AppBar","drawerWidth","SideBar","ActivityArea","ChatBot"],"mappings":";;;;;;;;;;AAkBA,MAAM,mBAAmB;AASlB,MAAM,gBAAgB,CAAC,UAA+B;AAC5D,QAAM,QAAQA,OAAAA,SAAA;AACd,QAAM,EAAE,gBAAA,IAAoBC,wBAAA;AAC5B,QAAM,QAAQC,MAAAA;AAAAA,IACb,OAAM,mDAAiB,eAAc;AAAA,IACrC,CAAC,eAAe;AAAA,EAAA;AAGjB,QAAM,CAAC,YAAY,aAAa,IAAIC,MAAAA,SAAS,IAAI;AACjD,QAAM,CAAC,WAAW,YAAY,IAAIA,MAAAA,SAAS,KAAK;AAChD,QAAM,CAAC,eAAe,gBAAgB,IAAIA,MAAAA,SAAS,KAAK;AACxD,QAAM,WAAWC,eAAAA,YAAA;AACjB,QAAM,cAAcF,MAAAA,QAAQ,MAAM,SAAS,UAAU,CAAC,SAAS,QAAQ,CAAC;AAGxE,QAAM,eAAe,cAAe,CAAC,cAAc;AAGnD,QAAM,mBAAmBG,MAAAA,YAAY,MAAM;AAC1C,kBAAc,IAAI;AAClB,iBAAa,KAAK;AAClB,QAAI;AACH,aAAO,aAAa,QAAQ,kBAAkB,MAAM;AAAA,IACrD,SAAS,OAAO;AACf,cAAQ,KAAK,gDAAgD,KAAK;AAAA,IACnE;AAAA,EACD,GAAG,CAAA,CAAE;AAEL,QAAM,oBAAoBA,MAAAA,YAAY,MAAM;AAC3C,kBAAc,KAAK;AACnB,WAAO,aAAa,QAAQ,mBAAmB,OAAO;AAAA,EACvD,GAAG,CAAA,CAAE;AAEL,QAAM,CAAC,iBAAiB,kBAAkB,IAAIF,MAAAA,SAAc,IAAI;AAEhE,QAAM,cAAcE,MAAAA,YAAY,Y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SAAS;AAAA,UACT,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,gBAAgB;AAAA,QAAA;AAAA,QAGjB,UAAAD,2BAAAA,kBAAAA,IAACC,OAAAA,OAAI,UAAA,aAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAGlB;AAEA,SACCC,2BAAAA,kBAAAA;AAAAA,IAACD,OAAAA;AAAAA,IAAA;AAAA,MACA,IAAI;AAAA,QACH,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW,QAAQ,QAAQ;AAAA,MAAA;AAAA,MAE5B,UAAA;AAAA,QAAAD,2BAAAA,kBAAAA;AAAAA,UAACG,OAAAA;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAOC,cAAAA;AAAAA,YACP;AAAA,YACA;AAAA,UAAA;AAAA,QAAA;AAAA,QAGDJ,2BAAAA,kBAAAA;AAAAA,UAACK,QAAAA;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAOD,cAAAA;AAAAA,YACP;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,eAAe,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBJ,2BAAAA,kBAAAA;AAAAA,UAACM,OAAAA;AAAAA,UAAA;AAAA,YACA;AAAA,YAAA,aACAF,cAAAA;AAAAA,YACA;AAAA,YACC,UAAA,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,yDAEPG,OAAAA,SAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;;"}
1
+ {"version":3,"file":"sidebarScreen-vIzHgQxd.js","sources":["../../src/layout/sidebarScreen/sidebarScreen.tsx"],"sourcesContent":["import { useEffect, useState, useCallback, useMemo } from 'react';\n\nimport { useTheme } from '@mui/material/styles';\nimport Box from '@mui/material/Box';\n\nimport AppBar from '../../components/appbar/appbar';\nimport SideBar from '../../components/sidebar/sidebar';\nimport ActivityArea from '../../components/activityArea/activityArea';\nimport ChatBot from '../../components/chat-bot/chat-bot';\n\nimport drawerWidth from '../../constants/mui.constants';\n// const drawerWidth = 240;\nimport { useLanguage } from '../../hooks/useLangauge';\nimport { getToken } from '@/utils';\nimport { getV1Settings } from '../../api-client/api.manufacturing/api';\nimport { useLocation } from 'react-router-dom';\n\n// Local storage key for drawer state\nconst DRAWER_STATE_KEY = '_is_drawer_open';\n\n// Interface for better type safety\nexport interface ISidebarLayoutProps {\n\tmenu: any[];\n\tchildren: React.ReactNode;\n\tdashboardPath?: string;\n}\n\nexport const SidebarLayout = (props: ISidebarLayoutProps) => {\n\tconst theme = useTheme();\n\tconst { currentLanguage } = useLanguage();\n\tconst isRtl = useMemo(\n\t\t() => currentLanguage?.direction === 'rtl',\n\t\t[currentLanguage]\n\t);\n\t// Enhanced state management\n\tconst [forcedOpen, setForcedOpen] = useState(true);\n\tconst [hoverOpen, setHoverOpen] = useState(false);\n\tconst [isInitialized, setIsInitialized] = useState(false);\n\tconst location = useLocation();\n\tconst curPathName = useMemo(() => location.pathname, [location.pathname])\n\n\t// Memoized computed state for actual drawer open status\n\tconst isDrawerOpen = forcedOpen || (!forcedOpen && hoverOpen);\n\n\t// Enhanced drawer control functions with better state management\n\tconst handleDrawerOpen = useCallback(() => {\n\t\tsetForcedOpen(true);\n\t\tsetHoverOpen(false); // Clear hover state when forcing open\n\t\ttry {\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t} catch (error) {\n\t\t\tconsole.warn('Failed to save drawer state to localStorage:', error);\n\t\t}\n\t}, []);\n\n\tconst handleDrawerClose = useCallback(() => {\n\t\tsetForcedOpen(false);\n\t\twindow.localStorage.setItem('_is_drawer_open', 'false');\n\t}, []);\n\n\tconst [wipSettingsData, setWipSettingsData] = useState<any>(null);\n\n\tconst getSettings = useCallback(async () => {\n\t\t// getToken returns { \"x-token\": string; \"x-timezone\": number }, but API expects string type for \"x-timezone\"\n\t\tconst tokenData = getToken();\n\t\tconst apiParams = {\n\t\t\t'x-token': tokenData['x-token'],\n\t\t\t'x-timezone': String(tokenData['x-timezone'])\n\t\t};\n\t\tconst response = await getV1Settings(apiParams);\n\t\t// The \"data\" property may not exist on GetV1SettingsResponses, so check existence safely\n\t\tconst data = (response && (response as any)?.data?.settings?.[0]) || null;\n\t\tsetWipSettingsData(data);\n\t\tlocalStorage.setItem('wip_settings_data', JSON.stringify(data));\n\t}, []);\n\tuseEffect(() => {\n\t\tif(curPathName?.includes('manufacturing')) {\n\t\t\tgetSettings();\n\t\t}\n\t}, [getSettings, curPathName]);\n\n\tconst [manufacturingSubmenu, setManufacturingSubmenu] = useState<any>(\n\t\tprops.menu\n\t);\n\n\tuseEffect(() => {\n\t\tif (wipSettingsData && Array.isArray(props?.menu)) {\n\t\t\tconsole.log('wipSettingsData: ', wipSettingsData);\n\t\t\tconst _new = props.menu.filter((item) => {\n\t\t\t\tif (!wipSettingsData?.enable_production_planning) {\n\t\t\t\t\treturn item.label !== 'Plans';\n\t\t\t\t} else {\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetManufacturingSubmenu(_new);\n\t\t}\n\t}, [wipSettingsData, props.menu]);\n\t// const module_type = '';\n\n\tconst handleMouseEnter = () => {\n\t\tif (!forcedOpen) {\n\t\t\t// setOpen(true);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'true');\n\t\t}\n\t};\n\n\tconst handleMouseLeave = useCallback(() => {\n\t\tif (!forcedOpen && isInitialized) {\n\t\t\tsetHoverOpen(false);\n\t\t\twindow.localStorage.setItem(DRAWER_STATE_KEY, 'false');\n\t\t}\n\t}, [forcedOpen, isInitialized]);\n\n\t// Toggle function for programmatic control\n\tconst toggleDrawer = useCallback(() => {\n\t\tif (forcedOpen) {\n\t\t\thandleDrawerClose();\n\t\t} else {\n\t\t\thandleDrawerOpen();\n\t\t}\n\t}, [forcedOpen, handleDrawerClose, handleDrawerOpen]);\n\n\t// Enhanced initialization with error handling\n\tuseEffect(() => {\n\t\tconst initializeDrawerState = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\tsetHoverOpen(false); // Ensure hover state is reset\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback for environments without localStorage\n\t\t\t\t\tsetForcedOpen(true);\n\t\t\t\t\tsetIsInitialized(true);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to read drawer state from localStorage:', error);\n\t\t\t\t// Fallback to default state\n\t\t\t\tsetForcedOpen(true);\n\t\t\t\tsetIsInitialized(true);\n\t\t\t}\n\t\t};\n\n\t\tinitializeDrawerState();\n\t}, []);\n\n\t// Handle window focus to sync state across tabs\n\tuseEffect(() => {\n\t\tconst handleWindowFocus = () => {\n\t\t\ttry {\n\t\t\t\tif (typeof window !== 'undefined' && window.localStorage) {\n\t\t\t\t\tconst savedState = window.localStorage.getItem(DRAWER_STATE_KEY);\n\t\t\t\t\tconst shouldBeOpen = savedState === 'true';\n\n\t\t\t\t\tif (shouldBeOpen !== forcedOpen) {\n\t\t\t\t\t\tsetForcedOpen(shouldBeOpen);\n\t\t\t\t\t\tsetHoverOpen(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Failed to sync drawer state on window focus:', error);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('focus', handleWindowFocus);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('focus', handleWindowFocus);\n\t\t};\n\t}, [forcedOpen]);\n\n\t// Prevent rendering until initialization is complete\n\tif (!isInitialized) {\n\t\treturn (\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tminHeight: '100vh',\n\t\t\t\t\talignItems: 'center',\n\t\t\t\t\tjustifyContent: 'center'\n\t\t\t\t}}>\n\t\t\t\t{/* Optional loading indicator */}\n\t\t\t\t<Box>Loading...</Box>\n\t\t\t</Box>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tminHeight: '100vh',\n\t\t\t\tdirection: isRtl ? 'rtl' : 'ltr'\n\t\t\t}}>\n\t\t\t<AppBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t/>\n\n\t\t\t<SideBar\n\t\t\t\topen={forcedOpen}\n\t\t\t\tforcedOpen={forcedOpen}\n\t\t\t\thoverOpen={hoverOpen}\n\t\t\t\thandleDrawerClose={handleDrawerClose}\n\t\t\t\thandleDrawerOpen={handleDrawerOpen}\n\t\t\t\ttoggleDrawer={toggleDrawer}\n\t\t\t\twidth={drawerWidth}\n\t\t\t\ttheme={theme}\n\t\t\t\tmenu={manufacturingSubmenu}\n\t\t\t\thandleMouseEnter={handleMouseEnter}\n\t\t\t\thandleMouseLeave={handleMouseLeave}\n\t\t\t\tisInitialized={isInitialized}\n\t\t\t\tdashboardPath={props.dashboardPath}\n\t\t\t/>\n\n\t\t\t<ActivityArea\n\t\t\t\tisDrawerOpen={isDrawerOpen}\n\t\t\t\tdrawerWidth={drawerWidth}\n\t\t\t\tforcedOpen={forcedOpen}>\n\t\t\t\t{props.children}\n\t\t\t</ActivityArea>\n\t\t\t<ChatBot />\n\t\t</Box>\n\t);\n};\n\nexport default SidebarLayout;\n"],"names":["useTheme","useLanguage","useMemo","useState","useLocation","useCallback","getToken","getV1Settings","useEffect","jsx","Box","jsxs","AppBar","drawerWidth","SideBar","ActivityArea","ChatBot"],"mappings":";;;;;;;;;;AAkBA,MAAM,mBAAmB;AASlB,MAAM,gBAAgB,CAAC,UAA+B;AAC5D,QAAM,QAAQA,OAAAA,SAAA;AACd,QAAM,EAAE,gBAAA,IAAoBC,wBAAA;AAC5B,QAAM,QAAQC,MAAAA;AAAAA,IACb,OAAM,mDAAiB,eAAc;AAAA,IACrC,CAAC,eAAe;AAAA,EAAA;AAGjB,QAAM,CAAC,YAAY,aAAa,IAAIC,MAAAA,SAAS,IAAI;AACjD,QAAM,CAAC,WAAW,YAAY,IAAIA,MAAAA,SAAS,KAAK;AAChD,QAAM,CAAC,eAAe,gBAAgB,IAAIA,MAAAA,SAAS,KAAK;AACxD,QAAM,WAAWC,eAAAA,YAAA;AACjB,QAAM,cAAcF,MAAAA,QAAQ,MAAM,SAAS,UAAU,CAAC,SAAS,QAAQ,CAAC;AAGxE,QAAM,eAAe,cAAe,CAAC,cAAc;AAGnD,QAAM,mBAAmBG,MAAAA,YAAY,MAAM;AAC1C,kBAAc,IAAI;AAClB,iBAAa,KAAK;AAClB,QAAI;AACH,aAAO,aAAa,QAAQ,kBAAkB,MAAM;AAAA,IACrD,SAAS,OAAO;AACf,cAAQ,KAAK,gDAAgD,KAAK;AAAA,IACnE;AAAA,EACD,GAAG,CAAA,CAAE;AAEL,QAAM,oBAAoBA,MAAAA,YAAY,MAAM;AAC3C,kBAAc,KAAK;AACnB,WAAO,aAAa,QAAQ,mBAAmB,OAAO;AAAA,EACvD,GAAG,CAAA,CAAE;AAEL,QAAM,CAAC,iBAAiB,kBAAkB,IAAIF,MAAAA,SAAc,IAAI;AAEhE,QAAM,cAAcE,MAAAA,YAAY,YAAY;;AAE3C,UAAM,YAAYC,OAAAA,SAAA;AAClB,UAAM,YAAY;AAAA,MACjB,WAAW,UAAU,SAAS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AAAD,2BAAAA,kBAAAA,IAACC,OAAAA,OAAI,UAAA,aAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAGlB;AAEA,SACCC,2BAAAA,kBAAAA;AAAAA,IAACD,OAAAA;AAAAA,IAAA;AAAA,MACA,IAAI;AAAA,QACH,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW,QAAQ,QAAQ;AAAA,MAAA;AAAA,MAE5B,UAAA;AAAA,QAAAD,2BAAAA,kBAAAA;AAAAA,UAACG,OAAAA;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAOC,cAAAA;AAAAA,YACP;AAAA,YACA;AAAA,UAAA;AAAA,QAAA;AAAA,QAGDJ,2BAAAA,kBAAAA;AAAAA,UAACK,QAAAA;AAAAA,UAAA;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,OAAOD,cAAAA;AAAAA,YACP;AAAA,YACA,MAAM;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA,eAAe,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBJ,2BAAAA,kBAAAA;AAAAA,UAACM,OAAAA;AAAAA,UAAA;AAAA,YACA;AAAA,YAAA,aACAF,cAAAA;AAAAA,YACA;AAAA,YACC,UAAA,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,yDAEPG,OAAAA,SAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;;"}
@@ -1,6 +1,22 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B6vEU3CM.js");
3
3
  const notification = require("./notification-vWmhkTRo.js");
4
+ const ArrowDown = notification.Styled(
5
+ notification.createSvgIcon(
6
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
7
+ "path",
8
+ {
9
+ d: "M19.92 8.94995L13.4 15.47C12.63 16.24 11.37 16.24 10.6 15.47L4.07996 8.94995",
10
+ stroke: "currentColor",
11
+ "stroke-width": "2.5",
12
+ "stroke-miterlimit": "10",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round"
15
+ }
16
+ ) }),
17
+ "ArrowDown"
18
+ )
19
+ );
4
20
  const EyeOff = notification.Styled(
5
21
  notification.createSvgIcon(
6
22
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
@@ -169,9 +185,10 @@ const Tick = notification.Styled(
169
185
  "Tick"
170
186
  )
171
187
  );
188
+ exports.ArrowDown = ArrowDown;
172
189
  exports.EyeOff = EyeOff;
173
190
  exports.Save = Save;
174
191
  exports.Search = Search;
175
192
  exports.SearchStatus = SearchStatus;
176
193
  exports.Tick = Tick;
177
- //# sourceMappingURL=tick-B4IAsV4W.js.map
194
+ //# sourceMappingURL=tick-COMAwRR1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tick-COMAwRR1.js","sources":["../../src/components/icons/arrow-down.tsx","../../src/components/icons/eye-off.tsx","../../src/components/icons/save.tsx","../../src/components/icons/search-status.tsx","../../src/components/icons/search.tsx","../../src/components/icons/tick.tsx"],"sourcesContent":["import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const ArrowDown = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path\n\t\t\t\td=\"M19.92 8.94995L13.4 15.47C12.63 16.24 11.37 16.24 10.6 15.47L4.07996 8.94995\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\tstroke-miterlimit=\"10\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t</svg>,\n\t\t'ArrowDown'\n\t)\n)\n\nexport default ArrowDown\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from \"./custom-styled-icon\";\n\nexport const EyeOff = Styled(\n createSvgIcon(\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.68668 6.31328L6.31334 9.68661C5.88001 9.25328 5.61334 8.65995 5.61334 7.99995C5.61334 6.67995 6.68001 5.61328 8.00001 5.61328C8.66001 5.61328 9.25334 5.87995 9.68668 6.31328Z\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M11.88 3.84669C10.7133 2.96669 9.37999 2.48669 7.99999 2.48669C5.64665 2.48669 3.45332 3.87336 1.92665 6.27336C1.32665 7.21336 1.32665 8.79336 1.92665 9.73336C2.45332 10.56 3.06665 11.2734 3.73332 11.8467\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M5.61334 13.02C6.37334 13.34 7.18001 13.5133 8.00001 13.5133C10.3533 13.5133 12.5467 12.1266 14.0733 9.72662C14.6733 8.78662 14.6733 7.20662 14.0733 6.26662C13.8533 5.91995 13.6133 5.59329 13.3667 5.28662\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M10.34 8.46667C10.1667 9.40668 9.39999 10.1733 8.45999 10.3467\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M6.31334 9.68665L1.33334 14.6666\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14.6667 1.33337L9.68668 6.31337\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>,\n \"EyeOff\",\n ),\n);\n\nexport default EyeOff;\n","import React from 'react';\n\nimport createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon';\n\nexport const Save = Styled(\n\tcreateSvgIcon(\n\t\t<svg\n\t\t\txmlns='http://www.w3.org/2000/svg'\n\t\t\tversion='1.1'\n\t\t\txmlnsXlink='http://www.w3.org/1999/xlink'\n\t\t\twidth='512'\n\t\t\theight='512'\n\t\t\tx='0'\n\t\t\ty='0'\n\t\t\tviewBox='0 0 469.333 469.333'\n\t\t\txmlSpace='preserve'>\n\t\t\t<g transform='matrix(0.8099999999999997,0,0,0.8099999999999997,44.58672851562514,44.58672851562514)'>\n\t\t\t\t<path\n\t\t\t\t\td='M466.208 88.458 380.875 3.125c-2-2-4.708-3.125-7.542-3.125H42.667C19.146 0 0 19.135 0 42.667v384c0 23.531 19.146 42.667 42.667 42.667h384c23.521 0 42.667-19.135 42.667-42.667V96a10.665 10.665 0 0 0-3.126-7.542zM106.667 21.333h234.667v128c0 11.76-9.563 21.333-21.333 21.333H128c-11.771 0-21.333-9.573-21.333-21.333v-128zM384 448H85.333V256H384v192zm64-21.333c0 11.76-9.563 21.333-21.333 21.333h-21.333V245.333a10.66 10.66 0 0 0-10.667-10.667h-320A10.66 10.66 0 0 0 64 245.333V448H42.667c-11.771 0-21.333-9.573-21.333-21.333v-384c0-11.76 9.563-21.333 21.333-21.333h42.667v128C85.333 172.865 104.479 192 128 192h192c23.521 0 42.667-19.135 42.667-42.667v-128h6.25L448 100.417v326.25z'\n\t\t\t\t\tfill='currentColor'\n\t\t\t\t\topacity='1'\n\t\t\t\t\tdata-original='currentColor'></path>\n\t\t\t\t<path\n\t\t\t\t\td='M266.667 149.333h42.667a10.66 10.66 0 0 0 10.667-10.667V53.333a10.66 10.66 0 0 0-10.667-10.667h-42.667A10.66 10.66 0 0 0 256 53.333v85.333a10.66 10.66 0 0 0 10.667 10.667zM277.333 64h21.333v64h-21.333V64z'\n\t\t\t\t\tfill='currentColor'\n\t\t\t\t\topacity='1'\n\t\t\t\t\tdata-original='currentColor'></path>\n\t\t\t</g>\n\t\t</svg>,\n\t\t'Save'\n\t)\n);\n\nexport default Save;\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const SearchStatus = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path d=\"M14 5H20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t<path d=\"M14 8H17\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t<path\n\t\t\t\td=\"M21 11.5C21 16.75 16.75 21 11.5 21C6.25 21 2 16.75 2 11.5C2 6.25 6.25 2 11.5 2\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path d=\"M22 22L20 20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t</svg>,\n\t\t'SearchStatus'\n\t)\n)\n\nexport default SearchStatus\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const Search = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path\n\t\t\t\td=\"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path d=\"M22 22L20 20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t</svg>,\n\t\t'Search'\n\t)\n)\n\nexport default Search\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const Tick = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"10\" height=\"8\" viewBox=\"0 0 10 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path\n\t\t\t\td=\"M0.75 3.99992L3.58 6.82992L9.25 1.16992\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t</svg>,\n\t\t'Tick'\n\t)\n)\n\nexport default Tick\n"],"names":["Styled","createSvgIcon","jsx","jsxs"],"mappings":";;;AAGO,MAAM,YAAYA,aAAAA;AAAAA,EACxBC,aAAAA;AAAAA,IACCC,2BAAAA,kBAAAA,IAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACjE,UAAAA,2BAAAA,kBAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACA,GAAE;AAAA,QACF,QAAO;AAAA,QACP,gBAAa;AAAA,QACb,qBAAkB;AAAA,QAClB,kBAAe;AAAA,QACf,mBAAgB;AAAA,MAAA;AAAA,IAAA,GAElB;AAAA,IACA;AAAA,EAAA;AAEF;ACdO,MAAM,SAASF,aAAAA;AAAAA,EACpBC,aAAAA;AAAAA,IACEE,2BAAAA,kBAAAA;AAAAA,MAAC;AA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A,2BAAAA,kBAAAA,IAAC,QAAA,EAAK,GAAE,gBAAe,QAAO,gBAAe,gBAAa,KAAI,kBAAe,SAAQ,mBAAgB,QAAA,CAAQ;AAAA,IAAA,GAC9G;AAAA,IACA;AAAA,EAAA;AAEF;AChBO,MAAM,SAASF,aAAAA;AAAAA,EACrBC,aAAAA;AAAAA,IACCE,2BAAAA,kBAAAA,KAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACjE,UAAA;AAAA,MAAAD,2BAAAA,kBAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACA,GAAE;AAAA,UACF,QAAO;AAAA,UACP,gBAAa;AAAA,UACb,kBAAe;AAAA,UACf,mBAAgB;AAAA,QAAA;AAAA,MAAA;AAAA,MAEjBA,2BAAAA,kBAAAA,IAAC,QAAA,EAAK,GAAE,gBAAe,QAAO,gBAAe,gBAAa,KAAI,kBAAe,SAAQ,mBAAgB,QAAA,CAAQ;AAAA,IAAA,GAC9G;AAAA,IACA;AAAA,EAAA;AAEF;ACdO,MAAM,OAAOF,aAAAA;AAAAA,EACnBC,aAAAA;AAAAA,IACCC,2BAAAA,kBAAAA,IAAC,OAAA,EAAI,OAAM,MAAK,QAAO,KAAI,SAAQ,YAAW,MAAK,QAAO,OAAM,8BAC/D,UAAAA,2BAAAA,kBAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACA,GAAE;AAAA,QACF,QAAO;AAAA,QACP,gBAAa;AAAA,QACb,kBAAe;AAAA,QACf,mBAAgB;AAAA,MAAA;AAAA,IAAA,GAElB;AAAA,IACA;AAAA,EAAA;AAEF;;;;;;;"}
@@ -1,5 +1,21 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
2
2
  import { S as Styled, c as createSvgIcon } from "./notification-_WEc_EZI.esm.js";
3
+ const ArrowDown = Styled(
4
+ createSvgIcon(
5
+ /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6
+ "path",
7
+ {
8
+ d: "M19.92 8.94995L13.4 15.47C12.63 16.24 11.37 16.24 10.6 15.47L4.07996 8.94995",
9
+ stroke: "currentColor",
10
+ "stroke-width": "2.5",
11
+ "stroke-miterlimit": "10",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round"
14
+ }
15
+ ) }),
16
+ "ArrowDown"
17
+ )
18
+ );
3
19
  const EyeOff = Styled(
4
20
  createSvgIcon(
5
21
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -169,10 +185,11 @@ const Tick = Styled(
169
185
  )
170
186
  );
171
187
  export {
188
+ ArrowDown as A,
172
189
  EyeOff as E,
173
190
  Save as S,
174
191
  Tick as T,
175
192
  Search as a,
176
193
  SearchStatus as b
177
194
  };
178
- //# sourceMappingURL=tick-DUuDXLjB.esm.js.map
195
+ //# sourceMappingURL=tick-DaxkNl7E.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tick-DaxkNl7E.esm.js","sources":["../../src/components/icons/arrow-down.tsx","../../src/components/icons/eye-off.tsx","../../src/components/icons/save.tsx","../../src/components/icons/search-status.tsx","../../src/components/icons/search.tsx","../../src/components/icons/tick.tsx"],"sourcesContent":["import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const ArrowDown = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path\n\t\t\t\td=\"M19.92 8.94995L13.4 15.47C12.63 16.24 11.37 16.24 10.6 15.47L4.07996 8.94995\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\tstroke-miterlimit=\"10\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t</svg>,\n\t\t'ArrowDown'\n\t)\n)\n\nexport default ArrowDown\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from \"./custom-styled-icon\";\n\nexport const EyeOff = Styled(\n createSvgIcon(\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.68668 6.31328L6.31334 9.68661C5.88001 9.25328 5.61334 8.65995 5.61334 7.99995C5.61334 6.67995 6.68001 5.61328 8.00001 5.61328C8.66001 5.61328 9.25334 5.87995 9.68668 6.31328Z\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M11.88 3.84669C10.7133 2.96669 9.37999 2.48669 7.99999 2.48669C5.64665 2.48669 3.45332 3.87336 1.92665 6.27336C1.32665 7.21336 1.32665 8.79336 1.92665 9.73336C2.45332 10.56 3.06665 11.2734 3.73332 11.8467\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M5.61334 13.02C6.37334 13.34 7.18001 13.5133 8.00001 13.5133C10.3533 13.5133 12.5467 12.1266 14.0733 9.72662C14.6733 8.78662 14.6733 7.20662 14.0733 6.26662C13.8533 5.91995 13.6133 5.59329 13.3667 5.28662\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M10.34 8.46667C10.1667 9.40668 9.39999 10.1733 8.45999 10.3467\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M6.31334 9.68665L1.33334 14.6666\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14.6667 1.33337L9.68668 6.31337\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>,\n \"EyeOff\",\n ),\n);\n\nexport default EyeOff;\n","import React from 'react';\n\nimport createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon';\n\nexport const Save = Styled(\n\tcreateSvgIcon(\n\t\t<svg\n\t\t\txmlns='http://www.w3.org/2000/svg'\n\t\t\tversion='1.1'\n\t\t\txmlnsXlink='http://www.w3.org/1999/xlink'\n\t\t\twidth='512'\n\t\t\theight='512'\n\t\t\tx='0'\n\t\t\ty='0'\n\t\t\tviewBox='0 0 469.333 469.333'\n\t\t\txmlSpace='preserve'>\n\t\t\t<g transform='matrix(0.8099999999999997,0,0,0.8099999999999997,44.58672851562514,44.58672851562514)'>\n\t\t\t\t<path\n\t\t\t\t\td='M466.208 88.458 380.875 3.125c-2-2-4.708-3.125-7.542-3.125H42.667C19.146 0 0 19.135 0 42.667v384c0 23.531 19.146 42.667 42.667 42.667h384c23.521 0 42.667-19.135 42.667-42.667V96a10.665 10.665 0 0 0-3.126-7.542zM106.667 21.333h234.667v128c0 11.76-9.563 21.333-21.333 21.333H128c-11.771 0-21.333-9.573-21.333-21.333v-128zM384 448H85.333V256H384v192zm64-21.333c0 11.76-9.563 21.333-21.333 21.333h-21.333V245.333a10.66 10.66 0 0 0-10.667-10.667h-320A10.66 10.66 0 0 0 64 245.333V448H42.667c-11.771 0-21.333-9.573-21.333-21.333v-384c0-11.76 9.563-21.333 21.333-21.333h42.667v128C85.333 172.865 104.479 192 128 192h192c23.521 0 42.667-19.135 42.667-42.667v-128h6.25L448 100.417v326.25z'\n\t\t\t\t\tfill='currentColor'\n\t\t\t\t\topacity='1'\n\t\t\t\t\tdata-original='currentColor'></path>\n\t\t\t\t<path\n\t\t\t\t\td='M266.667 149.333h42.667a10.66 10.66 0 0 0 10.667-10.667V53.333a10.66 10.66 0 0 0-10.667-10.667h-42.667A10.66 10.66 0 0 0 256 53.333v85.333a10.66 10.66 0 0 0 10.667 10.667zM277.333 64h21.333v64h-21.333V64z'\n\t\t\t\t\tfill='currentColor'\n\t\t\t\t\topacity='1'\n\t\t\t\t\tdata-original='currentColor'></path>\n\t\t\t</g>\n\t\t</svg>,\n\t\t'Save'\n\t)\n);\n\nexport default Save;\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const SearchStatus = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path d=\"M14 5H20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t<path d=\"M14 8H17\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t<path\n\t\t\t\td=\"M21 11.5C21 16.75 16.75 21 11.5 21C6.25 21 2 16.75 2 11.5C2 6.25 6.25 2 11.5 2\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path d=\"M22 22L20 20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t</svg>,\n\t\t'SearchStatus'\n\t)\n)\n\nexport default SearchStatus\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const Search = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path\n\t\t\t\td=\"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path d=\"M22 22L20 20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t</svg>,\n\t\t'Search'\n\t)\n)\n\nexport default Search\n","import createSvgIcon from '@mui/material/utils/createSvgIcon';\nimport Styled from './custom-styled-icon'\n\nexport const Tick = Styled(\n\tcreateSvgIcon(\n\t\t<svg width=\"10\" height=\"8\" viewBox=\"0 0 10 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path\n\t\t\t\td=\"M0.75 3.99992L3.58 6.82992L9.25 1.16992\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t</svg>,\n\t\t'Tick'\n\t)\n)\n\nexport default Tick\n"],"names":["jsx","jsxs"],"mappings":";;AAGO,MAAM,YAAY;AAAA,EACxB;AAAA,IACCA,kCAAAA,IAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACjE,UAAAA,kCAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACA,GAAE;AAAA,QACF,QAAO;AAAA,QACP,gBAAa;AAAA,QACb,qBAAkB;AAAA,QAClB,kBAAe;AAAA,QACf,mBAAgB;AAAA,MAAA;AAAA,IAAA,GAElB;AAAA,IACA;AAAA,EAAA;AAEF;ACdO,MAAM,SAAS;AAAA,EACpB;AAAA,IACEC,kCAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,MAAK;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AAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACjE,UAAA;AAAA,MAAAD,kCAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACA,GAAE;AAAA,UACF,QAAO;AAAA,UACP,gBAAa;AAAA,UACb,kBAAe;AAAA,UACf,mBAAgB;AAAA,QAAA;AAAA,MAAA;AAAA,MAEjBA,kCAAAA,IAAC,QAAA,EAAK,GAAE,gBAAe,QAAO,gBAAe,gBAAa,KAAI,kBAAe,SAAQ,mBAAgB,QAAA,CAAQ;AAAA,IAAA,GAC9G;AAAA,IACA;AAAA,EAAA;AAEF;ACdO,MAAM,OAAO;AAAA,EACnB;AAAA,IACCA,kCAAAA,IAAC,OAAA,EAAI,OAAM,MAAK,QAAO,KAAI,SAAQ,YAAW,MAAK,QAAO,OAAM,8BAC/D,UAAAA,kCAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACA,GAAE;AAAA,QACF,QAAO;AAAA,QACP,gBAAa;AAAA,QACb,kBAAe;AAAA,QACf,mBAAgB;AAAA,MAAA;AAAA,IAAA,GAElB;AAAA,IACA;AAAA,EAAA;AAEF;"}
@@ -2,8 +2,8 @@ import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
2
2
  import { useFieldArray, Controller, useForm, useWatch, useFormContext } from "react-hook-form";
3
3
  import { P as PropTypes, e as _objectWithoutPropertiesLoose, _ as _extends$1, g as generateUtilityClass, j as capitalize, u as useDefaultProps, k as interopRequireDefaultExports, y as lighten_1, z as darken_1, f as alpha_1 } from "./identifier-0SZUhw_A.esm.js";
4
4
  import { i as default_1$3, T as Typography, e as useForkRef, o as ownerWindow, d as useEnhancedEffect, h as debounce, p as isMuiElement, u as useAuth, q as useControlled, r as requireCreateSvgIcon } from "./useAuth-b1FMAFmO.esm.js";
5
- import { aq as default_1$4, w as DynamicSelect, h as DateTimePicker, D as DatePicker$1, ar as useThemeProps, A as Accordion$1, a8 as Select, f as ChipOrPlaceholder$1, i as DropdownButton, s as DynamicPhone, u as DynamicSearchSelect, k as DynamicCheckBox, af as TitleDropdownButton, T as HeaderCard, ad as TabBar, as as default_1$5, a7 as SearchableSelect, at as Chip$1, ae as TimePicker, aj as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, m as DynamicDate, z as DynamicTime, C as ChipGenerator, M as Footer, F as Fallback, au as IconButton$1, av as TabContext, aw as TabList, ax as Tab, ay as TabPanel, az as default_1$9, a as ActionBar, aA as SwitchBase } from "./android-12-switch-DOruO2DA.esm.js";
6
- import { D as DynamicInput, z as Typography$1, b as Avatar, F as o, M as Modal, c as ConfirmPopUp, B as Box$1, d as Toast, u as useTheme$1, S as SearchBar, G as resolveComponentProps, I as mergeSlotProps, J as appendOwnerState, P as Paper$1, n as chainPropTypes, f as ButtonBase$1, x as default_1$6, T as TextField$1, e as Tooltip$1, E as default_1$7, w as default_1$8, K as Menu$2, N as MenuItem$1, p as useRtl, y as List$1, t as ListItem, O as ListItemText$1, Q as refType } from "./appbar-ByiY9Ehc.esm.js";
5
+ import { aq as default_1$4, w as DynamicSelect, h as DateTimePicker, D as DatePicker$1, ar as useThemeProps, A as Accordion$1, a8 as Select, f as ChipOrPlaceholder$1, i as DropdownButton, s as DynamicPhone, u as DynamicSearchSelect, k as DynamicCheckBox, af as TitleDropdownButton, T as HeaderCard, ad as TabBar, as as default_1$5, a7 as SearchableSelect, at as Chip$1, ae as TimePicker, aj as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, m as DynamicDate, z as DynamicTime, C as ChipGenerator, M as Footer, F as Fallback, au as IconButton$1, av as TabContext, aw as TabList, ax as Tab, ay as TabPanel, az as default_1$9, a as ActionBar, aA as SwitchBase } from "./android-12-switch-DPP00xjJ.esm.js";
6
+ import { D as DynamicInput, z as Typography$1, b as Avatar, F as o, M as Modal, c as ConfirmPopUp, B as Box$1, d as Toast, u as useTheme$1, S as SearchBar, G as resolveComponentProps, I as mergeSlotProps, J as appendOwnerState, P as Paper$1, n as chainPropTypes, f as ButtonBase$1, x as default_1$6, T as TextField$1, e as Tooltip$1, E as default_1$7, w as default_1$8, K as Menu$2, N as MenuItem$1, p as useRtl, y as List$1, t as ListItem, O as ListItemText$1, Q as refType } from "./appbar-7puZelDZ.esm.js";
7
7
  import * as React from "react";
8
8
  import React__default, { useState, lazy, useMemo, useRef, useEffect, useCallback, useLayoutEffect, useContext, createElement, createContext, cloneElement } from "react";
9
9
  import DatePicker from "react-datepicker";
@@ -26,7 +26,7 @@ import * as Yup from "yup";
26
26
  import { C as Checkbox$1, f as usePages, b as useDeepMemo, a as useApi } from "./checkbox-Vd4h25n2.esm.js";
27
27
  import { B as Button } from "./button-CiFUSruA.esm.js";
28
28
  import { C as Chip, M as Menu, t as transformTableColumns, d as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-1hYI2jWw.esm.js";
29
- import { M as MoreIcon, p as Filter, c as ArrowUpDown, f as Export, o as Calendar$1, a as ArrowDown } from "./radio-button-wgwiOmaZ.esm.js";
29
+ import { M as MoreIcon, o as Filter, b as ArrowUpDown, e as Export, n as Calendar$1 } from "./radio-button-mbPNQ3rc.esm.js";
30
30
  import { enqueueSnackbar, useSnackbar, SnackbarProvider } from "notistack";
31
31
  import { useDispatch } from "react-redux";
32
32
  import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./ERPUIProvider-CmmabhgQ.esm.js";
@@ -40,7 +40,7 @@ import timeGridPlugin from "@fullcalendar/timegrid";
40
40
  import resourceTimeGridPlugin from "@fullcalendar/resource-timegrid";
41
41
  import timelinePlugin from "@fullcalendar/timeline";
42
42
  import resourceTimelinePlugin from "@fullcalendar/resource-timeline";
43
- import { E as EyeOff } from "./tick-DUuDXLjB.esm.js";
43
+ import { E as EyeOff, A as ArrowDown } from "./tick-DaxkNl7E.esm.js";
44
44
  import { E as Eye } from "./eye-PU88lR34.esm.js";
45
45
  import { j as Copy$1, e as ArrowUp } from "./arrow-up-BDkqlEB_.esm.js";
46
46
  import ReactFlagsSelect from "react-flags-select";
@@ -53,7 +53,7 @@ import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
53
53
  import DataEditor, { GridCellKind } from "@glideapps/glide-data-grid";
54
54
  import { useExtraCells } from "@glideapps/glide-data-grid-cells";
55
55
  import { createPortal } from "react-dom";
56
- import { C as Collapse$1 } from "./sidebar-CG90JVRA.esm.js";
56
+ import { C as Collapse$1 } from "./sidebar-B6-JNM4K.esm.js";
57
57
  import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
58
58
  import { R as RecgtangleIcon, C as CheckBoxIcon$1, T as Trash, E as Edit } from "./trash-Dgfsw2UY.esm.js";
59
59
  import { C as Close$1 } from "./document-CFCrnZGh.esm.js";
@@ -16974,4 +16974,4 @@ export {
16974
16974
  DyanmicTextEditor as y,
16975
16975
  DynamicDateRange as z
16976
16976
  };
16977
- //# sourceMappingURL=uom-field-wrapper-DalNHR65.esm.js.map
16977
+ //# sourceMappingURL=uom-field-wrapper-BnjRsGw2.esm.js.map