@argusoft/medplat-form-engine 1.0.9 → 1.0.10
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/AccessRights-sgIhYR30-DWNCTLI6.js +1238 -0
- package/dist/AccessRights-sgIhYR30-DWNCTLI6.js.map +1 -0
- package/dist/AddEditQueryBuilder-BaZxS2Cm-emLM3Oli.js +289 -0
- package/dist/AddEditQueryBuilder-BaZxS2Cm-emLM3Oli.js.map +1 -0
- package/dist/AddEditQueryBuilder-BaZxS2Cm.css +1 -0
- package/dist/AddFeatures-BxXCC6ex-1VYoA24R.js +212 -0
- package/dist/AddFeatures-BxXCC6ex-1VYoA24R.js.map +1 -0
- package/dist/AddLabelModal-DE3ploGD-DWF1SOUp.js +734 -0
- package/dist/AddLabelModal-DE3ploGD-DWF1SOUp.js.map +1 -0
- package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js +5389 -0
- package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js.map +1 -0
- package/dist/AddMenuConfiguration-QWfpcnuP.css +1 -0
- package/dist/AddRoleDrawer-ZK1eejxI-ldfhQqA_.js +453 -0
- package/dist/AddRoleDrawer-ZK1eejxI-ldfhQqA_.js.map +1 -0
- package/dist/AppModal-BgZyfrd--CNvWjWhL.js +428 -0
- package/dist/AppModal-BgZyfrd--CNvWjWhL.js.map +1 -0
- package/dist/ChangePasswordModal-MV7g8tkA-BDA1Pw0i.js +176 -0
- package/dist/ChangePasswordModal-MV7g8tkA-BDA1Pw0i.js.map +1 -0
- package/dist/ConditionConfig-GDCXIg3C-XbR1fp6h.js +395 -0
- package/dist/ConditionConfig-GDCXIg3C-XbR1fp6h.js.map +1 -0
- package/dist/ConditionConfig-GDCXIg3C.css +1 -0
- package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js +50 -0
- package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js.map +1 -0
- package/dist/EventConfigurations-jGCJ4LqP-B_ftXinp.js +384 -0
- package/dist/EventConfigurations-jGCJ4LqP-B_ftXinp.js.map +1 -0
- package/dist/EventConfigurations-jGCJ4LqP.css +1 -0
- package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js +200 -0
- package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js.map +1 -0
- package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js +74 -0
- package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map +1 -0
- package/dist/FeatureMenu-BYSRoNm0-D2Ak-EDd.js +249 -0
- package/dist/FeatureMenu-BYSRoNm0-D2Ak-EDd.js.map +1 -0
- package/dist/Features-CKMmuqcs-ClXAzWGV.js +11 -0
- package/dist/Features-CKMmuqcs-ClXAzWGV.js.map +1 -0
- package/dist/FlywayQuery-Cx2sly6g-B1LLSyLE.js +169 -0
- package/dist/FlywayQuery-Cx2sly6g-B1LLSyLE.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF-CSPs9x_q.js +5162 -0
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF-CSPs9x_q.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.css +1 -0
- package/dist/ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js +335 -0
- package/dist/ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js.map +1 -0
- package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js +186 -0
- package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js.map +1 -0
- package/dist/LanguagesModal-rk6IGQwY-Cxw9xctN.js +394 -0
- package/dist/LanguagesModal-rk6IGQwY-Cxw9xctN.js.map +1 -0
- package/dist/ManageDynamicFeature-CeeqiS3K-D2Se68tC.js +4189 -0
- package/dist/ManageDynamicFeature-CeeqiS3K-D2Se68tC.js.map +1 -0
- package/dist/ManageEventConfiguration-BJxS2Su0-yd2dUxgz.js +1017 -0
- package/dist/ManageEventConfiguration-BJxS2Su0-yd2dUxgz.js.map +1 -0
- package/dist/ManageEventConfiguration-BJxS2Su0.css +1 -0
- package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js +6819 -0
- package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js.map +1 -0
- package/dist/ManageRole-ByqBmjuc-CApL3DJy.js +699 -0
- package/dist/ManageRole-ByqBmjuc-CApL3DJy.js.map +1 -0
- package/dist/ManageTranslation-BTxvSYKb-CwT975cy.js +616 -0
- package/dist/ManageTranslation-BTxvSYKb-CwT975cy.js.map +1 -0
- package/dist/ManageTranslation-BTxvSYKb.css +1 -0
- package/dist/ManageUser-PHiTNyF8-Bddmh2CC.js +2160 -0
- package/dist/ManageUser-PHiTNyF8-Bddmh2CC.js.map +1 -0
- package/dist/ManageUser-PHiTNyF8.css +1 -0
- package/dist/{MedplatFormWrapper-CFiFeztb.js → MedplatFormWrapper-DbdQUpEu.js} +10677 -10272
- package/dist/MedplatFormWrapper-DbdQUpEu.js.map +1 -0
- package/dist/MobileMenuManagement-DmQU5TTo-D7n_NP0X.js +108 -0
- package/dist/MobileMenuManagement-DmQU5TTo-D7n_NP0X.js.map +1 -0
- package/dist/MobileTypeEventConfigModal-ChhO_A4f-Wd3d3SEP.js +782 -0
- package/dist/MobileTypeEventConfigModal-ChhO_A4f-Wd3d3SEP.js.map +1 -0
- package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js +1002 -0
- package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js.map +1 -0
- package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js +244 -0
- package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js.map +1 -0
- package/dist/NotificationList-BkpOrCpM-B-vKDGd_.js +400 -0
- package/dist/NotificationList-BkpOrCpM-B-vKDGd_.js.map +1 -0
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v-tpC-SI0P.js +1952 -0
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v-tpC-SI0P.js.map +1 -0
- package/dist/QueryBuilder-Cus_mRwZ-DLXSM32i.js +378 -0
- package/dist/QueryBuilder-Cus_mRwZ-DLXSM32i.js.map +1 -0
- package/dist/QueryBuilder-Cus_mRwZ.css +1 -0
- package/dist/QueryManagement-DXA73N2j-Wlk7hKP3.js +671 -0
- package/dist/QueryManagement-DXA73N2j-Wlk7hKP3.js.map +1 -0
- package/dist/QueryManagement-DXA73N2j.css +1 -0
- package/dist/RoleManagement-CLaEJ90J-BW0tG5t9.js +410 -0
- package/dist/RoleManagement-CLaEJ90J-BW0tG5t9.js.map +1 -0
- package/dist/ServerSyncModal-uNjGCQJz--PJ3F3xg.js +869 -0
- package/dist/ServerSyncModal-uNjGCQJz--PJ3F3xg.js.map +1 -0
- package/dist/ShowFlywayQuery-DMsAbtOW-TT9XXzUi.js +130 -0
- package/dist/ShowFlywayQuery-DMsAbtOW-TT9XXzUi.js.map +1 -0
- package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js +259 -0
- package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js.map +1 -0
- package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js +190 -0
- package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js.map +1 -0
- package/dist/SubMenu-BHcSNSUF-d-_yEXeN.js +187 -0
- package/dist/SubMenu-BHcSNSUF-d-_yEXeN.js.map +1 -0
- package/dist/TableDetails-DzREeJkm-B-WEBbQz.js +1508 -0
- package/dist/TableDetails-DzREeJkm-B-WEBbQz.js.map +1 -0
- package/dist/TableList-B9hr05Hs-BIsMbnIV.js +428 -0
- package/dist/TableList-B9hr05Hs-BIsMbnIV.js.map +1 -0
- package/dist/TypeConfiguration-C-lk8Szs-DKu6I5Im.js +116 -0
- package/dist/TypeConfiguration-C-lk8Szs-DKu6I5Im.js.map +1 -0
- package/dist/UserList-BxB1tCwM-7YIwwGQ9.js +13039 -0
- package/dist/UserList-BxB1tCwM-7YIwwGQ9.js.map +1 -0
- package/dist/UserList-BxB1tCwM.css +1 -0
- package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js +184 -0
- package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js.map +1 -0
- package/dist/WidgetList-BSApErov-CBYLh0Oh.js +188 -0
- package/dist/WidgetList-BSApErov-CBYLh0Oh.js.map +1 -0
- package/dist/_commonjsHelpers-BItOPCY9-B9tZyK9c.js +29 -0
- package/dist/_commonjsHelpers-BItOPCY9-B9tZyK9c.js.map +1 -0
- package/dist/i18next-CTOWN_jH-BKKbdDel.js +1389 -0
- package/dist/i18next-CTOWN_jH-BKKbdDel.js.map +1 -0
- package/dist/index-B4r0wjBD.js +563 -0
- package/dist/index-B4r0wjBD.js.map +1 -0
- package/dist/{index-ohCbNSTD.js → index-CdFr9tGu.js} +107 -107
- package/dist/{index-ohCbNSTD.js.map → index-CdFr9tGu.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/manageImmunization-B4swS745-JldexHrO.js +1204 -0
- package/dist/manageImmunization-B4swS745-JldexHrO.js.map +1 -0
- package/dist/manageImmunization-B4swS745.css +1 -0
- package/package.json +1 -1
- package/dist/MedplatFormWrapper-CFiFeztb.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap";.immunization-landing{min-height:calc(100vh - 100px);padding:40px 20px;display:flex;justify-content:center;align-items:flex-start;background-color:#fbfcff;font-family:Mulish,sans-serif!important;overflow:hidden;position:relative}.immunization-landing:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;opacity:.4;pointer-events:none;background-image:url(https://www.transparenttextures.com/patterns/white-wall.png);z-index:0}.immunization-landing .content-wrapper{width:80%;max-width:1200px;z-index:1;display:flex;flex-direction:column;align-items:center}@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{font-size:25px!important;font-weight:800!important;color:#1a1a1a;margin-bottom:12px!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{font-size:12px!important;font-weight:500!important;color:#717171;max-width:600px;margin:0 auto}@media(max-width:600px){.immunization-landing .header-text .page-subtitle{font-size:14px!important}}@media(min-width:2500px){.immunization-landing .header-text .page-subtitle{font-size:18px!important;max-width:1000px}}.immunization-landing .search-filter-section{width:100%;max-width:850px;display:flex;gap:16px;margin-bottom:40px}@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{border-radius:12px;background-color:#fff;height:40px}.immunization-landing .search-filter-section .search-field .MuiOutlinedInput-root fieldset{border-color:#e0e0e0;border-width:1.5px}.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{height:40px;padding:0 24px;border-radius:12px;border:1.5px solid #e0e0e0;color:#555;font-weight:700;text-transform:none;font-size:16px;margin-top:8px}.immunization-landing .search-filter-section .filter-button:hover{background-color:#f5f5f5;border-color:#bdbdbd}.immunization-landing .template-grid{width:100%;max-width:1200px;justify-content:center}.immunization-landing .custom-template-slot{display:flex;justify-content:center;width:100%}.immunization-landing .template-card{background:#fff;border:1.5px solid #e0e0e0;border-radius:20px;padding:24px;display:flex;flex-direction:column;transition:all .3s ease;height:95%;width:100%}.immunization-landing .template-card:hover{box-shadow:0 12px 24px #0000000d;transform:translateY(-4px)}.immunization-landing .template-card.custom-card{border:2px solid #607080;max-width:560px}.immunization-landing .template-card .card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.immunization-landing .template-card .card-header .icon-wrapper{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center}.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{font-size:22px!important;font-weight:800!important;color:#333;margin-top:30px!important;margin-bottom:45px!important;flex-grow:1}@media(max-width:1200px){.immunization-landing .template-card .card-title{font-size:20px!important}}.immunization-landing .template-card .card-btn{height:52px;border-radius:12px;text-transform:none;font-weight:700;font-size:16px}.immunization-landing .template-card .card-btn.secondary-btn{background-color:#f1f4f9;color:#434d5b}.immunization-landing .template-card .card-btn.secondary-btn:hover{background-color:#e5ebf3}.immunization-landing .template-card .card-btn.primary-btn{background-color:#4c5e70;color:#fff;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{background-color:#0f172a66;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.add-custom-vaccine-dialog .dialog-header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 18px 12px}.add-custom-vaccine-dialog .dialog-header .header-content{display:flex;align-items:center;gap:12px}.add-custom-vaccine-dialog .dialog-header .header-content .icon-box{width:33px;height:33px;background-color:#e7f7ef;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#4c5e70;font-size:14px}.add-custom-vaccine-dialog .dialog-header .header-content .text-wrap .title{font-size:15px!important;font-weight:800!important;color:#1a1a1a;line-height:1.2}.add-custom-vaccine-dialog .dialog-header .header-content .text-wrap .subtitle{font-size:10px!important;color:#717171;font-weight:500!important}.add-custom-vaccine-dialog .dialog-header .close-button{color:#94a3b8}.add-custom-vaccine-dialog .dialog-header .close-button:hover{background-color:#f1f5f9;color:#64748b}.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{font-size:11px!important;font-weight:700!important;color:#334155}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root{border-radius:9px;background-color:#f8fafc;height:39px;transition:all .2s ease;font-size:12px}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root fieldset{border-color:#e2e8f0;border-width:1.5px}.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{font-weight:500;color:#1e293b}.add-custom-vaccine-dialog .dialog-content .input-group .custom-textfield .MuiOutlinedInput-root input::-moz-placeholder{color:#94a3b8;opacity:1}.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;font-size:12px;margin-right:3px}.add-custom-vaccine-dialog .dialog-actions{padding:0 24px 24px;flex-direction:column;gap:9px}.add-custom-vaccine-dialog .dialog-actions .add-btn{background-color:#4c5e70;color:#fff;height:39px;border-radius:9px;text-transform:none;font-weight:700;font-size:12px;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{background-color:#7e807f;color:#fff}.add-custom-vaccine-dialog .dialog-actions .cancel-btn{background-color:#f1f5f9;color:#64748b;height:39px;border-radius:9px;text-transform:none;font-weight:700;font-size:12px;margin:0!important}.add-custom-vaccine-dialog .dialog-actions .cancel-btn:hover{background-color:#e2e8f0;color:#475569}.immunization-schedule-config{min-height:calc(100vh - 100px);padding:30px 15px;background-color:#fbfcff;font-family:Mulish,sans-serif!important;position:relative}.immunization-schedule-config:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;opacity:.4;pointer-events:none;background-image:url(https://www.transparenttextures.com/patterns/white-wall.png);z-index:0}.immunization-schedule-config .content-wrapper{position:relative;z-index:1;max-width:1100px;margin:0 auto}@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{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}@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{display:flex;align-items:center;gap:14px}.immunization-schedule-config .section-header .title-group .icon-box{width:40px;height:40px;background-color:#e7f7ef;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#394d61;font-size:18px}.immunization-schedule-config .section-header .title-group .text-wrap .title{font-size:20px!important;font-weight:800!important;color:#1a1a1a}.immunization-schedule-config .section-header .title-group .text-wrap .subtitle{font-size:14px!important;color:#717171;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{border-radius:12px;background-color:#f8fafc;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{margin-bottom:24px;display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:12px}@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{grid-template-columns:repeat(8,1fr)!important;gap:20px}}.immunization-schedule-config .vaccine-grid .vaccine-card{background:#fff;border:1.5px solid #edf2f7;border-radius:12px;padding:16px 20px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;cursor:pointer;transition:all .25s ease;height:100%;min-height:142px}.immunization-schedule-config .vaccine-grid .vaccine-card:hover{border-color:#394d61;background-color:#f0fdf4;transform:translateY(-2px)}.immunization-schedule-config .vaccine-grid .vaccine-card.selected{background-color:#4c5e70;border-color:#394d61;color:#fff}.immunization-schedule-config .vaccine-grid .vaccine-card.selected .icon-container{background-color:#fff3;color:#fff}.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{border-style:dashed;color:#4c5e70;justify-content:center;align-items:flex-start}.immunization-schedule-config .vaccine-grid .vaccine-card.custom-vaccine .icon-container{background-color:#e7f7ef;color:#4c5e70}.immunization-schedule-config .vaccine-grid .vaccine-card.custom-vaccine .vaccine-name{color:#4c5e70!important;font-weight:700!important;font-size:15px!important}.immunization-schedule-config .vaccine-grid .vaccine-card .icon-container{width:40px;height:40px;min-width:40px;background-color:#f1f5f9;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:18px;transition:all .2s ease}.immunization-schedule-config .vaccine-grid .vaccine-card .text-container{width:100%}.immunization-schedule-config .vaccine-grid .vaccine-card .text-container .vaccine-name{font-size:15px!important;font-weight:800!important;color:#334155;letter-spacing:.5px;line-height:1.35!important;white-space:normal;overflow-wrap:anywhere}.immunization-schedule-config .vaccine-grid .vaccine-card .text-container .vaccine-cat{font-size:12px!important;font-weight:600!important;color:#94a3b8;text-transform:uppercase;line-height:1.5!important;margin-top:6px!important;white-space:normal;overflow-wrap:anywhere}.immunization-schedule-config .selection-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 4px}.immunization-schedule-config .selection-info .selected-count{display:flex;align-items:center;gap:8px;font-weight:700!important;color:#717171;font-size:14px}.immunization-schedule-config .selection-info .selected-count span{color:#4c5e70;font-size:16px}.immunization-schedule-config .selection-info .select-btn{background-color:#4c5e70;color:#fff;padding:8px 20px;border-radius:8px;text-transform:none;font-weight:700;box-shadow:0 4px 12px #11b66633;font-size:14px}.immunization-schedule-config .selection-info .select-btn:hover{background-color:#4c5e70}.immunization-schedule-config .selection-info .select-btn:disabled{background-color:#e2e8f0;color:#94a3b8;box-shadow:none;cursor:not-allowed}.immunization-schedule-config .table-container{border-radius:20px;border:1px solid #edf2f7;overflow:hidden}.immunization-schedule-config .table-container .MuiTableHead-root{background-color:#f8fafc}.immunization-schedule-config .table-container .MuiTableHead-root .MuiTableCell-head{font-weight:700!important;color:#94a3b8;padding:8px 16px;border-bottom:1px solid #edf2f7;font-size:11px}.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{padding:10px 16px;border-bottom:1px solid #f1f5f9}.immunization-schedule-config .table-container .no-records{padding:40px!important;text-align:center;color:#94a3b8;font-weight:600;font-size:14px}.immunization-summary{padding:12px;background-color:#f5f7fa;min-height:calc(100vh - 100px);height:calc(100vh - 100px);display:flex;flex-direction:column;overflow:hidden}.immunization-summary .header-section{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px;flex-shrink:0}.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{font-size:15px;font-weight:800;color:#1a1a1a;margin-bottom:2px}.immunization-summary .header-section .title-group .page-subtitle{color:#475569;font-size:11px;font-weight:600}.immunization-summary .table-container{flex:1;min-height:0;max-height:100%;border-radius:10px;box-shadow:0 3px 10px #0000000d;background-color:#fff;overflow:auto}.immunization-summary .table-container table{table-layout:fixed;width:100%}.immunization-summary .table-container .header-cell{background-color:#fff;color:#394d61;font-weight:800;font-size:11px;letter-spacing:.4px;text-transform:uppercase;border-bottom:1px solid #f0f0f0;padding:6px 12px}.immunization-summary .table-container .header-cell:nth-child(1){margin-left:5px;width:5%}.immunization-summary .table-container .header-cell:nth-child(2){width:30%}.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{padding:6px 12px;border-bottom:1px solid #f0f0f0;color:#1a1a1a;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.immunization-summary .table-container .table-row .vaccine-name-input input{font-weight:700;padding:6px 10px;font-size:12px}.immunization-summary .table-container .table-row .vaccine-name{font-weight:700;color:#1a1a1a;font-size:13px}.immunization-summary .table-container .table-row .eligibility-cell{font-style:italic;color:#1a1a1a;font-size:11px}.immunization-summary .table-container .table-row .eligibility-cell strong{font-weight:700;font-style:normal}.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{background-color:#e7f7ef!important;color:#394d61!important;width:24px!important;height:24px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center;padding:0!important;transition:background-color .2s}.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{padding:0!important;background-color:#f9fafb;border:none!important;line-height:0;height:0}.immunization-summary .table-container .expansion-container{display:flex;gap:18px;padding:12px;border-top:1px solid rgba(17,182,102,.2)}@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:1;display:flex;flex-direction:column;gap:12px}@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;font-weight:800;font-size:11px;text-transform:uppercase;margin-bottom:8px;display:block}.immunization-summary .table-container .expansion-container .dose-type-toggle{display:flex;align-items:center;gap:8px}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-label{font-size:11px;color:#394d61;font-weight:800;text-transform:uppercase}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container{display:flex;background:#f0f0f0;padding:4px;border-radius:12px;border:1px solid #e0e0e0}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container .toggle-option{padding:9px 8px;font-size:12px;font-weight:700;border-radius:10px;cursor:pointer;transition:all .2s;color:#717171;text-transform:uppercase}.immunization-summary .table-container .expansion-container .dose-type-toggle .toggle-container .toggle-option.active{background:#4f6172;color:#fff;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-radius:6px;border:1px solid #e0e0e0}.immunization-summary .table-container .expansion-container .dose-table .header-cell{font-size:10px;font-weight:800;color:#394d61;padding:6px 8px;text-transform:uppercase}.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;font-size:10px;font-weight:700;display:flex;align-items:center;gap:3px;margin-top:3px}.immunization-summary .table-container .expansion-container .side-card{background:#fff;border-radius:6px;border:1px solid #e0e0e0;padding:10px}.immunization-summary .table-container .expansion-container .side-card .card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.immunization-summary .table-container .expansion-container .side-card .card-header .add-link{color:#657584;font-weight:700;font-size:10px;cursor:pointer;text-transform:uppercase}.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{display:flex;justify-content:space-between;align-items:center;padding:6px;background:#f9fafb;border-radius:5px;border:1px solid #f0f0f0}.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{display:flex;gap:6px;margin-bottom:6px}.immunization-summary .table-container .expansion-container .side-card .dependency-item .dependency-hint{padding:10px;background:#f9fafb;border-radius:5px;border:1px solid #f0f0f0;font-size:11px;font-weight:500;color:#444}.immunization-summary .table-container .expansion-footer{display:flex;justify-content:flex-end;gap:12px;margin:5px 12px 15px 0}.immunization-summary .table-container .expansion-footer .discard-btn{border-color:#f44336;color:#f22e1f;padding:5px 16px;font-weight:700;font-size:11px;border-radius:6px}.immunization-summary .table-container .expansion-footer .discard-btn:hover{border-color:#d32f2f;background-color:#fef2f2}.immunization-summary .table-container .expansion-footer .save-btn{background-color:#394d61;color:#fff;padding:5px 16px;font-weight:700;font-size:11px;border-radius:6px}.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)}}
|
|
@@ -0,0 +1,335 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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","o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BAAAA;AAAAA,QACjE+B;AAAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,SAASf;AAAA,UACT,WAAWxC;AAAA,UACX,kBAAkB;AAAA,YAChB,YAAY;AAAA,YACZ,oBAAoB;AAAA,UAChC;AAAA,UACU,SAASyC;AAAA,UACT,oBAAoB;AAAA,YAClB,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;"}
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
"&": "&",
|
|
44
|
+
"&": "&",
|
|
45
|
+
"<": "<",
|
|
46
|
+
"<": "<",
|
|
47
|
+
">": ">",
|
|
48
|
+
">": ">",
|
|
49
|
+
"'": "'",
|
|
50
|
+
"'": "'",
|
|
51
|
+
""": '"',
|
|
52
|
+
""": '"',
|
|
53
|
+
" ": " ",
|
|
54
|
+
" ": " ",
|
|
55
|
+
"©": "©",
|
|
56
|
+
"©": "©",
|
|
57
|
+
"®": "®",
|
|
58
|
+
"®": "®",
|
|
59
|
+
"…": "…",
|
|
60
|
+
"…": "…",
|
|
61
|
+
"/": "/",
|
|
62
|
+
"/": "/"
|
|
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
|