%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/cospend/js/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/cospend/js/cospend-dashboard-lazy.js.map

{"version":3,"file":"cospend-dashboard-lazy.js?v=aba0b68e490dd2e49d5f","mappings":"mKAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,GAAI,GAAG,CAAC,QAAU,EAAE,QAAU,GAAG,MAAQ,GAAG,SAAW,GAAG,WAAa,MAEhH,S,yCCgBA,MCvBiL,EDuBjL,CACAC,KAAA,cACAC,MAAA,CACAC,MAAA,CACAC,KAAAC,OACAC,QAAA,IAEAC,UAAA,CACAH,KAAAC,OACAC,QAAA,gBAEAE,KAAA,CACAJ,KAAAK,OACAH,QAAA,M,eElBA,SAXgB,OACd,GCRW,WAAkB,IAAII,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,OAAOF,EAAII,GAAG,CAACC,YAAY,oCAAoCC,MAAM,CAAC,eAAeN,EAAIP,MAAM,aAAaO,EAAIP,MAAM,KAAO,OAAOc,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,MAAM,QAASD,EAAO,IAAI,OAAOR,EAAIU,QAAO,GAAO,CAACR,EAAG,MAAM,CAACI,MAAM,CAAC,KAAON,EAAIH,UAAU,MAAQG,EAAIF,KAAK,OAASE,EAAIF,KAAK,oBAAoB,0BAA0B,QAAU,MAAM,QAAU,oBAAoB,YAAY,WAAW,MAAQ,+BAA+B,CAACI,EAAG,OAAO,CAACI,MAAM,CAAC,EAAI,wOAAwON,EAAIW,GAAG,KAAKT,EAAG,OAAO,CAACI,MAAM,CAAC,EAAI,+5BAA+5B,eAAe,aACxtD,GACsB,IDSpB,EACA,KACA,KACA,MAI8B,Q,gFEiBhC,MCnCyK,EDmCzK,CACAf,KAAA,YAEAqB,WAAA,CACAC,YAAA,E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I,OAAOC,GAAG,WAAW,MAAO,CAAC1G,EAAG,eAAe,EAAE2G,OAAM,GAAM,CAACF,IAAI,SAASC,GAAG,WAAW,MAAO,CAAC1G,EAAG,IAAI,CAACI,MAAM,CAAC,KAAON,EAAIsB,aAAa,CAACpB,EAAG,WAAW,CAACF,EAAIW,GAAG,iBAAiBX,EAAI8G,GAAG9G,EAAI8F,EAAE,UAAW,kBAAkB,mBAAmB,GAAG,EAAEe,OAAM,OAAU,EAAEA,OAAM,MAC5qB,GACsB,IDUpB,EACA,KACA,WACA,MAI8B,O","sources":["webpack:///cospend/src/views/Dashboard.vue?vue&type=style&index=0&id=4f41722c&prod&scoped=true&lang=scss","webpack:///cospend/src/components/icons/CospendIcon.vue","webpack:///cospend/src/components/icons/CospendIcon.vue?vue&type=script&lang=js","webpack://cospend/./src/components/icons/CospendIcon.vue?bc3a","webpack://cospend/./src/components/icons/CospendIcon.vue?6f4f","webpack:///cospend/src/views/Dashboard.vue","webpack:///cospend/src/views/Dashboard.vue?vue&type=script&lang=js","webpack://cospend/./src/views/Dashboard.vue?45df","webpack://cospend/./src/views/Dashboard.vue?e0de","webpack://cospend/./src/views/Dashboard.vue?7277"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","<template>\n\t<span :aria-hidden=\"!title\"\n\t\t:aria-label=\"title\"\n\t\tclass=\"material-design-icon cospend-icon\"\n\t\trole=\"img\"\n\t\tv-bind=\"$attrs\"\n\t\t@click=\"$emit('click', $event)\">\n\t\t<svg\n\t\t\t:fill=\"fillColor\"\n\t\t\t:width=\"size\"\n\t\t\t:height=\"size\"\n\t\t\tenable-background=\"new 0 0 947.383 947.383\"\n\t\t\tversion=\"1.1\"\n\t\t\tviewBox=\"0 0 947.38 947.38\"\n\t\t\txml:space=\"preserve\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path d=\"m566.83 2.896-93.137 49.266-93.454-49.434c-17.958-9.499-38.475 7.352-32.646 26.814l50.675 169.2c24.891-7.776 50.084-11.69 75.425-11.69 24.992 0 49.839 3.814 74.396 11.378l51.356-168.62c5.936-19.482-14.611-36.438-32.615-26.915z\" />\n\t\t\t<path d=\"m782.74 722.66c0-230.95-79.884-515.21-310.83-515.21s-314.29 292.35-314.29 523.29c0 230.94 85.655 208.11 316.6 208.11 230.95 3e-3 308.52 14.762 308.52-216.18zm-275.1 50.106v41.03c0 13.261-10.751 24.011-24.012 24.011h-20.699c-13.262 0-24.012-10.75-24.012-24.011v-37.351c-28.598-3.5132-62.94-13.998-91.284-32.799-10.341-6.8598-13.319-21.063-6.6458-31.526l21.365-33.491c6.7448-10.57 20.756-13.856 31.409-7.2392 24.561 15.26 45.289 21.612 66.018 21.612 30.68 0 42.952-10.433 42.952-34.361 0-49.091-158.31-55.838-158.31-163.21 0-61.974 34.974-104.92 94.492-117.81v-40.814c0-12.702 10.297-23 23-23h22.722c12.703 0 23 10.297 23 23v39.586c30.098 4.7771 54.617 17.739 75.583 35.408 9.852 8.303 11.098 23.018 2.6576 32.751l-23.163 26.702c-7.7384 8.924-21.012 10.711-30.677 3.9261-15.733-11.045-30.691-16.567-47.716-16.567-26.383 0-39.269 7.3623-39.269 31.906 0 46.634 158.31 49.089 158.31 160.76-1e-3 59.521-31.295 106.15-95.72 121.49z\" stroke-width=\"1.15\" />\n\t\t</svg>\n\t</span>\n</template>\n\n<script>\nexport default {\n\tname: 'CospendIcon',\n\tprops: {\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\tfillColor: {\n\t\t\ttype: String,\n\t\t\tdefault: 'currentColor',\n\t\t},\n\t\tsize: {\n\t\t\ttype: Number,\n\t\t\tdefault: 24,\n\t\t},\n\t},\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CospendIcon.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CospendIcon.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CospendIcon.vue?vue&type=template&id=197833ec\"\nimport script from \"./CospendIcon.vue?vue&type=script&lang=js\"\nexport * from \"./CospendIcon.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 render(){var _vm=this,_c=_vm._self._c;return _c('span',_vm._b({staticClass:\"material-design-icon cospend-icon\",attrs:{\"aria-hidden\":!_vm.title,\"aria-label\":_vm.title,\"role\":\"img\"},on:{\"click\":function($event){return _vm.$emit('click', $event)}}},'span',_vm.$attrs,false),[_c('svg',{attrs:{\"fill\":_vm.fillColor,\"width\":_vm.size,\"height\":_vm.size,\"enable-background\":\"new 0 0 947.383 947.383\",\"version\":\"1.1\",\"viewBox\":\"0 0 947.38 947.38\",\"xml:space\":\"preserve\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"d\":\"m566.83 2.896-93.137 49.266-93.454-49.434c-17.958-9.499-38.475 7.352-32.646 26.814l50.675 169.2c24.891-7.776 50.084-11.69 75.425-11.69 24.992 0 49.839 3.814 74.396 11.378l51.356-168.62c5.936-19.482-14.611-36.438-32.615-26.915z\"}}),_vm._v(\" \"),_c('path',{attrs:{\"d\":\"m782.74 722.66c0-230.95-79.884-515.21-310.83-515.21s-314.29 292.35-314.29 523.29c0 230.94 85.655 208.11 316.6 208.11 230.95 3e-3 308.52 14.762 308.52-216.18zm-275.1 50.106v41.03c0 13.261-10.751 24.011-24.012 24.011h-20.699c-13.262 0-24.012-10.75-24.012-24.011v-37.351c-28.598-3.5132-62.94-13.998-91.284-32.799-10.341-6.8598-13.319-21.063-6.6458-31.526l21.365-33.491c6.7448-10.57 20.756-13.856 31.409-7.2392 24.561 15.26 45.289 21.612 66.018 21.612 30.68 0 42.952-10.433 42.952-34.361 0-49.091-158.31-55.838-158.31-163.21 0-61.974 34.974-104.92 94.492-117.81v-40.814c0-12.702 10.297-23 23-23h22.722c12.703 0 23 10.297 23 23v39.586c30.098 4.7771 54.617 17.739 75.583 35.408 9.852 8.303 11.098 23.018 2.6576 32.751l-23.163 26.702c-7.7384 8.924-21.012 10.711-30.677 3.9261-15.733-11.045-30.691-16.567-47.716-16.567-26.383 0-39.269 7.3623-39.269 31.906 0 46.634 158.31 49.089 158.31 160.76-1e-3 59.521-31.295 106.15-95.72 121.49z\",\"stroke-width\":\"1.15\"}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<DashboardWidget :items=\"items\"\n\t\t:show-more-url=\"showMoreUrl\"\n\t\t:show-more-text=\"title\"\n\t\t:loading=\"state === 'loading'\">\n\t\t<template #empty-content>\n\t\t\t<NcEmptyContent\n\t\t\t\t:name=\"t('cospend', 'No recent activity')\"\n\t\t\t\t:title=\"t('cospend', 'No recent activity')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<CospendIcon />\n\t\t\t\t</template>\n\t\t\t\t<template #action>\n\t\t\t\t\t<a :href=\"cospendUrl\">\n\t\t\t\t\t\t<NcButton>\n\t\t\t\t\t\t\t{{ t('cospend', 'Go to Cospend') }}\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</a>\n\t\t\t\t</template>\n\t\t\t</NcEmptyContent>\n\t\t</template>\n\t</DashboardWidget>\n</template>\n\n<script>\nimport CospendIcon from '../components/icons/CospendIcon.vue'\n\nimport axios from '@nextcloud/axios'\nimport { generateUrl, generateOcsUrl } from '@nextcloud/router'\nimport { getCurrentUser } from '@nextcloud/auth'\nimport moment from '@nextcloud/moment'\nimport { DashboardWidget } from '@nextcloud/vue-dashboard'\nimport NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'\nimport NcButton from '@nextcloud/vue/dist/Components/NcButton.js'\n\nexport default {\n\tname: 'Dashboard',\n\n\tcomponents: {\n\t\tCospendIcon,\n\t\tDashboardWidget,\n\t\tNcEmptyContent,\n\t\tNcButton,\n\t},\n\n\tprops: {\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tactivities: [],\n\t\t\tshowMoreUrl: generateUrl('/apps/activity') + '?filter=cospend',\n\t\t\tcospendUrl: generateUrl('/apps/cospend'),\n\t\t\tloop: null,\n\t\t\tstate: 'loading',\n\t\t\tdarkThemeColor: OCA.Accessibility?.theme === 'dark' ? '181818' : 'ffffff',\n\t\t\twindowVisibility: true,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\titems() {\n\t\t\treturn this.activities.map((a) => {\n\t\t\t\treturn {\n\t\t\t\t\tid: a.activity_id,\n\t\t\t\t\ttargetUrl: this.getTarget(a),\n\t\t\t\t\t// avatarUrl: this.getSimpleAvatarUrl(n),\n\t\t\t\t\tavatarUsername: this.getUserId(a),\n\t\t\t\t\tmainText: this.getMainText(a),\n\t\t\t\t\tsubText: this.getSubline(a),\n\t\t\t\t\t// overlayIconUrl: a.icon,\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tlastDate() {\n\t\t\tconst nbItems = this.activities.length\n\t\t\treturn (nbItems > 0) ? this.activities[0].datetime : null\n\t\t},\n\t\tlastMoment() {\n\t\t\treturn moment(this.lastDate)\n\t\t},\n\t\tlastActivityId() {\n\t\t\tconst nbItems = this.activities.length\n\t\t\treturn (nbItems > 0) ? this.activities[0].activity_id : 0\n\t\t},\n\t},\n\n\twatch: {\n\t\twindowVisibility(newValue) {\n\t\t\tif (newValue) {\n\t\t\t\tthis.launchLoop()\n\t\t\t} else {\n\t\t\t\tthis.stopLoop()\n\t\t\t}\n\t\t},\n\t},\n\n\tbeforeDestroy() {\n\t\tdocument.removeEventListener('visibilitychange', this.changeWindowVisibility)\n\t},\n\n\tbeforeMount() {\n\t\tthis.launchLoop()\n\t\tdocument.addEventListener('visibilitychange', this.changeWindowVisibility)\n\t},\n\n\tmounted() {\n\t},\n\n\tmethods: {\n\t\tchangeWindowVisibility() {\n\t\t\tthis.windowVisibility = !document.hidden\n\t\t},\n\t\tstopLoop() {\n\t\t\tclearInterval(this.loop)\n\t\t},\n\t\tlaunchLoop() {\n\t\t\tthis.loadActivity()\n\t\t\tthis.loop = setInterval(this.loadActivity, 60000)\n\t\t},\n\t\tasync loadActivity() {\n\t\t\tif (!this.windowVisibility) {\n\t\t\t\t// Dashboard is not visible, so don't update the activity list\n\t\t\t\treturn\n\t\t\t}\n\t\t\t// eslint-disable-next-line\n\t\t\tconst params = new URLSearchParams()\n\t\t\tparams.append('format', 'json')\n\t\t\tparams.append('limit', 50)\n\n\t\t\ttry {\n\t\t\t\tconst response = await axios.get(generateOcsUrl('apps/activity/api/v2/activity') + '/cospend' + '?' + params)\n\t\t\t\tthis.processActivities(response.data.ocs.data)\n\t\t\t\tthis.state = 'ok'\n\t\t\t} catch (error) {\n\t\t\t\tthis.state = 'error'\n\t\t\t}\n\t\t},\n\t\tprocessActivities(newActivities) {\n\t\t\tif (this.lastActivityId) {\n\t\t\t\t// just add those which are more recent than our most recent one\n\t\t\t\tlet i = 0\n\t\t\t\twhile (i < newActivities.length && this.lastActivityId < newActivities[i].activity_id) {\n\t\t\t\t\ti++\n\t\t\t\t}\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tconst toAdd = this.filterActivities(newActivities.slice(0, i))\n\t\t\t\t\tthis.activities = toAdd.concat(this.activities)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// first time we don't check the date\n\t\t\t\tthis.activities = this.filterActivities(newActivities)\n\t\t\t}\n\t\t},\n\t\tfilterActivities(activities) {\n\t\t\treturn activities.filter((a) => {\n\t\t\t\treturn a.user !== getCurrentUser().uid\n\t\t\t})\n\t\t},\n\t\tgetUserId(a) {\n\t\t\treturn a.user\n\t\t},\n\t\tgetTarget(a) {\n\t\t\tconst projectId = a.subject_rich[1].project.id\n\t\t\treturn generateUrl('/apps/cospend?project=' + projectId)\n\t\t},\n\t\tgetSubline(a) {\n\t\t\tconst projectName = a.subject_rich[1].project.name\n\t\t\tlet char\n\t\t\tif (a.link === 'project_share') {\n\t\t\t\tchar = '🔗'\n\t\t\t} else if (a.link === 'project_unshare') {\n\t\t\t\tchar = '🛇'\n\t\t\t} else if (a.link === 'bill_create') {\n\t\t\t\tchar = '➕'\n\t\t\t} else if (a.link === 'bill_delete') {\n\t\t\t\tchar = '🗑️'\n\t\t\t} else if (a.link === 'bill_update') {\n\t\t\t\tchar = '️✏️'\n\t\t\t}\n\t\t\treturn char + ' ' + projectName\n\t\t},\n\t\tgetMainText(a) {\n\t\t\tif (a.link === 'project_share') {\n\t\t\t\tconst projectName = a.subject_rich[1].project.name\n\t\t\t\tconst userName = a.subject_rich[1].user.name\n\t\t\t\tconst whoName = a.subject_rich[1].who.name\n\t\t\t\treturn t('cospend', '{user} shared {project} with {who}', { user: userName, project: projectName, who: whoName })\n\t\t\t} else if (a.link === 'project_unshare') {\n\t\t\t\tconst projectName = a.subject_rich[1].project.name\n\t\t\t\tconst userName = a.subject_rich[1].user.name\n\t\t\t\tconst whoName = a.subject_rich[1].who.name\n\t\t\t\treturn t('cospend', '{user} unshared {project} with {who}', { user: userName, project: projectName, who: whoName })\n\t\t\t} else if (['bill_create', 'bill_delete', 'bill_update'].includes(a.link)) {\n\t\t\t\tconst userName = a.subject_rich[1].user.name\n\t\t\t\tconst billName = a.subject_rich[1].bill.name\n\t\t\t\tif (a.link === 'bill_create') {\n\t\t\t\t\treturn t('cospend', '{user} created {bill}', { user: userName, bill: billName })\n\t\t\t\t} else if (a.link === 'bill_delete') {\n\t\t\t\t\treturn t('cospend', '{user} deleted {bill}', { user: userName, bill: billName })\n\t\t\t\t} else if (a.link === 'bill_update') {\n\t\t\t\t\treturn t('cospend', '{user} edited {bill}', { user: userName, bill: billName })\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n// nothing\n</style>\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js\"","\n      import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=style&index=0&id=4f41722c&prod&scoped=true&lang=scss\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/sass-loader/dist/cjs.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=style&index=0&id=4f41722c&prod&scoped=true&lang=scss\";\n       export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=4f41722c&scoped=true\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=js\"\nimport style0 from \"./Dashboard.vue?vue&type=style&index=0&id=4f41722c&prod&scoped=true&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  \"4f41722c\",\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('DashboardWidget',{attrs:{\"items\":_vm.items,\"show-more-url\":_vm.showMoreUrl,\"show-more-text\":_vm.title,\"loading\":_vm.state === 'loading'},scopedSlots:_vm._u([{key:\"empty-content\",fn:function(){return [_c('NcEmptyContent',{attrs:{\"name\":_vm.t('cospend', 'No recent activity'),\"title\":_vm.t('cospend', 'No recent activity')},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('CospendIcon')]},proxy:true},{key:\"action\",fn:function(){return [_c('a',{attrs:{\"href\":_vm.cospendUrl}},[_c('NcButton',[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('cospend', 'Go to Cospend'))+\"\\n\\t\\t\\t\\t\\t\")])],1)]},proxy:true}])})]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["___CSS_LOADER_EXPORT___","push","module","id","name","props","title","type","String","default","fillColor","size","Number","_vm","this","_c","_self","_b","staticClass","attrs","on","$event","$emit","$attrs","_v","components","CospendIcon","DashboardWidget","NcEmptyContent","NcButton","required","data","activities","showMoreUrl","generateUrl","cospendUrl","loop","state","darkThemeColor","OCA","Accessibility","theme","windowVisibility","computed","items","map","a","activity_id","targetUrl","getTarget","avatarUsername","getUserId","mainText","getMainText","subText","getSubline","lastDate","length","datetime","lastMoment","moment","lastActivityId","watch","newValue","launchLoop","stopLoop","beforeDestroy","document","removeEventListener","changeWindowVisibility","beforeMount","addEventListener","mounted","methods","hidden","clearInterval","loadActivity","setInterval","params","URLSearchParams","append","response","axios","get","generateOcsUrl","processActivities","ocs","error","newActivities","i","toAdd","filterActivities","slice","concat","filter","user","getCurrentUser","uid","projectId","subject_rich","project","projectName","char","link","userName","whoName","who","t","includes","billName","bill","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","scopedSlots","_u","key","fn","proxy","_s"],"sourceRoot":""}

Zerion Mini Shell 1.0