@argusoft/medplat-form-engine 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +52390 -3
  3. package/dist/index.js.map +1 -1
  4. package/package.json +4 -1
  5. package/dist/AccessRights-sgIhYR30-Dg6B4KJM.js +0 -1238
  6. package/dist/AccessRights-sgIhYR30-Dg6B4KJM.js.map +0 -1
  7. package/dist/AddEditQueryBuilder-BaZxS2Cm-emLM3Oli.js +0 -289
  8. package/dist/AddEditQueryBuilder-BaZxS2Cm-emLM3Oli.js.map +0 -1
  9. package/dist/AddEditQueryBuilder-BaZxS2Cm.css +0 -1
  10. package/dist/AddFeatures-DLbjDGei-Dg8WYww8.js +0 -212
  11. package/dist/AddFeatures-DLbjDGei-Dg8WYww8.js.map +0 -1
  12. package/dist/AddLabelModal-DE3ploGD-BV_K8Q7c.js +0 -734
  13. package/dist/AddLabelModal-DE3ploGD-BV_K8Q7c.js.map +0 -1
  14. package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js +0 -5389
  15. package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js.map +0 -1
  16. package/dist/AddMenuConfiguration-QWfpcnuP.css +0 -1
  17. package/dist/AddRoleDrawer-ZK1eejxI-xMb2iVGk.js +0 -453
  18. package/dist/AddRoleDrawer-ZK1eejxI-xMb2iVGk.js.map +0 -1
  19. package/dist/AppModal-BgZyfrd--CZPgx1UG.js +0 -428
  20. package/dist/AppModal-BgZyfrd--CZPgx1UG.js.map +0 -1
  21. package/dist/ChangePasswordModal-MV7g8tkA-D6c6QM4F.js +0 -176
  22. package/dist/ChangePasswordModal-MV7g8tkA-D6c6QM4F.js.map +0 -1
  23. package/dist/ConditionConfig-GDCXIg3C-COtWwHe3.js +0 -395
  24. package/dist/ConditionConfig-GDCXIg3C-COtWwHe3.js.map +0 -1
  25. package/dist/ConditionConfig-GDCXIg3C.css +0 -1
  26. package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js +0 -50
  27. package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js.map +0 -1
  28. package/dist/EventConfigurations-jGCJ4LqP-B_ftXinp.js +0 -384
  29. package/dist/EventConfigurations-jGCJ4LqP-B_ftXinp.js.map +0 -1
  30. package/dist/EventConfigurations-jGCJ4LqP.css +0 -1
  31. package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js +0 -200
  32. package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js.map +0 -1
  33. package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js +0 -74
  34. package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map +0 -1
  35. package/dist/FeatureMenu-BYSRoNm0-9p5IIVx2.js +0 -249
  36. package/dist/FeatureMenu-BYSRoNm0-9p5IIVx2.js.map +0 -1
  37. package/dist/Features-CKMmuqcs-ClXAzWGV.js +0 -11
  38. package/dist/Features-CKMmuqcs-ClXAzWGV.js.map +0 -1
  39. package/dist/FlywayQuery-Cx2sly6g-B1LLSyLE.js +0 -169
  40. package/dist/FlywayQuery-Cx2sly6g-B1LLSyLE.js.map +0 -1
  41. package/dist/ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js +0 -5162
  42. package/dist/ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js.map +0 -1
  43. package/dist/ImmunizationConfigurationBase-DZ8EqXlF.css +0 -1
  44. package/dist/ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js +0 -335
  45. package/dist/ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js.map +0 -1
  46. package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js +0 -186
  47. package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js.map +0 -1
  48. package/dist/LanguagesModal-rk6IGQwY-BaAI1s2W.js +0 -394
  49. package/dist/LanguagesModal-rk6IGQwY-BaAI1s2W.js.map +0 -1
  50. package/dist/ManageDynamicFeature-BKkCnQvF-CinU35NS.js +0 -4189
  51. package/dist/ManageDynamicFeature-BKkCnQvF-CinU35NS.js.map +0 -1
  52. package/dist/ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js +0 -1017
  53. package/dist/ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js.map +0 -1
  54. package/dist/ManageEventConfiguration-BJxS2Su0.css +0 -1
  55. package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js +0 -6819
  56. package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js.map +0 -1
  57. package/dist/ManageRole-BjIIXAlK-DY39p0FD.js +0 -728
  58. package/dist/ManageRole-BjIIXAlK-DY39p0FD.js.map +0 -1
  59. package/dist/ManageTranslation-BTxvSYKb-C2CZwkRN.js +0 -616
  60. package/dist/ManageTranslation-BTxvSYKb-C2CZwkRN.js.map +0 -1
  61. package/dist/ManageTranslation-BTxvSYKb.css +0 -1
  62. package/dist/ManageUser-PHiTNyF8-Bm4bYqvt.js +0 -2160
  63. package/dist/ManageUser-PHiTNyF8-Bm4bYqvt.js.map +0 -1
  64. package/dist/ManageUser-PHiTNyF8.css +0 -1
  65. package/dist/MedplatFormWrapper-CEXGoLC1.js +0 -44520
  66. package/dist/MedplatFormWrapper-CEXGoLC1.js.map +0 -1
  67. package/dist/MedplatFormWrapper.css +0 -1
  68. package/dist/MobileMenuManagement-DmQU5TTo-D7n_NP0X.js +0 -108
  69. package/dist/MobileMenuManagement-DmQU5TTo-D7n_NP0X.js.map +0 -1
  70. package/dist/MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js +0 -783
  71. package/dist/MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js.map +0 -1
  72. package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js +0 -1002
  73. package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js.map +0 -1
  74. package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js +0 -244
  75. package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js.map +0 -1
  76. package/dist/NotificationList-BkpOrCpM-B-vKDGd_.js +0 -400
  77. package/dist/NotificationList-BkpOrCpM-B-vKDGd_.js.map +0 -1
  78. package/dist/OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js +0 -1953
  79. package/dist/OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js.map +0 -1
  80. package/dist/QueryBuilder-Cus_mRwZ-DLXSM32i.js +0 -378
  81. package/dist/QueryBuilder-Cus_mRwZ-DLXSM32i.js.map +0 -1
  82. package/dist/QueryBuilder-Cus_mRwZ.css +0 -1
  83. package/dist/QueryManagement-DXA73N2j-BMDEgiCy.js +0 -671
  84. package/dist/QueryManagement-DXA73N2j-BMDEgiCy.js.map +0 -1
  85. package/dist/QueryManagement-DXA73N2j.css +0 -1
  86. package/dist/RoleManagement-v5Nyp1vr-BsTLfcMm.js +0 -416
  87. package/dist/RoleManagement-v5Nyp1vr-BsTLfcMm.js.map +0 -1
  88. package/dist/ServerSyncModal-uNjGCQJz--PJ3F3xg.js +0 -869
  89. package/dist/ServerSyncModal-uNjGCQJz--PJ3F3xg.js.map +0 -1
  90. package/dist/ShowFlywayQuery-DMsAbtOW-TT9XXzUi.js +0 -130
  91. package/dist/ShowFlywayQuery-DMsAbtOW-TT9XXzUi.js.map +0 -1
  92. package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js +0 -259
  93. package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js.map +0 -1
  94. package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js +0 -190
  95. package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js.map +0 -1
  96. package/dist/SubMenu-BHcSNSUF-eLmX3DkH.js +0 -187
  97. package/dist/SubMenu-BHcSNSUF-eLmX3DkH.js.map +0 -1
  98. package/dist/TableDetails-DzREeJkm-B-WEBbQz.js +0 -1508
  99. package/dist/TableDetails-DzREeJkm-B-WEBbQz.js.map +0 -1
  100. package/dist/TableList-B9hr05Hs-BIsMbnIV.js +0 -428
  101. package/dist/TableList-B9hr05Hs-BIsMbnIV.js.map +0 -1
  102. package/dist/TypeConfiguration-C-lk8Szs-qaofDyyM.js +0 -117
  103. package/dist/TypeConfiguration-C-lk8Szs-qaofDyyM.js.map +0 -1
  104. package/dist/UserList-BxB1tCwM-7YIwwGQ9.js +0 -13039
  105. package/dist/UserList-BxB1tCwM-7YIwwGQ9.js.map +0 -1
  106. package/dist/UserList-BxB1tCwM.css +0 -1
  107. package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js +0 -184
  108. package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js.map +0 -1
  109. package/dist/WidgetList-BSApErov-D05f9srr.js +0 -188
  110. package/dist/WidgetList-BSApErov-D05f9srr.js.map +0 -1
  111. package/dist/_commonjsHelpers-BItOPCY9-B9tZyK9c.js +0 -29
  112. package/dist/_commonjsHelpers-BItOPCY9-B9tZyK9c.js.map +0 -1
  113. package/dist/i18next-CTOWN_jH-BKKbdDel.js +0 -1389
  114. package/dist/i18next-CTOWN_jH-BKKbdDel.js.map +0 -1
  115. package/dist/index-B4r0wjBD.js +0 -563
  116. package/dist/index-B4r0wjBD.js.map +0 -1
  117. package/dist/index-CnfGzeaj.js +0 -542
  118. package/dist/index-CnfGzeaj.js.map +0 -1
  119. package/dist/manageImmunization-B4swS745-JldexHrO.js +0 -1204
  120. package/dist/manageImmunization-B4swS745-JldexHrO.js.map +0 -1
  121. package/dist/manageImmunization-B4swS745.css +0 -1
@@ -1 +0,0 @@
1
- @import"https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap";/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */.immunization-landing{background-color:#fbfcff;justify-content:center;align-items:flex-start;min-height:calc(100vh - 100px);padding:40px 20px;display:flex;position:relative;overflow:hidden;font-family:Mulish,sans-serif!important}.immunization-landing:before{content:"";opacity:.4;pointer-events:none;z-index:0;background-image:url(https://www.transparenttextures.com/patterns/white-wall.png);position:absolute;top:0;right:0;bottom:0;left:0}.immunization-landing .content-wrapper{z-index:1;flex-direction:column;align-items:center;width:80%;max-width:1200px;display:flex}@media(max-width:900px){.immunization-landing .content-wrapper{width:95%}}@media(min-width:2500px){.immunization-landing .content-wrapper{max-width:1800px}}.immunization-landing .header-text{text-align:center;margin-bottom:30px}@media(min-width:2500px){.immunization-landing .header-text{margin-bottom:60px}}.immunization-landing .header-text .page-title{color:#1a1a1a;margin-bottom:12px!important;font-size:25px!important;font-weight:800!important}@media(max-width:600px){.immunization-landing .header-text .page-title{font-size:24px!important}}@media(min-width:2500px){.immunization-landing .header-text .page-title{font-size:42px!important}}.immunization-landing .header-text .page-subtitle{color:#717171;max-width:600px;margin:0 auto;font-size:12px!important;font-weight:500!important}@media(max-width:600px){.immunization-landing .header-text .page-subtitle{font-size:14px!important}}@media(min-width:2500px){.immunization-landing .header-text .page-subtitle{max-width:1000px;font-size:18px!important}}.immunization-landing .search-filter-section{gap:16px;width:100%;max-width:850px;margin-bottom:40px;display:flex}@media(max-width:600px){.immunization-landing .search-filter-section{flex-direction:column;margin-bottom:40px}}.immunization-landing .search-filter-section .search-field{flex-grow:1}.immunization-landing .search-filter-section .search-field .MuiOutlinedInput-root{background-color:#fff;border-radius:12px;height:40px}.immunization-landing .search-filter-section .search-field .MuiOutlinedInput-root fieldset{border-width:1.5px;border-color:#e0e0e0}.immunization-landing .search-filter-section .search-field .MuiOutlinedInput-root:hover fieldset{border-color:#bdbdbd}.immunization-landing .search-filter-section .search-field .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#11b666}.immunization-landing .search-filter-section .search-field .search-icon{color:#9e9e9e;margin-right:8px}.immunization-landing .search-filter-section .filter-button{color:#555;text-transform:none;border:1.5px solid #e0e0e0;border-radius:12px;height:40px;margin-top:8px;padding:0 24px;font-size:16px;font-weight:700}.immunization-landing .search-filter-section .filter-button:hover{background-color:#f5f5f5;border-color:#bdbdbd}.immunization-landing .template-grid{justify-content:center;width:100%;max-width:1200px}.immunization-landing .custom-template-slot{justify-content:center;width:100%;display:flex}.immunization-landing .template-card{background:#fff;border:1.5px solid #e0e0e0;border-radius:20px;flex-direction:column;width:100%;height:95%;padding:24px;transition:all .3s;display:flex}.immunization-landing .template-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #0000000d}.immunization-landing .template-card.custom-card{border:2px solid #607080;max-width:560px}.immunization-landing .template-card .card-header{justify-content:space-between;align-items:flex-start;margin-bottom:24px;display:flex}.immunization-landing .template-card .card-header .icon-wrapper{border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.immunization-landing .template-card .card-header .icon-wrapper .main-icon{font-size:20px}.immunization-landing .template-card .card-header .info-btn{color:#bdbdbd;padding:4px}.immunization-landing .template-card .card-header .info-btn:hover{color:#757575}.immunization-landing .template-card .card-title{color:#333;flex-grow:1;margin-top:30px!important;margin-bottom:45px!important;font-size:22px!important;font-weight:800!important}@media(max-width:1200px){.immunization-landing .template-card .card-title{font-size:20px!important}}.immunization-landing .template-card .card-btn{text-transform:none;border-radius:12px;height:52px;font-size:16px;font-weight:700}.immunization-landing .template-card .card-btn.secondary-btn{color:#434d5b;background-color:#f1f4f9}.immunization-landing .template-card .card-btn.secondary-btn:hover{background-color:#e5ebf3}.immunization-landing .template-card .card-btn.primary-btn{color:#fff;background-color:#4c5e70;box-shadow:0 4px 12px #11b66633}.immunization-landing .template-card .card-btn.primary-btn:hover{background-color:#394d61;box-shadow:0 6px 16px #11b6664d}.immunization-landing .template-card .card-btn .MuiButton-endIcon{margin-left:12px}.add-custom-vaccine-dialog .MuiBackdrop-root{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:#0f172a66}.add-custom-vaccine-dialog .dialog-header{justify-content:space-between;align-items:flex-start;padding:18px 18px 12px;display:flex}.add-custom-vaccine-dialog .dialog-header .header-content{align-items:center;gap:12px;display:flex}.add-custom-vaccine-dialog .dialog-header .header-content .icon-box{color:#4c5e70;background-color:#e7f7ef;border-radius:9px;justify-content:center;align-items:center;width:33px;height:33px;font-size:14px;display:flex}.add-custom-vaccine-dialog .dialog-header .header-content .text-wrap .title{color:#1a1a1a;line-height:1.2;font-size:15px!important;font-weight:800!important}.add-custom-vaccine-dialog .dialog-header .header-content .text-wrap .subtitle{color:#717171;font-size:10px!important;font-weight:500!important}.add-custom-vaccine-dialog .dialog-header .close-button{color:#94a3b8}.add-custom-vaccine-dialog .dialog-header .close-button:hover{color:#64748b;background-color:#f1f5f9}.add-custom-vaccine-dialog .dialog-content{padding:0 18px 18px}.add-custom-vaccine-dialog .dialog-content .input-group:last-child{margin-bottom:0}.add-custom-vaccine-dialog .dialog-content .input-group .input-label{color:#334155;font-size:11px!important;font-weight:700!important}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root{background-color:#f8fafc;border-radius:9px;height:39px;font-size:12px;transition:all .2s}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root fieldset{border-width:1.5px;border-color:#e2e8f0}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root:hover fieldset{border-color:#cbd5e1}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#4c5e70}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root input{color:#1e293b;font-weight:500}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root input::placeholder{color:#94a3b8;opacity:1}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .input-icon{color:#94a3b8;margin-right:3px;font-size:12px}.add-custom-vaccine-dialog .dialog-actions{flex-direction:column;gap:9px;padding:0 24px 24px}.add-custom-vaccine-dialog .dialog-actions .add-btn{color:#fff;text-transform:none;background-color:#4c5e70;border-radius:9px;height:39px;font-size:12px;font-weight:700;box-shadow:0 4px 12px #11b66633;margin:0!important}.add-custom-vaccine-dialog .dialog-actions .add-btn:hover{background-color:#394d61;box-shadow:0 6px 16px #11b6664d}.add-custom-vaccine-dialog .dialog-actions .add-btn:disabled{color:#fff;background-color:#7e807f}.add-custom-vaccine-dialog .dialog-actions .cancel-btn{color:#64748b;text-transform:none;background-color:#f1f5f9;border-radius:9px;height:39px;font-size:12px;font-weight:700;margin:0!important}.add-custom-vaccine-dialog .dialog-actions .cancel-btn:hover{color:#475569;background-color:#e2e8f0}.immunization-schedule-config{background-color:#fbfcff;min-height:calc(100vh - 100px);padding:30px 15px;position:relative;font-family:Mulish,sans-serif!important}.immunization-schedule-config:before{content:"";opacity:.4;pointer-events:none;z-index:0;background-image:url(https://www.transparenttextures.com/patterns/white-wall.png);position:absolute;top:0;right:0;bottom:0;left:0}.immunization-schedule-config .content-wrapper{z-index:1;max-width:1100px;margin:0 auto;position:relative}@media(min-width:2500px){.immunization-schedule-config .content-wrapper{max-width:1800px}}.immunization-schedule-config .main-config-card{background:#fff;border:1px solid #eef2f6;border-radius:20px;padding:18px 25px;box-shadow:0 4px 20px #00000005}@media(max-width:600px){.immunization-schedule-config .main-config-card{padding:12px 16px}}.immunization-schedule-config .section-header{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}@media(max-width:900px){.immunization-schedule-config .section-header{flex-direction:column;align-items:flex-start;gap:20px}}.immunization-schedule-config .section-header .title-group{align-items:center;gap:14px;display:flex}.immunization-schedule-config .section-header .title-group .icon-box{color:#394d61;background-color:#e7f7ef;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;display:flex}.immunization-schedule-config .section-header .title-group .text-wrap .title{color:#1a1a1a;font-size:20px!important;font-weight:800!important}.immunization-schedule-config .section-header .title-group .text-wrap .subtitle{color:#717171;font-size:14px!important;font-weight:500!important}.immunization-schedule-config .section-header .search-box{width:100%;max-width:400px}.immunization-schedule-config .section-header .search-box .MuiOutlinedInput-root{background-color:#f8fafc;border-radius:12px;height:40px;font-size:14px}.immunization-schedule-config .section-header .search-box .MuiOutlinedInput-root fieldset{border-color:#eef2f6}.immunization-schedule-config .section-header .search-box .MuiOutlinedInput-root:hover fieldset{border-color:#e2e8f0}.immunization-schedule-config .section-header .search-box .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#394d61}.immunization-schedule-config .section-header .search-box .search-icon{color:#94a3b8}.immunization-schedule-config .vaccine-grid{gap:12px;margin-bottom:24px;grid-template-columns:repeat(6,1fr)!important;display:grid!important}@media(max-width:1200px){.immunization-schedule-config .vaccine-grid{grid-template-columns:repeat(4,1fr)!important}}@media(max-width:900px){.immunization-schedule-config .vaccine-grid{grid-template-columns:repeat(3,1fr)!important}}@media(max-width:768px){.immunization-schedule-config .vaccine-grid{grid-template-columns:repeat(2,1fr)!important}}@media(max-width:480px){.immunization-schedule-config .vaccine-grid{grid-template-columns:1fr!important}}@media(min-width:2500px){.immunization-schedule-config .vaccine-grid{gap:20px;grid-template-columns:repeat(8,1fr)!important}}.immunization-schedule-config .vaccine-grid .vaccine-card{cursor:pointer;background:#fff;border:1.5px solid #edf2f7;border-radius:12px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:12px;height:100%;min-height:142px;padding:16px 20px;transition:all .25s;display:flex}.immunization-schedule-config .vaccine-grid .vaccine-card:hover{background-color:#f0fdf4;border-color:#394d61;transform:translateY(-2px)}.immunization-schedule-config .vaccine-grid .vaccine-card.selected{color:#fff;background-color:#4c5e70;border-color:#394d61}.immunization-schedule-config .vaccine-grid .vaccine-card.selected .icon-container{color:#fff;background-color:#fff3}.immunization-schedule-config .vaccine-grid .vaccine-card.selected .vaccine-name{color:#fff!important}.immunization-schedule-config .vaccine-grid .vaccine-card.selected .vaccine-cat{color:#fffc!important}.immunization-schedule-config .vaccine-grid .vaccine-card.custom-vaccine{color:#4c5e70;border-style:dashed;justify-content:center;align-items:flex-start}.immunization-schedule-config .vaccine-grid .vaccine-card.custom-vaccine .icon-container{color:#4c5e70;background-color:#e7f7ef}.immunization-schedule-config .vaccine-grid .vaccine-card.custom-vaccine .vaccine-name{color:#4c5e70!important;font-size:15px!important;font-weight:700!important}.immunization-schedule-config .vaccine-grid .vaccine-card .icon-container{color:#64748b;background-color:#f1f5f9;border-radius:8px;justify-content:center;align-items:center;width:40px;min-width:40px;height:40px;font-size:18px;transition:all .2s;display:flex}.immunization-schedule-config .vaccine-grid .vaccine-card .text-container{width:100%}.immunization-schedule-config .vaccine-grid .vaccine-card .text-container .vaccine-name{color:#334155;letter-spacing:.5px;white-space:normal;overflow-wrap:anywhere;font-size:15px!important;font-weight:800!important;line-height:1.35!important}.immunization-schedule-config .vaccine-grid .vaccine-card .text-container .vaccine-cat{color:#94a3b8;text-transform:uppercase;white-space:normal;overflow-wrap:anywhere;margin-top:6px!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important}.immunization-schedule-config .selection-info{justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 4px;display:flex}.immunization-schedule-config .selection-info .selected-count{color:#717171;align-items:center;gap:8px;font-size:14px;display:flex;font-weight:700!important}.immunization-schedule-config .selection-info .selected-count span{color:#4c5e70;font-size:16px}.immunization-schedule-config .selection-info .select-btn{color:#fff;text-transform:none;background-color:#4c5e70;border-radius:8px;padding:8px 20px;font-size:14px;font-weight:700;box-shadow:0 4px 12px #11b66633}.immunization-schedule-config .selection-info .select-btn:hover{background-color:#4c5e70}.immunization-schedule-config .selection-info .select-btn:disabled{color:#94a3b8;box-shadow:none;cursor:not-allowed;background-color:#e2e8f0}.immunization-schedule-config .table-container{border:1px solid #edf2f7;border-radius:20px;overflow:hidden}.immunization-schedule-config .table-container .MuiTableHead-root{background-color:#f8fafc}.immunization-schedule-config .table-container .MuiTableHead-root .MuiTableCell-head{color:#94a3b8;border-bottom:1px solid #edf2f7;padding:8px 16px;font-size:11px;font-weight:700!important}.immunization-schedule-config .table-container .MuiTableBody-root .MuiTableRow-root:last-child .MuiTableCell-root{border-bottom:none}.immunization-schedule-config .table-container .MuiTableBody-root .MuiTableRow-root .MuiTableCell-root{border-bottom:1px solid #f1f5f9;padding:10px 16px}.immunization-schedule-config .table-container .no-records{text-align:center;color:#94a3b8;font-size:14px;font-weight:600;padding:40px!important}.immunization-summary{background-color:#f5f7fa;flex-direction:column;height:calc(100vh - 100px);min-height:calc(100vh - 100px);padding:12px;display:flex;overflow:hidden}.immunization-summary .header-section{flex-shrink:0;justify-content:space-between;align-items:center;gap:6px;margin-bottom:12px;display:flex}.immunization-summary .header-section .home-btn{color:#11b666;padding:8px;transition:all .2s}.immunization-summary .header-section .home-btn:hover{background-color:#11b66614;transform:scale(1.1)}.immunization-summary .header-section .title-group .page-title{color:#1a1a1a;margin-bottom:2px;font-size:15px;font-weight:800}.immunization-summary .header-section .title-group .page-subtitle{color:#475569;font-size:11px;font-weight:600}.immunization-summary .table-container{background-color:#fff;border-radius:10px;flex:1;min-height:0;max-height:100%;overflow:auto;box-shadow:0 3px 10px #0000000d}.immunization-summary .table-container table{table-layout:fixed;width:100%}.immunization-summary .table-container .header-cell{color:#394d61;letter-spacing:.4px;text-transform:uppercase;background-color:#fff;border-bottom:1px solid #f0f0f0;padding:6px 12px;font-size:11px;font-weight:800}.immunization-summary .table-container .header-cell:first-child{width:5%;margin-left:5px}.immunization-summary .table-container .header-cell:nth-child(2),.immunization-summary .table-container .header-cell:nth-child(3){width:30%}.immunization-summary .table-container .header-cell:nth-child(4){width:25%}.immunization-summary .table-container .header-cell:nth-child(5){width:7%}.immunization-summary .table-container .header-cell:nth-child(6){width:60px}.immunization-summary .table-container .table-row{transition:background-color .2s}.immunization-summary .table-container .table-row:hover{background-color:#f9fafb}.immunization-summary .table-container .table-row.expanded-row{background-color:#e7f7ef}.immunization-summary .table-container .table-row.expanded-row .MuiTableCell-root{border-bottom:none}.immunization-summary .table-container .table-row .MuiTableCell-root{color:#1a1a1a;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #f0f0f0;padding:6px 12px;font-size:12px;font-weight:500;overflow:hidden}.immunization-summary .table-container .table-row .vaccine-name-input input{padding:6px 10px;font-size:12px;font-weight:700}.immunization-summary .table-container .table-row .vaccine-name{color:#1a1a1a;font-size:13px;font-weight:700}.immunization-summary .table-container .table-row .eligibility-cell{color:#1a1a1a;font-size:11px;font-style:italic}.immunization-summary .table-container .table-row .eligibility-cell strong{font-style:normal;font-weight:700}.immunization-summary .table-container .table-row .action-btn{margin-left:6px;padding:6px}.immunization-summary .table-container .table-row .action-btn.edit{color:#394d61}.immunization-summary .table-container .table-row .action-btn.edit:hover{background-color:#11b66614}.immunization-summary .table-container .table-row .action-btn.collapse-btn{justify-content:center;align-items:center;transition:background-color .2s;color:#394d61!important;background-color:#e7f7ef!important;border-radius:50%!important;width:24px!important;height:24px!important;padding:0!important;display:inline-flex!important}.immunization-summary .table-container .table-row .action-btn.collapse-btn:hover{background-color:#bcecd0!important}.immunization-summary .table-container .table-row .action-btn.collapse-btn svg,.immunization-summary .table-container .table-row .action-btn.collapse-btn .svg-inline--fa{font-size:12px!important}.immunization-summary .table-container .table-row .action-btn.delete{color:#f44336}.immunization-summary .table-container .table-row .action-btn.delete:hover{background-color:#f4433614}.immunization-summary .table-container .expanded-content-cell{background-color:#f9fafb;height:0;line-height:0;border:none!important;padding:0!important}.immunization-summary .table-container .expansion-container{border-top:1px solid #11b66633;gap:18px;padding:12px;display:flex}@media(max-width:900px){.immunization-summary .table-container .expansion-container{flex-direction:column;gap:24px}}@media(min-width:2500px){.immunization-summary .table-container .expansion-container{gap:40px;padding:24px}}.immunization-summary .table-container .expansion-container .left-panel{flex:1.2}@media(max-width:900px){.immunization-summary .table-container .expansion-container .left-panel{width:100%}}.immunization-summary .table-container .expansion-container .right-panel{flex-direction:column;flex:1;gap:12px;display:flex}@media(max-width:900px){.immunization-summary .table-container .expansion-container .right-panel{width:100%}}@media(min-width:2500px){.immunization-summary .table-container .expansion-container .right-panel{gap:24px}}.immunization-summary .table-container .expansion-container .section-label{color:#394d61;text-transform:uppercase;margin-bottom:8px;font-size:11px;font-weight:800;display:block}.immunization-summary .table-container .expansion-container .dose-type-toggle{align-items:center;gap:8px;display:flex}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-label{color:#394d61;text-transform:uppercase;font-size:11px;font-weight:800}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container{background:#f0f0f0;border:1px solid #e0e0e0;border-radius:12px;padding:4px;display:flex}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container .toggle-option{cursor:pointer;color:#717171;text-transform:uppercase;border-radius:10px;padding:9px 8px;font-size:12px;font-weight:700;transition:all .2s}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container .toggle-option.active{color:#fff;background:#4f6172;box-shadow:0 1px 3px #0000001a}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container .toggle-option:hover:not(.active){background:#e0e0e0}.immunization-summary .table-container .expansion-container .dose-table{background:#fff;border:1px solid #e0e0e0;border-radius:6px}.immunization-summary .table-container .expansion-container .dose-table .header-cell{color:#394d61;text-transform:uppercase;padding:6px 8px;font-size:10px;font-weight:800}.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiInputBase-root,.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiOutlinedInput-root{height:28px;border-radius:6px!important}.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiInputBase-root fieldset,.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiOutlinedInput-root fieldset{border-radius:6px!important}.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiInputBase-root:hover fieldset,.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiOutlinedInput-root:hover fieldset{border-color:#11b666!important}.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiInputBase-root.Mui-focused,.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiOutlinedInput-root.Mui-focused{z-index:2}.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiInputBase-root.Mui-focused fieldset,.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#11b666!important}.immunization-summary .table-container .expansion-container .dose-table .dose-input .MuiInputBase-input{padding:4px 8px;font-size:11px;font-weight:600}.immunization-summary .table-container .expansion-container .dose-table .dose-input.error-input .MuiOutlinedInput-notchedOutline{border-color:#f44336}.immunization-summary .table-container .expansion-container .dose-table .error-msg{color:#f44336;align-items:center;gap:3px;margin-top:3px;font-size:10px;font-weight:700;display:flex}.immunization-summary .table-container .expansion-container .side-card{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:10px}.immunization-summary .table-container .expansion-container .side-card .card-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.immunization-summary .table-container .expansion-container .side-card .card-header .add-link{color:#657584;cursor:pointer;text-transform:uppercase;font-size:10px;font-weight:700}.immunization-summary .table-container .expansion-container .side-card .card-header .add-link:hover{color:#243a50}.immunization-summary .table-container .expansion-container .side-card .region-item{background:#f9fafb;border:1px solid #f0f0f0;border-radius:5px;justify-content:space-between;align-items:center;padding:6px;display:flex}.immunization-summary .table-container .expansion-container .side-card .region-item .region-path{font-size:12px;font-weight:500}.immunization-summary .table-container .expansion-container .side-card .region-item .region-actions{color:#11b666}.immunization-summary .table-container .expansion-container .side-card .region-item .region-actions .delete{color:#f44336}.immunization-summary .table-container .expansion-container .side-card .dependency-item .dependency-inputs{gap:6px;margin-bottom:6px;display:flex}.immunization-summary .table-container .expansion-container .side-card .dependency-item .dependency-hint{color:#444;background:#f9fafb;border:1px solid #f0f0f0;border-radius:5px;padding:10px;font-size:11px;font-weight:500}.immunization-summary .table-container .expansion-footer{justify-content:flex-end;gap:12px;margin:5px 12px 15px 0;display:flex}.immunization-summary .table-container .expansion-footer .discard-btn{color:#f22e1f;border-color:#f44336;border-radius:6px;padding:5px 16px;font-size:11px;font-weight:700}.immunization-summary .table-container .expansion-footer .discard-btn:hover{background-color:#fef2f2;border-color:#d32f2f}.immunization-summary .table-container .expansion-footer .save-btn{color:#fff;background-color:#394d61;border-radius:6px;padding:5px 16px;font-size:11px;font-weight:700}.immunization-summary .table-container .expansion-footer .save-btn:hover{background-color:#243a50}@media(max-width:900px){.immunization-summary{height:auto;min-height:calc(100vh - 100px)}}
@@ -1,335 +0,0 @@
1
- import { jsxs as w, jsx as i, Fragment as Z } from "react/jsx-runtime";
2
- import { useState as n, useEffect as D, useCallback as ee } from "react";
3
- import { TextField as B, Button as x, Dialog as te, DialogTitle as ae, DialogContent as oe, DialogActions as ie } from "@mui/material";
4
- import { showToast as p } from "@/common/toaster/toaster";
5
- import { execute as q } from "@/common/services/GlobalApis";
6
- import k from "@mui/material/Grid2";
7
- import { useNavigate as ne } from "react-router";
8
- import { f as re, i as le } from "./ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js";
9
- import L from "prop-types";
10
- import P from "@/views/custom-components/CustomConfirmationModal";
11
- import se from "@/hooks/useTrackEvent";
12
- import { useTranslateProvider as de } from "@/common/languageTranslator/TranslationContext";
13
- import ce from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
14
- import { FontAwesomeIcon as U } from "@fortawesome/react-fontawesome";
15
- import { faPen as ue, faTrash as me } from "@fortawesome/free-solid-svg-icons";
16
- import { getAssignedFeatures as ye } from "@/utils/feature";
17
- const Q = ({ configuredQuery: f, open: z, onClose: g, dataTestId: E }) => {
18
- const [b, C] = n(""), { translate: u } = de(), [F, m] = n(!1), O = ee(() => {
19
- let a = JSON.parse(JSON.stringify(f));
20
- if (a.forEach((r) => {
21
- delete r.id, delete r.created_at, delete r.updated_at;
22
- }), !Array.isArray(a) || a.length === 0) {
23
- p({ message: "No data to generate", type: "error" });
24
- return;
25
- }
26
- const s = Object.keys(a[0]), h = a.map((r) => `(${s.map((A) => {
27
- const y = r[A];
28
- return typeof y == "string" ? `'${y.replace(/'/g, "''")}'` : y == null ? "NULL" : typeof y == "boolean" ? y ? "TRUE" : "FALSE" : y;
29
- }).join(", ")})`).join(`,
30
- `), l = `${s.filter((r) => r !== "code").map((r) => `${r} = EXCLUDED.${r}`).join(", ")}, updated_at = CURRENT_TIMESTAMP`, N = `INSERT INTO rch_immunization_configuration (${s.join(", ")})
31
- VALUES
32
- ${h}
33
- ON CONFLICT (code) DO UPDATE SET
34
- ${l};
35
- `;
36
- C(N);
37
- }, [f]), v = () => {
38
- var a;
39
- (a = navigator == null ? void 0 : navigator.clipboard) == null || a.writeText(b).then(() => {
40
- p({ message: "Query Copied", type: "success" }), g();
41
- });
42
- }, $ = () => {
43
- T(), m((a) => !a);
44
- }, _ = se(), T = () => {
45
- const a = new Blob([b], { type: "text/plain" }), s = (a.size / 1024).toFixed(2), h = URL.createObjectURL(a), l = document.createElement("a");
46
- l.href = h, l.download = `V${(/* @__PURE__ */ new Date()).getTime()}__CHANGE_IN_IMMUNIZATION_TABLE}.sql`, document.body.appendChild(l), l.click(), _("file_download", {
47
- file_type: "sql",
48
- file_name: l.download,
49
- file_size: `${s} KB`,
50
- download_status: "success"
51
- }), document.body.removeChild(l), URL.revokeObjectURL(h), p({ message: "Query Downloaded SuccessFully", type: "success" }), g();
52
- }, I = () => {
53
- T();
54
- };
55
- return D(() => {
56
- f && O();
57
- }, [f]), /* @__PURE__ */ w(Z, { children: [
58
- /* @__PURE__ */ i(
59
- P,
60
- {
61
- description: "This Flyway contains keyword 'public'. Are you sure you want to download?",
62
- title: "CONFIRM ACTION",
63
- handleClick: $,
64
- open: F,
65
- handleClose: () => m((a) => !a),
66
- dataTestId: "showflywayquery-customconfirmationmodal-confirmation-modal"
67
- }
68
- ),
69
- /* @__PURE__ */ w(te, { open: z, onClose: g, fullWidth: !0, maxWidth: "md", "data-testid": E, children: [
70
- /* @__PURE__ */ i(ae, { className: "p-2.5 px-5 flex border-b font-medium text-lg", children: u("Flyway Query") }),
71
- /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ i(
72
- B,
73
- {
74
- multiline: !0,
75
- rows: 10,
76
- variant: "outlined",
77
- fullWidth: !0,
78
- value: b,
79
- sx: {
80
- "& .MuiInputBase-input": {
81
- fontSize: "14px"
82
- },
83
- "& .MuiOutlinedInput-root": {
84
- borderRadius: "5px"
85
- }
86
- },
87
- slotProps: {
88
- input: {
89
- readOnly: !0
90
- }
91
- },
92
- "data-testid": "showflywayquery-textfield-query-display"
93
- }
94
- ) }),
95
- /* @__PURE__ */ w(ie, { children: [
96
- /* @__PURE__ */ i(
97
- x,
98
- {
99
- onClick: I,
100
- variant: "contained",
101
- size: "small",
102
- color: "primary",
103
- "data-testid": "showflywayquery-button-download-action",
104
- children: u("Download")
105
- }
106
- ),
107
- /* @__PURE__ */ i(
108
- x,
109
- {
110
- onClick: v,
111
- variant: "contained",
112
- size: "small",
113
- color: "primary",
114
- "data-testid": "showflywayquery-button-copyquery-action",
115
- children: u("Copy Query")
116
- }
117
- ),
118
- /* @__PURE__ */ i(
119
- x,
120
- {
121
- onClick: g,
122
- variant: "contained",
123
- color: "secondary",
124
- size: "small",
125
- "data-testid": "showflywayquery-button-cancel-action",
126
- children: u("Cancel")
127
- }
128
- )
129
- ] })
130
- ] })
131
- ] });
132
- };
133
- Q.propTypes = {
134
- configuredQuery: L.any,
135
- open: L.any,
136
- onClose: L.any,
137
- dataTestId: L.any
138
- };
139
- const Le = () => {
140
- const f = ne(), { t: z } = re(), [g, E] = n([]), [b, C] = n([]), [u, F] = n([]), [m, O] = n(""), [v, $] = n(!1), [_, T] = n(!1), [I, a] = n([]), [s, h] = n([]), [l, N] = n(!1), [r, A] = n(!1), [y, J] = n({}), [j, G] = n({});
141
- D(() => {
142
- h(() => g.filter(
143
- (e) => I.some((t) => t.id === e.id)
144
- ));
145
- }, [I]);
146
- const H = [
147
- { field: "Sr. No.", label: "#", align: "left" },
148
- // { field: 'code', label: 'Code', align: 'left', isBold: true },
149
- { field: "name", label: "Name", align: "left" },
150
- { field: "fromAgeDays", label: "Eligible From" },
151
- { field: "toAgeDays", label: "Eligible To" },
152
- { field: "base_date", label: "Base Date" },
153
- { field: "Actions", label: "Actions" }
154
- ], W = [
155
- {
156
- label: "Fill Form",
157
- icon: /* @__PURE__ */ i(U, { icon: ue }),
158
- onClick: (e) => {
159
- f(`/ui/medplat/manage/manageImmunization/${e == null ? void 0 : e.id}`);
160
- }
161
- },
162
- {
163
- label: "",
164
- icon: /* @__PURE__ */ i(U, { icon: me }),
165
- onClick: (e) => {
166
- A(!0), J(e);
167
- }
168
- }
169
- ];
170
- D(() => {
171
- R();
172
- }, []);
173
- const V = (e) => {
174
- const t = JSON.parse(e);
175
- return t.dependencies && t.dependencies.length > 0 ? t.dependencies[0].message : "NA";
176
- }, M = (e) => {
177
- if (typeof e != "number" || e <= 0) return "-";
178
- const t = Math.floor(e / 365), d = e % 365, c = Math.floor(d / 30), S = d % 30, o = [];
179
- return t > 0 && o.push(`${t} ${t === 1 ? "year" : "years"}`), c > 0 && o.push(`${c} ${c === 1 ? "month" : "months"}`), (S > 0 || t === 0 && c === 0) && o.push(`${S} ${S === 1 ? "day" : "days"}`), o.join(" ") || "0 days";
180
- }, R = async () => {
181
- var e, t;
182
- try {
183
- N((o) => !o);
184
- const d = await q({
185
- code: "get_immunization_detail",
186
- parameters: {}
187
- });
188
- E((e = d == null ? void 0 : d.data) == null ? void 0 : e.result);
189
- const c = (t = d == null ? void 0 : d.data) == null ? void 0 : t.result.filter((o) => o.is_active === !0).map((o) => ({
190
- ...o,
191
- fromAgeDays: M(o.from_age_days),
192
- toAgeDays: M(o.to_age_days),
193
- validationMessage: o.validations ? V(o.validations) : "NA"
194
- })), { data: S } = await ye(
195
- "techo.manage.immunizationConfiguratorList"
196
- );
197
- G(JSON.parse(S)), C(c), F(c), N((o) => !o);
198
- } catch (d) {
199
- console.error(d), p({ message: "Error in loading immunization", type: "error" }), N((c) => !c);
200
- }
201
- }, K = (e) => {
202
- O(e.target.value);
203
- };
204
- D(() => {
205
- if (!m) {
206
- C(u);
207
- return;
208
- }
209
- const e = u.filter(
210
- (t) => t.code.toLowerCase().includes(m.toLowerCase()) || t.name.toLowerCase().includes(m.toLowerCase())
211
- );
212
- C(e);
213
- }, [m, u]);
214
- const X = () => {
215
- (s == null ? void 0 : s.length) > 0 ? T(!0) : p({ message: "Select atleast one row", type: "info" });
216
- }, Y = async (e) => {
217
- try {
218
- let t = {
219
- id: parseInt(e.id),
220
- code: e.code,
221
- name: e.name,
222
- isrecursive: e.is_recursive || !1,
223
- fromAgeDays: e.from_age_days,
224
- toAgeDays: e.to_age_days,
225
- basedate: e.base_date,
226
- validations: e.validations,
227
- recursiveobject: e.recursive_object,
228
- locations: e.locations || "[]",
229
- active: !1
230
- };
231
- A(!1), await q({
232
- code: "update_immunization",
233
- parameters: { ...t }
234
- }), R(), p({
235
- message: "Immunization status changed Successfully!",
236
- type: "success"
237
- });
238
- } catch (t) {
239
- console.error(t), p({ type: "error", message: "error toggling status" });
240
- }
241
- };
242
- return /* @__PURE__ */ w(k, { container: !0, justifyContent: "flex-end", className: "mt-5 mr-5", children: [
243
- _ && /* @__PURE__ */ i(
244
- Q,
245
- {
246
- configuredQuery: s,
247
- open: _,
248
- onClose: () => {
249
- T((e) => !e);
250
- },
251
- dataTestId: "eventconfiguration-query-showflywayquery"
252
- }
253
- ),
254
- /* @__PURE__ */ w(le, { isLoading: l, children: [
255
- /* @__PURE__ */ w(k, { item: !0, children: [
256
- /* @__PURE__ */ i(
257
- B,
258
- {
259
- className: "bg-white p-0 m-0",
260
- placeholder: "Search code",
261
- sx: {
262
- "& .MuiInputBase-root": { height: "35px" },
263
- // Controls the overall input height
264
- "& .MuiInputBase-input": { padding: "6px 12px" }
265
- // Adjust text padding inside input
266
- },
267
- value: m,
268
- onChange: K
269
- }
270
- ),
271
- (j == null ? void 0 : j.canGenerateFlyway) && /* @__PURE__ */ i(
272
- x,
273
- {
274
- className: "mb-4 ml-4",
275
- variant: "contained",
276
- onClick: () => {
277
- $((e) => !e);
278
- },
279
- size: "small",
280
- "data-testid": "immunizationList-button-add",
281
- children: z(v ? "Hide Selection" : "Select Immunization")
282
- }
283
- ),
284
- v && !_ && /* @__PURE__ */ i(
285
- x,
286
- {
287
- className: "mb-4 ml-4",
288
- variant: "contained",
289
- onClick: () => {
290
- X();
291
- },
292
- size: "small",
293
- "data-testid": "immunizationList-button-add",
294
- children: z("Show Flyway")
295
- }
296
- )
297
- ] }),
298
- /* @__PURE__ */ i(k, { size: { xs: 12 }, children: /* @__PURE__ */ i(
299
- ce,
300
- {
301
- dataTestId: "Immunization-configurator-customizedtable",
302
- columns: H,
303
- tableData: b,
304
- paginationConfig: {
305
- pagination: !0,
306
- rowsPerPageInTable: 20
307
- },
308
- actions: W,
309
- rowSelectionConfig: {
310
- rowSelectionEnabled: v,
311
- selectedRows: I,
312
- setSelectedRows: a
313
- },
314
- styleConfig: { tableStyle: { maxHeight: 45 } },
315
- isLoading: l,
316
- strip: !0
317
- }
318
- ) })
319
- ] }),
320
- /* @__PURE__ */ i(
321
- P,
322
- {
323
- open: r,
324
- description: "Are you sure you want to change the state of this Immunization ?",
325
- title: "CONFIRM ACTION",
326
- handleClick: () => Y(y),
327
- handleClose: () => A(!1)
328
- }
329
- )
330
- ] });
331
- };
332
- export {
333
- Le as default
334
- };
335
- //# sourceMappingURL=ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js","sources":["../../core/dist/ImmunizationConfigurationsList-CQnxWa09.js"],"sourcesContent":["import { jsxs as C, Fragment as Z, jsx as o } from \"react/jsx-runtime\";\nimport { useState as s, useCallback as ee, useEffect as x } from \"react\";\nimport { Dialog as te, DialogTitle as ae, DialogContent as ne, TextField as P, DialogActions as oe, Button as N } from \"@mui/material\";\nimport { showToast as f } from \"@/common/toaster/toaster\";\nimport { execute as U } from \"@/common/services/GlobalApis\";\nimport M from \"@mui/material/Grid2\";\nimport { useNavigate as ie } from \"react-router\";\nimport { u as se, I as re } from \"./ImmunizationSkeleton-D2tdv5k-.js\";\nimport A from \"prop-types\";\nimport Q from \"@/views/custom-components/CustomConfirmationModal\";\nimport le from \"@/hooks/useTrackEvent\";\nimport { useTranslateProvider as ce } from \"@/common/languageTranslator/TranslationContext\";\nimport de from \"@/views/custom-components/CustomizedTable/CustomizedTableV2\";\nimport { FontAwesomeIcon as B } from \"@fortawesome/react-fontawesome\";\nimport { faPen as ue, faTrash as me } from \"@fortawesome/free-solid-svg-icons\";\nimport { getAssignedFeatures as ye } from \"@/utils/feature\";\nconst H = ({ configuredQuery: p, open: b, onClose: g, dataTestId: O }) => {\n const [w, I] = s(\"\"), { translate: m } = ce(), [F, y] = s(!1), L = ee(() => {\n let a = JSON.parse(JSON.stringify(p));\n if (a.forEach((i) => {\n delete i.id, delete i.created_at, delete i.updated_at;\n }), !Array.isArray(a) || a.length === 0) {\n f({ message: \"No data to generate\", type: \"error\" });\n return;\n }\n const c = Object.keys(a[0]), h = a.map((i) => `(${c.map(($) => {\n const l = i[$];\n return typeof l == \"string\" ? `'${l.replace(/'/g, \"''\")}'` : l == null ? \"NULL\" : typeof l == \"boolean\" ? l ? \"TRUE\" : \"FALSE\" : l;\n }).join(\", \")})`).join(`,\n`), _ = `${c.filter((i) => i !== \"code\").map((i) => `${i} = EXCLUDED.${i}`).join(\", \")}, updated_at = CURRENT_TIMESTAMP`, k = `INSERT INTO rch_immunization_configuration (${c.join(\", \")}) \nVALUES\n${h}\nON CONFLICT (code) DO UPDATE SET\n${_};\n `;\n I(k);\n }, [p]), v = () => {\n var a;\n (a = navigator == null ? void 0 : navigator.clipboard) == null || a.writeText(w).then(() => {\n f({ message: \"Query Copied\", type: \"success\" }), g();\n });\n }, E = () => {\n S(), y((a) => !a);\n }, T = le(), S = () => {\n const a = new Blob([w], { type: \"text/plain\" }), c = (a.size / 1024).toFixed(2), h = URL.createObjectURL(a), d = document.createElement(\"a\");\n d.href = h, d.download = `V${(/* @__PURE__ */ new Date()).getTime()}__CHANGE_IN_IMMUNIZATION_TABLE}.sql`, document.body.appendChild(d), d.click(), T(\"file_download\", {\n file_type: \"sql\",\n file_name: d.download,\n file_size: `${c} KB`,\n download_status: \"success\"\n }), document.body.removeChild(d), URL.revokeObjectURL(h), f({ message: \"Query Downloaded SuccessFully\", type: \"success\" }), g();\n }, D = () => {\n S();\n };\n return x(() => {\n p && L();\n }, [p]), /* @__PURE__ */ C(Z, { children: [\n /* @__PURE__ */ o(\n Q,\n {\n description: \"This Flyway contains keyword 'public'. Are you sure you want to download?\",\n title: \"CONFIRM ACTION\",\n handleClick: E,\n open: F,\n handleClose: () => y((a) => !a),\n dataTestId: \"showflywayquery-customconfirmationmodal-confirmation-modal\"\n }\n ),\n /* @__PURE__ */ C(te, { open: b, onClose: g, fullWidth: !0, maxWidth: \"md\", \"data-testid\": O, children: [\n /* @__PURE__ */ o(ae, { className: \"p-2.5 px-5 flex border-b font-medium text-lg\", children: m(\"Flyway Query\") }),\n /* @__PURE__ */ o(ne, { children: /* @__PURE__ */ o(\n P,\n {\n multiline: !0,\n rows: 10,\n variant: \"outlined\",\n fullWidth: !0,\n value: w,\n sx: {\n \"& .MuiInputBase-input\": {\n fontSize: \"14px\"\n },\n \"& .MuiOutlinedInput-root\": {\n borderRadius: \"5px\"\n }\n },\n slotProps: {\n input: {\n readOnly: !0\n }\n },\n \"data-testid\": \"showflywayquery-textfield-query-display\"\n }\n ) }),\n /* @__PURE__ */ C(oe, { children: [\n /* @__PURE__ */ o(\n N,\n {\n onClick: D,\n variant: \"contained\",\n size: \"small\",\n color: \"primary\",\n \"data-testid\": \"showflywayquery-button-download-action\",\n children: m(\"Download\")\n }\n ),\n /* @__PURE__ */ o(\n N,\n {\n onClick: v,\n variant: \"contained\",\n size: \"small\",\n color: \"primary\",\n \"data-testid\": \"showflywayquery-button-copyquery-action\",\n children: m(\"Copy Query\")\n }\n ),\n /* @__PURE__ */ o(\n N,\n {\n onClick: g,\n variant: \"contained\",\n color: \"secondary\",\n size: \"small\",\n \"data-testid\": \"showflywayquery-button-cancel-action\",\n children: m(\"Cancel\")\n }\n )\n ] })\n ] })\n ] });\n};\nH.propTypes = {\n configuredQuery: A.any,\n open: A.any,\n onClose: A.any,\n dataTestId: A.any\n};\nconst xe = () => {\n const p = ie(), { t: b } = se(), [g, O] = s([]), [w, I] = s([]), [m, F] = s([]), [y, L] = s(\"\"), [v, E] = s(!1), [T, S] = s(!1), [D, a] = s([]), [c, h] = s([]), [d, _] = s(!1), [k, i] = s(!1), [R, $] = s({}), [l, J] = s({});\n x(() => {\n h(() => g.filter(\n (t) => D.some((r) => r.id === t.id)\n ));\n }, [D]);\n const G = [\n { field: \"Sr. No.\", label: \"#\", align: \"left\" },\n // { field: 'code', label: 'Code', align: 'left', isBold: true },\n { field: \"name\", label: \"Name\", align: \"left\" },\n { field: \"fromAgeDays\", label: \"Eligible From\" },\n { field: \"toAgeDays\", label: \"Eligible To\" },\n { field: \"base_date\", label: \"Base Date\" },\n { field: \"Actions\", label: \"Actions\" }\n ], V = [\n {\n label: \"Fill Form\",\n icon: /* @__PURE__ */ o(B, { icon: ue }),\n onClick: (e) => {\n p(`/ui/medplat/manage/manageImmunization/${e == null ? void 0 : e.id}`);\n }\n },\n {\n label: \"\",\n icon: /* @__PURE__ */ o(B, { icon: me }),\n onClick: (e) => {\n i(!0), $(e);\n }\n }\n ];\n x(() => {\n j();\n }, []);\n const W = (e) => {\n const t = JSON.parse(e);\n return t.dependencies && t.dependencies.length > 0 ? t.dependencies[0].message : \"NA\";\n }, q = (e) => {\n if (typeof e != \"number\" || e <= 0) return \"-\";\n const t = Math.floor(e / 365), r = e % 365, u = Math.floor(r / 30), z = r % 30, n = [];\n return t > 0 && n.push(`${t} ${t === 1 ? \"year\" : \"years\"}`), u > 0 && n.push(`${u} ${u === 1 ? \"month\" : \"months\"}`), (z > 0 || t === 0 && u === 0) && n.push(`${z} ${z === 1 ? \"day\" : \"days\"}`), n.join(\" \") || \"0 days\";\n }, j = async () => {\n var e, t;\n try {\n _((n) => !n);\n const r = await U({\n code: \"get_immunization_detail\",\n parameters: {}\n });\n O((e = r == null ? void 0 : r.data) == null ? void 0 : e.result);\n const u = (t = r == null ? void 0 : r.data) == null ? void 0 : t.result.filter((n) => n.is_active === !0).map((n) => ({\n ...n,\n fromAgeDays: q(n.from_age_days),\n toAgeDays: q(n.to_age_days),\n validationMessage: n.validations ? W(n.validations) : \"NA\"\n })), { data: z } = await ye(\n \"techo.manage.immunizationConfiguratorList\"\n );\n J(JSON.parse(z)), I(u), F(u), _((n) => !n);\n } catch (r) {\n console.error(r), f({ message: \"Error in loading immunization\", type: \"error\" }), _((u) => !u);\n }\n }, K = (e) => {\n L(e.target.value);\n };\n x(() => {\n if (!y) {\n I(m);\n return;\n }\n const e = m.filter(\n (t) => t.code.toLowerCase().includes(y.toLowerCase()) || t.name.toLowerCase().includes(y.toLowerCase())\n );\n I(e);\n }, [y, m]);\n const X = () => {\n (c == null ? void 0 : c.length) > 0 ? S(!0) : f({ message: \"Select atleast one row\", type: \"info\" });\n }, Y = async (e) => {\n try {\n let t = {\n id: parseInt(e.id),\n code: e.code,\n name: e.name,\n isrecursive: e.is_recursive || !1,\n fromAgeDays: e.from_age_days,\n toAgeDays: e.to_age_days,\n basedate: e.base_date,\n validations: e.validations,\n recursiveobject: e.recursive_object,\n locations: e.locations || \"[]\",\n active: !1\n };\n i(!1), await U({\n code: \"update_immunization\",\n parameters: { ...t }\n }), j(), f({\n message: \"Immunization status changed Successfully!\",\n type: \"success\"\n });\n } catch (t) {\n console.error(t), f({ type: \"error\", message: \"error toggling status\" });\n }\n };\n return /* @__PURE__ */ C(M, { container: !0, justifyContent: \"flex-end\", className: \"mt-5 mr-5\", children: [\n T && /* @__PURE__ */ o(\n H,\n {\n configuredQuery: c,\n open: T,\n onClose: () => {\n S((e) => !e);\n },\n dataTestId: \"eventconfiguration-query-showflywayquery\"\n }\n ),\n /* @__PURE__ */ C(re, { isLoading: d, children: [\n /* @__PURE__ */ C(M, { item: !0, children: [\n /* @__PURE__ */ o(\n P,\n {\n className: \"bg-white p-0 m-0\",\n placeholder: \"Search code\",\n sx: {\n \"& .MuiInputBase-root\": { height: \"35px\" },\n // Controls the overall input height\n \"& .MuiInputBase-input\": { padding: \"6px 12px\" }\n // Adjust text padding inside input\n },\n value: y,\n onChange: K\n }\n ),\n (l == null ? void 0 : l.canGenerateFlyway) && /* @__PURE__ */ o(\n N,\n {\n className: \"mb-4 ml-4\",\n variant: \"contained\",\n onClick: () => {\n E((e) => !e);\n },\n size: \"small\",\n \"data-testid\": \"immunizationList-button-add\",\n children: b(v ? \"Hide Selection\" : \"Select Immunization\")\n }\n ),\n v && !T && /* @__PURE__ */ o(\n N,\n {\n className: \"mb-4 ml-4\",\n variant: \"contained\",\n onClick: () => {\n X();\n },\n size: \"small\",\n \"data-testid\": \"immunizationList-button-add\",\n children: b(\"Show Flyway\")\n }\n )\n ] }),\n /* @__PURE__ */ o(M, { size: { xs: 12 }, children: /* @__PURE__ */ o(\n de,\n {\n dataTestId: \"Immunization-configurator-customizedtable\",\n columns: G,\n tableData: w,\n paginationConfig: {\n pagination: !0,\n rowsPerPageInTable: 20\n },\n actions: V,\n rowSelectionConfig: {\n rowSelectionEnabled: v,\n selectedRows: D,\n setSelectedRows: a\n },\n styleConfig: { tableStyle: { maxHeight: 45 } },\n isLoading: d,\n strip: !0\n }\n ) })\n ] }),\n /* @__PURE__ */ o(\n Q,\n {\n open: k,\n description: \"Are you sure you want to change the state of this Immunization ?\",\n title: \"CONFIRM ACTION\",\n handleClick: () => Y(R),\n handleClose: () => i(!1)\n }\n )\n ] });\n};\nexport {\n xe as default\n};\n//# sourceMappingURL=ImmunizationConfigurationsList-CQnxWa09.js.map\n"],"names":["H","p","b","O","w","I","s","m","ce","y","L","ee","i","f","c","$","l","_","k","E","S","T","le","d","D","x","C","Z","o","Q","te","ae","ne","P","oe","N","A","xe","ie","se","R","J","t","r","G","V","B","ue","me","j","W","q","u","z","n","U","ye","M","re","de"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAMA,IAAI,CAAC,EAAE,iBAAiBC,GAAG,MAAMC,GAAG,SAAS,GAAG,YAAYC,QAAQ;AACxE,QAAM,CAACC,GAAGC,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,qBAAqB;AAAA,YACrB,cAAcrB;AAAA,YACd,iBAAiB;AAAA,UAC7B;AAAA,UACU,aAAa,EAAE,YAAY,EAAE,WAAW,GAAE,EAAE;AAAA,UAC5C,WAAWD;AAAA,UACX,OAAO;AAAA,QACjB;AAAA,MACA,EAAO,CAAE;AAAA,IACT,GAAO;AAAA,IACaK,gBAAAA;AAAAA,MACdC;AAAAA,MACA;AAAA,QACE,MAAMX;AAAA,QACN,aAAa;AAAA,QACb,OAAO;AAAA,QACP,aAAa,MAAM,EAAEsB,CAAC;AAAA,QACtB,aAAa,MAAM5B,EAAE,EAAE;AAAA,MAC/B;AAAA,IACA;AAAA,EACA,GAAK;AACL;"}
@@ -1,186 +0,0 @@
1
- import { useContext as H, useState as $, useRef as U, useEffect as C, createContext as q, useCallback as B } from "react";
2
- import { jsxs as v, jsx as i } from "react/jsx-runtime";
3
- import T from "prop-types";
4
- import { useSelector as _ } from "react-redux";
5
- import { getUseSkeleton as D } from "@/store/reducers/SkeletonReducer";
6
- const K = (e, a, n, r) => {
7
- var o, h, w, x;
8
- const g = [n, {
9
- code: a,
10
- ...r || {}
11
- }];
12
- if ((h = (o = e == null ? void 0 : e.services) == null ? void 0 : o.logger) != null && h.forward)
13
- return e.services.logger.forward(g, "warn", "react-i18next::", !0);
14
- f(g[0]) && (g[0] = `react-i18next:: ${g[0]}`), (x = (w = e == null ? void 0 : e.services) == null ? void 0 : w.logger) != null && x.warn ? e.services.logger.warn(...g) : console != null && console.warn && console.warn(...g);
15
- }, F = {}, k = (e, a, n, r) => {
16
- f(n) && F[n] || (f(n) && (F[n] = /* @__PURE__ */ new Date()), K(e, a, n, r));
17
- }, R = (e, a) => () => {
18
- if (e.isInitialized)
19
- a();
20
- else {
21
- const n = () => {
22
- setTimeout(() => {
23
- e.off("initialized", n);
24
- }, 0), a();
25
- };
26
- e.on("initialized", n);
27
- }
28
- }, L = (e, a, n) => {
29
- e.loadNamespaces(a, R(e, n));
30
- }, P = (e, a, n, r) => {
31
- if (f(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(a) > -1) return L(e, n, r);
32
- n.forEach((o) => {
33
- e.options.ns.indexOf(o) < 0 && e.options.ns.push(o);
34
- }), e.loadLanguages(a, R(e, r));
35
- }, M = (e, a, n = {}) => !a.languages || !a.languages.length ? (k(a, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
36
- languages: a.languages
37
- }), !0) : a.hasLoadedNamespace(e, {
38
- lng: n.lng,
39
- precheck: (r, o) => {
40
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !o(r.isLanguageChangingTo, e)) return !1;
41
- }
42
- }), f = (e) => typeof e == "string", X = (e) => typeof e == "object" && e !== null, Y = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, J = {
43
- "&amp;": "&",
44
- "&#38;": "&",
45
- "&lt;": "<",
46
- "&#60;": "<",
47
- "&gt;": ">",
48
- "&#62;": ">",
49
- "&apos;": "'",
50
- "&#39;": "'",
51
- "&quot;": '"',
52
- "&#34;": '"',
53
- "&nbsp;": " ",
54
- "&#160;": " ",
55
- "&copy;": "©",
56
- "&#169;": "©",
57
- "&reg;": "®",
58
- "&#174;": "®",
59
- "&hellip;": "…",
60
- "&#8230;": "…",
61
- "&#x2F;": "/",
62
- "&#47;": "/"
63
- }, Q = (e) => J[e], W = (e) => e.replace(Y, Q);
64
- let Z = {
65
- bindI18n: "languageChanged",
66
- bindI18nStore: "",
67
- transEmptyNodeValue: "",
68
- transSupportBasicHtmlNodes: !0,
69
- transWrapTextNodes: "",
70
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
71
- useSuspense: !0,
72
- unescape: W
73
- };
74
- const ee = () => Z;
75
- let ae;
76
- const ne = () => ae, se = q();
77
- class re {
78
- constructor() {
79
- this.usedNamespaces = {};
80
- }
81
- addUsedNamespaces(a) {
82
- a.forEach((n) => {
83
- this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
84
- });
85
- }
86
- getUsedNamespaces() {
87
- return Object.keys(this.usedNamespaces);
88
- }
89
- }
90
- const te = (e, a) => {
91
- const n = U();
92
- return C(() => {
93
- n.current = e;
94
- }, [e, a]), n.current;
95
- }, V = (e, a, n, r) => e.getFixedT(a, n, r), le = (e, a, n, r) => B(V(e, a, n, r), [e, a, n, r]), me = (e, a = {}) => {
96
- var n, r, o, h;
97
- const {
98
- i18n: w
99
- } = a, {
100
- i18n: x,
101
- defaultNS: g
102
- } = H(se) || {}, s = w || x || ne();
103
- if (s && !s.reportNamespaces && (s.reportNamespaces = new re()), !s) {
104
- k(s, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
105
- const l = (d, c) => f(c) ? c : X(c) && f(c.defaultValue) ? c.defaultValue : Array.isArray(d) ? d[d.length - 1] : d, u = [l, {}, !1];
106
- return u.t = l, u.i18n = {}, u.ready = !1, u;
107
- }
108
- (n = s.options.react) != null && n.wait && k(s, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
109
- const N = {
110
- ...ee(),
111
- ...s.options.react,
112
- ...a
113
- }, {
114
- useSuspense: O,
115
- keyPrefix: E
116
- } = N;
117
- let t = g || ((r = s.options) == null ? void 0 : r.defaultNS);
118
- t = f(t) ? [t] : t || ["translation"], (h = (o = s.reportNamespaces).addUsedNamespaces) == null || h.call(o, t);
119
- const p = (s.isInitialized || s.initializedStoreOnce) && t.every((l) => M(l, s, N)), G = le(s, a.lng || null, N.nsMode === "fallback" ? t : t[0], E), j = () => G, I = () => V(s, a.lng || null, N.nsMode === "fallback" ? t : t[0], E), [A, y] = $(j);
120
- let b = t.join();
121
- a.lng && (b = `${a.lng}${b}`);
122
- const z = te(b), m = U(!0);
123
- C(() => {
124
- const {
125
- bindI18n: l,
126
- bindI18nStore: u
127
- } = N;
128
- m.current = !0, !p && !O && (a.lng ? P(s, a.lng, t, () => {
129
- m.current && y(I);
130
- }) : L(s, t, () => {
131
- m.current && y(I);
132
- })), p && z && z !== b && m.current && y(I);
133
- const d = () => {
134
- m.current && y(I);
135
- };
136
- return l && (s == null || s.on(l, d)), u && (s == null || s.store.on(u, d)), () => {
137
- m.current = !1, s && l && (l == null || l.split(" ").forEach((c) => s.off(c, d))), u && s && u.split(" ").forEach((c) => s.store.off(c, d));
138
- };
139
- }, [s, b]), C(() => {
140
- m.current && p && y(j);
141
- }, [s, E, p]);
142
- const S = [A, s, p];
143
- if (S.t = A, S.i18n = s, S.ready = p, p || !p && !O) return S;
144
- throw new Promise((l) => {
145
- a.lng ? P(s, a.lng, t, () => l()) : L(s, t, () => l());
146
- });
147
- }, ie = ({
148
- children: e,
149
- isLoading: a
150
- }) => !_(D) || !a ? e : /* @__PURE__ */ v("div", { className: "flex flex-col gap-2 w-full", children: [
151
- /* @__PURE__ */ v("div", { className: "flex justify-end gap-5 mb-5", children: [
152
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
153
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
154
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
155
- ] }),
156
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
157
- ] });
158
- ie.propTypes = {
159
- children: T.any,
160
- isLoading: T.any
161
- };
162
- const oe = ({ children: e, isLoading: a }) => !_(D) || !a ? e : /* @__PURE__ */ v("div", { className: "flex flex-col gap-5 p-5", children: [
163
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[20%] h-10" }),
164
- /* @__PURE__ */ v("div", { className: "flex flex-wrap gap-5 justify-between my-10", children: [
165
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-15" }),
166
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-10" }),
167
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[30%] h-10" }),
168
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[30%] h-10" }),
169
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[30%] h-10" })
170
- ] }),
171
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
172
- /* @__PURE__ */ v("div", { className: "flex justify-end gap-5", children: [
173
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
174
- /* @__PURE__ */ i("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
175
- ] })
176
- ] });
177
- oe.propTypes = {
178
- children: T.any,
179
- isLoading: T.any
180
- };
181
- export {
182
- me as f,
183
- ie as i,
184
- oe as l
185
- };
186
- //# sourceMappingURL=ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js.map