{"version":3,"sources":["webpack:///./src/assets/modules-05.svg","webpack:///./src/notifications/mixins/notificationsAction.mixin.js","webpack:///./src/notifications/components/NotificationCollapseGroup.vue?b83c","webpack:///src/notifications/components/NotificationCollapseGroup.vue","webpack:///./src/notifications/components/NotificationCollapseGroup.vue?1ad1","webpack:///./src/notifications/components/NotificationCollapseGroup.vue","webpack:///./src/notifications/components/NotificationsHeaderPopup.vue?df9a","webpack:///src/notifications/components/NotificationsHeaderPopup.vue","webpack:///./src/notifications/components/NotificationsHeaderPopup.vue?4a92","webpack:///./src/notifications/components/NotificationsHeaderPopup.vue","webpack:///./src/plugins/NotificationsGenerateRoute.js","webpack:///./src/plugins/utils.js","webpack:///./src/notifications/components/NotificationItems.vue?1e2f","webpack:///src/notifications/components/NotificationItems.vue","webpack:///./src/notifications/components/NotificationItems.vue?2dbe","webpack:///./src/notifications/components/NotificationItems.vue","webpack:///./src/notifications/components/NotificationsHeaderPopup.vue?e30b","webpack:///./src/notifications/components/NotificationItems.vue?fe74"],"names":["module","exports","methods","readNotification","item","date","type","action_object","model","route","generateRouteByType","this","isParent","marksAsReadNotification","notificationId","id","notificationStore","decrementTotalNotification","$router","push","console","log","handleAcceptingItem","isAccept","acceptOrRejectItemChecklist","childId","child_id","acceptOrRejectItem","coins","render","_vm","_h","$createElement","_c","_self","Object","keys","notifications","staticClass","_v","_s","formatLongDate","_l","index","key","directives","name","rawName","value","notification","expression","on","$event","stopPropagation","attrs","visible","clickNotification","$emit","allNotificationsHaveBeenViewed","_e","staticRenderFns","components","props","default","collapseId","String","Number","Boolean","data","empty","component","closed","scopedSlots","_u","fn","notificationsCount","proxy","mixins","notificationsList","sessionStore","computed","$route","total","currentChild","childSelectedId","watch","_InterfaceItem","description","timestamp","unread","url","title","order","actions","routes","task","_item","taskId","params","plan","moduleOrder","module_order","checklist","checkListId","id_related","rewards","ranking","childbadge","STATUS","accessor","mappedToBase10","number","numberFormated","getPlainHour","_date","Date","getHours","getMinutes","getDate","month","getMonth","day","year","getFullYear","secondsToMiliseconds","seconds","class","success","isSuccess","rejected","isReject","selectNotification","getCoins","existCreationDate","acceptRejectEmit","Array","localNotifications","closeOrDone","includes","hasCoins","RemoveNotificationById","accept","filter","length"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,+B,kGCI5B,QACbC,QAAS,CACDC,iBADC,mLACkBC,YADlB,MACyB,GADzB,MAC6BC,YAD7B,MACoC,GADpC,WAGGC,EAAOF,EAAKG,cAAcC,MAC1BC,EAAQC,eAAoBN,EAAME,EAAMK,KAAKC,UAJhD,SAKGC,eAAwB,CAAEC,eAAgBV,EAAKW,GAAIV,SALtD,OAMHM,KAAKK,kBAAkBC,6BACvBR,GAASE,KAAKO,QAAQC,KAAKV,GAPxB,qDASHW,QAAQC,IAAR,MATG,mHAYDC,oBAZC,oEAYmBlB,EAAME,EAAMiB,GAZ/B,6FAcU,oBAATjB,EAdD,gCAeKkB,yCAA4B,CAChCT,GAAIX,EAAKG,cAAcQ,GACvBU,QAASrB,EAAKsB,SACdH,aAlBD,6CAqBKI,eAAmB,CAAEZ,GAAIX,EAAKwB,MAAMb,GAAIQ,aArB7C,OAuBHZ,KAAKK,kBAAkBC,6BAvBpB,qDAyBHG,QAAQC,IAAR,MAzBG,0H,2DCLX,IAAIQ,EAAS,WAAa,IAAIC,EAAInB,KAASoB,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAQI,OAAOC,KAAKN,EAAIO,eAAqB,OAAEJ,EAAG,MAAM,CAACK,YAAY,OAAO,CAACL,EAAG,MAAM,CAACK,YAAY,WAAW,CAACL,EAAG,KAAK,CAACK,YAAY,8BAA8B,CAACR,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIW,eAAeX,EAAIO,cAAchC,OAAO,OAAOyB,EAAIY,GAAIZ,EAAIO,cAAmB,OAAE,SAAS/B,EAAKqC,GAAO,OAAOV,EAAG,MAAM,CAACW,IAAID,EAAML,YAAY,OAAO,CAACL,EA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OO,EAAW/G,EAAM,SAAW,GAErCuG,mBAXJ,SAWA,GACWlF,EAAa4C,UAChBlF,KAAKiI,uBAAuB3F,EAAalC,IACzCJ,KAAK8C,MAAM,iBAAkBR,KAGjCqF,iBAjBJ,SAiBA,KACM3H,KAAKiI,uBAAuB3F,EAAalC,IACzCJ,KAAK8C,MAAMoF,EAAS,WAAa,WAAY5F,IAE/C2F,uBArBJ,SAqBA,GACMjI,KAAK6H,mBAAqB7H,KAAK6H,mBAAmBM,QACxD,YAAQ,OAAR,YAEMnI,KAAK8C,MAAM,kCAAmC9C,KAAK6H,mBAAmBO,SAExEV,kBA3BJ,SA2BA,SACM,SAAN,qFCzG0W,I,wBCQtW/D,EAAY,eACd,EACAzC,EACA+B,GACA,EACA,KACA,KACA,MAIa,OAAAU,E,2CCnBf,yBAAglB,EAAG,G,kCCAnlB,yBAAykB,EAAG,G","file":"js/chunk-054f3de6.41e1c3df.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/modules-05.268e38c9.svg\";","import { generateRouteByType } from '@/plugins/utils';\nimport { acceptOrRejectItemChecklist } from '../../checkList';\nimport { acceptOrRejectItem, marksAsReadNotification } from '../services';\n\nexport default {\n methods: {\n async readNotification({ item = {}, date = '' }) {\n try {\n const type = item.action_object.model;\n const route = generateRouteByType(item, type, this.isParent);\n await marksAsReadNotification({ notificationId: item.id, date });\n this.notificationStore.decrementTotalNotification();\n route && this.$router.push(route);\n } catch (error) {\n console.log(error);\n }\n },\n async handleAcceptingItem(item, type, isAccept) {\n try {\n if (type === 'checklist items') {\n await acceptOrRejectItemChecklist({\n id: item.action_object.id,\n childId: item.child_id,\n isAccept,\n });\n } else {\n await acceptOrRejectItem({ id: item.coins.id, isAccept });\n }\n this.notificationStore.decrementTotalNotification();\n } catch (error) {\n console.log(error);\n }\n },\n },\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (Object.keys(_vm.notifications).length)?_c('div',{staticClass:\"p-3\"},[_c('div',{staticClass:\"m-0 p-0\"},[_c('h5',{staticClass:\"text-body font-weight-bold\"},[_vm._v(\" \"+_vm._s(_vm.formatLongDate(_vm.notifications.date))+\" \")]),_vm._l((_vm.notifications.types),function(type,index){return _c('div',{key:index,staticClass:\"m-0\"},[_c('div',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\",value:((\"collapse-group-\" + (_vm.notification.date + index))),expression:\"`collapse-group-${notification.date + index}`\"}],staticClass:\"text-capitalize d-flex align-items-center justify-content-between text-body font-weight-bold mb-3\",on:{\"click\":function($event){$event.stopPropagation();}}},[_c('p',{staticClass:\"m-0\"},[_vm._v(_vm._s(type.type))]),_c('span',{staticClass:\"material-icons\"},[_vm._v(\"expand_more\")])]),_c('b-collapse',{staticClass:\"text-body\",attrs:{\"id\":(\"collapse-group-\" + (_vm.notification.date + index)),\"visible\":_vm.visible}},[_c('notification-items',{attrs:{\"notifications\":type.notifications,\"isParent\":_vm.isParent},on:{\"onNotification\":_vm.clickNotification,\"onAccept\":function (notification) { return _vm.$emit('onAcceptItem', notification, type.type, true); },\"onReject\":function (notification) { return _vm.$emit('onRejectItem', notification, type.type, false); },\"allNotificationsHaveBeenViewed\":_vm.allNotificationsHaveBeenViewed}})],1)],1)})],2)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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!./NotificationCollapseGroup.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!./NotificationCollapseGroup.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NotificationCollapseGroup.vue?vue&type=template&id=6bbfb7e0&\"\nimport script from \"./NotificationCollapseGroup.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationCollapseGroup.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-nav-item-dropdown',{attrs:{\"right\":\"\",\"no-caret\":\"\",\"disabled\":_vm.closed},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('span',{staticClass:\"material-icons-outlined align-middle text-white\"},[_vm._v(\"notifications\")]),(_vm.notificationsCount !== 0 && !_vm.closed)?_c('span',{staticClass:\"bg-danger position-absolute text-white small rounded-pill txt-center\"},[_vm._v(_vm._s(_vm.notificationsCount))]):_vm._e()]},proxy:true}])},[_c('b-dropdown-item',[(_vm.notificationsCount == 0)?_c('span',{staticClass:\"d-block text-center\"},[_c('span',{staticClass:\"material-icons-outlined full-icon align-middle mt-2 mb-2\"},[_vm._v(\"notifications\")]),_c('p',{staticClass:\"text-muted mx-5 text-wrap\"},[_vm._v(\" You don't have any notification yet. \")])]):_c('span',[_vm._l((_vm.notificationsList),function(notification){return _c('div',{key:notification.id,staticClass:\"bg-light\"},[_c('notification-collapse-group',{attrs:{\"isParent\":_vm.isParent,\"notification\":notification},on:{\"onReadNotification\":_vm.readNotification,\"onAcceptItem\":_vm.handleAcceptingItem,\"onRejectItem\":_vm.handleAcceptingItem}})],1)}),_c('b-link',{on:{\"click\":function($event){return _vm.$router.push({ name: 'notifications' })}}},[_c('small',{staticClass:\"text-center text-main d-block py-2\"},[_vm._v(\" Show all \")])])],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\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!./NotificationsHeaderPopup.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!./NotificationsHeaderPopup.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NotificationsHeaderPopup.vue?vue&type=template&id=d078b392&\"\nimport script from \"./NotificationsHeaderPopup.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationsHeaderPopup.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NotificationsHeaderPopup.vue?vue&type=style&index=0&lang=scss&\"\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","const _InterfaceItem = {\n id: 0,\n description: '',\n timestamp: '',\n unread: true,\n url: '',\n title: '',\n child_id: 0,\n action_object: {\n model: '',\n id: 0,\n },\n module: {\n id: 0,\n name: '0',\n order: 0,\n },\n type: {\n name: '',\n id: '',\n },\n actions: false,\n};\n\nfunction generateRouteByType(item = _InterfaceItem, type = '', isParent = false) {\n const routes = {\n task: function(_item = _InterfaceItem) {\n const taskId = _item.action_object.id;\n return {\n name: 'task-detail',\n params: { taskId },\n };\n },\n plan: function(_item = _InterfaceItem) {\n const moduleOrder = _item.module.module_order;\n return {\n name: moduleOrder ? 'planDetail' : 'plans',\n params: { moduleOrder },\n };\n },\n checklist: function(_item = _InterfaceItem) {\n const checkListId = _item.type.id;\n return {\n name: checkListId ? 'checkListId' : 'checkList',\n params: { checkListId },\n };\n },\n coins: function(_item = _InterfaceItem) {\n const model = _item.coins.model;\n const id = _item.coins.id_related;\n const data = model === 'task' && this.task({ action_object: { id } });\n return data;\n },\n rewards: { name: 'rewards' },\n ranking: { name: 'ranking' },\n childbadge: { name: 'badges' },\n };\n return routes[type] ? routes[type](item) : null;\n}\n\nexport { generateRouteByType };\n","import { generateRouteByType } from \"./NotificationsGenerateRoute\";\n\nconst STATUS = [\n // {id: '0', name: 'backlog', accessor: 'backlog', visible: true},\n // {id: \"1\", name: \"queue\", accessor: 'queue', visible: true},\n // {id: \"2\", name: \"rejected\", accessor: 'rejected', visible: true},\n {id: \"3\", name: \"queue\", accessor: 'queue', visible: true},\n {id: \"4\", name: \"in progress\", accessor: 'in_progress', visible: true},\n {id: \"5\", name: \"completed\", accessor: 'completed', visible: true},\n {id: \"6\", name: \"turned in\", accessor: 'turned_in', visible: true},\n]\n\nconst STATUS_LIBRARY = {\n 'backlog': {id: '0'},\n 'queue': {id: '1'},\n 'rejected': {id: '2'},\n 'created': {id: '3'},\n 'in_progress': {id: '4'},\n 'completed': {id: '5'},\n 'turned_in': {id: '6'},\n}\n\n/**\n * @description\n * this method receives a number such as 1, 2 or 9 and returns the same number but as a string in base10.\n * @example\n * 1 -> '01'\n * 9 -> '09'\n * 10 -> '10'\n * @param {number} number\n * @return {string}\n */\nfunction mappedToBase10(number) {\n const numberFormated = number < 10 ? `0${number}` : number\n return numberFormated;\n}\n\nfunction getPlainHour(date = '') {\n const _date = date ? new Date(date) : new Date();\n return `${mappedToBase10(_date.getHours())}:${mappedToBase10(_date.getMinutes())}`\n}\n\nfunction getDate(date = '') {\n const _date = date ? new Date(date) : new Date();\n const month = mappedToBase10(_date.getMonth() + 1);\n const day = mappedToBase10(_date.getDate());\n const year = _date.getFullYear();\n return `${year}-${month}-${day}`\n}\n\nfunction secondsToMiliseconds(seconds) {\n return seconds*1000\n}\n\nexport {getDate, getPlainHour, secondsToMiliseconds, STATUS, STATUS_LIBRARY, generateRouteByType}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',_vm._l((_vm.localNotifications),function(notification){return _c('div',{key:notification.id,staticClass:\"wrapper-notification py-3 px-2 bg-muted mb-2\",class:{\n success: _vm.isSuccess(notification.title),\n rejected: _vm.isReject(notification.title),\n },on:{\"click\":function($event){$event.stopPropagation();return _vm.selectNotification(notification)}}},[_c('div',[_c('div',{staticClass:\"wrapper-notification-description\"},[(_vm.getCoins(notification.coins))?_c('div',{staticClass:\"bg-coin-medium small-icon coin\"},[_c('span',{staticClass:\"pt-1\"},[_vm._v(_vm._s(_vm.getCoins(notification.coins)))])]):_c('div',[_c('img',{staticClass:\"image-icon-style\",attrs:{\"src\":require('@/assets/modules-05.svg'),\"alt\":\"image\"}})]),_c('span',{staticClass:\"text-wrap d-block w-100\"},[_vm._v(_vm._s(notification.description))])]),_c('div',{staticClass:\"wrapper-notification-success-rejected-icon\"},[_c('div',[(_vm.existCreationDate(notification))?_c('span',{staticClass:\"wrapper-notification-date \"},[_c('b',[_vm._v(\"Creation date: \")]),_vm._v(\" \"+_vm._s(_vm.formatLongDate(notification.action_object.date))+\" \")]):_vm._e()]),(!_vm.isParent && (_vm.isSuccess(notification.title) || _vm.isReject(notification.title)))?[_c('span',{class:_vm.isSuccess(notification.title) ? 'material-icons success' : 'material-icons rejected'},[_vm._v(_vm._s(_vm.isSuccess(notification.title) ? 'done' : 'close'))])]:_vm._e()],2),_c('div',{staticClass:\"wrapper-notification--actions\"},[(_vm.isParent && notification.actions)?_c('div',{staticClass:\"parent\"},[_c('button',{staticClass:\"action\",on:{\"click\":function($event){$event.stopPropagation();return _vm.acceptRejectEmit(notification, true)}}},[_c('span',{staticClass:\"material-icons success\"},[_vm._v(\"done\")]),_c('span',{staticClass:\"small-icon success\"},[_vm._v(\"accept\")])]),_c('button',{staticClass:\"action\",on:{\"click\":function($event){$event.stopPropagation();return _vm.acceptRejectEmit(notification, false)}}},[_c('span',{staticClass:\"material-icons rejected\"},[_vm._v(\"close\")]),_c('span',{staticClass:\"small-icon success\"},[_vm._v(\"reject\")])])]):_vm._e()])])])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n \n \n
\n
\n \n \n \n\n\n\n\n\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!./NotificationItems.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!./NotificationItems.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NotificationItems.vue?vue&type=template&id=405f1cbe&\"\nimport script from \"./NotificationItems.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationItems.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NotificationItems.vue?vue&type=style&index=0&lang=scss&\"\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","import mod from \"-!../../../node_modules/@vue/cli-service/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!./NotificationsHeaderPopup.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/@vue/cli-service/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!./NotificationsHeaderPopup.vue?vue&type=style&index=0&lang=scss&\"","import mod from \"-!../../../node_modules/@vue/cli-service/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!./NotificationItems.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/@vue/cli-service/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!./NotificationItems.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}