{"version":3,"sources":["webpack:///./src/views/modules/admin/User.vue?2470","webpack:///./src/views/modules/admin/UserChangePasswordDialog.vue?a827","webpack:///src/views/modules/admin/UserChangePasswordDialog.vue","webpack:///./src/views/modules/admin/UserChangePasswordDialog.vue?9150","webpack:///./src/views/modules/admin/UserChangePasswordDialog.vue","webpack:///src/views/modules/admin/User.vue","webpack:///./src/views/modules/admin/User.vue?c297","webpack:///./src/views/modules/admin/User.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","modalUserId","modalEnableAccessCode","modalNameUser","noOptionAdd","on","onChangePasswordDialog","t","currentPage","pageTitle","userAuth","request","totalPages","totalElements","getPage","scopedSlots","_u","key","fn","validation","singularTitle","name","_e","filteredDefault","filteredAdvanced","form","searchDefault","$event","clearSearch","profileAllOptions","model","value","callback","$$v","$set","expression","groupUserOptions","proxy","checkViewListTableDefault","content","pageListIsLoaded","fields","ref","item","userNumber","path","directives","rawName","modifiers","staticClass","_v","_s","_f","status","lastAccessDate","groupsUser","typeMaster","openDialogChangePassword","userId","enableAccessCode","staticRenderFns","generalErrors","title","okText","id","command","showModal","resetModal","onSubmit","error","newPassword","components","mixins","pageDialogFormMixin","data","props","type","String","required","Number","Boolean","methods","watch","component","pageDefaultMixin","groupUserId","enableExternalAccess","mountedPrepare","openDialogForm","ui"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,2BAA2B,CAACE,MAAM,CAAC,UAAUN,EAAIO,YAAY,qBAAqBP,EAAIQ,sBAAsB,KAAOR,EAAIS,cAAc,gBAAgBT,EAAIU,aAAaC,GAAG,CAAC,SAAWX,EAAIY,0BAA0BR,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQN,EAAIa,EAAE,WAAab,EAAIc,YAAYC,UAAU,YAAYf,EAAIgB,SAAS,cAAchB,EAAIiB,QAAQ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L7B,KAAM,GACNpB,KAAM,CACJ4D,YAAa,EACbC,qBAAsB,MAExB7C,OAAQ,CACd,CAAQ,IAAR,QAAQ,MAAR,QACA,CAAQ,IAAR,uBAAQ,MAAR,UACA,CAAQ,IAAR,UAAQ,MAAR,oBACA,CAAQ,IAAR,aAAQ,MAAR,SACA,CAAQ,IAAR,iBAAQ,MAAR,gBACA,CAAQ,IAAR,UAAQ,MAAR,KAIMZ,kBAAmB,GACnBO,iBAAN,GACMhC,YAAa,GACbH,YAAa,EACbC,uBAAuB,EACvBC,cAAe,KAInB8E,QAAS,CAEPM,eAFJ,aAMI,iBANJ,WAMA,wKAGA,+DAEA,wCACA,yCAEA,gDARA,8CAcI9B,yBApBJ,SAoBA,OACM9D,KAAKM,YAAcyD,EACnB/D,KAAKQ,cAAgBkB,EACrB1B,KAAKO,sBAAwByD,EAC7BhE,KAAK6F,eAAe,+BAEtBlF,uBA1BJ,WA2BMmF,EAAN,6EAIE,QA7DF,WA6DA,+JAEA,mBAFA,SAIA,gBAJA,uBAMA,qBANA,+CC3J4W,ICOxW,EAAY,eACd,EACAhG,EACAmE,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d230647.027b4dac.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('UserChangePasswordDialog',{attrs:{\"user-id\":_vm.modalUserId,\"enable-access-code\":_vm.modalEnableAccessCode,\"name\":_vm.modalNameUser,\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onChangePasswordDialog}}),_c('t-page-list',{attrs:{\"title\":_vm.t('list-of') + _vm.currentPage.pageTitle,\"user-auth\":_vm.userAuth,\"total-pages\":_vm.request.totalPages,\"total-elements\":_vm.request.totalElements},on:{\"getPage\":_vm.getPage},scopedSlots:_vm._u([{key:\"search\",fn:function(){return [(_vm.userAuth.validation.validationCreate)?_c('t-button',{attrs:{\"text\":_vm.t('insert') + ' ' + _vm.currentPage.singularTitle,\"to\":_vm.currentPage.name + '-form-new',\"primary\":\"\"}}):_vm._e(),_c('t-content-header-search-default',{attrs:{\"filtered-default\":_vm.filteredDefault,\"filtered-advanced\":_vm.filteredAdvanced,\"search-form\":_vm.form},on:{\"searchChange\":_vm.searchDefault,\"onClearSearch\":function($event){return _vm.clearSearch()}}},[_c('t-input-search',{attrs:{\"options\":_vm.profileAllOptions,\"label\":\"Perfil de Acesso\",\"select\":\"\"},model:{value:(_vm.form.profileId),callback:function ($$v) {_vm.$set(_vm.form, \"profileId\", $$v)},expression:\"form.profileId\"}}),_c('t-input-search',{attrs:{\"options\":_vm.groupUserOptions,\"label\":\"Grupo\",\"select\":\"\"},model:{value:(_vm.form.groupUserId),callback:function ($$v) {_vm.$set(_vm.form, \"groupUserId\", $$v)},expression:\"form.groupUserId\"}}),_c('t-input-search',{attrs:{\"boolean\":\"\",\"text-true\":\"Liberados\",\"text-false\":\"Restritos\",\"label\":\"Acesso Externo\"},model:{value:(_vm.form.enableExternalAccess),callback:function ($$v) {_vm.$set(_vm.form, \"enableExternalAccess\", $$v)},expression:\"form.enableExternalAccess\"}})],1)]},proxy:true}])},[(_vm.checkViewListTableDefault())?_c('b-table',{attrs:{\"hover\":\"\",\"items\":_vm.request.content,\"busy\":!_vm.pageListIsLoaded,\"fields\":_vm.fields},scopedSlots:_vm._u([{key:\"cell(first)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-list-link-primary',{attrs:{\"label\":item.name,\"userAuth\":_vm.userAuth,\"id\":item.userNumber,\"path\":_vm.currentPage.path}}),(item.typeMaster)?_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"fa fa-fw text-warning ml-2\",attrs:{\"title\":\"Usuário Master\"}},[_vm._v(\"\")]):_vm._e()]}},{key:\"cell(status)\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"statusLabel\")(item.status))+\" \")]}},{key:\"cell(lastAccessDate)\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"datetime\")(item.lastAccessDate))+\" \")]}},{key:\"cell(groupsUser)\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.groupsUser !== '' && item.groupsUser)?_c('span',[_vm._v(_vm._s(item.groupsUser))]):_c('small',[_vm._v(\"Nenhum grupo vinculado\")])]}},{key:\"cell(enableExternalAccess)\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.enableExternalAccess)?_c('span',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"text-danger\",attrs:{\"title\":\"Usuário sem restrição de acesso via IP com maior risco de segurança\"}},[_vm._v(\"Liberado Externo\")]):_c('span',{staticClass:\"text-success\"},[_vm._v(\"Rede interna\")])]}},{key:\"cell(actions)\",fn:function(ref){\nvar item = ref.item;\nreturn [(!item.typeMaster)?_c('t-button',{attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.openDialogChangePassword(item.userId,item.name, item.enableAccessCode)}}},[_c('b-icon-lock'),_vm._v(\" Trocar senha \")],1):_vm._e(),_c('t-list-actions-default',{attrs:{\"form-path\":_vm.currentPage.path,\"disable-delete\":item.typeMaster,\"id\":item.userNumber,\"userAuth\":_vm.userAuth}})]}}],null,false,4270858080)}):_c('t-msg',{attrs:{\"warning\":\"\"}},[_vm._v(_vm._s(_vm.t('no-record-found')))])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"title\":_vm.title,\"status\":_vm.status,\"ok-text\":_vm.okText,\"id\":_vm.id,\"command\":_vm.command},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[_c('b-card-title',[_vm._v(_vm._s(_vm.name))]),(_vm.enableAccessCode)?_c('t-input',{attrs:{\"only-numbers\":\"\",\"min-length\":\"6\",\"max-length\":\"6\",\"add-error\":_vm.error.newPassword,\"label\":\"Novo PIN\",\"required\":\"\"},model:{value:(_vm.form.newPassword),callback:function ($$v) {_vm.$set(_vm.form, \"newPassword\", $$v)},expression:\"form.newPassword\"}}):_c('t-input',{attrs:{\"password-security\":\"\",\"add-error\":_vm.error.newPassword,\"label\":\"Nova senha\",\"required\":\"\"},model:{value:(_vm.form.newPassword),callback:function ($$v) {_vm.$set(_vm.form, \"newPassword\", $$v)},expression:\"form.newPassword\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :status=\"status\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\"\n                 :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n    <b-card-title>{{ name }}</b-card-title>\n\n    <t-input v-if=\"enableAccessCode\" v-model=\"form.newPassword\" only-numbers min-length=\"6\" max-length=\"6\" :add-error=\"error.newPassword\" label=\"Novo PIN\" required/>\n\n    <t-input v-else v-model=\"form.newPassword\" password-security :add-error=\"error.newPassword\" label=\"Nova senha\" required/>\n\n\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"UserChangePasswordDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-user-change-password\",\n      title: \"Alteração de Senha\",\n      okText: \"Trocar Senha\",\n      form: {\n        userId: 0,\n        newPassword: \"\",\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        newPassword: \"\",\n      },\n    }\n  },\n  props: {\n    name: {\n      type: String,\n      required: true,\n    },\n    userId: {\n      type: Number,\n      required: true,\n    },\n    enableAccessCode: {\n      type: Boolean,\n      required: true,\n    },\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n      this.form.userId = this.userId\n\n      await this.putDialog(\"admin/user/changePassword\", () => {\n        this.successInsert()\n      })\n\n    }\n  },\n  watch: {\n    noOptionAdd() {\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserChangePasswordDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserChangePasswordDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserChangePasswordDialog.vue?vue&type=template&id=736976e6&\"\nimport script from \"./UserChangePasswordDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./UserChangePasswordDialog.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","<template>\n\n  <t-page>\n\n    <UserChangePasswordDialog :user-id=\"modalUserId\" :enable-access-code=\"modalEnableAccessCode\" :name=\"modalNameUser\"\n                              :no-option-add=\"noOptionAdd\" @onSubmit=\"onChangePasswordDialog\"/>\n\n    <t-page-list :title=\"t('list-of') + currentPage.pageTitle\" :user-auth=\"userAuth\"\n                 :total-pages=\"request.totalPages\" :total-elements=\"request.totalElements\" @getPage=\"getPage\">\n\n\n\n      <template #search>\n        <t-button v-if=\"userAuth.validation.validationCreate\" :text=\"t('insert') + ' ' + currentPage.singularTitle\"\n                  :to=\"currentPage.name + '-form-new'\"\n                  primary/>\n        <t-content-header-search-default @searchChange=\"searchDefault\"\n                                         @onClearSearch=\"clearSearch()\"\n                                         :filtered-default=\"filteredDefault\" :filtered-advanced=\"filteredAdvanced\"\n                                         :search-form=\"form\">\n\n          <t-input-search v-model=\"form.profileId\" :options=\"profileAllOptions\" label=\"Perfil de Acesso\" select/>\n\n          <t-input-search v-model=\"form.groupUserId\" :options=\"groupUserOptions\" label=\"Grupo\" select/>\n\n          <t-input-search v-model=\"form.enableExternalAccess\" boolean text-true=\"Liberados\" text-false=\"Restritos\" label=\"Acesso Externo\"></t-input-search>\n\n        </t-content-header-search-default>\n\n      </template>\n\n      <b-table hover :items=\"request.content\" v-if=\"checkViewListTableDefault()\" :busy=\"!pageListIsLoaded\"\n               :fields=\"fields\">\n\n        <template #cell(first)=\"{item}\">\n\n          <t-list-link-primary :label=\"item.name\" :userAuth=\"userAuth\" :id=\"item.userNumber\"\n                               :path=\"currentPage.path\"/>\n          <i class=\"fa fa-fw text-warning ml-2\" v-if=\"item.typeMaster\" v-b-tooltip.hover title=\"Usuário Master\"></i>\n\n        </template>\n\n        <template #cell(status)=\"{item}\">\n          {{ item.status | statusLabel }}\n        </template>\n\n        <template #cell(lastAccessDate)=\"{item}\">\n          {{ item.lastAccessDate | datetime }}\n        </template>\n\n        <template #cell(groupsUser)=\"{item}\">\n\n          <span v-if=\"item.groupsUser !== '' && item.groupsUser\">{{ item.groupsUser }}</span>\n          <small v-else>Nenhum grupo vinculado</small>\n\n        </template>\n\n\n        <template #cell(enableExternalAccess)=\"{item}\">\n\n          <span v-if=\"item.enableExternalAccess\" class=\"text-danger\" v-b-tooltip.hover\n                title=\"Usuário sem restrição de acesso via IP com maior risco de segurança\">Liberado Externo</span>\n          <span v-else class=\"text-success\">Rede interna</span>\n        </template>\n\n\n        <template #cell(actions)=\"{item}\">\n\n          <t-button v-if=\"!item.typeMaster\" small\n                    @click=\"openDialogChangePassword(item.userId,item.name, item.enableAccessCode)\">\n            <b-icon-lock></b-icon-lock>\n            Trocar senha\n          </t-button>\n\n          <t-list-actions-default :form-path=\"currentPage.path\" :disable-delete=\"item.typeMaster\" :id=\"item.userNumber\"\n                                  :userAuth=\"userAuth\"/>\n        </template>\n\n      </b-table>\n\n      <t-msg v-else warning>{{ t('no-record-found') }}</t-msg>\n\n    </t-page-list>\n\n  </t-page>\n\n</template>\n<script>\nimport UserChangePasswordDialog from \"@/views/modules/admin/UserChangePasswordDialog\"\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageListMixin from \"@/mixins/page/pageListMixin\"\nimport ui from \"@/assets/scripts/ui\";\nimport http from \"@/services/config/http-common\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageListMixin],\n  name: 'User',\n  components: {UserChangePasswordDialog},\n  data() {\n    return {\n      path: \"\", //Utilizar somente quando fora do padrão\n      form: {\n        groupUserId: 0,\n        enableExternalAccess: null,\n      },\n      fields: [\n        {key: \"first\", label: \"Nome\"},\n        {key: \"enableExternalAccess\", label: \"Acesso\"},\n        {key: \"profile\", label: \"Perfil de Acesso\"},\n        {key: \"groupsUser\", label: \"Grupo\"},\n        {key: \"lastAccessDate\", label: \"Último Login\"},\n        {key: \"actions\", label: \"\"},\n      ],\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      profileAllOptions: [],\n      groupUserOptions:[],\n      noOptionAdd: \"\",\n      modalUserId: 0,\n      modalEnableAccessCode: false,\n      modalNameUser: \"\",\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  methods: {\n\n    mountedPrepare() {\n\n\n    },\n    async mountedContinued() {\n\n\n      await http.list(\"admin/user/selectRelationList\").then((response) => {\n\n        this.profileAllOptions = response.profileAllOptions\n        this.groupUserOptions = response.groupUserOptions\n\n      }).catch(error => this.responseError(error))\n\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    openDialogChangePassword(userId, name, enableAccessCode) {\n      this.modalUserId = userId\n      this.modalNameUser = name\n      this.modalEnableAccessCode = enableAccessCode\n      this.openDialogForm('modal-user-change-password')\n    },\n    onChangePasswordDialog() {\n      ui.toast(this, \"Senha alterada!\", \"Senha do usuário alterada com sucesso\")\n    },\n    //--------------------------------------------------------------------------------------\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedList()\n\n    await this.mountedContinued()\n\n  },\n}\n</script>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./User.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./User.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./User.vue?vue&type=template&id=7da3be42&\"\nimport script from \"./User.vue?vue&type=script&lang=js&\"\nexport * from \"./User.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":""}