{"version":3,"sources":["webpack:///./pages/search.vue","webpack:///./pages/search.vue?edc9","webpack:///./pages/search.vue?f44e","webpack:///./pages/index.vue?b1ff","webpack:///./pages/index.vue","webpack:///./pages/index.vue?b245"],"names":["layout","middleware","data","loading","tableFields","key","sortable","items","total","form","query","this","$route","group","parseInt","dups","marked","inactive","inactive_agent","everyrole","by_name","page","size","comparing","fetch","search","computed","_objectSpread","mapGetters","watch","deep","handler","_","debounce","mounted","$refs","focus","methods","_arguments","arguments","_this","_asyncToGenerator","regeneratorRuntime","mark","_callee","params","_yield$_this$$try","wrap","_context","prev","next","length","undefined","Math","min","$routerx","replaceQuery","$try","spinner","sent","map","parseClient","stop","client","name","toName","component","_vm","_c","_self","staticClass","_v","_s","stat","attrs","ref","model","value","callback","$$v","$set","expression","canAdmin","_e","directives","rawName","text","concat","join","on","$event","preventDefault","scopedSlots","_u","fn","_data$item","_data$item$dups","_data$item2","_data$item2$dups","item","id","target","blur","domProps","role","dups_key","_l","dup","group_name","crm_id","crmBase","installComponents","GroupSelect","default","Name","ClientAgentName","Icon","Spinner","render","staticRenderFns"],"mappings":"i2BAIe,ICJqO,EDIrO,CACXA,OAAQ,SACRC,WAAY,CACR,OACA,YAEJC,KAAI,WACA,MAAO,CACHC,SAAS,EACTC,YAAa,CACT,CAAEC,IAAK,YAAaC,UAAU,GAC9B,CAAED,IAAK,OAAQC,UAAU,GACzB,CAAED,IAAK,QAASC,UAAU,GAC1B,CAAED,IAAK,aAAcC,UAAU,GAC/B,CAAED,IAAK,QAASC,UAAU,IAG9BC,MAAO,GACPC,MAAO,EACPC,KAAM,CACFC,MAAOC,KAAKC,OAAOF,MAAMA,OAAS,GAClCG,MAAOC,SAASH,KAAKC,OAAOF,MAAMG,QAAU,KAC5CE,KAAiC,SAA3BJ,KAAKC,OAAOF,MAAMK,KACxBC,OAAqC,SAA7BL,KAAKC,OAAOF,MAAMM,OAC1BC,SAAyC,SAA/BN,KAAKC,OAAOF,MAAMO,SAC5BC,eAAqD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CE9N,Q,OCKjB/C,UAAY,YACd,EAREoD,UAAQC,WAWV,EACA,KACA,KACA,MAIa,UAAArD,U","file":"f912211.js","sourcesContent":["\nimport { mapGetters } from 'vuex'\nimport _ from 'lodash'\n\nexport default {\n layout: 'narrow',\n middleware: [\n 'home',\n 'canAgent'\n ],\n data () {\n return {\n loading: false,\n tableFields: [\n { key: 'shortcuts', sortable: false },\n { key: 'name', sortable: false },\n { key: 'group', sortable: false },\n { key: 'cell_phone', sortable: false },\n { key: 'email', sortable: false },\n // { key: 'group', sortable: false },\n ],\n items: [],\n total: 0,\n form: {\n query: this.$route.query.query || '',\n group: parseInt(this.$route.query.group) || null,\n dups: this.$route.query.dups === 'true',\n marked: this.$route.query.marked === 'true',\n inactive: this.$route.query.inactive === 'true',\n inactive_agent: this.$route.query.inactive_agent === 'true',\n everyrole: this.$route.query.everyrole === 'true',\n by_name: this.$route.query.by_name === 'true',\n page: parseInt(this.$route.query.page) || 1,\n size: parseInt(this.$route.query.size) || 10\n },\n comparing: [],\n }\n },\n fetch () {\n return this.search()\n },\n computed: {\n ...mapGetters([\n 'crmBase',\n ]),\n },\n watch: {\n 'form.query': {\n deep: true,\n handler: _.debounce(function () {\n this.search({ page: 1 })\n }, 300)\n },\n 'form.group' () {\n return this.search({ page: 1 })\n },\n 'form.page' () {\n return this.search()\n },\n 'form.size' () {\n return this.search({ page: 1 })\n },\n 'form.dups' () {\n return this.search({ page: 1 })\n },\n 'form.by_name' () {\n return this.search({ page: 1 })\n },\n 'form.marked' () {\n return this.search({ page: 1 })\n },\n 'form.inactive' () {\n return this.search({ page: 1 })\n },\n 'form.inactive_agent' () {\n return this.search({ page: 1 })\n },\n 'form.everyrole' () {\n return this.search({ page: 1 })\n },\n },\n mounted () {\n this.$refs.query.focus()\n },\n methods: {\n async search (params = {}) {\n this.loading = true\n params = { ...this.form, ...params }\n if (!params.size) {\n params.size = 100\n }\n params.size = Math.min(params.size, 100)\n this.$routerx.replaceQuery({ ...params, size: params.size })\n const { items, total, page, size } = await this.$try(params.dups ? 'searchDuplicateClients' : 'searchClients', params, { spinner: false })\n this.$routerx.replaceQuery({ page })\n this.items = (items || []).map(this.parseClient)\n this.total = total || 0\n this.form.page = page || 1\n this.form.size = Math.min(size || 10, 100)\n this.loading = false\n },\n parseClient (client) {\n client.name = client.name || this.toName(client)\n return client\n },\n }\n}\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./search.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./search.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./search.vue?vue&type=template&id=ad1d8902&lang=pug&\"\nimport script from \"./search.vue?vue&type=script&lang=js&\"\nexport * from \"./search.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\n\n/* nuxt-component-imports */\ninstallComponents(component, {GroupSelect: require('/codebuild/output/src86215195/src/frontend/components/GroupSelect.vue').default,Name: require('/codebuild/output/src86215195/src/frontend/components/Name.vue').default,ClientAgentName: require('/codebuild/output/src86215195/src/frontend/components/ClientAgentName.vue').default,Icon: require('/codebuild/output/src86215195/src/frontend/components/Icon.vue').default,Spinner: require('/codebuild/output/src86215195/src/frontend/components/Spinner.vue').default})\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","\nimport Search from '~/pages/search'\nexport default Search\n","var render, staticRenderFns\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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":""}