@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.
- package/dist/ui/assets/AIVision-0025192f.js +4 -0
- package/dist/ui/assets/AccountDetails-42610e44.js +1 -0
- package/dist/ui/assets/AccountDetails-5b4cd3f7.js +1 -0
- package/dist/ui/assets/AccountServices-f68f471d.js +1 -0
- package/dist/ui/assets/AccountsList-262479cf.js +1 -0
- package/dist/ui/assets/ActionLink-9db8b1c2.js +1 -0
- package/dist/ui/assets/AdaptableCard-3d1e1f96.js +1 -0
- package/dist/ui/assets/AddAccount-2cd72664.js +1 -0
- package/dist/ui/assets/AddEditFile-6ae10d57.js +1 -0
- package/dist/ui/assets/AddEditTranslation-3812ff0f.js +1 -0
- package/dist/ui/assets/AiApiLogList-1eac39b7.js +1 -0
- package/dist/ui/assets/AiCa-2e90495f.js +1 -0
- package/dist/ui/assets/Alert-59d09a99.js +1 -0
- package/dist/ui/assets/ApiService-df126758.js +1 -0
- package/dist/ui/assets/AppLandingPage-afcea727.js +4 -0
- package/dist/ui/assets/AuditLogsList-ea37686b.js +1 -0
- package/dist/ui/assets/Auth0Callback-00729568.js +1 -0
- package/dist/ui/assets/BarCodes-4ff49536.js +1 -0
- package/dist/ui/assets/BlankLayout-7085ab88.js +1 -0
- package/dist/ui/assets/{BrainServices-a4bb698e.js → BrainServices-4cb93af5.js} +1 -1
- package/dist/ui/assets/CalendarList-689ed66a.js +2 -0
- package/dist/ui/assets/CalendarList-f4a9aa21.css +8 -0
- package/dist/ui/assets/CategoryList-a6d01041.js +1 -0
- package/dist/ui/assets/CategoryList-c03f4259.js +1 -0
- package/dist/ui/assets/ChatContainer-fec7b84d.js +1 -0
- package/dist/ui/assets/ChatsList-4b3194e4.js +1 -0
- package/dist/ui/assets/Check-af681a30.js +1 -0
- package/dist/ui/assets/CheckInVideo-aa9f50b2.js +6 -0
- package/dist/ui/assets/ClassicLayout-a9866742.js +2 -0
- package/dist/ui/assets/CompanyList-94119d71.js +1 -0
- package/dist/ui/assets/{CompanyService-1bf7c3c8.js → CompanyService-491a9cc1.js} +1 -1
- package/dist/ui/assets/{Component-59e4c14b.js → Component-566d01e0.js} +1 -1
- package/dist/ui/assets/ConfirmDialog-2838a642.js +1 -0
- package/dist/ui/assets/ContactDetails-c9dc0ed1.js +1 -0
- package/dist/ui/assets/{ContactService-92281a90.js → ContactService-8afcaeb7.js} +1 -1
- package/dist/ui/assets/ContactsList-5b06c9b8.js +1 -0
- package/dist/ui/assets/CountiesList-18b23cf7.js +1 -0
- package/dist/ui/assets/CountyDetails-ea024f14.js +1 -0
- package/dist/ui/assets/CourseDetails-8a5f8d63.js +1 -0
- package/dist/ui/assets/CourseList-3564fec3.js +1 -0
- package/dist/ui/assets/{CourseService-f0dc3bf1.js → CourseService-29ad460c.js} +1 -1
- package/dist/ui/assets/CreateSignature-c22e4a71.js +7 -0
- package/dist/ui/assets/{CustomerInfoField-fff65ace.js → CustomerInfoField-4bf880e2.js} +1 -1
- package/dist/ui/assets/DeckedLayout-610fe851.js +1 -0
- package/dist/ui/assets/DensitySelector-5d2e901f.js +1 -0
- package/dist/ui/assets/{DepartmentServices-3d56a9e7.js → DepartmentServices-a53e998b.js} +1 -1
- package/dist/ui/assets/{DigitalSignature-fff42e33.js → DigitalSignature-69eaf80c.js} +1 -1
- package/dist/ui/assets/{DocumemtManagementService-6501a5c1.js → DocumemtManagementService-85cde51a.js} +1 -1
- package/dist/ui/assets/DocumentActivity-bc938c61.js +1 -0
- package/dist/ui/assets/DocumentLayout-a12982d7.js +1 -0
- package/dist/ui/assets/DocumentList2-9c8c6284.js +23 -0
- package/dist/ui/assets/DocumentLists-1cdaae06.js +1 -0
- package/dist/ui/assets/DocumentUserSigned-f7371fc5.js +7 -0
- package/dist/ui/assets/DocumentsList-3b25907c.js +1 -0
- package/dist/ui/assets/DoubleSidedImage-b4bd3915.js +1 -0
- package/dist/ui/assets/{Drawer-949c18c6.js → Drawer-4f97e662.js} +1 -1
- package/dist/ui/assets/DynamicDashboard-0a41d287.js +1 -0
- package/dist/ui/assets/{DynamicTablesService-963fe77b.js → DynamicTablesService-6aa57f52.js} +1 -1
- package/dist/ui/assets/EditAccount-e42d66af.js +1 -0
- package/dist/ui/assets/EditLead-c8c9760a.js +1 -0
- package/dist/ui/assets/FaqItems-25d66543.js +6 -0
- package/dist/ui/assets/{FileManagementServices-25fd64c5.js → FileManagementServices-19b47568.js} +1 -1
- package/dist/ui/assets/{FolderOpen-88bfcc74.js → FolderOpen-7b0e2ac0.js} +1 -1
- package/dist/ui/assets/FormContainer-9a52b9e8.js +1 -0
- package/dist/ui/assets/{GeneralSettings-a7f805e8.js → GeneralSettings-c8c2f051.js} +5 -5
- package/dist/ui/assets/GenericPage-81e41302.js +1 -0
- package/dist/ui/assets/GridMapDetails-38f50b3c.js +1 -0
- package/dist/ui/assets/HorizontalMenuContent-fd559f4d.js +1 -0
- package/dist/ui/assets/{ImportFile-3f60d715.js → ImportFile-026b1771.js} +1 -1
- package/dist/ui/assets/{InlineSignaturePad-09c06619.js → InlineSignaturePad-f5630151.js} +1 -1
- package/dist/ui/assets/InvoicesList-9723bc5a.js +1 -0
- package/dist/ui/assets/{KeyVaultService-874d83fe.js → KeyVaultService-9608f0ff.js} +1 -1
- package/dist/ui/assets/LeadDetails-8cdaae0e.js +1 -0
- package/dist/ui/assets/{LeadSourceService-e46fa85e.js → LeadSourceService-cf71ea64.js} +1 -1
- package/dist/ui/assets/LeadsList-1ec20a77.js +1 -0
- package/dist/ui/assets/Logo-dd6f7656.js +1 -0
- package/dist/ui/assets/MapView-dcab88b3.js +1 -0
- package/dist/ui/assets/MarketingPage-998d10b0.js +4 -0
- package/dist/ui/assets/MenuNew-79fc95f3.js +1 -0
- package/dist/ui/assets/{MenuTable-c2c65021.js → MenuTable-f69e0fe4.js} +1 -1
- package/dist/ui/assets/MessageInput-07fcc5cb.js +21 -0
- package/dist/ui/assets/MessagesList-21d2b034.js +1 -0
- package/dist/ui/assets/ModernLayout-05af7cf7.js +1 -0
- package/dist/ui/assets/{NoData-8c485a3a.js → NoData-4cc4af03.js} +1 -1
- package/dist/ui/assets/Notify-8fb74d48.js +1 -0
- package/dist/ui/assets/OpportunitiesList-2f96958f.js +1 -0
- package/dist/ui/assets/OpportunityDetails-aaec3200.js +1 -0
- package/dist/ui/assets/{OpportunityServices-fa4fabfd.js → OpportunityServices-c4510dd2.js} +1 -1
- package/dist/ui/assets/OpportunityStatus-ea3b5ee2.js +1 -0
- package/dist/ui/assets/PageBreadcrumb-cf54a6e9.js +1 -0
- package/dist/ui/assets/{Password-d9294711.js → Password-21414dc6.js} +1 -1
- package/dist/ui/assets/PasswordInput-333c82ca.js +1 -0
- package/dist/ui/assets/{PreferenceService-75bf9db6.js → PreferenceService-d2b3e003.js} +1 -1
- package/dist/ui/assets/Profile-8c9fd2fc.js +1 -0
- package/dist/ui/assets/{ReportEditor-8880f57e.js → ReportEditor-4e4f6d53.js} +3 -3
- package/dist/ui/assets/{ReportViewer-9f1080f7.js → ReportViewer-616d3cfc.js} +30 -30
- package/dist/ui/assets/RoleEdit-a076ea85.js +1 -0
- package/dist/ui/assets/RoleForm-47691f91.js +1 -0
- package/dist/ui/assets/{RoleNew-49fadb16.js → RoleNew-e86a1513.js} +1 -1
- package/dist/ui/assets/{RoleService-7008da2c.js → RoleService-2f9ed883.js} +1 -1
- package/dist/ui/assets/ScheduleCycle-0ae23631.js +1 -0
- package/dist/ui/assets/{ScheduleService-7228f0a3.js → ScheduleService-41a88c41.js} +1 -1
- package/dist/ui/assets/ScreenList-8f58150b.js +1 -0
- package/dist/ui/assets/Settings-fc91c9d2.js +2 -0
- package/dist/ui/assets/{SetupWizard-4172e377.js → SetupWizard-d1363582.js} +1 -1
- package/dist/ui/assets/SimpleLayout-77cfb778.js +1 -0
- package/dist/ui/assets/StackedSideLayout-2f1ee9d1.js +1 -0
- package/dist/ui/assets/StickyFooter-3e569b80.js +1 -0
- package/dist/ui/assets/SupportRequets-0ecd4ab8.js +1 -0
- package/dist/ui/assets/{Switcher-c8648037.js → Switcher-e2fba588.js} +1 -1
- package/dist/ui/assets/TimeLogApprovalDataList-7b49a432.js +1 -0
- package/dist/ui/assets/TimeLogApprovalList-78cab2b6.js +1 -0
- package/dist/ui/assets/TimeLogList-592b29aa.js +1 -0
- package/dist/ui/assets/{TimeLogService-cd7b2f61.js → TimeLogService-83166cbc.js} +1 -1
- package/dist/ui/assets/TimesheetsList-d1520efb.js +1 -0
- package/dist/ui/assets/TranslationList-88d7d5d7.js +1 -0
- package/dist/ui/assets/TweaksPanel-bc10bc47.js +112 -0
- package/dist/ui/assets/{Upload-fb34ce03.js → Upload-be937eb6.js} +4 -4
- package/dist/ui/assets/UserEdit-1f8208f3.js +1 -0
- package/dist/ui/assets/UserForm-e9b56aff.js +1 -0
- package/dist/ui/assets/{UserNew-b36c342c.js → UserNew-31fa258f.js} +1 -1
- package/dist/ui/assets/{UserService-047aef51.js → UserService-1b93ceb0.js} +1 -1
- package/dist/ui/assets/ViewTimeLogForApproval-ae077050.js +1 -0
- package/dist/ui/assets/Views-1359da48.js +1 -0
- package/dist/ui/assets/WelcomeList-dc8666ec.js +9 -0
- package/dist/ui/assets/WidgetLayoutsService-49730609.js +1 -0
- package/dist/ui/assets/{WrapperCell-a7981b07.js → WrapperCell-3d5592cf.js} +1 -1
- package/dist/ui/assets/actioncell-6b5ebd6c.js +1 -0
- package/dist/ui/assets/{ar-3c9c213e.js → ar-fb4f0ea8.js} +1 -1
- package/dist/ui/assets/calendarList-ac838a86.js +2 -0
- package/dist/ui/assets/{cjs-162261df.js → cjs-998de55c.js} +1 -1
- package/dist/ui/assets/createSvgIcon-aba65987.js +1 -0
- package/dist/ui/assets/documentsList-4e2e061e.js +1 -0
- package/dist/ui/assets/{es-be649ede.js → es-cd58d3ad.js} +1 -1
- package/dist/ui/assets/{esm-f306d015.js → esm-c40433f8.js} +1 -1
- package/dist/ui/assets/gridList-e1571c87.js +1 -0
- package/dist/ui/assets/gridMapTable-d95f9c70.js +1 -0
- package/dist/ui/assets/{index-f6be0390.js → index-00a8eb64.js} +1 -1
- package/dist/ui/assets/index-04438b6b.js +22 -0
- package/dist/ui/assets/index-058738bc.js +1 -0
- package/dist/ui/assets/{index-e4c6057f.js → index-0b08ce18.js} +1 -1
- package/dist/ui/assets/index-0d730815.js +4 -0
- package/dist/ui/assets/index-0efcf53a.js +1 -0
- package/dist/ui/assets/index-0f432250.js +1 -0
- package/dist/ui/assets/{index-cebd880b.js → index-0fd6e996.js} +1 -1
- package/dist/ui/assets/{index-49a94e54.js → index-11297f4a.js} +1 -1
- package/dist/ui/assets/index-14c1c1d7.js +1 -0
- package/dist/ui/assets/index-15e1f4be.js +1 -0
- package/dist/ui/assets/index-16586c21.js +1 -0
- package/dist/ui/assets/index-19346c14.js +1 -0
- package/dist/ui/assets/{index-16bb10a6.js → index-1dc2b9d2.js} +1 -1
- package/dist/ui/assets/index-211fbe21.js +1 -0
- package/dist/ui/assets/index-23e16bff.js +1 -0
- package/dist/ui/assets/index-27aef8b5.js +1 -0
- package/dist/ui/assets/{index-36228db5.js → index-289b3fd9.js} +1 -1
- package/dist/ui/assets/{index-a22a3546.js → index-2dae59b1.js} +1 -1
- package/dist/ui/assets/index-353fd6dd.js +1 -0
- package/dist/ui/assets/{index-ea125a16.js → index-359d245d.js} +1 -1
- package/dist/ui/assets/{index-c62ac197.js → index-3b5ce20a.js} +70 -62
- package/dist/ui/assets/index-3b929ba4.js +34 -0
- package/dist/ui/assets/index-42e3a337.js +1 -0
- package/dist/ui/assets/index-44b6de3a.js +1 -0
- package/dist/ui/assets/index-46d3ca9a.js +7 -0
- package/dist/ui/assets/{index-e3cc723f.js → index-49016ad0.js} +1 -1
- package/dist/ui/assets/index-51132258.js +1 -0
- package/dist/ui/assets/{index-dc103f22.js → index-52963879.js} +1 -1
- package/dist/ui/assets/{index-fcc1c999.js → index-533fd007.js} +1 -1
- package/dist/ui/assets/index-59ec468b.js +13 -0
- package/dist/ui/assets/index-5e2d5279.js +1 -0
- package/dist/ui/assets/{index-d17da176.js → index-62f95885.js} +1 -1
- package/dist/ui/assets/index-659c6412.js +1 -0
- package/dist/ui/assets/index-6873dfc3.js +1 -0
- package/dist/ui/assets/index-69a68d9e.js +1 -0
- package/dist/ui/assets/index-6a6902c7.js +1 -0
- package/dist/ui/assets/index-7596c6bb.js +1 -0
- package/dist/ui/assets/{index-47dcc43a.js → index-8045c5f0.js} +1 -1
- package/dist/ui/assets/{index-b028e652.js → index-8677acd1.js} +1 -1
- package/dist/ui/assets/{index-42e65911.js → index-88c52b97.js} +1 -1
- package/dist/ui/assets/index-89cfefab.js +1 -0
- package/dist/ui/assets/{index-bea4c3dc.js → index-8c0643fd.js} +1 -1
- package/dist/ui/assets/index-8d5b6a1f.js +1 -0
- package/dist/ui/assets/index-8d5d70f9.js +1 -0
- package/dist/ui/assets/{index-9b41371d.js → index-91505016.js} +1 -1
- package/dist/ui/assets/{index-ffc00dbb.js → index-92314073.js} +1 -1
- package/dist/ui/assets/index-985cf3f6.js +1 -0
- package/dist/ui/assets/index-a14e51de.js +1 -0
- package/dist/ui/assets/index-a733f80b.js +1 -0
- package/dist/ui/assets/index-a84d5808.js +1 -0
- package/dist/ui/assets/index-acac6006.js +1 -0
- package/dist/ui/assets/index-b0ef7ac3.js +1 -0
- package/dist/ui/assets/index-b6ef5984.js +1 -0
- package/dist/ui/assets/{index-fc9071e0.js → index-bd4edda3.js} +1 -1
- package/dist/ui/assets/{index-0ec72c4b.js → index-c29b8474.js} +1 -1
- package/dist/ui/assets/index-c88c7790.js +19 -0
- package/dist/ui/assets/index-ce89a95e.css +7 -0
- package/dist/ui/assets/index-d221d69e.js +1 -0
- package/dist/ui/assets/{index-f1576468.js → index-d33facae.js} +1 -1
- package/dist/ui/assets/index-e46c57a5.js +1 -0
- package/dist/ui/assets/index-e863817c.js +1 -0
- package/dist/ui/assets/index-f4af2342.js +1 -0
- package/dist/ui/assets/{index-77e820d0.js → index-fc9f8c4b.js} +1 -1
- package/dist/ui/assets/{index-ec2010d2.js → index-ff23edc5.js} +1 -1
- package/dist/ui/assets/{index.esm-70ab539c.js → index.esm-b2d342b5.js} +1 -1
- package/dist/ui/assets/liveLocation-8e0bb2f3.js +1 -0
- package/dist/ui/assets/{mapView-ab35acaa.js → mapView-c8063ed6.js} +1 -1
- package/dist/ui/assets/modeuls-setup-4b06843c.js +1 -0
- package/dist/ui/assets/{permissionHoc-6f787658.js → permissionHoc-0818bfb0.js} +1 -1
- package/dist/ui/assets/{react-21134174.js → react-12ddbe48.js} +1 -1
- package/dist/ui/assets/{react-4d5dc208.js → react-61e0b284.js} +1 -1
- package/dist/ui/assets/{strongPassword-bbec776a.js → strongPassword-6bc8786f.js} +1 -1
- package/dist/ui/assets/{styles-0608350c.js → styles-b7ae7bf6.js} +1 -1
- package/dist/ui/assets/{tableV2-4d1c9fd2.js → tableV2-99c808c0.js} +1 -1
- package/dist/ui/assets/tableV3-24eed052.js +1 -0
- package/dist/ui/assets/ticketRequestDetails-8b299fbd.js +1 -0
- package/dist/ui/assets/{useDidUpdate-25c4d4ed.js → useDidUpdate-de319a18.js} +1 -1
- package/dist/ui/assets/{useDrop-02b0e5d7.js → useDrop-8f0d11a7.js} +1 -1
- package/dist/ui/assets/useFilteredData-e8fad668.js +1 -0
- package/dist/ui/assets/{usePermission-d94b4984.js → usePermission-4689548c.js} +1 -1
- package/dist/ui/assets/{vendor-charts-eccea5d1.js → vendor-charts-4be0b5ab.js} +1 -1
- package/dist/ui/assets/{vendor-codemirror-c8203b49.js → vendor-codemirror-1a1216c9.js} +11 -11
- package/dist/ui/assets/{vendor-devex-33a39e11.js → vendor-devex-4076ffeb.js} +2 -2
- package/dist/ui/assets/{vendor-excel-ee8fc4e5.js → vendor-excel-3b3553df.js} +1 -1
- package/dist/ui/assets/{vendor-i18n-2fcb1983.js → vendor-i18n-b89304ef.js} +1 -1
- package/dist/ui/assets/vendor-mui-98daa63f.js +185 -0
- package/dist/ui/assets/{vendor-pdf-b2a5d8b1.js → vendor-pdf-3c29882d.js} +1 -1
- package/dist/ui/assets/withHeaderItem-df2cc5d9.js +1 -0
- package/dist/ui/assets/{zh-cn-1881e930.js → zh-cn-13c6c696.js} +1 -1
- package/dist/ui/config.js +16 -20
- package/dist/ui/index.html +9 -9
- package/dist/ui/manifest.json +2 -2
- package/index.bundle.js +23 -9
- package/package.json +1 -1
- package/dist/ui/assets/AIVision-4f515575.js +0 -4
- package/dist/ui/assets/AccountDetails-2b42d262.js +0 -1
- package/dist/ui/assets/AccountDetails-492dee8f.js +0 -1
- package/dist/ui/assets/AccountServices-62599aae.js +0 -1
- package/dist/ui/assets/AccountsList-fe7cb5f9.js +0 -1
- package/dist/ui/assets/ActionLink-33e476e1.js +0 -1
- package/dist/ui/assets/AdaptableCard-df7695d6.js +0 -1
- package/dist/ui/assets/AddAccount-a05910e8.js +0 -1
- package/dist/ui/assets/AddEditFile-063c229b.js +0 -1
- package/dist/ui/assets/AddEditTranslation-43beae49.js +0 -1
- package/dist/ui/assets/AiApiLogList-a488921d.js +0 -1
- package/dist/ui/assets/AiCa-9c1b25b2.js +0 -1
- package/dist/ui/assets/Alert-7dfbd254.js +0 -1
- package/dist/ui/assets/ApiService-2b99757f.js +0 -1
- package/dist/ui/assets/AppLandingPage-3956cf0c.js +0 -4
- package/dist/ui/assets/AuditLogsList-7a2ce37d.js +0 -1
- package/dist/ui/assets/Auth0Callback-b943f19f.js +0 -1
- package/dist/ui/assets/BarCodes-17ed5da4.js +0 -1
- package/dist/ui/assets/BlankLayout-2f6e1153.js +0 -1
- package/dist/ui/assets/CalendarList-25834ddb.css +0 -11
- package/dist/ui/assets/CalendarList-72739043.js +0 -2
- package/dist/ui/assets/CategoryList-9f82e9a3.js +0 -1
- package/dist/ui/assets/CategoryList-c97891e7.js +0 -1
- package/dist/ui/assets/ChatContainer-4a38b179.js +0 -1
- package/dist/ui/assets/ChatsList-6c2c3e2f.js +0 -1
- package/dist/ui/assets/Check-71f21a49.js +0 -1
- package/dist/ui/assets/CheckInVideo-cb5fa9a2.js +0 -6
- package/dist/ui/assets/ClassicLayout-7d09e5ac.js +0 -1
- package/dist/ui/assets/CompanyList-9532f511.js +0 -1
- package/dist/ui/assets/ConfirmDialog-3202eb3d.js +0 -1
- package/dist/ui/assets/ContactDetails-3b70919b.js +0 -1
- package/dist/ui/assets/ContactsList-e9ac0fa3.js +0 -1
- package/dist/ui/assets/CountiesList-6ad338a5.js +0 -1
- package/dist/ui/assets/CountyDetails-22d4bc89.js +0 -1
- package/dist/ui/assets/CourseDetails-18040b49.js +0 -1
- package/dist/ui/assets/CourseList-e502f89d.js +0 -1
- package/dist/ui/assets/CreateSignature-375d191b.js +0 -7
- package/dist/ui/assets/DeckedLayout-909ac220.js +0 -1
- package/dist/ui/assets/DensitySelector-a2c1c68f.js +0 -1
- package/dist/ui/assets/DocumentActivity-d63dacec.js +0 -1
- package/dist/ui/assets/DocumentLayout-637075fd.js +0 -1
- package/dist/ui/assets/DocumentList2-518d2fa4.js +0 -23
- package/dist/ui/assets/DocumentLists-2da9ff88.js +0 -1
- package/dist/ui/assets/DocumentUserSigned-27bfa6e6.js +0 -7
- package/dist/ui/assets/DocumentsList-9f56db71.js +0 -1
- package/dist/ui/assets/DoubleSidedImage-ae98733b.js +0 -1
- package/dist/ui/assets/DynamicDashboard-6f177244.js +0 -1
- package/dist/ui/assets/EditAccount-1c1a8318.js +0 -1
- package/dist/ui/assets/EditLead-cc38d2a2.js +0 -1
- package/dist/ui/assets/FaqItems-c1c85af7.js +0 -6
- package/dist/ui/assets/FormContainer-91c2b0e4.js +0 -1
- package/dist/ui/assets/GenericPage-25a5d92a.js +0 -1
- package/dist/ui/assets/GridMapDetails-851a5781.js +0 -1
- package/dist/ui/assets/HorizontalMenuContent-96da38e1.js +0 -1
- package/dist/ui/assets/InvoicesList-8e66a112.js +0 -1
- package/dist/ui/assets/LeadDetails-ad63b3df.js +0 -1
- package/dist/ui/assets/LeadsList-bd7d9804.js +0 -1
- package/dist/ui/assets/Logo-3f3c9ee6.js +0 -1
- package/dist/ui/assets/MapView-afd1c913.js +0 -1
- package/dist/ui/assets/MarketingPage-89a860b1.js +0 -4
- package/dist/ui/assets/MenuEdit-d6e0d64c.js +0 -1
- package/dist/ui/assets/MessageInput-6dc83761.js +0 -21
- package/dist/ui/assets/MessagesList-966b69c5.js +0 -1
- package/dist/ui/assets/ModernLayout-03f30574.js +0 -1
- package/dist/ui/assets/Notify-bb3ce372.js +0 -1
- package/dist/ui/assets/OpportunitiesList-62eb34f6.js +0 -1
- package/dist/ui/assets/OpportunityDetails-356a8580.js +0 -1
- package/dist/ui/assets/OpportunityStatus-fa8108ea.js +0 -1
- package/dist/ui/assets/PasswordInput-8619a9df.js +0 -1
- package/dist/ui/assets/Profile-9104808b.js +0 -1
- package/dist/ui/assets/RoleEdit-98a6410b.js +0 -1
- package/dist/ui/assets/RoleForm-cc251eba.js +0 -1
- package/dist/ui/assets/ScheduleCycle-22c8e809.js +0 -1
- package/dist/ui/assets/ScreenList-9f7afa1c.js +0 -1
- package/dist/ui/assets/SidePanelContent-6b13836f.js +0 -1
- package/dist/ui/assets/SimpleLayout-d5445c0d.js +0 -2
- package/dist/ui/assets/StackedSideLayout-51127dc5.js +0 -1
- package/dist/ui/assets/StickyFooter-5b934274.js +0 -1
- package/dist/ui/assets/SupportRequets-be6542a9.js +0 -1
- package/dist/ui/assets/TimeLogApprovalDataList-c16d8bae.js +0 -1
- package/dist/ui/assets/TimeLogApprovalList-f6a75a20.js +0 -1
- package/dist/ui/assets/TimeLogList-ea288cce.js +0 -1
- package/dist/ui/assets/TimesheetsList-4a20e96c.js +0 -1
- package/dist/ui/assets/TranslationList-7a989333.js +0 -1
- package/dist/ui/assets/UserEdit-87262ea5.js +0 -1
- package/dist/ui/assets/UserForm-31fdd3b3.js +0 -1
- package/dist/ui/assets/ViewTimeLogForApproval-43b24a1a.js +0 -1
- package/dist/ui/assets/Views-74429e81.js +0 -1
- package/dist/ui/assets/WelcomeList-6c693eae.js +0 -9
- package/dist/ui/assets/actioncell-17e12e21.js +0 -1
- package/dist/ui/assets/calendarList-511b4d8f.js +0 -2
- package/dist/ui/assets/createSvgIcon-c5fc0d04.js +0 -1
- package/dist/ui/assets/documentsList-ac2c91ec.js +0 -1
- package/dist/ui/assets/dxicons-4c1b2089.ttf +0 -0
- package/dist/ui/assets/dxicons-ade3c9ed.woff2 +0 -0
- package/dist/ui/assets/dxicons-b4cd1226.woff +0 -0
- package/dist/ui/assets/gridList-cb9a14b1.js +0 -1
- package/dist/ui/assets/gridMapTable-c19770a8.js +0 -1
- package/dist/ui/assets/index-1d60e514.js +0 -1
- package/dist/ui/assets/index-26466d9d.js +0 -1
- package/dist/ui/assets/index-289cfedb.js +0 -1
- package/dist/ui/assets/index-2ce5b358.js +0 -1
- package/dist/ui/assets/index-307ce6d7.js +0 -1
- package/dist/ui/assets/index-36ba4ea7.js +0 -1
- package/dist/ui/assets/index-3f02e05a.js +0 -1
- package/dist/ui/assets/index-44662933.js +0 -13
- package/dist/ui/assets/index-51ee35f9.js +0 -1
- package/dist/ui/assets/index-54372d82.js +0 -1
- package/dist/ui/assets/index-569a9d2c.js +0 -1
- package/dist/ui/assets/index-62de659f.js +0 -13
- package/dist/ui/assets/index-6589dd2d.js +0 -1
- package/dist/ui/assets/index-6b6d0f06.js +0 -1
- package/dist/ui/assets/index-6c618440.js +0 -1
- package/dist/ui/assets/index-785ad361.js +0 -1
- package/dist/ui/assets/index-7df8779c.js +0 -1
- package/dist/ui/assets/index-82c9477e.js +0 -1
- package/dist/ui/assets/index-8ab45286.js +0 -1
- package/dist/ui/assets/index-8c229076.css +0 -7
- package/dist/ui/assets/index-a205cfed.js +0 -34
- package/dist/ui/assets/index-a23f9c87.js +0 -1
- package/dist/ui/assets/index-a455424a.js +0 -1
- package/dist/ui/assets/index-a4f78ee1.js +0 -1
- package/dist/ui/assets/index-aaad94c2.js +0 -1
- package/dist/ui/assets/index-b1b6b0f6.js +0 -1
- package/dist/ui/assets/index-c1f92742.js +0 -4
- package/dist/ui/assets/index-c2088808.js +0 -1
- package/dist/ui/assets/index-cbc29fa8.js +0 -1
- package/dist/ui/assets/index-cd2b7d32.js +0 -1
- package/dist/ui/assets/index-cf3804f1.js +0 -19
- package/dist/ui/assets/index-d0ef2cc2.js +0 -1
- package/dist/ui/assets/index-d1145737.js +0 -7
- package/dist/ui/assets/index-d58fb185.js +0 -1
- package/dist/ui/assets/index-d5b5a7e1.js +0 -1
- package/dist/ui/assets/index-daeff047.js +0 -1
- package/dist/ui/assets/index-ded3b055.js +0 -1
- package/dist/ui/assets/index-ede23a2b.js +0 -1
- package/dist/ui/assets/index-f8144346.js +0 -1
- package/dist/ui/assets/index-fd68b510.js +0 -1
- package/dist/ui/assets/index-fe3409ae.js +0 -1
- package/dist/ui/assets/liveLocation-646eef95.js +0 -1
- package/dist/ui/assets/modeuls-setup-402f891e.js +0 -1
- package/dist/ui/assets/tableV3-3d2f4952.js +0 -1
- package/dist/ui/assets/ticketRequestDetails-f78147f7.js +0 -1
- package/dist/ui/assets/vendor-mui-69397583.js +0 -185
- package/dist/ui/menudata/menus.json +0 -606
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,l as fe}from"./vendor-mui-69397583.js";import{A as $}from"./AdaptableCard-df7695d6.js";import{r as d,f as P}from"./vendor-react-ece1c85f.js";import{b as B,c as he,a as ge}from"./vendor-redux-a1f00e6b.js";import{a as xe,b as De,c as je,d as Ce,e as ke,f as te}from"./KeyVaultService-874d83fe.js";import{F as be,Y as J,l as V,W as ve,B as K,S as we,al as Ke,O as F,Q as N,E as Ve,c9 as Q,f as Se,V as Ae,aM as Fe,d0 as Ne,d1 as Ee}from"./index-c62ac197.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import{D as W}from"./Drawer-949c18c6.js";import{a as O,F as Ie}from"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import{A as Re,T}from"./actioncell-17e12e21.js";import{D as Le}from"./tableV2-4d1c9fd2.js";import{h as Oe}from"./index-36ba4ea7.js";import{S as Te}from"./StickyFooter-5b934274.js";import{C as ae}from"./ConfirmDialog-3202eb3d.js";import{u as Me,d as M,c as X,a as $e,e as qe,F as ze,b as Pe}from"./index.esm-70ab539c.js";import{a as Be}from"./index-e4c6057f.js";import{D as Je}from"./DoubleSidedImage-ae98733b.js";import{F as Ue}from"./index-e3cc723f.js";import{p as Z}from"./Notify-bb3ce372.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"./FileSaver.min-20f3f13a.js";import"./DensitySelector-a2c1c68f.js";import"./NoData-8c485a3a.js";const E="AppKeyVaultData",k=B(`${E}/getAppKeyVaultsData`,async o=>{const a=await xe(o);return console.log("LeadSources",a),a.data}),se=B(`${E}/getAppKeys`,async o=>{const a=await De(o);return console.log("LeadSources",a),a.data}),q=B(E+"/getAppKeyDetails",async o=>(console.log("getappkeyDetails"),(await je(o.id)).data)),Ge={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},Ye={loading:!1,deleteConfirmation:!1,selectedRowData:"",tableData:Ge,filterData:{name:"",category:["bags","cloths","devices","shoes","watches"],status:[0,1,2],productStatus:0},keyVaultDataList:[],appKeysList:[]},oe=he({name:`${E}`,initialState:Ye,reducers:{setTableData:(o,a)=>{o.tableData=a.payload},setFilterData:(o,a)=>{o.filterData=a.payload},toggleDeleteConfirmation:(o,a)=>{o.deleteConfirmation=a.payload},setSelectedRowData:(o,a)=>{o.selectedRowData=a.payload}},extraReducers:o=>{o.addCase(k.fulfilled,(a,n)=>{a.keyVaultDataList=n.payload.$values,a.tableData.total=n.payload.$values.length,a.loading=!1}).addCase(k.pending,a=>{a.loading=!0}).addCase(q.fulfilled,(a,n)=>{a.keyData=n.payload,a.loading=!1}).addCase(q.pending,a=>{a.loading=!0}).addCase(se.fulfilled,(a,n)=>{a.appKeysList=n.payload.$values})}}),{setTableData:qt,setFilterData:zt,toggleDeleteConfirmation:z,setSelectedRowData:ee}=oe.actions,_e=oe.reducer,U=ge({data:_e}),j=be;J("AppKeyVaultData",U);const He=o=>{const a=V(),[n,y]=d.useState(!0),{touched:s,errors:c,type:p}=o,f=j(t=>{var i,g;return(g=(i=t==null?void 0:t.AppKeyVaultData)==null?void 0:i.data)==null?void 0:g.appKeysList.map(x=>({value:x.id,label:x.key}))}),D=()=>{const t=se({});a(t)};d.useEffect(()=>{D()},[]),d.useState("{}");const{values:h,setFieldValue:m}=Me(),u=t=>{try{if(!t.trim())return;const r=JSON.parse(t),i=JSON.stringify(r,null,2);m("keyvalue",i)}catch(r){console.error("Invalid JSON format:",r),alert("Invalid JSON format. Please correct the input.")}};return e.jsxs($,{className:"mb-4",children:[e.jsx(O,{label:"Select Key",asterisk:!0,invalid:c.key&&s.key,errorMessage:c.key,children:e.jsx(M,{name:"key",children:({field:t,form:r})=>e.jsx(ve,{field:t,form:r,options:f,name:"key",onChange:i=>{r.setFieldValue(t.name,i)}})})}),e.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"-18px"},children:e.jsx(K,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>{y(t=>!t)},children:n?"JSON Input":"Text Input"})}),e.jsx(O,{label:"Value",invalid:c.keyvalue&&s.keyvalue,errorMessage:c.keyvalue,children:n?e.jsx(M,{as:"textarea",name:"keyvalue",rows:8,className:"form-control",style:{width:"100%",fontFamily:"monospace",border:"1px solid #ccc"}}):e.jsx("textarea",{value:h.keyvalue,onChange:t=>{m("keyvalue",t.target.value)},onBlur:t=>u(t.target.value),rows:10,style:{width:"100%",fontFamily:"monospace",border:"1px solid #ccc"},placeholder:"Paste JSON in {}"})}),e.jsx(O,{label:"",invalid:c.isEncrypted&&s.isEncrypted,errorMessage:c.isEncrypted,children:e.jsx(M,{name:"isEncrypted",children:({field:t,form:r})=>e.jsx(we,{className:"mb-3",name:t.name,checked:t.value,onChange:i=>{r.setFieldValue(t.name,i)},children:e.jsx("b",{children:" Encrypt Value"})})})})]})},{useUniqueId:Qe}=Oe,We=X().shape({key:X().required("Key is required"),keyvalue:$e().required("Value is Required"),isEncrypted:qe()}),Xe=({onDelete:o})=>{const[a,n]=d.useState(!1),y=()=>{n(!0)},s=()=>{n(!1)},c=()=>{o==null||o(n)};return e.jsxs(e.Fragment,{children:[e.jsx(K,{className:"text-red-600",variant:"plain",size:"sm",icon:e.jsx(Ke,{}),type:"button",onClick:y,children:"Delete"}),e.jsx(ae,{isOpen:a,type:"danger",title:"Delete Category",confirmButtonColor:"red-600",onClose:s,onRequestClose:s,onCancel:s,onConfirm:c,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."})})]})},G=d.forwardRef((o,a)=>{const{type:n,initialData:y={id:"",key:null,keyvalue:"",isEncrypted:!1},onFormSubmit:s,onDiscard:c,onDelete:p}=o,f=Qe("KeyVaultForm-");return e.jsx(e.Fragment,{children:e.jsx(ze,{innerRef:a,initialValues:{...y},validationSchema:We,onSubmit:(D,{setSubmitting:h})=>{const m=D;n==="new"&&(m.id=f),s==null||s(m,h)},children:({values:D,touched:h,errors:m,isSubmitting:u})=>e.jsx(Pe,{children:e.jsxs(Ie,{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(He,{type:n,touched:h,errors:m})})}),e.jsxs(Te,{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("div",{children:n==="edit"&&e.jsx(Xe,{onDelete:p})}),e.jsxs("div",{className:"md:flex items-center justify-between w-full",children:[e.jsx(K,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>c==null?void 0:c(),children:"Discard"}),e.jsx(K,{size:"sm",variant:"solid",loading:u,icon:e.jsx(Be,{}),type:"submit",children:"Save"})]})]})]})})})})});G.displayName="KeyVaultForm";const Ze=o=>{const{onDrawerClose:a,customerId:n,onContactCreated:y,isfromDropdown:s=!1,newContactName:c=""}=o;P();const p=V();d.useState(!1);const f=async u=>await Ce(u),D=()=>{p(k({}))},h=async(u,t)=>{t(!0);const r={KeyId:u.key.value??"",value:u.keyvalue??"",IsEncrypted:u.isEncrypted??""};f(r).then(i=>{i.success&&(F.push(e.jsx(N,{title:"Success",type:"success",duration:2500,children:"Key Successfully Added"}),{placement:"top-center"}),y&&y(i==null?void 0:i.data),D(),a())}).catch(i=>{var g=i.response.data;t(!1),F.push(e.jsx(N,{title:"Error",type:"danger",duration:2500,children:g.message}),{placement:"top-center"})})},m=()=>{a()};return e.jsx(e.Fragment,{children:e.jsx(G,{type:"new",onFormSubmit:h,onDiscard:m,initialData:{key:"",keyvalue:"",isEncrypted:!1}})})};J("AppKeyVaultData",U);const et=o=>{const{id:a,onDrawerClose:n}=o,y=V();P();const s=j(t=>{var r,i,g,x,b,v,S,I,A;return{...(i=(r=t.AppKeyVaultData)==null?void 0:r.data)==null?void 0:i.keyData,key:{value:(b=(x=(g=t.AppKeyVaultData)==null?void 0:g.data)==null?void 0:x.keyData)==null?void 0:b.keyId,label:(A=(I=(S=(v=t.AppKeyVaultData)==null?void 0:v.data)==null?void 0:S.keyData)==null?void 0:I.appKeyNavigation)==null?void 0:A.key}}});console.log("EditKeyVaultData - data",s);const c=j(t=>{var r,i;return(i=(r=t.AppKeyVaultData)==null?void 0:r.data)==null?void 0:i.loading}),p=t=>{y(q({id:t}))},f=()=>{y(k({}))},D=async(t,r)=>{var x;r(!0);const i={KeyId:((x=t.key)==null?void 0:x.value)??"",value:t.keyvalue??"",IsEncrypted:t.isEncrypted??""},g=await ke(a,i);r(!1),g&&(u("updated"),f(),n())},h=()=>{n()},m=async t=>{t(!1),await te(a??"").then(r=>{u("deleted"),f(),n(null)})},u=t=>{F.push(e.jsxs(N,{title:"Success",type:"success",duration:2500,children:["Key Successfully ",t]}),{placement:"top-center"})};return d.useEffect(()=>{p(a)},[a]),e.jsxs(e.Fragment,{children:[e.jsx(Ve,{loading:c,children:!Q(s)&&e.jsx(e.Fragment,{children:e.jsx(G,{type:"edit",initialData:{key:s==null?void 0:s.key,keyvalue:s==null?void 0:s.value,id:s==null?void 0:s.id,isEncrypted:s==null?void 0:s.isEncrypted},onFormSubmit:D,onDiscard:h,onDelete:m})})}),!c&&Q(s)&&e.jsxs("div",{className:"h-full flex flex-col items-center justify-center",children:[e.jsx(Je,{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 Key found!"})]})]})},tt=()=>{const o=V(),a=j(p=>p.AppKeyVaultData.data.deleteConfirmation),n=j(p=>p.AppKeyVaultData.data.selectedRowData),y=j(p=>p.AppKeyVaultData.data.tableData),s=()=>{o(z(!1))},c=async()=>{o(z(!1)),await te(n.id)&&(o(k(y)),F.push(e.jsx(N,{title:"Deleted",type:"success",duration:2500,children:"Key Successfully Deleted"}),{placement:"top-center"}))};return e.jsx(ae,{isOpen:a,type:"danger",title:"Delete Contact",confirmButtonColor:"red-600",onClose:s,onRequestClose:s,onCancel:s,onConfirm:c,children:e.jsx("p",{children:"Are you sure you want to delete this Key? This action cannot be undone."})})},at=["nextColumn","widget"];J("AppKeyVaultData",U);const st={edit:!0,delete:!0,view:!1},ot=()=>{const[o,a]=d.useState([]),[n,y]=d.useState(!1);d.useState(!1);const[s,c]=d.useState(!1),[p,f]=d.useState(!1),[D,h]=d.useState(),m=()=>{c(!0)},u=()=>{c(!1)};d.useRef(null),d.useState(at[0]),P();const t=V(),r=j(l=>l.AppKeyVaultData.data.filterData),i=j(l=>l.AppKeyVaultData.data.loading),g=j(l=>l.AppKeyVaultData.data.keyVaultDataList);Se();const{pageIndex:x,pageSize:b,sort:v,query:S,total:I}=j(l=>l.AppKeyVaultData.data.tableData);d.useEffect(()=>{A()},[x,b,v,n,r]);const A=()=>{const l=k({pageIndex:x,pageSize:b,sort:v,query:S,filterData:r});t(l)},[le,ne]=d.useState({pageSize:"",pageIndex:""}),ie=(l,C)=>{T.view,C===T.edit&&(h(l.id),t(ee(l)),f(!0)),C===T.delete&&(t(z(!0)),t(ee(l)))},Y=()=>{f(!1)},re=async l=>{try{await navigator.clipboard.writeText(l),Z("Copied to clipboard!","Success","success")}catch{Z("Failed to copy!","Error","danger")}},ce=({value:l,isEncrypted:C})=>{const[R,pe]=d.useState("Loading..."),[L,ue]=d.useState("");return d.useEffect(()=>{(async()=>{let w=l;if(C)try{w=await Ne(l,Ee)}catch{w="[Decryption Error]"}ue(w);const _=6,H=w.length-_,ye=`${"*".repeat(H>0?H:0)}${w.slice(-_)}`;pe(ye)})()},[l,C]),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2 break-words",children:[e.jsx("span",{className:"font-mono text-sm break-all",children:R}),L&&L!=="[Decryption Error]"&&e.jsx(Fe,{title:"Copy full value",children:e.jsx(Ue,{className:"cursor-pointer w-4 h-4 text-custom-600",onClick:()=>re(L)})})]})},de=[{dataField:"Action",caption:"Action",width:"130",cellRender:l=>e.jsx("div",{id:"mAction","data-cname":"Action",children:e.jsx(Re,{row:l==null?void 0:l.data,actions:st,buttonClick:ie})})},{dataField:"key",caption:"Key",width:"300"},{dataField:"value",caption:"Value",width:"450",cellRender:l=>{const{value:C,isEncrypted:R}=l==null?void 0:l.data;return e.jsxs("div",{"data-cname":"Value",className:"flex align-center",children:[e.jsx(ce,{value:C,isEncrypted:R}),";"]})}},{dataField:"createdDate",caption:"Created On",width:"150",dataType:"date",format:"MM/dd/yyyy"}];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:"App Keys"}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[e.jsx(K,{onClick:()=>m(),block:!0,variant:"solid",size:"sm",icon:e.jsx(Ae,{}),children:"Add Key"}),e.jsx(W,{title:"Add Key",isOpen:s,onClose:u,portalClassName:"w30 prevent-overflow",children:e.jsx(Ze,{onDrawerClose:u})}),e.jsx(W,{title:"Edit Key",isOpen:p,onClose:Y,portalClassName:"w30 prevent-overflow",children:e.jsx(et,{id:D,onDrawerClose:Y})})]})]})}),i&&e.jsx(fe,{sx:{backgroundColor:"rgba(0, 0, 0, 0.1)","& .MuiLinearProgress-bar":{backgroundColor:"var(--custom-600)"}}}),e.jsx($,{className:"m-6 h-full py-4 px-6 bg-transparent",bodyClass:"h-full",children:e.jsx($,{className:"p-4",children:e.jsx(Le,{columns:de,tableName:"key-list-table",data:g||[],height:"calc(100vh - 320px)",defaultHiddenColumn:[],fetchData:()=>{},id_label:"$id",selectedRowId:o,setSelectedRowId:a,setFilterValues:()=>{},filterValues:[],identity:"Lead-Listing",setInLineFilters:()=>{},inLineFilter:[],inLineFilterMobileView:[],setInLineFiltersMobileView:()=>{},setColSorting:()=>{},ImpColumnName:"DocumentId",idName:"app-key-Listing-table",handleSearch:()=>{},isColumnResizing:!0,pager:le,setPager:ne,isPaginationReq:!0,isSelectionReq:!1,isLoading:i})})}),e.jsx(tt,{})]})},Pt=ot;export{Pt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./vendor-mui-69397583.js";import{r as u}from"./vendor-react-ece1c85f.js";import{F as j,a as f}from"./FormContainer-91c2b0e4.js";import{I as g,B as F,T as v}from"./index-c62ac197.js";import{A as y}from"./Alert-7dfbd254.js";import{A as b}from"./ActionLink-33e476e1.js";import{u as w}from"./useTimeOutMessage-e4eaa9f2.js";import{c as S,a as N,F as P,b as E,d as I}from"./index.esm-70ab539c.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 k=S().shape({email:N().matches(/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/,"Invalid email").required("Please enter your email")}),A=l=>{const{disableSubmit:m=!1,className:c,signInUrl:d="/sign-in"}=l,[o,p]=u.useState(!1),[t,h]=w(),x=async(a,s)=>{var i,n;s(!0);try{(await v(a.email)).success&&(s(!1),p(!0))}catch(r){h(((n=(i=r==null?void 0:r.response)==null?void 0:i.data)==null?void 0:n.message)||r.toString()),s(!1)}};return e.jsxs("div",{className:c,children:[e.jsx("div",{className:"mb-6",children:o?e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"mb-1",children:"Check your email"}),e.jsx("p",{children:"We have sent a password recovery instruction to your email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"mb-1",children:"Forgot Password"}),e.jsx("p",{children:"Please enter your email address to receive a verification code"})]})}),t&&e.jsx(y,{showIcon:!0,className:"mb-4",type:"danger",children:t}),e.jsx(P,{initialValues:{email:""},validationSchema:k,onSubmit:(a,{setSubmitting:s})=>{m?s(!1):x(a,s)},children:({touched:a,errors:s,isSubmitting:i})=>e.jsx(E,{children:e.jsxs(j,{children:[e.jsx("div",{className:o?"hidden":"",children:e.jsx(f,{invalid:s.email&&a.email,errorMessage:s.email,children:e.jsx(I,{type:"email",autoComplete:"off",name:"email",placeholder:"Email",component:g})})}),e.jsx(F,{block:!0,loading:i,variant:"solid",type:"submit",children:o?"Resend Email":"Send Email"}),e.jsxs("div",{className:"mt-4 text-center",children:[e.jsx("span",{children:"Back to "}),e.jsx(b,{to:d,children:"Sign in"})]})]})})})]})},M=()=>e.jsx(A,{disableSubmit:!1}),G=M;export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{V as o}from"./ClassicLayout-7d09e5ac.js";import"./vendor-mui-69397583.js";import"./vendor-react-ece1c85f.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";import"./SidePanelContent-6b13836f.js";import"./Switcher-c8648037.js";import"./index-ec2010d2.js";import"./index-6b6d0f06.js";import"./useControllableState-d0909575.js";import"./DoubleSidedImage-ae98733b.js";import"./Drawer-949c18c6.js";import"./index-c2088808.js";import"./useDidUpdate-25c4d4ed.js";import"./Alert-7dfbd254.js";import"./FormContainer-91c2b0e4.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import"./Logo-3f3c9ee6.js";import"./index-aaad94c2.js";import"./index-e4c6057f.js";import"./index-f6be0390.js";import"./index-ea125a16.js";import"./Views-74429e81.js";export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./vendor-mui-69397583.js";import{f as V,r as g,u as R}from"./vendor-react-ece1c85f.js";import{F as E}from"./FormContainer-91c2b0e4.js";import{h as S,u as v,I,B as k,O as P,Q as B}from"./index-c62ac197.js";import{A as L}from"./Alert-7dfbd254.js";import{c as K,F as $,b as M}from"./index.esm-70ab539c.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import"./Drawer-949c18c6.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import{a as Q}from"./UserService-047aef51.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 U=d=>{const{disableSubmit:b=!1,className:y,tempToken:c,email:m,authType:l,userId:f,phone:p}=d,h=V();S(t=>t.auth.user),v();const[j,x]=g.useState(""),[i,w]=g.useState(["","","","","",""]),{verifyTwoFactor:O,signIn:z}=v(),u=g.useRef(Array(6).fill(null)),F=K().shape({}),A=(t,a)=>{var r;if(!/^\d*$/.test(a))return;const o=[...i];o[t]=a,w(o),a&&t<5&&((r=u.current[t+1])==null||r.focus())},D=(t,a)=>{var o;a.key==="Backspace"&&!i[t]&&t>0&&((o=u.current[t-1])==null||o.focus())},N=async(t,a)=>{var r,n;a(!0);let o={userName:m,verificationCode:i.join(""),tempToken:c};try{const s=await O(o);(s==null?void 0:s.status)==="failed"&&x(s.message),a(!1)}catch(s){x((n=(r=s==null?void 0:s.response)==null?void 0:r.data)==null?void 0:n.message),a(!1),console.log(s)}},T=async()=>{var t,a;try{await Q(f,l)&&P.push(e.jsx(B,{title:"Success",type:"success",duration:2500,children:"Resend otp success"}),{placement:"top-center"})}catch(o){x((a=(t=o==null?void 0:o.response)==null?void 0:t.data)==null?void 0:a.message),setSubmitting(!1)}},C=t=>{var n;const a=t.clipboardData.getData("Text").trim();if(!/^\d{6}$/.test(a))return;const o=a.split(""),r=[...i];for(let s=0;s<6;s++)r[s]=o[s];w(r),(n=u.current[5])==null||n.focus(),t.preventDefault()};return e.jsxs(e.Fragment,{children:[e.jsx("img",{src:"/img/logo/logo-light-streamline.png",className:"absolute left-2 top-2 w-10 h-10 block xl:hidden",alt:"Logo"}),e.jsxs("div",{className:"xl:min-w-[550px] w-full px-4 sm:px-8 space-y-6 mt-6 xl:mt-4 text-center",children:[e.jsxs("div",{className:"px-2 pt-4 pb-0 xl:p-4",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-black mb-2 pb-2",children:"2 Factor Authentication"}),e.jsxs("p",{className:"text-sm sm:text-base text-gray-700 leading-relaxed pb-2 break-words",children:["Enter the One-Time Passcode sent to:",e.jsx("br",{}),e.jsx("span",{className:"text-custom-500 font-medium break-all",children:l==="Email"?m:l==="SMS"?p:"Authenticator App"})]})]}),e.jsxs("div",{className:"pt-2",children:[j&&e.jsx(L,{showIcon:!0,className:"mb-6",type:"danger",children:j}),e.jsx($,{initialValues:{otp:""},validationSchema:F,onSubmit:(t,{setSubmitting:a})=>{N(t,a)},children:({values:t,setSubmitting:a,isSubmitting:o})=>e.jsx(M,{onKeyDown:r=>{r.key==="Enter"&&(r.preventDefault(),N(t,a))},children:e.jsxs(E,{className:"space-y-6 sm:px-0",children:[e.jsx("div",{className:"flex justify-center gap-1 sm:gap-2 flex-wrap sm:flex-nowrap",children:i.map((r,n)=>e.jsx(I,{type:"text",maxLength:1,className:"!w-10 !h-10 sm:w-12 sm:h-14 text-base sm:text-xl text-center border border-gray-300 rounded-md focus:border-custom-500 focus:ring-2 focus:ring-custom-500 bg-gray-100",value:r,ref:s=>u.current[n]=s,onChange:s=>A(n,s.target.value),autoComplete:n===0?"one-time-code":void 0,onKeyDown:s=>D(n,s),onPaste:n===0?C:void 0},n))}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(k,{block:!0,onClick:()=>h("/sign-in"),variant:"default",className:"w-full sm:w-1/2",children:"Back"}),e.jsx(k,{block:!0,loading:o,disabled:i.join("").length!==6,variant:"solid",type:"submit",className:"w-full sm:w-1/2",children:"Verify"})]})]})})}),l!=="Authenticator"&&e.jsxs("p",{className:"mt-4 text-sm text-gray-600 text-center px-4 sm:px-8 pt-2",children:["Didn’t get OTP?"," ",e.jsx("span",{onClick:()=>T(),className:"text-custom-500 hover:underline cursor-pointer",children:"Resend"})]})]})]})]})},q=()=>{var p;const{email:d,id:b,phone:y}=S(h=>h.auth.user),c=R(),m=((p=c==null?void 0:c.state)==null?void 0:p.validatethrough)||"",f=new URLSearchParams(document.location.search).get("tempToken")??"";return e.jsx(U,{disableSubmit:!1,tempToken:f,email:d??"",authType:m,userId:b,phone:y})},de=q;export{de as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./vendor-mui-69397583.js";import{F as N,a as i}from"./FormContainer-91c2b0e4.js";import{u as b,I as l,B as v}from"./index-c62ac197.js";import{A as y}from"./Alert-7dfbd254.js";import{P as d}from"./PasswordInput-8619a9df.js";import{A as S}from"./ActionLink-33e476e1.js";import{u as U}from"./useTimeOutMessage-e4eaa9f2.js";import{c as A,a as p,f as C,F,b as I,d as n}from"./index.esm-70ab539c.js";import{p as c}from"./strongPassword-bbec776a.js";import"./vendor-react-ece1c85f.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";const M=A().shape({userName:p().required("Please enter your user name"),email:p().matches(/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/,"Invalid email").required("Please enter your email"),password:c.required("Please enter your password"),confirmPassword:c.required("Confirm password").oneOf([C("password"),null],"Your Passwords do not match")}),$=u=>{const{disableSubmit:f=!1,className:w,signInUrl:h="/sign-in"}=u,{signUp:x}=b(),[t,j]=U(),g=async(a,s)=>{let{userName:r,password:m,email:P}=a;s(!0),m=btoa(m);const o=await x({userName:r,password:m,email:P});(o==null?void 0:o.status)==="failed"&&j(o.message),s(!1)};return e.jsxs("div",{className:w,children:[t&&e.jsx(y,{showIcon:!0,className:"mb-4",type:"danger",children:t}),e.jsx(F,{initialValues:{userName:"",password:"",confirmPassword:"",email:""},validationSchema:M,onSubmit:(a,{setSubmitting:s})=>{f?s(!1):g(a,s)},children:({touched:a,errors:s,isSubmitting:r})=>e.jsx(I,{children:e.jsxs(N,{children:[e.jsx(i,{label:"User Name",invalid:s.userName&&a.userName,errorMessage:s.userName,children:e.jsx(n,{type:"text",autoComplete:"off",name:"userName",placeholder:"User Name",component:l})}),e.jsx(i,{label:"Email",invalid:s.email&&a.email,errorMessage:s.email,children:e.jsx(n,{type:"email",autoComplete:"off",name:"email",placeholder:"Email",component:l})}),e.jsx(i,{label:"Password",invalid:s.password&&a.password,errorMessage:s.password,children:e.jsx(n,{autoComplete:"off",name:"password",placeholder:"Password",component:d,showPasswordStrength:!0,touched:a,errors:s})}),e.jsx(i,{label:"Confirm Password",invalid:s.confirmPassword&&a.confirmPassword,errorMessage:s.confirmPassword,children:e.jsx(n,{autoComplete:"off",name:"confirmPassword",placeholder:"Confirm Password",component:d,showPasswordStrength:!0,touched:a,errors:s})}),e.jsx(v,{block:!0,loading:r,variant:"solid",type:"submit",children:r?"Creating Account...":"Sign Up"}),e.jsxs("div",{className:"mt-4 text-center",children:[e.jsx("span",{children:"Already have an account? "}),e.jsx(S,{to:h,children:"Sign in"})]})]})})})]})},q=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h3",{className:"mb-1",children:"Sign Up"}),e.jsx("p",{children:"And lets get started with your free trial"})]}),e.jsx($,{disableSubmit:!1})]}),W=q;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,u as s}from"./useControllableState-d0909575.js";import{cx as a,bg as o,bn as u,cy as t}from"./index-c62ac197.js";import{c as r,b as i,u as l,a as m}from"./useDidUpdate-25c4d4ed.js";const b={useCallbackRef:e,useColorLevel:a,useControllableState:s,useDidUpdate:r,useMergeRef:o,useRootClose:i,useTimeout:u,useUncertainRef:l,useUniqueId:m,useWindowSize:t};export{b as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,l as Ye}from"./vendor-mui-69397583.js";import{A as De}from"./AdaptableCard-df7695d6.js";import{r as m}from"./vendor-react-ece1c85f.js";import{r as be,u as de,g as ie,t as we,s as pe}from"./index-cbc29fa8.js";import{Y as fe,cv as Me,I as V,cb as Pe,al as Re,aZ as He,bm as We,l as ve,B as q,P as Je,b as Xe,O as G,Q as Y,aw as Ze,V as Qe,Z as Be}from"./index-c62ac197.js";import{A as ea,T as he}from"./actioncell-17e12e21.js";import{C as aa}from"./tableV3-3d2f4952.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./index-c2088808.js";import{D as xe}from"./Drawer-949c18c6.js";import{F as Ae,a as ge}from"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import{U as _e}from"./Upload-fb34ce03.js";import{b as sa,c as ye,d as ta,e as na,f as la}from"./DynamicTablesService-963fe77b.js";import{c as Oe,a as ra,F as Ue,b as qe,d as je,i as ia,h as oa}from"./index.esm-70ab539c.js";import{P as Ve}from"./papaparse.min-f30b4da6.js";import{D as ca,H as da}from"./index-a22a3546.js";import{u as ma,a as ua}from"./useDrop-02b0e5d7.js";import{D as pa,E as ha,k as xa,F as ga,aA as ya,G as ja,aB as ba,g as fa}from"./vendor-devex-33a39e11.js";import{u as va,a as Fe,n as Na,P as Ca,D as Sa,c as wa,C as Da}from"./core.esm-4386752a.js";import{s as ka,S as Ta,v as Fa,u as Ea,a as La}from"./sortable.esm-0625cd17.js";import{C as Ia}from"./ConfirmDialog-3202eb3d.js";import{a as Ma}from"./index-e4c6057f.js";import{S as Pa}from"./StickyFooter-5b934274.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./FileSaver.min-20f3f13a.js";import"./mapView-ab35acaa.js";import"./esm-f306d015.js";import"./lodash-306e3f66.js";import"./DensitySelector-a2c1c68f.js";import"./NoData-8c485a3a.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";fe("dynamicTables",be);const Ee=[{label:"Text Field",value:"text"},{label:"Text Area",value:"textarea"},{label:"Dropdown",value:"dropdown"},{label:"Multi Select Dropdown",value:"multiselect"},{label:"Upload Document",value:"upload"},{label:"Rich Text Area",value:"richtext"},{label:"Date Picker",value:"datepicker"},{label:"Date and Time Picker",value:"datetimepicker"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Color Picker",value:"colorPicker"}],Ce={name:"",displayName:"",type:"string",required:!1,maxLength:255,minimum:0,maximum:0,defaultValue:"",primaryKey:!1,pattern:"",enum:[],format:"",description:"",customValidation:{},columnType:"text",dataSource:"",dateFormat:"",uiConfig:null},Ra=Oe().shape({title:ra().required("Title is Required")}),Aa=p=>{const o=[],h=t=>{var u,d;for(const g of t)g.isView&&o.push({value:g.id,label:g.menuName}),(d=(u=g.childMenus)==null?void 0:u.$values)!=null&&d.length&&h(g.childMenus.$values)};return h(p),o.sort((t,u)=>t.label.localeCompare(u.label))},_a=({setIsOpen:p})=>{const[o,h]=m.useState(0),[t,u]=m.useState([]),[d,g]=m.useState({...Ce}),[l,F]=m.useState({}),[A,E]=m.useState({}),[j,S]=m.useState(null),[L,_]=m.useState(null),[U,K]=m.useState(!1),[R,z]=m.useState([]),[y,v]=m.useState({}),{loading:k,dynamicTableList:c}=de(s=>s.dynamicTables.data),w=ve(),[T,P]=m.useState([]),[O,J]=m.useState({});m.useEffect(()=>{(async()=>{var r;const n=localStorage.getItem(Je);if(n){const C=await Xe(n,"default"),b=((r=C==null?void 0:C.data)==null?void 0:r.$values)||[];z(Aa(b))}})()},[]);const Q=()=>{w(ie({data:[],total:0}))};m.useEffect(()=>{Q()},[w]);const H=(s,n)=>{g(r=>({...r,[s]:n})),F(r=>({...r,[s]:""}))},ee=s=>{const n={};return(!s.name||!s.name.toString().trim())&&(n.name="Field Name is required"),(!s.displayName||!s.displayName.toString().trim())&&(n.displayName="Display Name is required"),s.type||(n.type="Type is required"),s.type==="string"&&(!s.maxLength||s.maxLength<=0)&&(n.maxLength="Length must be greater than 0"),s.type==="date"&&!(s.dateFormat&&s.dateFormat.toString().trim())&&(n.dateFormat="Date format is required for date fields"),n},oe=()=>{const s=ee(d);if(Object.keys(s).length){F(s);return}if(t.some(r=>r.name.trim().toLowerCase()===d.name.trim().toLowerCase())){F({name:"A column with this field name already exists"});return}u(r=>[...r,{...d,_id:se()}]),g({...Ce}),F({})},ce=s=>{const n=t[s];u(r=>r.filter((C,b)=>b!==s)),J(r=>{const C={...r};return delete C[n.name],C})},te=s=>{const n=t.find(r=>r._id===s);n&&(S(s),_({...n}))},B=()=>{S(null),_(null),F({})},ne=()=>{if(!L||!j)return;const s=t.findIndex(I=>I._id===j);if(s===-1)return;const n=ee(L);if(Object.keys(n).length){F(n);return}const r=t[s].name,C=L.name??"";if(t.some((I,M)=>M!==s&&I.name.trim().toLowerCase()===C.trim().toLowerCase())){F({name:"A column with this field name already exists"});return}u(I=>I.map((M,re)=>re===s?{...L,_id:j}:M)),J(I=>{if(r===C)return I;const M={...I};return I[r]&&!I[C]&&(M[C]=I[r]),delete M[r],M}),S(null),_(null),F({})},se=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random()}`,a=(s,n)=>{n<0||n>=t.length||u(r=>{const C=[...r],[b]=C.splice(s,1);return C.splice(n,0,b),C})},i=(s,n)=>{v(s),h(1)},N=s=>h(s),x=()=>{N(0)};function f(s){return s.filter(r=>r.primaryKey===!0)[0]}const X=async()=>{var r,C;if((t==null?void 0:t.length)===0){G.push(e.jsx(Y,{title:"Warning",type:"warning",children:"Oops! Looks like the schema or data is missing. Please review and try again"}),{placement:"top-center"});return}const s=t.map(b=>({...b,uiConfig:O[b.name]||b.uiConfig||null})),n={tableName:(y==null?void 0:y.title)??"",description:(y==null?void 0:y.description)??"",schema:{tableName:(y==null?void 0:y.title)??"",description:(y==null?void 0:y.description)??"",columns:s.map(({_id:b,primaryKey:I,...M})=>M),primaryKeys:(()=>{const b=f(s);return b!=null&&b.name?[b.name]:[]})(),uniqueConstraints:[],indexes:[]}};try{K(!0);const I=await sa(n);I.success?(p(!1),G.push(e.jsx(Y,{title:"Success",type:"success",children:I.message}),{placement:"top-center"}),w(ie({data:[],total:0}))):G.push(e.jsx(Y,{title:"Failed",type:"danger",children:I.message}),{placement:"top-center"})}catch(b){G.push(e.jsx(Y,{triggerByToast:!0,title:"Failed",type:"danger",children:((C=(r=b==null?void 0:b.response)==null?void 0:r.data)==null?void 0:C.message)||"Failed"}),{placement:"top-center"})}finally{K(!1)}},D=s=>{if(!s)return;let n=!1;Ve.parse(s,{header:!0,skipEmptyLines:!0,dynamicTyping:!1,chunkSize:1024*1024,chunk:(r,C)=>{if(!n&&r.meta.fields){const b=r.meta.fields.map(I=>({name:I,type:"string",length:255,columnType:"text",dataSource:""}));P(b),n=!0}},complete:()=>{},error:r=>{console.error("CSV parse error:",r),G.push(e.jsx(Y,{title:"CSV Parse Error",type:"danger",children:"Failed to parse CSV file. Please check the format."}),{placement:"top-center"}),P([])}})},$=()=>{if(T.length===0)return;const s=T.map(n=>({...{_id:se(),name:n.name,displayName:n.displayName||ae(n.name),type:n.type,required:n.required??!1,primaryKey:n.primaryKey??!1,columnType:n.columnType||"text",dataSource:n.dataSource||"",format:"",description:"",uiConfig:null},...n.type==="string"?{maxLength:n.length??255}:{}}));u(n=>{const r=new Set(n.map(C=>C.name));return[...n,...s.filter(C=>!r.has(C.name))]}),P([])},Z=(s,n,r)=>{P(C=>C.map((b,I)=>n==="primaryKey"?{...b,primaryKey:I===s?!!r:!1}:I!==s?b:{...b,[n]:r}))},ae=s=>s.replace(/_/g," ").replace(/\s+/g," ").trim().replace(/\w\S*/g,n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()),le=()=>{h(0),v({}),P([]),u([]),g({...Ce}),_(null),J({})},Ne=async(s,n)=>{var r;try{const C=await ye(n),b=(r=C==null?void 0:C.data)==null?void 0:r.schemaDefinition,I=typeof b=="string"?JSON.parse(b):b,re=((I==null?void 0:I.Columns)??[]).map(W=>({value:String((W==null?void 0:W.Name)??""),label:String((W==null?void 0:W.DisplayName)??(W==null?void 0:W.Name)??"")}));E(W=>({...W,[s]:re}))}catch{G.push(e.jsx(Y,{title:"Error",type:"danger",children:"Failed to load fields for the selected table."}),{placement:"top-center"})}},me=(s,n,r)=>{n==="dataSource"&&Ne(s,r),J(C=>({...C,[s]:{labels:[],mode:"static",staticValues:"",dataSource:"",...C[s]||{},[n]:r}}))},ze=m.useMemo(()=>(c==null?void 0:c.map(s=>({value:s.id,label:s.tableName})))??[],[c]);return e.jsxs("div",{className:"mt-2 bg-white",children:[o===0&&e.jsx(Ue,{initialValues:{title:"",description:""},validationSchema:Ra,onSubmit:i,children:({isSubmitting:s,errors:n,touched:r})=>e.jsxs(qe,{children:[e.jsxs(Ae,{className:"flex flex-wrap",children:[e.jsx(ge,{asterisk:!0,className:"w-full md:w-1/3 px-2",invalid:n.title&&r.title,errorMessage:n.title,label:"Title",children:e.jsx(je,{name:"title",children:({field:C})=>e.jsx(V,{...C,placeholder:"Title"})})}),e.jsx(ge,{className:"w-full md:w-1/3 px-2",errorMessage:"",label:"Description",children:e.jsx(je,{name:"description",children:({field:C})=>e.jsx(V,{...C,placeholder:"Description"})})})]}),e.jsxs("div",{className:"md:flex items-center justify-end w/full mb-4",children:[e.jsx(q,{size:"sm",className:"mr-2",type:"button",disabled:s,onClick:()=>p(!1),children:"Cancel"}),e.jsx(q,{size:"sm",variant:"solid",type:"submit",loading:s,children:"Next"})]})]})}),o===1&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Import Columns"}),e.jsx("small",{children:" We generate a dynamic unique ID for each column. You can either remove it from the CSV or edit the column as needed. "}),e.jsx("div",{className:"mb-3"}),e.jsx("div",{className:"w-full flex justify-center",children:e.jsx("div",{className:"w-1/2",children:e.jsx(_e,{draggable:!0,accept:"text/csv",cropNeeded:!1,uploadLimit:1,onChange:async s=>{if(s&&s[0]){const n=s[0];D(n)}}})})})]}),T.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Map CSV Columns"}),T.length>20&&e.jsxs("p",{className:"text-yellow-600 text-sm mb-2",children:["Your CSV has ",T.length," columns. Only the first 20 are shown. Please edit the CSV to keep the most relevant columns."]}),e.jsx("div",{className:"overflow-auto border rounded",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-100",children:[e.jsx("th",{className:"p-2 border text-left",children:"Column Name"}),e.jsx("th",{className:"p-2 border text-left",children:"Display Name"}),e.jsx("th",{className:"p-2 border text-left",children:"Type"}),e.jsx("th",{className:"p-2 border text-left",children:"Required"}),e.jsx("th",{className:"p-2 border text-left",children:"Primary Key"}),e.jsx("th",{className:"p-2 border text-left",children:"Length (VARCHAR)"})]})}),e.jsx("tbody",{children:T.slice(0,20).map((s,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"p-2 border",children:e.jsx("input",{type:"text",value:s.name,className:"border p-1 w-full",onChange:r=>Z(n,"name",r.target.value)})}),e.jsx("td",{className:"p-2 border",children:e.jsx("input",{type:"text",value:s.displayName??ae(s.name)??"",placeholder:ae(s.name)??"",className:"border p-1 w-full",onChange:r=>Z(n,"displayName",r.target.value)})}),e.jsx("td",{className:"p-2 border",children:e.jsxs("select",{value:s.type,className:"border p-1 rounded w-full",onChange:r=>Z(n,"type",r.target.value),children:[e.jsx("option",{value:"string",children:"string"}),e.jsx("option",{value:"number",children:"number"}),e.jsx("option",{value:"integer",children:"integer"}),e.jsx("option",{value:"boolean",children:"boolean"}),e.jsx("option",{value:"date",children:"date"}),e.jsx("option",{value:"datetime",children:"datetime"}),e.jsx("option",{value:"file",children:"file"})]})}),e.jsx("td",{className:"p-2 border text-center",children:e.jsx("input",{type:"checkbox",checked:s.required||!1,onChange:r=>Z(n,"required",r.target.checked)})}),e.jsx("td",{className:"p-2 border text-center",children:e.jsx("input",{type:"checkbox",checked:s.primaryKey||!1,onChange:r=>Z(n,"primaryKey",r.target.checked)})}),e.jsx("td",{className:"p-2 border",children:s.type==="string"&&e.jsx("input",{type:"number",min:1,max:65535,value:s.maxLength??255,className:"border p-1 w-20",onChange:r=>Z(n,"length",Number(r.target.value))})})]},n))})]})}),e.jsx(q,{size:"sm",variant:"solid",className:"mt-3",loading:U,disabled:U,onClick:$,children:U?"Uploading…":"Confirm Imported Columns"})]}),e.jsx("h4",{className:"text-lg font-semibold mb-2",children:" Add Column Manually"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsx(V,{type:"text",placeholder:"Field Name",value:d.name,className:l.name?"border-red-500":"",onChange:s=>H("name",s.target.value)}),l.name&&e.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.name})]}),e.jsxs("div",{children:[e.jsx(V,{type:"text",placeholder:"Display Name",value:d.displayName,className:l.displayName?"border-red-500":"",onChange:s=>H("displayName",s.target.value)}),l.displayName&&e.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.displayName})]}),e.jsxs("div",{children:[e.jsxs("select",{value:d.type,className:`dark:bg-gray-700 ring-1 bg-gray-100 focus:bg-transparent rounded-md dark:bg-gray-700 ring-1 ring-black/5 focus:outline-none p-1.5 w-full ${l.type?"border-red-500":""}`,onChange:s=>H("type",s.target.value),children:[e.jsx("option",{value:"",children:"Select Type"}),e.jsx("option",{value:"string",children:"string"}),e.jsx("option",{value:"number",children:"number"}),e.jsx("option",{value:"integer",children:"integer"}),e.jsx("option",{value:"boolean",children:"boolean"}),e.jsx("option",{value:"date",children:"date"}),e.jsx("option",{value:"datetime",children:"datetime"}),e.jsx("option",{value:"file",children:"file"})]}),l.type&&e.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.type})]}),d.type==="string"&&e.jsxs("div",{children:[e.jsx(V,{type:"number",placeholder:"Length",value:d.maxLength||"",className:l.maxLength?"border-red-500":"",onChange:s=>H("maxLength",Number(s.target.value))}),l.maxLength&&e.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.maxLength})]}),e.jsx("div",{children:e.jsx(V,{type:"text",placeholder:"Description",value:d.description,onChange:s=>H("description",s.target.value)})}),e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:d.required,onChange:s=>H("required",s.target.checked)}),e.jsx("span",{children:"Required"})]}),e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:d.primaryKey,onChange:s=>H("primaryKey",s.target.checked)}),e.jsx("span",{children:"Primary Key"})]})]})]}),e.jsx(q,{variant:"solid",onClick:oe,children:"Add Column"}),e.jsxs("div",{className:"mt-8",children:[e.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Added Columns"}),e.jsx("small",{children:" Configure how each column should appear in the UI by editing each column "}),t.length===0?e.jsx("p",{className:"text-gray-500",children:"No columns added yet."}):e.jsx("div",{className:"max-h-72 overflow-y-auto p-3",children:e.jsx(ca,{backend:da,children:e.jsx("ul",{className:"space-y-3",children:t.map((s,n)=>e.jsx(Oa,{col:s,idx:n,editingId:j,columns:t,moveColumn:a,editBuffer:L,setEditBuffer:_,startEdit:te,handleRemove:ce,saveEdit:ne,cancelEdit:B},s._id))})})})]}),e.jsxs("div",{className:"mt-8",children:[e.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Schema"}),e.jsx("pre",{className:"text-sm p-4 rounded overflow-x-auto max-h-72 whitespace-pre-wrap bg-gray-50",children:JSON.stringify({schema:t},null,2)})]}),e.jsxs("div",{className:"md:flex items-center justify-end w-full mb-4 mt-8",children:[e.jsx(q,{size:"sm",className:"mr-2",onClick:x,children:"Back"}),e.jsx(q,{size:"sm",className:"mr-2",variant:"twoTone",onClick:le,children:"Reset"}),e.jsx(q,{loading:k||U,disabled:t.length===0,size:"sm",variant:"solid",onClick:()=>N(2),children:"Configure UI"})]})]}),o===2&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mb-4",children:e.jsx("h4",{className:"text-lg font-semibold mb-2",children:" UI Configuration"})}),e.jsx("div",{className:"overflow-auto border rounded mb-6",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-100 text-left",children:[e.jsx("th",{className:"p-2 border",children:"Column"}),e.jsx("th",{className:"p-2 border",children:"Type"}),e.jsx("th",{className:"p-2 border",children:"UI Type"}),e.jsx("th",{className:"p-2 border",children:"Configuration"})]})}),e.jsx("tbody",{children:t.map((s,n)=>{const r=["dropdown","multiselect"].includes(s.columnType),b={...s.uiConfig||{labels:[],mode:"static",staticValues:"",dataSource:""},...O[s.name]||{}},I=A[s.name]||[];return e.jsxs("tr",{className:r?"":"bg-gray-50",children:[e.jsx("td",{className:"p-2 border",children:e.jsxs("div",{children:[e.jsx("div",{className:"font-medium",children:s.displayName}),e.jsx("div",{className:"text-xs text-gray-400",children:s.name})]})}),e.jsx("td",{className:"p-2 border",children:s.type}),e.jsx("td",{className:"p-2 border",children:s.columnType}),e.jsx("td",{className:"p-2 border",children:r?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("label",{className:"text-sm font-medium",children:"Mode:"}),e.jsxs("select",{className:"border p-1 rounded",value:b.mode,onChange:M=>me(s.name,"mode",M.target.value),children:[e.jsx("option",{value:"static",children:"Static Values"}),e.jsx("option",{value:"table",children:"From Table"})]})]}),b.mode==="static"&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-700",children:"Enter comma-separated values"}),e.jsx(V,{type:"textarea",placeholder:"Ex: Active, Inactive, Pending",value:b.staticValues,onChange:M=>me(s.name,"staticValues",M.target.value)}),e.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"These values will appear directly in the dropdown."})]}),b.mode==="table"&&e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-700",children:"Data Source Table"}),e.jsxs("select",{className:"border p-1 rounded w-full",value:b.dataSource,onChange:M=>me(s.name,"dataSource",M.target.value),children:[e.jsx("option",{value:"",children:"Select table"}),ze.map(M=>e.jsx("option",{value:M.value,children:M.label},M.value))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-700 block mb-1",children:"Label Field"}),e.jsx("div",{className:"border rounded p-2 space-y-1 max-h-32 overflow-auto",children:I.map(M=>{var ke,Te;const re=(ke=b.labels)==null?void 0:ke.includes(M.value),W=!re&&(((Te=b.labels)==null?void 0:Te.length)??0)>=3;return e.jsxs("label",{className:`flex items-center gap-2 cursor-pointer ${W?"opacity-50 cursor-not-allowed":""}`,children:[e.jsx("input",{type:"checkbox",value:M.value,checked:re,disabled:W,onChange:$e=>{let ue=[...b.labels??[]];$e.target.checked?ue.push(M.value):ue=ue.filter(Ge=>Ge!==M.value),me(s.name,"labels",ue)}}),e.jsx("span",{children:M.label})]},M.value)})}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Selected: ",(b.labels||[]).join(", ")]})]})]})]}):e.jsx("span",{className:"text-gray-400 text-xs",children:"Not applicable"})})]},n)})})]})}),e.jsxs("div",{className:"flex justify-end mt-6",children:[e.jsx(q,{size:"sm",className:"mr-2",onClick:()=>N(1),children:"Back"}),e.jsx(q,{size:"sm",variant:"solid",loading:U,onClick:X,children:"Submit"})]})]})]})},Oa=m.memo(function({col:o,idx:h,editingId:t,columns:u,moveColumn:d,setEditBuffer:g,editBuffer:l,startEdit:F,handleRemove:A,saveEdit:E,cancelEdit:j}){var k;const S=t===o._id,L=m.useRef(null),_="COLUMN_ROW",[{isDragging:U},K,R]=ma(()=>({type:_,item:()=>({id:o._id}),collect:c=>({isDragging:c.isDragging()})}),[o._id]),[{handlerId:z},y]=ua(()=>({accept:_,collect:c=>({handlerId:c.getHandlerId()}),hover(c,w){var H;if(!L.current||!(c!=null&&c.id))return;const T=u.findIndex(ee=>ee._id===c.id),P=h;if(T===-1||P===-1||T===P)return;const O=L.current.getBoundingClientRect(),J=(O.bottom-O.top)/2,Q=(((H=w.getClientOffset())==null?void 0:H.y)??0)-O.top;T<P&&Q<J||T>P&&Q>J||d(T,P)}}),[u,h]),v=c=>{L.current=c,c&&R(y(c))};return e.jsx("li",{ref:v,"data-handler-id":z,className:`bg-gray-100 px-4 py-2 rounded shadow-sm ${U?"opacity-50":""}`,children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{ref:K,className:"cursor-grab p-1 rounded hover:bg-gray-200 shrink-0",title:"Drag to reorder",children:e.jsx(Me,{})}),e.jsx("div",{className:"text-gray-800 flex-1 min-w-0",children:S?e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-5 gap-2",children:[e.jsx(V,{value:(l==null?void 0:l.name)??"",placeholder:"Field Name",onChange:c=>g(w=>({...w,name:c.target.value}))}),e.jsx(V,{value:(l==null?void 0:l.displayName)??"",placeholder:"Display Name",onChange:c=>g(w=>({...w,displayName:c.target.value}))}),e.jsxs("select",{className:"dark:bg-gray-700 ring-1 bg-gray-100 focus:bg-transparent rounded-md dark:bg-gray-700 ring-1 ring-black/5 focus:outline-none p-1.5",value:(l==null?void 0:l.type)??"string",onChange:c=>g(w=>({...w,type:c.target.value})),children:[e.jsx("option",{value:"string",children:"string"}),e.jsx("option",{value:"number",children:"number"}),e.jsx("option",{value:"integer",children:"integer"}),e.jsx("option",{value:"boolean",children:"boolean"}),e.jsx("option",{value:"date",children:"date"}),e.jsx("option",{value:"datetime",children:"datetime"}),e.jsx("option",{value:"file",children:"file"})]}),(l==null?void 0:l.type)==="string"&&e.jsx(V,{type:"number",value:(l==null?void 0:l.maxLength)??255,placeholder:"Length",onChange:c=>g(w=>({...w,maxLength:Number(c.target.value)}))}),e.jsxs("select",{className:"dark:bg-gray-700 ring-1 bg-gray-100 focus:bg-transparent rounded-md dark:bg-gray-700 ring-1 ring-black/5 focus:outline-none p-1.5",value:(l==null?void 0:l.columnType)??"",onChange:c=>g(w=>({...w,columnType:c.target.value})),children:[e.jsx("option",{value:"",children:"Select UI"}),Ee.map(c=>e.jsx("option",{value:c.value,children:c.label},c.value))]})]}):e.jsxs("div",{className:"truncate",children:[e.jsx("strong",{children:o.displayName})," (",e.jsx("code",{children:o.name}),")",o.type==="string"&&` (${o.maxLength??255})`,e.jsxs("span",{className:"ml-2 text-gray-600",children:["• ",o.type]}),o.columnType&&e.jsxs("span",{className:"ml-2 text-blue-600 text-sm",children:["[",((k=Ee.find(c=>c.value===o.columnType))==null?void 0:k.label)||o.columnType,"]"]}),o.dataSource&&e.jsxs("span",{className:"ml-2 text-gray-500 text-sm",children:["(Source: ",o.dataSource,")"]})]})}),e.jsx("div",{className:"flex items-center gap-2 shrink-0",children:S?e.jsxs(e.Fragment,{children:[e.jsx(He,{className:"text-green-600 cursor-pointer",size:20,title:"Save",onClick:E}),e.jsx(We,{className:"text-red-500 cursor-pointer",size:20,title:"Cancel",onClick:j})]}):e.jsxs(e.Fragment,{children:[e.jsx(Pe,{className:"text-blue-500 cursor-pointer",size:20,title:"Edit",onClick:()=>F(o._id)}),e.jsx(Re,{className:"text-red-500 cursor-pointer",size:20,title:"Delete",onClick:()=>A(h)})]})})]})})});function Ua({defaultColumns:p,data:o,defaultConfig:h={}}){var F,A,E,j,S,L,_,U,K;const[t,u]=m.useState(o),[d,g]=m.useState({columns:p,sort:{column:"id",order:"asc"},groupBy:[],pageSize:15,features:{filterRow:!0,groupPanel:!0,columnReordering:!0,paging:!0,sorting:!0,grouping:!0,editing:!0},...h}),l=R=>{R.cancel=!0;const z=R.changes;z.length>0&&u(y=>{let v=[...y];return z.forEach(k=>{if(k.type==="insert")v.push(k.data);else if(k.type==="update"){const c=v.findIndex(w=>w.id===k.key);c>-1&&(v[c]={...v[c],...k.data})}else k.type==="remove"&&(v=v.filter(c=>c.id!==k.key))}),v})};return e.jsx("div",{className:"w-full overflow-x-auto",children:e.jsx("div",{className:"",children:e.jsxs(pa,{dataSource:t,showBorders:!1,allowColumnResizing:!0,columnResizingMode:"widget",columnAutoWidth:!0,allowColumnReordering:(F=d.features)==null?void 0:F.columnReordering,defaultSorting:(A=d.features)!=null&&A.sorting?[{selector:d.sort.column,desc:d.sort.order==="desc"}]:[],onSaving:l,children:[e.jsx(ha,{mode:"batch",allowAdding:(E=d.features)==null?void 0:E.editing,allowUpdating:(j=d.features)==null?void 0:j.editing,allowDeleting:(S=d.features)==null?void 0:S.editing}),e.jsx(xa,{defaultPageSize:d.pageSize,enabled:(L=d.features)==null?void 0:L.paging}),e.jsx(ga,{visible:(_=d.features)==null?void 0:_.filterRow}),e.jsx(ya,{mode:(U=d.features)!=null&&U.sorting?"multiple":"none"}),e.jsx(ja,{visible:(K=d.features)==null?void 0:K.groupPanel}),e.jsx(ba,{autoExpandAll:!1}),d.columns.filter(R=>R.visible).map(R=>e.jsx(fa,{dataField:R.dataField,width:R.width,groupIndex:d.groupBy.indexOf(R.dataField)>=0?d.groupBy.indexOf(R.dataField):void 0},R.dataField))]})})})}fe("dynamicTables",be);const qa=["text","dropdown","multiselect","date","datetime","boolean","number","file"],Le={name:"",displayName:"",description:"",type:"",maxLength:void 0,required:!1,primaryKey:!1,columnType:"text"},Va=({tableId:p,onClose:o})=>{const h=ve(),{dynamicTableList:t}=de(a=>a.dynamicTables.data),[u,d]=m.useState(0),[g,l]=m.useState([]),[F,A]=m.useState(null),[E,j]=m.useState(null),[S,L]=m.useState(Le),[_,U]=m.useState({}),[K,R]=m.useState({}),[z,y]=m.useState({}),[v,k]=m.useState(new Set),[c,w]=m.useState([]),[T,P]=m.useState(!1);m.useEffect(()=>{h(ie({}))},[h]),m.useEffect(()=>{async function a(){var X;const i=await ye(p),x=(typeof((X=i==null?void 0:i.data)==null?void 0:X.schemaDefinition)=="string"?JSON.parse(i.data.schemaDefinition):i.data.schemaDefinition).Columns.map(D=>({_id:crypto.randomUUID(),name:D.Name,displayName:D.DisplayName,description:D.Description||"",type:D.Type==="guid"?"string":D.Type,maxLength:D.MaxLength,required:D.Required,primaryKey:D.PrimaryKey,columnType:D.ColumnType??"text",uiConfig:D.UiConfig?{mode:D.UiConfig.Mode??"static",staticValues:D.UiConfig.StaticValues??"",dataSource:D.UiConfig.DataSource??"",labels:D.UiConfig.Labels??[]}:null,isNew:!1}));l(x);const f={};x.forEach(D=>{D.uiConfig&&(f[D.name]=D.uiConfig)}),R(f),x.forEach(D=>{var $;(($=D.uiConfig)==null?void 0:$.mode)==="table"&&D.uiConfig.dataSource&&te(D.name,D.uiConfig.dataSource)})}a()},[p]);const O=()=>{const a={};return S.name.trim()||(a.name="Field name required"),S.displayName.trim()||(a.displayName="Display name required"),S.type||(a.type="Type required"),S.type==="string"&&(!S.maxLength||S.maxLength<=0)&&(a.maxLength="Length must be > 0"),U(a),Object.keys(a).length===0},J=()=>{O()&&(l(a=>[{_id:crypto.randomUUID(),...S,isNew:!0,uiConfig:null},...a]),L(Le),U({}))},Q=a=>{A(a._id),j({...a})},H=()=>{E&&(l(a=>a.map(i=>i._id===E._id?E:i)),E.isNew||k(a=>new Set(a).add(E.name)),A(null),j(null))},ee=a=>{const i=g.find(N=>N._id===a);l(N=>N.filter(x=>x._id!==a)),i&&(i.isNew||w(N=>[...N,i.name]),R(N=>{const x={...N};return delete x[i.name],x}))},oe=va(Fe(Ca),Fe(Na,{coordinateGetter:ka})),ce=a=>{const{active:i,over:N}=a;if(!N||i.id===N.id)return;const x=g.findIndex($=>$._id===i.id),f=g.findIndex($=>$._id===N.id),X=La(g,x,f);l(X);const D=new Set(v);X.forEach(($,Z)=>{var ae;!$.isNew&&((ae=g[Z])==null?void 0:ae._id)!==$._id&&D.add($.name)}),k(D)},te=async(a,i)=>{var f;const N=await ye(i),x=typeof((f=N==null?void 0:N.data)==null?void 0:f.schemaDefinition)=="string"?JSON.parse(N.data.schemaDefinition):N.data.schemaDefinition;y(X=>({...X,[a]:x.Columns.map(D=>({value:D.Name,label:D.DisplayName||D.Name}))}))},B=(a,i,N)=>{i==="dataSource"&&te(a,N),g.some(f=>f.name===a&&!f.isNew)&&k(f=>new Set(f).add(a)),R(f=>({...f,[a]:{mode:"static",staticValues:"",labels:[],dataSource:"",...f[a]||{},[i]:N}}))},ne=m.useMemo(()=>(t==null?void 0:t.map(a=>({value:a.id,label:a.tableName})))??[],[t]),se=async()=>{P(!0);try{const a=g.filter(x=>x.isNew),i=g.filter(x=>!x.isNew),N=[...a.map(x=>({operation:"ADD_COLUMN",columnName:x.name,columnDefinition:{name:x.name,displayName:x.displayName,description:x.description,type:x.type,required:x.required,maxLength:x.maxLength,primaryKey:x.primaryKey,columnType:x.columnType,uiConfig:K[x.name]??null}})),...c.map(x=>({operation:"REMOVE_COLUMN",columnName:x})),...i.filter(x=>v.has(x.name)).map(x=>{const f=K[x.name];return{operation:"MODIFY_COLUMN",columnName:x.name,columnDefinition:{name:x.name,displayName:x.displayName,description:x.description,type:x.type,required:x.required,maxLength:x.maxLength,primaryKey:x.primaryKey,columnType:x.columnType,uiConfig:f?{mode:f.mode,dataSource:f.dataSource,staticValues:f.staticValues,labels:f.labels}:void 0}}})];N.length>0&&await ta(p,{modifications:N,expectedSchemaVersion:0}),h(ie({})),G.push(e.jsx(Y,{title:"Success",type:"success",children:"Table schema updated successfully."}),{placement:"top-center"}),o()}catch{G.push(e.jsx(Y,{title:"Error",type:"danger",children:"Failed to update schema. Please try again."}),{placement:"top-center"})}finally{P(!1)}};return e.jsxs("div",{className:" bg-white ",children:[u===0&&e.jsxs(e.Fragment,{children:[e.jsx("h4",{className:"font-semibold mb-3",children:"Edit Columns"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4",children:[e.jsx(V,{placeholder:"Field Name",value:S.name,className:_.name?"border-red-500":"",onChange:a=>L(i=>({...i,name:a.target.value}))}),e.jsx(V,{placeholder:"Display Name",value:S.displayName,onChange:a=>L(i=>({...i,displayName:a.target.value}))}),e.jsxs("select",{className:"h-10 bg-gray-100 focus:bg-transparent rounded-md dark:bg-gray-700 ring-1 ring-black/5 focus:outline-none p-1.5",value:S.type,onChange:a=>L(i=>({...i,type:a.target.value})),children:[e.jsx("option",{value:"",children:"Select Type"}),e.jsx("option",{value:"string",children:"string"}),e.jsx("option",{value:"number",children:"number"}),e.jsx("option",{value:"integer",children:"integer"}),e.jsx("option",{value:"boolean",children:"boolean"}),e.jsx("option",{value:"date",children:"date"}),e.jsx("option",{value:"datetime",children:"datetime"}),e.jsx("option",{value:"file",children:"file"})]}),e.jsx("select",{className:"h-10 bg-gray-100 focus:bg-transparent rounded-md dark:bg-gray-700 ring-1 ring-black/5 focus:outline-none p-1.5",value:S.columnType,onChange:a=>L(i=>({...i,columnType:a.target.value})),children:qa.map(a=>e.jsx("option",{value:a,children:a},a))}),e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:S.required,onChange:a=>L(i=>({...i,required:a.target.checked}))}),e.jsx("span",{children:"Required"})]}),e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:S.primaryKey,onChange:a=>L(i=>({...i,primaryKey:a.target.checked}))}),e.jsx("span",{children:"Primary Key"})]}),S.type==="string"&&e.jsxs("div",{children:[e.jsx(V,{type:"number",placeholder:"Length",value:S.maxLength||"",className:_.maxLength?"border-red-500":"",onChange:a=>L(i=>({...i,maxLength:Number(a.target.value)}))}),_.maxLength&&e.jsx("p",{className:"text-red-500 text-sm mt-1",children:_.maxLength})]})]})]}),e.jsx(q,{variant:"solid",onClick:J,children:"Add Column"}),e.jsx(Sa,{sensors:oe,collisionDetection:wa,onDragEnd:ce,children:e.jsx(Ta,{items:g.map(a=>a._id),strategy:Fa,children:e.jsx("ul",{className:"space-y-3 mt-6",children:g.map(a=>e.jsx(Ka,{col:a,isEditing:F===a._id,editBuffer:E,startEdit:Q,saveEdit:H,removeColumn:ee,setEditBuffer:j,setEditingId:A},a._id))})})}),e.jsx("div",{className:"flex justify-end mt-6",children:e.jsx(q,{variant:"solid",onClick:()=>d(1),children:"Configure UI"})})]}),u===1&&e.jsxs(e.Fragment,{children:[e.jsx("h4",{className:"text-lg font-semibold mb-4",children:"UI Configuration"}),e.jsx("div",{className:"overflow-auto border rounded mb-6",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-100",children:[e.jsx("th",{className:"p-2 border",children:"Column"}),e.jsx("th",{className:"p-2 border",children:"Type"}),e.jsx("th",{className:"p-2 border",children:"UI Type"}),e.jsx("th",{className:"p-2 border",children:"Configuration"})]})}),e.jsx("tbody",{children:g.map(a=>{const i=["dropdown","multiselect"].includes(a.columnType),N=K[a.name]||{mode:"static",staticValues:"",dataSource:"",labels:[]},x=z[a.name]||[];return e.jsxs("tr",{children:[e.jsxs("td",{className:"p-2 border",children:[e.jsx("div",{className:"font-medium",children:a.displayName}),e.jsx("div",{className:"text-xs text-gray-400",children:a.name})]}),e.jsx("td",{className:"p-2 border",children:a.type}),e.jsx("td",{className:"p-2 border",children:a.columnType}),e.jsx("td",{className:"p-2 border",children:i?e.jsxs(e.Fragment,{children:[e.jsxs("select",{className:"border p-1 rounded mb-2",value:N.mode,onChange:f=>B(a.name,"mode",f.target.value),children:[e.jsx("option",{value:"static",children:"Static"}),e.jsx("option",{value:"table",children:"From Table"})]}),N.mode==="static"&&e.jsx(V,{type:"textarea",value:N.staticValues,onChange:f=>B(a.name,"staticValues",f.target.value)}),N.mode==="table"&&e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-700",children:"Data Source Table"}),e.jsxs("select",{className:"border p-1 rounded w-full",value:N.dataSource,onChange:f=>B(a.name,"dataSource",f.target.value),children:[e.jsx("option",{value:"",children:"Select table"}),ne.map(f=>e.jsx("option",{value:f.value,children:f.label},f.value))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-700 block mb-1",children:"Label Field"}),e.jsx("div",{className:"border rounded p-2 space-y-1 max-h-32 overflow-auto",children:x.map(f=>{var $,Z;const X=($=N.labels)==null?void 0:$.includes(f.value),D=!X&&(((Z=N.labels)==null?void 0:Z.length)??0)>=3;return e.jsxs("label",{className:`flex items-center gap-2 cursor-pointer ${D?"opacity-50 cursor-not-allowed":""}`,children:[e.jsx("input",{type:"checkbox",value:f.value,checked:X,disabled:D,onChange:ae=>{let le=[...N.labels??[]];ae.target.checked?le.push(f.value):le=le.filter(Ne=>Ne!==f.value),B(a.name,"labels",le)}}),e.jsx("span",{children:f.label})]},f.value)})}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Selected: ",(N.labels||[]).join(", ")]})]})]})]}):e.jsx("span",{className:"text-gray-400 text-xs",children:"Not applicable"})})]},a._id)})})]})}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(q,{onClick:()=>d(0),children:"Back"}),e.jsx(q,{variant:"solid",loading:T,onClick:se,children:"Submit"})]})]})]})},Ka=p=>{const{attributes:o,listeners:h,setNodeRef:t,transform:u,transition:d,isDragging:g}=Ea({id:p.col._id}),l={transform:Da.Transform.toString(u),transition:d,opacity:g?.5:1};return e.jsx("div",{ref:t,style:l,children:e.jsx(za,{...p,dragHandleProps:{...o,...h}})})},za=m.memo(function({col:o,isEditing:h,editBuffer:t,startEdit:u,saveEdit:d,removeColumn:g,setEditBuffer:l,setEditingId:F,dragHandleProps:A}){return e.jsx("li",{className:"border border-gray-200 p-3 rounded",children:h?e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsx(V,{value:(t==null?void 0:t.name)??"",disabled:!o.isNew,placeholder:"Name",onChange:E=>l(j=>j&&{...j,name:E.target.value})}),e.jsx(V,{value:(t==null?void 0:t.displayName)??"",placeholder:"Display Name",onChange:E=>l(j=>j&&{...j,displayName:E.target.value})}),e.jsxs("select",{className:"dark:bg-gray-700 ring-1 bg-gray-100 focus:bg-transparent rounded-md dark:bg-gray-700 ring-1 ring-black/5 focus:outline-none p-1.5",value:(t==null?void 0:t.type)??"",onChange:E=>l(j=>j&&{...j,type:E.target.value}),children:[e.jsx("option",{value:"",children:"Select Type"}),e.jsx("option",{value:"string",children:"string"}),e.jsx("option",{value:"number",children:"number"}),e.jsx("option",{value:"integer",children:"integer"}),e.jsx("option",{value:"boolean",children:"boolean"}),e.jsx("option",{value:"date",children:"date"}),e.jsx("option",{value:"datetime",children:"datetime"}),e.jsx("option",{value:"file",children:"file"})]}),e.jsx("div",{children:(t==null?void 0:t.type)==="string"&&e.jsx("div",{children:e.jsx(V,{type:"number",placeholder:"Max Length",value:(t==null?void 0:t.maxLength)||"",onChange:E=>l(j=>j&&{...j,maxLength:Number(E.target.value)})})})}),e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:(t==null?void 0:t.required)??!1,onChange:E=>l(j=>j&&{...j,required:E.target.checked})}),e.jsx("span",{children:"Required"})]}),e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:(t==null?void 0:t.primaryKey)??!1,onChange:E=>l(j=>j&&{...j,primaryKey:E.target.checked})}),e.jsx("span",{children:"Primary Key"})]})]}),e.jsxs("div",{className:"col-span-1 flex gap-1 justify-end",children:[e.jsx(q,{variant:"solid",size:"sm",onClick:d,children:"Save"}),e.jsx(q,{variant:"default",size:"sm",className:"ml-2 bg-gray-400 hover:bg-gray-500",onClick:()=>{F(null),l(null)},children:"Cancel"})]})]}):e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{...A,className:"cursor-grab text-gray-400 hover:text-gray-600",children:e.jsx(Me,{})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:o.displayName}),e.jsx("div",{className:"text-xs text-gray-500",children:o.name})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(Pe,{className:"cursor-pointer",onClick:()=>u(o)}),o.isNew?e.jsx(Re,{className:"cursor-pointer text-red-500",onClick:()=>g(o._id)}):e.jsx(Ze,{className:"text-gray-400"})]})]})})});fe("dynamicTableList",be);const $a=()=>{const p=ve(),{deleteConfirmation:o,selectedGrid:h}=de(d=>d.dynamicTables.data),t=()=>{p(we(!1))},u=async()=>{p(we(!1)),await na(h==null?void 0:h.id)&&(p(ie({})),G.push(e.jsx(Y,{title:"Archive",type:"success",duration:2500,children:"Grid Successfully Archived"}),{placement:"top-center"}))};return e.jsx(Ia,{isOpen:o,type:"danger",title:"Archive Grid",confirmButtonColor:"red-600",onClose:t,onRequestClose:t,onCancel:t,onConfirm:u,children:e.jsx("p",{children:"Are you sure you want to archive this grid? All records related to this grid will be marked archived as well."})})},Ie=1,Ga=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv"],Ya=5242880,Ha=(p,o)=>{if(o.length>=Ie)return`You can only upload ${Ie} file(s)`;if(p)for(const h of p){if(!Ga.includes(h.type))return"Please upload a .jpeg, .png or pdf file!";if(h.size>=Ya)return"Upload image cannot be more than 5MB!"}return!0},Wa=({values:p,touched:o,errors:h})=>e.jsxs(De,{className:"mb-4",children:[e.jsx(ge,{asterisk:!0,label:"File",invalid:!!(h.document&&o.document),errorMessage:h.document,children:e.jsx(je,{name:"document",children:({field:t,form:u})=>e.jsx(_e,{draggable:!0,multiple:!1,beforeUpload:Ha,fileList:Array.isArray(p.document)?p.document:[],onChange:d=>{var g;u.setFieldValue(t.name,d),u.setFieldValue("fileName",((g=d==null?void 0:d[0])==null?void 0:g.name)??"")},onFileRemove:d=>u.setFieldValue(t.name,d)})})}),e.jsx(ge,{asterisk:!0,label:"Document Name",invalid:!!(h.fileName&&o.fileName),errorMessage:h.fileName,children:e.jsx(je,{type:"text",autoComplete:"off",name:"fileName",placeholder:"Document Name",component:V})})]}),Ja=Oe().shape({document:ia().of(oa().nullable()).test("file-required","File is required",p=>!!p&&p.length>0).required("File is required")}),Se=p=>p.toLowerCase().replace(/[\s_\-]/g,"").trim();async function Xa(p){var g;const o=await ye(p),h=(g=o==null?void 0:o.data)==null?void 0:g.schemaDefinition;if(!h)return[];let t;try{t=typeof h=="string"?JSON.parse(h):h}catch{throw new Error("Invalid schemaDefinition JSON")}return((t==null?void 0:t.Columns)??[]).map(l=>({key:String((l==null?void 0:l.Name)??""),label:String((l==null?void 0:l.DisplayName)??(l==null?void 0:l.Name)??""),required:!!(l!=null&&l.Required)})).filter(l=>!!l.key)}async function Za(p){try{if(!(p!=null&&p.file))throw new Error("Missing file in data");if(!p.tableId)throw new Error("Missing Table ID");return await la(p.tableId,p.file,"csv",!0,!1,!1,JSON.stringify(p.mapping))}catch(o){throw console.error("Error in import:",o),o}}const Ke=m.forwardRef((p,o)=>{const{initialData:h={fileName:"",document:[]},onDiscard:t,customerId:u,handleApiResponse:d}=p,[g,l]=m.useState([]),[F,A]=m.useState([]),[E,j]=m.useState(!1),[S,L]=m.useState({});m.useEffect(()=>{let y=!0;return j(!0),Xa(u).then(v=>{if(!y)return;A(v.filter(c=>c.key!=="Id"));const k={};v.forEach(c=>{c.key!=="Id"&&(k[c.key]=null)}),L(k)}).catch(v=>{console.error(v),G.push(e.jsx(Y,{title:"Error",type:"danger",duration:2500,children:"Failed to load fields for mapping"}),{placement:"top-center"})}).finally(()=>j(!1)),()=>{y=!1}},[u]);const _=m.useCallback(y=>{Ve.parse(y,{header:!0,preview:1,skipEmptyLines:!0,complete:v=>{const k=(v.meta.fields||[]).filter(Boolean);if(l(k),k.length&&F.length){const c=new Map(k.map(w=>[Se(w),w]));L(w=>{const T={...w};return F.forEach(P=>{if(!T[P.key]){const O=c.get(Se(P.label))??c.get(Se(P.key));O&&(T[P.key]=O)}}),T})}},error:v=>{console.error("CSV parse error:",v),G.push(e.jsx(Y,{title:"CSV Error",type:"danger",duration:2500,children:"Could not read CSV headers"}),{placement:"top-center"})}})},[F]),U=m.useMemo(()=>new Set(Object.values(S).filter(y=>!!y)),[S]),K=m.useCallback(y=>{const v=g.filter(k=>!U.has(k));return y&&!v.includes(y)?[y,...v]:v},[g,U]),R=m.useMemo(()=>F.length?F.filter(y=>y.required).every(y=>!!S[y.key]):!0,[F,S]),z=async(y,v)=>{var w;const k=(w=y.document)==null?void 0:w[0];if(!k){G.push(e.jsx(Y,{title:"Error",type:"danger",duration:2500,children:"Please select a CSV file"}),{placement:"top-center"}),v(!1);return}const c={tableId:u,file:k,fileName:y.fileName||k.name,mapping:S};try{const T=await Za(c);T!=null&&T.success&&(t==null||t()),d(T,"Added")}catch(T){console.error("Error during form submission:",T),G.push(e.jsx(Y,{title:"Error",type:"danger",duration:2500,children:"An error occurred during document upload"}),{placement:"top-center"})}finally{v(!1)}};return e.jsx(Ue,{innerRef:o,initialValues:{...h},validationSchema:Ja,enableReinitialize:!0,onSubmit:(y,{setSubmitting:v})=>z(y,v),children:({values:y,touched:v,errors:k,isSubmitting:c})=>e.jsx(qe,{children:e.jsx(Ae,{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.jsxs(De,{divider:!0,className:"mb-4",children:[e.jsx(Wa,{touched:v,errors:k,values:y,customerId:u}),e.jsx(Qa,{fileList:y.document,onReady:_}),e.jsxs("div",{className:"mt-6",children:[e.jsx("h4",{className:"text-lg font-semibold",children:"Map Columns"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Match your CSV headers to the database fields."}),E?e.jsx("p",{className:"mt-4 text-sm text-gray-500",children:"Loading fields…"}):g.length?e.jsx("div",{className:"mt-4 space-y-3",children:F.map(w=>{const T=S[w.key],P=K(T);return e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsxs("label",{className:"sm:w-64 shrink-0 font-medium",children:[w.label,w.required&&e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),e.jsx("div",{className:"flex-1",children:e.jsxs("select",{className:"w-full border rounded-md px-3 py-2 bg-white dark:bg-gray-800",value:T??"",onChange:O=>{const J=O.target.value||null;L(Q=>({...Q,[w.key]:J}))},children:[e.jsx("option",{value:"",children:"— Select CSV column —"}),P.map(O=>e.jsx("option",{value:O,children:O},O))]})})]},w.key)})}):e.jsx("p",{className:"mt-4 text-sm text-gray-500",children:"Upload a CSV to load headers."})]}),e.jsx(Pa,{className:"flex items-center p-4 justify-between mt-6",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(q,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>t==null?void 0:t(),children:"Discard"}),e.jsx(q,{size:"sm",variant:"solid",loading:c,icon:e.jsx(Ma,{}),type:"submit",disabled:!g.length||!R,title:g.length?R?void 0:"Please complete required mappings":"Upload a CSV to continue",children:"Save"})]})})]})})})})})})});Ke.displayName="DocumentForm";function Qa({fileList:p,onReady:o}){const[h,t]=m.useState(null);return m.useEffect(()=>{const u=p==null?void 0:p[0];u&&u.name!==h&&(t(u.name),o(u))},[p,h,o]),null}fe("dynamicTableList",be);const Ba=({accountId:p=null})=>{var B,ne,se;const o="Grid Configurator",h=ve(),{loading:t,selectedGrid:u,dynamicTableList:d}=de(a=>a.dynamicTables.data),[g,l]=m.useState("active-users"),F=de(a=>{var i;return((i=a.auth.session)==null?void 0:i.permission)||[]}),A=((B=F==null?void 0:F.filter(a=>(a==null?void 0:a.defaultMenuName)===o))==null?void 0:B[0])||{isDelete:!1,isEdit:!0,isView:!1},E={edit:A.isEdit,view:!1,import:A.isEdit,archive:A.isDelete},[j,S]=m.useState(!1),[L,_]=m.useState(!1),[U,K]=m.useState(!1),[R,z]=m.useState(!1),[y,v]=m.useState(!1),[k,c]=m.useState(""),w=()=>{S(!0)},T=a=>{S(!1)},P=()=>{h(ie({}))};m.useEffect(()=>{P(),c("")},[g]);const O=async a=>{try{z(!0),h(pe(a)),K(!0)}catch(i){console.error("Error fetching table:",i)}finally{z(!1)}},J=()=>{w(),c("")},Q=async a=>{try{z(!0);const i="";h(pe((i==null?void 0:i.data)||[])),_(!0)}catch{console.error("Error fetching table:",error)}finally{z(!1)}},H=a=>{h(pe(a)),h(we(!0))},ee=a=>{h(pe(a)),v(!0)},oe=(a,i)=>{i===he.view&&Q(),i===he.edit&&O(a),i===he.delete&&H(a),i===he.import&&ee(a)},ce=[{dataField:"Action",caption:"Action",allowSorting:!1,allowFiltering:!1,allowSearch:!1,cellRender:a=>e.jsx("div",{id:"mAction","data-cname":"Action",children:e.jsx(ea,{row:a==null?void 0:a.data,actions:E,buttonClick:oe})})},{dataField:"tableName",caption:"Title",cellRender:a=>e.jsx("div",{"data-cname":"Title",children:a.data.tableName})},{dataField:"description",caption:"Description",cellRender:a=>e.jsx("div",{"data-cname":"Description",children:a.data.description})},{dataField:"createdDate",caption:"Created Date",cellRender:a=>e.jsx("div",{"data-cname":"Created Date",children:a.data.createdDate?Be(a.data.createdDate).format("MM/DD/YYYY"):""})},{dataField:"isActive",caption:"Status",cellRender:a=>e.jsx("div",{"data-cname":"Status",children:a.data.isActive})}],te=a=>{var i;a.success?(P(),G.push(e.jsx(Y,{title:"Success",type:"success",duration:2500,children:(a==null?void 0:a.message)||"Success"}),{placement:"top-center"})):G.push(e.jsx(Y,{title:"Error",type:"danger",duration:2500,children:((i=a==null?void 0:a.errorMessages)==null?void 0:i.$values[0])||"Please check the columns"}),{placement:"top-center"})};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"topbar py-4 px-6 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:"Data Tables"}),(A==null?void 0:A.isEdit)&&e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[e.jsx(q,{block:!0,variant:"solid",size:"sm",icon:e.jsx(Qe,{}),onClick:J,children:"Add New"}),e.jsx(xe,{title:"Add Data Grid",isOpen:j,portalClassName:"w90 prevent-overflow",onClose:T,children:e.jsx(_a,{footerWidth:"w30",setIsOpen:S})})]})]})}),(t||R)&&e.jsx(Ye,{sx:{backgroundColor:"rgba(0, 0, 0, 0.1)","& .MuiLinearProgress-bar":{backgroundColor:"var(--custom-600)"}}}),e.jsx(De,{className:p?"p-0 m-6 boderless":"m-6 p-4 boderless",children:e.jsx(aa,{tableName:"DynamicTableList",className:"pt-2",dataSource:d||[],height:"calc(100vh - 200px)",columns:ce,keyExpr:"$id",stateStorageKey:"opportunity",isLoading:t})}),e.jsx(xe,{title:"Data Grid",isOpen:L,portalClassName:"w90 prevent-overflow",onClose:()=>_(!1),children:e.jsx(Ua,{gridId:"accounts",data:((ne=u==null?void 0:u.data)==null?void 0:ne.$values)||[],defaultColumns:((se=u==null?void 0:u.schema)==null?void 0:se.$values)||[]})}),e.jsx(xe,{title:"Edit Grid",isOpen:U,portalClassName:"w90 prevent-overflow",onClose:()=>K(!1),children:e.jsx(Va,{tableId:u==null?void 0:u.id,onClose:()=>K(!1)})}),e.jsx($a,{}),e.jsx(xe,{title:"Import Data",isOpen:y,portalClassName:"w30",onClose:()=>v(!1),children:e.jsx(Ke,{initialData:{document:""},onDiscard:()=>v(!1),customerId:u==null?void 0:u.id,handleApiResponse:te})})]})},es=()=>e.jsx(e.Fragment,{children:e.jsx(Ba,{})}),qs=es;export{qs as default};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./vendor-mui-69397583.js";import{r as m}from"./vendor-react-ece1c85f.js";import{L as d}from"./Logo-3f3c9ee6.js";import{h as x,A as p,C as u,n as h,L as f}from"./index-c62ac197.js";import{V as o}from"./Views-74429e81.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 b=[30,55,42,68,50,78,62,90,72,95],j=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2l1.8 5.6L19.5 9l-5.7 1.4L12 16l-1.8-5.6L4.5 9l5.7-1.4z"}),e.jsx("path",{d:"M19 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1z"})]}),v=({children:s,content:l,...r})=>e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
|
|
2
|
-
@keyframes lgFloat {
|
|
3
|
-
0%,100% { transform:translate(0,0) scale(1); }
|
|
4
|
-
50% { transform:translate(20px,-25px) scale(1.05); }
|
|
5
|
-
}
|
|
6
|
-
@keyframes lgBar {
|
|
7
|
-
0%,100% { transform:scaleY(1); transform-origin:bottom; }
|
|
8
|
-
50% { transform:scaleY(.85); transform-origin:bottom; }
|
|
9
|
-
}
|
|
10
|
-
.lg-orb-1 { animation:lgFloat 8s ease-in-out infinite; }
|
|
11
|
-
.lg-orb-2 { animation:lgFloat 10s ease-in-out -3s infinite; }
|
|
12
|
-
.lg-bar { animation:lgBar 2.6s ease-in-out infinite; }
|
|
13
|
-
`}),e.jsxs("div",{className:"flex h-full",children:[e.jsx("div",{className:"flex-1 flex flex-col items-center justify-center bg-white dark:bg-gray-800 px-8 py-12 overflow-y-auto",children:e.jsxs("div",{className:"w-full max-w-[440px]",children:[e.jsx("div",{className:"mb-8 lg:hidden",children:e.jsx(d,{mode:"light",logoWidth:"160px"})}),l&&e.jsx("div",{className:"mb-8",children:l}),s?m.cloneElement(s,{...r}):null]})}),e.jsxs("aside",{className:"hidden lg:flex lg:w-[40%] relative overflow-hidden flex-col",style:{background:"#1B1B1B"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(circle at 20% 30%,rgba(241,90,34,.35),transparent 55%),radial-gradient(circle at 80% 70%,rgba(241,90,34,.18),transparent 55%),linear-gradient(135deg,#1a1612 0%,#1B1B1B 60%,#1a1309 100%)"}}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.05) 1px,transparent 1px)",backgroundSize:"48px 48px",maskImage:"radial-gradient(circle at 50% 40%,#000 30%,transparent 80%)",WebkitMaskImage:"radial-gradient(circle at 50% 40%,#000 30%,transparent 80%)"}}),e.jsx("div",{className:"lg-orb-1 absolute rounded-full pointer-events-none",style:{top:-80,right:-100,width:360,height:360,background:"#F15A22",filter:"blur(40px)",opacity:.7}}),e.jsx("div",{className:"lg-orb-2 absolute rounded-full pointer-events-none",style:{bottom:-120,left:-80,width:420,height:420,background:"#0D9488",filter:"blur(40px)",opacity:.7}}),e.jsxs("div",{className:"relative z-10 flex flex-col justify-between flex-1 p-14 text-white",children:[e.jsx("div",{children:e.jsx(d,{mode:"dark",logoWidth:"180px"})}),e.jsxs("div",{className:"max-w-[480px]",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 text-xs font-bold tracking-widest uppercase rounded-full px-3 py-1.5 mb-5",style:{color:"#F15A22",background:"rgba(241,90,34,.12)",border:"1px solid rgba(241,90,34,.3)"},children:[e.jsx(j,{}),"Operations Platform"]}),e.jsxs("h1",{className:"text-[2.8rem] font-black leading-tight tracking-tight text-white mb-4",children:["Your Journey to"," ",e.jsx("em",{className:"not-italic",style:{background:"linear-gradient(120deg,#F15A22,#F49A5C)",WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent"},children:"Exceptional Service"})]}),e.jsx("p",{className:"text-base leading-relaxed mb-8",style:{color:"rgba(255,255,255,.7)",fontWeight:300},children:"Elevate your client relationships and deliver excellence every step of the way — with real-time data and full visibility into your operations."}),e.jsxs("div",{className:"rounded-xl p-4 mb-6",style:{background:"rgba(255,255,255,.04)",border:"1px solid rgba(255,255,255,.08)",backdropFilter:"blur(8px)"},children:[e.jsx("div",{className:"grid grid-cols-3 gap-2.5 mb-3",children:[{label:"On-time",value:"94.6%",delta:"▲ 2.4"},{label:"In transit",value:"1,284",delta:"▲ 118"},{label:"Idle / day",value:"18m",delta:"▼ 6m"}].map(t=>e.jsxs("div",{className:"rounded-lg p-2.5",style:{background:"rgba(255,255,255,.05)"},children:[e.jsx("div",{className:"text-[10px] font-bold tracking-wider uppercase",style:{color:"rgba(255,255,255,.5)"},children:t.label}),e.jsx("div",{className:"text-xl font-black text-white mt-1 leading-none",children:t.value}),e.jsx("div",{className:"text-[11px] font-bold mt-0.5",style:{color:"#4ade80"},children:t.delta})]},t.label))}),e.jsx("div",{className:"flex items-end gap-1.5 h-14 px-1",children:b.map((t,i)=>e.jsx("div",{className:"flex-1 rounded-sm lg-bar",style:{height:`${t}%`,animationDelay:`${i*.15}s`,background:"linear-gradient(180deg,#F15A22,rgba(241,90,34,.3))"}},i))})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"rgba(255,255,255,.04)",border:"1px solid rgba(255,255,255,.08)"},children:[e.jsx("p",{className:"text-sm leading-relaxed italic mb-3",style:{color:"rgba(255,255,255,.85)",fontWeight:300},children:`"We replaced six separate tools in a weekend. Our ops team didn't even notice — they just got a cleaner UI and faster workflows."`}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-xs font-black text-white flex-shrink-0",style:{background:"#F15A22"},children:"SH"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-bold text-white",children:"Sara Han"}),e.jsx("div",{className:"text-xs",style:{color:"rgba(255,255,255,.5)"},children:"Operations Lead"})]})]})]})]}),e.jsx("div",{className:"flex gap-4 flex-wrap",children:["SOC 2 Type II","GDPR & HIPAA-ready","Self-host or cloud"].map(t=>e.jsxs("span",{className:"flex items-center gap-1.5 text-xs",style:{color:"rgba(255,255,255,.5)"},children:[e.jsx("span",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0",style:{background:"rgba(74,222,128,.18)",color:"#4ade80"},children:e.jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),t]},t))})]})]})]})]});function y(s){const l=[".jpg",".jpeg",".png",".gif",".webp"],r=[".mp4",".webm",".ogg"],t=s.slice(s.lastIndexOf(".")).toLowerCase();return l.includes(t)?"img":(r.includes(t),".mp4")}function N(s,l){if(!l)return"/img/video/bg-login.mp4";const t=l.replace(/\\/g,"/").split("/").map(encodeURIComponent).join("/");return`${s}/${t}`}const k=({children:s,content:l,...r})=>{const t=x(n=>{var g;return((g=n==null?void 0:n.theme)==null?void 0:g.coverLayout)||{}}),i=N(window.RUNTIME_CONFIG.VITE_API_BASE_URL,t==null?void 0:t.settingFilePath),c=y(i);let a={};try{if(t!=null&&t.moreInformation){const n=JSON.parse(t.moreInformation);a=(n==null?void 0:n.themeText)||{}}}catch(n){console.error("Error parsing themeText:",n)}return e.jsxs("div",{className:"grid lg:grid-cols-3 h-full",children:[e.jsxs("div",{className:"col-span-2 bg-no-repeat bg-cover py-6 px-16 flex-col justify-between hidden lg:flex",style:c=="img"?{backgroundImage:`url(${i})`}:void 0,children:[e.jsx(d,{mode:"dark",logoWidth:200}),e.jsx("div",{}),e.jsxs("span",{className:"text-white ",children:[e.jsxs("div",{className:"flex-col mb-10",children:[e.jsxs("h3",{className:"text-white text-xl",children:[" ",a==null?void 0:a.primaryText]}),e.jsx("h2",{className:"text-white",children:a==null?void 0:a.secondaryText}),e.jsx("p",{className:"pt-4 text-lg text-white opacity-80",children:a==null?void 0:a.description})]}),"Copyright © ",`${new Date().getFullYear()}`," ",e.jsx("span",{className:"font-semibold",children:`${p}`})," "]}),c===".mp4"&&e.jsx("div",{className:"video_container",children:e.jsx("video",{autoPlay:!0,muted:!0,loop:!0,children:e.jsx("source",{src:i,type:"video/mp4"})})})]}),e.jsx("div",{className:"flex flex-col justify-center items-center bg-white dark:bg-gray-800",children:e.jsxs("div",{className:"xl:min-w-[450px] px-8",children:[e.jsx("div",{className:"mb-8",children:l}),s?m.cloneElement(s,{...r}):null]})})]})};function w(s){const l=[".jpg",".jpeg",".png",".gif",".webp"],r=[".mp4",".webm",".ogg"],t=s.slice(s.lastIndexOf(".")).toLowerCase();return l.includes(t)?"img":r.includes(t)?".mp4":"img"}function I(s,l){if(!l)return"/img/theme/bg_center_image.jpg";const t=l.replace(/\\/g,"/").split("/").map(encodeURIComponent).join("/");return`${s}/${t}`}const L=({children:s,content:l,...r})=>{const t=x(a=>{var n;return((n=a==null?void 0:a.theme)==null?void 0:n.centerLayout)||{}}),i=I(window.RUNTIME_CONFIG.VITE_API_BASE_URL,t==null?void 0:t.settingFilePath),c=w(i);return e.jsx("div",{className:"h-full bg-no-repeat bg-cover",style:c=="img"?{backgroundImage:`url(${i})`}:void 0,children:e.jsxs(u,{className:"flex flex-col flex-auto items-center justify-center min-w-0 h-full",children:[c===".mp4"&&e.jsx("div",{className:"center_video_container",children:e.jsx("video",{autoPlay:!0,muted:!0,loop:!0,children:e.jsx("source",{src:i,type:"video/mp4"})})}),e.jsxs(h,{className:"min-w-[320px] md:min-w-[450px]",bodyClass:"md:p-10",children:[e.jsx("div",{className:"text-center",children:e.jsx(d,{type:"streamline",imgClass:"mx-auto"})}),e.jsxs("div",{className:"text-center",children:[l,s?m.cloneElement(s,{contentClassName:"text-center",...r}):null]})]})]})})},A=()=>{const s=x(t=>t.theme.layout.type),l=x(t=>t.theme.loginLayout),r=()=>s===f?e.jsx(o,{}):location.pathname.indexOf("timelog-approval-view-validation")>-1?e.jsx(o,{}):l==="center_layout"?e.jsx(L,{children:e.jsx(o,{})}):location.pathname==="/setup"?e.jsx(o,{}):l==="cover_layout"?e.jsx(k,{children:e.jsx(o,{})}):e.jsx(v,{children:e.jsx(o,{})});return e.jsx("div",{className:"app-layout-blank flex flex-auto flex-col h-[100vh]",children:r()})},W=A;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./vendor-mui-69397583.js";import{d}from"./index-c62ac197.js";import{a as l}from"./FormContainer-91c2b0e4.js";import{b as p,c as m,a as u}from"./vendor-redux-a1f00e6b.js";import{b,c as g,d as f,e as x}from"./PreferenceService-75bf9db6.js";const P=({title:e,desc:s,...r})=>a.jsxs("div",{className:"pb-8",...r,children:[a.jsx("h5",{children:e}),a.jsx("p",{children:s})]}),S=e=>{const{label:s,children:r,errors:o,touched:n,name:t,border:c=!0,alignCenter:i=!0}=e;return a.jsxs("div",{className:d("grid grid-cols-1 md:grid-cols-3 gap-4 py-2",c&&"border-gray-200 dark:border-gray-600",i&&"md:items-center"),children:[a.jsx("div",{className:"font-semibold",children:s}),a.jsx("div",{className:"col-span-2",children:a.jsx(l,{className:"mb-3 max-w-[700px]",invalid:o[t]&&n[t],errorMessage:o[t],children:r})})]})},h="roleList",U=async e=>(await g(e)).data,I=async e=>(await f(e)).data,R=async e=>(await x(e)).data,k=p("settings/uploadProfileAvatar",async({file:e},{rejectWithValue:s})=>{try{return await b(e)}catch(r){return s(r.response.data)}}),j={loading:!1,is2FAEnabled:localStorage.getItem("twoFactorEnabled")!==null?localStorage.getItem("isEnabled"):"false"},w=m({name:`${h}/state`,initialState:j,reducers:{}}),y=w.reducer;u({data:y});export{P as F,S as a,I as b,R as c,U as e,k as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,l as pe}from"./vendor-mui-69397583.js";import{A as B}from"./AdaptableCard-df7695d6.js";import{r as n,f as X}from"./vendor-react-ece1c85f.js";import{e9 as M,F as ce,l as k,I as m,B as v,al as me,O as y,Q as C,ae as ue,Y as he,f as fe,V as xe,Z as ge}from"./index-c62ac197.js";import{b as be,c as Ae,a as je}from"./vendor-redux-a1f00e6b.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import{C as H}from"./index-c2088808.js";import{D as Y}from"./Drawer-949c18c6.js";import{a as u,F as De}from"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import{A as we,T as R}from"./actioncell-17e12e21.js";import{D as ye}from"./tableV2-4d1c9fd2.js";import{u as Ce}from"./usePermission-d94b4984.js";import{h as Ne}from"./index-36ba4ea7.js";import{S as Se}from"./StickyFooter-5b934274.js";import{C as Ie}from"./ConfirmDialog-3202eb3d.js";import{u as Pe,d as h,a as x,c as ve,F as Ue,b as Fe}from"./index.esm-70ab539c.js";import{a as Re}from"./index-e4c6057f.js";import{V as G,i as Be}from"./validationPatterns-77446c46.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"./FileSaver.min-20f3f13a.js";import"./DensitySelector-a2c1c68f.js";import"./NoData-8c485a3a.js";async function Me(t){return(await M.apiV10InstallAppInstallAppApiPost(t,{timeout:12e4})).data}async function ke(t){return(await M.apiV10InstallAppInstallAppUiPost(t,{timeout:12e4})).data}async function qe(t){return await await M.apiV10InstallAppGetAppListGet()}const Z="InstallAppData",N=be(`${Z}/getAppData`,async t=>{const a=await qe();return console.log("appdata",a),a.data}),Le={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},Ee={loading:!1,deleteConfirmation:!1,selectedRowData:"",tableData:Le,filterData:{position:"",account:""},appList:[]},J=Ae({name:`${Z}`,initialState:Ee,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(N.fulfilled,(a,s)=>{a.appList=s.payload.data.$values,a.tableData.total=s.payload.data.$values.length,a.loading=!1}).addCase(N.pending,a=>{a.loading=!0}).addCase(N.rejected,(a,s)=>{a.appList=[],a.loading=!1})}}),{setTableData:Ia,setFilterData:W,toggleDeleteConfirmation:Oe,setSelectedRowData:_}=J.actions,Ve=J.reducer,Te=je({data:Ve}),P=ce,$e=t=>{const a=k(),{touched:s,errors:r,type:f}=t;n.useState(),Pe(),n.useState(!1),n.useState(""),n.useState(""),n.useState([]),n.useState([]),n.useState(),n.useState(!1),n.useEffect(()=>{p()},[]);const p=()=>{const g=N({});a(g)};return e.jsx(B,{className:"mb-4",children:e.jsxs("div",{className:"grid md:grid-cols-1 gap-4 py-1",children:[e.jsx(u,{label:"App Name",asterisk:!0,invalid:r.appName&&s.appName,errorMessage:r.appName,children:e.jsx(h,{type:"text",autoComplete:"off",name:"appName",placeholder:"App Name",component:m})}),e.jsx(u,{asterisk:!0,label:"Database Server",invalid:r.databaseServer&&s.databaseServer,errorMessage:r.databaseServer,children:e.jsx(h,{type:"text",autoComplete:"off",name:"databaseServer",placeholder:"Database Server",component:m})}),e.jsx(u,{asterisk:!0,label:"Database Name",invalid:r.databaseName&&s.databaseName,errorMessage:r.databaseName,children:e.jsx(h,{type:"text",autoComplete:"off",name:"databaseName",placeholder:"Database Name",component:m})}),e.jsx(u,{label:"Database Username",children:e.jsx(h,{type:"text",autoComplete:"off",name:"databaseUserName",placeholder:"Database UserName",component:m})}),e.jsx(u,{label:"Database Password",children:e.jsx(h,{type:"text",autoComplete:"off",name:"databasePassword",placeholder:"Database Password",component:m})}),e.jsx(u,{asterisk:!0,label:"Api Url",invalid:r.apiBaseUrl&&s.apiBaseUrl,errorMessage:r.apiBaseUrl,children:e.jsx(h,{type:"text",autoComplete:"off",name:"apiBaseUrl",placeholder:"Api Url",component:m})}),e.jsx(u,{asterisk:!0,label:"Api Hosting Folder",invalid:r.apiDestinationPath&&s.apiDestinationPath,errorMessage:r.apiDestinationPath,children:e.jsx(h,{type:"text",autoComplete:"off",name:"apiDestinationPath",placeholder:"Api Hosting Folder",component:m})}),e.jsx(u,{asterisk:!0,label:"App Url",invalid:r.appBaseUrl&&s.appBaseUrl,errorMessage:r.appBaseUrl,children:e.jsx(h,{type:"text",autoComplete:"off",name:"appBaseUrl",placeholder:"App Url",component:m})}),e.jsx(u,{asterisk:!0,label:"APP Hosting Folder",invalid:r.uiDestinationPath&&s.uiDestinationPath,errorMessage:r.uiDestinationPath,children:e.jsx(h,{type:"text",autoComplete:"off",name:"uiDestinationPath",placeholder:"APP Hosting Folder",component:m})}),e.jsx(u,{asterisk:!0,label:"App Login Username",invalid:r.userName&&s.userName,errorMessage:r.userName,children:e.jsx(h,{type:"text",autoComplete:"off",name:"userName",placeholder:"App Login Username",component:m})}),e.jsx(u,{asterisk:!0,label:"App Login Password",invalid:r.password&&s.password,errorMessage:r.password,children:e.jsx(h,{type:"text",autoComplete:"off",name:"password",placeholder:"App Login Password",component:m})})]})})},{useUniqueId:ze}=Ne;x().matches(G.sqlInjectionSafe,"Invalid input: SQL keywords not allowed").matches(G.noSpecialChars,"Special characters like < > = { } are not allowed").test("no-base64","Base64 encoded content is not allowed",t=>t?!Be(t.trim()):!0);const Q=ve().shape({appName:x().required("App Name Required").max(100,"Maximum 100 characters allowed"),databaseServer:x().required("Database Server Required").max(100,"Maximum 100 characters allowed"),databaseName:x().required("Database Name Required").max(100,"Maximum 100 characters allowed"),userName:x().required("App Username Required").max(100,"Maximum 100 characters allowed"),apiBaseUrl:x().required("Api Base Url Required").max(100,"Maximum 100 characters allowed"),appBaseUrl:x().required("App Base Url Required").max(100,"Maximum 100 characters allowed"),uiDestinationPath:x().required("Ui Hosting Path Required").max(100,"Maximum 100 characters allowed"),apiDestinationPath:x().required("Api Hosting Path Required").max(100,"Maximum 100 characters allowed"),password:x().required("App Password Required").max(100,"Maximum 100 characters allowed")}),He=({onDelete:t})=>{const[a,s]=n.useState(!1),r=()=>{s(!0)},f=()=>{s(!1)},p=()=>{t==null||t(s)};return e.jsxs(e.Fragment,{children:[e.jsx(v,{className:"text-red-600",variant:"plain",size:"sm",icon:e.jsx(me,{}),type:"button",onClick:r,children:"Delete"}),e.jsx(Ie,{isOpen:a,type:"danger",title:"Delete Category",confirmButtonColor:"red-600",onClose:f,onRequestClose:f,onCancel:f,onConfirm:p,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."})})]})},K=n.forwardRef((t,a)=>{const{type:s,footerWidth:r,initialData:f={id:"",appName:"",databaseServer:"",databaseUserName:"",databaseName:"",databasePassword:"",userName:"",apiBaseUrl:"",appBaseUrl:"",uiSourcePath:"",apiSourcePath:"",uiDestinationPath:"",apiDestinationPath:"",password:""},onFormSubmit:p,onDiscard:g,onDelete:j}=t,I=ze("Contact-");return e.jsx(e.Fragment,{children:e.jsx(Ue,{innerRef:a,initialValues:{...f},validationSchema:Q,onSubmit:(D,{setSubmitting:o})=>{const c=D;s==="new"&&(c.id=I),p==null||p(c,o)},children:({values:D,touched:o,errors:c,isSubmitting:b})=>e.jsx(Fe,{children:e.jsxs(De,{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($e,{type:s,touched:o,errors:c})})}),e.jsxs(Se,{className:`px-8 flex items-center justify-between py-4 ${r?`md:${r}`:""}`,stickyClass:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700",children:[e.jsx("div",{children:s==="edit"&&e.jsx(He,{onDelete:j})}),e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsx(v,{size:"sm",className:"ltr:mr-3 rtl:ml-3",type:"button",onClick:()=>g==null?void 0:g(),children:"Discard"}),e.jsx(v,{size:"sm",variant:"solid",loading:b,icon:e.jsx(Re,{}),type:"submit",children:"Save"})]})]})]})})})})});K.displayName="InstallAppForm";const Ye=t=>{const{footerWidth:a,onDrawerClose:s,fetchData:r}=t;X();const f=k();n.useState(!1);const p=async o=>await Me(o),g=async o=>await ke(o),j=()=>{if(ue("apiCache-contactsData"),r){r();return}f(N({}))},I=async(o,c)=>{c(!0);const b={appName:o.appName??"",databaseServer:o.databaseServer??"",databaseUserName:o.databaseUserName??"",databaseName:o.databaseName??"",databasePassword:o.databasePassword??"",userName:o.userName??"",apiBaseUrl:o.apiBaseUrl??"",appBaseUrl:o.appBaseUrl??"",uiSourcePath:o.uiSourcePath??"",apiSourcePath:o.apiSourcePath??"",uiDestinationPath:o.uiDestinationPath??"",apiDestinationPath:o.apiDestinationPath??"",password:o.password??""};try{p(b).then(d=>{console.log("res",d),d&&d.indexOf("Updated the connection string")>-1?(y.push(e.jsx(C,{title:"Success",type:"success",duration:2500,children:"App API Successfully Copied"}),{placement:"top-center"}),g(b).then(A=>{A&&A.indexOf("Updated the Api Base Url")>-1?(y.push(e.jsx(C,{title:"Success",type:"success",duration:2500,children:"App UI Successfully Copied"}),{placement:"top-center"}),j(),s()):y.push(e.jsxs(C,{title:"Error",type:"danger",duration:2500,children:["App UI Failed:",e.jsx("br",{}),A]}),{placement:"top-center"})}).catch(A=>{var U=A.response.data;c(!1),y.push(e.jsx(C,{title:"Error",type:"danger",duration:2500,children:U.message}),{placement:"top-center"})})):y.push(e.jsxs(C,{title:"Error",type:"danger",duration:2500,children:["App Install Failed:",e.jsx("br",{}),d]}),{placement:"top-center"})})}catch(d){console.log("e",d),y.push(e.jsx(C,{title:"Error",type:"danger",duration:2500,children:"Something went wrong. please try again!"}),{placement:"top-center"})}},D=()=>{s()};return e.jsx(e.Fragment,{children:e.jsx(K,{type:"new",footerWidth:a,onFormSubmit:I,onDiscard:D})})};he("InstallAppData",Te);const Ge=()=>{var V,T,$,z;const[t,a]=n.useState([]),[s,r]=n.useState(!1);n.useState(!1);const[f,p]=n.useState(!1),[g,j]=n.useState(!1),[I,D]=n.useState(),[o,c]=n.useState(!1),b=Ce("Contacts"),d={edit:b.isEdit,delete:b.isDelete,view:b.isView},A=()=>{c(!0)},U=()=>{p(!0)},q=()=>{p(!1)};n.useRef(null);const ee=X(),w=k(),l=P(i=>i.InstallAppData.data.filterData),L=P(i=>i.InstallAppData.data.loading),F=P(i=>i.InstallAppData.data.appList);console.log("applistdata",F),fe();const{pageIndex:ae,pageSize:te,sort:se,query:We,total:_e}=P(i=>i.InstallAppData.data.tableData);n.useEffect(()=>{E()},[ae,te,se,s,l]);const E=()=>{const i=N({});w(i)};console.log("data",F);const re=i=>{ee("/app/crm/contact-details/"+i.id)},[ie,oe]=n.useState({pageSize:"",pageIndex:""}),ne=(i,S)=>{S===R.view&&re(i),S===R.edit&&(D(i.id),w(_(i)),j(!0)),S===R.delete&&(w(Oe(!0)),w(_(i)))},le=()=>{j(!1)},O=i=>{i==="accountId"&&w(W({...l,account:""})),i==="Position"&&w(W({...l,position:""}))},de=[...d!=null&&d.edit||d!=null&&d.delete?[{dataField:"Action",caption:"Action",width:"130",cellRender:i=>e.jsx("div",{id:"mAction","data-cname":"Action",children:e.jsx(we,{row:i==null?void 0:i.data,actions:d,buttonClick:ne})})}]:[],{dataField:"appName",caption:"App Name",width:"230"},{dataField:"databaseServer",caption:"Database Server",width:"230"},{dataField:"databaseUserName",caption:"Database User Name",width:"230"},{dataField:"databaseName",caption:"Database Name",width:"230"},{dataField:"userName",caption:"User Name",width:"230"},{dataField:"apiBaseUrl",caption:"Api Base Url",width:"230"},{dataField:"appBaseUrl",caption:"App Base Url",width:"230"},{dataField:"createdDate",caption:"Created On",width:"230",dataType:"date",format:"dd-MM-yyyy",cellRender:i=>{const S=ge(i.value).format("MM/DD/YYYY");return e.jsx("div",{"data-cname":"Created On",children:S})}}];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:"Install Apps"}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[b.isEdit&&e.jsx(v,{onClick:()=>U(),block:!0,variant:"solid",size:"sm",icon:e.jsx(xe,{}),children:"Add App"}),e.jsx(Y,{title:"Setup App",isOpen:f,onClose:q,portalClassName:"w30 prevent-overflow",children:e.jsx(Ye,{footerWidth:"w30",onDrawerClose:q,fetchData:E})}),e.jsx(Y,{title:"Edit Contact",isOpen:g,onClose:le,portalClassName:"w30 prevent-overflow"})]})]})}),e.jsxs(B,{className:"m-6 h-full py-4 px-6 bg-transparent",bodyClass:"h-full",children:[L&&e.jsx(pe,{sx:{backgroundColor:"rgba(0, 0, 0, 0.1)","& .MuiLinearProgress-bar":{backgroundColor:"var(--custom-600)"}}}),e.jsxs(B,{className:"p-4",children:[e.jsxs("div",{className:"text-right mb-3 ",children:[((V=l==null?void 0:l.account)==null?void 0:V.value)&&e.jsx(H,{title:"Account",value:(T=l==null?void 0:l.account)==null?void 0:T.label,onRemovefilter:O,tagId:"accountId"}),(($=l==null?void 0:l.position)==null?void 0:$.value)&&e.jsx(H,{title:"Position",value:(z=l==null?void 0:l.position)==null?void 0:z.label,onRemovefilter:O,tagId:"Position"})]}),e.jsx(ye,{columns:de,tableName:"app-table",data:F||[],height:"calc(100vh - 290px)",defaultHiddenColumn:[],fetchData:()=>{},id_label:"$id",selectedRowId:t,setSelectedRowId:a,setFilterValues:()=>{},filterValues:[],identity:"Lead-Listing",setInLineFilters:()=>{},inLineFilter:[],inLineFilterMobileView:[],setInLineFiltersMobileView:()=>{},setColSorting:()=>{},ImpColumnName:"DocumentId",idName:"Lead-Listing-table",handleSearch:()=>{},isColumnResizing:!0,pager:ie,setPager:oe,openFilter:A,isPaginationReq:!0,isFilterReq:!0,isSelectionReq:!1,isLoading:L})]})]})]})},Pa=Ge;export{Pa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as o}from"./UserNew-b36c342c.js";import"./vendor-mui-69397583.js";import"./vendor-react-ece1c85f.js";import"./UserForm-31fdd3b3.js";import"./FormContainer-91c2b0e4.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";import"./index-36ba4ea7.js";import"./useControllableState-d0909575.js";import"./useDidUpdate-25c4d4ed.js";import"./StickyFooter-5b934274.js";import"./ConfirmDialog-3202eb3d.js";import"./index.esm-70ab539c.js";import"./AdaptableCard-df7695d6.js";import"./index-77e820d0.js";import"./RoleService-7008da2c.js";import"./PasswordInput-8619a9df.js";import"./index-42e65911.js";import"./index-cebd880b.js";import"./AccountServices-62599aae.js";import"./ContactService-92281a90.js";import"./index-785ad361.js";import"./index-e4c6057f.js";import"./strongPassword-bbec776a.js";import"./validationPatterns-77446c46.js";import"./UserService-047aef51.js";export{o as default};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./vendor-mui-69397583.js";import{r as l}from"./vendor-react-ece1c85f.js";import{L as m}from"./Logo-3f3c9ee6.js";import{I as d,bW as j,bV as y,S as v,B as k}from"./index-c62ac197.js";import{F as w,a as c}from"./FormContainer-91c2b0e4.js";import{A as N}from"./Alert-7dfbd254.js";import{A as x}from"./ActionLink-33e476e1.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 F=()=>e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#FFC107",d:"M43.6 20.5H42V20H24v8h11.3a12 12 0 1 1-3.4-13l5.7-5.7A20 20 0 1 0 44 24c0-1.2-.1-2.3-.4-3.5z"}),e.jsx("path",{fill:"#FF3D00",d:"M6.3 14.7l6.6 4.8A12 12 0 0 1 24 12c3 0 5.8 1.1 7.9 3l5.7-5.7A20 20 0 0 0 6.3 14.7z"}),e.jsx("path",{fill:"#4CAF50",d:"M24 44a20 20 0 0 0 13.5-5.2l-6.2-5.3a12 12 0 0 1-18-6.2l-6.6 5A20 20 0 0 0 24 44z"}),e.jsx("path",{fill:"#1976D2",d:"M43.6 20.5H42V20H24v8h11.3a12 12 0 0 1-4.1 5.5l6.2 5.3C42 35 44 30 44 24c0-1.2-.1-2.3-.4-3.5z"})]}),B=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 23 23",children:[e.jsx("rect",{x:"1",y:"1",width:"10",height:"10",fill:"#F25022"}),e.jsx("rect",{x:"12",y:"1",width:"10",height:"10",fill:"#7FBA00"}),e.jsx("rect",{x:"1",y:"12",width:"10",height:"10",fill:"#00A4EF"}),e.jsx("rect",{x:"12",y:"12",width:"10",height:"10",fill:"#FFB900"})]}),g=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2l1.8 5.6L19.5 9l-5.7 1.4L12 16l-1.8-5.6L4.5 9l5.7-1.4z"}),e.jsx("path",{d:"M19 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1z"})]}),A=[30,55,42,68,50,78,62,90,72,95],S=()=>e.jsxs("aside",{className:"hidden lg:flex lg:w-[40%] relative overflow-hidden flex-col",style:{background:"#1B1B1B"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(circle at 20% 30%,rgba(241,90,34,.35),transparent 55%),radial-gradient(circle at 80% 70%,rgba(241,90,34,.18),transparent 55%),linear-gradient(135deg,#1a1612 0%,#1B1B1B 60%,#1a1309 100%)"}}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.05) 1px,transparent 1px)",backgroundSize:"48px 48px",maskImage:"radial-gradient(circle at 50% 40%,#000 30%,transparent 80%)",WebkitMaskImage:"radial-gradient(circle at 50% 40%,#000 30%,transparent 80%)"}}),e.jsx("div",{className:"lg-orb-1 absolute rounded-full pointer-events-none",style:{top:-80,right:-100,width:360,height:360,background:"#F15A22",filter:"blur(40px)",opacity:.7}}),e.jsx("div",{className:"lg-orb-2 absolute rounded-full pointer-events-none",style:{bottom:-120,left:-80,width:420,height:420,background:"#0D9488",filter:"blur(40px)",opacity:.7}}),e.jsxs("div",{className:"relative z-10 flex flex-col justify-between flex-1 p-14 text-white",children:[e.jsx("div",{children:e.jsx(m,{mode:"dark",logoWidth:"180px"})}),e.jsxs("div",{className:"max-w-[480px]",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 text-xs font-bold tracking-widest uppercase rounded-full px-3 py-1.5 mb-5",style:{color:"#F15A22",background:"rgba(241,90,34,.12)",border:"1px solid rgba(241,90,34,.3)"},children:[e.jsx(g,{}),"Operations Platform"]}),e.jsxs("h1",{className:"text-[2.8rem] font-bold leading-tight tracking-tight text-white mb-4",children:["Your Journey to"," ",e.jsx("em",{className:"not-italic",style:{background:"linear-gradient(120deg,#F15A22,#F49A5C)",WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent"},children:"Exceptional Service"})]}),e.jsx("p",{className:"text-base leading-relaxed mb-8",style:{color:"rgba(255,255,255,.7)",fontWeight:300},children:"Elevate your client relationships and deliver excellence every step of the way — with real-time data and full visibility into your operations."}),e.jsxs("div",{className:"rounded-xl p-4 mb-6",style:{background:"rgba(255,255,255,.04)",border:"1px solid rgba(255,255,255,.08)",backdropFilter:"blur(8px)"},children:[e.jsx("div",{className:"grid grid-cols-3 gap-2.5 mb-3",children:[{label:"On-time",value:"94.6%",delta:"▲ 2.4"},{label:"In transit",value:"1,284",delta:"▲ 118"},{label:"Idle / day",value:"18m",delta:"▼ 6m"}].map(t=>e.jsxs("div",{className:"rounded-lg p-2.5",style:{background:"rgba(255,255,255,.05)"},children:[e.jsx("div",{className:"text-[10px] font-bold tracking-wider uppercase",style:{color:"rgba(255,255,255,.5)"},children:t.label}),e.jsx("div",{className:"text-xl font-black text-white mt-1 leading-none",children:t.value}),e.jsx("div",{className:"text-[11px] font-bold mt-0.5",style:{color:"#4ade80"},children:t.delta})]},t.label))}),e.jsx("div",{className:"flex items-end gap-1.5 h-14 px-1",children:A.map((t,a)=>e.jsx("div",{className:"flex-1 rounded-sm lg-bar",style:{height:`${t}%`,animationDelay:`${a*.15}s`,background:"linear-gradient(180deg,#F15A22,rgba(241,90,34,.3))"}},a))})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"rgba(255,255,255,.04)",border:"1px solid rgba(255,255,255,.08)"},children:[e.jsx("p",{className:"text-sm leading-relaxed italic mb-3",style:{color:"rgba(255,255,255,.85)",fontWeight:300},children:`"We replaced six separate tools in a weekend. Our ops team didn't even notice — they just got a cleaner UI and faster workflows."`}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-xs font-black text-white flex-shrink-0",style:{background:"#F15A22"},children:"SH"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-bold text-white",children:"Sara Han"}),e.jsx("div",{className:"text-xs",style:{color:"rgba(255,255,255,.5)"},children:"Operations Lead"})]})]})]})]}),e.jsx("div",{className:"flex gap-4 flex-wrap",children:["SOC 2 Type II","GDPR & HIPAA-ready","Self-host or cloud"].map(t=>e.jsxs("span",{className:"flex items-center gap-1.5 text-xs",style:{color:"rgba(255,255,255,.5)"},children:[e.jsx("span",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0",style:{background:"rgba(74,222,128,.18)",color:"#4ade80"},children:e.jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),t]},t))})]})]}),C=()=>{const[t,a]=l.useState(!1),[h,p]=l.useState(!1),[i,u]=l.useState(!1),[n]=l.useState(""),b=s=>{s.preventDefault(),a(!0),setTimeout(()=>a(!1),1200)};return e.jsx("main",{className:"flex-1 flex flex-col items-center justify-center bg-white dark:bg-gray-800 px-8 py-12 overflow-y-auto",children:e.jsxs("div",{className:"w-full max-w-[440px]",children:[e.jsx("div",{className:"mb-8 lg:hidden",children:e.jsx(m,{mode:"light",logoWidth:"160px"})}),e.jsx("h3",{className:"mb-1",children:"Welcome Back!"}),e.jsx("p",{className:"text-sm text-gray-500 mb-8",children:"Enter your credentials to access your account"}),n&&e.jsx(N,{showIcon:!0,className:"mb-4",type:"danger",children:n}),e.jsx("div",{className:"flex flex-col gap-2.5 mb-5",children:[{icon:e.jsx(F,{}),label:"Continue with Google"},{icon:e.jsx(B,{}),label:"Continue with Microsoft"},{icon:e.jsx(g,{}),label:"Email me a magic link",accent:!0}].map(({icon:s,label:o,accent:f})=>e.jsxs("button",{type:"button",className:"flex items-center justify-center gap-2.5 w-full rounded-lg border px-4 py-3 text-sm font-semibold transition-colors cursor-pointer",style:{borderColor:"#E9E9E9",color:f?"#F15A22":"#1B1B1B",background:"#fff"},onMouseEnter:r=>{r.currentTarget.style.borderColor="#1B1B1B",r.currentTarget.style.background="#F6F4F1"},onMouseLeave:r=>{r.currentTarget.style.borderColor="#E9E9E9",r.currentTarget.style.background="#fff"},children:[s,o]},o))}),e.jsxs("div",{className:"flex items-center gap-3 my-1 mb-5",children:[e.jsx("div",{className:"flex-1 h-px bg-gray-200"}),e.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-gray-400",children:"or sign in with email"}),e.jsx("div",{className:"flex-1 h-px bg-gray-200"})]}),e.jsx("form",{onSubmit:b,noValidate:!0,children:e.jsxs(w,{children:[e.jsx(c,{label:"Email",children:e.jsx(d,{type:"email",name:"userName",placeholder:"you@company.com",autoComplete:"email"})}),e.jsx(c,{label:"Password",children:e.jsx(d,{type:i?"text":"password",name:"password",placeholder:"Enter your password",autoComplete:"current-password",suffix:e.jsx("span",{className:"cursor-pointer text-xl text-gray-400 hover:text-gray-700",onClick:()=>u(s=>!s),children:i?e.jsx(j,{}):e.jsx(y,{})})})}),e.jsxs("div",{className:"grid grid-cols-2 gap-1 mb-2",children:[e.jsx("div",{className:"my-1 text-left",children:e.jsx(v,{checked:h,onChange:s=>p(s),children:"Remember Me"})}),e.jsx("div",{className:"my-1 text-right",children:e.jsx(x,{to:"/forgot-password",children:"Forgot Password?"})})]}),e.jsx(k,{block:!0,className:"my-4",loading:t,variant:"solid",type:"submit",children:t?"Signing in...":"Sign In"}),e.jsx("div",{className:"text-center",children:e.jsxs("small",{children:["Don't have an account?"," ",e.jsx(x,{to:"/sign-up",children:"Sign Up"})]})})]})})]})})},E=()=>e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
|
|
2
|
-
@keyframes lgFloat {
|
|
3
|
-
0%,100% { transform:translate(0,0) scale(1); }
|
|
4
|
-
50% { transform:translate(20px,-25px) scale(1.05); }
|
|
5
|
-
}
|
|
6
|
-
@keyframes lgBar {
|
|
7
|
-
0%,100% { transform:scaleY(1); transform-origin:bottom; }
|
|
8
|
-
50% { transform:scaleY(.85); transform-origin:bottom; }
|
|
9
|
-
}
|
|
10
|
-
.lg-orb-1 { animation:lgFloat 8s ease-in-out infinite; }
|
|
11
|
-
.lg-orb-2 { animation:lgFloat 10s ease-in-out -3s infinite; }
|
|
12
|
-
.lg-bar { animation:lgBar 2.6s ease-in-out infinite; }
|
|
13
|
-
`}),e.jsxs("div",{className:"flex min-h-screen",children:[e.jsx(C,{}),e.jsx(S,{})]})]}),Y=E;export{Y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as D,c as p,a as g}from"./vendor-redux-a1f00e6b.js";import{f as u,b as f}from"./UserService-047aef51.js";import{ab as m,Z as y,F as S}from"./index-c62ac197.js";const w="users",l=D(w+"/getUsers",async a=>{var r,n,d,i;const{auth:e}=m.getState(),s=((n=(r=e==null?void 0:e.session)==null?void 0:r.tenantId)==null?void 0:n.toString())??"",t=await u({fromDate:"",role:"",searchString:"",toDate:""},s,a.isActive,a==null?void 0:a.roleName);return{data:(d=t==null?void 0:t.data)==null?void 0:d.values,totalCount:((i=t==null?void 0:t.data)==null?void 0:i.values.length)||[]}}),v=async a=>(await f(a)).success,I={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},C={loading:!1,deleteConfirmation:!1,usersList:[],tableData:I,filterData:{id:"",accountId:""},IsDrawerOpen:!1,IsDetailsOpen:!1,type:"Add",accountsList:[],metricData:{},selectedUser:[],loadingDetails:!1,grossInvestmentVolumeData:[],grossInvestmentVolumeStackedData:[],incrementAFBRData:[],netGrowthABRData:[],pipelinePieChartData:[],projectStagePieChartData:[]},c=p({name:"users",initialState:C,reducers:{setTableData:(a,e)=>{a.tableData=e.payload},setFilterData:(a,e)=>{a.filterData=e.payload},toggleDeleteConfirmation:(a,e)=>{a.deleteConfirmation=e.payload},setSelectedUser:(a,e)=>{a.selectedUser=e.payload},toggleDrawer:(a,e)=>{a.IsDrawerOpen=e.payload.IsDrawerOpen,a.type=e.payload.type},toggleViewDrawer:(a,e)=>{a.IsDetailsOpen=e.payload}},extraReducers:a=>{a.addCase(l.fulfilled,(e,s)=>{var t,o;console.log("shhsh",s==null?void 0:s.payload),e.usersList=(o=(t=s==null?void 0:s.payload)==null?void 0:t.data)==null?void 0:o.map(r=>({...r,createdDate:r.createdDate?y(r.createdDate).format("MM/DD/YYYY"):""})),e.loading=!1}).addCase(l.pending,e=>{e.loading=!0}).addCase(l.rejected,e=>{e.loading=!1})}}),{setTableData:O,setFilterData:F,toggleDeleteConfirmation:L,toggleDrawer:R,toggleViewDrawer:T,setSelectedUser:V}=c.actions,b=c.reducer,Y=g({data:b}),j=S;export{v as d,l as g,Y as r,V as s,L as t,j as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as C}from"./vendor-mui-69397583.js";import{r as t}from"./vendor-react-ece1c85f.js";import{bs as I,bt as A,b9 as R,d as p,bu as k,bj as $,bv as Y,bw as ee}from"./index-c62ac197.js";import{u as se}from"./useControllableState-d0909575.js";const j=t.createContext({}),te=j.Provider;j.Consumer;function ae(){return t.useContext(j)}const V=t.forwardRef((l,x)=>{const{children:m,className:c,defaultValue:a,onChange:e=()=>{},selectionType:s="single",size:f,value:r,...i}=l,n=I(),o=A(),{controlSize:g}=R(),[d,u]=se({prop:r,defaultProp:a,onChange:e}),b=t.useCallback(h=>{u(h)},[u]),y=t.useCallback(h=>{s==="single"&&u(""),s==="multiple"&&u((N=[])=>N.filter(v=>v!==h))},[u,s]),S=t.useMemo(()=>{if(s==="single")return d&&typeof d=="string"?[d]:d&&Array.isArray(d)?d:[];if(s==="multiple")return d||[]},[s,d]);return C.jsx(te,{value:{value:S,onActive:b,onDeactivate:y,size:f||(o==null?void 0:o.size)||(n==null?void 0:n.size)||g,selectionType:s},children:C.jsx("div",{ref:x,className:p("segment",c),...i,children:m})})});V.displayName="Segment";const ne=l=>Array.isArray(l)?l[0]:l,B=t.forwardRef((l,x)=>{const{size:m}=t.useContext(j),{children:c,className:a,disabled:e=!1,value:s,...f}=l,{value:r,onActive:i,onDeactivate:n,selectionType:o}=ae(),g=r.includes(s),d=t.useCallback(()=>{let b="";switch(m){case $.LG:b=p(`h-${k.lg} md:px-8 py-2 px-4 text-base`);break;case $.SM:b=p(`h-${k.sm} px-3 py-2 text-sm`);break;case $.XS:b=p(`h-${k.xs} px-3 py-1 text-xs`);break;default:b=p(`h-${k.md} md:px-8 py-2 px-4`);break}return b},[m]),u=()=>{if(!e){if(g)o==="multiple"&&(n==null||n(s));else if(o==="single"&&(i==null||i([s])),o==="multiple"){const b=[...r,s];i==null||i(b)}}};return typeof c=="function"?ne(c)({active:g,onSegmentItemClick:u,disabled:e,value:s,...f}):C.jsx("button",{ref:x,className:p("segment-item segment-item-default",g&&"segment-item-active",e&&"segment-item-disabled",d(),a),onClick:u,...f,children:c})});B.displayName="SegmentItem";const oe=V;oe.Item=B;const re=t.forwardRef((l,x)=>{const{badgeStyle:m,children:c,className:a,content:e,innerClass:s,maxCount:f=99,...r}=l,n=p(typeof e!="number"&&typeof e!="string"?"badge-dot":"badge",s);return(()=>c?C.jsxs("span",{ref:x,className:p("badge-wrapper",a),...r,children:[C.jsx("span",{className:p(n,"badge-inner"),style:m,children:typeof e=="number"&&e>f?`${f}+`:e}),c]}):C.jsx("span",{ref:x,className:p(n,a),style:m,...r,children:e}))()});re.displayName="Badge";const E=t.forwardRef((l,x)=>{var n;const{children:m,className:c,size:a}=l,{controlSize:e}=R(),s=(n=I())==null?void 0:n.size,f=a||s||e,r=p("input-group",c),i={size:f};return C.jsx(Y,{value:i,children:C.jsx(ee,{children:()=>C.jsx("div",{ref:x,className:r,children:m})})})});E.displayName="InputGroup";const M=t.forwardRef((l,x)=>{var n,o;const{size:m,children:c,className:a}=l,{controlSize:e}=R(),s=(n=I())==null?void 0:n.size,f=(o=A())==null?void 0:o.size,r=m||f||s||e,i=p("input-addon",`input-addon-${r} h-${k[r]}`,a);return C.jsx("div",{ref:x,className:i,children:c})});M.displayName="Addon";const le=E;le.Addon=M;const L=t.createContext({}),ie=L.Provider,O=t.forwardRef((l,x)=>{const{name:m,disabled:c,value:a,onChange:e,color:s,vertical:f,radioGutter:r}=t.useContext(L),{children:i,className:n,checked:o,color:g,defaultChecked:d,disabled:u=c,field:b,labelRef:y,name:S=m,onChange:h,readOnly:N,value:v,vertical:D=f,...Z}=l,{themeColor:F,primaryColorLevel:X}=R(),w=()=>typeof a<"u"?a===v:o,[G,P]=t.useState(w()),_=g||s||`${F}-${X}`,q=t.useMemo(()=>typeof a<"u"?{checked:G}:{checked:o,defaultChecked:d},[G,o,d,a]),H=t.useCallback(z=>{u||N||(e==null||e(v,z),h==null||h(v,z))},[u,P,h,v,e,a,N]);t.useEffect(()=>{const z=w();G!==z&&P(z)},[v,o,a]);const J=`radio text-${_}`,K=u&&"disabled",Q=u&&"disabled",U=p(J,K),W=p("radio-label",Q,n,"inline-flex",`${r?"m"+(D?"b-":"r-")+r:""}`);return C.jsxs("label",{ref:y,className:W,children:[C.jsx("input",{ref:x,type:"radio",className:U,disabled:u,value:v,name:S,readOnly:N,onChange:H,...q,...b,...Z}),i?C.jsx("span",{className:p("ltr:ml-2 rtl:mr-2",u?"opacity-50":""),children:i}):null]})});O.displayName="Radio";const T=t.forwardRef((l,x)=>{const{color:m,disabled:c,name:a,onChange:e,radioGutter:s=3,value:f,vertical:r=!1,className:i,...n}=l,[o,g]=t.useState(f),d=t.useCallback((y,S)=>{g(y),e==null||e(y,S)},[e,g]),u=t.useMemo(()=>({vertical:r,name:a,value:typeof o>"u"?null:o,color:m,disabled:c,radioGutter:s,onChange:d}),[c,d,r,a,m,s,o]),b=p("radio-group",r&&"vertical",i);return C.jsx(ie,{value:u,children:C.jsx("div",{ref:x,className:b,...n,children:l.children})})});T.displayName="RadioGroup";const ce=O;ce.Group=T;export{re as B,le as I,ce as R,oe as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as i}from"./ReportEditor-8880f57e.js";import{C as q,a as v,b as w,c as z,P as E,R as M,W as O}from"./ReportEditor-8880f57e.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-mui-69397583.js";import"./vendor-react-ece1c85f.js";import"./ReportViewer-9f1080f7.js";import"./index-c62ac197.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./AdaptableCard-df7695d6.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";export{q as Callbacks,v as DataSourceSettings,w as DesignerModelSettings,i as DxReportDesigner,z as ParameterEditingSettings,E as PreviewSettings,M as RequestOptions,O as WizardSettings,i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as l,c as d,a as u}from"./vendor-redux-a1f00e6b.js";import{cI as a,F as p}from"./index-c62ac197.js";async function E(e){return(await a.apiV10EntityPost(e)).data}async function y(e){return(await a.apiV10EntityGet(e)).data}async function C(e){return(await a.apiV10EntityIdGet(e)).data}async function b(e,t){return(await a.apiV10EntityIdPut(e,t)).data}async function S(e){return(await a.apiV10EntityIdDelete(e)).data}async function I(e){return(await a.apiV10EntityEntityUsersEntityIdGet(e)).data}const o="CountyData",n=l(`${o}/getCountyList`,async e=>(await y({filters:e==null?void 0:e.filters})).data),r=l(o+"/getCountyDetails",async e=>(await C(e.id)).data),f={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},D={loading:!1,deleteConfirmation:!1,selectedRowData:"",tableData:f,filterData:{name:"",category:["bags","cloths","devices","shoes","watches"],status:[0,1,2],productStatus:0},CountyList:[],CountyDetails:{},paymentList:[]},c=d({name:`${o}`,initialState:D,reducers:{setTableData:(e,t)=>{e.tableData=t.payload},setFilterData:(e,t)=>{e.filterData=t.payload},toggleDeleteConfirmation:(e,t)=>{e.deleteConfirmation=t.payload},setSelectedRowData:(e,t)=>{e.selectedRowData=t.payload}},extraReducers:e=>{e.addCase(n.fulfilled,(t,s)=>{var i;t.CountyList=(i=s.payload.result)==null?void 0:i.$values,t.tableData.total=s.payload.result.$values.length,t.loading=!1}).addCase(n.pending,t=>{t.loading=!0}).addCase(n.rejected,t=>{t.loading=!1}).addCase(r.fulfilled,(t,s)=>{t.CountyDetails=s.payload,t.loading=!1}).addCase(r.pending,t=>{t.loading=!0})}}),{setTableData:G,setFilterData:L,toggleDeleteConfirmation:R,setSelectedRowData:V}=c.actions,g=c.reducer,h=u({data:g}),v=p;export{b as a,E as b,S as c,I as d,r as e,n as g,h as r,V as s,R as t,v as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./vendor-mui-69397583.js";import{A as l}from"./AdaptableCard-df7695d6.js";import{Y as T,C as p}from"./index-c62ac197.js";import{b as d,c as g,u as E,a as m}from"./vendor-redux-a1f00e6b.js";import{h as u}from"./AccountServices-62599aae.js";import"./vendor-react-ece1c85f.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 C="UPDATE-TICKET",A="COMMENT",I="ADD-TAGS-TO-TICKET",f="ADD-FILES-TO-TICKET",y="COMMENT-MENTION",L="ASSIGN-TICKET",N="CREATE-TICKET",s="accountActivityLog",c=d(s+"/getLogs",async e=>(await u()).data),r=d(s+"/filterLogs",async e=>(await apiGetAccountLogData(e)).data),S={loading:!1,loadMoreLoading:!1,loadable:!1,activityIndex:1,logs:[],selectedType:[C,A,y,L,I,f,N]},i=g({name:`${s}/state`,initialState:S,reducers:{setActivityIndex:(e,a)=>{e.activityIndex=a.payload},setSelected:(e,a)=>{e.selectedType=a.payload}},extraReducers:e=>{e.addCase(c.fulfilled,(a,t)=>{const n=E(a);a.logs=[...n.logs,...t.payload.data],a.loadMoreLoading=!1,a.loadable=t.payload.loadable}).addCase(c.pending,a=>{a.loadMoreLoading=!0}).addCase(r.fulfilled,(a,t)=>{a.logs=t.payload.data,a.loading=!1,a.loadable=t.payload.loadable}).addCase(r.pending,a=>{a.loading=!0})}});i.actions;const M=i.reducer,x=m({data:M});T("accountActivityLog",x);const D=()=>o.jsx(p,{children:o.jsx(l,{children:o.jsx("div",{className:"grid lg:grid-cols-5 gap-8 ",children:o.jsxs("div",{className:"col-span-4 order-last md:order-first",children:[o.jsx("h3",{className:"mb-6",children:"Notifications"}),"test"]})})})}),P=D;export{P as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./vendor-mui-69397583.js";import{r as u}from"./vendor-react-ece1c85f.js";import{F as U,dR as L,Y as C,l as P,W as Z,B as W,O as I,Q as D,D as $}from"./index-c62ac197.js";import{c as _,a as q}from"./vendor-redux-a1f00e6b.js";import{F as Y,a as H}from"./FormContainer-91c2b0e4.js";import{c as k,F as Q,b as X,d as K}from"./index.esm-70ab539c.js";import{r as N,u as M,g as G}from"./index-6589dd2d.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"./UserService-047aef51.js";const ee={loading:!1,deleteConfirmation:!1,usersList:[],IsDrawerOpen:!1,IsDetailsOpen:!1,type:"Add",accountsList:[],metricData:{},selectedUser:[],geoJson:{}},T=_({name:"geoFence",initialState:ee,reducers:{setSelectedUser:(o,r)=>{o.selectedUser=r.payload},toggleDrawer:(o,r)=>{o.IsDrawerOpen=r.payload.IsDrawerOpen,o.type=r.payload.type,o.geoJson=r.payload.geoJson}},extraReducers:o=>{}}),{toggleDrawer:j,setSelectedUser:Se}=T.actions,te=T.reducer,z=q({data:te}),ne=U;async function oe(o){return(await L.apiV10MapsCreateRestrictedZonePost(o)).data}async function re(o){return(await L.apiV10MapsValidateRestrictedZonePost(o)).data}async function se(o,r,d){return(await L.apiV10MapsGetGeoFencesGet(o,r,d)).data}C("users",N);C("geoJson",z);const ae=k().shape({clientId:k().required("User is required")}),ce=({handleOnSubmit:o})=>{const r=P(),{usersList:d}=M(s=>{var i;return(i=s==null?void 0:s.users)==null?void 0:i.data}),{geoJson:p}=M(s=>{var i;return(i=s==null?void 0:s.geoFence)==null?void 0:i.data});u.useEffect(()=>{r(G({isActive:!0}))},[]);const w=async(s,i)=>{i(!0);try{const{clientId:g}=s,x=await oe({clientId:g==null?void 0:g.value,name:g==null?void 0:g.label,description:"",geoJson:p});x.success&&I.push(n.jsx(D,{title:"Success",type:"success",duration:2500,children:x==null?void 0:x.message}),{placement:"top-center"}),r(j({IsDrawerOpen:!1,type:"Add",geoJson:{}}))}catch(g){console.error("Error submitting form:",g)}finally{i(!1)}};return n.jsx(Q,{initialValues:{clientId:""},validationSchema:ae,onSubmit:(s,{setSubmitting:i})=>{w(s,i)},children:({touched:s,errors:i,values:g})=>n.jsx(X,{children:n.jsxs(Y,{children:[n.jsx(H,{label:"Users",invalid:i.clientId&&s.clientId,errorMessage:i.clientId,children:n.jsx(K,{name:"clientId",children:({field:x,form:R})=>n.jsx(Z,{className:"min-w-[120px]",field:x,form:R,options:d==null?void 0:d.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id})),value:g.clientId,onChange:m=>{R.setFieldValue(x.name,m)}})})}),n.jsx(W,{block:!0,variant:"solid",type:"submit",children:"Submit"})]})})})};C("geoFence",z);const ie=()=>{const o=P(),{IsDrawerOpen:r,type:d}=ne(w=>w.geoFence.data),p=()=>{o(j({IsDrawerOpen:!1,type:"Add",geoFence:{}}))};return n.jsxs($,{isOpen:r,onClose:p,children:[n.jsx("h4",{children:"Add Restricted Zone"}),n.jsx("div",{className:"mt-4",children:n.jsx(ce,{})})]})};C("users",N);function le(o){let r=0;for(let d=0;d<o.length-1;d++){const[p,w]=o[d],[s,i]=o[d+1];r+=(s-p)*(i+w)}return r>0}const de=()=>{const o=u.useRef(null),r=u.useRef(null),d=u.useRef(null),p=u.useRef(null),w=u.useRef(null),s=u.useRef([]),[i,g]=u.useState([]),[x,R]=u.useState(!1),m=P(),[S,J]=u.useState(()=>{var e,a;return!!((a=(e=window.google)==null?void 0:e.maps)!=null&&a.drawing)});u.useEffect(()=>{if(S)return;const e=document.querySelector('script[src*="maps.googleapis.com"]');if(e){const a=()=>J(!0);return e.addEventListener("load",a),()=>e.removeEventListener("load",a)}},[]);const V=e=>{var l,v,f;if(!p.current)return;s.current.forEach(h=>h.setMap(null)),s.current=[];const a=p.current;if(((l=e.properties)==null?void 0:l.type)==="circle"){const[h,F]=e.geometry.coordinates,b=new window.google.maps.Circle({center:{lat:F,lng:h},radius:e.properties.radius,fillColor:"#FF0000",fillOpacity:.35,strokeWeight:2,map:a});s.current.push(b),a.panTo({lat:F,lng:h})}if(((v=e.geometry)==null?void 0:v.type)==="Polygon"&&((f=e.geometry.coordinates)!=null&&f.length)){const h=e.geometry.coordinates[0].map(([c,t])=>({lat:t,lng:c})),F=new window.google.maps.Polygon({paths:h,fillColor:"#2196F3",fillOpacity:.4,strokeWeight:2,map:a});s.current.push(F);const b=new window.google.maps.LatLngBounds;h.forEach(c=>b.extend(c)),a.fitBounds(b)}};u.useEffect(()=>{(async()=>{try{R(!0);const[a,l]=await Promise.all([m(G({isActive:!0})),se()]);g(l.data.result.$values||[])}catch(a){console.error("Failed to fetch data:",a)}finally{R(!1)}})()},[m]),u.useEffect(()=>{if(!S||!o.current||!r.current||!d.current)return;const e=new window.google.maps.Map(o.current,{center:{lat:29.785463,lng:-95.358547},zoom:12});e.controls[window.google.maps.ControlPosition.TOP_CENTER].push(r.current),p.current=e,w.current=new window.google.maps.drawing.DrawingManager({drawingControl:!0,drawingControlOptions:{position:window.google.maps.ControlPosition.TOP_RIGHT,drawingModes:["marker","circle","polygon","rectangle"]},polygonOptions:{fillColor:"#2196F3",fillOpacity:.4,strokeWeight:2,editable:!0}}),w.current.setMap(e),window.google.maps.event.addListener(w.current,"overlaycomplete",async l=>{var h,F,b;const v=l.overlay;s.current.push(v);let f=null;if(l.type==="polygon"){const c=v.getPath(),t=[];for(let O=0;O<c.getLength();O++){const A=c.getAt(O);t.push([A.lng(),A.lat()])}const y=t[0],E=t[t.length-1];(y[0]!==E[0]||y[1]!==E[1])&&t.push(y),f={type:"Feature",geometry:{type:"Polygon",coordinates:[le(t)?t.slice().reverse():t]},properties:{type:"polygon"}},m(j({IsDrawerOpen:!0,type:"Add",geoJson:f}))}if(l.type==="circle"){const c=v.getCenter(),t=v.getRadius();f={type:"Feature",geometry:{type:"Point",coordinates:c?[c.lng(),c.lat()]:[]},properties:{type:"circle",radius:t}},m(j({IsDrawerOpen:!0,type:"Add",geoJson:f}))}if(l.type==="rectangle"){const c=v.getBounds();if(!c)return;const t=c.getNorthEast(),y=c.getSouthWest();f={type:"Feature",geometry:{type:"Polygon",coordinates:[[[y.lng(),y.lat()],[t.lng(),y.lat()],[t.lng(),t.lat()],[y.lng(),t.lat()],[y.lng(),y.lat()]]]},properties:{type:"rectangle"}},m(j({IsDrawerOpen:!0,type:"Add",geoJson:f}))}if(l.type==="marker"){const c=v.getPosition();f={type:"Feature",geometry:{type:"Point",coordinates:c?[c.lng(),c.lat()]:[]},properties:{type:"marker"}};try{const t=await re({latitude:c.lat(),longitude:c.lng()});t.success&&I.push(n.jsx(D,{title:(h=t==null?void 0:t.data)!=null&&h.isInsideRestrictedZone?"Error":"Success",type:(F=t==null?void 0:t.data)!=null&&F.isInsideRestrictedZone?"danger":"success",duration:2500,children:(b=t==null?void 0:t.data)!=null&&b.isInsideRestrictedZone?"You are inside restricted zone.":"You are outside restricted zone."}),{placement:"top-center"})}catch(t){I.push(n.jsx(D,{title:"Error",type:"danger",duration:3e3,children:"Failed to validate marker."}),{placement:"top-center"}),console.error("Validation error:",t)}}});const a=new window.google.maps.places.Autocomplete(d.current);a.bindTo("bounds",e),a.addListener("place_changed",()=>{const l=a.getPlace();!l.geometry||!l.geometry.location||(l.geometry.viewport?e.fitBounds(l.geometry.viewport):(e.setCenter(l.geometry.location),e.setZoom(15)))})},[S]),u.useEffect(()=>{if(!S||!p.current||!r.current)return;const e=()=>{setTimeout(()=>{window.google.maps.event.trigger(p.current,"resize");const a=p.current.controls[window.google.maps.ControlPosition.TOP_CENTER];a.clear(),a.push(r.current)},200)};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}},[S]);const B=()=>{s.current.forEach(e=>e.setMap(null)),s.current=[]};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b dark:bg-[#292f3c] dark:text-white",children:n.jsxs("div",{className:"lg:flex items-center justify-between",children:[n.jsx("h3",{className:"mb-4 lg:mb-0",children:" Map Geo Fence "}),n.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center",children:n.jsx("div",{style:{width:350},children:n.jsx(Z,{options:i||[],name:"Geo Fence Zones",isClearable:!0,loading:x,getOptionLabel:e=>e.name,getOptionValue:e=>e.id,placeholder:"Select Restricted Zone",onChange:e=>{if(!e)return;const a=JSON.parse(e.geoJson);m(j({IsDrawerOpen:!1,type:"",geoJson:a})),V(a)}})})})]})}),n.jsxs("div",{style:{height:"100vh",width:"100%",position:"relative"},children:[p&&n.jsx(ie,{}),n.jsxs("div",{ref:r,style:{position:"absolute",top:10,left:"50%",transform:"translateX(-50%)",zIndex:10,background:"white",padding:"8px",borderRadius:"4px",boxShadow:"0 2px 6px rgba(0,0,0,0.3)",display:"flex",gap:"8px"},children:[n.jsx("input",{ref:d,type:"text",placeholder:"Search a place...",style:{width:300,padding:6,fontSize:14}}),n.jsx("button",{onClick:B,children:"Clear All"})]}),n.jsx("div",{ref:o,style:{height:"100%",width:"100%"}})]})]})},Ce=de;export{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as n,c as i,a as c}from"./vendor-redux-a1f00e6b.js";import{d5 as u,F as p}from"./index-c62ac197.js";async function L(){return(await u.apiV10LayoutsGet()).data}async function I(t,a){return(await u.apiV10LayoutsLayoutIdAssignPost(t,a)).data}async function D(t){return(await u.apiV10LayoutsLayoutIdGet(t)).data}async function S(t,a){return(await u.apiV10LayoutsLayoutIdPut(t,a)).data}async function m(t){return(await u.apiV10LayoutsPost(t)).data}async function A(t){return(await u.apiV10LayoutsLayoutIdDelete(t)).data}const y="layouts",g={loading:!1,loadingDetails:!1,isDeleteConfirmation:!1,layoutList:[],isDrawerOpen:!1,type:"Add",selectedLayout:{},selectedLayoutData:[]},d=n(y+"/getLayouts",async()=>{var e,s,o;const t=await L();return{data:((s=(e=t==null?void 0:t.data)==null?void 0:e.layouts)==null?void 0:s.$values)||[],totalCount:((o=t==null?void 0:t.data)==null?void 0:o.totalCount)||0}}),l=n(y+"/getLayoutById",async t=>{var s,o;const a=await D(t);return{layoutData:(s=a==null?void 0:a.data)!=null&&s.layoutData?JSON.parse((o=a==null?void 0:a.data)==null?void 0:o.layoutData):[],layoutDetails:(a==null?void 0:a.data)||[]}}),r=i({name:"layouts",initialState:g,reducers:{setSelectedLayout:(t,a)=>{t.selectedLayout=a.payload},toggleDrawer:(t,a)=>{t.isDrawerOpen=a.payload.isDrawerOpen,t.type=a.payload.type},toggleDelete:(t,a)=>{t.isDeleteConfirmation=a.payload}},extraReducers:t=>{t.addCase(d.fulfilled,(a,e)=>{var s;a.layoutList=(s=e==null?void 0:e.payload)==null?void 0:s.data,a.loading=!1}).addCase(d.pending,a=>{a.loading=!0}).addCase(d.rejected,a=>{a.loading=!1}).addCase(l.fulfilled,(a,e)=>{var s,o;a.selectedLayout=(s=e==null?void 0:e.payload)==null?void 0:s.layoutDetails,a.selectedLayoutData=(o=e==null?void 0:e.payload)==null?void 0:o.layoutData,a.loadingDetails=!1}).addCase(l.pending,a=>{a.loadingDetails=!0}).addCase(l.rejected,a=>{a.loadingDetails=!1})}}),{toggleDrawer:P,toggleDelete:V,setSelectedLayout:G}=r.actions,f=r.reducer,O=c({data:f}),b=p;export{m as a,S as b,A as c,V as d,I as e,l as f,d as g,O as r,G as s,P as t,b as u};
|