@xframework-ca-test/cli 1.0.32 → 1.0.34

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 (377) hide show
  1. package/dist/ui/assets/AIVision-0025192f.js +4 -0
  2. package/dist/ui/assets/AccountDetails-42610e44.js +1 -0
  3. package/dist/ui/assets/AccountDetails-5b4cd3f7.js +1 -0
  4. package/dist/ui/assets/AccountServices-f68f471d.js +1 -0
  5. package/dist/ui/assets/AccountsList-262479cf.js +1 -0
  6. package/dist/ui/assets/ActionLink-9db8b1c2.js +1 -0
  7. package/dist/ui/assets/AdaptableCard-3d1e1f96.js +1 -0
  8. package/dist/ui/assets/AddAccount-2cd72664.js +1 -0
  9. package/dist/ui/assets/AddEditFile-6ae10d57.js +1 -0
  10. package/dist/ui/assets/AddEditTranslation-3812ff0f.js +1 -0
  11. package/dist/ui/assets/AiApiLogList-1eac39b7.js +1 -0
  12. package/dist/ui/assets/AiCa-2e90495f.js +1 -0
  13. package/dist/ui/assets/Alert-59d09a99.js +1 -0
  14. package/dist/ui/assets/ApiService-df126758.js +1 -0
  15. package/dist/ui/assets/AppLandingPage-afcea727.js +4 -0
  16. package/dist/ui/assets/AuditLogsList-ea37686b.js +1 -0
  17. package/dist/ui/assets/Auth0Callback-00729568.js +1 -0
  18. package/dist/ui/assets/BarCodes-4ff49536.js +1 -0
  19. package/dist/ui/assets/BlankLayout-7085ab88.js +1 -0
  20. package/dist/ui/assets/{BrainServices-a4bb698e.js → BrainServices-4cb93af5.js} +1 -1
  21. package/dist/ui/assets/CalendarList-689ed66a.js +2 -0
  22. package/dist/ui/assets/CalendarList-f4a9aa21.css +8 -0
  23. package/dist/ui/assets/CategoryList-a6d01041.js +1 -0
  24. package/dist/ui/assets/CategoryList-c03f4259.js +1 -0
  25. package/dist/ui/assets/ChatContainer-fec7b84d.js +1 -0
  26. package/dist/ui/assets/ChatsList-4b3194e4.js +1 -0
  27. package/dist/ui/assets/Check-af681a30.js +1 -0
  28. package/dist/ui/assets/CheckInVideo-aa9f50b2.js +6 -0
  29. package/dist/ui/assets/ClassicLayout-a9866742.js +2 -0
  30. package/dist/ui/assets/CompanyList-94119d71.js +1 -0
  31. package/dist/ui/assets/{CompanyService-1bf7c3c8.js → CompanyService-491a9cc1.js} +1 -1
  32. package/dist/ui/assets/{Component-59e4c14b.js → Component-566d01e0.js} +1 -1
  33. package/dist/ui/assets/ConfirmDialog-2838a642.js +1 -0
  34. package/dist/ui/assets/ContactDetails-c9dc0ed1.js +1 -0
  35. package/dist/ui/assets/{ContactService-92281a90.js → ContactService-8afcaeb7.js} +1 -1
  36. package/dist/ui/assets/ContactsList-5b06c9b8.js +1 -0
  37. package/dist/ui/assets/CountiesList-18b23cf7.js +1 -0
  38. package/dist/ui/assets/CountyDetails-ea024f14.js +1 -0
  39. package/dist/ui/assets/CourseDetails-8a5f8d63.js +1 -0
  40. package/dist/ui/assets/CourseList-3564fec3.js +1 -0
  41. package/dist/ui/assets/{CourseService-f0dc3bf1.js → CourseService-29ad460c.js} +1 -1
  42. package/dist/ui/assets/CreateSignature-c22e4a71.js +7 -0
  43. package/dist/ui/assets/{CustomerInfoField-fff65ace.js → CustomerInfoField-4bf880e2.js} +1 -1
  44. package/dist/ui/assets/DeckedLayout-610fe851.js +1 -0
  45. package/dist/ui/assets/DensitySelector-5d2e901f.js +1 -0
  46. package/dist/ui/assets/{DepartmentServices-3d56a9e7.js → DepartmentServices-a53e998b.js} +1 -1
  47. package/dist/ui/assets/{DigitalSignature-fff42e33.js → DigitalSignature-69eaf80c.js} +1 -1
  48. package/dist/ui/assets/{DocumemtManagementService-6501a5c1.js → DocumemtManagementService-85cde51a.js} +1 -1
  49. package/dist/ui/assets/DocumentActivity-bc938c61.js +1 -0
  50. package/dist/ui/assets/DocumentLayout-a12982d7.js +1 -0
  51. package/dist/ui/assets/DocumentList2-9c8c6284.js +23 -0
  52. package/dist/ui/assets/DocumentLists-1cdaae06.js +1 -0
  53. package/dist/ui/assets/DocumentUserSigned-f7371fc5.js +7 -0
  54. package/dist/ui/assets/DocumentsList-3b25907c.js +1 -0
  55. package/dist/ui/assets/DoubleSidedImage-b4bd3915.js +1 -0
  56. package/dist/ui/assets/{Drawer-949c18c6.js → Drawer-4f97e662.js} +1 -1
  57. package/dist/ui/assets/DynamicDashboard-0a41d287.js +1 -0
  58. package/dist/ui/assets/{DynamicTablesService-963fe77b.js → DynamicTablesService-6aa57f52.js} +1 -1
  59. package/dist/ui/assets/EditAccount-e42d66af.js +1 -0
  60. package/dist/ui/assets/EditLead-c8c9760a.js +1 -0
  61. package/dist/ui/assets/FaqItems-25d66543.js +6 -0
  62. package/dist/ui/assets/{FileManagementServices-25fd64c5.js → FileManagementServices-19b47568.js} +1 -1
  63. package/dist/ui/assets/{FolderOpen-88bfcc74.js → FolderOpen-7b0e2ac0.js} +1 -1
  64. package/dist/ui/assets/FormContainer-9a52b9e8.js +1 -0
  65. package/dist/ui/assets/{GeneralSettings-a7f805e8.js → GeneralSettings-c8c2f051.js} +5 -5
  66. package/dist/ui/assets/GenericPage-81e41302.js +1 -0
  67. package/dist/ui/assets/GridMapDetails-38f50b3c.js +1 -0
  68. package/dist/ui/assets/HorizontalMenuContent-fd559f4d.js +1 -0
  69. package/dist/ui/assets/{ImportFile-3f60d715.js → ImportFile-026b1771.js} +1 -1
  70. package/dist/ui/assets/{InlineSignaturePad-09c06619.js → InlineSignaturePad-f5630151.js} +1 -1
  71. package/dist/ui/assets/InvoicesList-9723bc5a.js +1 -0
  72. package/dist/ui/assets/{KeyVaultService-874d83fe.js → KeyVaultService-9608f0ff.js} +1 -1
  73. package/dist/ui/assets/LeadDetails-8cdaae0e.js +1 -0
  74. package/dist/ui/assets/{LeadSourceService-e46fa85e.js → LeadSourceService-cf71ea64.js} +1 -1
  75. package/dist/ui/assets/LeadsList-1ec20a77.js +1 -0
  76. package/dist/ui/assets/Logo-dd6f7656.js +1 -0
  77. package/dist/ui/assets/MapView-dcab88b3.js +1 -0
  78. package/dist/ui/assets/MarketingPage-998d10b0.js +4 -0
  79. package/dist/ui/assets/MenuNew-79fc95f3.js +1 -0
  80. package/dist/ui/assets/{MenuTable-c2c65021.js → MenuTable-f69e0fe4.js} +1 -1
  81. package/dist/ui/assets/MessageInput-07fcc5cb.js +21 -0
  82. package/dist/ui/assets/MessagesList-21d2b034.js +1 -0
  83. package/dist/ui/assets/ModernLayout-05af7cf7.js +1 -0
  84. package/dist/ui/assets/{NoData-8c485a3a.js → NoData-4cc4af03.js} +1 -1
  85. package/dist/ui/assets/Notify-8fb74d48.js +1 -0
  86. package/dist/ui/assets/OpportunitiesList-2f96958f.js +1 -0
  87. package/dist/ui/assets/OpportunityDetails-aaec3200.js +1 -0
  88. package/dist/ui/assets/{OpportunityServices-fa4fabfd.js → OpportunityServices-c4510dd2.js} +1 -1
  89. package/dist/ui/assets/OpportunityStatus-ea3b5ee2.js +1 -0
  90. package/dist/ui/assets/PageBreadcrumb-cf54a6e9.js +1 -0
  91. package/dist/ui/assets/{Password-d9294711.js → Password-21414dc6.js} +1 -1
  92. package/dist/ui/assets/PasswordInput-333c82ca.js +1 -0
  93. package/dist/ui/assets/{PreferenceService-75bf9db6.js → PreferenceService-d2b3e003.js} +1 -1
  94. package/dist/ui/assets/Profile-8c9fd2fc.js +1 -0
  95. package/dist/ui/assets/{ReportEditor-8880f57e.js → ReportEditor-4e4f6d53.js} +3 -3
  96. package/dist/ui/assets/{ReportViewer-9f1080f7.js → ReportViewer-616d3cfc.js} +30 -30
  97. package/dist/ui/assets/RoleEdit-a076ea85.js +1 -0
  98. package/dist/ui/assets/RoleForm-47691f91.js +1 -0
  99. package/dist/ui/assets/{RoleNew-49fadb16.js → RoleNew-e86a1513.js} +1 -1
  100. package/dist/ui/assets/{RoleService-7008da2c.js → RoleService-2f9ed883.js} +1 -1
  101. package/dist/ui/assets/ScheduleCycle-0ae23631.js +1 -0
  102. package/dist/ui/assets/{ScheduleService-7228f0a3.js → ScheduleService-41a88c41.js} +1 -1
  103. package/dist/ui/assets/ScreenList-8f58150b.js +1 -0
  104. package/dist/ui/assets/Settings-fc91c9d2.js +2 -0
  105. package/dist/ui/assets/{SetupWizard-4172e377.js → SetupWizard-d1363582.js} +1 -1
  106. package/dist/ui/assets/SimpleLayout-77cfb778.js +1 -0
  107. package/dist/ui/assets/StackedSideLayout-2f1ee9d1.js +1 -0
  108. package/dist/ui/assets/StickyFooter-3e569b80.js +1 -0
  109. package/dist/ui/assets/SupportRequets-0ecd4ab8.js +1 -0
  110. package/dist/ui/assets/{Switcher-c8648037.js → Switcher-e2fba588.js} +1 -1
  111. package/dist/ui/assets/TimeLogApprovalDataList-7b49a432.js +1 -0
  112. package/dist/ui/assets/TimeLogApprovalList-78cab2b6.js +1 -0
  113. package/dist/ui/assets/TimeLogList-592b29aa.js +1 -0
  114. package/dist/ui/assets/{TimeLogService-cd7b2f61.js → TimeLogService-83166cbc.js} +1 -1
  115. package/dist/ui/assets/TimesheetsList-d1520efb.js +1 -0
  116. package/dist/ui/assets/TranslationList-88d7d5d7.js +1 -0
  117. package/dist/ui/assets/TweaksPanel-bc10bc47.js +112 -0
  118. package/dist/ui/assets/{Upload-fb34ce03.js → Upload-be937eb6.js} +4 -4
  119. package/dist/ui/assets/UserEdit-1f8208f3.js +1 -0
  120. package/dist/ui/assets/UserForm-e9b56aff.js +1 -0
  121. package/dist/ui/assets/{UserNew-b36c342c.js → UserNew-31fa258f.js} +1 -1
  122. package/dist/ui/assets/{UserService-047aef51.js → UserService-1b93ceb0.js} +1 -1
  123. package/dist/ui/assets/ViewTimeLogForApproval-ae077050.js +1 -0
  124. package/dist/ui/assets/Views-1359da48.js +1 -0
  125. package/dist/ui/assets/WelcomeList-dc8666ec.js +9 -0
  126. package/dist/ui/assets/WidgetLayoutsService-49730609.js +1 -0
  127. package/dist/ui/assets/{WrapperCell-a7981b07.js → WrapperCell-3d5592cf.js} +1 -1
  128. package/dist/ui/assets/actioncell-6b5ebd6c.js +1 -0
  129. package/dist/ui/assets/{ar-3c9c213e.js → ar-fb4f0ea8.js} +1 -1
  130. package/dist/ui/assets/calendarList-ac838a86.js +2 -0
  131. package/dist/ui/assets/{cjs-162261df.js → cjs-998de55c.js} +1 -1
  132. package/dist/ui/assets/createSvgIcon-aba65987.js +1 -0
  133. package/dist/ui/assets/documentsList-4e2e061e.js +1 -0
  134. package/dist/ui/assets/{es-be649ede.js → es-cd58d3ad.js} +1 -1
  135. package/dist/ui/assets/{esm-f306d015.js → esm-c40433f8.js} +1 -1
  136. package/dist/ui/assets/gridList-e1571c87.js +1 -0
  137. package/dist/ui/assets/gridMapTable-d95f9c70.js +1 -0
  138. package/dist/ui/assets/{index-f6be0390.js → index-00a8eb64.js} +1 -1
  139. package/dist/ui/assets/index-04438b6b.js +22 -0
  140. package/dist/ui/assets/index-058738bc.js +1 -0
  141. package/dist/ui/assets/{index-e4c6057f.js → index-0b08ce18.js} +1 -1
  142. package/dist/ui/assets/index-0d730815.js +4 -0
  143. package/dist/ui/assets/index-0efcf53a.js +1 -0
  144. package/dist/ui/assets/index-0f432250.js +1 -0
  145. package/dist/ui/assets/{index-cebd880b.js → index-0fd6e996.js} +1 -1
  146. package/dist/ui/assets/{index-49a94e54.js → index-11297f4a.js} +1 -1
  147. package/dist/ui/assets/index-14c1c1d7.js +1 -0
  148. package/dist/ui/assets/index-15e1f4be.js +1 -0
  149. package/dist/ui/assets/index-16586c21.js +1 -0
  150. package/dist/ui/assets/index-19346c14.js +1 -0
  151. package/dist/ui/assets/{index-16bb10a6.js → index-1dc2b9d2.js} +1 -1
  152. package/dist/ui/assets/index-211fbe21.js +1 -0
  153. package/dist/ui/assets/index-23e16bff.js +1 -0
  154. package/dist/ui/assets/index-27aef8b5.js +1 -0
  155. package/dist/ui/assets/{index-36228db5.js → index-289b3fd9.js} +1 -1
  156. package/dist/ui/assets/{index-a22a3546.js → index-2dae59b1.js} +1 -1
  157. package/dist/ui/assets/index-353fd6dd.js +1 -0
  158. package/dist/ui/assets/{index-ea125a16.js → index-359d245d.js} +1 -1
  159. package/dist/ui/assets/{index-c62ac197.js → index-3b5ce20a.js} +70 -62
  160. package/dist/ui/assets/index-3b929ba4.js +34 -0
  161. package/dist/ui/assets/index-42e3a337.js +1 -0
  162. package/dist/ui/assets/index-44b6de3a.js +1 -0
  163. package/dist/ui/assets/index-46d3ca9a.js +7 -0
  164. package/dist/ui/assets/{index-e3cc723f.js → index-49016ad0.js} +1 -1
  165. package/dist/ui/assets/index-51132258.js +1 -0
  166. package/dist/ui/assets/{index-dc103f22.js → index-52963879.js} +1 -1
  167. package/dist/ui/assets/{index-fcc1c999.js → index-533fd007.js} +1 -1
  168. package/dist/ui/assets/index-59ec468b.js +13 -0
  169. package/dist/ui/assets/index-5e2d5279.js +1 -0
  170. package/dist/ui/assets/{index-d17da176.js → index-62f95885.js} +1 -1
  171. package/dist/ui/assets/index-659c6412.js +1 -0
  172. package/dist/ui/assets/index-6873dfc3.js +1 -0
  173. package/dist/ui/assets/index-69a68d9e.js +1 -0
  174. package/dist/ui/assets/index-6a6902c7.js +1 -0
  175. package/dist/ui/assets/index-7596c6bb.js +1 -0
  176. package/dist/ui/assets/{index-47dcc43a.js → index-8045c5f0.js} +1 -1
  177. package/dist/ui/assets/{index-b028e652.js → index-8677acd1.js} +1 -1
  178. package/dist/ui/assets/{index-42e65911.js → index-88c52b97.js} +1 -1
  179. package/dist/ui/assets/index-89cfefab.js +1 -0
  180. package/dist/ui/assets/{index-bea4c3dc.js → index-8c0643fd.js} +1 -1
  181. package/dist/ui/assets/index-8d5b6a1f.js +1 -0
  182. package/dist/ui/assets/index-8d5d70f9.js +1 -0
  183. package/dist/ui/assets/{index-9b41371d.js → index-91505016.js} +1 -1
  184. package/dist/ui/assets/{index-ffc00dbb.js → index-92314073.js} +1 -1
  185. package/dist/ui/assets/index-985cf3f6.js +1 -0
  186. package/dist/ui/assets/index-a14e51de.js +1 -0
  187. package/dist/ui/assets/index-a733f80b.js +1 -0
  188. package/dist/ui/assets/index-a84d5808.js +1 -0
  189. package/dist/ui/assets/index-acac6006.js +1 -0
  190. package/dist/ui/assets/index-b0ef7ac3.js +1 -0
  191. package/dist/ui/assets/index-b6ef5984.js +1 -0
  192. package/dist/ui/assets/{index-fc9071e0.js → index-bd4edda3.js} +1 -1
  193. package/dist/ui/assets/{index-0ec72c4b.js → index-c29b8474.js} +1 -1
  194. package/dist/ui/assets/index-c88c7790.js +19 -0
  195. package/dist/ui/assets/index-ce89a95e.css +7 -0
  196. package/dist/ui/assets/index-d221d69e.js +1 -0
  197. package/dist/ui/assets/{index-f1576468.js → index-d33facae.js} +1 -1
  198. package/dist/ui/assets/index-e46c57a5.js +1 -0
  199. package/dist/ui/assets/index-e863817c.js +1 -0
  200. package/dist/ui/assets/index-f4af2342.js +1 -0
  201. package/dist/ui/assets/{index-77e820d0.js → index-fc9f8c4b.js} +1 -1
  202. package/dist/ui/assets/{index-ec2010d2.js → index-ff23edc5.js} +1 -1
  203. package/dist/ui/assets/{index.esm-70ab539c.js → index.esm-b2d342b5.js} +1 -1
  204. package/dist/ui/assets/liveLocation-8e0bb2f3.js +1 -0
  205. package/dist/ui/assets/{mapView-ab35acaa.js → mapView-c8063ed6.js} +1 -1
  206. package/dist/ui/assets/modeuls-setup-4b06843c.js +1 -0
  207. package/dist/ui/assets/{permissionHoc-6f787658.js → permissionHoc-0818bfb0.js} +1 -1
  208. package/dist/ui/assets/{react-21134174.js → react-12ddbe48.js} +1 -1
  209. package/dist/ui/assets/{react-4d5dc208.js → react-61e0b284.js} +1 -1
  210. package/dist/ui/assets/{strongPassword-bbec776a.js → strongPassword-6bc8786f.js} +1 -1
  211. package/dist/ui/assets/{styles-0608350c.js → styles-b7ae7bf6.js} +1 -1
  212. package/dist/ui/assets/{tableV2-4d1c9fd2.js → tableV2-99c808c0.js} +1 -1
  213. package/dist/ui/assets/tableV3-24eed052.js +1 -0
  214. package/dist/ui/assets/ticketRequestDetails-8b299fbd.js +1 -0
  215. package/dist/ui/assets/{useDidUpdate-25c4d4ed.js → useDidUpdate-de319a18.js} +1 -1
  216. package/dist/ui/assets/{useDrop-02b0e5d7.js → useDrop-8f0d11a7.js} +1 -1
  217. package/dist/ui/assets/useFilteredData-e8fad668.js +1 -0
  218. package/dist/ui/assets/{usePermission-d94b4984.js → usePermission-4689548c.js} +1 -1
  219. package/dist/ui/assets/{vendor-charts-eccea5d1.js → vendor-charts-4be0b5ab.js} +1 -1
  220. package/dist/ui/assets/{vendor-codemirror-c8203b49.js → vendor-codemirror-1a1216c9.js} +11 -11
  221. package/dist/ui/assets/{vendor-devex-33a39e11.js → vendor-devex-4076ffeb.js} +2 -2
  222. package/dist/ui/assets/{vendor-excel-ee8fc4e5.js → vendor-excel-3b3553df.js} +1 -1
  223. package/dist/ui/assets/{vendor-i18n-2fcb1983.js → vendor-i18n-b89304ef.js} +1 -1
  224. package/dist/ui/assets/vendor-mui-98daa63f.js +185 -0
  225. package/dist/ui/assets/{vendor-pdf-b2a5d8b1.js → vendor-pdf-3c29882d.js} +1 -1
  226. package/dist/ui/assets/withHeaderItem-df2cc5d9.js +1 -0
  227. package/dist/ui/assets/{zh-cn-1881e930.js → zh-cn-13c6c696.js} +1 -1
  228. package/dist/ui/config.js +16 -20
  229. package/dist/ui/index.html +9 -9
  230. package/dist/ui/manifest.json +2 -2
  231. package/index.bundle.js +23 -9
  232. package/package.json +1 -1
  233. package/dist/ui/assets/AIVision-4f515575.js +0 -4
  234. package/dist/ui/assets/AccountDetails-2b42d262.js +0 -1
  235. package/dist/ui/assets/AccountDetails-492dee8f.js +0 -1
  236. package/dist/ui/assets/AccountServices-62599aae.js +0 -1
  237. package/dist/ui/assets/AccountsList-fe7cb5f9.js +0 -1
  238. package/dist/ui/assets/ActionLink-33e476e1.js +0 -1
  239. package/dist/ui/assets/AdaptableCard-df7695d6.js +0 -1
  240. package/dist/ui/assets/AddAccount-a05910e8.js +0 -1
  241. package/dist/ui/assets/AddEditFile-063c229b.js +0 -1
  242. package/dist/ui/assets/AddEditTranslation-43beae49.js +0 -1
  243. package/dist/ui/assets/AiApiLogList-a488921d.js +0 -1
  244. package/dist/ui/assets/AiCa-9c1b25b2.js +0 -1
  245. package/dist/ui/assets/Alert-7dfbd254.js +0 -1
  246. package/dist/ui/assets/ApiService-2b99757f.js +0 -1
  247. package/dist/ui/assets/AppLandingPage-3956cf0c.js +0 -4
  248. package/dist/ui/assets/AuditLogsList-7a2ce37d.js +0 -1
  249. package/dist/ui/assets/Auth0Callback-b943f19f.js +0 -1
  250. package/dist/ui/assets/BarCodes-17ed5da4.js +0 -1
  251. package/dist/ui/assets/BlankLayout-2f6e1153.js +0 -1
  252. package/dist/ui/assets/CalendarList-25834ddb.css +0 -11
  253. package/dist/ui/assets/CalendarList-72739043.js +0 -2
  254. package/dist/ui/assets/CategoryList-9f82e9a3.js +0 -1
  255. package/dist/ui/assets/CategoryList-c97891e7.js +0 -1
  256. package/dist/ui/assets/ChatContainer-4a38b179.js +0 -1
  257. package/dist/ui/assets/ChatsList-6c2c3e2f.js +0 -1
  258. package/dist/ui/assets/Check-71f21a49.js +0 -1
  259. package/dist/ui/assets/CheckInVideo-cb5fa9a2.js +0 -6
  260. package/dist/ui/assets/ClassicLayout-7d09e5ac.js +0 -1
  261. package/dist/ui/assets/CompanyList-9532f511.js +0 -1
  262. package/dist/ui/assets/ConfirmDialog-3202eb3d.js +0 -1
  263. package/dist/ui/assets/ContactDetails-3b70919b.js +0 -1
  264. package/dist/ui/assets/ContactsList-e9ac0fa3.js +0 -1
  265. package/dist/ui/assets/CountiesList-6ad338a5.js +0 -1
  266. package/dist/ui/assets/CountyDetails-22d4bc89.js +0 -1
  267. package/dist/ui/assets/CourseDetails-18040b49.js +0 -1
  268. package/dist/ui/assets/CourseList-e502f89d.js +0 -1
  269. package/dist/ui/assets/CreateSignature-375d191b.js +0 -7
  270. package/dist/ui/assets/DeckedLayout-909ac220.js +0 -1
  271. package/dist/ui/assets/DensitySelector-a2c1c68f.js +0 -1
  272. package/dist/ui/assets/DocumentActivity-d63dacec.js +0 -1
  273. package/dist/ui/assets/DocumentLayout-637075fd.js +0 -1
  274. package/dist/ui/assets/DocumentList2-518d2fa4.js +0 -23
  275. package/dist/ui/assets/DocumentLists-2da9ff88.js +0 -1
  276. package/dist/ui/assets/DocumentUserSigned-27bfa6e6.js +0 -7
  277. package/dist/ui/assets/DocumentsList-9f56db71.js +0 -1
  278. package/dist/ui/assets/DoubleSidedImage-ae98733b.js +0 -1
  279. package/dist/ui/assets/DynamicDashboard-6f177244.js +0 -1
  280. package/dist/ui/assets/EditAccount-1c1a8318.js +0 -1
  281. package/dist/ui/assets/EditLead-cc38d2a2.js +0 -1
  282. package/dist/ui/assets/FaqItems-c1c85af7.js +0 -6
  283. package/dist/ui/assets/FormContainer-91c2b0e4.js +0 -1
  284. package/dist/ui/assets/GenericPage-25a5d92a.js +0 -1
  285. package/dist/ui/assets/GridMapDetails-851a5781.js +0 -1
  286. package/dist/ui/assets/HorizontalMenuContent-96da38e1.js +0 -1
  287. package/dist/ui/assets/InvoicesList-8e66a112.js +0 -1
  288. package/dist/ui/assets/LeadDetails-ad63b3df.js +0 -1
  289. package/dist/ui/assets/LeadsList-bd7d9804.js +0 -1
  290. package/dist/ui/assets/Logo-3f3c9ee6.js +0 -1
  291. package/dist/ui/assets/MapView-afd1c913.js +0 -1
  292. package/dist/ui/assets/MarketingPage-89a860b1.js +0 -4
  293. package/dist/ui/assets/MenuEdit-d6e0d64c.js +0 -1
  294. package/dist/ui/assets/MessageInput-6dc83761.js +0 -21
  295. package/dist/ui/assets/MessagesList-966b69c5.js +0 -1
  296. package/dist/ui/assets/ModernLayout-03f30574.js +0 -1
  297. package/dist/ui/assets/Notify-bb3ce372.js +0 -1
  298. package/dist/ui/assets/OpportunitiesList-62eb34f6.js +0 -1
  299. package/dist/ui/assets/OpportunityDetails-356a8580.js +0 -1
  300. package/dist/ui/assets/OpportunityStatus-fa8108ea.js +0 -1
  301. package/dist/ui/assets/PasswordInput-8619a9df.js +0 -1
  302. package/dist/ui/assets/Profile-9104808b.js +0 -1
  303. package/dist/ui/assets/RoleEdit-98a6410b.js +0 -1
  304. package/dist/ui/assets/RoleForm-cc251eba.js +0 -1
  305. package/dist/ui/assets/ScheduleCycle-22c8e809.js +0 -1
  306. package/dist/ui/assets/ScreenList-9f7afa1c.js +0 -1
  307. package/dist/ui/assets/SidePanelContent-6b13836f.js +0 -1
  308. package/dist/ui/assets/SimpleLayout-d5445c0d.js +0 -2
  309. package/dist/ui/assets/StackedSideLayout-51127dc5.js +0 -1
  310. package/dist/ui/assets/StickyFooter-5b934274.js +0 -1
  311. package/dist/ui/assets/SupportRequets-be6542a9.js +0 -1
  312. package/dist/ui/assets/TimeLogApprovalDataList-c16d8bae.js +0 -1
  313. package/dist/ui/assets/TimeLogApprovalList-f6a75a20.js +0 -1
  314. package/dist/ui/assets/TimeLogList-ea288cce.js +0 -1
  315. package/dist/ui/assets/TimesheetsList-4a20e96c.js +0 -1
  316. package/dist/ui/assets/TranslationList-7a989333.js +0 -1
  317. package/dist/ui/assets/UserEdit-87262ea5.js +0 -1
  318. package/dist/ui/assets/UserForm-31fdd3b3.js +0 -1
  319. package/dist/ui/assets/ViewTimeLogForApproval-43b24a1a.js +0 -1
  320. package/dist/ui/assets/Views-74429e81.js +0 -1
  321. package/dist/ui/assets/WelcomeList-6c693eae.js +0 -9
  322. package/dist/ui/assets/actioncell-17e12e21.js +0 -1
  323. package/dist/ui/assets/calendarList-511b4d8f.js +0 -2
  324. package/dist/ui/assets/createSvgIcon-c5fc0d04.js +0 -1
  325. package/dist/ui/assets/documentsList-ac2c91ec.js +0 -1
  326. package/dist/ui/assets/dxicons-4c1b2089.ttf +0 -0
  327. package/dist/ui/assets/dxicons-ade3c9ed.woff2 +0 -0
  328. package/dist/ui/assets/dxicons-b4cd1226.woff +0 -0
  329. package/dist/ui/assets/gridList-cb9a14b1.js +0 -1
  330. package/dist/ui/assets/gridMapTable-c19770a8.js +0 -1
  331. package/dist/ui/assets/index-1d60e514.js +0 -1
  332. package/dist/ui/assets/index-26466d9d.js +0 -1
  333. package/dist/ui/assets/index-289cfedb.js +0 -1
  334. package/dist/ui/assets/index-2ce5b358.js +0 -1
  335. package/dist/ui/assets/index-307ce6d7.js +0 -1
  336. package/dist/ui/assets/index-36ba4ea7.js +0 -1
  337. package/dist/ui/assets/index-3f02e05a.js +0 -1
  338. package/dist/ui/assets/index-44662933.js +0 -13
  339. package/dist/ui/assets/index-51ee35f9.js +0 -1
  340. package/dist/ui/assets/index-54372d82.js +0 -1
  341. package/dist/ui/assets/index-569a9d2c.js +0 -1
  342. package/dist/ui/assets/index-62de659f.js +0 -13
  343. package/dist/ui/assets/index-6589dd2d.js +0 -1
  344. package/dist/ui/assets/index-6b6d0f06.js +0 -1
  345. package/dist/ui/assets/index-6c618440.js +0 -1
  346. package/dist/ui/assets/index-785ad361.js +0 -1
  347. package/dist/ui/assets/index-7df8779c.js +0 -1
  348. package/dist/ui/assets/index-82c9477e.js +0 -1
  349. package/dist/ui/assets/index-8ab45286.js +0 -1
  350. package/dist/ui/assets/index-8c229076.css +0 -7
  351. package/dist/ui/assets/index-a205cfed.js +0 -34
  352. package/dist/ui/assets/index-a23f9c87.js +0 -1
  353. package/dist/ui/assets/index-a455424a.js +0 -1
  354. package/dist/ui/assets/index-a4f78ee1.js +0 -1
  355. package/dist/ui/assets/index-aaad94c2.js +0 -1
  356. package/dist/ui/assets/index-b1b6b0f6.js +0 -1
  357. package/dist/ui/assets/index-c1f92742.js +0 -4
  358. package/dist/ui/assets/index-c2088808.js +0 -1
  359. package/dist/ui/assets/index-cbc29fa8.js +0 -1
  360. package/dist/ui/assets/index-cd2b7d32.js +0 -1
  361. package/dist/ui/assets/index-cf3804f1.js +0 -19
  362. package/dist/ui/assets/index-d0ef2cc2.js +0 -1
  363. package/dist/ui/assets/index-d1145737.js +0 -7
  364. package/dist/ui/assets/index-d58fb185.js +0 -1
  365. package/dist/ui/assets/index-d5b5a7e1.js +0 -1
  366. package/dist/ui/assets/index-daeff047.js +0 -1
  367. package/dist/ui/assets/index-ded3b055.js +0 -1
  368. package/dist/ui/assets/index-ede23a2b.js +0 -1
  369. package/dist/ui/assets/index-f8144346.js +0 -1
  370. package/dist/ui/assets/index-fd68b510.js +0 -1
  371. package/dist/ui/assets/index-fe3409ae.js +0 -1
  372. package/dist/ui/assets/liveLocation-646eef95.js +0 -1
  373. package/dist/ui/assets/modeuls-setup-402f891e.js +0 -1
  374. package/dist/ui/assets/tableV3-3d2f4952.js +0 -1
  375. package/dist/ui/assets/ticketRequestDetails-f78147f7.js +0 -1
  376. package/dist/ui/assets/vendor-mui-69397583.js +0 -185
  377. package/dist/ui/menudata/menus.json +0 -606
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-mui-69397583.js";import{j as F,r as a,f as k,L as ce}from"./vendor-react-ece1c85f.js";import{r as R,u as W,c as ie}from"./index-cebd880b.js";import{Y as L,l as T,f as de,B as H,V as ne,O as M,Q as z,Z as me,af as pe,ag as ue,ah as he,ai as xe,aj as fe}from"./index-c62ac197.js";import{A as u}from"./AdaptableCard-df7695d6.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import{D as q}from"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import{S as je}from"./Switcher-c8648037.js";import{T as Q}from"./index-36228db5.js";import"./Upload-fb34ce03.js";import ye from"./OpportunitiesList-62eb34f6.js";import be from"./ContactsList-e9ac0fa3.js";import{E as Ne}from"./AddAccount-a05910e8.js";import{C as re}from"./ConfirmDialog-3202eb3d.js";import{C as le}from"./tableV3-3d2f4952.js";import{A as oe,T as _}from"./actioncell-17e12e21.js";import{b as ge,c as Ce}from"./AccountServices-62599aae.js";import{A as Ae}from"./AddEditFile-063c229b.js";import{b as we,c as ve,d as Se,e as De}from"./OpportunityServices-fa4fabfd.js";import{P as Ie}from"./permissionHoc-6f787658.js";import{U as Ue}from"./UserNew-b36c342c.js";import{U as Oe}from"./UserEdit-87262ea5.js";import{b as Ee}from"./UserService-047aef51.js";import"./vendor-redux-a1f00e6b.js";import"./ContactService-92281a90.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";import"./index-dc103f22.js";import"./index.esm-70ab539c.js";import"./EditLead-cc38d2a2.js";import"./index-9b41371d.js";import"./LeadSourceService-e46fa85e.js";import"./DoubleSidedImage-ae98733b.js";import"./index-36ba4ea7.js";import"./StickyFooter-5b934274.js";import"./index-e4c6057f.js";import"./validationPatterns-77446c46.js";import"./index-6589dd2d.js";import"./index-49a94e54.js";import"./usePermission-d94b4984.js";import"./WrapperCell-a7981b07.js";import"./tableV2-4d1c9fd2.js";import"./FileSaver.min-20f3f13a.js";import"./DensitySelector-a2c1c68f.js";import"./NoData-8c485a3a.js";import"./DepartmentServices-3d56a9e7.js";import"./ImportFile-3f60d715.js";import"./papaparse.min-f30b4da6.js";import"./vendor-excel-ee8fc4e5.js";import"./Check-71f21a49.js";import"./createSvgIcon-c5fc0d04.js";import"./CourseService-f0dc3bf1.js";import"./ApiService-2b99757f.js";import"./mapView-ab35acaa.js";import"./esm-f306d015.js";import"./lodash-306e3f66.js";import"./UserForm-31fdd3b3.js";import"./index-77e820d0.js";import"./RoleService-7008da2c.js";import"./PasswordInput-8619a9df.js";import"./index-42e65911.js";import"./index-785ad361.js";import"./strongPassword-bbec776a.js";L("AccountsData",R);const Z=U=>{let{id:r}=F();const[d,m]=a.useState("");return k(),T(),a.useState(!1),console.log("useParams",r),a.useEffect(()=>{r&&m(r)},[r]),e.jsx(e.Fragment,{children:e.jsx(u,{className:"h-full pt-0 bg-transparent borderless",bodyClass:"h-full borderless",children:e.jsx(ye,{accountId:r})})})};L("AccountsData",R);const J=U=>{let{id:r}=F();const[d,m]=a.useState("");k(),T(),a.useState(!1),a.useState(!1),a.useState(0);const h=W(x=>{var i,o;return(o=(i=x.AccountsData)==null?void 0:i.data)==null?void 0:o.account});return a.useEffect(()=>{r&&m(r)},[r]),e.jsx(e.Fragment,{children:e.jsx(u,{className:"h-full pt-0 bg-transparent borderless",bodyClass:"h-full",children:e.jsx(be,{accountId:r,accountName:h==null?void 0:h.accountName})})})};L("AccountsData",R);const X=U=>{let{id:r}=F();const[d,m]=a.useState("");return k(),T(),a.useState(!1),a.useState(!1),a.useState(0),a.useEffect(()=>{r&&m(r)},[r]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"topbar py-4 pt-0 border-gray-200 border-b dark:bg-[#292f3c] dark:text-white",children:e.jsxs("div",{className:"lg:flex items-center justify-between",children:[e.jsx("h3",{className:"mb-4 lg:mb-0",children:"Invoices"}),e.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center"})]})}),e.jsx("div",{className:"py-1",style:{display:"flex"}})]})};L("AccountsData",R);const ee=U=>{let{mode:r}=U,{id:d}=F();const[m,h]=a.useState("");k();const x=T(),i=W(l=>{var y,C;return(C=(y=l.AccountsData)==null?void 0:y.data)==null?void 0:C.account});a.useEffect(()=>{d&&(x(ie({id:d})),h(d))},[d]);const o=r==="horizontal";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`border-gray-200 border-b ${o?"py-2":"py-4"}`,children:e.jsx("h3",{children:i==null?void 0:i.accountName})}),e.jsxs("div",{className:` border-gray-200 border-b ${o?"lg:grid grid-cols-3 gap-x-8":""}`,children:[e.jsxs("div",{className:o?"":"mb-2",children:[e.jsx("p",{children:"Primary Contact"}),e.jsx("h6",{children:i==null?void 0:i.primaryContactName})]}),e.jsxs("div",{className:o?"":"mb-2",children:[e.jsx("p",{children:"Billing Contact"}),e.jsx("h6",{children:i==null?void 0:i.billingContactName})]}),e.jsxs("div",{className:o?"":"mb-2",children:[e.jsx("p",{children:"Phone"}),e.jsx("h6",{children:"--"})]}),e.jsxs("div",{className:o?"":"mb-2",children:[e.jsx("p",{children:"Website"}),e.jsx("h6",{children:i==null?void 0:i.website})]}),e.jsxs("div",{className:`${o?"":"col-span-2 mb-2"}`,children:[e.jsx("p",{children:"Address"}),e.jsx("h6",{children:i==null?void 0:i.address})]}),e.jsxs("div",{className:o?"":"mb-2",children:[e.jsx("p",{children:"Parent Account"}),e.jsx("h6",{children:i==null?void 0:i.accountName})]}),e.jsxs("div",{className:`${o?"":"col-span-2 mb-2"}`,children:[e.jsx("p",{children:"Notes"}),e.jsx("h6",{children:i==null?void 0:i.notes})]})]})]})};L("AccountsData",R);const te=U=>{let{id:r}=F();a.useState(""),k(),T(),a.useState(!1);const[d,m]=a.useState([]),[h,x]=a.useState(!1),[i,o]=a.useState("Add");a.useState("");const[l,y]=a.useState(null),[C,f]=a.useState(!1),[$,v]=a.useState("");W(t=>{var c,w;return(w=(c=t.AccountsData)==null?void 0:c.data)==null?void 0:w.account});const{textTheme:P}=de(),j=()=>{o("Add"),x(!h)},S=async()=>{var t;try{let c=await ge(r);m((t=c==null?void 0:c.data)==null?void 0:t.$values)}catch{m([])}};a.useEffect(()=>{r&&S()},[r]);const Y=async(t,c)=>{var w,V,b,D,E,s;try{const n=i==="Edit"?await we((w=t==null?void 0:t.opportunityId)==null?void 0:w.value,l==null?void 0:l.fileId,t==null?void 0:t.fileName,(b=(V=t==null?void 0:t.files)==null?void 0:V[0])!=null&&b.isViewOnly||(D=t==null?void 0:t.files)==null?void 0:D[0]):await ve((E=t==null?void 0:t.opportunityId)==null?void 0:E.value,t==null?void 0:t.fileName,(s=t==null?void 0:t.files)==null?void 0:s[0]);n.success?(S(),M.push(e.jsx(z,{title:"Success",type:"success",duration:2500,children:`File ${i==="Edit"?"Updated":"Uploaded"} Successfully`}),{placement:"top-center"})):M.push(e.jsx(z,{title:"Error",type:"danger",duration:2500,children:n.message}),{placement:"top-center"})}catch(n){console.error("Failed to opportunity logs:",n),M.push(e.jsx(z,{title:"Error",type:"danger",duration:2500,children:"Something went Wrong"}),{placement:"top-center"})}c(!1),j()},B=()=>{j()},p=(t,c)=>{c===_.edit&&(x(!0),o("Edit"),y(t)),c===_.delete&&(v(t==null?void 0:t.fileId),y(t),f(!0))},O=[{dataField:"Action",caption:"Action",width:"20%",cellRender:t=>e.jsx("div",{id:"mAction","data-cname":"Action",children:e.jsx(oe,{row:t==null?void 0:t.data,actions:{view:!1,edit:!0,delete:!0},buttonClick:p})})},{dataField:"opportunityName",caption:"Opportunity Name",width:"20%",cellRender:t=>{var c;return e.jsx("div",{"data-cname":"Opportunity Name",children:e.jsx(ce,{to:`/app/crm/opportunity-details/${(c=t==null?void 0:t.data)==null?void 0:c.opportunityId}`,className:`${P} ml-2 rtl:mr-2`,children:t.value})})}},{dataField:"fileName",caption:"File",width:"60%",cellRender:t=>e.jsx("div",{"data-cname":"File",children:e.jsx("span",{className:`${P} ml-2 rtl:mr-2 cursor-pointer`,onClick:()=>{K(t==null?void 0:t.data)},children:t.value})})}],K=async t=>{const{opportunityId:c,fileId:w,fileName:V}=t,b=await Se(c,w),D=b.headers["content-type"],E=new Blob([b.data],{type:D}),s=URL.createObjectURL(E);if(D.startsWith("image/")||D==="application/pdf")window.open(s,"_blank");else{const n=document.createElement("a");n.href=s,n.download=V,document.body.appendChild(n),n.click(),document.body.removeChild(n)}},A=()=>{v(null),f(!1),y(null)},G=async()=>{await De(l==null?void 0:l.opportunityId,$)&&M.push(e.jsx(z,{title:"Deleted",type:"success",duration:2500,children:"File Successfully Deleted"}),{placement:"top-center"}),S(),A()};return e.jsxs(e.Fragment,{children:[e.jsx(u,{className:"h-full pt-0 bg-transparent borderless",bodyClass:"h-full",children:e.jsxs(u,{className:"h-full bg-transparent borderless",children:[e.jsx("div",{className:"topbar border-gray-200 border-b dark:bg-[#292f3c] dark:text-white mb-2",children:e.jsxs("div",{className:"lg:flex pb-2 items-center justify-between",children:[e.jsx("h3",{className:"mb-4 lg:mb-0",children:"Documents"}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[e.jsx(H,{block:!0,variant:"solid",size:"sm",icon:e.jsx(ne,{}),onClick:()=>x(!0),children:"Add Document "}),e.jsx(q,{title:`${i} File`,isOpen:h,onClose:()=>j(),portalClassName:"w30",children:e.jsx(Ae,{initialData:i==="Add"?{files:[],fileName:"",opportunityId:""}:{files:[{name:l==null?void 0:l.fileName,type:"applicatiojjn/zip",size:26775,isViewOnly:!0}],fileName:l==null?void 0:l.fileName,opportunityId:{label:l==null?void 0:l.opportunityName,value:l==null?void 0:l.opportunityId}},onSubmit:Y,onCancel:B,accountId:r})})]})]})}),e.jsx(le,{tableName:"Account-documents",dataSource:d,height:"calc(100vh - 400px)",columns:O,keyExpr:"$id",stateStorageKey:"documents"})]})}),e.jsx(re,{isOpen:C,type:"danger",title:"Delete file",confirmButtonColor:"red-600",onClose:A,onRequestClose:A,onCancel:A,onConfirm:G,children:e.jsx("p",{children:"Are you sure you want to delete this File?"})})]})};L("AccountsData",R);const se=U=>{var E;let{id:r}=F();k(),T();const[d,m]=a.useState(!1),[h,x]=a.useState([]),[i,o]=a.useState(!1),[l,y]=a.useState("Add"),[C,f]=a.useState(null),[$,v]=a.useState(!1),[P,j]=a.useState("");W(s=>{var n,N;return(N=(n=s.AccountsData)==null?void 0:n.data)==null?void 0:N.account});const[S,Y]=a.useState(""),B="Users",p=W(s=>{var n;return((n=s.auth.session)==null?void 0:n.permission)||[]});let O=((E=p==null?void 0:p.filter(s=>(s==null?void 0:s.defaultMenuName)===B))==null?void 0:E[0])||{isDelete:!1,isEdit:!1,isManage:!1,isView:!1};const K={edit:O.isEdit,archive:O.isDelete,loginAsUser:!0},A=async()=>{var s;try{let n=await Ce(r);x((s=n==null?void 0:n.data)==null?void 0:s.$values)}catch{x([])}};a.useEffect(()=>{r&&A()},[r]);const G=s=>{m(!1)},t=(s,n,N)=>{M.push(e.jsx(z,{title:n,type:s,duration:2500,children:N}),{placement:"top-center"})},c=async s=>{var n;try{let N=await pe({userId:s});N.success&&window.open({}.VITE_CUSTOMER_PORTAL_URL+"/loginAsUser/"+((n=N==null?void 0:N.data)==null?void 0:n.token),"_blank","noreferrer")}catch{t("danger","Error","Failed")}},w=(s,n)=>{n===_.edit&&(m(!0),Y(s.id)),n===_.loginAsUser&&c(s.id),n===_.delete&&(j(s==null?void 0:s.id),f(s),v(!0))},V=[{dataField:"Action",caption:"Action",allowSorting:!1,allowFiltering:!1,allowSearch:!1,cellRender:s=>e.jsx("div",{id:"mAction","data-cname":"Action",children:e.jsx(oe,{row:s==null?void 0:s.data,actions:K,buttonClick:w})})},{dataField:"firstName",caption:"First Name",cellRender:s=>e.jsx("div",{"data-cname":"First Name",children:s.data.firstName})},{dataField:"lastName",caption:"Last Name",cellRender:s=>e.jsx("div",{"data-cname":"Last Name",children:s.data.lastName})},{dataField:"email",caption:"Email",cellRender:s=>e.jsx("div",{"data-cname":"Email",children:s.data.email})},{dataField:"phoneNumber",caption:"Phone No",cellRender:s=>e.jsx("div",{"data-cname":"Phone No",children:s.data.phoneNumber})},{dataField:"role",caption:"Role",cellRender:s=>e.jsx("div",{"data-cname":"Role",children:s.data.role})},{dataField:"createdByName",caption:"Created By",cellRender:s=>e.jsx("div",{"data-cname":"Created By",children:s.data.createdByName})},{dataField:"createdDate",caption:"Created On",width:"230",dataType:"date",format:"dd-MM-yyyy",cellRender:s=>{const n=me(s.value).format("MM/DD/YYYY");return e.jsx("div",{"data-cname":"Created On",children:n})}}],b=()=>{j(null),v(!1),f(null)},D=async()=>{const s=await Ee(P);b(),s&&M.push(e.jsx(z,{title:"Archived",type:"success",duration:2500,children:"User Successfully Archived"}),{placement:"top-center"}),A()};return e.jsxs(e.Fragment,{children:[e.jsx(u,{className:"h-full pt-0 bg-transparent borderless",bodyClass:"h-full",children:e.jsxs(u,{className:"h-full bg-transparent borderless",children:[e.jsx("div",{className:"topbar border-gray-200 border-b dark:bg-[#292f3c] dark:text-white mb-2",children:e.jsxs("div",{className:"lg:flex pb-2 items-center justify-between",children:[e.jsx("h3",{className:"mb-4 lg:mb-0",children:"Users"}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[e.jsx(H,{block:!0,variant:"solid",size:"sm",icon:e.jsx(ne,{}),onClick:()=>o(!0),children:"Add User "}),e.jsx(q,{title:`${l} User`,isOpen:i,onClose:()=>o(!1),portalClassName:"w30",children:e.jsx(Ue,{accountId:r,footerWidth:"w30",onClose:()=>o(!1),onAddNew:()=>{A(),o(!1)}})})]})]})}),e.jsx(le,{tableName:"Account-Users",dataSource:h,height:"calc(100vh - 400px)",columns:V,keyExpr:"$id",stateStorageKey:"documents"})]})}),e.jsx(re,{isOpen:$,type:"danger",title:"Archive User",confirmButtonColor:"red-600",onClose:b,onRequestClose:b,onCancel:b,onConfirm:D,children:e.jsx("p",{children:"Are you sure you want to archive this Users?"})}),S&&e.jsx(q,{title:"Edit User",isOpen:d,onClose:G,portalClassName:"w30",children:e.jsx(Oe,{footerWidth:"w30",userId:S,isAccountList:!0,onDrawerClose:G,fetchData:A})})]})},{TabNav:I,TabList:ae,TabContent:g}=Q;L("AccountsData",R);const Fe=U=>{var B;const r="Accounts";let{id:d}=F();const[m,h]=a.useState("");k();const x=T(),[i,o]=a.useState(!1);a.useState(!1),a.useState(0);const[l,y]=a.useState("Oppurtunity"),C=W(p=>{var O;return((O=p.auth.session)==null?void 0:O.permission)||[]});let f=((B=C==null?void 0:C.filter(p=>(p==null?void 0:p.defaultMenuName)===r))==null?void 0:B[0])||{isDelete:!1,isEdit:!1,isManage:!1,isView:!1};a.useEffect(()=>{d&&h(d)},[d]);const $=()=>{o(!0)},v=()=>{console.log("on drawer close"),o(!1),P()},P=()=>{x(ie({id:m}))},[j,S]=a.useState("vertical"),Y=()=>{S(p=>p==="vertical"?"horizontal":"vertical")};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b",children:e.jsxs("div",{className:"lg:flex items-center justify-between",children:[e.jsx("h3",{className:"mb-4 lg:mb-0",children:"Account Details"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm font-medium",children:"Horizontal View"}),e.jsx(je,{checked:j==="horizontal",onChange:Y}),e.jsx("span",{className:"text-sm font-medium",children:"Vertical View"})]})]})}),j==="vertical"?e.jsxs("div",{className:"flex flex-wrap mb-1 px-3",children:[e.jsx("div",{className:"w-full md:w-1/3 mb-6 md:mb-0",children:e.jsx(u,{className:"h-full py-2 px-2 bg-transparent mt-4 ",bodyClass:"h-full",children:e.jsxs(u,{className:"p-4 borderless",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h5",{children:"Account Details"}),(f==null?void 0:f.isEdit)&&e.jsx(H,{variant:"solid",size:"sm",onClick:$,children:"Edit"})]}),e.jsx(ee,{mode:j})]})})}),e.jsx("div",{className:"w-full md:w-2/3 mb-6 md:mb-0 sm:pl-4",children:e.jsxs(Q,{className:"opportunity-tabs",variant:"pill",value:l,onChange:y,children:[e.jsx(u,{className:"p-4 my-4",children:e.jsxs(ae,{className:"flex flex-col sm:flex-row sm:justify-between gap-2",children:[e.jsx(I,{icon:e.jsx(ue,{}),value:"Oppurtunity",children:"Opportunity"}),e.jsx(I,{icon:e.jsx(he,{}),value:"Contacts",children:"Contacts"}),e.jsx(I,{icon:e.jsx(xe,{}),value:"Users",children:"Users"}),e.jsx(I,{icon:e.jsx(fe,{}),value:"Documents",children:"Documents"})]})}),e.jsx(u,{className:"my-4 ",children:e.jsxs("div",{className:"p-4",children:[e.jsx(g,{value:"Oppurtunity",children:e.jsx(Z,{})}),e.jsx(g,{value:"Contacts",children:e.jsx(J,{})}),e.jsx(g,{value:"Documents",children:e.jsx(te,{})}),e.jsx(g,{value:"Invoices",children:e.jsx(X,{})}),e.jsx(g,{value:"Users",children:e.jsx(se,{})})]})})]})})]}):e.jsxs("div",{className:"px-3",children:[e.jsxs(u,{className:"mt-4 ",bodyClass:"p-2 borderless",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("h5",{children:"Account Details"}),(f==null?void 0:f.isEdit)&&e.jsx(H,{variant:"solid",size:"sm",onClick:$,children:"Edit"})]}),e.jsx("div",{className:"",children:e.jsx(ee,{mode:j})})]}),e.jsxs(Q,{className:"opportunity-tabs",variant:"pill",value:l,onChange:y,children:[e.jsx(u,{className:"p-2 mb-4",children:e.jsxs(ae,{className:"flex flex-col sm:flex-row sm:justify-between gap-2",children:[e.jsx(I,{value:"Oppurtunity",children:"Opportunity"}),e.jsx(I,{value:"Contacts",children:"Contacts"}),e.jsx(I,{value:"Users",children:"Users"}),e.jsx(I,{value:"Documents",children:"Documents"})]})}),e.jsxs(u,{className:"p-4",children:[e.jsx(g,{value:"Oppurtunity",children:e.jsx(Z,{})}),e.jsx(g,{value:"Contacts",children:e.jsx(J,{})}),e.jsx(g,{value:"Documents",children:e.jsx(te,{})}),e.jsx(g,{value:"Invoices",children:e.jsx(X,{})}),e.jsx(g,{value:"Users",children:e.jsx(se,{})})]})]})]}),e.jsx(q,{title:"Edit Account",isOpen:i,onClose:v,portalClassName:"w30",children:e.jsx(Ne,{id:m,onDrawerClose:v})})]})},Qt=Ie(Fe,"Accounts");export{Qt as default};
@@ -1 +0,0 @@
1
- import{ct as e}from"./index-c62ac197.js";const c={data:[],loadable:!1};async function a(){try{return c}catch{return c}}async function i(t){return(await e.apiV10AccountAddAccountPost(t)).data}async function r(t){return(await e.apiV10AccountGetAccountsPost(t)).data}async function u(t){return(await e.apiV10AccountGetAccountByIdIdGet(t)).data}async function p(t,n){return(await e.apiV10AccountUpdateAccountIdPut(t,n)).data}async function A(t){return(await e.apiV10AccountDeleteAccountIdDelete(t)).data}async function y(t){return(await e.apiV10AccountGetOpportunityFilesByAccountIdIdGet(t)).data}async function G(t,n){return(await e.apiV10AccountGetLoginActivitiesPost(t==null?void 0:t.pageNumber,t.pageSize,t==null?void 0:t.sortBy,t==null?void 0:t.isAscending,n)).data}async function f(t){return(await e.apiV10AccountGetAccountUsersByAccountIdAccountIdGet(t)).data}export{A as a,y as b,f as c,r as d,u as e,p as f,i as g,a as h,G as i};
@@ -1 +0,0 @@
1
- import{j as e,l as Ce}from"./vendor-mui-69397583.js";import{A as ae}from"./AdaptableCard-df7695d6.js";import{r as o,f as he,L as se}from"./vendor-react-ece1c85f.js";import{u,t as T,g as k,a as xe,s as y,r as ge,b as ne}from"./index-cebd880b.js";import{l as z,ae as Ae,O as fe,Q as be,W as R,B as N,Y as ce,f as je,V as oe,Z as ve}from"./index-c62ac197.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import{C as O}from"./index-c2088808.js";import{D as I}from"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import{A as we,E as ye}from"./AddAccount-a05910e8.js";import{A as Ne,T as E}from"./actioncell-17e12e21.js";import{D as Fe}from"./tableV2-4d1c9fd2.js";import{C as Se}from"./ConfirmDialog-3202eb3d.js";import{a as Ie}from"./AccountServices-62599aae.js";import{r as Le}from"./index-49a94e54.js";import{u as De}from"./usePermission-d94b4984.js";import{C as Pe}from"./ImportFile-3f60d715.js";import{a as Re}from"./ContactService-92281a90.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";import"./index-36ba4ea7.js";import"./StickyFooter-5b934274.js";import"./index.esm-70ab539c.js";import"./DepartmentServices-3d56a9e7.js";import"./Check-71f21a49.js";import"./createSvgIcon-c5fc0d04.js";import"./DoubleSidedImage-ae98733b.js";import"./index-e4c6057f.js";import"./validationPatterns-77446c46.js";import"./CourseService-f0dc3bf1.js";import"./ApiService-2b99757f.js";import"./FileSaver.min-20f3f13a.js";import"./DensitySelector-a2c1c68f.js";import"./NoData-8c485a3a.js";import"./papaparse.min-f30b4da6.js";import"./vendor-excel-ee8fc4e5.js";const Oe=()=>{const l=z(),m=u(r=>r.AccountsData.data.deleteConfirmation),C=u(r=>r.AccountsData.data.selectedRowData),A=u(r=>r.AccountsData.data.tableData),s=()=>{l(T(!1))},h=async()=>{l(T(!1)),await Ie(C.id)&&(Ae("apiCache-accountsData-"),l(k(A)),fe.push(e.jsx(be,{title:"Deleted",type:"success",duration:2500,children:"Account Successfully Deleted"}),{placement:"top-center"}))};return e.jsx(Se,{isOpen:m,type:"danger",title:"Delete Contact",confirmButtonColor:"red-600",onClose:s,onRequestClose:s,onCancel:s,onConfirm:h,children:e.jsx("p",{children:"Are you sure you want to delete this Account? This action cannot be undone."})})},Ee=({onSaveClick:l,onCancel:m,onClearFilers:C})=>e.jsxs("div",{className:"text-right w-full",children:[e.jsx(N,{size:"sm",className:"mr-2",onClick:C,children:"Clear All"}),e.jsx(N,{size:"sm",className:"mr-2",onClick:m,children:"Cancel"}),e.jsx(N,{size:"sm",variant:"solid",onClick:l,children:"Query"})]}),Te=l=>{o.useRef(null);const m=z(),[C,A]=o.useState(!1),s=u(n=>{var p,d;return(d=(p=n==null?void 0:n.AccountsData)==null?void 0:p.data)==null?void 0:d.filterData}),[h,r]=o.useState(s==null?void 0:s.parentAccount),[b,j]=o.useState(s==null?void 0:s.primaryContact),[F,v]=o.useState(s==null?void 0:s.billingContact),f=()=>{A(!1),l.onClose()},x=u(n=>{var p,d,g;return(g=(d=(p=n.AccountsData)==null?void 0:p.data)==null?void 0:d.accountList)==null?void 0:g.map(i=>({value:i.id,label:i.accountName}))}),S=u(n=>{var d,g,i;return(i=(g=(d=n==null?void 0:n.AccountsData)==null?void 0:d.data)==null?void 0:g.contactList)==null?void 0:i.map(t=>({value:t.id,label:t.contactName}))});o.useEffect(()=>{L()},[]);const L=()=>{const n=xe({});m(n),m(k({}))},D=()=>{m(y({parentAccount:"",primaryContact:"",billingContact:""})),r(""),j(""),v("")},w=()=>{l.onClose(),A(!1),m(y({parentAccount:h,primaryContact:b,billingContact:F}))};return o.useEffect(()=>{l.isOpen&&A(!0)},[l.isOpen]),o.useEffect(()=>{(s==null?void 0:s.billingContact)===""&&v(""),(s==null?void 0:s.parentAccount)===""&&r(""),(s==null?void 0:s.primaryContact)===""&&j("")},[s]),e.jsx(e.Fragment,{children:e.jsxs(I,{title:"Advanced Filter Selection Page",isOpen:C,portalClassName:"w30",footer:e.jsx(Ee,{onCancel:f,onSaveClick:w,onClearFilers:D}),onClose:f,onRequestClose:f,children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("div",{className:"lg:flex md:flex-none sm:flex-none mb-4",children:e.jsx("h5",{children:"Parent Account"})}),e.jsx(R,{size:"sm",className:"mb-4 rounded-xl",placeholder:"Please Select",isMulti:!1,value:h,onChange:n=>r(n),options:x,isClearable:!0})]}),e.jsxs("div",{className:"mb-5",children:[e.jsx("div",{className:"lg:flex md:flex-none sm:flex-none mb-4",children:e.jsx("h5",{children:"Primary Contact"})}),e.jsx(R,{size:"sm",className:"mb-4 rounded-xl",placeholder:"Please Select",isMulti:!1,value:b,onChange:n=>j(n),options:S,isClearable:!0})]}),e.jsxs("div",{className:"mb-5",children:[e.jsx("div",{className:"lg:flex md:flex-none sm:flex-none mb-4",children:e.jsx("h5",{children:"Billing Contact"})}),e.jsx(R,{size:"sm",className:"mb-4 rounded-xl",placeholder:"Please Select",isMulti:!1,value:F,onChange:n=>v(n),options:S})]})]})})};ce("AccountsData",ge);ce("ContactsData",Le);const Lt=()=>{var H,_,Q,U,Z,G;const[l,m]=o.useState([]),[C,A]=o.useState(!1),[s,h]=o.useState(!1),[r,b]=o.useState(!1),[j,F]=o.useState(),[v,f]=o.useState(!1),x=De("Accounts"),S={edit:x.isEdit,delete:x.isDelete,view:x.isView},L=()=>{f(!0)},D=()=>{f(!1)},[w,n]=o.useState({drawerType:""}),p=()=>{h(!0)},d=()=>{h(!1)},g=he(),i=z(),t=u(a=>a.AccountsData.data.filterData),M=u(a=>a.AccountsData.data.loading),ie=u(a=>a.AccountsData.data.accountList),{textTheme:B}=je(),{pageIndex:q,pageSize:V,sort:$,query:le,total:ke}=u(a=>a.AccountsData.data.tableData);o.useEffect(()=>{Y()},[q,V,$,C,t]);const Y=()=>{var c,J,K,X,ee,te;const a=k({pageIndex:q,pageSize:V,sort:$,query:le,...((c=t==null?void 0:t.billingContact)==null?void 0:c.value)&&{billingContactId:(J=t==null?void 0:t.billingContact)==null?void 0:J.value},...((K=t==null?void 0:t.parentAccount)==null?void 0:K.value)&&{parentAccountId:(X=t==null?void 0:t.parentAccount)==null?void 0:X.value},...((ee=t==null?void 0:t.primaryContact)==null?void 0:ee.value)&&{primaryContactId:(te=t==null?void 0:t.primaryContact)==null?void 0:te.value}});i(a)},re=a=>{g("/app/crm/account-details/"+a.id)},[de,me]=o.useState({pageSize:"",pageIndex:""}),ue=(a,c)=>{c===E.view&&re(a),c===E.edit&&(F(a.id),i(ne(a)),b(!0)),c===E.delete&&(i(T(!0)),i(ne(a)))},W=()=>{b(!1)},pe=[{dataField:"Action",caption:"Action",width:"130",cellRender:a=>e.jsx("div",{id:"mAction","data-cname":"Action",children:e.jsx(Ne,{row:a==null?void 0:a.data,actions:S,buttonClick:ue})})},{dataField:"accountName",caption:"Account Name",width:"230",cellRender:a=>{var c;return e.jsx("div",{"data-cname":"Account Name",children:e.jsx(se,{to:`/app/crm/account-details/${(c=a==null?void 0:a.data)==null?void 0:c.id}`,className:`${B} ml-2 rtl:mr-2`,children:a.value})})}},{dataField:"parentAccountName",caption:"Parent Account",width:"230",cellRender:a=>{var c;return e.jsx("div",{"data-cname":"Parent Account",children:e.jsx(se,{to:`/app/crm/account-details/${(c=a==null?void 0:a.data)==null?void 0:c.parentAccountId}`,className:`${B} ml-2 rtl:mr-2`,children:a.value})})}},{dataField:"address",caption:"Address",width:"230"},{dataField:"city",caption:"City",width:"230"},{dataField:"state",caption:"State",width:"230"},{dataField:"zip",caption:"Zip",width:"230"},{dataField:"primaryContactName",caption:"Primary Contact",width:"230"},{dataField:"billingContactName",caption:"Billing Contact",width:"230"},{dataField:"createdDate",caption:"Created On",width:"230",dataType:"date",format:"dd-MM-yyyy",cellRender:a=>{const c=ve(a.value).format("MM/DD/YYYY");return e.jsx("div",{"data-cname":"Created On",children:c})}}],P=a=>{a==="billingContact"&&i(y({...t,billingContact:""})),a==="parentAccount"&&i(y({...t,parentAccount:""})),a==="primaryContact"&&i(y({...t,primaryContact:""}))};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b",children:e.jsxs("div",{className:"lg:flex items-center justify-between",children:[e.jsx("h3",{className:"mb-4 lg:mb-0",children:"Accounts"}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 w-full",children:[x.isEdit&&e.jsx(N,{block:!0,variant:"solid",size:"sm",icon:e.jsx(oe,{}),onClick:()=>p(),children:"Add Account"}),x.isEdit&&e.jsx(N,{block:!0,variant:"solid",size:"sm",icon:e.jsx(oe,{}),onClick:()=>n(a=>({...a,drawerType:"import"})),children:"Import Accounts"})]}),e.jsx(I,{title:"Add Account",isOpen:s,onClose:d,portalClassName:"w30",children:e.jsx(we,{footerWidth:"w30",onDrawerClose:d})}),e.jsx(I,{title:"Edit Account",isOpen:r,onClose:W,portalClassName:"w30",children:e.jsx(ye,{footerWidth:"w30",id:j,onDrawerClose:W})})]})]})}),e.jsxs(ae,{className:"m-6 h-full p-4 bg-transparent",bodyClass:"h-full",children:[M&&e.jsx(Ce,{sx:{backgroundColor:"rgba(0, 0, 0, 0.1)","& .MuiLinearProgress-bar":{backgroundColor:"var(--custom-600)"}}}),e.jsxs(ae,{className:"borderless",children:[e.jsxs("div",{className:"text-right mb-3 ",children:[((H=t==null?void 0:t.parentAccount)==null?void 0:H.value)&&e.jsx(O,{title:"Parent Account",value:(_=t==null?void 0:t.parentAccount)==null?void 0:_.label,tagId:"parentAccount",onRemovefilter:P}),((Q=t==null?void 0:t.primaryContact)==null?void 0:Q.value)&&e.jsx(O,{title:"Primary Contact",value:(U=t==null?void 0:t.primaryContact)==null?void 0:U.label,tagId:"primaryContact",onRemovefilter:P}),((Z=t==null?void 0:t.billingContact)==null?void 0:Z.value)&&e.jsx(O,{title:"Billing Contact",value:(G=t==null?void 0:t.billingContact)==null?void 0:G.label,tagId:"billingContact",onRemovefilter:P})]}),e.jsx(Fe,{columns:pe,tableName:"Account-List",data:ie||[],defaultHiddenColumn:[],height:"calc(100vh - 290px)",fetchData:()=>{},id_label:"$id",selectedRowId:l,setSelectedRowId:m,setFilterValues:()=>{},filterValues:[],identity:"Lead-Listing",setInLineFilters:()=>{},inLineFilter:[],inLineFilterMobileView:[],setInLineFiltersMobileView:()=>{},setColSorting:()=>{},ImpColumnName:"DocumentId",idName:"Lead-Listing-table",handleSearch:()=>{},isColumnResizing:!0,pager:de,setPager:me,openFilter:L,isPaginationReq:!0,isFilterReq:!0,isSelectionReq:!1,isLoading:M})]})]}),e.jsx(Oe,{}),e.jsx(Te,{isOpen:v,onClose:D}),e.jsx(I,{title:"Import Accounts",portalClassName:"w30 prevent-overflow",isOpen:(w==null?void 0:w.drawerType)==="import",closable:!0,onClose:()=>n(a=>({...a,drawerType:""})),children:e.jsx(Pe,{requiredHeaders:["accountName","website"],allowedHeaders:["accountName","parentAccountId","address","city","state","zip","primaryContact","billingContact","website","industry","noOfEmployees","course","notes"],apiUrl:Re,importType:"Accounts",templateFile:"/data/Accounts_Import_template.csv",fetchData:()=>Y(),onDiscard:()=>n(a=>({...a,drawerType:""}))})})]})};export{Lt as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./vendor-mui-69397583.js";import{f as h,d as p}from"./index-c62ac197.js";import{L as u}from"./vendor-react-ece1c85f.js";const j=a=>{const{children:s,className:m,themeColor:n=!0,to:e,reloadDocument:c,href:i="",...o}=a,{textTheme:l}=h(),r={className:p(n&&l,"hover:underline",m)};return e?t.jsx(u,{to:e,reloadDocument:c,...r,...o,children:s}):t.jsx("a",{href:i,...r,...o,children:s})};export{j as A};
@@ -1 +0,0 @@
1
- import{j as p}from"./vendor-mui-69397583.js";import{h as c,n as g,d as e,aW as d}from"./index-c62ac197.js";const x=o=>{const{className:n,children:t,bodyClass:a,leftSideBorder:l,rightSideBorder:s,divider:b,shadow:m,isLastChild:u,...y}=o,r=c(i=>i.theme.layout.type);return p.jsx(g,{className:e(n,r===d&&"border-0",r===d&&s&&"ltr:border-r-0 rtl:border-l-0 ltr:md:border-r rtl:md:border-l md:border-gray-200 md:dark:border-gray-600 rounded-tr-none rounded-br-none rtl:rounded-tr-none rtl:rounded-br-none",r===d&&l&&"ltr:border-l-0 rtl:border-r-0 ltr:md:border-l rtl:md:border-r md:border-gray-200 md:dark:border-gray-600 rounded-tl-none rounded-bl-none rtl:rounded-tl-none rtl:rounded-bl-none",r===d&&b&&`${u?"":"pb-6"} py-4 md:border-gray-200 md:dark:border-gray-600 rounded-br-none rounded-bl-none`,r!==d&&m&&"rounded-none shadow-none border-0"),...y,bodyClass:e(r===d?"card-gutterless":"",a),children:t})};export{x as A};
@@ -1 +0,0 @@
1
- import{_ as Re,j as e}from"./vendor-mui-69397583.js";import{c0 as je,c1 as de,c2 as Be,c3 as ye,c4 as We,c5 as Ue,c6 as Ge,c7 as Qe,l as W,c8 as Ie,Y as Oe,E as Ae,c9 as ne,O as R,Q as B,I as T,W as U,B as G,al as ve,ae as Ee,h as Ze}from"./index-c62ac197.js";import{r as S,f as le}from"./vendor-react-ece1c85f.js";import{a as M,F as Fe}from"./FormContainer-91c2b0e4.js";import{h as Me}from"./index-36ba4ea7.js";import{S as _e}from"./StickyFooter-5b934274.js";import{C as ke}from"./ConfirmDialog-3202eb3d.js";import{u as ue,d as _,a as Q,c as oe,F as $e,b as Pe,g as Xe,h as Ye}from"./index.esm-70ab539c.js";import{A as Le}from"./AdaptableCard-df7695d6.js";import{b as He,r as Je,u as te,c as Ke,g as ce,a as Ne}from"./index-cebd880b.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import{D as re}from"./Drawer-949c18c6.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import{u as se,a as et,b as he,s as tt,r as at,g as st}from"./index-49a94e54.js";import{b as nt}from"./vendor-i18n-2fcb1983.js";import{f as ot,a as ct,g as rt}from"./AccountServices-62599aae.js";import{a as it,b as lt}from"./DepartmentServices-3d56a9e7.js";import{d as qe}from"./Check-71f21a49.js";import{D as Te}from"./DoubleSidedImage-ae98733b.js";import{a as Ve}from"./index-e4c6057f.js";import{V as ie,i as ze}from"./validationPatterns-77446c46.js";import{c as dt,d as mt,e as pt}from"./ContactService-92281a90.js";import{a as ut}from"./CourseService-f0dc3bf1.js";var ht=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],be=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0,u=String(t).toLowerCase(),n=String(s.getOptionValue(o)).toLowerCase(),d=String(s.getOptionLabel(o)).toLowerCase();return n===u||d===u},me={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,o,s,u){return!(!t||o.some(function(n){return be(t,n,u)})||s.some(function(n){return be(t,n,u)}))},getNewOptionData:function(t,o){return{label:o,value:t,__isNew__:!0}}};function xt(i){var t=i.allowCreateWhileLoading,o=t===void 0?!1:t,s=i.createOptionPosition,u=s===void 0?"last":s,n=i.formatCreateLabel,d=n===void 0?me.formatCreateLabel:n,w=i.isValidNewOption,h=w===void 0?me.isValidNewOption:w,D=i.getNewOptionData,f=D===void 0?me.getNewOptionData:D,g=i.onCreateOption,l=i.options,j=l===void 0?[]:l,a=i.onChange,p=nt(i,ht),N=p.getOptionValue,C=N===void 0?We:N,A=p.getOptionLabel,E=A===void 0?Ue:A,I=p.inputValue,y=p.isLoading,v=p.isMulti,k=p.value,$=p.name,b=S.useMemo(function(){return h(I,je(k),j,{getOptionValue:C,getOptionLabel:E})?f(I,d(I)):void 0},[d,f,E,C,I,h,j,k]),V=S.useMemo(function(){return(o||!y)&&b?u==="first"?[b].concat(de(j)):[].concat(de(j),[b]):j},[o,u,y,b,j]),z=S.useCallback(function(P,L){if(L.action!=="select-option")return a(P,L);var m=Array.isArray(P)?P:[P];if(m[m.length-1]===b){if(g)g(I);else{var c=f(I,I),r={action:"create-option",name:$,option:c};a(Be(v,[].concat(de(je(k)),[c]),c),r)}return}a(P,L)},[f,I,v,$,b,g,a,k]);return ye(ye({},p),{},{options:V,onChange:z})}var gt=S.forwardRef(function(i,t){var o=Ge(i),s=xt(o);return S.createElement(Qe,Re({ref:t},s))}),xe=gt;const ft=i=>{var h,D,f,g,l,j,a,p,N,C,A;const{data:t,sortedAccounts:o,setIsEditModalOpen:s,setEditedId:u}=i,n=((h=o==null?void 0:o.filter(E=>(E==null?void 0:E.value)===(t==null?void 0:t.value)))==null?void 0:h[0])||{},d=W(),w=()=>{var E;u((E=n.desc)==null?void 0:E.id),d(He(n.desc)),s(!0)};return e.jsxs("div",{className:"card-account relative flex flex-col p-3 rounded-lg bg-gray-100 cursor-pointer mt-2",children:[e.jsx("h4",{className:"font-bold",children:n.label}),e.jsx("div",{className:"absolute top-2 right-2",onClick:()=>{w()},children:e.jsx(Ie,{})}),e.jsx("div",{className:"flex mt-2",children:e.jsxs("p",{className:"text-gray-600",children:[e.jsx("strong",{children:"Address:"}),e.jsxs("span",{children:[(D=n==null?void 0:n.desc)==null?void 0:D.address,(f=n==null?void 0:n.desc)==null?void 0:f.city,",",(g=n==null?void 0:n.desc)==null?void 0:g.state,",",(l=n==null?void 0:n.desc)==null?void 0:l.zip]})]})}),e.jsxs("div",{className:"flex mt-2",children:[e.jsxs("p",{className:"text-gray-600 w-2/3",children:[e.jsx("strong",{children:"Parent Account:"}),e.jsx("span",{children:(j=n==null?void 0:n.desc)==null?void 0:j.parentAccountName})]}),e.jsxs("p",{className:"text-gray-600 w-1/3",children:[e.jsx("strong",{children:"Industry:"})," ",(a=n==null?void 0:n.desc)==null?void 0:a.industry]})]}),e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Primary Contact:"})," ",(p=n==null?void 0:n.desc)==null?void 0:p.primaryContactName]}),e.jsxs("p",{className:"text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Billing Contact:"})," ",(N=n==null?void 0:n.desc)==null?void 0:N.billingContactName]})]}),e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-sm text-gray-600 w-2/3",children:[e.jsx("strong",{children:"Website:"})," ",(C=n==null?void 0:n.desc)==null?void 0:C.website]}),e.jsxs("p",{className:"text-sm text-gray-600 w-1/3",children:[e.jsx("strong",{children:"No of Employee:"})," ",(A=n==null?void 0:n.desc)==null?void 0:A.noOfEmployees]})]})]})},Ct=i=>{var n,d,w,h,D,f,g,l,j,a;const{data:t,innerRef:o,innerProps:s,isSelected:u}=i;return e.jsxs("div",{ref:o,...s,className:"card-account relative flex flex-col p-3 border rounded-lg bg-white shadow-sm cursor-pointer my-3",children:[u&&e.jsx("div",{className:"absolute top-2 right-2",children:e.jsx(qe,{style:{color:"var(--custom-600)"}})}),e.jsx("h4",{className:"font-bold",children:t.label}),!(t!=null&&t.__isNew__)&&e.jsx("div",{className:"flex mt-2",children:e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("strong",{children:"Address:"}),e.jsxs("span",{children:[(n=t==null?void 0:t.desc)==null?void 0:n.address,(d=t==null?void 0:t.desc)==null?void 0:d.city,",",(w=t==null?void 0:t.desc)==null?void 0:w.state,",",(h=t==null?void 0:t.desc)==null?void 0:h.zip]})]})}),!(t!=null&&t.__isNew__)&&e.jsxs("div",{className:"flex mt-2",children:[e.jsxs("p",{className:"text-sm text-gray-600 w-2/3",children:[e.jsx("strong",{children:"Parent Account:"}),e.jsx("span",{children:(D=t==null?void 0:t.desc)==null?void 0:D.parentAccountName})]}),e.jsxs("p",{className:"text-sm text-gray-600 w-1/3",children:[e.jsx("strong",{children:"Industry:"})," ",(f=t==null?void 0:t.desc)==null?void 0:f.industry]})]}),!(t!=null&&t.__isNew__)&&e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-sm text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Primary Contact:"})," ",(g=t==null?void 0:t.desc)==null?void 0:g.primaryContactName]}),e.jsxs("p",{className:"text-sm text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Billing Contact:"})," ",(l=t==null?void 0:t.desc)==null?void 0:l.billingContactName]})]}),!(t!=null&&t.__isNew__)&&e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-sm text-gray-600 w-2/3",children:[e.jsx("strong",{children:"Website:"})," ",(j=t==null?void 0:t.desc)==null?void 0:j.website]}),e.jsxs("p",{className:"text-sm text-gray-600 w-1/3",children:[e.jsx("strong",{children:"No of Employee:"})," ",(a=t==null?void 0:t.desc)==null?void 0:a.noOfEmployees]})]})]})};Oe("AccountsData",Je);const jt=i=>{const{id:t,footerWidth:o,onDrawerClose:s}=i,u=W();le();const n=te(a=>a.AccountsData.data.tableData),d=te(a=>{var p,N,C,A,E,I,y,v,k,$,b,V,z,P,L,m,c,r,x,O,F,q,Z,X,Y,H,J,K,ee;return{...(N=(p=a.AccountsData)==null?void 0:p.data)==null?void 0:N.account,primaryContact:{value:(E=(A=(C=a.AccountsData)==null?void 0:C.data)==null?void 0:A.account)==null?void 0:E.primaryContact,label:(v=(y=(I=a.AccountsData)==null?void 0:I.data)==null?void 0:y.account)==null?void 0:v.primaryContactName},billingContact:{value:(b=($=(k=a.AccountsData)==null?void 0:k.data)==null?void 0:$.account)==null?void 0:b.billingContact,label:(P=(z=(V=a.AccountsData)==null?void 0:V.data)==null?void 0:z.account)==null?void 0:P.billingContactName},parentAccountId:{value:(c=(m=(L=a.AccountsData)==null?void 0:L.data)==null?void 0:m.account)==null?void 0:c.parentAccountId,label:(O=(x=(r=a.AccountsData)==null?void 0:r.data)==null?void 0:x.account)==null?void 0:O.parentAccountName},courseId:(Z=(q=(F=a.AccountsData)==null?void 0:F.data)==null?void 0:q.account)!=null&&Z.courseId?{value:(H=(Y=(X=a.AccountsData)==null?void 0:X.data)==null?void 0:Y.account)==null?void 0:H.courseId,label:(ee=(K=(J=a.AccountsData)==null?void 0:J.data)==null?void 0:K.account)==null?void 0:ee.courseTitle}:null}}),w=te(a=>{var p,N;return(N=(p=a.AccountsData)==null?void 0:p.data)==null?void 0:N.loading}),h=a=>{u(Ke({id:a}))},D=()=>{const a="apiCache-accountsData-";Object.keys(localStorage).forEach(p=>{p.startsWith(a)&&localStorage.removeItem(p)}),u(ce({}))},f=async(a,p)=>{var C,A,E,I,y,v,k,$;p(!0);const N={accountName:a.accountName??"",parentAccount:(C=a.parentAccountId)!=null&&C.value&&((A=a.parentAccountId)==null?void 0:A.value)!==""?(E=a.parentAccountId)==null?void 0:E.value:void 0,address:a.address??"",city:a.city??"",state:a.state??"",zip:a.zip??"",primaryContact:(I=a==null?void 0:a.primaryContact)==null?void 0:I.value,billingContact:(y=a==null?void 0:a.billingContact)==null?void 0:y.value,notes:a.notes??"",website:a.website??"",noOfEmployees:a.noOfEmployees?String(a.noOfEmployees):"",industry:a.industry??"",latitude:(a==null?void 0:a.latitude)??"",longitude:(a==null?void 0:a.longitude)??"",courseId:((v=a==null?void 0:a.courseId)==null?void 0:v.value)??null};try{const b=await ot(t,N);p(!1),b&&(j("updated"),D(),s())}catch(b){R.push(e.jsx(B,{title:"Error",type:"danger",duration:2500,children:(($=(k=b==null?void 0:b.response)==null?void 0:k.data)==null?void 0:$.message)||"Something went wrong. please try again!"}),{placement:"top-center"})}},g=()=>{s()},l=async a=>{a(!1),await ct(t)&&(u(ce(n)),R.push(e.jsx(B,{title:"Deleted",type:"success",duration:2500,children:"Account Successfully Deleted"}),{placement:"top-center"}),g())},j=a=>{R.push(e.jsxs(B,{title:"Success",type:"success",duration:2500,children:["Account Successfully ",a]}),{placement:"top-center"})};return S.useEffect(()=>{h(t)},[t]),e.jsxs(e.Fragment,{children:[e.jsx(Ae,{loading:w,children:!ne(d)&&e.jsx(e.Fragment,{children:e.jsx(fe,{type:"edit",footerWidth:o,initialData:d,onFormSubmit:f,onDiscard:g,onDelete:l})})}),!w&&ne(d)&&e.jsxs("div",{className:"h-full flex flex-col items-center justify-center",children:[e.jsx(Te,{src:"/img/others/img-2.png",darkModeSrc:"/img/others/img-2-dark.png",alt:"No product found!"}),e.jsx("h3",{className:"mt-8",children:"No account found!"})]})]})},yt=i=>{const t=W(),{touched:o,errors:s,type:u}=i;S.useState();const{setFieldValue:n,values:d}=ue(),[w,h]=S.useState(!1),[D,f]=S.useState(""),[g,l]=S.useState(""),[j,a]=S.useState([]),[p,N]=S.useState([]),[C,A]=S.useState(),[E,I]=S.useState(!1),y=se(m=>{var r,x,O;return(O=(x=(r=m==null?void 0:m.ContactsData)==null?void 0:r.data)==null?void 0:x.accountList)==null?void 0:O.map(F=>({value:F.id,label:F.accountName,desc:F}))});S.useEffect(()=>{v(),k(),$()},[]);const v=()=>{const m=et({});t(m)},k=S.useCallback(async()=>{var m,c;try{const r=await it();if(r!=null&&r.data){let x=(c=(m=r==null?void 0:r.data)==null?void 0:m.$values)==null?void 0:c.map(O=>({value:O.id,label:O.positionName}));a(x)}}catch(r){a([]),console.error("Failed to opportunity logs:",r)}},[]),$=S.useCallback(async()=>{var m,c;try{const r=await lt();if(r!=null&&r.data){let x=(c=(m=r==null?void 0:r.data)==null?void 0:m.$values)==null?void 0:c.map(O=>({value:O.id,label:O.departmentName}));N(x)}}catch(r){N([]),console.error("Failed to opportunity logs:",r)}},[]),b=m=>{let{value:c}=m.target;c=c.replace(/\D/g,"");var r=c.length;r>0&&(c="("+c),r>3&&(c=c.slice(0,4)+") "+c.slice(4,11)),r>6&&(c=c.slice(0,9)+"-"+c.slice(9)),m.target.value=c},V=(m,c)=>{f(m),l(c),h(!0)},z=m=>{h(!1),n(g,{value:m.id,label:m.accountName}),v(),f(""),l("")},P=()=>{h(!1),f(""),l("")},L=()=>{A(null),I(!1),v()};return e.jsxs(Le,{className:"mb-4",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 py-1",children:[e.jsx(M,{label:"First Name",asterisk:!0,invalid:s.firstName&&o.firstName,errorMessage:s.firstName,children:e.jsx(_,{type:"text",autoComplete:"off",name:"firstName",placeholder:"First Name",component:T})}),e.jsx(M,{label:"Last Name",invalid:s.lastName&&o.lastName,errorMessage:s.lastName,children:e.jsx(_,{type:"text",autoComplete:"off",name:"lastName",placeholder:"Last Name",component:T})})]}),e.jsxs(M,{label:"Account",asterisk:!0,invalid:s.accountId&&o.accountId,errorMessage:s.accountId,children:[e.jsx(_,{name:"accountId",children:({field:m,form:c})=>e.jsx(U,{field:m,form:c,options:y,name:"accountId",placeholder:"Create or Select Account",componentAs:xe,onCreateOption:r=>V(r,"accountId"),components:{DropdownIndicator:null,IndicatorSeparator:null,Option:Ct},styles:{control:(r,x)=>({...r,borderColor:s!=null&&s[m.name]&&(o!=null&&o[m.name])?"red":r.borderColor,boxShadow:s!=null&&s[m.name]&&(o!=null&&o[m.name])?"0 0 0 1px red":x.isFocused?"0 0 0 1px #2684FF":r.boxShadow,"&:hover":{borderColor:s!=null&&s[m.name]&&(o!=null&&o[m.name])?"red":r.borderColor}}),input:r=>({...r,color:"black"})},onChange:r=>{c.setFieldValue(m.name,r)}})}),(d==null?void 0:d.accountId)&&e.jsx(ft,{data:d==null?void 0:d.accountId,sortedAccounts:y,setIsEditModalOpen:I,setEditedId:A})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 py-1",children:[e.jsx(M,{asterisk:!0,label:"Email",invalid:s.email&&o.email,errorMessage:s.email,children:e.jsx(_,{type:"text",autoComplete:"off",name:"email",placeholder:"Email",component:T})}),e.jsx(M,{asterisk:!0,label:"Contact Number",invalid:s.contactNumber&&o.contactNumber,errorMessage:s.contactNumber,children:e.jsx(_,{onInput:m=>{b(m)},type:"text",autoComplete:"off",name:"contactNumber",placeholder:"Contact Number",component:T})})]}),e.jsx(M,{label:"Position",invalid:s.posistion&&o.posistion,errorMessage:s.posistion,children:e.jsx(_,{name:"posistion",children:({field:m,form:c})=>e.jsx(U,{field:m,form:c,options:j,name:"posistion",onChange:r=>{c.setFieldValue(m.name,r)}})})}),e.jsx(M,{label:"Department",invalid:s.department&&o.department,errorMessage:s.department,children:e.jsx(_,{name:"department",children:({field:m,form:c})=>e.jsx(U,{field:m,form:c,options:p,name:"department",onChange:r=>{c.setFieldValue(m.name,r)}})})}),e.jsx(M,{label:"Preferred Contact Time",invalid:s.preferredContactTime&&o.preferredContactTime,errorMessage:s.preferredContactTime,children:e.jsx(_,{type:"text",autoComplete:"off",name:"preferredContactTime",placeholder:"Preferred Contact Time",component:T})}),e.jsx(M,{label:"Notes",invalid:s.notes&&o.notes,errorMessage:s.notes,children:e.jsx(_,{type:"text",autoComplete:"off",name:"notes",placeholder:"Notes",component:T,textArea:!0})}),e.jsx(re,{title:"New Account",isOpen:w,onClose:P,portalClassName:"w30",showBackdrop:!1,children:e.jsx(At,{onDrawerClose:P,isfromDropdown:!0,onContactCreated:z,newContactName:D})}),e.jsx(re,{title:"Edit Account",isOpen:E,onClose:L,portalClassName:"w30",showBackdrop:!1,children:e.jsx(jt,{id:C,onDrawerClose:L})})]})},{useUniqueId:Nt}=Me,pe=Q().matches(ie.sqlInjectionSafe,"Invalid input: SQL keywords not allowed").matches(ie.noSpecialChars,"Special characters like < > = { } are not allowed").test("no-base64","Base64 encoded content is not allowed",i=>i?!ze(i.trim()):!0),we=oe().shape({firstName:pe.required("First Name Required").max(100,"Maximum 100 characters allowed"),accountId:oe().required("Account Required"),email:Q().matches(/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/,"Invalid email").required("Please enter your email").nullable(),contactNumber:Q().matches(/^[0-9()\-\s]+$/,"Phone must only contain numbers, parentheses, dashes, and spaces").test("is-ten-digits","Please enter valid Contact No",i=>i?i.replace(/[()\-\s]/g,"").length===10:!0).required("Contact Number is required"),preferredContactTime:pe.max(100,"Maximum 100 characters allowed"),notes:pe}),bt=({onDelete:i})=>{const[t,o]=S.useState(!1),s=()=>{o(!0)},u=()=>{o(!1)},n=()=>{i==null||i(o)};return e.jsxs(e.Fragment,{children:[e.jsx(G,{className:"text-red-600",variant:"plain",size:"sm",icon:e.jsx(ve,{}),type:"button",onClick:s,children:"Delete"}),e.jsx(ke,{isOpen:t,type:"danger",title:"Delete Category",confirmButtonColor:"red-600",onClose:u,onRequestClose:u,onCancel:u,onConfirm:n,children:e.jsx("p",{children:"Are you sure you want to delete this? All record related to this role will be deleted as well. This action cannot be undone."})})]})},ge=S.forwardRef((i,t)=>{const{type:o,footerWidth:s,initialData:u={id:"",firstName:"",lastName:"",email:"",accountId:null,contactNumber:"",posistion:"",notes:""},onFormSubmit:n,onDiscard:d,onDelete:w}=i,h=Nt("Contact-");return e.jsx(e.Fragment,{children:e.jsx($e,{innerRef:t,initialValues:{...u},validationSchema:we,onSubmit:(D,{setSubmitting:f})=>{const g=D;o==="new"&&(g.id=h),n==null||n(g,f)},children:({values:D,touched:f,errors:g,isSubmitting:l})=>e.jsx(Pe,{children:e.jsxs(Fe,{children:[e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-1 gap-4",children:e.jsx("div",{className:"lg:col-span-2 pb-8",children:e.jsx(yt,{type:o,touched:f,errors:g})})}),e.jsxs(_e,{className:`px-8 flex items-center justify-between py-4 ${s?`md:${s}`:""}`,stickyClass:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700",children:[e.jsx("div",{children:o==="edit"&&e.jsx(bt,{onDelete:w})}),e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsx(G,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>d==null?void 0:d(),children:"Discard"}),e.jsx(G,{size:"sm",variant:"solid",loading:l,icon:e.jsx(Ve,{}),type:"submit",children:"Save"})]})]})]})})})})});ge.displayName="ContactForm";const wt=i=>{var p,N;const{footerWidth:t,onDrawerClose:o,customerId:s,onContactCreated:u,isfromDropdown:n=!1,newContactName:d="",accountId:w=null,accountName:h="",fetchData:D}=i;le();const f=W();S.useState(!1);const g=async C=>await dt(C),l=()=>{if(Ee("apiCache-contactsData"),D){D();return}f(he({}))},j=async(C,A)=>{var I,y,v,k,$;A(!0);const E={contactName:`${C.firstName} ${C.lastName}`??"",email:C.email??"",contactNumber:C.contactNumber??"",contactPosistion:((I=C.posistion)==null?void 0:I.value)??null,accountId:((y=C.accountId)==null?void 0:y.value)??"",notes:C.notes??"",departmentId:((v=C==null?void 0:C.department)==null?void 0:v.value)??null,preferredContactTime:C.preferredContactTime??""};try{g(E).then(b=>{b.success&&(R.push(e.jsx(B,{title:"Success",type:"success",duration:2500,children:"Contact Successfully Added"}),{placement:"top-center"}),u&&u(b==null?void 0:b.data),l(),o())}).catch(b=>{var V=b.response.data;A(!1),R.push(e.jsx(B,{title:"Error",type:"danger",duration:2500,children:V.message}),{placement:"top-center"})})}catch(b){R.push(e.jsx(B,{title:"Error",type:"danger",duration:2500,children:(($=(k=b==null?void 0:b.response)==null?void 0:k.data)==null?void 0:$.message)||"Something went wrong. please try again!"}),{placement:"top-center"})}},a=()=>{o()};return e.jsx(e.Fragment,{children:e.jsx(ge,{type:"new",footerWidth:t,onFormSubmit:j,onDiscard:a,accountId:w,initialData:n?{id:"",firstName:(p=d==null?void 0:d.split(" "))==null?void 0:p[0],lastName:(N=d==null?void 0:d.split(" "))==null?void 0:N[1],email:"",contactNumber:"",posistion:"",notes:""}:w?{id:"",firstName:"",lastName:"",email:"",accountId:{label:h,value:w},contactNumber:"",posistion:"",notes:""}:void 0})})},De=i=>{var h,D,f,g,l,j;const{data:t,sortedContacts:o,setIsEditModalOpen:s,setEditedId:u}=i,n=((h=o==null?void 0:o.filter(a=>(a==null?void 0:a.value)===(t==null?void 0:t.value)))==null?void 0:h[0])||{},d=W(),w=()=>{var a;u((a=n.desc)==null?void 0:a.id),d(tt(n.desc)),s(!0)};return e.jsxs("div",{className:"card-account relative flex flex-col p-3 rounded-lg bg-gray-100 cursor-pointer mt-2",children:[e.jsx("h4",{className:"font-bold",children:n.label}),e.jsx("div",{className:"flex justify-between space-x-4 mt-2",children:e.jsxs("p",{className:"text-gray-600 w-3/4",children:[e.jsx("strong",{children:"Email:"})," ",(D=n==null?void 0:n.desc)==null?void 0:D.email]})}),e.jsx("div",{className:"absolute top-2 right-2",onClick:()=>{w()},children:e.jsx(Ie,{})}),e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Designation:"})," ",((f=n==null?void 0:n.desc)==null?void 0:f.contactPosistion)??""]}),e.jsxs("p",{className:"text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Contact No:"})," ",(g=n==null?void 0:n.desc)==null?void 0:g.contactNumber]})]}),e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Department:"})," ",(l=n==null?void 0:n.desc)==null?void 0:l.department]}),e.jsxs("p",{className:"text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Contact Time:"})," ",(j=n==null?void 0:n.desc)==null?void 0:j.preferredContactTime]})]})]})},Se=i=>{var w,h,D,f,g;const{data:t,innerRef:o,innerProps:s,isSelected:u,setIsEditModalOpen:n,setEditedId:d}=i;return e.jsxs("div",{ref:o,...s,className:"card-account relative flex flex-col p-3 border rounded-lg bg-white border-blue cursor-pointer my-3",children:[u&&e.jsx("div",{className:"absolute top-2 right-2",children:e.jsx(qe,{style:{color:"#F3741C"}})}),e.jsx("h4",{className:"font-bold",children:t.label}),!(t!=null&&t.__isNew__)&&e.jsx("div",{className:"flex justify-between space-x-4 mt-2",children:e.jsxs("p",{className:"text-sm text-gray-600 w-3/4",children:[e.jsx("strong",{children:"Email:"})," ",(w=t==null?void 0:t.desc)==null?void 0:w.email]})}),!(t!=null&&t.__isNew__)&&e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-sm text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Designation:"})," ",(h=t==null?void 0:t.desc)==null?void 0:h.contactPosistion]}),e.jsxs("p",{className:"text-sm text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Contact No:"})," ",(D=t==null?void 0:t.desc)==null?void 0:D.contactNumber]})]}),!(t!=null&&t.__isNew__)&&e.jsxs("div",{className:"flex justify-between space-x-4 mt-2",children:[e.jsxs("p",{className:"text-sm text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Department:"})," ",(f=t==null?void 0:t.desc)==null?void 0:f.department]}),e.jsxs("p",{className:"text-sm text-gray-600 w-1/2",children:[e.jsx("strong",{children:"Contact Time:"})," ",(g=t==null?void 0:t.desc)==null?void 0:g.preferredContactTime]})]})]})};Oe("ContactssData",at);const Dt=i=>{const{id:t,footerWidth:o,onDrawerClose:s}=i,u=W();le();const n=se(a=>a.ContactsData.data.tableData),d=se(a=>{var p,N,C,A,E,I,y,v,k,$,b,V,z,P,L,m,c,r,x,O,F,q,Z,X,Y,H,J,K,ee,Ce;return{...(N=(p=a.ContactsData)==null?void 0:p.data)==null?void 0:N.contact,posistion:{value:(E=(A=(C=a.ContactsData)==null?void 0:C.data)==null?void 0:A.contact)==null?void 0:E.contactPosistionId,label:(v=(y=(I=a.ContactsData)==null?void 0:I.data)==null?void 0:y.contact)==null?void 0:v.contactPosistion},accountId:{value:(b=($=(k=a.ContactsData)==null?void 0:k.data)==null?void 0:$.contact)==null?void 0:b.accountId,label:(P=(z=(V=a.ContactsData)==null?void 0:V.data)==null?void 0:z.contact)==null?void 0:P.accountName},firstName:(x=(r=(c=(m=(L=a.ContactsData)==null?void 0:L.data)==null?void 0:m.contact)==null?void 0:c.contactName)==null?void 0:r.split(" "))==null?void 0:x[0],lastName:(X=(Z=(q=(F=(O=a.ContactsData)==null?void 0:O.data)==null?void 0:F.contact)==null?void 0:q.contactName)==null?void 0:Z.split(" "))==null?void 0:X[1],department:{label:(J=(H=(Y=a.ContactsData)==null?void 0:Y.data)==null?void 0:H.contact)==null?void 0:J.department,value:(Ce=(ee=(K=a.ContactsData)==null?void 0:K.data)==null?void 0:ee.contact)==null?void 0:Ce.departmentId}}});console.log("contactData",d);const w=se(a=>{var p,N;return(N=(p=a.ContactsData)==null?void 0:p.data)==null?void 0:N.loading}),h=a=>{u(st({id:a}))},D=()=>{if(Ee("apiCache-contactsData"),i!=null&&i.fetchData){i==null||i.fetchData();return}u(he({}))},f=async(a,p)=>{var C,A,E,I,y;p(!0);const N={contactName:`${a.firstName} ${a.lastName}`??"",email:a.email??"",contactNumber:a.contactNumber??"",contactPosistion:((C=a.posistion)==null?void 0:C.value)??"",accountId:((A=a.accountId)==null?void 0:A.value)??"",notes:a.notes??"",departmentId:((E=a==null?void 0:a.department)==null?void 0:E.value)??void 0,preferredContactTime:(a==null?void 0:a.preferredContactTime)??""};try{const v=await mt(t,N);p(!1),v&&(j("updated"),D(),s())}catch(v){R.push(e.jsx(B,{title:"Error",type:"danger",duration:2500,children:((y=(I=v==null?void 0:v.response)==null?void 0:I.data)==null?void 0:y.message)||"Something went wrong. please try again!"}),{placement:"top-center"})}},g=()=>{s()},l=async a=>{a(!1),await pt(t)&&(u(he(n)),R.push(e.jsx(B,{title:"Deleted",type:"success",duration:2500,children:"Contact Successfully Deleted"}),{placement:"top-center"}),g())},j=a=>{R.push(e.jsxs(B,{title:"Success",type:"success",duration:2500,children:["Contact Successfully ",a]}),{placement:"top-center"})};return S.useEffect(()=>{h(t)},[t]),e.jsxs(e.Fragment,{children:[e.jsx(Ae,{loading:w,children:!ne(d)&&e.jsx(e.Fragment,{children:e.jsx(ge,{type:"edit",footerWidth:o,initialData:d,onFormSubmit:f,onDiscard:g,onDelete:l})})}),!w&&ne(d)&&e.jsxs("div",{className:"h-full flex flex-col items-center justify-center",children:[e.jsx(Te,{src:"/img/others/img-2.png",darkModeSrc:"/img/others/img-2-dark.png",alt:"No product found!"}),e.jsx("h3",{className:"mt-8",children:"No contact found!"})]})]})},St=i=>{var L,m;const t=W(),{touched:o,errors:s,type:u,isCourseEnable:n}=i,{setFieldValue:d}=ue(),w=S.useRef(null),{values:h}=ue(),[D,f]=S.useState(!1),[g,l]=S.useState(""),[j,a]=S.useState(""),[p,N]=S.useState(!1),[C,A]=S.useState(),[E,I]=S.useState([]),y=te(c=>{var r,x,O;return(O=(x=(r=c.AccountsData)==null?void 0:r.data)==null?void 0:x.accountList)==null?void 0:O.map(F=>({value:F.id,label:F.accountName}))}),v=te(c=>{var x,O,F;return(F=(O=(x=c==null?void 0:c.AccountsData)==null?void 0:x.data)==null?void 0:O.contactList)==null?void 0:F.map(q=>({value:q.id,label:q.contactName,desc:q}))}),k=async()=>{var c,r,x;try{const O=await ut();O.success&&I((x=(r=(c=O==null?void 0:O.data)==null?void 0:c.finalResults)==null?void 0:r.$values)==null?void 0:x.map(F=>({label:F==null?void 0:F.title,value:F==null?void 0:F.id})))}catch{I([])}};S.useEffect(()=>{$(),k()},[]);const $=()=>{const c=Ne({});t(c),(y==null?void 0:y.length)==0&&t(ce({}))},b=(c,r)=>{l(c),a(r),f(!0)},V=c=>{f(!1),d(j,{value:c.id,label:c.contactName}),$(),l(""),a("")},z=()=>{f(!1),l(""),a("")};S.useEffect(()=>{const c=()=>{if(window.google&&window.google.maps){const r=new window.google.maps.places.Autocomplete(w.current,{types:["address"],componentRestrictions:{country:"us"}});r.addListener("place_changed",()=>{const x=r.getPlace();if(x.geometry){const{lat:F,lng:q}=x.geometry.location;d("latitude",F()),d("longitude",q())}let O={};x.address_components.forEach(F=>{const q=F.types;q.includes("locality")?O.city=F.long_name:q.includes("administrative_area_level_1")?O.state=F.short_name:q.includes("postal_code")&&(O.zipcode=F.long_name)}),d("address",x.name),d("city",O.city||""),d("state",O.state||""),d("zip",O.zipcode||"")})}};if(window.google&&window.google.maps)c();else{const r=setInterval(()=>{window.google&&window.google.maps&&(c(),clearInterval(r))},500)}},[i]);const P=()=>{A(null),N(!1),t(Ne({}))};return e.jsxs(Le,{className:"mb-4",children:[e.jsx(M,{asterisk:!0,label:"Name",invalid:s.accountName&&o.accountName,errorMessage:s.accountName,children:e.jsx(_,{type:"text",autoComplete:"off",name:"accountName",placeholder:"Account Name",component:T})}),e.jsx(M,{label:"Parent Account",invalid:s.parentAccountId&&o.parentAccountId,errorMessage:s.parentAccountId,children:e.jsx(_,{name:"parentAccountId",children:({field:c,form:r})=>e.jsx(U,{field:c,form:r,options:y,name:"parentAccountId",onChange:x=>{r.setFieldValue(c.name,x)}})})}),e.jsx(M,{label:"Address",invalid:s.address&&o.address,errorMessage:s.address,children:e.jsx(_,{name:"address",children:({field:c})=>e.jsx(T,{...c,ref:w,placeholder:"Address"})})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4 py-1",children:[e.jsx(M,{label:"City",invalid:s.city&&o.city,errorMessage:s.city,children:e.jsx(_,{type:"text",autoComplete:"off",name:"city",placeholder:"City",component:T})}),e.jsx(M,{label:"State",invalid:s.state&&o.state,errorMessage:s.state,children:e.jsx(_,{type:"text",autoComplete:"off",name:"state",placeholder:"State",component:T})}),e.jsx(M,{label:"Zip",invalid:s.zip&&o.zip,errorMessage:s.zip,children:e.jsx(_,{type:"text",autoComplete:"off",name:"zip",placeholder:"Zip",component:T})})]}),e.jsxs(M,{label:"Primary Contact",invalid:s.primaryContact&&o.primaryContact,errorMessage:s.primaryContact,children:[e.jsx(_,{name:"primaryContact",children:({field:c,form:r})=>e.jsx(U,{field:c,form:r,options:v,name:"primaryContact",components:{DropdownIndicator:null,IndicatorSeparator:null,Option:Se},componentAs:xe,onCreateOption:x=>b(x,"primaryContact"),onChange:x=>{r.setFieldValue(c.name,x)},styles:{input:x=>({...x,color:"black"})}})}),((L=h==null?void 0:h.primaryContact)==null?void 0:L.value)&&e.jsx(De,{data:h==null?void 0:h.primaryContact,sortedContacts:v,setIsEditModalOpen:N,setEditedId:A})]}),e.jsxs(M,{label:"Billing Contact",invalid:s.billingContact&&o.billingContact,errorMessage:s.billingContact,children:[e.jsx(_,{name:"billingContact",children:({field:c,form:r})=>e.jsx(U,{field:c,form:r,options:v,name:"billingContact",componentAs:xe,components:{DropdownIndicator:null,IndicatorSeparator:null,Option:Se},onCreateOption:x=>b(x,"billingContact"),onChange:x=>{r.setFieldValue(c.name,x)},styles:{input:x=>({...x,color:"black"})}})}),((m=h==null?void 0:h.billingContact)==null?void 0:m.value)&&e.jsx(De,{data:h==null?void 0:h.billingContact,sortedContacts:v,setIsEditModalOpen:N,setEditedId:A})]}),e.jsx(M,{label:"Website",invalid:s.website&&o.website,errorMessage:s.website,children:e.jsx(_,{type:"text",autoComplete:"off",name:"website",placeholder:"Website",component:T})}),e.jsx(M,{label:"Industry",invalid:s.industry&&o.industry,errorMessage:s.industry,children:e.jsx(_,{type:"text",autoComplete:"off",name:"industry",placeholder:"Industry",component:T})}),e.jsx(M,{label:"No of Employees",invalid:s.noOfEmployees&&o.noOfEmployees,errorMessage:s.noOfEmployees,children:e.jsx(_,{type:"number",autoComplete:"off",name:"noOfEmployees",placeholder:"No of Employees",component:T})}),n&&e.jsx(M,{label:"Course",asterisk:!0,invalid:s.courseId&&o.courseId,errorMessage:s.courseId,children:e.jsx(_,{name:"courseId",children:({field:c,form:r})=>e.jsx(U,{field:c,form:r,options:E,name:"courseId",onChange:x=>{r.setFieldValue(c.name,x)}})})}),e.jsx(M,{label:"Notes",invalid:s.notes&&o.notes,errorMessage:s.notes,children:e.jsx(_,{type:"text",autoComplete:"off",name:"notes",placeholder:"Notes",component:T,textArea:!0})}),e.jsx(re,{title:"New Contact",isOpen:D,onClose:z,onRequestClose:z,portalClassName:"w30",showBackdrop:!1,children:e.jsx(wt,{onDrawerClose:z,isfromDropdown:!0,onContactCreated:V,newContactName:g})}),e.jsx(re,{title:"Edit Contact",isOpen:p,onClose:P,onRequestClose:P,portalClassName:"w30",showBackdrop:!1,children:e.jsx(Dt,{id:C,onDrawerClose:P})})]})},{useUniqueId:It}=Me,ae=Q().matches(ie.sqlInjectionSafe,"Invalid input: SQL keywords not allowed").matches(ie.noSpecialChars,"Special characters like < > = { } are not allowed").test("no-base64","Base64 encoded content is not allowed",i=>i?!ze(i.trim()):!0),Ot=({onDelete:i})=>{const[t,o]=S.useState(!1),s=()=>{o(!0)},u=()=>{o(!1)},n=()=>{i==null||i(o)};return e.jsxs(e.Fragment,{children:[e.jsx(G,{className:"text-red-600",variant:"plain",size:"sm",icon:e.jsx(ve,{}),type:"button",onClick:s,children:"Delete"}),e.jsx(ke,{isOpen:t,type:"danger",title:"Delete Category",confirmButtonColor:"red-600",onClose:u,onRequestClose:u,onCancel:u,onConfirm:n,children:e.jsx("p",{children:"Are you sure you want to delete this? All record related to this role will be deleted as well. This action cannot be undone."})})]})},fe=S.forwardRef((i,t)=>{const{type:o,footerWidth:s,initialData:u={id:"",accountName:"",parentAccountId:"",address:"",city:"",state:"",zip:"",primaryContact:"",billingContact:"",notes:"",courseId:null},onFormSubmit:n,onDiscard:d,onDelete:w}=i,{isCourseEnable:h}=Ze(g=>g==null?void 0:g.theme),D=oe().shape({accountName:ae.required("Account name Required").max(200,"Maximum 200 characters allowed"),website:ae.max(100,"Maximum 100 characters allowed"),industry:ae.max(100,"Maximum 100 characters allowed"),noOfEmployees:ae.max(100,"Maximum 100 characters allowed"),courseId:Xe(()=>h?oe({value:Q().required("Course is required"),label:Q().required()}).required("Course is required"):Ye().nullable(!0))}),f=It("Lead-");return e.jsx(e.Fragment,{children:e.jsx($e,{innerRef:t,initialValues:{...u},validationSchema:D,onSubmit:(g,{setSubmitting:l})=>{const j=g;o==="new"&&(j.id=f),n==null||n(j,l)},children:({values:g,touched:l,errors:j,isSubmitting:a})=>e.jsx(Pe,{children:e.jsxs(Fe,{children:[e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-1 gap-4",children:e.jsx("div",{className:"lg:col-span-2 pb-8",children:e.jsx(St,{type:o,touched:l,errors:j,isCourseEnable:h})})}),e.jsxs(_e,{className:`px-8 flex items-center justify-between py-4 ${s?`md:${s}`:""}`,stickyClass:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700",children:[e.jsx("div",{children:o==="edit"&&e.jsx(Ot,{onDelete:w})}),e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsx(G,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>d==null?void 0:d(),children:"Discard"}),e.jsx(G,{size:"sm",variant:"solid",loading:a,icon:e.jsx(Ve,{}),type:"submit",children:"Save"})]})]})]})})})})});fe.displayName="AccountForm";const At=i=>{const{onDrawerClose:t,footerWidth:o,customerId:s,onContactCreated:u,isfromDropdown:n=!1,newContactName:d=""}=i;le();const w=W();S.useState(!1);const h=async l=>await rt(l),D=()=>{const l="apiCache-accountsData-";Object.keys(localStorage).forEach(j=>{j.startsWith(l)&&localStorage.removeItem(j)}),w(ce({}))},f=async(l,j)=>{var p,N,C,A,E,I;j(!0);const a={accountName:l.accountName??"",parentAccount:((p=l.parentAccountId)==null?void 0:p.value)??void 0,address:l.address??"",city:l.city??"",state:l.state??"",zip:l.zip??"",primaryContact:((N=l.primaryContact)==null?void 0:N.value)??void 0,billingContact:((C=l.billingContact)==null?void 0:C.value)??void 0,notes:l.notes??"",website:l.website??"",noOfEmployees:l.noOfEmployees?String(l.noOfEmployees):"",industry:l.industry??"",latitude:(l==null?void 0:l.latitude)??null,longitude:(l==null?void 0:l.longitude)??null,courseId:((A=l==null?void 0:l.courseId)==null?void 0:A.value)??null};try{h(a).then(y=>{y.success&&(R.push(e.jsx(B,{title:"Success",type:"success",duration:2500,children:"Account Successfully Added"}),{placement:"top-center"}),u&&u(y==null?void 0:y.data),D(),t())}).catch(y=>{var v=y.response.data;j(!1),R.push(e.jsx(B,{title:"Error",type:"danger",duration:2500,children:v.message}),{placement:"top-center"})})}catch(y){R.push(e.jsx(B,{title:"Error",type:"danger",duration:2500,children:((I=(E=y==null?void 0:y.response)==null?void 0:E.data)==null?void 0:I.message)||"Something went wrong. please try again!"}),{placement:"top-center"})}},g=()=>{t()};return e.jsx(e.Fragment,{children:e.jsx(fe,{type:"new",footerWidth:o,onFormSubmit:f,onDiscard:g,initialData:n?{id:"",accountName:d,parentAccountId:"",address:"",city:"",state:"",zip:"",primaryContact:"",billingContact:"",notes:""}:void 0})})};export{At as A,xe as C,jt as E,wt as a,Dt as b,Se as c,De as d,Ct as e,ft as f};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-mui-69397583.js";import{c as m,i as y,a as f,F as g,b as v,d as n,E as S}from"./index.esm-70ab539c.js";import{W as q,I as k,B as u}from"./index-c62ac197.js";import{U as I}from"./Upload-fb34ce03.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import"./vendor-react-ece1c85f.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import{u as A}from"./index-dc103f22.js";import{S as E}from"./StickyFooter-5b934274.js";const x=1,U=m({files:y().min(1,"Please upload at least one file").required("File upload is required"),fileName:f().required("File Name is required")}),C=m({files:y().min(1,"Please upload at least one file").required("File upload is required"),fileName:f().required("File Name is required"),opportunityId:m().required("Opportunity is required")}),Y=({initialData:h={files:[]},footerWidth:d,onSubmit:j,onCancel:N,accountId:c=null})=>{const b=A(t=>{var a,o,i;return(i=(o=(a=t==null?void 0:t.opportunity)==null?void 0:a.data)==null?void 0:o.opportunityList)==null?void 0:i.map(s=>({value:s.id,label:s.opportunityName}))}),F=(t,r)=>{let a=!0;const o=5242880;if(r.length>=x)return`You can only upload ${x} file(s)`;if(t)for(const i of t)i.size>=o&&(a="Upload file cannot more then 5 MB!");return a};return e.jsx(g,{initialValues:h,footerWidth:d,validationSchema:c?C:U,onSubmit:(t,{setSubmitting:r})=>{j(t,r)},children:({values:t,touched:r,errors:a,isSubmitting:o})=>e.jsx(v,{children:e.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[e.jsxs("div",{children:[c&&e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Opportunity"}),e.jsx(n,{name:"opportunityId",children:({field:i,form:s})=>e.jsx(q,{field:i,form:s,options:b,name:"opportunityId",placeholder:"Select Opportunity",onChange:l=>{s.setFieldValue(i.name,l)}})}),a.opportunityId&&r.opportunityId&&e.jsx("div",{className:"text-red-500 text-sm mt-1",children:a.opportunityId})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Upload File"}),e.jsx(n,{name:"files",children:({field:i,form:s})=>e.jsx(I,{draggable:!0,beforeUpload:F,fileList:t.files||[],cropNeeded:!1,onChange:l=>{var p;s.setFieldValue(i.name,l),s.setFieldValue("fileName",(p=l==null?void 0:l[0])==null?void 0:p.name)},onFileRemove:l=>s.setFieldValue(i.name,l)})}),a.files&&r.files&&e.jsx("div",{className:"text-red-500 text-sm mt-1",children:a.files})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"File Name"}),e.jsx(n,{name:"fileName",children:({field:i})=>e.jsx(k,{...i,placeholder:"File Name"})}),e.jsx(S,{name:"fileName",component:"div",className:"text-red-600"})]})]}),e.jsx(E,{className:`px-8 flex items-center justify-between py-4 ${d}`,stickyClass:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"md:flex items-center justify-between w-full",children:[e.jsx(u,{type:"button",size:"sm",className:"mr-2",onClick:N,children:"Cancel"}),e.jsx(u,{size:"sm",variant:"solid",type:"submit",loading:o,children:"Save"})]})})]})})})};export{Y as A};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-mui-69397583.js";import{F as Y,W as Z,I as j,B as z,l as ee,O as $,Q as H}from"./index-c62ac197.js";import{r as f,f as ae}from"./vendor-react-ece1c85f.js";import{a as p,F as ne}from"./FormContainer-91c2b0e4.js";import{h as te}from"./index-36ba4ea7.js";import{S as se}from"./StickyFooter-5b934274.js";import{u as ie,d as u,c as O,h as re,a as M,F as oe,b as le}from"./index.esm-70ab539c.js";import{A as ce}from"./AdaptableCard-df7695d6.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import"./Drawer-949c18c6.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import{U as K}from"./Upload-fb34ce03.js";import{F as P}from"./index-fcc1c999.js";import{p as G}from"./Notify-bb3ce372.js";import{d as Q,a as de}from"./index-e4c6057f.js";import{b as k,c as me,a as pe}from"./vendor-redux-a1f00e6b.js";import{b as ge}from"./CompanyService-1bf7c3c8.js";const T="TranslationData",W=k(`${T}/getScreen`,async()=>{}),R=k(`${T}/getAllTranslations`,async()=>{}),_=k(T+"/getCompanyDetails",async t=>(await ge(t.id)).data),xe={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},he={loading:!1,deleteConfirmation:!1,selectedRowData:"",tableData:xe,filterData:{name:"",category:["bags","cloths","devices","shoes","watches"],status:[0,1,2],productStatus:0},ScreenList:[],TranslationList:[]},J=me({name:`${T}`,initialState:he,reducers:{setTableData:(t,a)=>{t.tableData=a.payload},setFilterData:(t,a)=>{t.filterData=a.payload},toggleDeleteConfirmation:(t,a)=>{t.deleteConfirmation=a.payload},setSelectedRowData:(t,a)=>{t.selectedRowData=a.payload}},extraReducers:t=>{t.addCase(W.fulfilled,(a,s)=>{var l;a.ScreenList=(l=s.payload)==null?void 0:l.$values,a.loading=!1}).addCase(W.pending,a=>{a.loading=!0}).addCase(R.fulfilled,(a,s)=>{var l;a.TranslationList=(l=s.payload)==null?void 0:l.$values,a.loading=!1}).addCase(R.pending,a=>{a.loading=!0}).addCase(R.rejected,(a,s)=>{a.TranslationList=[],a.loading=!1}).addCase(_.fulfilled,(a,s)=>{a.company=s.payload,a.loading=!1}).addCase(_.pending,a=>{a.loading=!0})}}),{setTableData:He,setFilterData:Oe,toggleDeleteConfirmation:Me,setSelectedRowData:Ke}=J.actions,ue=J.reducer,Pe=pe({data:ue}),Ge=Y,fe=({touched:t,errors:a,isEdit:s,isBannerNeeded:l,isIconNeeded:x,isRedirectionNeeded:h})=>{var S,F,n;const[y,I]=f.useState([]),[C,w]=f.useState(!1),{values:d,setFieldValue:r}=ie();f.useEffect(()=>{},[]);const g=m=>{const o=m[0];if(!o)return;const i=URL.createObjectURL(o),c=new Image;c.onload=()=>{const b=c.width/c.height;if(b<1.9||b>2.1){G("Please use a landscape image with ~2:1 aspect ratio (800×400px or ideally 1200×600px).","Invalid Banner Image","warning",4500),URL.revokeObjectURL(i);return}r("bannerImage",i),r("bannerFile",o)},c.src=i},D=m=>{const o=m[0];if(!o)return;const i=URL.createObjectURL(o),c=new Image;c.onload=()=>{if(c.width!==210||c.height!==210){G("Icon image must be exactly 210×210 px for best clarity.","Invalid Icon Image","warning",4500),URL.revokeObjectURL(i);return}r("iconImage",i),r("iconFile",o)},c.src=i};return e.jsxs(ce,{className:"mb-6",children:[e.jsx("div",{className:"mb-5",children:e.jsx(p,{asterisk:!0,label:"Mobile Screen",invalid:a.screen&&t.screen,errorMessage:a.screen,children:e.jsx(u,{name:"screen",children:({field:m,form:o})=>e.jsx(Z,{field:m,form:o,options:y.map(i=>({value:i.id,label:i.screenName})),isLoading:C,name:"screen",placeholder:"Select a Screen",onChange:i=>{o.setFieldValue(m.name,i)}})})})}),e.jsx("div",{className:"mb-5",children:e.jsx(p,{label:"Translation Key",asterisk:!0,invalid:a.key&&t.key,errorMessage:a.key,children:e.jsx(u,{type:"text",disabled:s,autoComplete:"off",name:"key",placeholder:"e.g., Login.Header.Title",component:j})})}),e.jsx("h4",{className:"font-semibold mt-6 mb-4",children:"Base Language - English"}),e.jsx(p,{asterisk:!0,label:"Text (English)",invalid:((S=a.en)==null?void 0:S.name)&&((F=t.en)==null?void 0:F.name),errorMessage:(n=a.en)==null?void 0:n.name,children:e.jsx(u,{type:"text",autoComplete:"off",name:"en.name",placeholder:"Enter text in English",component:j})}),e.jsx("h4",{className:"font-semibold mt-6 mb-2",children:"Translations"}),e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium",children:"Español"}),e.jsx(p,{label:"Text",children:e.jsx(u,{type:"text",name:"es.name",placeholder:"Texto en español",component:j})})]}),e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium",children:"Tiếng Việt"}),e.jsx(p,{label:"Text",children:e.jsx(u,{type:"text",name:"vi.name",placeholder:"Văn bản tiếng Việt",component:j})})]}),e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium",children:"中文"}),e.jsx(p,{label:"Text",children:e.jsx(u,{type:"text",name:"zh.name",placeholder:"中文文本",component:j})})]}),l&&e.jsx("div",{className:"mt-6",children:e.jsxs(p,{label:"Banner Image (2:1 Aspect)",children:[d.bannerImage&&e.jsxs("div",{className:"relative mt-4 max-w-[600px] mx-auto mb-2",children:[e.jsx("img",{src:d.bannerImage,alt:"Banner Preview",className:"w-full rounded-lg border shadow-md object-contain"}),e.jsx("button",{type:"button",className:"absolute top-2 right-2 bg-white rounded-full p-1 shadow",onClick:()=>{r("bannerImage",""),r("bannerFile",null)},children:e.jsx(Q,{className:"text-red-500 text-xl"})})]}),e.jsx(K,{draggable:!0,accept:"image/*",onChange:g,cropNeeded:!1,children:e.jsxs("div",{className:"my-10 text-center",children:[e.jsx("div",{className:"text-5xl mb-3 flex justify-center",children:e.jsx(P,{})}),e.jsx("p",{className:"font-semibold",children:"Drop banner image here or browse"}),e.jsx("p",{className:"mt-1 opacity-60",children:"Recommended: 800×400 px (2×), ideally 1200×600 px (3×)"})]})})]})}),x&&e.jsx("div",{className:"mt-6",children:e.jsxs(p,{label:"Icon Image (210×210)",children:[d.iconImage&&e.jsxs("div",{className:"relative mt-4 w-[210px] mx-auto mb-2",children:[e.jsx("img",{src:d.iconImage,alt:"Icon Preview",className:"rounded border"}),e.jsx("button",{type:"button",className:"absolute top-2 right-2 bg-white rounded-full p-1 shadow",onClick:()=>{r("iconImage",""),r("iconFile",null)},children:e.jsx(Q,{className:"text-red-500 text-xl"})})]}),e.jsx(K,{draggable:!0,accept:"image/*",onChange:D,cropNeeded:!1,children:e.jsxs("div",{className:"my-10 text-center",children:[e.jsx("div",{className:"text-5xl mb-3 flex justify-center",children:e.jsx(P,{})}),e.jsx("p",{className:"font-semibold",children:"Drop icon image here or browse"}),e.jsx("p",{className:"mt-1 opacity-60",children:"Required: 210×210 px"})]})})]})}),h&&e.jsx("div",{className:"mt-6",children:e.jsx(p,{label:"Redirection URL",invalid:a.redirectionUrl&&t.redirectionUrl,errorMessage:a.redirectionUrl,children:e.jsx(u,{type:"text",name:"redirectionUrl",placeholder:"https://example.com/target-page",component:j})})})]})},{useUniqueId:be}=te,je=O().shape({screen:re().required("Screen is Required"),key:M().required("Translation key is required"),en:O().shape({name:M().required("English text is required")})}),X=f.forwardRef((t,a)=>{const{type:s,initialData:l={id:"",screen:"",key:"",en:{name:""},es:{name:""},vi:{name:""},zh:{name:""},bannerImage:"",iconImage:"",redirectionUrl:"",bannerFile:null,iconFile:null},onFormSubmit:x,onDiscard:h,isBannerNeeded:y,isIconNeeded:I,isRedirectionNeeded:C}=t,w=be("CAT-");return e.jsx(oe,{innerRef:a,enableReinitialize:!0,initialValues:{...l},validationSchema:je,onSubmit:(d,{setSubmitting:r})=>{const g={...d};s==="new"&&(g.id=w),x==null||x(g,r)},children:({touched:d,errors:r,isSubmitting:g})=>e.jsx(le,{children:e.jsxs(ne,{children:[e.jsx(fe,{touched:d,errors:r,isEdit:s!=="new",isBannerNeeded:y,isIconNeeded:I,isRedirectionNeeded:C}),e.jsxs(se,{className:"px-8 flex items-center justify-between py-4",stickyClass:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700",children:[e.jsx(z,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>h==null?void 0:h(),children:"Discard"}),e.jsx(z,{size:"sm",variant:"solid",loading:g,icon:e.jsx(de,{}),type:"submit",children:"Save"})]})]})})})});X.displayName="TranslationForm";const Qe=t=>{const{onDrawerClose:a,categoryId:s,fetchData:l,isBannerNeeded:x=!1,isIconNeeded:h=!1,isRedirectionNeeded:y=!1}=t;ae(),ee(),f.useState(!1);const[I,C]=f.useState(null),[w,d]=f.useState(!1),r=async n=>{},g=async n=>{},D=()=>{l()},S=async(n,m)=>{var L,A,v,E,B,V;m(!0);const o=["Home.Header.Slider1.Title","Home.Header.Slider2.Title","Home.Header.Slider3.Title"],i=((L=n==null?void 0:n.key)==null?void 0:L.toString().trim())||"",c=o.some(N=>N.toLowerCase()===i.toLowerCase());let b;c?(console.log("Using banner image"),b=n.bannerFile?[n.bannerFile]:n.bannerImage?[{fileUrl:n.bannerImage}]:void 0):(console.log("Using icon image"),b=n.iconFile?[n.iconFile]:n.iconImage?[{fileUrl:n.iconImage}]:void 0),(A=n==null?void 0:n.screen)==null||A.value,(v=n.en)==null||v.name,(E=n.es)==null||E.name,(B=n.vi)==null||B.name,(V=n.zh)==null||V.name,n==null||n.redirectionUrl,n!=null&&n.redirectionUrl,(s?g:r)().then(N=>{N.success&&($.push(e.jsxs(H,{title:"Success",type:"success",duration:2500,children:["Translation ",s?"Updated":"Added"," Successfully"]}),{placement:"top-center"}),D(),a())}).catch(N=>{var q;m(!1);const U=(q=N.response)==null?void 0:q.data;$.push(e.jsx(H,{title:"Error",type:"danger",duration:2500,children:(U==null?void 0:U.message)||"Something went wrong"}),{placement:"top-center"})})},F=()=>{a()};return s&&w?e.jsx("div",{className:"p-6",children:"Loading Translation details..."}):e.jsx(X,{type:s?"edit":"new",initialData:I,onFormSubmit:S,onDiscard:F,isBannerNeeded:x,isIconNeeded:h,isRedirectionNeeded:y})};export{Qe as A,Pe as r,Ke as s,Me as t,Ge as u};
@@ -1 +0,0 @@
1
- import{j as s,l as _}from"./vendor-mui-69397583.js";import{A as k}from"./AdaptableCard-df7695d6.js";import{r as t,f as Q}from"./vendor-react-ece1c85f.js";import{b as M,c as W,a as Y}from"./vendor-redux-a1f00e6b.js";import{e as Z}from"./TimeLogService-cd7b2f61.js";import{dW as J,F as K,l as O,Z as I,B as x,Y as U,f as X}from"./index-c62ac197.js";import{D as ee}from"./tableV2-4d1c9fd2.js";import{D as te}from"./Drawer-949c18c6.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import{a as N}from"./index-c2088808.js";import"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./FileSaver.min-20f3f13a.js";import"./DensitySelector-a2c1c68f.js";import"./NoData-8c485a3a.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";async function ae(a){return(await J.apiV10AIAPILogGetAllAILogsPost(a)).data}const S="AiApiLogData",F=M(`${S}/getAiApiLoData`,async a=>{var c,i;const e=await ae({fromDate:(c=a==null?void 0:a.filterData)==null?void 0:c.fromDate,toDate:(i=a==null?void 0:a.filterData)==null?void 0:i.toDate});console.log("response",e);const r=e.data.$values.map(n=>({...n,fullName:`${n.firstName} ${n.lastName}`}));return console.log("resData",r),r}),R=M(S+"/getTimeLogDetails",async a=>(console.log("getTimeLogDetails"),(await Z(a.id)).data)),se={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},oe={loading:!1,deleteConfirmation:!1,selectedRowData:"",tableData:se,filterData:{fromDate:void 0,toDate:void 0},AiApiLogList:[],TimeLogList:[]},P=W({name:`${S}`,initialState:oe,reducers:{setTableData:(a,e)=>{a.tableData=e.payload},setFilterData:(a,e)=>{a.filterData=e.payload},toggleDeleteConfirmation:(a,e)=>{a.deleteConfirmation=e.payload},setSelectedRowData:(a,e)=>{a.selectedRowData=e.payload}},extraReducers:a=>{a.addCase(F.fulfilled,(e,r)=>{e.AiApiLogList=r.payload,e.tableData.total=r.payload.length,e.loading=!1}).addCase(F.pending,e=>{e.loading=!0}).addCase(R.fulfilled,(e,r)=>{e.TimeLogData=r.payload,e.loading=!1}).addCase(R.pending,e=>{e.loading=!0})}}),{setTableData:qe,setFilterData:T,toggleDeleteConfirmation:Ee,setSelectedRowData:$e}=P.actions,ie=P.reducer,le=Y({data:ie}),f=K,re=({onSaveClick:a,onCancel:e,onClearFilers:r})=>s.jsxs("div",{className:"text-right w-full",children:[s.jsx(x,{size:"sm",className:"mr-2",onClick:r,children:"Clear All"}),s.jsx(x,{size:"sm",className:"mr-2",onClick:e,children:"Cancel"}),s.jsx(x,{size:"sm",variant:"solid",onClick:a,children:"Query"})]}),ne=a=>{const e=O(),[r,c]=t.useState(!1),i=f(l=>l.AiApiLogData.data.filterData),[n,d]=t.useState(i==null?void 0:i.fromDate),[D,C]=t.useState(i==null?void 0:i.toDate);t.useState([]);const m=()=>{c(!1),a.onClose()},p=()=>{e(T({fromDate:"",toDate:""})),d(""),C("")},y=()=>{a.onClose(),c(!1),e(T({fromDate:n,toDate:D}))};return t.useEffect(()=>{a.isOpen&&c(!0)},[a.isOpen]),t.useEffect(()=>{var l,A;((l=i==null?void 0:i.toDate)==null?void 0:l.value)===""&&d(""),((A=i==null?void 0:i.toDate)==null?void 0:A.value)===""&&d("")},[i]),s.jsx(s.Fragment,{children:s.jsxs(te,{title:"Advanced Filter Selection Page",isOpen:r,portalClassName:"w30",footer:s.jsx(re,{onCancel:m,onSaveClick:y,onClearFilers:p}),onClose:m,onRequestClose:m,children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("div",{className:"lg:flex md:flex-none sm:flex-none mb-4",children:s.jsx("h5",{children:"From Date"})}),s.jsx(N,{field:"",placeholder:"Pick a From Date",onChange:l=>{console.log(l,"From Date"),d(l?I(l).format("yyyy-MM-DD"):void 0)},value:n})]}),s.jsxs("div",{className:"mb-5",children:[s.jsx("div",{className:"lg:flex md:flex-none sm:flex-none mb-4",children:s.jsx("h5",{children:"To Date"})}),s.jsx(N,{field:"",placeholder:"Pick a TO Date",onChange:l=>{console.log(l,"To Date"),C(l?I(l).format("yyyy-MM-DD"):void 0)},value:D})]})]})})},ce=[{key:"auto",name:"Immediately"},{key:"onClick",name:"On Button Click"}],de=[{key:"dragAndDrop",name:"Drag and drop"},{key:"select",name:"Select"}],me=["nextColumn","widget"];U("AiApiLogData",le);const He=()=>{const[a,e]=t.useState([]),[r,c]=t.useState(!1);t.useState(!1),t.useState(!1),t.useState(!1),t.useState(),t.useState();const[i,n]=t.useState(!0),[d,D]=t.useState(!0),[C,m]=t.useState(ce[0].key),p=t.useRef(null);t.useState(me[0]),t.useState(de[1].key),t.useState(!0),t.useState(!0),t.useState(!0),t.useState(!0);const[y,l]=t.useState(!1);Q();const A=()=>{l(!0)},z=()=>{l(!1)},q=O(),L=f(o=>{var u,g;return(g=(u=o==null?void 0:o.AiApiLogData)==null?void 0:u.data)==null?void 0:g.filterData}),b=f(o=>{var u,g;return(g=(u=o==null?void 0:o.AiApiLogData)==null?void 0:u.data)==null?void 0:g.loading}),E=f(o=>o.AiApiLogData.data.AiApiLogList);X();const{pageIndex:w,pageSize:j,sort:v,query:$,total:pe}=f(o=>o.AiApiLogData.data.tableData);t.useEffect(()=>{H()},[w,j,v,r,L]);const H=()=>{const o=F({pageIndex:w,pageSize:j,sort:v,filterData:L,query:$});q(o)},h=t.useCallback(()=>{var o;(o=p==null?void 0:p.current)==null||o.instance().clearFilter()},[]);t.useCallback(o=>{n(o.value),h()},[h]),t.useCallback(o=>{D(o.value),h()},[h]),t.useCallback(o=>{m(o.value)},[]);const[V,B]=t.useState({pageSize:"",pageIndex:""}),G=[{dataField:"fullName",caption:"Name",width:"200"},{dataField:"email",caption:"Email",width:"200"},{dataField:"type",caption:"Type",width:"200"},{dataField:"callFrom",caption:"Called From",width:"200"},{dataField:"openAIRequest",caption:"Open AIRequest",width:"30%",cssClass:"truncate-cell"},{dataField:"ipAddress",caption:"Ip Address",width:"150"},{dataField:"callDateAndTime",caption:"Created Date",width:"240",dataType:"datetime",format:"MM/dd/yyyy HH:mm:ss a"}];return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b",children:s.jsx("div",{className:"lg:flex items-center justify-between",children:s.jsx("h3",{className:"mb-4 lg:mb-0",children:"Azure AI Api Logs"})})}),b&&s.jsx(_,{sx:{backgroundColor:"rgba(0, 0, 0, 0.1)","& .MuiLinearProgress-bar":{backgroundColor:"var(--custom-600)"}}}),s.jsx(k,{className:"m-6 h-full py-4 px-6 bg-transparent",bodyClass:"h-full",children:s.jsx(k,{className:"p-4",children:s.jsx(ee,{columns:G,tableName:"AI-logs",data:E||[],height:"calc(100vh - 320px)",defaultHiddenColumn:[],fetchData:()=>{},id_label:"$id",selectedRowId:a,setSelectedRowId:e,isSelectionReq:!1,setFilterValues:()=>{},filterValues:[],identity:"Lead-Listing",setInLineFilters:()=>{},inLineFilter:[],inLineFilterMobileView:[],setInLineFiltersMobileView:()=>{},setColSorting:()=>{},ImpColumnName:"DocumentId",idName:"app-key-Listing-table",handleSearch:()=>{},isColumnResizing:!0,pager:V,setPager:B,isPaginationReq:!0,openFilter:A,isFilterReq:!0,isLoading:b})})}),s.jsx(ne,{isOpen:y,onClose:z})]})};export{He as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./vendor-mui-69397583.js";import{Y as A,l as D,O as S,Q as E,d as $,A as n,D as v,H as w}from"./index-c62ac197.js";import{r}from"./vendor-react-ece1c85f.js";import{u as l,C as M,M as I,r as O,h as P,t as m,c as R}from"./MessageInput-6dc83761.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./index-42e65911.js";import"./useDeviceCheck-920641a5.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./useControllableState-d0909575.js";import"./index-c2088808.js";import"./useDidUpdate-25c4d4ed.js";import"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import"./BrainServices-a4bb698e.js";import"./index-f6be0390.js";const d="/img/logo/";A("aiChat",O);const ia=g=>{const t=D(),c=l(s=>s.aiChat.data.error),h=l(s=>s.aiChat.data.isChatDialog);l(s=>s.aiChat.data);const[f,u]=r.useState("");r.useEffect(()=>{(async()=>{try{const e=await w.get("https://api.ipify.org?format=json");u(e.data.ip),console.log("response.data.ip",e.data.ip)}catch(e){console.error(e)}})()},[]);const C=()=>{t(P({file:"",fileName:"",fileType:""})),t(m(!0))},p=()=>{t(m(!1))};r.useEffect(()=>{c&&S.push(a.jsx(E,{title:"Error",type:"danger",duration:2500,children:"Something went wrong. Please try again later."}),{placement:"top-center"})},[c]);const x=s=>{t(R({message:s,ipAddress:f}))},{type:_="full",mode:o="light",className:j,imgClass:i,style:N,logoWidth:y="auto"}=g;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:$("aica",j),style:{...N,width:y},onClick:()=>C(),children:a.jsx("img",{className:i,src:`${d}aica.svg`,alt:`${n} logo`,style:{fill:`${o}`}})}),a.jsx(v,{isOpen:h,portalClassName:"aica-dialog",contentClassName:"h-auto p-0",closable:!1,onClose:p,onRequestClose:p,children:a.jsxs("div",{className:"p-4",children:[a.jsx("div",{className:"aica-m-logo",children:a.jsx("img",{style:{fill:`${o}`},className:i,src:`${d}aica.svg`,alt:`${n} logo`})}),a.jsx(M,{mode:o,imgClass:i}),a.jsx(I,{onSendMessage:x})]})})]})};export{ia as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-mui-69397583.js";import{r as x}from"./vendor-react-ece1c85f.js";import{bn as N,d as P,b5 as v,bo as A,b6 as E,aU as I,bp as R,bq as Y,br as S}from"./index-c62ac197.js";const m="warning",_={success:{backgroundColor:"bg-emerald-50 dark:bg-emerald-500",titleColor:"text-emerald-700 dark:text-emerald-50",textColor:"text-emerald-500 dark:text-emerald-50",iconColor:"text-emerald-400 dark:text-emerald-50",icon:e.jsx(I,{})},info:{backgroundColor:"bg-blue-50 dark:bg-blue-500",titleColor:"text-blue-700 dark:text-blue-100",textColor:"text-blue-500 dark:text-blue-100",iconColor:"text-blue-400 dark:text-blue-100",icon:e.jsx(R,{})},warning:{backgroundColor:"bg-yellow-50 dark:bg-yellow-500",titleColor:"text-yellow-700 dark:text-yellow-50",textColor:"text-yellow-500 dark:text-yellow-50",iconColor:"text-yellow-400 dark:text-yellow-50",icon:e.jsx(Y,{})},danger:{backgroundColor:"bg-red-50 dark:bg-red-500",titleColor:"text-red-700 dark:text-red-100",textColor:"text-red-500 dark:text-red-100",iconColor:"text-red-400 dark:text-red-100",icon:e.jsx(S,{})}},B=["success","danger","info","warning"],M=x.forwardRef((s,b)=>{const{children:C,className:g,closable:a=!1,customClose:y,customIcon:f,duration:n=3e3,title:o=null,onClose:r,rounded:k=!0,showIcon:i=!1,triggerByToast:p=!1,...w}=s,d=(()=>{const{type:t=m}=s;return B.includes(t)?t:m})(),l=_[d],[c,u]=x.useState("show"),{clear:h}=N(r,n,n>0),j=t=>{u("hiding"),r==null||r(t),h(),p||setTimeout(()=>{u("hide")},400)},T=()=>e.jsx("div",{className:"cursor-pointer",role:"presentation",onClick:t=>j(t),children:y||e.jsx(E,{defaultStyle:!1})}),D=P("alert","p-4 relative flex",l.backgroundColor,l.textColor,o?"":"font-semibold",a?"justify-between":"",a&&!o?"items-center":"",k&&"rounded-lg",g);return c==="hide"?null:e.jsxs(v.div,{ref:b,className:D,initial:{opacity:1},animate:c==="hiding"?"exit":"animate",transition:{duration:.25,type:"tween"},variants:{animate:{opacity:1},exit:{opacity:0}},...w,children:[e.jsxs("div",{className:`flex ${o?"":"items-center"}`,children:[i&&e.jsx(A,{iconColor:l.iconColor,custom:f,type:d}),e.jsxs("div",{className:i?"ltr:ml-2 rtl:mr-2":"",children:[o?e.jsx("div",{className:`font-semibold mb-1 ${l.titleColor}`,children:o}):null,C]})]}),a?T():null]})});M.displayName="Alert";export{M as A};
@@ -1 +0,0 @@
1
- import{bF as c}from"./index-c62ac197.js";const o={fetchData(r){return new Promise((t,a)=>{c(r).then(e=>{t(e)}).catch(e=>{a(e)})})}};export{o as A};
@@ -1,4 +0,0 @@
1
- import{j as e}from"./vendor-mui-69397583.js";import{r as y}from"./vendor-react-ece1c85f.js";import{L}from"./Logo-3f3c9ee6.js";import"./index-c62ac197.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";const x=({name:t,size:s=18,stroke:l=1.8})=>{const r={width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:l,strokeLinecap:"round",strokeLinejoin:"round"};switch(t){case"arrow":return e.jsx("svg",{...r,children:e.jsx("path",{d:"M5 12h14M13 6l6 6-6 6"})});case"play":return e.jsx("svg",{...r,children:e.jsx("polygon",{points:"5,3 19,12 5,21",fill:"currentColor",stroke:"none"})});case"code":return e.jsxs("svg",{...r,children:[e.jsx("polyline",{points:"16 18 22 12 16 6"}),e.jsx("polyline",{points:"8 6 2 12 8 18"})]});case"layers":return e.jsxs("svg",{...r,children:[e.jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),e.jsx("path",{d:"M2 17l10 5 10-5"}),e.jsx("path",{d:"M2 12l10 5 10-5"})]});case"grid":return e.jsxs("svg",{...r,children:[e.jsx("rect",{x:"3",y:"3",width:"7",height:"7"}),e.jsx("rect",{x:"14",y:"3",width:"7",height:"7"}),e.jsx("rect",{x:"3",y:"14",width:"7",height:"7"}),e.jsx("rect",{x:"14",y:"14",width:"7",height:"7"})]});case"sliders":return e.jsxs("svg",{...r,children:[e.jsx("line",{x1:"4",y1:"21",x2:"4",y2:"14"}),e.jsx("line",{x1:"4",y1:"10",x2:"4",y2:"3"}),e.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"3"}),e.jsx("line",{x1:"20",y1:"21",x2:"20",y2:"16"}),e.jsx("line",{x1:"20",y1:"12",x2:"20",y2:"3"}),e.jsx("line",{x1:"1",y1:"14",x2:"7",y2:"14"}),e.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),e.jsx("line",{x1:"17",y1:"16",x2:"23",y2:"16"})]});case"plug":return e.jsxs("svg",{...r,children:[e.jsx("path",{d:"M9 2v6"}),e.jsx("path",{d:"M15 2v6"}),e.jsx("path",{d:"M5 8h14v3a7 7 0 0 1-14 0z"}),e.jsx("path",{d:"M12 18v4"})]});case"rocket":return e.jsxs("svg",{...r,children:[e.jsx("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),e.jsx("path",{d:"M12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),e.jsx("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),e.jsx("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"})]});case"shield":return e.jsx("svg",{...r,children:e.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})});case"users":return e.jsxs("svg",{...r,children:[e.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"9",cy:"7",r:"4"}),e.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),e.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]});case"check":return e.jsx("svg",{...r,children:e.jsx("polyline",{points:"20 6 9 17 4 12"})});case"git":return e.jsxs("svg",{...r,children:[e.jsx("circle",{cx:"18",cy:"18",r:"3"}),e.jsx("circle",{cx:"6",cy:"6",r:"3"}),e.jsx("path",{d:"M6 21V9a9 9 0 0 0 9 9"})]});case"spark":return e.jsx("svg",{...r,children:e.jsx("path",{d:"M12 2l2.4 7.4H22l-6 4.4 2.3 7.2-6.3-4.6-6.3 4.6L8 13.8 2 9.4h7.6z"})});case"table":return e.jsxs("svg",{...r,children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),e.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),e.jsx("line",{x1:"3",y1:"15",x2:"21",y2:"15"}),e.jsx("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]});case"chart":return e.jsxs("svg",{...r,children:[e.jsx("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),e.jsx("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),e.jsx("line",{x1:"6",y1:"20",x2:"6",y2:"14"})]});case"form":return e.jsxs("svg",{...r,children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),e.jsx("path",{d:"M8 8h8M8 12h8M8 16h5"})]});case"kpi":return e.jsxs("svg",{...r,children:[e.jsx("path",{d:"M3 3v18h18"}),e.jsx("path",{d:"M7 14l4-4 4 4 5-5"})]});case"lock":return e.jsxs("svg",{...r,children:[e.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]});default:return null}},T=()=>e.jsxs("div",{className:"relative",style:{height:520},children:[e.jsxs("div",{className:"absolute inset-0 rounded-[18px] bg-white overflow-hidden border border-ca-slate-100",style:{boxShadow:"0 30px 80px rgba(20,20,20,0.12), 0 4px 12px rgba(20,20,20,0.06)"},children:[e.jsxs("div",{className:"flex items-center gap-1.5 h-9 px-3.5 border-b border-ca-slate-100",style:{background:"#F5F4F1"},children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#FC6058"}}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#FDBC40"}}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#34C949"}}),e.jsx("span",{className:"ml-3 text-[11px] text-ca-slate-500 font-ibm-mono bg-white px-3 py-1 rounded-full border border-ca-slate-100",children:"app.acme.com / fleet · operations"})]}),e.jsxs("div",{className:"p-6 grid grid-cols-2 gap-3.5",children:[e.jsxs("div",{className:"rounded-[12px] p-3.5 border border-black/[.04]",style:{background:"#FBF2EA"},children:[e.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.06em] text-ca-slate-500",children:"On-time rate"}),e.jsx("div",{className:"text-[28px] font-black text-ca-ink mt-1.5 leading-none tracking-[-0.02em]",children:"94.6%"}),e.jsx("div",{className:"text-[12px] font-bold mt-1",style:{color:"#16A34A"},children:"▲ 2.4 vs. last week"})]}),e.jsxs("div",{className:"rounded-[12px] p-3.5 border border-black/[.04]",style:{background:"#FBF2EA"},children:[e.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.06em] text-ca-slate-500",children:"Loads in transit"}),e.jsx("div",{className:"text-[28px] font-black text-ca-ink mt-1.5 leading-none tracking-[-0.02em]",children:"1,284"}),e.jsx("div",{className:"text-[12px] font-bold mt-1",style:{color:"#16A34A"},children:"▲ 118 since 9am"})]}),e.jsxs("div",{className:"col-span-2 bg-white border border-ca-slate-100 rounded-[12px] p-3.5",style:{height:200,display:"flex",flexDirection:"column"},children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("div",{className:"text-[12px] font-bold text-ca-ink",children:"Throughput · last 12 weeks"}),e.jsxs("div",{className:"flex gap-2.5 text-[10px] text-ca-slate-500",children:[e.jsxs("span",{children:[e.jsx("i",{className:"inline-block w-2 h-2 rounded-[2px] mr-1 align-middle",style:{background:"#F15A22"}}),"This year"]}),e.jsxs("span",{children:[e.jsx("i",{className:"inline-block w-2 h-2 rounded-[2px] mr-1 align-middle bg-ca-slate-200"}),"Last year"]})]})]}),e.jsxs("svg",{viewBox:"0 0 320 110",preserveAspectRatio:"none",style:{flex:1,width:"100%"},children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"hg",x1:"0",x2:"0",y1:"0",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:"#F15A22",stopOpacity:"0.32"}),e.jsx("stop",{offset:"1",stopColor:"#F15A22",stopOpacity:"0"})]})}),e.jsx("path",{d:"M0 78 L26 70 L52 75 L78 60 L104 65 L130 50 L156 55 L182 38 L208 42 L234 30 L260 22 L286 18 L320 10 L320 110 L0 110 Z",fill:"url(#hg)"}),e.jsx("path",{d:"M0 78 L26 70 L52 75 L78 60 L104 65 L130 50 L156 55 L182 38 L208 42 L234 30 L260 22 L286 18 L320 10",fill:"none",stroke:"#F15A22",strokeWidth:"2.4"}),e.jsx("path",{d:"M0 88 L26 86 L52 80 L78 84 L104 76 L130 78 L156 70 L182 72 L208 64 L234 66 L260 58 L286 60 L320 50",fill:"none",stroke:"#D9D9D9",strokeWidth:"1.6",strokeDasharray:"3 4"})]})]})]})]}),e.jsxs("div",{className:"absolute flex items-center gap-2.5 bg-white rounded-[12px] px-3.5 py-3 border border-ca-slate-100 text-[13px]",style:{bottom:24,left:-40,boxShadow:"0 20px 50px rgba(20,20,20,0.18)",animation:"pbFloatA 4s ease-in-out infinite"},children:[e.jsx("div",{className:"w-[30px] h-[30px] rounded-[8px] bg-ca-orange-500 text-white grid place-items-center flex-shrink-0",children:e.jsx(x,{name:"rocket",size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-ca-ink text-[12px]",children:"Deployed in 3.2s"}),e.jsx("div",{className:"text-[11px] text-ca-slate-500",children:"production · v0.41.2"})]})]}),e.jsxs("div",{className:"absolute flex items-center gap-2.5 bg-white rounded-[12px] px-3.5 py-3 border border-ca-slate-100 text-[13px]",style:{top:50,right:-30,boxShadow:"0 20px 50px rgba(20,20,20,0.18)",animation:"pbFloatB 5s ease-in-out infinite"},children:[e.jsx("div",{className:"w-[30px] h-[30px] rounded-[8px] grid place-items-center flex-shrink-0 text-white",style:{background:"#1B1B1B"},children:e.jsx(x,{name:"code",size:16})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-ca-ink text-[12px]",children:"~ 240 lines saved"}),e.jsx("div",{className:"text-[11px] text-ca-slate-500",children:"vs hand-rolled"})]})]})]}),R=({onCta:t})=>e.jsxs("section",{className:"relative pt-[90px] px-10 overflow-hidden",children:[e.jsx("div",{className:"absolute pointer-events-none",style:{top:-120,right:-160,width:540,height:540,background:"radial-gradient(circle, rgba(241,90,34,0.18), transparent 70%)"}}),e.jsxs("div",{className:"max-w-[1320px] mx-auto grid gap-16 items-center",style:{gridTemplateColumns:"1.05fr 1fr"},children:[e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2.5 text-[13px] font-bold text-ca-ink bg-white border border-ca-slate-100 rounded-full px-3.5 py-1.5 mb-7",children:[e.jsx("span",{className:"bg-ca-orange-500 text-white text-[11px] px-2.5 py-[3px] rounded-full uppercase tracking-[0.04em]",children:"v2.0 · Sonoma"}),"AI-assisted layout suggestions are live",e.jsx(x,{name:"arrow",size:12,stroke:2.4})]}),e.jsxs("h1",{className:"font-lato font-black text-ca-ink mb-7 leading-[0.98] tracking-[-0.035em]",style:{fontSize:76},children:["The framework devs use to ship"," ",e.jsx("em",{className:"not-italic",style:{background:"linear-gradient(120deg, #F15A22 0%, #F49A5C 100%)",WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent",display:"inline-block"},children:"internal apps in hours."})]}),e.jsx("p",{className:"text-[19px] leading-relaxed text-ca-slate-500 font-light max-w-[540px] mb-10",children:"xFramework is a low-code runtime for software teams. Drop in components, connect your data, theme it to your brand — and get a production app with auth, perms and audit baked in. No more “internal tool tax.”"}),e.jsxs("div",{className:"flex items-center gap-3.5 flex-wrap",children:[e.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2.5 font-lato font-bold text-[16px] px-7 py-4 rounded-full border-0 cursor-pointer text-white transition-all duration-200 active:scale-[0.98]",style:{background:"#1B1B1B"},children:["Start building free",e.jsx(x,{name:"arrow",size:16,stroke:2.4})]}),e.jsxs("a",{href:"#pb-tour",className:"inline-flex items-center gap-2.5 font-lato font-bold text-[16px] px-7 py-4 rounded-full border border-ca-slate-100 text-ca-ink no-underline hover:border-ca-ink transition-all duration-200",children:[e.jsx(x,{name:"play",size:14})," Take the tour"]})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-6 text-[13px] text-ca-slate-500",children:[e.jsxs("span",{children:[e.jsx("span",{className:"inline-grid place-items-center w-4 h-4 rounded-full mr-1 font-black text-[10px]",style:{background:"#DBF1E1",color:"#16A34A"},children:"✓"})," No credit card"]}),e.jsxs("span",{children:[e.jsx("span",{className:"inline-grid place-items-center w-4 h-4 rounded-full mr-1 font-black text-[10px]",style:{background:"#DBF1E1",color:"#16A34A"},children:"✓"})," SOC 2 Type II"]}),e.jsxs("span",{children:[e.jsx("span",{className:"inline-grid place-items-center w-4 h-4 rounded-full mr-1 font-black text-[10px]",style:{background:"#DBF1E1",color:"#16A34A"},children:"✓"})," Self-host or cloud"]})]})]}),e.jsx(T,{})]})]}),z=()=>e.jsx("section",{className:"mt-[110px] py-[30px] px-10 border-t border-b border-ca-slate-100",children:e.jsxs("div",{className:"max-w-[1320px] mx-auto flex items-center gap-[60px] flex-wrap",children:[e.jsx("div",{className:"text-[12px] font-bold uppercase tracking-[0.14em] text-ca-slate-500 flex-shrink-0",children:"Trusted by software teams at"}),e.jsx("div",{className:"flex-1 flex gap-[50px] flex-wrap items-center",children:["CARGOWAVE","Lumenly","Northstar.io","MHX Logistics","Foundry42","Hyperloop"].map(t=>e.jsx("span",{className:"font-lato font-black text-[19px] tracking-[-0.01em]",style:{color:"#999",opacity:.75},children:t},t))})]})}),C=[{icon:"code",title:"For developers",body:"Stop writing the same CRUD screen for the fourth time this quarter. Compose pages from typed components, override anything in code.",items:["TypeScript SDK + REST & GraphQL adapters","Drop into Next, Remix, or any React app","Custom components with full hot reload"]},{icon:"layers",title:"For software companies",body:"Turn your back-office tools into a product surface. White-label themes, multi-tenant orgs, audit logs — all in the box.",items:["Theme to your brand in < 5 minutes","RBAC, SSO (SAML, OIDC), SCIM provisioning","Per-customer subdomains & data scoping"]},{icon:"rocket",title:"For shipping fast",body:"Click build, configure, ship. Roles, permissions and audit are wired automatically — you never touch a migration just to add a column.",items:["One-click deploy to xFramework Cloud","Self-host with Docker or Helm in 10 minutes","Versioned releases with rollback"]}],F=()=>e.jsx("section",{className:"pt-[110px] px-10",id:"pb-why",children:e.jsxs("div",{className:"max-w-[1320px] mx-auto",children:[e.jsxs("div",{className:"grid gap-[60px] mb-[60px] items-end",style:{gridTemplateColumns:"1fr 1fr"},children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[12px] font-bold tracking-[0.14em] uppercase text-ca-orange-500 mb-5",children:"Why xFramework"}),e.jsx("h2",{className:"font-lato font-black text-ca-ink m-0 leading-[1.02] tracking-[-0.03em]",style:{fontSize:56},children:"Built for the people who get pinged on Slack at midnight."})]}),e.jsx("p",{className:"text-[18px] text-ca-slate-500 font-light leading-relaxed max-w-[480px] m-0",children:"A framework that respects your stack. Use it as a full app, embed it inside your product, or call it like a library — your call."})]}),e.jsx("div",{className:"grid grid-cols-3 gap-[18px]",children:C.map(t=>e.jsxs("article",{className:"bg-white border border-ca-slate-100 rounded-[18px] p-8 transition-all duration-200 hover:-translate-y-0.5",style:{"--tw-shadow":"0 12px 30px rgba(20,20,20,0.06)"},onMouseEnter:s=>{s.currentTarget.style.borderColor="#1B1B1B",s.currentTarget.style.boxShadow="0 12px 30px rgba(20,20,20,0.06)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="",s.currentTarget.style.boxShadow=""},children:[e.jsx("div",{className:"w-11 h-11 rounded-[10px] grid place-items-center text-ca-orange-500 mb-5",style:{background:"#FBF2EA"},children:e.jsx(x,{name:t.icon,size:22})}),e.jsx("h3",{className:"font-lato font-black text-[22px] text-ca-ink tracking-[-0.01em] mb-3 mt-0",children:t.title}),e.jsx("p",{className:"text-[15px] leading-relaxed text-ca-slate-500 font-light mb-4 mt-0",children:t.body}),e.jsx("ul",{className:"list-none p-0 m-0 flex flex-col gap-2",children:t.items.map(s=>e.jsxs("li",{className:"flex gap-2.5 text-[14px] text-ca-slate-700",children:[e.jsx("span",{className:"inline-grid place-items-center w-4 h-4 rounded-full bg-ca-orange-500 flex-shrink-0 mt-0.5 text-[9px] font-black text-white",children:"✓"}),s]},s))})]},t.title))})]})}),h="#F6F4F1",f="#FBF2EA",d="#E9E9E9",a="#1B1B1B",n="#646464",i="#F15A22",m="#16A34A",B=()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 0 14px",borderBottom:`1px solid ${d}`,marginBottom:18},children:[["Build","Templates","Recents"].map((t,s)=>e.jsx("span",{style:{fontSize:12,fontWeight:700,padding:"6px 12px",borderRadius:999,background:s===0?a:h,color:s===0?"#fff":n},children:t},t)),e.jsx("span",{style:{flex:1}}),e.jsx("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:11,fontWeight:700,background:f,color:i,padding:"4px 10px",borderRadius:999},children:"⌘B"})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:14},children:[e.jsxs("div",{style:{border:`1.5px solid ${i}`,borderRadius:14,padding:22,background:`linear-gradient(180deg, ${f}, #fff)`,position:"relative"},children:[e.jsx("div",{style:{position:"absolute",top:14,right:14,fontSize:10,fontWeight:700,background:i,color:"#fff",padding:"3px 10px",borderRadius:999},children:"Most used"}),e.jsx("div",{style:{width:40,height:40,borderRadius:10,background:i,color:"#fff",display:"grid",placeItems:"center",marginBottom:16},children:e.jsx(x,{name:"layers",size:20})}),e.jsx("h4",{style:{fontWeight:900,fontSize:18,margin:"0 0 6px",color:a},children:"Page"}),e.jsx("p",{style:{fontSize:13,color:n,margin:"0 0 14px",lineHeight:1.5},children:"A focused screen — table, form, detail or workflow."}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:["Driver list","Create order","Invoice detail"].map(t=>e.jsx("span",{style:{fontSize:10,padding:"3px 8px",borderRadius:999,background:h,color:"#333",fontWeight:700},children:t},t))})]}),e.jsxs("div",{style:{border:`1.5px solid ${d}`,borderRadius:14,padding:22,background:"#fff"},children:[e.jsx("div",{style:{width:40,height:40,borderRadius:10,background:a,color:i,display:"grid",placeItems:"center",marginBottom:16},children:e.jsx(x,{name:"grid",size:20})}),e.jsx("h4",{style:{fontWeight:900,fontSize:18,margin:"0 0 6px",color:a},children:"Dashboard"}),e.jsx("p",{style:{fontSize:13,color:n,margin:"0 0 14px",lineHeight:1.5},children:"Live grid of widgets that auto-refresh."}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:["Ops overview","Sales pipeline","Site health"].map(t=>e.jsx("span",{style:{fontSize:10,padding:"3px 8px",borderRadius:999,background:h,color:"#333",fontWeight:700},children:t},t))})]})]}),e.jsxs("div",{style:{marginTop:18,background:h,borderRadius:12,padding:"14px 16px"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},children:[e.jsx("span",{style:{fontSize:12,fontWeight:700,color:a},children:"Continue where you left off"}),e.jsx("span",{style:{fontSize:11,color:i,fontWeight:700},children:"View all →"})]}),[["kpi","Executive Overview","Analytics / Executive overview","2h ago"],["table","Driver Performance","Operations / Fleet","Yesterday"],["form","Ticket Intake Form","Support / Tickets","3d ago"]].map(([t,s,l,r])=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 0",borderTop:`1px solid ${d}`},children:[e.jsx("div",{style:{width:26,height:26,borderRadius:6,background:"#fff",display:"grid",placeItems:"center",color:i},children:e.jsx(x,{name:t,size:14})}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:12,fontWeight:700,color:a},children:s}),e.jsx("div",{style:{fontSize:10,color:n},children:l})]}),e.jsx("div",{style:{fontSize:10,color:n},children:r})]},s))]})]}),D=()=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"200px 1fr",height:"100%",gap:14},children:[e.jsx("div",{style:{background:h,borderRadius:12,padding:14,display:"flex",flexDirection:"column",gap:4},children:[{grp:"Data",items:[["table","Data Table",!0],["kpi","KPI Stats"],["form","Form"]]},{grp:"Visualize",items:[["chart","Graph"],["grid","Donut"]]},{grp:"Layout",items:[["layers","Header"]]}].map(({grp:t,items:s})=>e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,color:n,textTransform:"uppercase",letterSpacing:"0.08em",padding:"8px 10px 4px"},children:t}),s.map(([l,r,c])=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 10px",borderRadius:8,fontSize:12,color:c?a:"#333",fontWeight:c?700:500,background:c?"#fff":"transparent",boxShadow:c?"0 1px 2px rgba(0,0,0,0.04)":"none"},children:[e.jsx("div",{style:{width:22,height:22,borderRadius:5,background:c?i:"#fff",display:"grid",placeItems:"center",color:c?"#fff":i},children:e.jsx(x,{name:l,size:12})}),r]},r))]},t))}),e.jsxs("div",{style:{background:"#fff",border:`2px dashed ${d}`,borderRadius:12,padding:16,display:"flex",flexDirection:"column",gap:10},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("span",{style:{fontSize:13,fontWeight:900,color:a},children:"Driver Performance · canvas"}),e.jsx("span",{style:{fontSize:11,color:n,fontWeight:700},children:"auto-pack: ON"})]}),e.jsx("div",{style:{background:f,border:"1px solid rgba(241,90,34,0.2)",borderRadius:10,padding:14,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:10},children:[["On-time","94.6%","▲ 2.4"],["Avg idle","18m","▼ 6m"],["Routes","142","▲ 8"]].map(([t,s,l])=>e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:9,color:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:t}),e.jsx("div",{style:{fontSize:22,fontWeight:900,color:a,marginTop:2,lineHeight:1},children:s}),e.jsx("div",{style:{fontSize:10,color:m,fontWeight:700},children:l})]},t))}),e.jsxs("div",{style:{background:"#fff",border:`1px solid ${d}`,borderRadius:10,padding:12},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:a,marginBottom:8},children:"Driver list"}),["M. Reyes","T. Okafor","B. Andrade","S. Han"].map((t,s)=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 60px 60px 50px",alignItems:"center",fontSize:11,gap:8,padding:"5px 0",borderTop:s===0?"0":`1px solid ${d}`},children:[e.jsx("span",{style:{fontWeight:700,color:a},children:t}),e.jsxs("span",{style:{color:n},children:["R-0",s+1]}),e.jsx("span",{style:{color:s===2?"#E8A33A":m,fontWeight:700},children:s===2?"Idle":"On route"}),e.jsxs("span",{style:{textAlign:"right",fontWeight:700,color:a},children:[[98,95,82,99][s],"%"]})]},t))]}),e.jsx("div",{style:{border:`2px dashed ${i}`,background:f,color:i,fontWeight:700,textAlign:"center",padding:28,fontSize:13,borderRadius:10},children:"+ Drop 'Graph' here"})]})]}),A=()=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1.1fr 1fr",height:"100%",gap:14},children:[e.jsx("div",{style:{background:h,borderRadius:12,padding:18,overflow:"hidden"},children:[{label:"Widget title",type:"input",value:"Throughput · last 12 months"},{label:"Chart type",type:"seg",opts:["Bar","Line","Area","Stack"],active:"Bar"},{label:"Series",type:"chips",opts:["This year","Last year","Forecast","Target"],active:["This year","Last year"]},{label:"Refresh",type:"seg",opts:["Off","1m","5m","15m"],active:"5m"},{label:"Width",type:"seg",opts:["¼","½","Full"],active:"Full"}].map(t=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,marginBottom:14},children:[e.jsx("label",{style:{fontSize:11,fontWeight:700,color:n,textTransform:"uppercase",letterSpacing:"0.06em"},children:t.label}),t.type==="input"&&e.jsx("div",{style:{background:"#fff",border:`1px solid ${i}`,borderRadius:8,padding:"8px 12px",fontSize:13,color:a,fontWeight:500,display:"flex",alignItems:"center",boxShadow:"0 0 0 3px rgba(241,90,34,0.15)"},children:t.value}),t.type==="seg"&&e.jsx("div",{style:{display:"flex",background:"#fff",border:`1px solid ${d}`,borderRadius:8,padding:3},children:t.opts.map(s=>e.jsx("button",{style:{flex:1,fontSize:11,fontWeight:700,padding:"6px 8px",background:s===t.active?a:"transparent",border:0,borderRadius:6,color:s===t.active?"#fff":n,cursor:"pointer"},children:s},s))}),t.type==="chips"&&e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:t.opts.map(s=>{var l,r,c;return e.jsx("span",{style:{fontSize:11,fontWeight:700,padding:"4px 10px",borderRadius:999,background:(l=t.active)!=null&&l.includes(s)?i:"#fff",border:`1px solid ${(r=t.active)!=null&&r.includes(s)?i:d}`,color:(c=t.active)!=null&&c.includes(s)?"#fff":"#333"},children:s},s)})})]},t.label))}),e.jsxs("div",{style:{background:"#fff",border:`1px solid ${d}`,borderRadius:12,padding:16,display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{fontSize:10,fontWeight:700,color:n,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:12,display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{width:7,height:7,borderRadius:999,background:m,boxShadow:"0 0 0 4px rgba(22,163,74,0.18)",display:"inline-block"}}),"Live preview · real data"]}),e.jsxs("div",{style:{background:f,borderRadius:10,padding:14},children:[e.jsx("div",{style:{fontSize:13,fontWeight:900,color:a,marginBottom:8},children:"Throughput · last 12 months"}),e.jsx("svg",{viewBox:"0 0 280 100",style:{width:"100%",height:90},children:[36,44,30,52,48,60,55,68,62,74,80,88].map((t,s)=>e.jsx("rect",{x:s*22+6,y:100-t,width:"14",height:t,rx:"2",fill:s>9?i:a},s))})]}),e.jsxs("div",{style:{marginTop:12,display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[e.jsxs("div",{style:{background:h,borderRadius:8,padding:10},children:[e.jsx("div",{style:{fontSize:9,color:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:"Total YTD"}),e.jsx("div",{style:{fontSize:18,fontWeight:900,color:a,letterSpacing:"-0.02em"},children:"184,420"})]}),e.jsxs("div",{style:{background:h,borderRadius:8,padding:10},children:[e.jsx("div",{style:{fontSize:9,color:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:"vs LY"}),e.jsx("div",{style:{fontSize:18,fontWeight:900,color:m,letterSpacing:"-0.02em"},children:"+18.2%"})]})]})]})]}),W=()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[e.jsx("div",{style:{fontWeight:900,fontSize:16,color:a,marginBottom:6},children:"Connect a data source"}),e.jsx("div",{style:{fontSize:12,color:n,marginBottom:14},children:"9 native adapters. Schemas auto-introspect on connect."}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:10,marginBottom:16},children:[["#336791","Pg","Postgres",!0],["#00758F","My","MySQL"],["#13AA52","Mo","MongoDB",!0],["#29B5E8","SF","Snowflake"],["#E10098","GQ","GraphQL"],["#1B1B1B","RX","REST"],["#FF9900","S3","Amazon S3"],["#5C2D91","BQ","BigQuery"]].map(([t,s,l,r])=>e.jsxs("div",{style:{background:r?f:"#fff",border:`1.5px solid ${r?i:d}`,borderRadius:10,padding:"12px 10px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:6,position:"relative",fontSize:11,fontWeight:700,color:a},children:[r&&e.jsx("span",{style:{position:"absolute",top:6,right:8,width:14,height:14,borderRadius:999,background:m,color:"#fff",fontSize:9,fontWeight:900,display:"grid",placeItems:"center"},children:"✓"}),e.jsx("div",{style:{width:32,height:32,borderRadius:8,background:t,display:"grid",placeItems:"center",fontWeight:900,fontSize:14,color:"#fff"},children:s}),l]},l))}),e.jsxs("div",{style:{background:a,color:"#fff",borderRadius:10,padding:16,fontFamily:"IBM Plex Mono, monospace",fontSize:12,lineHeight:1.7,flex:1},children:[e.jsx("div",{children:e.jsx("span",{style:{color:"#6e7681"},children:"// driver_performance · Postgres"})}),e.jsxs("div",{children:[e.jsx("span",{style:{color:"#ff7b72"},children:"select"})," d.id, d.name,"]}),e.jsxs("div",{children:["  ",e.jsx("span",{style:{color:"#d2a8ff"},children:"avg"}),"(r.on_time)::",e.jsx("span",{style:{color:"#ff7b72"},children:"numeric"}),"(",e.jsx("span",{style:{color:"#79c0ff"},children:"5"}),",",e.jsx("span",{style:{color:"#79c0ff"},children:"2"}),") ",e.jsx("span",{style:{color:"#ff7b72"},children:"as"})," rate,"]}),e.jsxs("div",{children:["  ",e.jsx("span",{style:{color:"#d2a8ff"},children:"count"}),"(r.id) ",e.jsx("span",{style:{color:"#ff7b72"},children:"as"})," trips"]}),e.jsxs("div",{children:[e.jsx("span",{style:{color:"#ff7b72"},children:"from"})," drivers d"]}),e.jsxs("div",{children:[e.jsx("span",{style:{color:"#ff7b72"},children:"join"})," routes r ",e.jsx("span",{style:{color:"#ff7b72"},children:"on"})," r.driver_id = d.id"]}),e.jsxs("div",{children:[e.jsx("span",{style:{color:"#ff7b72"},children:"where"})," r.completed_at > ",e.jsx("span",{style:{color:"#a5d6ff"},children:"'2026-04-01'"})]}),e.jsxs("div",{children:[e.jsx("span",{style:{color:"#ff7b72"},children:"group by"})," ",e.jsx("span",{style:{color:"#79c0ff"},children:"1"}),", ",e.jsx("span",{style:{color:"#79c0ff"},children:"2"}),";"]})]})]}),M=()=>e.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",gap:12},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx("h4",{style:{fontWeight:900,fontSize:18,color:a,margin:0},children:"Operations · live"}),e.jsxs("span",{style:{fontSize:11,color:m,fontWeight:700,display:"flex",alignItems:"center",gap:6},children:[e.jsx("i",{style:{width:7,height:7,background:m,borderRadius:999,boxShadow:"0 0 0 4px rgba(22,163,74,0.2)",display:"inline-block"}}),"auto · 5m"]})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gridAutoRows:80,gap:10,flex:1},children:[[{l:"On-time",v:"94.6%",d:"▲ 2.4",accent:!0},{l:"In transit",v:"1,284",d:"▲ 118"},{l:"Avg idle",v:"18m",d:"▼ 6m"},{l:"Exceptions",v:"7",dark:!0}].map(t=>e.jsxs("div",{style:{background:t.dark?a:t.accent?f:"#fff",border:`1px solid ${t.dark?a:t.accent?"rgba(241,90,34,0.2)":d}`,borderRadius:10,padding:12,display:"flex",flexDirection:"column"},children:[e.jsx("div",{style:{fontSize:9,color:t.dark?"rgba(255,255,255,0.5)":n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:t.l}),e.jsx("div",{style:{fontSize:22,fontWeight:900,color:t.dark?"#fff":a,lineHeight:1,marginTop:4},children:t.v}),t.d&&e.jsx("div",{style:{fontSize:10,color:m,fontWeight:700,marginTop:2},children:t.d})]},t.l)),e.jsxs("div",{style:{gridColumn:"span 2",gridRow:"span 2",background:"#fff",border:`1px solid ${d}`,borderRadius:10,padding:12},children:[e.jsx("div",{style:{fontSize:9,color:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:"Throughput · 12m"}),e.jsx("svg",{viewBox:"0 0 200 90",style:{marginTop:6},children:[24,32,26,40,36,48,44,54,58,64,70,80].map((t,s)=>e.jsx("rect",{x:s*15+6,y:90-t,width:"9",height:t,rx:"1.5",fill:s>9?i:a},s))})]}),e.jsxs("div",{style:{gridColumn:"span 2",gridRow:"span 2",background:"#fff",border:`1px solid ${d}`,borderRadius:10,padding:12},children:[e.jsx("div",{style:{fontSize:9,color:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:"On-time trend"}),e.jsxs("svg",{viewBox:"0 0 200 90",style:{marginTop:6,width:"100%"},children:[e.jsx("path",{d:"M0 60 L20 50 L40 56 L60 42 L80 46 L100 32 L120 38 L140 22 L160 28 L180 18 L200 12",fill:"none",stroke:i,strokeWidth:"2.4"}),e.jsx("path",{d:"M0 60 L20 50 L40 56 L60 42 L80 46 L100 32 L120 38 L140 22 L160 28 L180 18 L200 12 L200 90 L0 90 Z",fill:i,fillOpacity:"0.12"})]})]})]})]}),I=()=>e.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",gap:14},children:[e.jsx("div",{style:{fontWeight:900,fontSize:18,color:a},children:"Publish · production"}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[{l:"Version",v:"v0.41.2 · just now",dark:!1},{l:"URL",v:"app.acme.com/fleet",dark:!0,code:!0},{l:"Build",v:"3.2s ✓",dark:!0},{l:"Auth",v:"SSO · Okta",dark:!1}].map(t=>e.jsxs("div",{style:{background:t.dark?a:h,borderRadius:12,padding:14},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:t.dark?"rgba(255,255,255,0.5)":n,marginBottom:8},children:t.l}),e.jsx("div",{style:{fontSize:14,fontWeight:700,color:t.dark?"#fff":a},children:t.code?e.jsx("code",{style:{background:"rgba(255,255,255,0.08)",padding:"2px 8px",borderRadius:4,fontFamily:"IBM Plex Mono, monospace",fontSize:11,color:"#ffd9b8"},children:t.v}):t.v})]},t.l))}),e.jsxs("div",{style:{background:"#fff",border:`1px solid ${d}`,borderRadius:12,padding:14,flex:1},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:n,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:6},children:"Roles & permissions"}),[{av:"BO",avBg:i,name:"Brian Olivier",role:"Workspace Admin · all apps",perm:"Admin",permStyle:{background:a,color:"#fff"}},{av:"SH",avBg:a,name:"Sara Han",role:"Operations team",perm:"Editor",permStyle:{background:f,color:i}},{av:"MR",avBg:"#646464",name:"Maria Reyes",role:"Dispatch (East)",perm:"Viewer",permStyle:{background:"#E6F4EC",color:m}}].map((t,s)=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 0",borderTop:s===0?"0":`1px solid ${d}`},children:[e.jsx("div",{style:{width:28,height:28,borderRadius:999,background:t.avBg,display:"grid",placeItems:"center",color:"#fff",fontSize:11,fontWeight:900},children:t.av}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:12,fontWeight:700,color:a},children:t.name}),e.jsx("div",{style:{fontSize:11,color:n},children:t.role})]}),e.jsx("div",{style:{fontSize:11,fontWeight:700,padding:"4px 10px",borderRadius:999,...t.permStyle},children:t.perm})]},t.name))]})]}),v=[{n:"01",title:"Start with Build, not a blank file.",body:"Every screen begins from one button. Pick a Page for a structured workflow — table, form, detail. Pick a Dashboard to monitor what's happening. Pick up where you left off from Recents.",tags:["Pages","Dashboards","Recents","Templates"],frame:B},{n:"02",title:"Drag in components, not bug tickets.",body:"13 first-class building blocks — data tables, forms, KPIs, graphs, donuts, alerts, file uploads, headers. Drag, drop, snap. Layouts auto-pack so you can't break the grid.",tags:["Data Table","Form","KPI","Graph","Donut","Alert"],frame:D},{n:"03",title:"Configure live, no preview-pane lies.",body:"Every component opens a configurator. Tweak titles, columns, breakpoints, filters, units. The preview re-renders against real data as you type — so what you see in dev is what ships.",tags:["Live preview","Real data","Validation","Conditional logic"],frame:A},{n:"04",title:"Connect anything that has a URL.",body:"Postgres, MySQL, Mongo, REST, GraphQL, Snowflake, S3 — point it, query it, cache it. Bring credentials from your secrets manager, or roll xFramework's vault.",tags:["Postgres","REST","GraphQL","Snowflake","S3"],frame:W},{n:"05",title:"Roll up to dashboards stakeholders won't ignore.",body:"Mix KPIs, charts, donuts, and tables on a true grid. Refresh intervals are per-widget. Filters cascade. Export PNG or PDF. Pin a dashboard to a TV in ops with one URL.",tags:["Auto-refresh","Drilldown","TV mode","Cascading filters"],frame:M},{n:"06",title:"Ship with auth, audit, and rollback for free.",body:"Publish puts your app on a real URL with versioning, role-based access, SSO, and a full audit log. Roll back to any prior version in one click. No infra ticket.",tags:["SSO / SAML","RBAC","Audit log","Versioning"],frame:I}],E=()=>{const[t,s]=y.useState(0),[l,r]=y.useState(0),c=y.useRef([]),k=y.useRef(null);y.useEffect(()=>{const p=()=>{const o=window.innerHeight;let g=0,w=1/0;if(c.current.forEach((u,b)=>{if(!u)return;const j=u.getBoundingClientRect(),S=Math.abs(j.top+j.height/2-o*.45);S<w&&(w=S,g=b)}),s(g),k.current){const u=k.current.getBoundingClientRect(),b=u.height-o,j=Math.min(Math.max(-u.top,0),b);r(b>0?j/b:0)}};return p(),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",p)}},[]);const N=p=>{const o=c.current[p];o&&window.scrollTo({top:o.getBoundingClientRect().top+window.scrollY-window.innerHeight*.35,behavior:"smooth"})};return e.jsx("section",{ref:k,className:"mt-[140px] px-6 rounded-t-[32px]",style:{background:a,color:"#fff"},id:"pb-tour",children:e.jsxs("div",{className:"max-w-[1320px] mx-auto pt-[100px]",children:[e.jsxs("div",{className:"grid gap-[60px] mb-[60px] items-end",style:{gridTemplateColumns:"1fr 1fr"},children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[12px] font-bold tracking-[0.14em] uppercase text-ca-orange-500 mb-[18px]",children:"The tour · 90 seconds"}),e.jsxs("h2",{className:"font-lato font-black leading-none tracking-[-0.03em] m-0 text-white",style:{fontSize:60},children:["Watch a developer ship an app, ",e.jsx("em",{className:"not-italic text-ca-orange-500",children:"scroll by scroll."})]})]}),e.jsx("p",{className:"text-[18px] font-light leading-relaxed m-0",style:{color:"rgba(255,255,255,0.65)"},children:"Six steps — same path you'll take the first time you sign in. Scroll through to see the framework think."})]}),e.jsxs("div",{className:"relative grid gap-[80px] pb-[100px]",style:{gridTemplateColumns:"1fr 1.25fr"},children:[e.jsx("div",{className:"absolute rounded-full",style:{left:-28,top:100,width:2,height:"calc(100% - 200px)",background:"rgba(255,255,255,0.08)"},children:e.jsx("i",{className:"block w-full rounded-full transition-all duration-200",style:{background:i,height:`${l*100}%`}})}),e.jsx("div",{className:"flex flex-col",children:v.map((p,o)=>e.jsxs("div",{ref:g=>{c.current[o]=g},className:"py-[60px] cursor-pointer transition-opacity duration-[400ms]",style:{borderTop:o===0?"0":"1px solid rgba(255,255,255,0.1)",opacity:t===o?1:.35},onClick:()=>N(o),children:[e.jsxs("div",{className:"font-ibm-mono text-[13px] text-ca-orange-500 tracking-[0.1em] mb-[18px] flex items-center gap-3",children:[e.jsx("span",{children:p.n}),e.jsx("span",{className:"h-px flex-1 relative max-w-[40px]",style:{background:"rgba(255,255,255,0.15)"},children:e.jsx("i",{className:"absolute left-0 top-0 h-full rounded-full transition-all duration-[600ms]",style:{background:i,width:t===o?"100%":"0%"}})}),e.jsxs("span",{style:{color:"rgba(255,255,255,0.4)"},children:[String(o+1).padStart(2,"0")," / ",String(v.length).padStart(2,"0")]})]}),e.jsx("h3",{className:"font-lato font-black leading-[1.05] tracking-[-0.02em] mb-5 mt-0 text-white",style:{fontSize:38},children:p.title}),e.jsx("p",{className:"text-[16px] leading-relaxed font-light mb-5 mt-0 max-w-[460px]",style:{color:"rgba(255,255,255,0.7)"},children:p.body}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:p.tags.map(g=>e.jsx("span",{className:"text-[12px] font-bold px-3 py-[5px] rounded-full whitespace-nowrap",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",color:"rgba(255,255,255,0.85)"},children:g},g))})]},o))}),e.jsx("div",{className:"relative",children:e.jsxs("div",{className:"sticky overflow-hidden",style:{top:100,height:580,background:"#fff",borderRadius:18,boxShadow:"0 30px 80px rgba(0,0,0,0.4)",color:a},children:[e.jsxs("div",{className:"flex items-center gap-1.5 h-[38px] px-3.5 border-b",style:{background:h,borderColor:d},children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#DDD"}}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#DDD"}}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#DDD"}}),e.jsxs("span",{className:"ml-3.5 font-ibm-mono text-[11px] bg-white px-3.5 py-1 rounded-full border flex items-center gap-1.5",style:{color:n,borderColor:d},children:[e.jsx("i",{className:"w-2.5 h-2.5 rounded-[2px] inline-block",style:{background:i}}),"xframework.app / step ",t+1," — ",v[t].n]})]}),e.jsx("div",{className:"relative overflow-hidden",style:{height:580-38},children:v.map((p,o)=>{const g=p.frame;return e.jsx("div",{className:"absolute inset-0 p-6 pointer-events-none transition-all duration-[400ms]",style:{opacity:t===o?1:0,transform:t===o?"translateY(0)":"translateY(16px)",pointerEvents:t===o?"auto":"none",overflow:"hidden"},children:e.jsx(g,{})},o)})})]})})]})]})})},P=[[["kw","import"],[" ","{ Page, DataTable, KPIRow } "],["kw","from"],[" ",""],["str",'"@xframework/react"'],[" ",";"]],[["kw","import"],[" ","{ db } "],["kw","from"],[" ",""],["str",'"@/lib/db"'],[" ",";"]],[],[["com","// Fleet performance — auto-wires auth, perms, audit"]],[["kw","export default function"],[" ",""],["fn","FleetPage"],[" ","() {"]],[[" "," "],["kw","return"],[" "," ("]],[[" "," <"],["tag","Page"],[" "," "],["att","title"],[" ","="],["str",'"Fleet"'],[" "," "],["att","role"],[" ","="],["str",'"ops.viewer"'],[" ",">"]],[[" "," <"],["tag","KPIRow"],[" "," "],["att","source"],[" ","="],["str",'"sql:fleet_kpis"'],[" "," />"]],[[" "," <"],["tag","DataTable"]],[[" "," "],["att","source"],[" ","="],["str",'"sql:driver_performance"']],[[" "," "],["att","columns"],[" ",'={["Driver", "Route", "Status", "On-time"]}']],[[" "," "],["att","refresh"],[" ","="],["str",'"5m"']],[[" "," />"]],[[" "," </"],["tag","Page"],[" ",">"]],[[" "," );"]],[[" ","}"]]],O={kw:"#ff7b72",str:"#a5d6ff",fn:"#d2a8ff",tag:"#7ee787",att:"#ffa657",com:"#6e7681"},H=()=>e.jsxs("div",{style:{background:"#0F0F0F",border:"1px solid rgba(255,255,255,0.08)",borderRadius:16,overflow:"hidden",fontFamily:"IBM Plex Mono, monospace",fontSize:13},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"12px 16px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.02)"},children:[e.jsx("span",{style:{width:10,height:10,borderRadius:999,background:"rgba(255,255,255,0.2)"}}),e.jsx("span",{style:{width:10,height:10,borderRadius:999,background:"rgba(255,255,255,0.2)"}}),e.jsx("span",{style:{width:10,height:10,borderRadius:999,background:"rgba(255,255,255,0.2)"}}),e.jsx("span",{style:{fontSize:11,color:"rgba(255,255,255,0.6)",marginLeft:8},children:"app/fleet/page.tsx"}),e.jsx("span",{style:{marginLeft:"auto",fontSize:11,color:"rgba(255,255,255,0.6)",padding:"4px 10px",border:"1px solid rgba(255,255,255,0.1)",borderRadius:6,cursor:"pointer"},children:"copy"})]}),e.jsx("pre",{style:{margin:0,padding:"20px 22px",lineHeight:1.75,color:"#C9D1D9",overflowX:"auto",whiteSpace:"pre"},children:e.jsx("code",{children:P.map((t,s)=>e.jsx("div",{style:{minHeight:"1em"},children:t.length===0?" ":t.map(([l,r],c)=>l===" "?e.jsx("span",{children:r},c):e.jsx("span",{style:{color:O[l]??"inherit"},children:r},c))},s))})})]}),$=[{icon:"git",title:"Code-first or no-code, your call",body:"Build in the visual editor and eject to TSX whenever you outgrow it. The artifacts are real React components — no proprietary AST."},{icon:"plug",title:"SDK + adapters in one install",body:e.jsx(e.Fragment,{children:"npm i @xframework/react ships the React SDK, CLI, and adapters for Postgres, REST, GraphQL and Snowflake."})},{icon:"shield",title:"Auth & perms at the prop level",body:'Gate any component or column with role="…". RBAC, SSO, audit log are wired automatically.'},{icon:"rocket",title:"Self-host or cloud",body:"Run xFramework Cloud, or pull the Docker image and put it behind your own load balancer. Same SDK, same APIs, same dashboard."}],G=()=>e.jsx("section",{style:{background:a,color:"#fff",padding:"100px 40px 110px",margin:"0 24px",borderRadius:"0 0 32px 32px"},id:"pb-developers",children:e.jsxs("div",{className:"max-w-[1320px] mx-auto",children:[e.jsxs("div",{className:"mb-[60px] max-w-[720px]",children:[e.jsx("div",{className:"text-[12px] font-bold tracking-[0.14em] uppercase text-ca-orange-500 mb-[18px]",children:"For developers"}),e.jsx("h2",{className:"font-lato font-black leading-[1.02] tracking-[-0.03em] m-0 text-white",style:{fontSize:56},children:"Drop xFramework into the codebase you already have."})]}),e.jsxs("div",{className:"grid gap-10",style:{gridTemplateColumns:"1.05fr 1fr"},children:[e.jsx(H,{}),e.jsx("div",{className:"flex flex-col gap-7",children:$.map(t=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-[38px] h-[38px] rounded-[10px] grid place-items-center flex-shrink-0 text-ca-orange-500",style:{background:"rgba(241,90,34,0.16)"},children:e.jsx(x,{name:t.icon,size:18})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-lato font-black text-[18px] text-white mb-1.5 mt-0",children:t.title}),e.jsx("p",{className:"text-[14px] leading-relaxed m-0",style:{color:"rgba(255,255,255,0.65)"},children:t.body})]})]},t.title))})]})]})}),V=[{num:"~4×",em:null,label:"Faster to ship",sub:"Median first-app time vs. building from scratch"},{num:"13",label:"Native components",sub:"Tables, forms, KPIs, charts and more — no NPM hunt"},{num:"9",label:"Data adapters",sub:"Postgres, MySQL, Mongo, Snowflake, REST, GraphQL…"},{num:"99.95%",label:"Cloud uptime",sub:"Last 12 months · multi-region failover"}],K=()=>e.jsx("section",{className:"py-[100px] px-10",children:e.jsx("div",{className:"max-w-[1320px] mx-auto grid grid-cols-4 border-t border-b border-ca-slate-100",style:{gap:0},children:V.map((t,s)=>e.jsxs("div",{className:"py-10 px-8",style:{borderRight:s<3?"1px solid #E9E9E9":"0"},children:[e.jsx("div",{className:"font-lato font-black leading-none tracking-[-0.03em] text-ca-ink flex items-baseline gap-1",style:{fontSize:56},children:t.num}),e.jsx("div",{className:"text-[14px] font-bold text-ca-ink mt-3.5",children:t.label}),e.jsx("div",{className:"text-[13px] font-light text-ca-slate-500 mt-1",children:t.sub})]},t.label))})}),Q=({onCta:t})=>e.jsxs("section",{className:"mx-6 mb-7 px-10 rounded-[32px] relative overflow-hidden",style:{background:f,padding:"90px 40px"},children:[e.jsx("div",{className:"absolute pointer-events-none",style:{right:-120,bottom:-120,width:380,height:380,background:"radial-gradient(circle, rgba(241,90,34,0.3), transparent 70%)"}}),e.jsxs("div",{className:"relative max-w-[1320px] mx-auto grid gap-[60px] items-center",style:{gridTemplateColumns:"1fr 1fr"},children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-lato font-black leading-none tracking-[-0.03em] text-ca-ink mb-6 mt-0",style:{fontSize:64},children:"Stop hand-rolling internal tools."}),e.jsx("p",{className:"text-[18px] text-ca-slate-500 font-light leading-relaxed mb-8 mt-0",children:"Spin up a free workspace, point it at your DB, and have a real app on a real URL before lunch. Your future self — and your roadmap — will thank you."}),e.jsxs("div",{className:"flex gap-3.5 flex-wrap",children:[e.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2.5 font-lato font-bold text-[16px] px-7 py-4 rounded-full border-0 cursor-pointer text-white bg-ca-orange-500 hover:bg-ca-orange-600 transition-all duration-200 active:scale-[0.98]",children:["Start building free ",e.jsx(x,{name:"arrow",size:16,stroke:2.4})]}),e.jsx("a",{href:"#pb-tour",className:"inline-flex items-center gap-2.5 font-lato font-bold text-[16px] px-7 py-4 rounded-full border border-ca-slate-100 text-ca-ink no-underline hover:border-ca-ink transition-all duration-200",children:"Re-watch the tour"})]})]}),e.jsx("div",{className:"flex flex-col gap-3.5 p-7 rounded-[18px]",style:{background:"rgba(255,255,255,0.6)",backdropFilter:"blur(8px)"},children:[{icon:"check",title:"Free forever",body:"for personal & OSS — 3 apps, unlimited views."},{icon:"lock",title:"SOC 2 Type II",body:"GDPR & HIPAA-ready. Self-host for air-gap."},{icon:"users",title:"Migration support",body:"from Retool, Appsmith & Tooljet on team plans."}].map(s=>e.jsxs("div",{className:"flex items-center gap-3 text-[14px]",children:[e.jsx("div",{className:"w-7 h-7 bg-ca-orange-500 text-white rounded-[8px] grid place-items-center flex-shrink-0",children:e.jsx(x,{name:s.icon,size:14})}),e.jsxs("div",{children:[e.jsx("b",{className:"text-ca-ink",children:s.title})," ",s.body]})]},s.title))})]})]}),Y=[{title:"Product",links:["Tour","Why xFramework","For developers","Pricing","Changelog"]},{title:"Developers",links:["Documentation","SDK reference","CLI","Templates","GitHub"]},{title:"Company",links:["About","Customers","Blog","Careers","Contact"]},{title:"Trust",links:["Security","SOC 2 / GDPR","Status","Terms","Privacy"]}],_=()=>e.jsxs("footer",{style:{background:a,color:"rgba(255,255,255,0.7)",padding:"60px 40px 32px"},children:[e.jsxs("div",{className:"max-w-[1320px] mx-auto",style:{display:"grid",gridTemplateColumns:"1.4fr 1fr 1fr 1fr 1fr",gap:40},children:[e.jsxs("div",{children:[e.jsx("div",{className:"mb-4",children:e.jsx(L,{type:"full",mode:"dark",logoWidth:140})}),e.jsx("p",{style:{fontSize:14,color:"rgba(255,255,255,0.6)",lineHeight:1.55,margin:0},children:"The internal-app framework for software teams. Build, theme, ship — without burning a sprint."})]}),Y.map(t=>e.jsxs("div",{children:[e.jsx("h5",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(255,255,255,0.5)",margin:"0 0 16px"},children:t.title}),t.links.map(s=>e.jsx("a",{href:"#",style:{display:"block",fontSize:14,color:"rgba(255,255,255,0.85)",textDecoration:"none",padding:"4px 0"},onMouseEnter:l=>l.currentTarget.style.color=i,onMouseLeave:l=>l.currentTarget.style.color="rgba(255,255,255,0.85)",children:s},s))]},t.title))]}),e.jsxs("div",{className:"max-w-[1320px] mx-auto mt-[50px] pt-6 flex justify-between items-center",style:{borderTop:"1px solid rgba(255,255,255,0.1)",fontSize:13,color:"rgba(255,255,255,0.5)"},children:[e.jsx("span",{children:"© 2026 xFramework, Inc."}),e.jsx("span",{children:"Made for the people who get pinged at midnight."})]})]}),U=()=>e.jsx("style",{children:`
2
- @keyframes pbFloatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
3
- @keyframes pbFloatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
4
- `}),le=()=>{const t=()=>{window.location.href="/build/build-grids"};return e.jsxs("div",{className:"font-lato font-light text-ca-slate-700 bg-white overflow-x-hidden",children:[e.jsx(U,{}),e.jsx(R,{onCta:t}),e.jsx(z,{}),e.jsx(F,{}),e.jsx(E,{}),e.jsx(G,{}),e.jsx(K,{}),e.jsx(Q,{onCta:t}),e.jsx(_,{})]})};export{le as default};
@@ -1 +0,0 @@
1
- import{s as F,j as t,I as P}from"./vendor-mui-69397583.js";import{A as k}from"./AdaptableCard-df7695d6.js";import{r as c}from"./vendor-react-ece1c85f.js";import{b as O,c as U,a as V}from"./vendor-redux-a1f00e6b.js";import{i as B}from"./AccountServices-62599aae.js";import{F as Q,Y,l as G,W as H,I as W,dp as Z,dq as J,Z as N}from"./index-c62ac197.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import{c as K}from"./index-c2088808.js";import"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import{I as X}from"./index.es-d5c880b3.js";import{_ as ee}from"./lodash-306e3f66.js";import{g as te,r as ae}from"./index-6589dd2d.js";import{r as se}from"./createSvgIcon-c5fc0d04.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";import"./UserService-047aef51.js";const I="LogsData",re={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},ie={loading:!1,deleteConfirmation:!1,selectedRowData:"",tableData:re,filterData:{dateRange:[null,null],activityType:""},AuditLog:[]},b=O(`${I}/getAuditLogs`,async({page:l=1,pageSize:a=10,sortOrder:o,user:u,startDate:f,endDate:m,searchParam:p})=>{var g,d,j;let h={pageNumber:l,pageSize:a,sortBy:"operationDateTime",isAscending:o!=="newest"},n={};u&&(n={...n,userId:u}),p&&(n={...n,searchParam:p}),console.log(u),m&&(n={...n,startDate:f,endDate:m});const x=await B(h,n);return{data:((d=(g=x.data)==null?void 0:g.result)==null?void 0:d.$values)??[],page:l,totalCount:((j=x.data)==null?void 0:j.totalCount)??0}}),M=U({name:`${I}`,initialState:ie,reducers:{setTableData:(l,a)=>{l.tableData=a.payload},toggleDeleteConfirmation:(l,a)=>{l.deleteConfirmation=a.payload},setSelectedRowData:(l,a)=>{l.selectedRowData=a.payload},setFilterData:(l,a)=>{l.filterData=a.payload}},extraReducers:l=>{l.addCase(b.pending,a=>{a.loading=!0}).addCase(b.fulfilled,(a,o)=>{a.loading=!1,o.payload.page===1?a.AuditLog=o.payload.data:a.AuditLog=[...a.AuditLog,...o.payload.data]}).addCase(b.rejected,(a,o)=>{a.loading=!1})}});M.actions;const le=M.reducer,oe=V({data:le}),v=Q;var A={},ne=F;Object.defineProperty(A,"__esModule",{value:!0});var $=A.default=void 0,ce=ne(se()),de=t;$=A.default=(0,ce.default)((0,de.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");Y("users",ae);Y("LogsData",oe);const Re=()=>{const l=G(),a=v(e=>{var s,i;return((i=(s=e.LogsData)==null?void 0:s.data)==null?void 0:i.AuditLog)||[]});v(e=>{var s,i;return(i=(s=e.LogsData)==null?void 0:s.data)==null?void 0:i.loading}),v(e=>{var s,i;return(i=(s=e.LogsData)==null?void 0:s.data)==null?void 0:i.filterData});const[o,u]=c.useState(null),[f,m]=c.useState(""),[p,h]=c.useState(""),[n,x]=c.useState("newest"),[g,d]=c.useState(!0),[j,D]=c.useState(1),[r,y]=c.useState([new Date,new Date]),T=v(e=>{var s,i,C;return((C=(i=(s=e==null?void 0:e.users)==null?void 0:s.data)==null?void 0:i.usersList)==null?void 0:C.map(L=>({value:L.id,label:`${L.firstName} ${L.lastName}`})))||[]}),S=e=>{l(b({page:e,pageSize:10,searchParam:f,sortOrder:n,user:(o==null?void 0:o.value)??null,startDate:r!=null&&r[0]?N(r==null?void 0:r[0]).format("YYYY-MM-DD"):null,endDate:r!=null&&r[1]?N(r==null?void 0:r[1]).format("YYYY-MM-DD"):null})).then(s=>{var i;((i=s==null?void 0:s.payload)==null?void 0:i.totalCount)<=a.length&&d(!1)})};c.useEffect(()=>{const e=te({isActive:!0});l(e)},[]),c.useEffect(()=>{D(1),d(!0),S(1)},[o,f,n,r]);const E=()=>{const e=j+1;D(e),S(e)},_=()=>{D(1),d(!0),S(1)},w=c.useCallback(ee.debounce(e=>{m(e)},1e3),[]);c.useEffect(()=>()=>{w.cancel()},[w]);const R=e=>{const s=e.target.value;h(s),w(s)},q=e=>{e.length===1?y([e[0],e[0]]):y(e)},z=()=>{(r.length===1||!r[1])&&y([r[0],r[0]])};return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b",children:t.jsx("div",{className:"lg:flex items-center justify-between",children:t.jsx("h3",{className:"mb-4 lg:mb-0",children:"Activity Logs"})})}),t.jsx(k,{className:"m-4 p-4",children:t.jsxs("div",{className:"audit-logs-container dark:bg-[#292f3c]",children:[t.jsxs("div",{className:"grid lg:grid-cols-4 gap-3 mb-5 pl-4 dark:bg-[#292f3c]",children:[t.jsx("div",{children:t.jsx(K,{singleDate:!0,value:r,clearable:!1,onClose:z,onChange:q})}),t.jsx("div",{children:t.jsx(H,{value:o,placeholder:"Select User",isClearable:!0,onChange:e=>{u(e)},options:T})}),t.jsx("div",{children:t.jsx(W,{placeholder:"Search logs...",value:p,onChange:R,suffix:t.jsx("span",{style:{visibility:p?"visible":"hidden",cursor:"pointer"},className:"cursor-pointer text-gray-500 hover:text-gray-700",onClick:()=>{h(""),m("")},children:"×"})})}),t.jsxs("div",{className:"logs-header w-full",children:[t.jsx("div",{className:"md:col-span-1 col-span-12 flex items-center justify-end",children:t.jsx("span",{className:"cursor-pointer text-gray-600 hover:text-gray-900 text-xl",onClick:()=>x(n==="newest"?"oldest":"newest"),children:n==="newest"?t.jsx(Z,{}):t.jsx(J,{})})}),t.jsx("div",{children:t.jsx(P,{onClick:_,children:t.jsx($,{sx:{fontSize:20}})})})]})]}),t.jsx(k,{children:t.jsx("div",{className:"logs-list",id:"scrollableDiv",children:t.jsx(X,{loader:t.jsx("p",{className:"text-center",children:"...loading"}),dataLength:a==null?void 0:a.length,next:E,hasMore:g,endMessage:t.jsx("p",{style:{textAlign:"center"},children:t.jsxs("b",{children:[(a==null?void 0:a.length)>0?"You have seen it all!":"No Logs data available"," "]})}),scrollableTarget:"scrollableDiv",children:a==null?void 0:a.map((e,s)=>{var i;return t.jsx("div",{className:"log-entry flex flex-col sm:flex-row sm:items-center sm:gap-4 p-3 border-b border-gray-200 dark:bg-[#292f3c] dark:text-white",children:t.jsxs("div",{className:"flex w-full sm:flex-row flex-row items-start sm:items-center",children:[t.jsx("div",{className:"w-1/5 sm:w-10 sm:h-10 h-full flex items-center justify-center",children:t.jsx("div",{className:"avatar w-10 h-10 rounded-full bg-orange-500 text-white flex items-center justify-center font-bold text-lg shrink-0 dark:bg-orange-500 dark:text-white",children:((i=e==null?void 0:e.userName)==null?void 0:i[0])??""})}),t.jsxs("div",{className:"w-4/5 sm:w-auto flex flex-col sm:flex-row sm:items-center sm:gap-2 dark:bg-[#292f3c]",children:[t.jsx("strong",{className:"text-gray-600 dark:text-white",children:e==null?void 0:e.userName}),t.jsx("p",{className:"sm:ml-2 dark:bg-[#292f3c] dark:text-white",children:(e==null?void 0:e.operation)==="LogIn"?`Logged into the ${e.source} portal using ${e.ssoType} sign-in at`:`Logged out from the ${e.source} portal at`}),t.jsx("strong",{className:"sm:ml-2 text-gray-600 whitespace-nowrap dark:text-white",children:e!=null&&e.operationDateTime?N.utc(e==null?void 0:e.operationDateTime).local().format("MM-DD-YYYY h:mm a"):""})]})]})},s)})})})})]})})]})};export{Re as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./vendor-mui-69397583.js";import{f as c,r as i}from"./vendor-react-ece1c85f.js";import{u as m,E as l,O as o,Q as s}from"./index-c62ac197.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";const I=()=>{const a=c(),{signInExternal:n}=m(),[p,t]=i.useState(!1),e=new URLSearchParams(window.location.search).get("code");return i.useEffect(()=>{(async()=>{if(e){t(!0);try{await n(4,e),t(!1)}catch{o.push(r.jsx(s,{title:"Login Failed",type:"danger",duration:3e3,children:"There was an issue signing in. Please try again."}),{placement:"top-center"}),a("/sign-in"),t(!1)}}else o.push(r.jsx(s,{title:"Error",type:"danger",duration:2500,children:"No authorization code provided."}),{placement:"top-center"}),a("/sign-in"),t(!1)})()},[e]),r.jsx("div",{children:r.jsx(l,{loading:p})})};export{I as default};