{"version":3,"sources":["webpack:///./src/views/configuration/address-books.vue?55cc","webpack:///src/views/configuration/address-books.vue","webpack:///./src/views/configuration/address-books.vue?616c","webpack:///./src/views/configuration/address-books.vue","webpack:///./src/assets/document.svg","webpack:///./src/views/configuration/address-books.vue?7d49","webpack:///./src/assets/red_x.svg","webpack:///./src/utils/toast.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","isPageLoading","on","$event","_e","_v","directives","name","rawName","value","expression","domProps","target","composing","searchKeyword","newAddressBook","_l","searchLocalDataset","getAddressBooks","addressBook","key","id","_s","contactCount","toLocaleString","preventDefault","editAddressBook","deleteAddressBook","staticRenderFns","component","module","exports","defaultOptions","noCloseButton","autoHideDelay","toaster","isStatus","success","context","message","overrideOptions","options","variant","$root","$bvToast","toast","danger"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,UAAU,CAACG,MAAM,CAAC,OAASP,EAAIQ,cAAc,eAAe,IAAIC,GAAG,CAAC,gBAAgB,SAASC,GAAQV,EAAIQ,cAAcE,MAAaV,EAAIQ,cAA+iER,EAAIW,KAApiEP,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,KAAK,CAACJ,EAAIY,GAAG,qBAAqBR,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,QAAQ,CAACE,YAAY,0BAA0BC,MAAM,CAAC,IAAM,kBAAkB,CAACP,EAAIY,GAAG,uBAAuBR,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,QAAQ,CAACS,WAAW,CAAC,CAACC,KA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,GAC1DF,EAAQK,MAAMC,SAASC,MAAMN,EAASE,IAGlCK,EAAS,SAAUR,EAASC,EAASC,GACzC,IAAIC,EAAU,EAAH,GAAKC,QAAS,UAAaV,GAAmBQ,GACzDF,EAAQK,MAAMC,SAASC,MAAMN,EAASE,IAGzB,QAAEJ,UAASS","file":"js/chunk-47bbc977.420453e1.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fragment',[_c('div',{staticClass:\"main_page\"},[_c('app-navbar'),_c('div',{staticClass:\"page\"},[_c('loading',{attrs:{\"active\":_vm.isPageLoading,\"is-full-page\":\"\"},on:{\"update:active\":function($event){_vm.isPageLoading=$event}}}),(!_vm.isPageLoading)?_c('div',[_c('div',{staticClass:\"page-title\"},[_c('h1',[_vm._v(\"Address Books\")])]),_c('div',{staticClass:\"page-content\"},[_c('form',[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label\",attrs:{\"for\":\"searchKeyword\"}},[_vm._v(\"Search by Keyword\")]),_c('div',{staticClass:\"col-sm-8\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.searchKeyword),expression:\"searchKeyword\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.searchKeyword)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.searchKeyword=$event.target.value}}})]),_c('div',{staticClass:\"col-sm-2\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.newAddressBook}},[_c('i',{staticClass:\"fas fa-plus-circle\"}),_vm._v(\" Add New \")])])])]),_c('ul',{staticClass:\"list-group list-group-flush border-bottom\"},_vm._l((_vm.searchLocalDataset(_vm.getAddressBooks)),function(addressBook){return _c('li',{key:addressBook.id,staticClass:\"list-group-item d-flex px-2\"},[_c('div',{staticClass:\"mr-auto\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(_vm._s(addressBook.name))]),_c('p',{staticClass:\"m-0 small-grey\"},[_vm._v(_vm._s(addressBook.contactCount.toLocaleString())+\" contact(s)\")])]),_c('div',{staticClass:\"mr-auto\"}),_c('a',{staticClass:\"d-flex justify-content-between align-items-center flex-column\",attrs:{\"role\":\"button\",\"href\":\"#\",\"title\":\"Edit\"},on:{\"click\":function($event){$event.preventDefault();return _vm.editAddressBook(addressBook.id)}}},[_c('img',{staticClass:\"mb-1\",attrs:{\"src\":require(\"@/assets/document.svg\"),\"alt\":\"\"}}),_c('span',{staticClass:\"small-grey\"},[_vm._v(\"Edit\")])]),_c('a',{staticClass:\"d-flex justify-content-between align-items-center flex-column ml-3\",attrs:{\"role\":\"button\",\"href\":\"#\",\"title\":\"Delete\"},on:{\"click\":function($event){$event.preventDefault();return _vm.deleteAddressBook(addressBook.id)}}},[_c('img',{staticClass:\"mb-1\",attrs:{\"src\":require(\"@/assets/red_x.svg\"),\"alt\":\"\"}}),_c('span',{staticClass:\"small-grey\"},[_vm._v(\"Delete\")])])])}),0)])]):_vm._e()],1)],1),_c('b-modal',{staticClass:\"modal-xxl\",attrs:{\"id\":\"bv-modal-address-book\",\"size\":\"xxl\",\"hide-header\":\"\",\"hide-footer\":\"\",\"no-close-on-backdrop\":true}},[_c('address-book')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\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!./address-books.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!./address-books.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./address-books.vue?vue&type=template&id=af2b2990&\"\nimport script from \"./address-books.vue?vue&type=script&lang=js&\"\nexport * from \"./address-books.vue?vue&type=script&lang=js&\"\nimport style0 from \"./address-books.vue?vue&type=style&index=0&lang=scss&scope=true&\"\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","module.exports = __webpack_public_path__ + \"img/document.fac8cbfe.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.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!./address-books.vue?vue&type=style&index=0&lang=scss&scope=true&\"","module.exports = __webpack_public_path__ + \"img/red_x.d0ed53ac.svg\";","const defaultOptions = {\r\n noCloseButton: true,\r\n autoHideDelay: 3000,\r\n toaster: \"b-toaster-top-right\",\r\n isStatus: true\r\n};\r\n\r\nconst success = function (context, message, overrideOptions) {\r\n let options = { variant: 'success', ...defaultOptions, ...overrideOptions };\r\n context.$root.$bvToast.toast(message, options);\r\n}\r\n\r\nconst danger = function (context, message, overrideOptions) {\r\n let options = { variant: 'danger', ...defaultOptions, ...overrideOptions };\r\n context.$root.$bvToast.toast(message, options);\r\n}\r\n\r\nexport default { success, danger }\r\n"],"sourceRoot":""}