{"version":3,"sources":["webpack:///./src/views/distributors/Distributor.vue?17b7","webpack:///./src/services/distributors/getDistributor.js","webpack:///./src/views/distributors/Distributor.vue?3a61","webpack:///./src/services/distributors/newDistributor.js","webpack:///./src/services/distributors/updateDistributor.js","webpack:///src/views/distributors/Distributor.vue","webpack:///./src/views/distributors/Distributor.vue?41aa","webpack:///./src/views/distributors/Distributor.vue","webpack:///./src/components/layout/DetailLayout.vue?d7c2","webpack:///src/components/layout/DetailLayout.vue","webpack:///./src/components/layout/DetailLayout.vue?0f28","webpack:///./src/components/layout/DetailLayout.vue"],"names":["async","getDistributor","params","req","url","method","headers","res","axiosInstance","data","render","_vm","this","_h","$createElement","_c","_self","slot","attrs","header","staticClass","ref","form","isCreate","newRules","updateRules","_v","_s","$t","model","value","callback","$$v","$set","expression","tiposDistribuidor","on","onChangeTipoDistribuidor","tiposProvisionamiento","TipoProvisionamiento","_e","validation","NumClientsTotal","_n","NumInvoicesTotal","role","NumVolumenTotal","StoredSpaceTotal","NumCompaniesTotal","NumUsersTotal","NumClients","NumClientsTotalProgres","percentageNumClients","customColorMethod","NumInvoices","NumInvoicesTotalProgres","percentageNumInvoices","NumVolumen","NumVolumenTotalProgres","percentageNumVolumen","StoredSpace","StoredSpaceTotalProgres","percentageStoredSpace","NumCompanies","NumCompaniesTotalProgres","percentageNumCompanies","NumUsers","NumUsersTotalProgres","percentageNumUsers","roles","typeInstallation","tiposAuth","tipoAuth","find","x","key","password","isGeneralLoading","goBack","goToClients","$event","submitForm","staticRenderFns","newDistributor","payload","updateDistributor","isValidNumber","name","components","DetailLayout","showGeneratePassword","searchView","activeName","title","icon","breadcrumb","nav","label","required","message","trigger","TipoDistribuidor","validator","username","email","roleId","repeat_password","computed","id","calcTotalPGNCIF","watch","deep","immediate","handler","created","breadcrumbs","path","mounted","methods","disableRoutes","disableModules","disableLocations","bus","filters","idDistribuidor","Nombre","isNumberValid","max","getDefaultForm","watchFormHandler","certificate","send_alerts","automatic_download","toggleSearchView","isEmailValid","newDistributorHandler","primerUsuario","Email","idRol","Password","idTipoAutenticacion","NumeroCIFEmpresas","NumeroUsuarios","NumeroClientes","EspacioTotal","NumeroFacturas","NumeroVolumen","idTipoDistribuidor","idTipoProvisionamiento","updateDistributorHandler","type","resetForm","downloadData","distributor","setDistributor","updateView","component","_t"],"mappings":"gHAAA,W,oCCAA,4DAGAA,eAAeC,EAAgBC,EAAS,MAa/B,CACL,MAAMC,EAAM,CACVC,IAAK,yCACLC,OAAQ,MACRC,QAAS,CACP,eAAgB,mBAChB,8BAA+B,KAEjCJ,UAEIK,QAAYC,eAAcL,GAChC,OAAOI,EAAIE,Q,gEC3Bf,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACA,EAAG,WAAW,CAACE,KAAK,UAAU,CAACF,EAAG,cAAc,CAACG,MAAM,CAAC,KAAO,OAAO,QAAUP,EAAIQ,WAAW,GAAGJ,EAAG,WAAW,CAACE,KAAK,QAAQ,CAACF,EAAG,MAAM,CAACK,YAAY,gBAAgB,CAACL,EAAG,UAAU,CAACM,IAAI,WAAWD,YAAY,uBAAuBF,MAAM,CAAC,MAAQP,EAAIW,KAAK,MAAQX,EAAIY,SAAWZ,EAAIa,SAAUb,EAAIc,YAAY,aAAe,QAAQ,CAACV,EAAG,MAAM,CAACK,YAAY,sBAAsB,CAACL,EAAG,wBAAwB,CAACM,IAAI,+BAA+BD,YAAY,gIAAgI,CAACL,EAAG,WAAW,CAACE,KAAK,eAAe,CAACF,EAAG,KAAK,CAACK,YAAY,sDAAsD,CAACT,EAAIe,GAAGf,EAAIgB,GAAG,+BAA+BZ,EAAG,WAAW,CAACE,KAAK,WAAW,CAACF,EAAG,MAAM,CAACK,YAAY,WAAW,CAACL,EAAG,MAAM,CAACK,YAAY,aAAa,CAACL,EAAG,QAAQ,CAACK,YAAY,uDAAuD,CAACL,EAAG,wB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gG,kCAKAC,0BACA,OACAJ,kBACArC,QACAc,mBACA9D,uBACAgE,YACAC,SACAC,UACA7B,YACA8B,mBACAlC,WAEAtB,aACAU,gBACAN,gBACAG,eACAM,gBACAG,YAEAxB,kBACAK,qBACAH,qBACAE,oBACAE,qBACAC,iBAEAE,yBACAU,0BACAN,0BACAG,yBACAM,2BACAG,yBAGA8D,uCACAC,cACAC,qBACAC,MAEAC,4BACA,kCAEAC,6BACA,MACA,qDAEA,eAGAvG,IAFAA,4CAKAkD,uBACA,cACA,8BAEA,kCAGAsD,kCACA,+CACA,sCACA,iCACA,MACA,SACAV,sBACAW,eACAX,0BACAY,sBACAC,uBACAC,4BACAC,wCAEAC,8CACAC,uCACAC,yCACAC,wCACAC,0CACAC,wCACAC,8CACAC,uDAEA,gCACAhE,iFAEA,qCACAA,mFAEA,oBACA,eACA,iDAEA,2DACA,iBACA,sCAGA,sEAEA,yCAGAiE,qCACA,+CACA,sCACA,iCACA,MACA,SACAxB,sBACAgB,8CACAC,uCACAC,yCACAC,wCACAC,0CACAC,wCACAC,8CACAC,uDAEA,WAAAxB,sCAAA,IACA,eACA,iDAEA,2DACA,kBACA,mEACA,iCAGA,eACA0B,aACAnD,+DAGA,yCAGAoD,YACA,mCAEAzE,kBACA,mBAAAS,sCAEAiE,+BACA,WACA,IACA,sCACA,SACA5B,kBAEA6B,0BACA,oCAEA,SACA,kBACA,QACA,sCAEA,UAEAC,2BACA,gEAEA,wBAEA,iEACA,uDACA,yDACA,4CACA,0DACA,uDAEA,gFACA,sEACA,wEACA,2DACA,yEACA,sEAEA,uFACA,6EACA,+EACA,kEACA,gFACA,6EAEA,0EACA,sFAEA,sBAEAC,sBACA,iDCn1BmW,I,wBCQ/VC,EAAY,eACd,EACAlJ,EACAwE,GACA,EACA,KACA,WACA,MAIa,aAAA0E,E,2CCnBf,IAAIlJ,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACK,YAAY,gFAAgF,CAACT,EAAIkJ,GAAG,UAAU9I,EAAG,OAAO,CAACK,YAAY,0DAA0D,CAACL,EAAG,MAAM,CAACK,YAAY,kDAAkD,CAACL,EAAG,MAAM,CAACK,YAAY,iBAAiB,CAACT,EAAIkJ,GAAG,SAAS,OAAOlJ,EAAIkJ,GAAG,kBAAkB,IACvc3E,EAAkB,GCcP,GACfK,sBChBoW,I,YCOhWqE,EAAY,eACd,EACAlJ,EACAwE,GACA,EACA,KACA,KACA,MAIa,OAAA0E,E","file":"js/chunk-e26f1780.v.6.0.0.1728293495878.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Distributor.vue?vue&type=style&index=0&id=33f4de66&prod&scoped=true&lang=css\"","import axiosInstance from '@/services/axiosInstance'\r\nimport mock from '@/services/mock/index'\r\n\r\nasync function getDistributor (params = null) {\r\n if (process.env.VUE_APP_ENVIRONMENT === 'tests') {\r\n return new Promise((resolve, reject) => {\r\n const data = mock.getCompanies\r\n const pages = data.data.length\r\n\r\n const clone = JSON.parse(JSON.stringify(data))\r\n console.log(clone.data)\r\n\r\n clone.meta.total = pages\r\n\r\n resolve(clone)\r\n })\r\n } else {\r\n const req = {\r\n url: 'api/distribuidores/getdistribuidorbyid',\r\n method: 'GET',\r\n headers: {\r\n 'Content-type': 'application/json',\r\n 'access-control-allow-origin': '*'\r\n },\r\n params,\r\n }\r\n const res = await axiosInstance(req)\r\n return res.data\r\n }\r\n}\r\n\r\nexport { getDistributor }\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('detail-layout',[_c('template',{slot:\"header\"},[_c('base-header',{attrs:{\"icon\":\"user\",\"content\":_vm.header}})],1),_c('template',{slot:\"main\"},[_c('div',{staticClass:\"form-wrapper\"},[_c('el-form',{ref:\"ruleForm\",staticClass:\"flex flex-row w-full\",attrs:{\"model\":_vm.form,\"rules\":_vm.isCreate ? _vm.newRules: _vm.updateRules,\"autocomplete\":\"off\"}},[_c('div',{staticClass:\"flex-1 hideHScroll\"},[_c('base-collapsible-form',{ref:\"baseCollapsibleConfigGeneral\",staticClass:\"mt-2 bg-white dark:bg-darkblue-900 rounded-lg border-solid border-primary-100 dark:border-darkblue-600 border pr-4 pl-4 mb-2\"},[_c('template',{slot:\"headerRight\"},[_c('h4',{staticClass:\"dark:text-darkblue-200 font-bold mt-4 mb-4 text-sm\"},[_vm._v(_vm._s(\"Datos del distribuidor\"))])]),_c('template',{slot:\"content\"},[_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.name')))],1),_c('el-form-item',{attrs:{\"prop\":\"name\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":\"250\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1)],1)]),_c('div',{staticClass:\"lg:mb-2\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.tipo_distribuidor')))],1),_c('el-form-item',{attrs:{\"prop\":\"TipoDistribuidor\"}},[_c('base-el-select',{staticClass:\"w-full\",attrs:{\"options\":_vm.tiposDistribuidor,\"filterable\":\"\"},on:{\"change\":_vm.onChangeTipoDistribuidor},model:{value:(_vm.form.TipoDistribuidor),callback:function ($$v) {_vm.$set(_vm.form, \"TipoDistribuidor\", $$v)},expression:\"form.TipoDistribuidor\"}})],1)],1),_c('div',{staticClass:\"lg:mb-2\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.tipo_provisionamiento')))],1),_c('el-form-item',{attrs:{\"prop\":\"TipoProvisionamiento\"}},[_c('base-el-select',{staticClass:\"w-full\",attrs:{\"options\":_vm.tiposProvisionamiento,\"filterable\":\"\",\"disabled\":!_vm.isCreate},model:{value:(_vm.form.TipoProvisionamiento),callback:function ($$v) {_vm.$set(_vm.form, \"TipoProvisionamiento\", $$v)},expression:\"form.TipoProvisionamiento\"}})],1)],1)])],2),(!_vm.isCreate || _vm.form.TipoProvisionamiento == 2)?_c('base-collapsible-form',{ref:\"baseCollapsibleLicenciamiento\",staticClass:\"mt-2 bg-white dark:bg-darkblue-900 rounded-lg border-solid border-primary-100 dark:border-darkblue-600 border pr-4 pl-4 mb-2\"},[_c('template',{slot:\"headerRight\"},[_c('h4',{staticClass:\"dark:text-darkblue-200 font-bold mt-4 mb-4 text-sm\"},[_vm._v(_vm._s(\"Datos de licenciamiento\"))])]),_c('template',{slot:\"content\"},[(_vm.form.TipoProvisionamiento == 2)?_c('div',{staticClass:\"lg:mb-0\"},[_c('div',{staticClass:\"flex -mx-2 flex-col lg:flex-row\"},[_c('div',{staticClass:\"px-2 w-full lg:mb-0 mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.num_clients')))],1),_c('el-form-item',{attrs:{\"prop\":\"NumClientsTotal\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":_vm.validation.NumClientsTotal},model:{value:(_vm.form.NumClientsTotal),callback:function ($$v) {_vm.$set(_vm.form, \"NumClientsTotal\", _vm._n($$v))},expression:\"form.NumClientsTotal\"}})],1)],1),_c('div',{staticClass:\"px-2 w-full lg:mb-0 mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.num_invoices')))],1),_c('el-form-item',{attrs:{\"prop\":\"NumInvoicesTotal\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":_vm.validation.NumInvoicesTotal},model:{value:(_vm.form.NumInvoicesTotal),callback:function ($$v) {_vm.$set(_vm.form, \"NumInvoicesTotal\", _vm._n($$v))},expression:\"form.NumInvoicesTotal\"}})],1)],1),(_vm.role === 'SuperAdministrador')?_c('div',{staticClass:\"px-2 w-full lg:mb-0 mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.num_volumen_invoices')))],1),_c('el-form-item',{attrs:{\"prop\":\"NumVolumenTotal\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":_vm.validation.NumVolumenTotal},model:{value:(_vm.form.NumVolumenTotal),callback:function ($$v) {_vm.$set(_vm.form, \"NumVolumenTotal\", _vm._n($$v))},expression:\"form.NumVolumenTotal\"}})],1)],1):_vm._e()])]):_vm._e(),(_vm.form.TipoProvisionamiento == 2)?_c('div',{staticClass:\"lg:mb-0\"},[_c('div',{staticClass:\"flex -mx-2 flex-col lg:flex-row\"},[_c('div',{staticClass:\"px-2 w-full lg:mb-0 mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('distributors.stored_space')))],1),_c('el-form-item',{attrs:{\"prop\":\"StoredSpaceTotal\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":_vm.validation.StoredSpaceTotal},model:{value:(_vm.form.StoredSpaceTotal),callback:function ($$v) {_vm.$set(_vm.form, \"StoredSpaceTotal\", _vm._n($$v))},expression:\"form.StoredSpaceTotal\"}},[_c('template',{slot:\"append\"},[_vm._v(\"MB\")])],2)],1)],1),_c('div',{staticClass:\"px-2 w-full lg:mb-0 mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('clients.num_companies')))],1),_c('el-form-item',{attrs:{\"prop\":\"NumCompaniesTotal\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":_vm.validation.NumCompaniesTotal},model:{value:(_vm.form.NumCompaniesTotal),callback:function ($$v) {_vm.$set(_vm.form, \"NumCompaniesTotal\", _vm._n($$v))},expression:\"form.NumCompaniesTotal\"}})],1)],1),_c('div',{staticClass:\"px-2 w-full lg:mb-0 mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('clients.num_users')))],1),_c('el-form-item',{attrs:{\"prop\":\"NumUsersTotal\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"maxlength\":_vm.validation.NumUsersTotal},model:{value:(_vm.form.NumUsersTotal),callback:function ($$v) {_vm.$set(_vm.form, \"NumUsersTotal\", _vm._n($$v))},expression:\"form.NumUsersTotal\"}})],1)],1)])]):_vm._e(),(!_vm.isCreate)?_c('div',[_c('div',{staticClass:\"mb-4\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('distributors.num_clients')))]),_c('div',{staticClass:\"flex flex-row mt-2\"},[_c('span',{staticClass:\"w-48 text-sm text-secondary-600 dark:text-darkblue-200\"},[_vm._v(_vm._s(_vm.form.NumClients)+\" / \"+_vm._s(_vm.form.NumClientsTotalProgres))]),_c('el-progress',{staticClass:\"w-full dark:text-darkblue-200\",attrs:{\"percentage\":_vm.percentageNumClients,\"color\":_vm.customColorMethod}})],1)]),_c('div',{staticClass:\"mb-4\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('distributors.num_invoices')))]),_c('div',{staticClass:\"flex flex-row mt-2\"},[_c('span',{staticClass:\"w-48 text-sm text-secondary-600 dark:text-darkblue-200\"},[_vm._v(_vm._s(_vm.form.NumInvoices)+\" / \"+_vm._s(_vm.form.NumInvoicesTotalProgres))]),_c('el-progress',{staticClass:\"w-full dark:text-darkblue-200\",attrs:{\"percentage\":_vm.percentageNumInvoices,\"color\":_vm.customColorMethod}})],1)]),(_vm.role === 'SuperAdministrador')?_c('div',{staticClass:\"mb-4\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('distributors.num_volumen_invoices')))]),_c('div',{staticClass:\"flex flex-row mt-2\"},[_c('span',{staticClass:\"w-48 text-sm text-secondary-600 dark:text-darkblue-200\"},[_vm._v(_vm._s(_vm.form.NumVolumen)+\" / \"+_vm._s(_vm.form.NumVolumenTotalProgres))]),_c('el-progress',{staticClass:\"w-full dark:text-darkblue-200\",attrs:{\"percentage\":_vm.percentageNumVolumen,\"color\":_vm.customColorMethod}})],1)]):_vm._e(),_c('div',{staticClass:\"mb-4\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('distributors.stored_space')))]),_c('div',{staticClass:\"flex flex-row mt-2\"},[_c('span',{staticClass:\"w-48 text-sm text-secondary-600 dark:text-darkblue-200\"},[_vm._v(_vm._s(_vm.form.StoredSpace)+\" / \"+_vm._s(_vm.form.StoredSpaceTotalProgres))]),_c('el-progress',{staticClass:\"w-full dark:text-darkblue-200\",attrs:{\"percentage\":_vm.percentageStoredSpace,\"color\":_vm.customColorMethod}})],1)]),_c('div',{staticClass:\"mb-4\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('clients.num_companies')))]),_c('div',{staticClass:\"flex flex-row mt-2\"},[_c('span',{staticClass:\"w-48 text-sm text-secondary-600 dark:text-darkblue-200\"},[_vm._v(_vm._s(_vm.form.NumCompanies)+\" / \"+_vm._s(_vm.form.NumCompaniesTotalProgres))]),_c('el-progress',{staticClass:\"w-full dark:text-darkblue-200\",attrs:{\"percentage\":_vm.percentageNumCompanies,\"color\":_vm.customColorMethod}})],1)]),_c('div',{staticClass:\"mb-4\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('clients.num_users')))]),_c('div',{staticClass:\"flex flex-row mt-2\"},[_c('span',{staticClass:\"w-48 text-sm text-secondary-600 dark:text-darkblue-200\"},[_vm._v(_vm._s(_vm.form.NumUsers)+\" / \"+_vm._s(_vm.form.NumUsersTotalProgres))]),_c('el-progress',{staticClass:\"w-full dark:text-darkblue-200\",attrs:{\"percentage\":_vm.percentageNumUsers,\"color\":_vm.customColorMethod}})],1)])]):_vm._e()])],2):_vm._e(),(_vm.isCreate)?_c('div',[_c('base-collapsible-form',{ref:\"baseCollapsibleConfigUserInitial\",staticClass:\"mt-2 bg-white dark:bg-darkblue-900 rounded-lg border-solid border-primary-100 dark:border-darkblue-600 border pr-4 pl-4 mb-2\"},[_c('template',{slot:\"headerRight\"},[_c('h4',{staticClass:\"dark:text-darkblue-200 font-bold mt-4 mb-4 text-sm\"},[_vm._v(_vm._s(\"Datos de usuario distrubuidor inicial\"))])]),_c('template',{slot:\"content\"},[(_vm.isCreate)?_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[(_vm.isCreate)?_c('base-obligatory-icon'):_vm._e(),_vm._v(_vm._s(_vm.$t('configurations.username')))],1),_c('el-form-item',{attrs:{\"prop\":\"username\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"disabled\":!_vm.isCreate,\"clearable\":\"\",\"maxlength\":\"50\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1)],1)]):_vm._e(),(_vm.isCreate)?_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[(_vm.isCreate)?_c('base-obligatory-icon'):_vm._e(),_vm._v(_vm._s(_vm.$t('configurations.email')))],1),_c('el-form-item',{attrs:{\"prop\":\"email\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"disabled\":!_vm.isCreate,\"clearable\":\"\",\"maxlength\":\"255\"},model:{value:(_vm.form.email),callback:function ($$v) {_vm.$set(_vm.form, \"email\", $$v)},expression:\"form.email\"}})],1)],1)]):_vm._e(),(_vm.isCreate)?_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_c('base-obligatory-icon'),_vm._v(_vm._s(_vm.$t('configurations.rol')))],1),_c('el-form-item',{attrs:{\"prop\":\"roleId\"}},[_c('base-el-select',{staticClass:\"w-full\",attrs:{\"options\":_vm.roles,\"clearable\":\"\"},model:{value:(_vm.form.roleId),callback:function ($$v) {_vm.$set(_vm.form, \"roleId\", $$v)},expression:\"form.roleId\"}})],1)],1)]):_vm._e(),(_vm.isCreate && !(_vm.typeInstallation == 'AAD' || _vm.typeInstallation == 'STANDARD'))?_c('div',{staticClass:\"lg:mb-2\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[(_vm.isCreate)?_c('base-obligatory-icon'):_vm._e(),_vm._v(_vm._s(_vm.$t('configurations.tipo_auth')))],1),_c('el-form-item',{attrs:{\"prop\":\"tipoAuth\"}},[_c('base-el-select',{staticClass:\"w-full\",attrs:{\"options\":_vm.tiposAuth,\"clearable\":\"\",\"disabled\":_vm.typeInstallation == 'AAD' || _vm.typeInstallation == 'STANDARD'},model:{value:(_vm.form.tipoAuth),callback:function ($$v) {_vm.$set(_vm.form, \"tipoAuth\", $$v)},expression:\"form.tipoAuth\"}})],1)],1):_vm._e(),(_vm.isCreate && _vm.typeInstallation !== 'AAD' && _vm.form.tipoAuth !== _vm.tiposAuth.find(function (x) { return x.key === 'AAD'; }).value)?_c('div',{staticClass:\"lg:mb-4\"},[_c('div',{staticClass:\"lg:mb-2\"},[_c('base-password-form-item',{model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}}),_c('base-password-form-item',{attrs:{\"password\":_vm.form.password,\"repeat\":\"\"},model:{value:(_vm.form.repeat_password),callback:function ($$v) {_vm.$set(_vm.form, \"repeat_password\", $$v)},expression:\"form.repeat_password\"}})],1)]):_vm._e()])],2)],1):_vm._e()],1)])],1)]),_c('template',{slot:\"layout-extend\"},[_c('base-footer',[_c('template',{slot:\"actions\"},[_c('base-button-responsive',{attrs:{\"mode\":\"secondary\",\"text\":_vm.isCreate ? _vm.$t('app.cancel') : _vm.$t('app.back'),\"icon\":\"cross\",\"loading\":_vm.isGeneralLoading},on:{\"click\":_vm.goBack}}),(!_vm.isCreate)?_c('base-button-responsive',{attrs:{\"mode\":\"primary\",\"text\":_vm.$t('app.goto_clients'),\"icon\":\"company\",\"loading\":_vm.isGeneralLoading,\"disabled\":_vm.isGeneralLoading},on:{\"click\":_vm.goToClients}}):_vm._e(),_c('base-button-responsive',{attrs:{\"mode\":\"primary\",\"text\":_vm.$t('app.save'),\"icon\":\"check\",\"loading\":_vm.isGeneralLoading,\"disabled\":_vm.isGeneralLoading},on:{\"click\":function($event){return _vm.submitForm('ruleForm')}}})],1)],2)],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import axiosInstance from '@/services/axiosInstance'\r\nimport mock from '@/services/mock/index'\r\n\r\nasync function newDistributor (payload) {\r\n if (process.env.VUE_APP_ENVIRONMENT === 'tests') {\r\n return new Promise((resolve, reject) => {\r\n const data = mock.getCompanies\r\n const pages = data.data.length\r\n\r\n const clone = JSON.parse(JSON.stringify(data))\r\n console.log(clone.data)\r\n\r\n clone.meta.total = pages\r\n\r\n resolve(clone)\r\n })\r\n } else {\r\n const req = {\r\n url: 'api/distribuidores/altadistribuidor',\r\n method: 'POST',\r\n headers: {\r\n 'Content-type': 'application/json',\r\n 'access-control-allow-origin': '*'\r\n },\r\n data: payload\r\n }\r\n const res = await axiosInstance(req)\r\n return res.data\r\n }\r\n}\r\n\r\nexport { newDistributor }\r\n","import axiosInstance from '@/services/axiosInstance'\r\nimport mock from '@/services/mock/index'\r\n\r\nasync function updateDistributor (params = null, payload = {}) {\r\n if (process.env.VUE_APP_ENVIRONMENT === 'tests') {\r\n return new Promise((resolve, reject) => {\r\n const data = mock.getCompanies\r\n const pages = data.data.length\r\n\r\n const clone = JSON.parse(JSON.stringify(data))\r\n console.log(clone.data)\r\n\r\n clone.meta.total = pages\r\n\r\n resolve(clone)\r\n })\r\n } else {\r\n const req = {\r\n url: 'api/distribuidores/actualizardistribuidor',\r\n method: 'PUT',\r\n headers: {\r\n 'Content-type': 'application/json',\r\n 'access-control-allow-origin': '*'\r\n },\r\n params,\r\n data: payload\r\n }\r\n const res = await axiosInstance(req)\r\n return res.data\r\n }\r\n}\r\n\r\nexport { updateDistributor }\r\n","\r\n\r\n\r\n\r\n\r\n\r\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!./Distributor.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!./Distributor.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Distributor.vue?vue&type=template&id=33f4de66&scoped=true\"\nimport script from \"./Distributor.vue?vue&type=script&lang=js\"\nexport * from \"./Distributor.vue?vue&type=script&lang=js\"\nimport style0 from \"./Distributor.vue?vue&type=style&index=0&id=33f4de66&prod&scoped=true&lang=css\"\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 \"33f4de66\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"content-wrapper bg-white dark:bg-darkblue-900 flex flex-col w-full relative\"},[_vm._t(\"header\"),_c('main',{staticClass:\"content flex flex-col flex-auto overflow-y-auto w-full\"},[_c('div',{staticClass:\"w-full md:w-11.5/12 lg:max-w-detail lg:mr-auto\"},[_c('div',{staticClass:\"px-4 lg:px-10\"},[_vm._t(\"main\")],2)])]),_vm._t(\"layout-extend\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\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!./DetailLayout.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!./DetailLayout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DetailLayout.vue?vue&type=template&id=72444160\"\nimport script from \"./DetailLayout.vue?vue&type=script&lang=js\"\nexport * from \"./DetailLayout.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":""}