{"version":3,"file":"UserProfilePage.vue.mjs","sources":["../../../lib/data-provider-interface/views/UserProfilePage.vue"],"sourcesContent":["<template>\n  <div class=\"d-flex flex-column bg-transparent container-fluid justify-content-between content\">\n    <h1 class=\"small-headline dataset-details-title\">My Profile</h1>\n    <div class=\"panel-body inf-content\">\n      <div class=\"row\">\n        <div class=\"col-md-12\">\n          <!-- <strong class=\"table-header\">User Information</strong><br> -->\n          <div class=\"table-responsive\">\n            <table class=\"table table-user-information\">\n              <tbody>\n                <tr>\n                  <td class=\"label-column\">\n                    <strong>\n                      <span class=\"glyphicon glyphicon-user text-primary\"></span>\n                      User ID:\n                    </strong>\n                  </td>\n                  <td class=\"text-primary value-column\">\n                    {{ getUserName }}\n                  </td>\n                </tr>\n                <tr>\n                  <td class=\"label-column\">\n                    <strong>\n                      <span class=\"glyphicon glyphicon-user text-primary\"></span>\n                      Roles:\n                    </strong>\n                  </td>\n                  <td class=\"text-primary value-column\">\n                    <p v-for=\"i in getUserData['roles'].filter(role => !role.startsWith('default-roles') && !['offline_access', 'uma_authorization'].includes(role))\" :key=\"i\">\n                      {{ i }}\n                    </p>\n                  </td>\n                </tr>\n                <tr v-if=\"userProfileDashboardUrl\">\n                  <td class=\"label-column\">\n                    <strong>\n                      <span class=\"glyphicon glyphicon-user text-primary\"></span>\n                      User Profile:\n                    </strong>\n                  </td>\n                  <td class=\"text-primary value-column\">\n                    <a :href=\"userProfileDashboardUrl\" target=\"_blank\" class=\"btn btn-link\">Edit Profile</a>\n                  </td>\n                </tr>\n              </tbody>\n            </table>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex';\nimport { getCurrentInstance } from \"vue\";\n\n// let instance = getCurrentInstance().appContext.app.config.globalProperties.$env\n\n\n\nexport default {\n  name: 'DataProviderInterface-UserProfile',\n  // props: [],\n  // data() {\n  //   return {\n  //     values: {},\n  //   };\n  // },\n\n  data() {\n    return {\n      // Need to assign the URL for userProfileDashboardUrl in the config files. \n      userProfileDashboardUrl: getCurrentInstance().appContext.app.config.globalProperties.$env.content.dataProviderInterface.userProfileDashboardUrl || '',\n    };\n  },\n  computed: {\n    ...mapGetters('auth', [\n      'getUserName',\n      'getUserData'\n    ]),\n  },\n  // methods: {},\n  // created() { },\n};\n</script>\n\n<style scoped>\n.inf-content {\n  /* border: 1px solid #DDDDDD;\n  -webkit-border-radius: 10px;\n  -moz-border-radius: 10px;\n  border-radius: 10px;\n  box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.3); */\n  padding: 10px;\n}\n\n/* .table-header {\n  padding: 0.75rem;\n} */\n\n.table td {\n  padding: 15px;\n  vertical-align: middle;\n  border-bottom: 1px solid #DDDDDD; /* Ensures the horizontal lines span full width */\n}\n\n.table th {\n  text-align: left;\n}\n\nh1.small-headline {\n  margin-bottom: 20px;\n}\n\np {\n  margin: 0; /* Ensure proper line breaks */\n}\n/* Added space at the bottom of the page */\n.content {\n  padding-bottom: 60px;\n}\n\n.table {\n  width: 100%;\n  border-collapse: collapse; /* Ensures the borders are merged properly */\n}\n\n.label-column {\n  width: 10%; /* Adjust as needed */\n  text-align: left;\n  padding-right: 10px;\n  min-width: 200px;\n}\n\n.value-column {\n  width: 100%; /* Adjust as needed */\n}\n\n.value-column .btn {\n  padding: 0;\n  /* text-decoration: none;\n  color: #5bc0de; */\n}\n\n.table tr:last-child td {\n  border-bottom: none;\n}\n\n/* .dataset-details-title {\n  font-size: 1.4rem;\n  margin-bottom: 0.5rem;\n  font-family: inherit;\n  font-weight: 500;\n  line-height: 1.2;\n  color: inherit;\n} */\n\n.dataset-details-title {\n  display: flex;\n  align-items: center; /* Aligns the text and line in the center */\n  font-size: 1.4rem;\n  margin-bottom: 0.5rem;\n  font-family: inherit;\n  font-weight: 500;\n  line-height: 1.2;\n  color: inherit;\n}\n\n.dataset-details-title::after {\n  content: \"\"; /* Creates the line after the text */\n  flex-grow: 1; /* Makes the line span the remaining width */\n  height: 1px; /* Thickness of the line */\n  background-color: #ccc; /* Line color */\n  margin-left: 10px; /* Space between the text and the line */\n}\n\n</style>\n"],"names":["_sfc_main","getCurrentInstance","mapGetters","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_10","_openBlock","_createElementBlock","_cache","_createElementVNode","_toDisplayString","_ctx","_Fragment","_renderList","role","i","$data","_hoisted_9","_hoisted_11"],"mappings":";;;;AA8DA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQN,OAAO;AACL,WAAO;AAAA;AAAA,MAEL,yBAAyBC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB,KAAK,QAAQ,sBAAsB,2BAA2B;AAAA;EAEtJ;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,QAAQ;AAAA,MACpB;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACF;AAAA;AAAA;AAGH,GApFOC,IAAA,EAAA,OAAM,oFAAmF,GAEvFC,IAAA,EAAA,OAAM,yBAAwB,GAC5BC,IAAA,EAAA,OAAM,MAAK,GACTC,IAAA,EAAA,OAAM,YAAW,GAEfC,IAAA,EAAA,OAAM,mBAAkB,GACpBC,IAAA,EAAA,OAAM,+BAA8B,GASjCC,IAAA,EAAA,OAAM,4BAA2B,GAWjCC,IAAA,EAAA,OAAM,4BAA2B,mBAajCC,IAAA,EAAA,OAAM,4BAA2B;;AAxCrD,SAAAC,EAAA,GAAAC,EAkDM,OAlDNV,GAkDM;AAAA,IAjDJW,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAgE,MAA5D,EAAA,OAAM,uCAAsC,GAAC,cAAU,EAAA;AAAA;IAC3DA,EA+CM,OA/CNX,GA+CM;AAAA,MA9CJW,EA6CM,OA7CNV,GA6CM;AAAA,QA5CJU,EA2CM,OA3CNT,GA2CM;AAAA,UAzCJS,EAwCM,OAxCNR,GAwCM;AAAA,YAvCJQ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