{"version":3,"sources":["webpack:///./src/components/Apis/ApiLogs.vue","webpack:///src/components/Apis/ApiLogs.vue","webpack:///./src/components/Apis/ApiLogs.vue?722e","webpack:///./src/components/Apis/ApiLogs.vue?237a"],"names":["render","_vm","this","_c","_self","staticClass","scopedSlots","_u","key","fn","_v","_s","nrOfLogs","proxy","on","getApiLogs","attrs","_m","_l","logs","log","index","CallType","Call","Date","IP","ProfileToken","UserAgent","staticRenderFns","components","props","data","computed","_objectSpread","mapState","created","methods","self","isLoading","applicationProvider","application","Id","then","response","status","finally","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,2CAA2C,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,oBAAoB,CAACG,YAAYL,EAAIM,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,WAAW,MAAO,CAACR,EAAIS,GAAG,QAAQT,EAAIU,GAAGV,EAAIW,UAAU,gBAAgBC,OAAM,QAAW,GAAGV,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,IAAI,CAACE,YAAY,WAAWS,GAAG,CAAC,MAAQb,EAAIc,aAAa,CAACZ,EAAG,OAAO,CAACE,YAAY,QAAQ,CAACF,EAAG,oBAAoB,CAACa,MAAM,CAAC,KAAO,CAAC,MAAO,YAAY,GAAGb,EAAG,OAAO,CAACF,EAAIS,GAAG,qBAAqBP,EAAG,QAAQ,CAACE,YAAY,iCAAiC,CAACJ,EAAIgB,GAAG,GAAGd,EAAG,QAAQF,EAAIiB,GAAIjB,EAAIkB,MAAM,SAASC,EAAIC,GAAO,OAAOlB,EAAG,KAAK,CAACK,IAAIa,GAAO,CAAClB,EAAG,KAAK,CAACF,EAAIS,GAAGT,EAAIU,GAAGS,EAAIE,aAAanB,EAAG,KAAK,CAACF,EAAIS,GAAGT,EAAIU,GAAGS,EAAIG,SAASpB,EAAG,KAAK,CAACF,EAAIS,GAAGT,EAAIU,GAAGS,EAAII,SAASrB,EAAG,KAAK,CAACF,EAAIS,GAAGT,EAAIU,GAAGS,EAAIK,OAAOtB,EAAG,KAAK,CAACF,EAAIS,GAAGT,EAAIU,GAAGS,EAAIM,iBAAiBvB,EAAG,KAAK,CAACF,EAAIS,GAAGT,EAAIU,GAAGS,EAAIO,mBAAkB,QAE18BC,EAAkB,CAAC,WAAY,IAAI3B,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,KAAK,CAACF,EAAIS,GAAG,eAAeP,EAAG,KAAK,CAACF,EAAIS,GAAG,UAAUP,EAAG,KAAK,CAACF,EAAIS,GAAG,UAAUP,EAAG,KAAK,CAACF,EAAIS,GAAG,QAAQP,EAAG,KAAK,CAACF,EAAIS,GAAG,mBAAmBP,EAAG,KAAK,CAACF,EAAIS,GAAG,sB,gDC+C3O,GACfmB,WAAA,GAEAC,MAAA,GAEAC,KAAA,WACA,OACAZ,KAAA,GACAP,SAAA,MAIAoB,SAAAC,eAAA,GACAC,eAAA,qCAGAC,QAAA,WACA,KAAApB,cAGAqB,QAAA,CACArB,WAAA,WACA,IAAAsB,EAAA,KAEAA,EAAAC,YACAD,EAAAC,WAAA,EACAD,EAAAlB,KAAA,GAEAoB,OAAAH,QACArB,WAAAsB,EAAAG,YAAAC,GAAAJ,EAAAzB,UACA8B,MAAA,SAAAC,GACA,MAAAA,EAAAC,SACAP,EAAAlB,KAAAwB,EAAAZ,SAGAc,SAAA,WACAR,EAAAC,WAAA,SCrF+V,I,YCO3VQ,EAAY,eACd,EACA9C,EACA4B,GACA,EACA,KACA,KACA,MAIa,aAAAkB,E","file":"js/chunk-2d22c2e6.js?id=65810a83f93c338ba619","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"actionBar has-padding has-margin-bottom\"},[_c('div',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('ui-section-header',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\"Last \"+_vm._s(_vm.nrOfLogs)+\" api calls\")]},proxy:true}])})],1),_c('div',{staticClass:\"level-right\"},[_c('a',{staticClass:\"is-small\",on:{\"click\":_vm.getApiLogs}},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'redo']}})],1),_c('span',[_vm._v(\"Refresh\")])])])])]),_c('table',{staticClass:\"table is-fullwidth is-striped\"},[_vm._m(0),_c('tbody',_vm._l((_vm.logs),function(log,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(log.CallType))]),_c('td',[_vm._v(_vm._s(log.Call))]),_c('td',[_vm._v(_vm._s(log.Date))]),_c('td',[_vm._v(_vm._s(log.IP))]),_c('td',[_vm._v(_vm._s(log.ProfileToken))]),_c('td',[_vm._v(_vm._s(log.UserAgent))])])}),0)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Call type\")]),_c('th',[_vm._v(\"Call\")]),_c('th',[_vm._v(\"Date\")]),_c('th',[_vm._v(\"IP\")]),_c('th',[_vm._v(\"Profile token\")]),_c('th',[_vm._v(\"User agent\")])])])\n}]\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <div class=\"actionBar has-padding has-margin-bottom\">\n      <div class=\"level\">\n        <div class=\"level-left\">\n          <ui-section-header>\n            <template v-slot:title>Last {{ nrOfLogs }} api calls</template>\n          </ui-section-header>\n        </div>\n        <div class=\"level-right\">\n          <a @click=\"getApiLogs\" class=\"is-small\">\n            <span class=\"icon\">\n              <font-awesome-icon :icon=\"['fas', 'redo']\" />\n            </span>\n            <span>Refresh</span>\n          </a>\n        </div>\n      </div>\n    </div>\n\n    <table class=\"table is-fullwidth is-striped\">\n      <thead>\n        <tr>\n          <th>Call type</th>\n          <th>Call</th>\n          <th>Date</th>\n          <th>IP</th>\n          <th>Profile token</th>\n          <th>User agent</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr v-for=\"(log, index) in logs\" :key=\"index\">\n          <td>{{ log.CallType }}</td>\n          <td>{{ log.Call }}</td>\n          <td>{{ log.Date }}</td>\n          <td>{{ log.IP }}</td>\n          <td>{{ log.ProfileToken }}</td>\n          <td>{{ log.UserAgent }}</td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\nimport applicationProvider from '@/providers/application'\n\nexport default {\n  components: {},\n\n  props: {},\n\n  data() {\n    return {\n      logs: [],\n      nrOfLogs: 100,\n    }\n  },\n\n  computed: {\n    ...mapState('applicationStore', ['application']),\n  },\n\n  created() {\n    this.getApiLogs()\n  },\n\n  methods: {\n    getApiLogs() {\n      let self = this\n\n      if (!self.isLoading) {\n        self.isLoading = true\n        self.logs = []\n\n        applicationProvider.methods\n          .getApiLogs(self.application.Id, self.nrOfLogs)\n          .then((response) => {\n            if (response.status === 200) {\n              self.logs = response.data\n            }\n          })\n          .finally(() => {\n            self.isLoading = false\n          })\n      }\n    },\n  },\n}\n</script>\n\n<style></style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiLogs.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiLogs.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ApiLogs.vue?vue&type=template&id=2e08d0f8\"\nimport script from \"./ApiLogs.vue?vue&type=script&lang=js\"\nexport * from \"./ApiLogs.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}