{"version":3,"sources":["webpack:///./src/components/modals/edit-password/index.vue","webpack:///./src/components/modals/edit-password/scripts.js","webpack:///./src/components/modals/edit-password/scripts.js?91c8","webpack:///./src/components/modals/edit-password/index.vue?ade3","webpack:///./src/components/modals/edit-profile/index.vue","webpack:///./src/components/modals/edit-profile/scripts.js","webpack:///./src/components/modals/edit-profile/scripts.js?b530","webpack:///./src/components/modals/edit-profile/index.vue?b5e8","webpack:///./src/components/modals/edit-profile/index.vue?f09e","webpack:///./src/components/modals/extract-and-notes/index.vue?306f","webpack:///./src/components/modals/edit-password/index.vue?732f","webpack:///./src/components/modals/extract-and-notes/index.vue","webpack:///./src/components/modals/extract-and-notes/scripts.js","webpack:///./src/components/modals/extract-and-notes/scripts.js?e909","webpack:///./src/components/modals/extract-and-notes/index.vue?7e76"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","onClick","editPassword","disable","isValidPassword","text","isLoading","on","value","$emit","model","propValue","callback","$$v","expression","managerMessageOperation","notificationMessage","actionButtons","title","type","description","slot","_e","staticClass","access","oldPassword","$set","newPassword","class","passwordCorrespond","passwordNotCorrespond","confirmNewPassword","staticRenderFns","props","required","Boolean","components","MessageNotification","ModalStructure","InputField","data","name","action","setToDefault","computed","mapGetters","get","set","newValue","console","log","methods","mapActions","params","getterAccount","userName","email","password","currentPassword","idUserType","idClient","client","idUserLogged","idUser","actionEditPatchUserData","then","setTypeOfMessageNotification","catch","error","response","updatedResponse","Object","prototype","hasOwnProperty","call","status","errorMessage","setTimeout","component","editProfile","isMobile","Number","isInteger","containerSelected","profileImageUpload","_l","menuItens","item","index","key","id","$event","_v","_s","userInfo","isValidCpf","cpf","companyName","phoneFixed","phoneCell","revenuesAddress","isValidEmail","ImageUpload","AddressFromCep","mounted","fillFieldsAndSelectStep","isDesktop","isLoadingDataTable","periodList","selectedPeriod","onSelectPeriod","clientType","CLIENT_PRE","staticStyle","showAddBalanceModal","limit","CLIENT_POS_CTRL","formatMoneyToReal","filteredAllExtracts","headersList","getterAllExtracts","totalResults","sizePerPage","getAllExtract","page","isClientPos","textForUserPosPre","availableValueForUser","isLoadingCredit","SelectMenu","CustomDatePicker","CustomTable","NotesCarousel","Loading","ClientType","datePickerValues","alignHeader","alignData","allNotes","date","selectedNotesOnCarousel","showNotesMobile","result","credit","amountDue","filteredList","keys","length","results","map","reference","getClientCredit","actionGetClientCredit","sendToast","values","days","actionGetAllExtracts","onClickMainButton","document","getElementsByClassName","click"],"mappings":"gHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,kBAAkB,CAACG,MAAM,CAAC,GAAK,eAAe,SAAW,GAAG,MAAQ,eAAe,iBAAiB,CAAEC,QAAS,kBAAMN,EAAIO,gBAAgBC,SAAUR,EAAIS,gBAAiBC,KAAM,qBAAsB,aAAaV,EAAIW,WAAWC,GAAG,CAAC,MAAQ,SAACC,GAAD,OAAWb,EAAIc,MAAM,QAASD,KAAQE,MAAM,CAACF,MAAOb,EAAIgB,UAAWC,SAAS,SAAUC,GAAMlB,EAAIgB,UAAUE,GAAKC,WAAW,cAAc,CAAEnB,EAAIoB,wBAAyBlB,EAAG,uBAAuB,CAACG,MAAM,CAAC,KAAO,eAAe,iBAAiBL,EAAIqB,oBAAoBC,cAAc,MAAQtB,EAAIqB,oBAAoBE,MAAM,KAAOvB,EAAIqB,oBAAoBG,KAAK,YAAcxB,EAAIqB,oBAAoBI,aAAaC,KAAK,eAAeX,MAAM,CAACF,MAAOb,EAAIoB,wBAAyBH,SAAS,SAAUC,GAAMlB,EAAIoB,wBAAwBF,GAAKC,WAAW,6BAA6BnB,EAAI2B,KAAKzB,EAAG,UAAU,CAAC0B,YAAY,+BAA+B,CAAC1B,EAAG,cAAc,CAACG,MAAM,CAAC,KAAO,WAAW,MAAQ,eAAeU,MAAM,CAACF,MAAOb,EAAI6B,OAAOC,YAAab,SAAS,SAAUC,GAAMlB,EAAI+B,KA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,iCACJC,eAAW,CACZ,uBACA,2BAHG,IAKL0D,eALO,SAKSvB,GACd3F,KAAKiH,eAAiBtB,EAEtB3F,KAAK+H,iBAEP4B,gBAVO,WAUY,WACjB3J,KAAKoI,iBAAkB,EAEvBpI,KAAK4J,sBAAsB5J,KAAK0D,cAAcO,OAAOD,UAClDK,MAAK,WACJ,EAAK+D,iBAAkB,KAExB7D,OAAM,WACL,EAAK6D,iBAAkB,EAEvB,EAAKyB,UAAU,CACbpJ,KAAM,mFACNc,KAAM,eAIdwG,cA1BO,SA0BQ+B,GAAQ,WACfrG,EAAS,CACbO,SAAUhE,KAAK0D,cAAcO,OAAOD,SACpC+F,KAAM/J,KAAKiH,eAAerG,MAC1BoH,KAAO8B,GAAUA,EAAO9B,KAAQ8B,EAAO9B,KAAO,EAC9CT,MAAOvH,KAAK8H,aAGd9H,KAAK+G,oBAAqB,EAE1B/G,KAAKgK,qBAAqBvG,GACvBY,MAAK,WACJ,EAAK0C,oBAAqB,KAE3BxC,OAAM,WACL,EAAKwC,oBAAqB,EAE1B,EAAK8C,UAAU,CACbpJ,KAAM,qEACNc,KAAM,eAId0I,kBAjDO,WAkDLjK,KAAK+H,iBAePT,oBAjEO,WAkELtH,KAAKa,MAAM,SAAS,GAEpBoE,YAAW,WACTiF,SAASC,uBAAuB,kBAAkB,GAAGC,UACpD,SCnOuS,I,wBCQ5SlF,EAAY,eACd,EACApF,EACAsC,GACA,EACA,KACA,KACA,MAIa,OAAA8C,E","file":"js/app~0a0283ae-legacy.97576197.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('modal-structure',{attrs:{\"id\":\"edit-profile\",\"internal\":\"\",\"title\":\"Editar senha\",\"primary-button\":{ onClick: () => _vm.editPassword(), disable: !_vm.isValidPassword, text: 'Salvar alterações' },\"is-loading\":_vm.isLoading},on:{\"input\":(value) => _vm.$emit('input', value)},model:{value:(_vm.propValue),callback:function ($$v) {_vm.propValue=$$v},expression:\"propValue\"}},[(_vm.managerMessageOperation)?_c('message-notification',{attrs:{\"slot\":\"notification\",\"action-buttons\":_vm.notificationMessage.actionButtons,\"title\":_vm.notificationMessage.title,\"type\":_vm.notificationMessage.type,\"description\":_vm.notificationMessage.description},slot:\"notification\",model:{value:(_vm.managerMessageOperation),callback:function ($$v) {_vm.managerMessageOperation=$$v},expression:\"managerMessageOperation\"}}):_vm._e(),_c('section',{staticClass:\"container-user-informations\"},[_c('input-field',{attrs:{\"type\":\"password\",\"title\":\"Senha atual\"},model:{value:(_vm.access.oldPassword),callback:function ($$v) {_vm.$set(_vm.access, \"oldPassword\", $$v)},expression:\"access.oldPassword\"}}),_c('input-field',{attrs:{\"type\":\"password\",\"password-verify\":\"\",\"title\":\"Nova senha\"},model:{value:(_vm.access.newPassword),callback:function ($$v) {_vm.$set(_vm.access, \"newPassword\", $$v)},expression:\"access.newPassword\"}}),_c('input-field',{class:{ 'valid': _vm.passwordCorrespond, 'invalid': _vm.passwordNotCorrespond },attrs:{\"type\":\"password\",\"message\":_vm.passwordNotCorrespond ? 'As senhas não correspondem' : null,\"title\":\"Confirmar nova senha\"},model:{value:(_vm.access.confirmNewPassword),callback:function ($$v) {_vm.$set(_vm.access, \"confirmNewPassword\", $$v)},expression:\"access.confirmNewPassword\"}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapActions, mapGetters } from 'vuex'\nimport MessageNotification from '../../message-notification/index.vue'\nimport ModalStructure from '../modal-structure/index.vue'\nimport InputField from '../../form-components/input-field/index.vue'\n\nexport default {\n props: {\n value: {\n required: true,\n type: Boolean\n }\n },\n components: {\n MessageNotification,\n ModalStructure,\n InputField\n },\n data () {\n return {\n access: {\n oldPassword: '',\n newPassword: '',\n confirmNewPassword: ''\n },\n notificationMessage: {\n actionButtons: [\n { name: 'Finalizar', type: 'primary-purple', action: () => this.setToDefault() }\n ],\n type: 'info',\n title: 'Fique atento as notificações!',\n description: 'As notificações sobre a operação serão exibidas no canto inferior direito.'\n },\n managerMessageOperation: false,\n isLoading: false\n }\n },\n computed: {\n ...mapGetters([\n 'getterAccount'\n ]),\n propValue: {\n get () {\n return this.value\n },\n set (newValue) {\n // eslint-disable-next-line\n console.log('newValue', newValue)\n }\n },\n isValidPassword () {\n return (this.access.oldPassword !== '' && this.access.newPassword !== '' && this.access.confirmNewPassword !== '') && this.access.newPassword === this.access.confirmNewPassword\n },\n passwordCorrespond () {\n return (this.access.newPassword !== '' && this.access.confirmNewPassword !== '') && (this.access.newPassword === this.access.confirmNewPassword)\n },\n passwordNotCorrespond () {\n return !this.passwordCorrespond && this.access.confirmNewPassword !== ''\n }\n },\n methods: {\n ...mapActions([\n 'actionEditPatchUserData'\n ]),\n editPassword () {\n const params = {\n name: this.getterAccount.userName,\n email: this.getterAccount.email,\n password: this.access.newPassword,\n currentPassword: this.access.oldPassword,\n idUserType: this.getterAccount.idUserType,\n idClient: this.getterAccount.client.idClient,\n idUserLogged: this.getterAccount.idUser\n }\n\n // {\n // \"name\":\"Pedro Henrique\",\n // \"email\": \"pedro.pires@cedrotech.com\",\n // \"idUserType\":4,\n // \"idUser\":\"71ce1ef5-fd9b-4299-bf13-4e6b9ac5e7f2\",\n // \"idClient\":\"0802921f-74f6-42cb-b745-992e7794ac37\",\n // \"idUserLogged\":\"71ce1ef5-fd9b-4299-bf13-4e6b9ac5e7f2\"\n // }\n\n this.isLoading = true\n\n this.actionEditPatchUserData(params)\n .then(() => {\n this.setTypeOfMessageNotification('success')\n })\n .catch((error) => {\n this.setTypeOfMessageNotification('error', error)\n })\n },\n setToDefault () {\n this.access = {\n oldPassword: '',\n newPassword: '',\n confirmNewPassword: ''\n }\n\n this.managerMessageOperation = this.isLoading = false\n\n this.$emit('input', false)\n },\n setTypeOfMessageNotification (type, response) {\n if (type === 'success') {\n this.notificationMessage.type = 'success'\n this.notificationMessage.title = 'Senha alterada com sucesso!'\n this.notificationMessage.description = 'Você continuará logado e ainda pode realizar suas operações, no próximo login utilize a nova senha.'\n }\n\n if (type === 'error') {\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Ops, ocorreu um erro ao alterar a senha!'\n this.notificationMessage.description = 'Ocorreu um erro inesperado ao alterar a senha, tente novamente mais tarde.'\n\n if (response) {\n const updatedResponse = Object.prototype.hasOwnProperty.call(response, 'response') ? response.response : response\n\n if ((updatedResponse.status && (updatedResponse.status === 400 || updatedResponse.status === 401))) {\n this.notificationMessage.type = 'error'\n if (response.data.errorMessage) {\n this.notificationMessage.description = response.data.errorMessage\n }\n }\n }\n }\n\n setTimeout(() => {\n this.managerMessageOperation = true\n this.isLoading = !this.managerMessageOperation\n })\n }\n }\n}\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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a523455a&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=a523455a&prod&lang=scss\"\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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('modal-structure',{attrs:{\"id\":\"edit-profile\",\"internal\":\"\",\"title\":\"Editar perfil\",\"primary-button\":{ onClick: () => _vm.editProfile(), disable: _vm.isMobile && !Number.isInteger(_vm.containerSelected), text: 'Salvar alterações' }},on:{\"input\":(value) => _vm.$emit('input', value)},model:{value:(_vm.propValue),callback:function ($$v) {_vm.propValue=$$v},expression:\"propValue\"}},[_c('image-upload',{staticClass:\"profile-image-upload\",model:{value:(_vm.profileImageUpload),callback:function ($$v) {_vm.profileImageUpload=$$v},expression:\"profileImageUpload\"}}),_c('section',{staticClass:\"container-user-informations\"},[_c('nav',{staticClass:\"menu-choose-edit\"},[_c('ul',_vm._l((_vm.menuItens),function(item,index){return _c('li',{key:index,class:{ 'active': _vm.containerSelected === item.id }},[_c('button',{attrs:{\"title\":item.title},on:{\"click\":function($event){_vm.containerSelected = item.id}}},[_c('span',[_vm._v(_vm._s(item.title))])])])}),0)]),_c('transition',{attrs:{\"name\":\"fade\"}},[(Number.isInteger(_vm.containerSelected))?_c('section',{staticClass:\"wrapper-list-options\"},[(_vm.isMobile)?_c('header',[_c('button',{staticClass:\"btn-back\",on:{\"click\":function($event){_vm.containerSelected = null}}},[_c('img',{attrs:{\"src\":\"img/icon-back.svg\",\"alt\":\"icon-back\"}})]),(_vm.menuItens[_vm.containerSelected])?_c('h3',[_vm._v(\"\\n \"+_vm._s(_vm.menuItens[_vm.containerSelected].title)+\"\\n \")]):_vm._e()]):_vm._e(),_c('transition-group',{staticClass:\"container-list-options\",attrs:{\"name\":\"fade\",\"tag\":\"ul\"}},[(_vm.containerSelected === 0)?_c('li',{key:\"0\",staticClass:\"item-list-options user-info-fields\",class:{ 'active': _vm.containerSelected === 0 }},[_c('div',{staticClass:\"container-fields-options\"},[_c('input-field',{attrs:{\"title\":\"Nome completo\"},model:{value:(_vm.userInfo.userName),callback:function ($$v) {_vm.$set(_vm.userInfo, \"userName\", $$v)},expression:\"userInfo.userName\"}}),_c('input-field',{attrs:{\"type\":\"cpf\",\"title\":\"Seu CPF\"},on:{\"valid\":(value) => _vm.userInfo.isValidCpf = value},model:{value:(_vm.userInfo.cpf),callback:function ($$v) {_vm.$set(_vm.userInfo, \"cpf\", $$v)},expression:\"userInfo.cpf\"}}),_c('input-field',{attrs:{\"title\":\"Nome da empresa\",\"maxlength\":\"80\"},model:{value:(_vm.userInfo.companyName),callback:function ($$v) {_vm.$set(_vm.userInfo, \"companyName\", $$v)},expression:\"userInfo.companyName\"}}),_c('input-field',{attrs:{\"mask\":\"(##) #### - ####\",\"title\":\"Telefone fixo\"},model:{value:(_vm.userInfo.phoneFixed),callback:function ($$v) {_vm.$set(_vm.userInfo, \"phoneFixed\", $$v)},expression:\"userInfo.phoneFixed\"}}),_c('input-field',{attrs:{\"mask\":\"(##) ##### - ####\",\"title\":\"Telefone celular\"},model:{value:(_vm.userInfo.phoneCell),callback:function ($$v) {_vm.$set(_vm.userInfo, \"phoneCell\", $$v)},expression:\"userInfo.phoneCell\"}})],1),_c('address-from-cep',{model:{value:(_vm.revenuesAddress),callback:function ($$v) {_vm.revenuesAddress=$$v},expression:\"revenuesAddress\"}})],1):_vm._e(),(_vm.containerSelected === 1)?_c('li',{key:\"1\",staticClass:\"item-list-options access-info-fields\",class:{ 'active': _vm.containerSelected === 1 }},[_c('input-field',{attrs:{\"type\":\"email\",\"title\":\"Seu e-mail\"},on:{\"valid\":(value) => _vm.access.isValidEmail = value},model:{value:(_vm.access.email),callback:function ($$v) {_vm.$set(_vm.access, \"email\", $$v)},expression:\"access.email\"}}),_c('input-field',{attrs:{\"type\":\"password\",\"title\":\"Insira sua senha\"},model:{value:(_vm.access.password),callback:function ($$v) {_vm.$set(_vm.access, \"password\", $$v)},expression:\"access.password\"}})],1):_vm._e()])],1):_vm._e()])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters } from 'vuex'\nimport ModalStructure from '../modal-structure/index.vue'\nimport ImageUpload from '../../image-upload/index.vue'\nimport AddressFromCep from '../../address-from-cep/index.vue'\nimport InputField from '../../form-components/input-field/index.vue'\n\nexport default {\n props: {\n value: {\n required: true,\n type: Boolean\n }\n },\n components: {\n ModalStructure,\n ImageUpload,\n AddressFromCep,\n InputField\n },\n data () {\n return {\n profileImageUpload: {},\n containerSelected: null,\n userInfo: {\n userName: '',\n cpf: '',\n isValidCpf: false,\n companyName: '',\n phoneFixed: '',\n phoneCell: ''\n },\n access: {\n email: '',\n isValidEmail: false,\n password: ''\n },\n menuItens: [\n { id: 0, title: 'Dados pessoais e faturamento' },\n { id: 1, title: 'Informações de acesso' }\n ],\n revenuesAddress: {}\n }\n },\n computed: {\n ...mapGetters([\n 'getterAccount'\n ]),\n propValue: {\n get () {\n return this.value\n },\n set (newValue) {\n // eslint-disable-next-line\n console.log('newValue', newValue)\n }\n }\n },\n mounted () {\n this.fillFieldsAndSelectStep()\n },\n methods: {\n editProfile () {\n // eslint-disable-next-line\n console.log('Informações para editar perfil')\n },\n fillFieldsAndSelectStep () {\n if (this.isDesktop) {\n this.containerSelected = 0\n }\n\n this.userInfo.userName = this.getterAccount.userName\n this.access.email = this.getterAccount.email\n }\n }\n}\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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=461f0e63&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=461f0e63&prod&lang=scss\"\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","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=461f0e63&prod&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=48e29df1&prod&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=a523455a&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('modal-structure',{attrs:{\"id\":\"extract-and-notes\",\"internal\":\"\",\"title\":\"Extrato\",\"is-loading\":_vm.isLoadingDataTable},on:{\"input\":(value) => _vm.$emit('input', value)},model:{value:(_vm.propValue),callback:function ($$v) {_vm.propValue=$$v},expression:\"propValue\"}},[_c('section',{staticClass:\"container-header-fields\"},[_c('select-menu',{attrs:{\"list\":_vm.periodList,\"title\":\"Período\",\"item-text\":\"name\",\"set-selected-item\":_vm.selectedPeriod},on:{\"actionItem\":(item) => _vm.onSelectPeriod(item)}}),(_vm.isDesktop && (_vm.getterAccount.client.clientType === _vm.clientType.CLIENT_PRE))?_c('button',{staticClass:\"generic-button primary-green medium\",staticStyle:{\"color\":\"black\"},on:{\"click\":function($event){return _vm.showAddBalanceModal()}}},[_vm._v(\"\\n Adicionar saldo\\n \")]):_vm._e(),(_vm.getterAccount.client.limit && (_vm.getterAccount.client.clientType === _vm.clientType.CLIENT_POS_CTRL))?_c('div',{staticClass:\"available-limit\"},[_c('span',[_vm._v(\"Limite: \")]),_c('strong',[_vm._v(_vm._s(_vm.formatMoneyToReal(_vm.getterAccount.client.limit)))])]):_vm._e()],1),_c('custom-table',{attrs:{\"id\":\"extract-datatable\",\"data\":_vm.filteredAllExtracts,\"headers\":_vm.headersList,\"is-loading\":_vm.isLoadingDataTable,\"qtde-rows-found\":_vm.getterAllExtracts && _vm.getterAllExtracts.totalResults ? _vm.getterAllExtracts.totalResults : 0,\"size-per-page\":_vm.sizePerPage,\"set-selected-page\":(value) => _vm.getAllExtract({ page: value })}}),_c('section',{staticClass:\"container-download-note\"},[_c('div',{staticClass:\"container-balance\",class:{ isClientPos: _vm.getterAccount.client.clientType !== _vm.clientType.CLIENT_PRE }},[_c('span',[_vm._v(_vm._s(_vm.textForUserPosPre))]),(_vm.availableValueForUser && !_vm.isLoadingCredit)?_c('span',[_vm._v(_vm._s(_vm.availableValueForUser))]):_c('loading',{attrs:{\"light\":\"\"}})],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters, mapActions } from 'vuex'\nimport ClientType from '@/helper/ClientType'\nimport ModalStructure from '../modal-structure/index.vue'\nimport SelectMenu from '../../select-menu/index.vue'\nimport CustomDatePicker from '../../custom-date-picker/index.vue'\nimport CustomTable from '../../custom-table/index.vue'\nimport NotesCarousel from '../../notes-carousel/index.vue'\nimport Loading from '../../loading/index.vue'\n\nexport default {\n components: {\n ModalStructure,\n SelectMenu,\n CustomDatePicker,\n CustomTable,\n NotesCarousel,\n Loading\n },\n props: {\n value: {\n required: true,\n type: Boolean\n }\n },\n data () {\n return {\n clientType: ClientType,\n sizePerPage: 20,\n periodList: [\n { name: 'Últimos 90 dias', value: 90 },\n { name: 'Últimos 60 dias', value: 60 },\n { name: 'Últimos 30 dias', value: 30 }\n ],\n selectedPeriod: { name: 'Últimos 30 dias', value: 30 },\n datePickerValues: {},\n headersList: [\n {\n text: 'Data', value: 'createdAt', alignHeader: 'center', alignData: 'center'\n },\n {\n text: 'Usuário', value: 'userName', alignHeader: 'left', alignData: 'left'\n },\n {\n text: 'Descrição', value: 'observation', alignHeader: 'left', alignData: 'left'\n },\n {\n text: 'Valor', value: 'value', alignHeader: 'right', alignData: 'right'\n }\n ],\n isLoadingDataTable: false,\n allNotes: [\n { date: '21/09/2018' },\n { date: '22/09/2018' },\n { date: '23/09/2018' },\n { date: '24/09/2018' },\n { date: '25/09/2018' },\n { date: '26/09/2018' },\n { date: '27/09/2018' },\n { date: '28/09/2018' },\n { date: '29/09/2018' },\n { date: '30/09/2018' },\n { date: '01/10/2018' },\n { date: '02/10/2018' },\n { date: '03/10/2018' },\n { date: '04/10/2018' },\n { date: '05/10/2018' },\n { date: '06/10/2018' }\n ],\n selectedNotesOnCarousel: [],\n showNotesMobile: false,\n isLoadingCredit: false\n }\n },\n computed: {\n ...mapGetters([\n 'getterAccount',\n 'getterAllExtracts'\n ]),\n propValue: {\n get () {\n return this.value\n },\n set (newValue) {\n // eslint-disable-next-line\n console.log('newValue', newValue)\n }\n },\n availableValueForUser () {\n let result = null\n\n if (Object.prototype.hasOwnProperty.call(this.getterAccount.client, 'credit') || Object.prototype.hasOwnProperty.call(this.getterAccount.client, 'amountDue')) {\n result = this.getterAccount.client.clientType === ClientType.CLIENT_PRE ? this.formatMoneyToReal(this.getterAccount.client.credit) : this.formatMoneyToReal(this.getterAccount.client.amountDue)\n }\n\n return result\n },\n textForUserPosPre () {\n return this.getterAccount.client.clientType === ClientType.CLIENT_PRE ? 'Seu saldo é:' : 'Fatura atual:'\n },\n // checkDisableButton () {\n // let result = false\n //\n // if (this.isDesktop || (this.isMobile && this.showNotesMobile)) {\n // result = this.selectedNotesOnCarousel && this.selectedNotesOnCarousel.length === 0\n // }\n //\n // return result\n // },\n // returnButtonText () {\n // let result = ''\n //\n // if (this.isDesktop) {\n // result = 'Consultar'\n // }\n //\n // if (this.isMobile) {\n // if (this.showNotesMobile && this.selectedNotesOnCarousel.length >= 0) {\n // if (this.selectedNotesOnCarousel.length > 1) {\n // result = 'Baixar notas fiscais'\n // } else {\n // result = 'Baixar nota fiscal'\n // }\n // } else {\n // result = 'Minhas notas'\n // }\n // }\n //\n // return result\n // },\n filteredAllExtracts () {\n let filteredList = []\n\n if (this.getterAllExtracts && Object.keys(this.getterAllExtracts).length > 0 && this.getterAllExtracts.results) {\n filteredList = this.getterAllExtracts.results.map((item) => {\n const { data } = item\n\n delete item.data\n\n if (item.reference === 'CREDIT') {\n item.value = `+ ${this.formatMoneyToReal(item.value)}`\n } else if (item.reference === 'DEBIT') {\n item.value = `- ${this.formatMoneyToReal(item.value)}`\n }\n\n return {\n ...item,\n ...data\n }\n })\n }\n\n return filteredList\n }\n },\n mounted () {\n this.getClientCredit()\n },\n methods: {\n ...mapActions([\n 'actionGetAllExtracts',\n 'actionGetClientCredit'\n ]),\n onSelectPeriod (item) {\n this.selectedPeriod = item\n\n this.getAllExtract()\n },\n getClientCredit () {\n this.isLoadingCredit = true\n\n this.actionGetClientCredit(this.getterAccount.client.idClient)\n .then(() => {\n this.isLoadingCredit = false\n })\n .catch(() => {\n this.isLoadingCredit = false\n\n this.sendToast({\n text: 'Ocorreu um erro ao buscar as informações do usuário, tente novamente mais tarde!',\n type: 'danger'\n })\n })\n },\n getAllExtract (values) {\n const params = {\n idClient: this.getterAccount.client.idClient,\n days: this.selectedPeriod.value,\n page: (values && values.page) ? values.page : 1,\n limit: this.sizePerPage\n }\n\n this.isLoadingDataTable = true\n\n this.actionGetAllExtracts(params)\n .then(() => {\n this.isLoadingDataTable = false\n })\n .catch(() => {\n this.isLoadingDataTable = false\n\n this.sendToast({\n text: 'Ocorreu um erro ao buscar os extratos, tente novamente mais tarde!',\n type: 'danger'\n })\n })\n },\n onClickMainButton () {\n this.getAllExtract()\n },\n // onClickMainButton () {\n // if (this.isDesktop) {\n // // eslint-disable-next-line\n // console.log('Informações para realizar o download de notas')\n // }\n //\n // if (this.isMobile) {\n // // eslint-disable-next-line\n // console.log('Próximo')\n //\n // this.showNotesMobile = true\n // }\n // },\n showAddBalanceModal () {\n this.$emit('input', false)\n\n setTimeout(() => {\n document.getElementsByClassName('btn-more-money')[0].click()\n }, 225)\n }\n }\n}\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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=48e29df1&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=48e29df1&prod&lang=scss\"\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":""}