{"version":3,"sources":["webpack:///./src/pages/notifications/List.vue?1ed4","webpack:///./src/pages/notifications/List.vue","webpack:///./src/pages/notifications/List.vue?1688","webpack:///./src/pages/notifications/List.vue?ce51"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","attrs","_v","_s","notifications","meta","total","_e","name","on","$event","preventDefault","getNotifications","isLoading","model","value","params","callback","$$v","$set","expression","style","minWidth","domProps","data","per_page","current_page","scopedSlots","_u","key","fn","proxy","props","row","id","slug_id","title","$emit","staticRenderFns","component","Base","extend","active","message","sortBy","orderBy","page","mounted","methods","get","then"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACN,EAAIO,GAAG,GAAIP,EAAiB,cAAEI,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,QAAQ,CAACI,MAAM,CAAC,KAAO,aAAa,CAACR,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIW,cAAcC,KAAKC,OAAO,QAAQ,GAAGb,EAAIc,OAAOV,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,UAAU,CAACE,YAAY,aAAaE,MAAM,CAAC,QAAU,GAAG,SAAW,GAAG,yBAAyB,GAAG,SAAW,gBAAgB,CAACJ,EAAG,UAAU,CAACE,YAAY,WAAW,CAACF,EAAG,UAAU,CAACI,MAAM,CAAC,IAAM,WAAW,GAAK,CAACO,KAAK,wBAAwB,KAAO,aAAa,YAAY,SAAS,CAACf,EAAIS,GAAG,gCAAgC,IAAI,IAAI,KAAKL,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,OAAO,CAACE,YAAY,QAAQU,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBlB,EAA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AAQ,KACRC,QAAS,GACTC,OAAQ,KACRC,QAAS,OACTC,KAAM,EACNtC,KAAM,IAIVJ,cAAe,CACXoB,KAAM,GACNnB,KAAM,MAIlB0C,QAnB0B,WAoBtBrD,KAAKkB,oBAEToC,QAAS,CACLpC,iBADK,WAC4B,WAAhBkC,EAAgB,uDAAD,EAC5BpD,KAAKsB,OAAO8B,KAAOA,EAEnBpD,KAAKuD,IAA4B,gBAAiB,CAC9CjC,OAAQtB,KAAKsB,SACdkC,MAAK,YAAa,IAAV1B,EAAU,EAAVA,KACP,EAAKpB,cAAgBoB,SAOtB,ICvPkY,I,YCO7Y,EAAY,eACd,EACAhC,EACA8C,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d0b1c01.816bb14f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_vm._m(0),(_vm.notifications)?_c('div',{staticClass:\"level-item\"},[_c('b-tag',{attrs:{\"size\":\"is-small\"}},[_vm._v(\" \"+_vm._s(_vm.notifications.meta.total)+\" \")])],1):_vm._e()]),_c('div',{staticClass:\"level-right\"},[_c('b-field',{staticClass:\"level-item\",attrs:{\"grouped\":\"\",\"expanded\":\"\",\"notification-multiline\":\"\",\"position\":\"is-centered\"}},[_c('b-field',{staticClass:\"control\"},[_c('sp-link',{attrs:{\"tag\":\"b-button\",\"to\":{name:'notifications.create'},\"type\":\"is-primary\",\"icon-left\":\"plus\"}},[_vm._v(\" Create new notification \")])],1)],1)],1)]),_c('div',{staticClass:\"block\"},[_c('form',{staticClass:\"block\",on:{\"submit\":function($event){$event.preventDefault();return _vm.getNotifications()}}},[_c('b-field',{attrs:{\"grouped\":\"\",\"group-multiline\":\"\"}},[_c('b-field',{staticClass:\"control\",attrs:{\"label\":\"Search\",\"expanded\":\"\",\"label-position\":\"on-border\"}},[_c('b-input',{attrs:{\"disabled\":_vm.isLoading,\"icon\":\"search\",\"type\":\"search\"},model:{value:(_vm.params.message),callback:function ($$v) {_vm.$set(_vm.params, \"message\", $$v)},expression:\"params.message\"}})],1),_c('b-field',{staticClass:\"control\",style:({minWidth: 140+'px'}),attrs:{\"label\":\"Sort by\",\"label-position\":\"on-border\"}},[_c('b-select',{attrs:{\"expanded\":\"\",\"disabled\":_vm.isLoading},model:{value:(_vm.params.sortBy),callback:function ($$v) {_vm.$set(_vm.params, \"sortBy\", $$v)},expression:\"params.sortBy\"}},[_c('option',{domProps:{\"value\":'id'}},[_vm._v(\" ID \")])])],1),_c('b-field',{staticClass:\"control\",style:({minWidth: 140+'px'}),attrs:{\"label\":\"Order by\",\"label-position\":\"on-border\"}},[_c('b-select',{attrs:{\"expanded\":\"\",\"disabled\":_vm.isLoading},model:{value:(_vm.params.orderBy),callback:function ($$v) {_vm.$set(_vm.params, \"orderBy\", $$v)},expression:\"params.orderBy\"}},[_c('option',{domProps:{\"value\":'asc'}},[_vm._v(\" Ascending \")]),_c('option',{domProps:{\"value\":'desc'}},[_vm._v(\" Descending \")])])],1),_c('div',{staticClass:\"control\"},[_c('b-button',{attrs:{\"native-type\":\"submit\",\"type\":\"is-primary\",\"icon-left\":\"filter\",\"outlined\":\"\"}},[_vm._v(\" Filter \")])],1)],1)],1),_c('b-table',{attrs:{\"data\":_vm.notifications.data,\"bordered\":false,\"striped\":false,\"narrowed\":false,\"hoverable\":true,\"loading\":_vm.isLoading,\"focusable\":false,\"paginated\":true,\"backend-pagination\":true,\"total\":_vm.notifications.meta.total,\"per-page\":_vm.notifications.meta.per_page,\"current-page\":_vm.notifications.meta.current_page},on:{\"page-change\":function($event){return _vm.getNotifications($event)}},scopedSlots:_vm._u([{key:\"empty\",fn:function(){return [_c('div',{staticClass:\"has-text-centered\"},[(_vm.isLoading)?_c('p',[_vm._v(\" Loading... \")]):_c('p',[_c('lottie-animation',{attrs:{\"width\":256,\"path\":\"./img/lotties/no-results.json\"}}),_vm._v(\" No notifications found. \")],1)])]},proxy:true}])},[_c('b-table-column',{attrs:{\"width\":\"40\",\"centered\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [(props.row.is_read)?_c('b-icon',{attrs:{\"type\":\"is-success\",\"icon\":\"envelope\"}}):_c('b-icon',{attrs:{\"type\":\"is-grey\",\"icon\":\"envelope-open\"}})]}}])}),_c('b-table-column',{attrs:{\"field\":\"id\",\"label\":\"ID\",\"width\":\"40\",\"numeric\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(props.row.id)+\" \")]}}])}),_c('b-table-column',{attrs:{\"field\":\"title\",\"label\":\"Title\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('sp-link',{attrs:{\"behavior\":\"disable\",\"to\":{name: 'notifications.view',params:{id: props.row.slug_id}}}},[_vm._v(\" \"+_vm._s(props.row.title)+\" \")])]}}])}),_c('b-table-column',{attrs:{\"width\":\"100\",\"label\":\"Actions\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('div',{staticClass:\"buttons is-right\"},[_c('sp-link',{attrs:{\"tag\":\"b-button\",\"behavior\":\"disable\",\"to\":{name: 'notifications.view',params:{id: props.row.id}},\"inverted\":\"\",\"type\":\"is-dark\",\"size\":\"is-small\",\"icon-left\":\"eye\"}})],1)]}}])})],1)],1),_c('router-view',{on:{\"error\":function($event){return _vm.$emit('error',$event)},\"success\":function($event){return _vm.$emit('success',$event)},\"reload\":_vm.getNotifications}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"level-item\"},[_c('h1',{staticClass:\"title\"},[_vm._v(\" Notifications \")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Base from '@/mixins/Base.vue';\nimport { INotification, INotificationsResponse } from '@/interfaces/notification';\nimport { IPagination } from '@/interfaces/pagination';\n\nconst component = Base.extend({\n data() {\n return {\n params: {\n active: null,\n message: '',\n sortBy: 'id',\n orderBy: 'desc',\n page: 1,\n name: '',\n\n },\n\n notifications: {\n data: [] as Array,\n meta: {} as IPagination | any,\n } as INotificationsResponse,\n };\n },\n mounted() {\n this.getNotifications();\n },\n methods: {\n getNotifications(page: number = 1): void {\n this.params.page = page;\n\n this.get('notifications', {\n params: this.params,\n }).then(({ data }) => {\n this.notifications = data;\n });\n },\n\n },\n});\n\nexport default component;\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=31c7e9b4&\"\nimport script from \"./List.vue?vue&type=script&lang=ts&\"\nexport * from \"./List.vue?vue&type=script&lang=ts&\"\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":""}