{"version":3,"sources":["webpack:///./src/views/ClientUsers.vue","webpack:///src/views/ClientUsers.vue","webpack:///./src/views/ClientUsers.vue?cf94","webpack:///./src/views/ClientUsers.vue?3c5b"],"names":["render","_vm","this","_c","_self","staticClass","fullControl","on","newUser","_v","_e","attrs","onSearchEnter","model","value","search","callback","$$v","expression","ref","filtered","fields","perPage","currentPage","sortBy","sortDesc","isLoaded","$event","rowClicked","apply","arguments","onFiltered","scopedSlots","_u","key","fn","data","_s","row","changeActive","item","isActive","$set","_l","unformatted","index","getCatText","length","proxy","totalRows","exportTable","hasClient","staticRenderFns","name","components","MaxUsersModal","mixins","hasTable","hasDisclosure","hasToast","canShowProblem","canSetTitle","canAddClientUser","toLoad","computed","users","sortable","XLSWidth","label","class","formatter","getPrivilege","sortByFormatted","filterByFormatted","formatCats","XLSformatter","formatCatsForXLS","$can","reportName","isClient","$store","state","clients","selected","console","log","$route","params","clientId","dispatch","loaded","setTitle","client","methods","e","$router","push","path","id","maxUsers","canAdd","$bvModal","show","showSavingToast","status","then","r","pre","showToast","catch","showProblem","component"],"mappings":"sHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,UAAU,CAAEJ,EAAIK,YAAaH,EAAG,WAAW,CAACE,YAAY,UAAUE,GAAG,CAAC,MAAQN,EAAIO,UAAU,CAACP,EAAIQ,GAAG,cAAcR,EAAIS,KAAKP,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,eAAe,CAACE,YAAY,OAAOM,MAAM,CAAC,YAAc,SAASJ,GAAG,CAAC,MAAQN,EAAIW,eAAeC,MAAM,CAACC,MAAOb,EAAIc,OAAQC,SAAS,SAAUC,GAAMhB,EAAIc,OAAOE,GAAKC,WAAW,aAAa,GAAGf,EAAG,UAAU,CAACgB,IAAI,QAAQd,YAAY,oBAAoBM,MAAM,CAAC,MAAQV,EAAImB,SAAS,OAASnB,EAAI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AAAvC,MAAA,eAEAwC,QAAA,CACAjE,WAAAkE,GACAV,QAAAC,IAAAS,GACA,KAAAC,QAAAC,KAAA,KAAAV,OAAAW,KAAA,IAAAH,EAAA,GAAAI,KAEA1F,UACA4E,QAAAC,IAAA,gBAAAc,UACA,KAAAC,OAAA,KAAAL,QAAAC,KAAA,KAAAV,OAAAW,KAAA,QACA,KAAAI,SAAAC,KAAA,kBAEA/D,aAAAD,GACA8C,QAAAC,IAAA,cACA,KAAAkB,kBACA,KAAAvB,OACAS,SAAA,0BAAAS,GAAA5D,EAAAE,KAAA0D,GAAAM,OAAAlE,EAAAE,KAAAC,WACAgE,KAAAC,IACA,MAAAC,EAAArE,EAAAE,KAAAC,SAAA,QACA,KAAAmE,UAAA,GAAAtE,EAAAE,KAAAa,eAAAsD,aAEAE,MAAAf,IACAxD,EAAAE,KAAAC,UAAAH,EAAAE,KAAAC,SACA,KAAAqE,YAAAhB,QCrHoV,I,YCOhViB,EAAY,eACd,EACA/G,EACAoD,GACA,EACA,KACA,KACA,MAIa,aAAA2D,E","file":"js/clientUsers.7ab0bb47.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"loaded\"},[(_vm.fullControl)?_c('b-button',{staticClass:\"btn-new\",on:{\"click\":_vm.newUser}},[_vm._v(\"New User\")]):_vm._e(),_c('div',{staticClass:\"search-bar search-only\"},[_c('search-input',{staticClass:\"wide\",attrs:{\"placeholder\":\"Users\"},on:{\"enter\":_vm.onSearchEnter},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('b-table',{ref:\"table\",staticClass:\"disclosures-table\",attrs:{\"items\":_vm.filtered,\"fields\":_vm.fields,\"filter\":_vm.search,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"hover\":_vm.fullControl,\"busy\":!_vm.isLoaded,\"show-empty\":\"\",\"responsive\":\"\",\"selectable\":_vm.fullControl,\"select-mode\":\"single\"},on:{\"~row-selected\":function($event){return _vm.rowClicked.apply(null, arguments)},\"filtered\":_vm.onFiltered},scopedSlots:_vm._u([{key:\"cell(email)\",fn:function(data){return [_c('a',{attrs:{\"href\":'mailto:'+data.value,\"target\":\"_blank\",\"title\":\"send email\"}},[_vm._v(_vm._s(data.value))])]}},{key:\"cell(isActive)\",fn:function(row){return [_c('b-form-checkbox',{on:{\"change\":function($event){return _vm.changeActive(row)}},model:{value:(row.item.isActive),callback:function ($$v) {_vm.$set(row.item, \"isActive\", $$v)},expression:\"row.item.isActive\"}})]}},{key:\"cell(categories)\",fn:function(data){return [_vm._l((data.unformatted),function(item,index){return [_c('span',{key:data.index + item,staticClass:\"no-wrap\"},[_vm._v(_vm._s(_vm.getCatText(item)))]),(index < data.unformatted.length - 1)?[_vm._v(\", \")]:_vm._e()]})]}},{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"text-center my-2\"},[_c('strong',[_vm._v(\"Loading...\")])])]},proxy:true}])}),_c('table-footer',{attrs:{\"per-page\":_vm.perPage,\"total-rows\":_vm.totalRows},on:{\"update:perPage\":function($event){_vm.perPage=$event},\"update:per-page\":function($event){_vm.perPage=$event},\"download\":_vm.exportTable},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}}),(_vm.hasClient)?_c('max-users-modal'):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\t\r\n\t\tNew User\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t{{data.value}}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{{getCatText(item)}}, \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tLoading...\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\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!./ClientUsers.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!./ClientUsers.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ClientUsers.vue?vue&type=template&id=7bbbf4c8\"\nimport script from \"./ClientUsers.vue?vue&type=script&lang=js\"\nexport * from \"./ClientUsers.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":""}