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vue/./src/components/account/register.vue?25df","webpack://portal-vue/./src/components/account/register.ts","webpack://portal-vue/./src/components/account/register.ts?3088","webpack://portal-vue/./src/components/account/register.vue","webpack://portal-vue/./src/components/connectors/connectors.vue?20ba","webpack://portal-vue/./src/components/connectors/connectors.ts","webpack://portal-vue/./src/components/connectors/connectors.ts?be4d","webpack://portal-vue/./src/components/connectors/connectors.vue","webpack://portal-vue/./src/components/distribution/distribution-tree-amount.vue?196b","webpack://portal-vue/./src/components/distribution/distribution-tree-amount.ts","webpack://portal-vue/./src/components/distribution/distribution-tree-amount.ts?4b3f","webpack://portal-vue/./src/components/distribution/distribution-tree-amount.vue","webpack://portal-vue/./src/components/formatting/number-formatter.vue?df1f","webpack://portal-vue/./src/components/formatting/number-formatter.ts","webpack://portal-vue/./src/components/formatting/number-formatter.ts?8792","webpack://portal-vue/./src/components/formatting/number-formatter.vue","webpack://portal-vue/./src/components/generic-search/generic-search.vue?4dcd","webpack://portal-vue/./src/components/generic-search/generic-search.ts","webpack://portal-vue/./src/components/generic-search/generic-search.ts?7b1a","webpack://portal-vue/./src/components/generic-search/generic-search.vue","webpack://portal-vue/./src/components/graph/svg-graph.vue?1abb","webpack://portal-vue/./src/components/graph/svg-graph.ts","webpack://portal-vue/./src/components/graph/svg-graph.ts?0bfe","webpack://portal-vue/./src/components/graph/svg-graph.vue","webpack://portal-vue/./src/components/grid/grid-actions.vue?596c","webpack://portal-vue/./src/components/grid/grid-actions.ts","webpack://portal-vue/./src/components/grid/grid-actions.ts?34eb","webpack://portal-vue/./src/components/grid/grid-actions.vue","webpack://portal-vue/./src/components/grid/grid-amount-left-filter.vue?1262","webpack://portal-vue/./src/components/grid/grid-amount-left-filter.ts","webpack://portal-vue/./src/components/grid/grid-amount-left-filter.ts?c125","webpack://portal-vue/./src/components/grid/grid-amount-left-filter.vue","webpack://portal-vue/./src/components/grid/grid-html-renderer.vue?66d1","webpack://portal-vue/./src/components/grid/grid-html-renderer.ts","webpack://portal-vue/./src/components/grid/grid-html-renderer.ts?d868","webpack://portal-vue/./src/components/grid/grid-html-renderer.vue","webpack://portal-vue/./src/components/grid/grid-label-value.vue?f784","webpack://portal-vue/./src/components/grid/grid-label-value.ts","webpack://portal-vue/./src/components/grid/grid-label-value.ts?e070","webpack://portal-vue/./src/components/grid/grid-label-value.vue","webpack://portal-vue/./src/components/grid/grid-list.vue?b7a8","webpack://portal-vue/./src/components/grid/grid-list.ts","webpack://portal-vue/./src/components/grid/grid-list.ts?b5f2","webpack://portal-vue/./src/components/grid/grid-list.vue","webpack://portal-vue/./src/components/grid/grid-numeric-editor.vue?9b74","webpack://portal-vue/./src/components/grid/grid-numeric-editor.ts","webpack://portal-vue/./src/components/grid/grid-numeric-editor.ts?5fd1","webpack://portal-vue/./src/components/grid/grid-numeric-editor.vue","webpack://portal-vue/./src/components/grid/grid-percentage.vue?885b","webpack://portal-vue/./src/components/grid/grid-percentage.ts","webpack://portal-vue/./src/components/grid/grid-percentage.ts?b75b","webpack://portal-vue/./src/components/grid/grid-percentage.vue","webpack://portal-vue/./src/components/grid/grid-period-range-filter.vue?7401","webpack://portal-vue/./src/components/grid/grid-period-range-filter.ts","webpack://portal-vue/./src/components/grid/grid-period-range-filter.ts?7104","webpack://portal-vue/./src/components/grid/grid-period-range-filter.vue","webpack://portal-vue/./src/components/grid/grid-popover-element.vue?7c5d","webpack://portal-vue/./src/components/grid/grid-popover-element.ts","webpack://portal-vue/./src/components/grid/grid-popover-element.ts?40ab","webpack://portal-vue/./src/components/grid/grid-popover-element.vue","webpack://portal-vue/./src/components/grid/grid-relation-settings.vue?0293","webpack://portal-vue/./src/components/grid/grid-relation-settings.ts","webpack://portal-vue/./src/components/grid/grid-relation-settings.ts?ca16","webpack://portal-vue/./src/components/grid/grid-relation-settings.vue","webpack://portal-vue/./src/components/grid/grid-router-link.vue?196e","webpack://portal-vue/./src/components/grid/grid-router-link.ts","webpack://portal-vue/./src/components/grid/grid-router-link.ts?95f5","webpack://portal-vue/./src/components/grid/grid-router-link.vue","webpack://portal-vue/./src/components/grid/grid-transfer-direction.vue?5802","webpack://portal-vue/./src/components/grid/grid-transfer-direction.ts","webpack://portal-vue/./src/components/grid/grid-transfer-direction.ts?6da0","webpack://portal-vue/./src/components/grid/grid-transfer-direction.vue","webpack://portal-vue/./src/components/grid/grid-wrapper.vue?75da","webpack://portal-vue/./src/components/grid/grid-wrapper.ts","webpack://portal-vue/./src/components/grid/grid-wrapper.ts?0fa4","webpack://portal-vue/./src/components/grid/grid-wrapper.vue","webpack://portal-vue/./src/components/insights/ecosystem-cash-totals.vue?048a","webpack://portal-vue/./src/components/insights/ecosystem-cash-totals.ts","webpack://portal-vue/./src/components/insights/ecosystem-cash-totals.ts?bab1","webpack://portal-vue/./src/components/insights/ecosystem-cash-totals.vue","webpack://portal-vue/./src/components/insights/ecosystem-co2-totals.vue?e89b","webpack://portal-vue/./src/components/insights/ecosystem-co2-totals.ts","webpack://portal-vue/./src/components/insights/ecosystem-co2-totals.ts?7461","webpack://portal-vue/./src/components/insights/ecosystem-co2-totals.vue","webpack://portal-vue/./src/components/insights/ecosystem-fearless-totals.vue?551c","webpack://portal-vue/./src/components/insights/ecosystem-fearless-totals.ts","webpack://portal-vue/./src/components/insights/ecosystem-fearless-totals.ts?922c","webpack://portal-vue/./src/components/insights/ecosystem-fearless-totals.vue","webpack://portal-vue/./src/components/insights/ecosystem-finance-totals.vue?ecc4","webpack://portal-vue/./src/components/insights/ecosystem-finance-totals.ts","webpack://portal-vue/./src/components/insights/ecosystem-finance-totals.ts?2c15","webpack://portal-vue/./src/components/insights/ecosystem-finance-totals.vue","webpack://portal-vue/./src/components/map/Map.vue?ce14","webpack://portal-vue/./src/components/map/Map.js","webpack://portal-vue/./src/components/map/Map.js?4061","webpack://portal-vue/./src/components/map/Map.vue","webpack://portal-vue/./src/components/member/member-name-native.vue?bf54","webpack://portal-vue/./src/components/member/member-name-native.ts","webpack://portal-vue/./src/components/member/member-name-native.ts?74cc","webpack://portal-vue/./src/components/member/member-name-native.vue","webpack://portal-vue/./src/components/member/member-name.vue?cc41","webpack://portal-vue/./src/components/member/member-name.ts","webpack://portal-vue/./src/components/member/member-name.ts?0c7f","webpack://portal-vue/./src/components/member/member-name.vue","webpack://portal-vue/./src/components/member/members.vue?3cce","webpack://portal-vue/./src/components/member/members.ts","webpack://portal-vue/./src/components/member/members.ts?9b7f","webpack://portal-vue/./src/components/member/members.vue","webpack://portal-vue/./src/components/member/memberships.vue?5685","webpack://portal-vue/./src/components/member/memberships.ts","webpack://portal-vue/./src/components/member/memberships.ts?7d68","webpack://portal-vue/./src/components/member/memberships.vue","webpack://portal-vue/./src/components/modals/amortize-modal.vue?49fe","webpack://portal-vue/./src/components/modals/amortize-modal.ts","webpack://portal-vue/./src/components/modals/amortize-modal.ts?355c","webpack://portal-vue/./src/components/modals/amortize-modal.vue","webpack://portal-vue/./src/components/modals/are-you-sure-modal.vue?5dc7","webpack://portal-vue/./src/components/modals/are-you-sure-modal.ts","webpack://portal-vue/./src/components/modals/are-you-sure-modal.ts?441e","webpack://portal-vue/./src/components/modals/are-you-sure-modal.vue","webpack://portal-vue/./src/components/modals/change-legal-entity-reference-modal.vue?06e3","webpack://portal-vue/./src/components/modals/change-legal-entity-reference-modal.ts","webpack://portal-vue/./src/components/modals/change-legal-entity-reference-modal.ts?44a5","webpack://portal-vue/./src/components/modals/change-legal-entity-reference-modal.vue","webpack://portal-vue/./src/components/modals/create-ledger-account-modal.vue?e46d","webpack://portal-vue/./src/components/modals/create-ledger-account-modal.ts","webpack://portal-vue/./src/components/modals/create-ledger-account-modal.ts?0a32","webpack://portal-vue/./src/components/modals/create-ledger-account-modal.vue","webpack://portal-vue/./src/components/modals/ecosystem-switcher-modal.vue?4aa6","webpack://portal-vue/./src/components/modals/ecosystem-switcher-modal.ts","webpack://portal-vue/./src/components/modals/ecosystem-switcher-modal.ts?6879","webpack://portal-vue/./src/components/modals/ecosystem-switcher-modal.vue","webpack://portal-vue/./src/components/modals/energy-dedication-modal.vue?831a","webpack://portal-vue/./src/components/modals/energy-dedication-modal.ts","webpack://portal-vue/./src/components/modals/energy-dedication-modal.ts?2e97","webpack://portal-vue/./src/components/modals/energy-dedication-modal.vue","webpack://portal-vue/./src/components/modals/import-modal.vue?5445","webpack://portal-vue/./src/components/modals/import-modal.ts","webpack://portal-vue/./src/components/modals/import-modal.ts?eb65","webpack://portal-vue/./src/components/modals/import-modal.vue","webpack://portal-vue/./src/components/modals/move-pl-modal.vue?c7e0","webpack://portal-vue/./src/components/modals/move-pl-modal.ts","webpack://portal-vue/./src/components/modals/move-pl-modal.ts?0a83","webpack://portal-vue/./src/components/modals/move-pl-modal.vue","webpack://portal-vue/./src/components/modals/move-to-account-modal.vue?006f","webpack://portal-vue/./src/components/modals/move-to-account-modal.ts","webpack://portal-vue/./src/components/modals/move-to-account-modal.ts?4356","webpack://portal-vue/./src/components/modals/move-to-account-modal.vue","webpack://portal-vue/./src/components/modals/relation-settings-modal.vue?eb3c","webpack://portal-vue/./src/components/modals/relation-settings-modal.ts","webpack://portal-vue/./src/components/modals/relation-settings-modal.ts?defe","webpack://portal-vue/./src/components/modals/relation-settings-modal.vue","webpack://portal-vue/./src/components/modals/save-attributions-modal.vue?f2ad","webpack://portal-vue/./src/components/modals/save-attributions-modal.ts","webpack://portal-vue/./src/components/modals/save-attributions-modal.ts?ea0b","webpack://portal-vue/./src/components/modals/save-attributions-modal.vue","webpack://portal-vue/./src/components/modals/transfer-modal.vue?c8f0","webpack://portal-vue/./src/components/modals/transfer-modal.ts","webpack://portal-vue/./src/components/modals/transfer-modal.ts?1c7f","webpack://portal-vue/./src/components/modals/transfer-modal.vue","webpack://portal-vue/./src/components/modals/transfer-request-modal.vue?e790","webpack://portal-vue/./src/components/modals/transfer-request-modal.ts","webpack://portal-vue/./src/components/modals/transfer-request-modal.ts?8480","webpack://portal-vue/./src/components/modals/transfer-request-modal.vue","webpack://portal-vue/./src/components/navigation/bar.vue?3bde","webpack://portal-vue/./src/store/modules/notification.ts","webpack://portal-vue/./src/components/navigation/bar.ts","webpack://portal-vue/./src/components/navigation/bar.ts?3a2b","webpack://portal-vue/./src/components/navigation/bar.vue","webpack://portal-vue/./src/components/navigation/breadcrumb.vue?02f4","webpack://portal-vue/./src/components/navigation/breadcrumb.ts","webpack://portal-vue/./src/components/navigation/breadcrumb.ts?3fe6","webpack://portal-vue/./src/components/navigation/breadcrumb.vue","webpack://portal-vue/./src/components/navigation/profile.vue?6acf","webpack://portal-vue/./src/components/navigation/profile.ts","webpack://portal-vue/./src/components/navigation/profile.ts?4a10","webpack://portal-vue/./src/components/navigation/profile.vue","webpack://portal-vue/./src/components/navigation/team.vue?4827","webpack://portal-vue/./src/components/navigation/team.ts","webpack://portal-vue/./src/components/navigation/team.ts?98a8","webpack://portal-vue/./src/components/navigation/team.vue","webpack://portal-vue/./src/components/notification/notifications.vue?9593","webpack://portal-vue/./src/components/notification/item.vue?60ae","webpack://portal-vue/./src/components/notification/general.vue?3b3b","webpack://portal-vue/./src/components/notification/general.ts","webpack://portal-vue/./src/components/notification/general.ts?d706","webpack://portal-vue/./src/components/notification/general.vue","webpack://portal-vue/./src/components/notification/transfer.vue?be5f","webpack://portal-vue/./src/components/notification/transfer.ts","webpack://portal-vue/./src/components/notification/transfer.ts?815e","webpack://portal-vue/./src/components/notification/transfer.vue","webpack://portal-vue/./src/components/notification/item.ts","webpack://portal-vue/./src/components/notification/item.ts?f90c","webpack://portal-vue/./src/components/notification/item.vue","webpack://portal-vue/./src/components/notification/toast.vue?4204","webpack://portal-vue/src/components/notification/toast.vue","webpack://portal-vue/./src/components/notification/toast.vue?17e4","webpack://portal-vue/./src/components/notification/toast.vue","webpack://portal-vue/./src/components/notification/notifications.ts","webpack://portal-vue/./src/components/notification/notifications.ts?111e","webpack://portal-vue/./src/components/notification/notifications.vue","webpack://portal-vue/./src/components/period filter/period-filter.vue?b811","webpack://portal-vue/./src/components/period filter/period-filter.ts","webpack://portal-vue/./src/components/period filter/period-filter.ts?88c5","webpack://portal-vue/./src/components/period filter/period-filter.vue","webpack://portal-vue/./src/components/roles/roles-settings.vue?ee01","webpack://portal-vue/./src/extensions/stringExtensions.ts","webpack://portal-vue/./src/components/roles/roles-settings.ts","webpack://portal-vue/./src/components/roles/roles-settings.ts?d9af","webpack://portal-vue/./src/components/roles/roles-settings.vue","webpack://portal-vue/./src/components/side-actions/create-or-edit-template-action/create-or-edit-template-action.vue?cfaa","webpack://portal-vue/./src/components/side-actions/create-or-edit-template-action/create-or-edit-template-action.ts","webpack://portal-vue/./src/components/side-actions/create-or-edit-template-action/create-or-edit-template-action.ts?15ca","webpack://portal-vue/./src/components/side-actions/create-or-edit-template-action/create-or-edit-template-action.vue","webpack://portal-vue/./src/components/side-actions/ecosystem/create-ecosystem-action.vue?e392","webpack://portal-vue/./src/components/side-actions/ecosystem/create-ecosystem-action.ts","webpack://portal-vue/./src/components/side-actions/ecosystem/create-ecosystem-action.ts?d1e0","webpack://portal-vue/./src/components/side-actions/ecosystem/create-ecosystem-action.vue","webpack://portal-vue/./src/components/side-actions/views/create-or-edit-view-action.vue?e70b","webpack://portal-vue/./src/components/side-actions/views/create-or-edit-view-action.ts","webpack://portal-vue/./src/components/side-actions/views/create-or-edit-view-action.ts?8e53","webpack://portal-vue/./src/components/side-actions/views/create-or-edit-view-action.vue","webpack://portal-vue/./src/components/spinner/spinner.vue?bb8c","webpack://portal-vue/./src/components/spinner/spinner.ts","webpack://portal-vue/./src/components/spinner/spinner.ts?b074","webpack://portal-vue/./src/components/spinner/spinner.vue","webpack://portal-vue/./src/components/transfer/recurring-transfers-grid.vue?e571","webpack://portal-vue/./src/components/transfer/recurring-transfers-grid.ts","webpack://portal-vue/./src/components/transfer/recurring-transfers-grid.ts?e3d7","webpack://portal-vue/./src/components/transfer/recurring-transfers-grid.vue","webpack://portal-vue/./src/components/translate/button.vue?10e7","webpack://portal-vue/./src/components/translate/button.ts","webpack://portal-vue/./src/components/translate/button.ts?3604","webpack://portal-vue/./src/components/translate/button.vue","webpack://portal-vue/./src/components/translate/text-inline.vue?bc67","webpack://portal-vue/./src/components/translate/text-inline.ts","webpack://portal-vue/./src/components/translate/text-inline.ts?c377","webpack://portal-vue/./src/components/translate/text-inline.vue","webpack://portal-vue/./src/components/translate/text.vue?adf3","webpack://portal-vue/./src/components/translate/text.ts","webpack://portal-vue/./src/components/translate/text.ts?b4fa","webpack://portal-vue/./src/components/translate/text.vue","webpack://portal-vue/./src/modules/cells/views/cells.vue?1adb","webpack://portal-vue/./src/modules/cells/models/MapView.ts","webpack://portal-vue/./src/modules/cells/components/prd-svg-canvas.vue?583b","webpack://portal-vue/./src/modules/cells/components/prd-svg-canvas.ts","webpack://portal-vue/./src/modules/cells/svg/HorizontalAlign.ts","webpack://portal-vue/./src/modules/cells/components/prd-svg-canvas.ts?532e","webpack://portal-vue/./src/modules/cells/components/prd-svg-canvas.vue","webpack://portal-vue/./src/modules/cells/svg/SvgRender.ts","webpack://portal-vue/./src/modules/cells/svg/VerticalAlign.ts","webpack://portal-vue/./src/modules/cells/svg/SvgHelper.ts","webpack://portal-vue/./src/modules/cells/models/CellScore.ts","webpack://portal-vue/./src/modules/cells/models/MapConfig.ts","webpack://portal-vue/./src/modules/cells/models/CellColor.ts","webpack://portal-vue/./src/modules/cells/models/CellIndicatorScore.ts","webpack://portal-vue/./src/modules/cells/models/MapCellData.ts","webpack://portal-vue/./src/modules/cells/svg/SvgRenderInfoCell.ts","webpack://portal-vue/./src/modules/cells/svg/SvgLabel.ts","webpack://portal-vue/./src/modules/cells/svg/SvgCircleCell.ts","webpack://portal-vue/./src/modules/cells/svg/SvgRenderCellSpace.ts","webpack://portal-vue/./src/modules/cells/models/MapData.ts","webpack://portal-vue/./src/models/Finance/Api/GroupResultItem.ts","webpack://portal-vue/./src/modules/cells/models/InsightGroupTotals.ts","webpack://portal-vue/./src/modules/cells/store/map.ts","webpack://portal-vue/./src/modules/cells/svg/SvgAnimate.ts","webpack://portal-vue/./src/modules/cells/components/finance-totals.vue?8a9b","webpack://portal-vue/./src/helpers/GridHelper.ts","webpack://portal-vue/./src/modules/cells/components/finance-totals.ts","webpack://portal-vue/./src/modules/cells/components/finance-totals.ts?5f40","webpack://portal-vue/./src/modules/cells/components/finance-totals.vue","webpack://portal-vue/./src/modules/cells/views/cells.ts","webpack://portal-vue/./src/modules/cells/views/cells.ts?28bd","webpack://portal-vue/./src/modules/cells/views/cells.vue","webpack://portal-vue/./src/pages/account/invited/invited.vue?da40","webpack://portal-vue/./src/models/Invite.ts","webpack://portal-vue/./src/models/InviteResponse.ts","webpack://portal-vue/./src/models/Validator/Digit.ts","webpack://portal-vue/./src/models/Validator/LowerCase.ts","webpack://portal-vue/./src/models/Validator/MinLength.ts","webpack://portal-vue/./src/models/Validator/NonAlpha.ts","webpack://portal-vue/./src/models/Validator/UpperCase.ts","webpack://portal-vue/./src/models/Policy/Policies.ts","webpack://portal-vue/./src/helpers/PolicyHelper.ts","webpack://portal-vue/./src/pages/account/invited/invited.ts","webpack://portal-vue/./src/pages/account/invited/invited.ts?adab","webpack://portal-vue/./src/pages/account/invited/invited.vue","webpack://portal-vue/./src/pages/account/profile/profile.vue?31cb","webpack://portal-vue/./src/pages/account/profile/profile.ts","webpack://portal-vue/./src/pages/account/profile/profile.ts?8cde","webpack://portal-vue/./src/pages/account/profile/profile.vue","webpack://portal-vue/./src/pages/dashboard/me.vue?c9f1","webpack://portal-vue/./src/pages/dashboard/me.ts","webpack://portal-vue/./src/pages/dashboard/me.ts?8df7","webpack://portal-vue/./src/pages/dashboard/me.vue","webpack://portal-vue/./src/pages/ecosystem/create-team.vue?ccc2","webpack://portal-vue/./src/pages/ecosystem/create-team.ts","webpack://portal-vue/./src/pages/ecosystem/create-team.ts?2164","webpack://portal-vue/./src/pages/ecosystem/create-team.vue","webpack://portal-vue/./src/pages/ecosystem/directory/components/groups.vue?06dd","webpack://portal-vue/./src/pages/ecosystem/directory/components/groups.ts","webpack://portal-vue/./src/pages/ecosystem/directory/components/groups.ts?6579","webpack://portal-vue/./src/pages/ecosystem/directory/components/groups.vue","webpack://portal-vue/./src/pages/ecosystem/directory/components/map.vue?f63e","webpack://portal-vue/./src/pages/ecosystem/directory/components/map.ts","webpack://portal-vue/./src/pages/ecosystem/directory/components/map.ts?576e","webpack://portal-vue/./src/pages/ecosystem/directory/components/map.vue","webpack://portal-vue/./src/pages/ecosystem/directory/components/members.vue?e173","webpack://portal-vue/./src/pages/ecosystem/directory/components/members.ts","webpack://portal-vue/./src/pages/ecosystem/directory/components/members.ts?8817","webpack://portal-vue/./src/pages/ecosystem/directory/components/members.vue","webpack://portal-vue/./src/pages/ecosystem/directory/components/people.vue?b220","webpack://portal-vue/./src/pages/ecosystem/directory/components/people.ts","webpack://portal-vue/./src/pages/ecosystem/directory/components/people.ts?809e","webpack://portal-vue/./src/pages/ecosystem/directory/components/people.vue","webpack://portal-vue/./src/pages/ecosystem/directory/components/teams.vue?6003","webpack://portal-vue/./src/pages/ecosystem/directory/components/teams.ts","webpack://portal-vue/./src/pages/ecosystem/directory/components/teams.ts?8724","webpack://portal-vue/./src/pages/ecosystem/directory/components/teams.vue","webpack://portal-vue/./src/pages/ecosystem/directory/directory.vue?a60e","webpack://portal-vue/./src/pages/ecosystem/directory/directory.ts","webpack://portal-vue/./src/pages/ecosystem/directory/directory.ts?2c3a","webpack://portal-vue/./src/pages/ecosystem/directory/directory.vue","webpack://portal-vue/./src/pages/ecosystem/finances.vue?7863","webpack://portal-vue/./src/pages/ecosystem/finances.ts","webpack://portal-vue/./src/pages/ecosystem/finances.ts?34ad","webpack://portal-vue/./src/pages/ecosystem/finances.vue","webpack://portal-vue/./src/pages/ecosystem/insights.vue?bee7","webpack://portal-vue/./src/pages/ecosystem/insights.ts","webpack://portal-vue/./src/pages/ecosystem/insights.ts?5ac6","webpack://portal-vue/./src/pages/ecosystem/insights.vue","webpack://portal-vue/./src/pages/ecosystem/overview.vue?f856","webpack://portal-vue/./src/pages/ecosystem/overview.ts","webpack://portal-vue/./src/pages/ecosystem/overview.ts?d6c3","webpack://portal-vue/./src/pages/ecosystem/overview.vue","webpack://portal-vue/./src/pages/ecosystem/settings/components/cross-legal-transactions.vue?cf7f","webpack://portal-vue/./src/pages/ecosystem/settings/components/cross-legal-transactions.ts","webpack://portal-vue/./src/pages/ecosystem/settings/components/cross-legal-transactions.ts?e9e5","webpack://portal-vue/./src/pages/ecosystem/settings/components/cross-legal-transactions.vue","webpack://portal-vue/./src/pages/ecosystem/settings/components/insight-views.vue?1f26","webpack://portal-vue/./src/pages/ecosystem/settings/components/insight-views.ts","webpack://portal-vue/./src/pages/ecosystem/settings/components/insight-views.ts?c5cb","webpack://portal-vue/./src/pages/ecosystem/settings/components/insight-views.vue","webpack://portal-vue/./src/pages/ecosystem/settings/components/ledger-accounts.vue?0433","webpack://portal-vue/./src/pages/ecosystem/settings/components/ledger-accounts.ts","webpack://portal-vue/./src/pages/ecosystem/settings/components/ledger-accounts.ts?aee3","webpack://portal-vue/./src/pages/ecosystem/settings/components/ledger-accounts.vue","webpack://portal-vue/./src/pages/ecosystem/settings/components/relations.vue?265e","webpack://portal-vue/./src/pages/ecosystem/settings/components/relations.ts","webpack://portal-vue/./src/pages/ecosystem/settings/components/relations.ts?4bb8","webpack://portal-vue/./src/pages/ecosystem/settings/components/relations.vue","webpack://portal-vue/./src/pages/ecosystem/settings/settings.vue?60ee","webpack://portal-vue/./src/pages/ecosystem/settings/settings.ts","webpack://portal-vue/./src/pages/ecosystem/settings/settings.ts?81aa","webpack://portal-vue/./src/pages/ecosystem/settings/settings.vue","webpack://portal-vue/./src/pages/ecosystem/subscription/subscription.vue?a171","webpack://portal-vue/./src/pages/ecosystem/subscription/subscription.ts","webpack://portal-vue/./src/pages/ecosystem/subscription/subscription.ts?d57e","webpack://portal-vue/./src/pages/ecosystem/subscription/subscription.vue","webpack://portal-vue/./src/pages/ecosystem/svg-graph.vue?f841","webpack://portal-vue/./src/pages/ecosystem/svg-graph.ts","webpack://portal-vue/./src/pages/ecosystem/svg-graph.ts?c485","webpack://portal-vue/./src/pages/ecosystem/svg-graph.vue","webpack://portal-vue/./src/pages/error/error.vue?e51c","webpack://portal-vue/./src/pages/error/error.ts","webpack://portal-vue/./src/pages/error/error.ts?1897","webpack://portal-vue/./src/pages/error/error.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-ambitions.vue?adf3","webpack://portal-vue/./src/models/Finance/Ambition.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-ambitions.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-ambitions.ts?79a6","webpack://portal-vue/./src/pages/groups/details/components/group-detail-ambitions.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-expense.vue?27d0","webpack://portal-vue/./src/pages/groups/details/components/group-detail-expense.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-expense.ts?8245","webpack://portal-vue/./src/pages/groups/details/components/group-detail-expense.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-income.vue?982a","webpack://portal-vue/./src/pages/groups/details/components/group-detail-income.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-income.ts?a41c","webpack://portal-vue/./src/pages/groups/details/components/group-detail-income.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-insights.vue?3c50","webpack://portal-vue/./src/pages/groups/details/components/group-detail-insights.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-insights.ts?4bb5","webpack://portal-vue/./src/pages/groups/details/components/group-detail-insights.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-members.vue?dc08","webpack://portal-vue/./src/pages/groups/details/components/group-detail-members.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-members.ts?f2f9","webpack://portal-vue/./src/pages/groups/details/components/group-detail-members.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-overview.vue?1203","webpack://portal-vue/./src/pages/groups/details/components/group-detail-overview.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-overview.ts?b5ad","webpack://portal-vue/./src/pages/groups/details/components/group-detail-overview.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-settings.vue?664a","webpack://portal-vue/./src/models/FinancialGroupActivity.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-settings.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-settings.ts?cfce","webpack://portal-vue/./src/pages/groups/details/components/group-detail-settings.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-transfers.vue?ecb4","webpack://portal-vue/./src/models/Finance/TransferRequest.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-transfers.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-transfers.ts?5e44","webpack://portal-vue/./src/pages/groups/details/components/group-detail-transfers.vue","webpack://portal-vue/./src/pages/groups/details/components/group-detail-workspace.vue?d9af","webpack://portal-vue/./src/pages/groups/details/components/group-detail-workspace.ts","webpack://portal-vue/./src/pages/groups/details/components/group-detail-workspace.ts?f0eb","webpack://portal-vue/./src/pages/groups/details/components/group-detail-workspace.vue","webpack://portal-vue/./src/pages/groups/details/details.vue?2f20","webpack://portal-vue/./src/pages/groups/details/details.ts","webpack://portal-vue/./src/pages/groups/details/details.ts?5e68","webpack://portal-vue/./src/pages/groups/details/details.vue","webpack://portal-vue/./src/pages/me/directory/components/groups.vue?0a3b","webpack://portal-vue/./src/pages/me/directory/components/groups.ts","webpack://portal-vue/./src/pages/me/directory/components/groups.ts?af65","webpack://portal-vue/./src/pages/me/directory/components/groups.vue","webpack://portal-vue/./src/pages/me/directory/components/members.vue?4069","webpack://portal-vue/./src/pages/me/directory/components/members.ts","webpack://portal-vue/./src/pages/me/directory/components/members.ts?81ed","webpack://portal-vue/./src/pages/me/directory/components/members.vue","webpack://portal-vue/./src/pages/notfound/notfound.vue?2278","webpack://portal-vue/./src/pages/notfound/notfound.ts","webpack://portal-vue/./src/pages/notfound/notfound.ts?bf87","webpack://portal-vue/./src/pages/notfound/notfound.vue","webpack://portal-vue/./src/pages/settings/translate.vue?a1d0","webpack://portal-vue/./src/pages/settings/translate-group.vue?c1db","webpack://portal-vue/./src/pages/settings/translate-group.ts","webpack://portal-vue/./src/pages/settings/translate-group.ts?d3ae","webpack://portal-vue/./src/pages/settings/translate-group.vue","webpack://portal-vue/./src/pages/settings/translate.ts","webpack://portal-vue/./src/pages/settings/translate.ts?8969","webpack://portal-vue/./src/pages/settings/translate.vue","webpack://portal-vue/./src/pages/teams/directory/add-group.vue?f8e1","webpack://portal-vue/./src/pages/teams/directory/add-group.ts","webpack://portal-vue/./src/pages/teams/directory/add-group.ts?0772","webpack://portal-vue/./src/pages/teams/directory/add-group.vue","webpack://portal-vue/./src/pages/teams/directory/add-member.vue?ea00","webpack://portal-vue/./src/pages/teams/directory/add-member.ts","webpack://portal-vue/./src/pages/teams/directory/add-member.ts?41ad","webpack://portal-vue/./src/pages/teams/directory/add-member.vue","webpack://portal-vue/./src/pages/teams/directory/components/groups.vue?2b8d","webpack://portal-vue/./src/pages/teams/directory/components/groups.ts","webpack://portal-vue/./src/pages/teams/directory/components/groups.ts?25a8","webpack://portal-vue/./src/pages/teams/directory/components/groups.vue","webpack://portal-vue/./src/pages/teams/directory/components/members.vue?5d28","webpack://portal-vue/./src/pages/teams/directory/components/members.ts","webpack://portal-vue/./src/pages/teams/directory/components/members.ts?89c9","webpack://portal-vue/./src/pages/teams/directory/components/members.vue","webpack://portal-vue/./src/pages/teams/directory/components/settings.vue?8fe7","webpack://portal-vue/./src/pages/teams/directory/components/settings.ts","webpack://portal-vue/./src/pages/teams/directory/components/settings.ts?5aa7","webpack://portal-vue/./src/pages/teams/directory/components/settings.vue","webpack://portal-vue/./src/pages/teams/directory/directory.vue?4f29","webpack://portal-vue/./src/pages/teams/directory/directory.ts","webpack://portal-vue/./src/pages/teams/directory/directory.ts?3a4f","webpack://portal-vue/./src/pages/teams/directory/directory.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-expenses.vue?2247","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-expenses.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-expenses.ts?c5e5","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-expenses.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-group-overview.vue?40c9","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-group-overview.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-group-overview.ts?7a47","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-group-overview.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-invoices.vue?c372","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-invoices.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-invoices.ts?d7b6","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-invoices.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-member-overview.vue?d45d","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-member-overview.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-member-overview.ts?fe2f","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-member-overview.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-period.vue?b029","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-period.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-period.ts?4fa7","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-period.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-settings.vue?b799","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-settings.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-settings.ts?1f0e","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-settings.vue","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-transfers.vue?c886","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-transfers.ts","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-transfers.ts?a8fe","webpack://portal-vue/./src/pages/teams/finance/components/team-finance-transfers.vue","webpack://portal-vue/./src/pages/teams/finance/finance.vue?0143","webpack://portal-vue/./src/pages/teams/finance/finance.ts","webpack://portal-vue/./src/pages/teams/finance/finance.ts?3f65","webpack://portal-vue/./src/pages/teams/finance/finance.vue","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-group-results.vue?9166","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-group-results.ts","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-group-results.ts?0ae7","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-group-results.vue","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-member-results.vue?a72b","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-member-results.ts","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-member-results.ts?0b17","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-member-results.vue","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-statusses.vue?c9db","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-detail.vue?65a8","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-detail.ts","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-detail.ts?df52","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-detail.vue","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-statusses.ts","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-statusses.ts?6aeb","webpack://portal-vue/./src/pages/teams/insights/components/team-insights-payment-statusses.vue","webpack://portal-vue/./src/pages/teams/insights/insights.vue?0d4c","webpack://portal-vue/./src/pages/teams/insights/insights.ts","webpack://portal-vue/./src/pages/teams/insights/insights.ts?7cf7","webpack://portal-vue/./src/pages/teams/insights/insights.vue","webpack://portal-vue/./src/pages/teams/joinrequest.vue?e04f","webpack://portal-vue/./src/models/TeamJoinRequest.ts","webpack://portal-vue/./src/pages/teams/joinrequest.ts","webpack://portal-vue/./src/pages/teams/joinrequest.ts?0a86","webpack://portal-vue/./src/pages/teams/joinrequest.vue","webpack://portal-vue/./src/plugin/sideActions/sideActionsComponent.vue?1c32","webpack://portal-vue/./src/plugin/sideActions/sideActionsComponent.ts","webpack://portal-vue/./src/plugin/sideActions/sideActionsComponent.ts?fe88","webpack://portal-vue/./src/plugin/sideActions/sideActionsComponent.vue","webpack://portal-vue/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://portal-vue/./src/components/modals/BaseModal.ts","webpack://portal-vue/./src/components/notification/models/Notification.ts","webpack://portal-vue/./src/components/translate/base.ts","webpack://portal-vue/./src/filters.ts","webpack://portal-vue/./src/helpers/functions.ts","webpack://portal-vue/./src/language/en.ts","webpack://portal-vue/./src/App.vue?9eb9","webpack://portal-vue/./src/components/navmenu/navmenu.vue?3701","webpack://portal-vue/./src/components/release-notes/release-notes.vue?9010","webpack://portal-vue/./src/components/release-notes/release-notes.vue","webpack://portal-vue/./src/components/navmenu/navmenu.ts","webpack://portal-vue/./src/components/navmenu/navmenu.ts?e860","webpack://portal-vue/./src/components/navmenu/navmenu.vue","webpack://portal-vue/./src/App.ts","webpack://portal-vue/./src/App.ts?6970","webpack://portal-vue/./src/App.vue","webpack://portal-vue/./src/pages/Base.vue?5b0a","webpack://portal-vue/./src/pages/Base.ts","webpack://portal-vue/./src/pages/Base.ts?4496","webpack://portal-vue/./src/pages/Base.vue","webpack://portal-vue/./src/router/index.ts","webpack://portal-vue/./src/components/translate/directive.ts","webpack://portal-vue/./src/components/index.ts","webpack://portal-vue/./src/models/NetworkStatus.ts","webpack://portal-vue/./src/helpers/axiosHelper.ts","webpack://portal-vue/./src/helpers/loginHelper.ts","webpack://portal-vue/./src/services/baseService.ts","webpack://portal-vue/./src/services/meService.ts","webpack://portal-vue/./src/services/groupService.ts","webpack://portal-vue/./src/services/personService.ts","webpack://portal-vue/./src/services/teamService.ts","webpack://portal-vue/./src/models/Finance/CrossLegalTransaction.ts","webpack://portal-vue/./src/services/financeService.ts","webpack://portal-vue/./src/services/financeAccountService.ts","webpack://portal-vue/./src/services/attributionService.ts","webpack://portal-vue/./src/services/resultService.ts","webpack://portal-vue/./src/services/compensationService.ts","webpack://portal-vue/./src/services/userRoleService.ts","webpack://portal-vue/./src/models/Period.ts","webpack://portal-vue/./src/services/periodService.ts","webpack://portal-vue/./src/helpers/errorHelper.ts","webpack://portal-vue/./src/helpers/roleHelper.ts","webpack://portal-vue/./src/helpers/teamHelper.ts","webpack://portal-vue/./src/helpers/GroupHelper.ts","webpack://portal-vue/./src/helpers/memberHelper.ts","webpack://portal-vue/./src/helpers/periodFilterHelper.ts","webpack://portal-vue/./src/helpers/navigationHelper.ts","webpack://portal-vue/./src/events/EventBus.ts","webpack://portal-vue/./src/services/loginService.ts","webpack://portal-vue/./src/extensions/numberExtensions.ts","webpack://portal-vue/./src/services/mapService.ts","webpack://portal-vue/./src/services/connectorsService.ts","webpack://portal-vue/./src/services/financeGroupService.ts","webpack://portal-vue/./src/services/transferService.ts","webpack://portal-vue/./src/services/settingService.ts","webpack://portal-vue/./src/helpers/ecosystemHelper.ts","webpack://portal-vue/./src/services/LedgerService.ts","webpack://portal-vue/./src/services/RelationService.ts","webpack://portal-vue/./src/services/templateService.ts","webpack://portal-vue/./src/services/notificationsService.ts","webpack://portal-vue/./src/plugin/sideActions/sideActions.ts","webpack://portal-vue/./src/models/Insights/Lens.ts","webpack://portal-vue/./src/models/Insights/PaymentStatus.ts","webpack://portal-vue/./src/services/insightViewService.ts","webpack://portal-vue/./src/services/ecosystemService.ts","webpack://portal-vue/./src/main.ts","webpack://portal-vue/./src/models/AccountType.ts","webpack://portal-vue/./src/models/Attribution.ts","webpack://portal-vue/./src/models/AttributionType.ts","webpack://portal-vue/./src/models/Compensation.ts","webpack://portal-vue/./src/models/DistributedInvoice.ts","webpack://portal-vue/./src/models/FinanceBase.ts","webpack://portal-vue/./src/models/FinanceGroup.ts","webpack://portal-vue/./src/models/FinanceMe.ts","webpack://portal-vue/./src/models/FinanceTeam.ts","webpack://portal-vue/./src/models/FinanceTotal.ts","webpack://portal-vue/./src/models/Finance/Api/Range.ts","webpack://portal-vue/./src/models/Finance/Api/TeamResultItem.ts","webpack://portal-vue/./src/models/Finance/Api/TeamResults.ts","webpack://portal-vue/./src/models/Finance/AttributionPercentages.ts","webpack://portal-vue/./src/models/Finance/Ledger.ts","webpack://portal-vue/./src/models/Finance/Relation.ts","webpack://portal-vue/./src/models/Finance/Template.ts","webpack://portal-vue/./src/models/Graph/GraphData.ts","webpack://portal-vue/./src/models/Group.ts","webpack://portal-vue/./src/models/GroupAlias.ts","webpack://portal-vue/./src/models/Insights/InsightView.ts","webpack://portal-vue/./src/models/Invoice.ts","webpack://portal-vue/./src/models/InvoiceSource.ts","webpack://portal-vue/./src/models/InvoiceType.ts","webpack://portal-vue/./src/models/Member.ts","webpack://portal-vue/./src/models/PageRender.ts","webpack://portal-vue/./src/models/Person.ts","webpack://portal-vue/./src/models/PrivacyLevel.ts","webpack://portal-vue/./src/models/Register.ts","webpack://portal-vue/./src/models/Team.ts","webpack://portal-vue/./src/models/TeamSettings.ts","webpack://portal-vue/./src/models/Transfer.ts","webpack://portal-vue/./src/models/TransferType.ts","webpack://portal-vue/./src/models/UserRoles.ts","webpack://portal-vue/./src/pages/ecosystem/directory/components/BaseEcosystemDirectory.ts","webpack://portal-vue/./src/pages/groups/details/components/BaseGroupPage.ts","webpack://portal-vue/./src/pages/teams/finance/components/BaseFinancePage.ts","webpack://portal-vue/./src/pages/teams/finance/components/BaseFinanceTeamInvoicePage.ts","webpack://portal-vue/./src/pages/teams/insights/components/BaseInsightsPage.ts","webpack://portal-vue/./src/plugin/sideActions/sideActionBase.ts","webpack://portal-vue/./src/plugin/sideActions/sideActionsEvents.ts","webpack://portal-vue/./src/store/index.ts","webpack://portal-vue/./src/store/modules/filters.ts","webpack://portal-vue/./src/store/modules/ledger.ts","webpack://portal-vue/./src/store/modules/period.ts","webpack://portal-vue/./src/store/modules/profile.ts","webpack://portal-vue/./src/models/Finance/TeamFinanceSettings.ts","webpack://portal-vue/./src/models/Finance/GroupFinanceSettings.ts","webpack://portal-vue/./src/store/modules/settings.ts","webpack://portal-vue/./src/store/modules/teams.ts","webpack://portal-vue/./src/store/modules/lang/default.ts","webpack://portal-vue/./src/store/modules/translate.ts","webpack://portal-vue/webpack/bootstrap","webpack://portal-vue/webpack/runtime/chunk loaded","webpack://portal-vue/webpack/runtime/compat get default export","webpack://portal-vue/webpack/runtime/define property getters","webpack://portal-vue/webpack/runtime/ensure chunk","webpack://portal-vue/webpack/runtime/get javascript chunk filename","webpack://portal-vue/webpack/runtime/get mini-css chunk filename","webpack://portal-vue/webpack/runtime/global","webpack://portal-vue/webpack/runtime/harmony module decorator","webpack://portal-vue/webpack/runtime/hasOwnProperty shorthand","webpack://portal-vue/webpack/runtime/load script","webpack://portal-vue/webpack/runtime/make namespace object","webpack://portal-vue/webpack/runtime/node module decorator","webpack://portal-vue/webpack/runtime/publicPath","webpack://portal-vue/webpack/runtime/jsonp chunk loading","webpack://portal-vue/webpack/startup"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',{attrs:{\"id\":\"firstNameGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FIRST_NAME\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"firstNameInput\",\"type\":\"text\",\"required\":\"\",\"placeholder\":\"Firstname\"},model:{value:(_vm.model.person.firstName),callback:function ($$v) {_vm.$set(_vm.model.person, \"firstName\", $$v)},expression:\"model.person.firstName\"}})],1),_c('b-form-group',{attrs:{\"id\":\"insertionGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INSERTION\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"insertionInput\",\"type\":\"text\",\"placeholder\":\"Insertion\"},model:{value:(_vm.model.person.insertion),callback:function ($$v) {_vm.$set(_vm.model.person, \"insertion\", $$v)},expression:\"model.person.insertion\"}})],1),_c('b-form-group',{attrs:{\"id\":\"lastNameGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LAST_NAME\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"lastNameInput\",\"type\":\"text\",\"required\":\"\",\"placeholder\":\"Lastname\"},model:{value:(_vm.model.person.lastName),callback:function ($$v) {_vm.$set(_vm.model.person, \"lastName\", $$v)},expression:\"model.person.lastName\"}})],1),_c('b-form-group',{attrs:{\"id\":\"emailAdressGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"EMAIL\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"emailRegisterInput\",\"type\":\"email\",\"required\":\"\",\"placeholder\":\"Enter email\",\"disabled\":_vm.getEmailInputDisabled()},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"EMAIL_DESCRIPTION\",\"translate-group\":\"REGISTER\"}})],1),_c('b-form-group',{attrs:{\"id\":\"passwordGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"PASSWORD\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"passwordRegisterInput\",\"type\":\"password\",\"required\":\"\",\"placeholder\":\"Something incredibly unlogical\"},model:{value:(_vm.model.password),callback:function ($$v) {_vm.$set(_vm.model, \"password\", $$v)},expression:\"model.password\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"PASSWORD_DESCRIPTION\",\"translate-group\":\"REGISTER\"}})],1),_c('b-form-group',{attrs:{\"id\":\"passwordRepeatGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"REAPEAT_PASSWORD\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"passwordRepeatInput\",\"type\":\"password\",\"required\":\"\",\"placeholder\":\"Something incredibly unlogical, again\"},model:{value:(_vm.model.password),callback:function ($$v) {_vm.$set(_vm.model, \"password\", $$v)},expression:\"model.password\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"REPEAT_PASSWORD_DESCRIPTION\",\"translate-group\":\"REGISTER\"}})],1),_vm._t(\"extra-fields\"),_c('div',{staticClass:\"sign-in-link-holder text-center d-block w-100 mt-5\",attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('REGISTER.BUTTON'),expression:\"'REGISTER.BUTTON'\"}],staticClass:\"btn btn-lg btn-primary w-100 d-block\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"}})],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\nimport Register from '../../models/Register';\r\nimport { teamService } from '@/main';\r\nimport { Membership } from '../../models/Interfaces';\r\n\r\n@Component\r\nexport default class RegisterComponent extends Vue {\r\n public model: Register = new Register();\r\n\r\n @Prop() public email: string = undefined;\r\n @Prop() public isInvite: boolean;\r\n @Prop() public needsAccount: boolean;\r\n @Prop() public team: string;\r\n @Prop() public ecosystem: string;\r\n @Prop() public hijackPost: boolean;\r\n\r\n public getEmail() {\r\n return this.email;\r\n }\r\n public getEmailInputDisabled() {\r\n return this.email !== undefined && this.isInvite;\r\n }\r\n\r\n public created() {\r\n if (this.email !== undefined) {\r\n this.model.person.emailAddress = this.getEmail();\r\n }\r\n }\r\n\r\n public onSubmit(evt: any) {\r\n evt.preventDefault();\r\n this.register();\r\n }\r\n\r\n public register(): void {\r\n const self = this;\r\n\r\n self.model.emailAddress = this.getEmail();\r\n self.model.person.emailAddress = this.getEmail();\r\n self.model.needsAccount = this.needsAccount;\r\n self.model.person.teamMemberships.push({ key: this.team } as Membership);\r\n\r\n if (this.hijackPost) {\r\n self.$emit('hijackPostEvent', self.model);\r\n return;\r\n }\r\n\r\n teamService\r\n .acceptInvite(1, '', self.model)\r\n .then((response: any) => {\r\n self.$emit('registerOnSuccessEvent', response);\r\n })\r\n .catch((error) => {\r\n self.$emit('registerOnFailEvent', error);\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./register.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./register.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./register.vue?vue&type=template&id=128cf461&\"\nimport script from \"./register.ts?vue&type=script&lang=js&\"\nexport * from \"./register.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[_vm._l((_vm.connectors),function(connector,index){return [_c('h6',[_vm._v(\"Is \"+_vm._s(_vm.group.name)+\" a \"+_vm._s(connector.name)+\" group?\")]),_c('p',{staticClass:\"mw-600\",domProps:{\"innerHTML\":_vm._s(connector.description)}}),_c('form',{staticClass:\"d-block mw-600\"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"switch\":\"\",\"id\":\"'distributeIncome_' + index\",\"disabled\":connector.selected},model:{value:(connector.selected),callback:function ($$v) {_vm.$set(connector, \"selected\", $$v)},expression:\"connector.selected\"}},[_vm._v(\" Is \"+_vm._s(connector.name)+\" group \")])],1)],1),_c('hr')]}),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"action\":_vm.saveConnectors,\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee() && !_vm.$root.roleHelper.isGroupLead(_vm.group)),\"translate-key\":\"SAVE_SETTINGS\"}})],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport Connector from '@/models/Connectors/Connector';\r\nimport PageRender from '@/models/PageRender';\r\nimport Group from '@/models/Group';\r\nimport { groupHelper } from '@/main';\r\n\r\n@Component\r\nexport default class ConnectorsGroupComponent extends PageRender {\r\n @Prop({ default: () => [] }) public connectors: Connector[];\r\n @Prop({ default: () => new Group() }) public group: Group;\r\n\r\n public mounted() {\r\n for (const connector of this.connectors) {\r\n connector.selected = this.group.connectors.filter((x) => x.connectorId === connector.connectorId).length > 0;\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async saveConnectors() {\r\n this.showPending('GROUP_CONNECTORS');\r\n\r\n this.group.connectors = this.connectors.filter((x) => x.selected);\r\n\r\n const group = await groupHelper.createOrUpdateGroup(this.group);\r\n if (!group || group.groupId === 0) {\r\n return this.showFailedResponse('GROUP_CONNECTORS_FAILED');\r\n }\r\n\r\n this.clearAndShowSuccess('GROUP_CONNECTORS_SUCCESS');\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./connectors.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./connectors.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./connectors.vue?vue&type=template&id=548d16a0&\"\nimport script from \"./connectors.ts?vue&type=script&lang=js&\"\nexport * from \"./connectors.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',{ref:\"td\",staticClass:\"cursor-pointer bg-white k-grid-content-sticky\"},[_c('number-formatter',{attrs:{\"value\":_vm.invoice.invoice.amount,\"render-td\":false}}),_c('span',{staticClass:\"ml-2 k-icon k-i-info cursor-pointer\",attrs:{\"id\":\"externalrate\"},on:{\"mouseenter\":_vm.delayHover,\"mouseleave\":_vm.resetTimer}}),_c('kendo-popup',{attrs:{\"anchor\":'td',\"show\":_vm.show,\"popup-class\":\"popup-content\",\"anchor-align\":_vm.anchorAlign(),\"popup-align\":_vm.popupAlign(),\"animate\":false,\"collision\":_vm.collision},nativeOn:{\"mouseleave\":function($event){_vm.show = false}}},[(_vm.loadingTree)?_c('div',{staticClass:\"text-center\"},[_c('spinner',{staticClass:\"mt-5 mx-auto\",attrs:{\"color\":\"white\"}}),_c('h2',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ALERT_MESSAGES.LOADING_DISTRIBUTIONS'),expression:\"'ALERT_MESSAGES.LOADING_DISTRIBUTIONS'\"}],staticClass:\"mb-4\"})],1):[_c('h4',{staticClass:\"mt-4 ml-4\"},[_vm._v(\"Invoice amount: \"+_vm._s(_vm.getInvoiceAmount()))]),(_vm.treeData.children.length === 0 && !_vm.notAvailable)?_c('p',{staticClass:\"mb-4 mt-2 ml-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LOADING_DISTRIBUTIONS_EMPTY\",\"translate-group\":\"ALERT_MESSAGES\"}})],1):(_vm.notAvailable)?_c('p',{staticClass:\"mb-4 mt-2 ml-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LOADING_DISTRIBUTIONS_FAILED\",\"translate-group\":\"ALERT_MESSAGES\"}})],1):_c('tree-chart',{key:_vm.update,staticClass:\"tree w-100\",style:(_vm.getHeight()),attrs:{\"data\":_vm.treeData,\"node-text\":\"name\",\"radius\":_vm.radius,\"strokeWidth\":3,\"margin-x\":_vm.marginX,\"nodeTextMargin\":_vm.nodeTextMargin,\"leafTextMargin\":_vm.leafTextMargin}})]],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\nimport { teamHelper, financeService, eventBus } from '@/main';\r\nimport to from 'await-to-js';\r\nimport { mixin as clickaway } from 'vue-clickaway';\r\nimport Group from '@/models/Group';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport { AccountType } from '@/models/AccountType';\r\n\r\n@Component({\r\n mixins: [clickaway],\r\n})\r\nexport default class DistributionTreeAmount extends Vue {\r\n @Prop({ default: () => new DistributedInvoice() }) public invoice: DistributedInvoice;\r\n @Prop({ default: () => new Group() }) public group: Group;\r\n\r\n public show: boolean = false;\r\n public hovering: boolean = false;\r\n public loadingTree: boolean = true;\r\n public update: number = 0;\r\n public notAvailable: boolean = false;\r\n\r\n public marginX: number = 20;\r\n public nodeTextMargin: number = 20;\r\n public radius: number = 8;\r\n public strokeWidth: number = 6;\r\n public leafTextMargin: number = 20;\r\n\r\n public timer: any = null;\r\n\r\n public collision: any = {\r\n horizontal: 'fit',\r\n vertical: 'flip',\r\n };\r\n\r\n public get _group(){\r\n return this.group;\r\n }\r\n\r\n public treeData: any = {\r\n name: this._group && this._group.groupId !== 0 ? this._group.name : teamHelper.currentTeamId,\r\n children: [],\r\n };\r\n\r\n public created() {\r\n eventBus.$on('close-others', this.close);\r\n }\r\n\r\n public async populateNode(node) {\r\n node.children = [];\r\n\r\n const groupId = node.groupId;\r\n let invoice = null;\r\n if (node.account.accountType === AccountType.GroupIncome) {\r\n const [err, response] = await to(financeService.getInvoice(this.invoice.invoice.invoiceId, groupId));\r\n if (err) {\r\n return;\r\n }\r\n invoice = response.data;\r\n } else if (\r\n node.account.accountType === AccountType.GroupSavings ||\r\n (node.account.accountType === AccountType.Person && this.invoice.invoice.invoiceType !== InvoiceType.Expenses)\r\n ) {\r\n const [err, response] = await to(\r\n financeService.getInvoiceDetails(\r\n this.invoice.invoice.invoiceId,\r\n this.group && this.group.groupId !== 0 ? this.group.groupId : groupId,\r\n node.account.accountId,\r\n ),\r\n );\r\n if (err) {\r\n return;\r\n }\r\n invoice = response.data;\r\n }\r\n\r\n if (!invoice) {\r\n return;\r\n }\r\n\r\n for (const distribution of invoice.distributions) {\r\n if (distribution.amount !== 0 && distribution.account && distribution.account.accountId) {\r\n node.children.push({\r\n name: `${distribution.amount} - ${distribution.account.name}`,\r\n children: [],\r\n groupId,\r\n account: distribution.account,\r\n });\r\n }\r\n }\r\n\r\n if (node.account.accountType === AccountType.GroupSavings || node.account.accountType === AccountType.Person) {\r\n return;\r\n }\r\n\r\n for (const child of node.children) {\r\n await this.populateNode(child);\r\n }\r\n }\r\n\r\n public close() {\r\n this.show = false;\r\n }\r\n\r\n public resetTimer() {\r\n clearTimeout(this.timer);\r\n }\r\n\r\n public delayHover() {\r\n clearTimeout(this.timer);\r\n\r\n this.timer = setTimeout(() => {\r\n // tslint:disable-next-line: no-floating-promises\r\n this.showPopup();\r\n }, 333);\r\n }\r\n\r\n public async showPopup() {\r\n this.loadingTree = true;\r\n eventBus.$emit('close-others');\r\n this.show = true;\r\n this.treeData.children = [];\r\n this.notAvailable = false;\r\n\r\n let invoice = null;\r\n\r\n if (this.group && this.group.groupId > 0) {\r\n invoice = this.invoice;\r\n } else {\r\n const [err, response] = await to(financeService.getInvoice(this.invoice.invoice.invoiceId, this.invoice.invoice.group));\r\n if (err) {\r\n return;\r\n }\r\n\r\n invoice = response.data;\r\n }\r\n\r\n for (const distribution of invoice.distributions) {\r\n if (distribution.amount !== 0 && distribution.account && distribution.account.accountId) {\r\n this.treeData.children.push({\r\n name: `${distribution.amount} - ${distribution.account.name}`,\r\n children: [],\r\n groupId: distribution.account.relatedEntityId,\r\n account: distribution.account,\r\n });\r\n }\r\n }\r\n\r\n const promises = [];\r\n for (const node of this.treeData.children) {\r\n promises.push(this.populateNode(node));\r\n }\r\n\r\n await Promise.all(promises);\r\n\r\n this.loadingTree = false;\r\n this.update++;\r\n }\r\n\r\n public anchorAlign() {\r\n return {\r\n horizontal: 'left',\r\n vertical: 'top',\r\n };\r\n }\r\n\r\n public popupAlign() {\r\n return {\r\n horizontal: 'left',\r\n vertical: 'top',\r\n };\r\n }\r\n\r\n public getHeight() {\r\n let totalGrandChildrend = 0;\r\n for (const node of this.treeData.children) {\r\n totalGrandChildrend += node.children.length;\r\n }\r\n\r\n const test = {\r\n // tslint:disable-next-line: object-literal-key-quotes\r\n height: `${100 + 40 * this.treeData.children.length + totalGrandChildrend * 40}px`,\r\n 'min-width': `${this.getDepth(this.treeData) * 150 + 100}px`,\r\n // width: this.getDepth(this.treeData) * 200,\r\n };\r\n\r\n return test;\r\n }\r\n\r\n public getDepth(obj) {\r\n let depth = 0;\r\n if (obj.children) {\r\n obj.children.forEach((d) => {\r\n const tmpDepth = this.getDepth(d);\r\n if (tmpDepth > depth) {\r\n depth = tmpDepth;\r\n }\r\n });\r\n }\r\n return 1 + depth;\r\n }\r\n\r\n public getInvoiceAmount() {\r\n return Vue.filter('number-format')(this.invoice.invoice.amount);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./distribution-tree-amount.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./distribution-tree-amount.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./distribution-tree-amount.vue?vue&type=template&id=4bfc5364&\"\nimport script from \"./distribution-tree-amount.ts?vue&type=script&lang=js&\"\nexport * from \"./distribution-tree-amount.ts?vue&type=script&lang=js&\"\nimport style0 from \"./distribution-tree-amount.vue?vue&type=style&index=0&id=4bfc5364&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.renderTd)?_c('td',{class:_vm.classNames,domProps:{\"innerHTML\":_vm._s(_vm.getFormattedValue())}}):_c('span',{class:_vm.classNames,domProps:{\"innerHTML\":_vm._s(_vm.getFormattedValue())}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\n\r\n@Component\r\nexport default class NumberFormatter extends Vue {\r\n @Prop({ default: null }) public value: any;\r\n @Prop({ default: '' }) public classNames: string;\r\n @Prop({ default: true }) public renderTd: boolean;\r\n\r\n public getFormattedValue() {\r\n return Vue.filter('number-format')(this.value);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./number-formatter.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./number-formatter.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./number-formatter.vue?vue&type=template&id=7b41ebfe&\"\nimport script from \"./number-formatter.ts?vue&type=script&lang=js&\"\nexport * from \"./number-formatter.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-input-group',[_c('b-input-group-prepend',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],attrs:{\"title\":_vm._f(\"translate\")('SEARCH')}},[_c('b-input-group-text',[_c('i',{staticClass:\"icon-search\"})])],1),_c('b-input',{directives:[{name:\"translate-placeholder\",rawName:\"v-translate-placeholder\",value:('PLACEHOLDER_ANYTHING_YOU_LIKE'),expression:\"'PLACEHOLDER_ANYTHING_YOU_LIKE'\"}],attrs:{\"size\":\"sm\",\"id\":\"free-seach\"},model:{value:(_vm.query),callback:function ($$v) {_vm.query=$$v},expression:\"query\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GenericSearch extends Vue {\r\n @Prop({ default: () => [] }) public dataItems: any[];\r\n @Prop({ default: () => [] }) public properties: string[];\r\n\r\n private query: string = '';\r\n private timeout: any;\r\n\r\n get searchTerm() {\r\n return this.query;\r\n }\r\n\r\n @Watch('query')\r\n public OnQueryChange(val) {\r\n if (val) {\r\n clearTimeout(this.timeout);\r\n\r\n this.timeout = setTimeout(() => {\r\n const dataItems = this.filterDataItems();\r\n this.$emit('finished-search', dataItems);\r\n }, 300);\r\n }\r\n }\r\n\r\n public filterDataItems() {\r\n return this.dataItems.filter((item) => {\r\n for (const property of this.properties) {\r\n if (this.containsVal(item, property)) {\r\n return true;\r\n }\r\n }\r\n });\r\n }\r\n\r\n public containsVal(object, key): boolean {\r\n let value = '';\r\n return Object.keys(object).some((k) => {\r\n if (k === key) {\r\n value = object[k];\r\n return (\r\n value\r\n .toString()\r\n .toLowerCase()\r\n .indexOf(this.query.toLowerCase()) > -1\r\n );\r\n }\r\n if (object[k] && typeof object[k] === 'object') {\r\n return this.containsVal(object[k], key);\r\n }\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./generic-search.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./generic-search.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./generic-search.vue?vue&type=template&id=42bf96f5&\"\nimport script from \"./generic-search.ts?vue&type=script&lang=js&\"\nexport * from \"./generic-search.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.editMode)?_c('div',{staticClass:\"prd-map-settings\"},[_c('h2',[_c('prd-translate-text',{attrs:{\"translate-key\":\"SETUP\",\"translate-group\":\"MAP\"}})],1),_c('div',{staticClass:\"prd-map-entities\"},_vm._l((_vm.graphData.vertices),function(vertex,index){return _c('div',{key:'e' + index,staticClass:\"prd-map-entity col-2 pl-0\"},[_c('h4',{staticClass:\"prd-entity-title\"},[_vm._v(_vm._s(vertex.name))]),_c('div',{staticClass:\"prd-group\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"POSITION_LAT\",\"translate-group\":\"MAP\"}}),_c('b-form-input',{attrs:{\"type\":\"text\"},model:{value:(vertex.x),callback:function ($$v) {_vm.$set(vertex, \"x\", $$v)},expression:\"vertex.x\"}})],1),_c('div',{staticClass:\"prd-group\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"POSITION_LNG\",\"translate-group\":\"MAP\"}}),_c('b-form-input',{attrs:{\"type\":\"text\"},model:{value:(vertex.y),callback:function ($$v) {_vm.$set(vertex, \"y\", $$v)},expression:\"vertex.y\"}})],1),_c('div',{staticClass:\"prd-group\"},[_c('label',[_c('prd-translate-text',{attrs:{\"translate-key\":\"RADIUS\",\"translate-group\":\"MAP\"}}),_vm._v(\" (\"+_vm._s(vertex.radius)+\") \")],1),_c('b-form-input',{attrs:{\"type\":\"range\",\"min\":\"1\",\"max\":\"150\"},nativeOn:{\"change\":function($event){return _vm.updateSettings(vertex)}},model:{value:(vertex.radius),callback:function ($$v) {_vm.$set(vertex, \"radius\", $$v)},expression:\"vertex.radius\"}})],1)])}),0)]):_vm._e(),_c('div',[_c('div',{staticClass:\"position-relative\",attrs:{\"id\":\"graph\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.show),expression:\"show\"}],staticClass:\"card position-absolute mt-2 ml-2\"},[_c('h5',{staticClass:\"card-title\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TRANSFER\",\"translate-group\":\"MAP\"}})],1),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.content)}})]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTotals && (_vm.outgoingEdges.length > 0 || _vm.outgoingEdges.length > 0)),expression:\"showTotals && (outgoingEdges.length > 0 || outgoingEdges.length > 0)\"}],staticClass:\"card position-absolute mt-2 ml-2\"},[_c('h5',{staticClass:\"card-title mb-1\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"OUTGOING\",\"translate-group\":\"MAP\"}})],1),_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.outgoingEdges),function(edge){return _c('li',{domProps:{\"innerHTML\":_vm._s(edge)}})}),0),_c('h5',{staticClass:\"card-title mb-1\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INCOMING\",\"translate-group\":\"MAP\"}})],1),_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.incomingEdges),function(edge){return _c('li',{domProps:{\"innerHTML\":_vm._s(edge)}})}),0)])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport GraphData from '@/models/Graph/GraphData';\r\nimport { eventBus } from '@/main';\r\n// @ts-ignore\r\nimport { SVG, Svg } from '@svgdotjs/svg.js';\r\n// @ts-ignore\r\nimport '@svgdotjs/svg.draggable.js';\r\n// @ts-ignore\r\nimport svgPanZoom from 'svg-pan-zoom';\r\n\r\n@Component\r\nexport default class SVGMapComponent extends Vue {\r\n // tslint:disable: restrict-plus-operands\r\n @Prop({ default: () => new GraphData() }) public graphData: GraphData;\r\n @Prop({ default: () => false }) public editMode: boolean;\r\n\r\n public show: boolean = false;\r\n public showTotals: boolean = false;\r\n public incomingEdges: any[] = [];\r\n public outgoingEdges: any[] = [];\r\n public target: string = 'graph';\r\n public content: string = '';\r\n\r\n private canvas: Svg = null;\r\n\r\n public mounted() {\r\n this.canvas = SVG()\r\n .addTo('#graph')\r\n .size(this.calculateGraphWidth(), this.calculateGraphHeight())\r\n .attr('id', 'svg-container')\r\n .addClass('svg-container');\r\n\r\n this.$nextTick(() => {\r\n this.doDraw();\r\n });\r\n\r\n eventBus.$on('redraw', this.doDraw);\r\n }\r\n\r\n public doDraw() {\r\n for (let i = 0; i < this.graphData.vertices.length; i++) {\r\n const vertex = this.graphData.vertices[i];\r\n\r\n if (this.graphData.vertexPaths[vertex.id] == null) {\r\n const group = this.canvas.group();\r\n const vertexCircle = this.canvas.circle(vertex.radius).fill('#0f0');\r\n vertexCircle.attr({ cx: vertex.x, cy: vertex.y, opacity: '0.2' });\r\n vertexCircle.attr('class', 'cursor-pointer');\r\n\r\n if (vertex.icon) {\r\n const img = this.canvas.image(vertex.icon);\r\n img.size(vertex.radius, vertex.radius);\r\n img.attr({ cx: vertex.x, cy: vertex.y });\r\n vertexCircle.attr({fill: img});\r\n }\r\n\r\n const text = this.canvas.text(vertex.name);\r\n const textBbox = text.bbox();\r\n text.move(vertex.x - textBbox.width / 2, vertex.y - textBbox.height - vertex.radius / 2);\r\n\r\n group.add(vertexCircle);\r\n group.add(text);\r\n\r\n group.draggable();\r\n\r\n group.on('dragmove.namespace' + i, () => {\r\n vertex.x = vertexCircle.attr('cx');\r\n vertex.y = vertexCircle.attr('cy');\r\n\r\n for (let j = 0; j < this.graphData.edges.length; j++) {\r\n const edge = this.graphData.edges[j];\r\n this.drawEdge(edge);\r\n }\r\n });\r\n\r\n vertexCircle.on('mouseover', () => {\r\n this.hideEdges(vertex);\r\n this.showVertexTotals();\r\n });\r\n\r\n vertexCircle.on('mouseout', () => {\r\n this.showAllEdges();\r\n this.showTotals = false;\r\n });\r\n\r\n if (vertex.onclick) {\r\n vertexCircle.on('click', vertex.onclick);\r\n }\r\n\r\n this.graphData.vertexPaths[vertex.id] = vertexCircle;\r\n } else {\r\n const vertexPath = this.graphData.vertexPaths[vertex.id];\r\n vertexPath.radius(vertex.radius / 2);\r\n }\r\n }\r\n\r\n for (let i = 0; i < this.graphData.edges.length; i++) {\r\n const edge = this.graphData.edges[i];\r\n this.drawEdge(edge);\r\n }\r\n\r\n svgPanZoom('#svg-container', {\r\n panEnabled: true,\r\n controlIconsEnabled: true,\r\n });\r\n }\r\n\r\n public drawEdge(edge) {\r\n const startx = edge.v1.x;\r\n const starty = edge.v1.y - edge.v1.radius / 3;\r\n\r\n const endx = edge.v2.x;\r\n const endy = edge.v2.y + edge.v2.radius / 3;\r\n\r\n const mpx = (startx + endx) * 0.5;\r\n const mpy = (starty + endy) * 0.5;\r\n\r\n // angle of perpendicular to line:\r\n const theta = Math.atan2(endy - starty, endx - startx) - Math.PI / 2;\r\n\r\n // distance of control point from mid-point of line:\r\n const offset = 30; // random(20, 50);\r\n\r\n // location of control point:\r\n const c1x = mpx + offset * Math.cos(theta);\r\n const c1y = mpy + offset * Math.sin(theta);\r\n\r\n if (this.graphData.edgePaths[edge.edge] == null) {\r\n const path = this.canvas.path(`M${startx} ${starty} Q${c1x} ${c1y} ${endx} ${endy}`);\r\n path.stroke({ color: 'rgba(0,0,0,0.3)', width: 5, linecap: 'round' })\r\n .attr({ fill: 'transparent' })\r\n .attr('id', 'edge-' + edge.edge)\r\n .attr('class', 'cursor-pointer');\r\n\r\n path.on('mouseover', () => {\r\n this.target = 'edge-' + edge.edge;\r\n this.content = `${edge.v2.name} to ${edge.v1.name} | ${edge.weight}`;\r\n this.$nextTick(() => {\r\n this.show = true;\r\n });\r\n path.stroke({ color: `rgba(0,128,0,0.3)` });\r\n });\r\n\r\n path.on('mouseout', () => {\r\n this.show = false;\r\n path.stroke({ color: 'rgba(0,0,0,0.3)' });\r\n });\r\n\r\n this.graphData.edgePaths[edge.edge] = path;\r\n } else {\r\n this.graphData.edgePaths[edge.edge].plot(`M${startx} ${starty} Q${c1x} ${c1y} ${endx} ${endy}`);\r\n }\r\n }\r\n\r\n public hideEdges(vertex) {\r\n this.outgoingEdges = [];\r\n this.incomingEdges = [];\r\n for (let i = 0; i < this.graphData.edges.length; i++) {\r\n const edge = this.graphData.edges[i];\r\n if (edge.v1 !== vertex && edge.v2 !== vertex) {\r\n this.hideEdge(edge);\r\n } else {\r\n this.colorEdge(edge, edge.v1 === vertex);\r\n if (edge.v1 === vertex) {\r\n this.incomingEdges.push(`${edge.v2.name} to ${edge.v1.name} | ${edge.weight}`);\r\n } else {\r\n this.outgoingEdges.push(`${edge.v2.name} to ${edge.v1.name} | ${edge.weight}`);\r\n }\r\n }\r\n }\r\n }\r\n\r\n public colorEdge(edge, isPositive: boolean = true) {\r\n const path = this.graphData.edgePaths[edge.edge];\r\n path.stroke({ color: `rgba(${isPositive ? '0' : 255},${isPositive ? '128' : 0},0,0.3)` });\r\n }\r\n\r\n public hideEdge(edge) {\r\n const path = this.graphData.edgePaths[edge.edge];\r\n path.stroke({ color: 'rgba(0,0,0,0)' });\r\n }\r\n\r\n public showVertexTotals() {\r\n this.showTotals = true;\r\n }\r\n\r\n public showAllEdges() {\r\n for (let i = 0; i < this.graphData.edges.length; i++) {\r\n const edge = this.graphData.edges[i];\r\n const path = this.graphData.edgePaths[edge.edge];\r\n path.stroke({ color: 'rgba(0,0,0,0.3)' });\r\n }\r\n }\r\n\r\n public updateSettings(vertex) {\r\n this.$emit('settingsUpdated', vertex);\r\n }\r\n\r\n private calculateGraphHeight() {\r\n return window.innerHeight - 200;\r\n }\r\n\r\n private calculateGraphWidth() {\r\n return window.innerWidth - 350;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./svg-graph.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./svg-graph.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./svg-graph.vue?vue&type=template&id=a5a817ba&\"\nimport script from \"./svg-graph.ts?vue&type=script&lang=js&\"\nexport * from \"./svg-graph.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[_c('kendo-dropdownlist',{staticClass:\"actions-toggle\",class:'toggle-dropdown-' + _vm.propOrientation,attrs:{\"data-items\":_vm.actions,\"auto-width\":true,\"value-render\":_vm.valueRender,\"item-render\":_vm.itemRender,\"popupSettings\":{ width: 'auto', className: 'px-5' }},on:{\"open\":_vm.onSelect,\"close\":_vm.onClose},scopedSlots:_vm._u([{key:\"valueTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('span',{staticClass:\"px-2 py-2\",class:'icon-more-' + _vm.propOrientation,on:{\"click\":function($event){}}})]}},{key:\"itemTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('div',{staticClass:\"p-2 k-item cursor-pointer\",class:props.dataItem.disabled ? 'k-state-disabled' : '',on:{\"click\":function($event){return _vm.onSelect(props)}}},[_c('span',{staticClass:\"px-2\"},[_vm._v(_vm._s(props.dataItem.title.toString()))])])]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport VueRouter from 'vue-router';\r\n\r\n@Component\r\nexport default class GridActiosComponent extends Vue {\r\n public text: string = '';\r\n public url: string = '';\r\n\r\n @Prop() public item: any;\r\n @Prop() public actions: any[];\r\n @Prop() public orientation: any;\r\n\r\n public propItem: any = {};\r\n public propActions = [];\r\n public propOrientation = 'horizontal';\r\n public valueRender = 'valueTemplate';\r\n public itemRender = 'itemTemplate';\r\n private router: VueRouter = {} as VueRouter;\r\n\r\n public mounted() {\r\n if (this.orientation) {\r\n this.propOrientation = this.orientation;\r\n }\r\n }\r\n\r\n public async goToUrl() {\r\n await this.router.push(this.url);\r\n }\r\n\r\n public onSelect(e) {\r\n if (e && e.event) {\r\n e.event.preventDefault();\r\n e.event.stopPropagation();\r\n }\r\n\r\n if (e && e.dataItem && !e.dataItem.disabled) {\r\n e.dataItem.function(this.item);\r\n }\r\n }\r\n\r\n public onClose(e) {\r\n e.event.preventDefault();\r\n e.event.stopPropagation();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-actions.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-actions.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-actions.vue?vue&type=template&id=0f8cfc7a&\"\nimport script from \"./grid-actions.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-actions.ts?vue&type=script&lang=js&\"\nimport style0 from \"./grid-actions.vue?vue&type=style&index=0&id=0f8cfc7a&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"k-filtercell\"},[_c('div',{staticClass:\"k-filtercell-wrapper\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],staticClass:\"k-textbox\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.change]}},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:(_vm.GRID.AMOUNT_ALL),expression:\"GRID.AMOUNT_ALL\"}],attrs:{\"value\":\"\"}}),_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:(_vm.GRID.AMOUNT_FULLY_DISTRIBUTED),expression:\"GRID.AMOUNT_FULLY_DISTRIBUTED\"}],attrs:{\"value\":\"eq\"}}),_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:(_vm.GRID.AMOUNT_NOT_YET_DISTRIBUTED),expression:\"GRID.AMOUNT_NOT_YET_DISTRIBUTED\"}],attrs:{\"value\":\"neq\"}})]),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"k-filtercell-operator\"},[_c('button',{staticClass:\"k-button k-button-icon\",attrs:{\"title\":\"Clear\",\"type\":\"button\"}},[_c('span',{staticClass:\"k-icon k-i-filter-clear\"})])])}]\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GridAmountLeftFilterComponent extends Vue {\r\n public value: string = '';\r\n\r\n public change(ev) {\r\n if (!this.value) {\r\n this.reset(ev);\r\n return;\r\n }\r\n\r\n this.$emit('change', { operator: this.value, field: 'amountLeftFilter', value: 0, syntheticEvent: ev });\r\n }\r\n\r\n public reset(ev) {\r\n this.$emit('change', { operator: '', field: '', value: '', syntheticEvent: ev });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-amount-left-filter.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-amount-left-filter.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-amount-left-filter.vue?vue&type=template&id=21d18a99&\"\nimport script from \"./grid-amount-left-filter.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-amount-left-filter.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',{domProps:{\"innerHTML\":_vm._s(_vm.getValue())}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GridGroupFilterComponent extends Vue {\r\n @Prop({ default: '' }) public value: string;\r\n\r\n public getValue() {\r\n return this.value;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-html-renderer.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-html-renderer.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-html-renderer.vue?vue&type=template&id=037f82cc&\"\nimport script from \"./grid-html-renderer.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-html-renderer.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.object && _vm.object.label && _vm.object.value)?_c('div',[_vm._v(\" \"+_vm._s(_vm.object.label)+\" - \"+_vm._s(_vm.object.value)+\" \")]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class LabelValueComponent extends Vue {\r\n @Prop({ default: null }) public object: any;\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-label-value.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-label-value.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-label-value.vue?vue&type=template&id=ce2ffd74&\"\nimport script from \"./grid-label-value.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-label-value.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[_c('kendo-dropdownlist',{staticClass:\"toggle-dropdown members-dropdown\",attrs:{\"data-items\":_vm.elements,\"auto-width\":true,\"value-render\":_vm.valueRender,\"item-render\":_vm.itemRender,\"popupSettings\":{ width: 'auto', className: 'px-2' }},on:{\"open\":_vm.onSelect,\"close\":_vm.onClose},scopedSlots:_vm._u([{key:\"valueTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('div',{staticClass:\"p-1\"},[_c('span',{staticClass:\"icon-box mr-1\"}),_vm._v(\" \"+_vm._s(_vm.elements.length))])]}},{key:\"itemTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('div',{staticClass:\"p-2 px-2\"},[_c('grid-label-value',{attrs:{\"object\":props.dataItem}})],1)]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GridListComponent extends Vue {\r\n @Prop({ default: () => [] }) public elements: any;\r\n\r\n public elementsItems: any[] = [];\r\n\r\n public valueRender = 'valueTemplate';\r\n public itemRender = 'itemTemplate';\r\n\r\n public mounted() {\r\n if (this.elements) {\r\n this.elementsItems = this.elements;\r\n }\r\n }\r\n\r\n public get dropdownMembers() {\r\n return this.elementsItems;\r\n }\r\n\r\n public memberDropdownButtonTemplate() {\r\n return `${this.elements.length}`;\r\n }\r\n\r\n public memberDropdownTemplate(item) {\r\n return {\r\n template: Vue.component('grid-label-value'),\r\n templateArgs: { object: item },\r\n };\r\n }\r\n\r\n public onSelect(e) {\r\n e.event.preventDefault();\r\n e.event.stopPropagation();\r\n }\r\n\r\n public onClose(e) {\r\n e.event.preventDefault();\r\n e.event.stopPropagation();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-list.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-list.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-list.vue?vue&type=template&id=b868e1c0&\"\nimport script from \"./grid-list.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-list.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (!_vm.dataItem['inEdit'])?_c('td',{domProps:{\"innerHTML\":_vm._s(_vm.getFormattedAmount())}}):_c('td',[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",attrs:{\"output-dec-seperator\":\",\"},on:{\"updated\":_vm.checkValue,\"keyup\":_vm.gottaSave},model:{value:(_vm.editingValue),callback:function ($$v) {_vm.editingValue=$$v},expression:\"editingValue\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { InvoiceType } from '@/models/InvoiceType';\r\nimport Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport PageRender from '../../models/PageRender';\r\n\r\n@Component\r\nexport default class GridNumericEditorComponent extends PageRender {\r\n @Prop({ default: () => null }) public dataItem: any;\r\n @Prop({ default: () => 0 }) public value: number;\r\n @Prop({ default: () => null }) public prop: string;\r\n @Prop({ default: false }) public isNegative: boolean;\r\n @Prop({ default: false }) public allowNegative: boolean;\r\n @Prop({ default: false }) public appendPercentage: boolean;\r\n\r\n private startValue: number = 0;\r\n private editingValue: number = 0;\r\n\r\n public mounted() {\r\n this.editingValue = this.startValue = this.value;\r\n }\r\n\r\n public getFormattedAmount() {\r\n return `${Vue.filter('number-format')(this.editingValue)}${this.appendPercentage ? '%' : ''}`;\r\n }\r\n\r\n public gottaSave(e) {\r\n if (e.keyCode === 13 && e.key === 'Enter') {\r\n if (!this.validValue()) {\r\n Vue.set(this, 'editingValue', this.startValue);\r\n return this.clearAndShowWarning('Invalid value');\r\n }\r\n this.$emit('saved', { dataItem: this.dataItem, value: this.editingValue, prop: this.prop });\r\n } else if (e.keyCode === 27 && e.key === 'Escape') {\r\n this.undoChange();\r\n }\r\n }\r\n\r\n public undoChange() {\r\n Vue.set(this, 'editingValue', this.startValue);\r\n Vue.set(this.dataItem, 'inEdit', false);\r\n }\r\n\r\n public checkValue() {\r\n if (!this.validValue()) {\r\n Vue.set(this, 'editingValue', this.startValue);\r\n return this.clearAndShowWarning('Invalid value');\r\n }\r\n\r\n this.$emit('changed', { dataItem: this.dataItem, value: this.editingValue, prop: this.prop });\r\n }\r\n\r\n public validValue() {\r\n if (this.dataItem.invoice && this.dataItem.invoice.invoiceType === InvoiceType.Expenses) {\r\n // its allowed to add positive or even negative amounts when its an expense\r\n return true;\r\n }\r\n\r\n return this.allowNegative || this.editingValue < 0 === this.isNegative || this.editingValue === 0;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-numeric-editor.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-numeric-editor.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-numeric-editor.vue?vue&type=template&id=7e0359ee&\"\nimport script from \"./grid-numeric-editor.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-numeric-editor.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[(_vm.action)?_c('span',{staticClass:\"btn-action-link\",on:{\"click\":_vm.action}},[(_vm.text)?[_c('b-button',{attrs:{\"size\":\"sm\"}},[_vm._v(_vm._s(_vm.text))])]:[_vm._v(\" \"+_vm._s(_vm.value)),(_vm.showPercentage)?_c('span',[_vm._v(\"%\")]):_vm._e()]],2):_c('span',[(_vm.text)?[_vm._v(\" \"+_vm._s(_vm.text)+\" \")]:[_vm._v(\" \"+_vm._s(_vm.value)),(_vm.showPercentage)?_c('span',[_vm._v(\"%\")]):_vm._e()]],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GridPercentageComponent extends Vue {\r\n @Prop({ default: 0 }) public value: number;\r\n @Prop({ default: () => null }) public action: any;\r\n @Prop({ default: true }) public showPercentage: boolean;\r\n @Prop({ default: null }) public text: string;\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-percentage.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-percentage.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-percentage.vue?vue&type=template&id=9f0e210e&\"\nimport script from \"./grid-percentage.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-percentage.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"period-range-filter\"},[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"FROM_MONTH\"}}),_c('date-picker',{attrs:{\"type\":\"month\",\"format\":\"YYYY-MM\",\"valueType\":\"format\",\"id\":\"month-filter1\",\"disabled-date\":_vm.notAfterOrBeforeDate},model:{value:(_vm.fromFilterMonth),callback:function ($$v) {_vm.fromFilterMonth=$$v},expression:\"fromFilterMonth\"}}),_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"TO_MONTH\"}}),_c('date-picker',{attrs:{\"type\":\"month\",\"format\":\"YYYY-MM\",\"valueType\":\"format\",\"id\":\"month-filter2\",\"disabled-date\":_vm.notAfterOrBeforeDate},model:{value:(_vm.toFilterMonth),callback:function ($$v) {_vm.toFilterMonth=$$v},expression:\"toFilterMonth\"}}),(!_vm.hideRefresh)?_c('b-button',{attrs:{\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":_vm.reload}},[_c('span',{staticClass:\"icon-rotate-cw\"})]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import moment from 'moment';\r\nimport PageRender from '@/models/PageRender';\r\nimport Component from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\nimport { filtersModule } from '@/store/modules/filters';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport PeriodRange from '@/models/PeriodRange';\r\n\r\n@Component\r\nexport default class GridPeriodRangeFilterComponent extends PageRender {\r\n @Prop({ type: Boolean, default: false }) public hideRefresh: boolean;\r\n public disabledDates: any = { to: null, from: null };\r\n public fromFilterMonth: string = null;\r\n public toFilterMonth: string = null;\r\n\r\n @Watch('toFilterMonth')\r\n public async OnToFilterMonthChange(val, oldVal) {\r\n if (val != null && oldVal != null) {\r\n filtersModule.setEndMonth(this.toFilterMonth);\r\n this.onInput();\r\n }\r\n }\r\n\r\n @Watch('fromFilterMonth')\r\n public async OnFromFilterMonthChange(val, oldVal) {\r\n if (val != null && oldVal != null) {\r\n filtersModule.setStartMonth(this.fromFilterMonth);\r\n\r\n const startDate = moment(this.fromFilterMonth, 'YYYY-MM');\r\n const endDate = moment(this.toFilterMonth, 'YYYY-MM');\r\n if (startDate.isAfter(endDate)) {\r\n this.toFilterMonth = this.fromFilterMonth;\r\n filtersModule.setEndMonth(this.fromFilterMonth);\r\n }\r\n this.onInput();\r\n }\r\n }\r\n\r\n public mounted() {\r\n this.disabledDates.from = moment(periodModule.periods[0].startDate, 'YYYY-MM-DD')\r\n .add('month', 1)\r\n .toDate();\r\n this.disabledDates.to = moment(periodModule.periods[periodModule.periods.length - 1].startDate, 'YYYY-MM-DD').toDate();\r\n\r\n if (!this.$store.getters.hasMonths) {\r\n this.fromFilterMonth = this.toFilterMonth = periodModule.selectedPeriod;\r\n filtersModule.setStartMonth(this.fromFilterMonth);\r\n filtersModule.setEndMonth(this.toFilterMonth);\r\n } else {\r\n this.fromFilterMonth = this.$store.getters.startMonth;\r\n this.toFilterMonth = this.$store.getters.endMonth;\r\n }\r\n\r\n this.reload();\r\n }\r\n\r\n public notAfterOrBeforeDate(date: Date) {\r\n return date >= this.disabledDates.from || date < this.disabledDates.to;\r\n }\r\n\r\n public reload() {\r\n const period: PeriodRange = { toFilterMonth: this.toFilterMonth, fromFilterMonth: this.fromFilterMonth };\r\n this.$emit('filter-change', period);\r\n }\r\n\r\n public onInput() {\r\n const period: PeriodRange = { toFilterMonth: this.toFilterMonth, fromFilterMonth: this.fromFilterMonth };\r\n this.$emit('filter-input', period);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-period-range-filter.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-period-range-filter.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-period-range-filter.vue?vue&type=template&id=d1550614&\"\nimport script from \"./grid-period-range-filter.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-period-range-filter.ts?vue&type=script&lang=js&\"\nimport style0 from \"./grid-period-range-filter.vue?vue&type=style&index=0&id=d1550614&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',{staticClass:\"bg-white k-grid-content-sticky\"},[_c('span',{directives:[{name:\"b-popover\",rawName:\"v-b-popover.hover\",value:(_vm.popoverConfig),expression:\"popoverConfig\",modifiers:{\"hover\":true}}],staticClass:\"cursor-pointer\",class:_vm.invoice.source == 'PartiallyDistribution' ? 'text-info' : ''},[_vm._v(_vm._s(_vm.invoice.name)+\" \"+_vm._s(_vm.showDescription ? ' - ' + _vm.invoice.description : ''))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport { Invoice } from '../../models/Invoice';\r\nimport moment from 'moment';\r\nimport { roleHelper } from '@/main';\r\n@Component\r\nexport default class GridPopoverComponent extends Vue {\r\n @Prop({ default: () => new Invoice() }) public invoice: Invoice;\r\n @Prop({ default: 'grid' }) public grid;\r\n @Prop({ default: false }) public showDescription: boolean;\r\n\r\n public get popoverConfig() {\r\n return {\r\n html: true,\r\n title: this.invoice.name,\r\n content: this.getContent(),\r\n placement: 'topleft',\r\n boundary: 'viewport',\r\n };\r\n }\r\n\r\n public getContent(): string {\r\n let content = `\r\n
\r\n
Client
\r\n

${this.invoice.name}

\r\n\r\n
Description
\r\n

${this.invoice.description}

\r\n `;\r\n\r\n if (this.invoice.reference) {\r\n content += `\r\n
Reference
\r\n

${this.invoice.reference}

\r\n `;\r\n }\r\n\r\n content += `\r\n
Date
\r\n

${this.getDate()}

\r\n `;\r\n\r\n if (this.invoice.originalAmount && this.invoice.parent) {\r\n content +=\r\n `
Original amount
` +\r\n `

${Vue.filter('number-format')(this.invoice.originalAmount)}

`;\r\n }\r\n\r\n if (this.invoice.invoiceAmortization && this.invoice.invoiceAmortization.account) {\r\n content +=\r\n `
Amortization setting
` +\r\n `

Distributes automatically ${this.getAmortizationAmountFormat()} per period to ${\r\n this.invoice.invoiceAmortization.account.name\r\n }

`;\r\n }\r\n\r\n if (roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) {\r\n content +=\r\n `
Legal entity reference
` +\r\n `

${!this.invoice.legalEntityReferenceOrigin ? '-' : this.invoice.legalEntityReferenceOrigin}

`;\r\n }\r\n\r\n content += `
Invoice Id
` + `

${this.invoice.invoiceId}

` + '
';\r\n\r\n return content;\r\n }\r\n\r\n public getDate(): string {\r\n return moment(this.invoice.invoiceDate, 'YYYY-MM-DD').format('DD-MM-YYYY');\r\n }\r\n\r\n public getAmortizationAmountFormat() {\r\n if (this.invoice.invoiceAmortization.amortizationAmount) {\r\n return Vue.filter('number-format')(this.invoice.invoiceAmortization.amortizationAmount);\r\n }\r\n\r\n return '0';\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-popover-element.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-popover-element.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-popover-element.vue?vue&type=template&id=1670a9c7&\"\nimport script from \"./grid-popover-element.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-popover-element.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[(_vm.hasActiveSettings())?[_c('b-button',{attrs:{\"variant\":\"link\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.openSettingsModal()}}},[_vm._v(\"Settings\")])]:[_c('b-button',{attrs:{\"variant\":\"link\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.openSettingsModal()}}},[_vm._v(\"No settings yet \"),_c('span',{staticClass:\"k-icon k-i-warning text-warning\"})])],(!_vm.isLoading)?_c('relation-settings-modal',{ref:\"relationModal\",attrs:{\"from\":_vm.from,\"to\":_vm.to,\"entity-name\":\"TEST\",\"intellectual-property-limitations\":_vm.intellectualPropertyLimitations,\"tax-rates\":_vm.taxRates}}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Relation, { IntellectualPropertyLimitation, TaxRate } from '@/models/Finance/Relation';\r\nimport Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport RelationSettingsModal from '../modals/relation-settings-modal';\r\n\r\n@Component\r\nexport default class GridRelationSettingsComponent extends Vue {\r\n @Prop({ default: () => null }) public relation: Relation;\r\n @Prop({ default: () => [] }) public intellectualPropertyLimitations: IntellectualPropertyLimitation[];\r\n @Prop({ default: () => [] }) public taxRates: TaxRate[];\r\n public isLoading: boolean = true;\r\n public $refs!: {\r\n relationModal: RelationSettingsModal;\r\n };\r\n\r\n public async mounted() {\r\n this.isLoading = false;\r\n }\r\n\r\n public get from() {\r\n return `${this.relation.originLegalEntityReference ? this.relation.originLegalEntityReference : ''} ${\r\n this.relation.originTeam ? '(team ' + this.relation.originTeam.name + ')' : ''\r\n } ${this.relation.originGroup ? '(group ' + this.relation.originGroup.name + ')' : ''}`;\r\n }\r\n\r\n public get to() {\r\n return `${this.relation.destinationLegalEntityReference ? this.relation.destinationLegalEntityReference : ''} ${\r\n this.relation.destinationTeam ? '(team ' + this.relation.destinationTeam.name + ')' : ''\r\n } ${this.relation.destinationGroup ? '(group ' + this.relation.destinationGroup.name + ')' : ''}`;\r\n }\r\n\r\n public hasActiveSettings() {\r\n return this.relation && this.relation.relationSettings.find((x) => x.current);\r\n }\r\n\r\n public openSettingsModal() {\r\n this.$refs.relationModal.setData(\r\n this.relation,\r\n this.relation.relationSettings.find((x) => x.current),\r\n );\r\n this.$refs.relationModal.show();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-relation-settings.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-relation-settings.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-relation-settings.vue?vue&type=template&id=2dfd092d&\"\nimport script from \"./grid-relation-settings.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-relation-settings.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[_c('router-link',{staticClass:\"btn-action-link\",attrs:{\"to\":_vm.url}},[_vm._v(\" \"+_vm._s(_vm.text)+\" \"),(_vm.entity && _vm.entity.deleted)?_c('b-badge',{staticClass:\"ml-2\",attrs:{\"pill\":\"\",\"variant\":\"warning\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DELETED\"}})],1):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GridRouterLinkComponent extends Vue {\r\n @Prop({ default: '' }) public text: string;\r\n @Prop({ default: '' }) public url: string;\r\n @Prop({ default: () => null }) public entity: any;\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-router-link.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-router-link.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-router-link.vue?vue&type=template&id=3b1a9bb1&\"\nimport script from \"./grid-router-link.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-router-link.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[(_vm.action)?_c('span',{staticClass:\"btn-action-link\",on:{\"click\":function($event){return _vm.action()}}},[_c('span',{class:_vm.getDirectionIcon()})]):_c('span',[_c('span',{class:_vm.getDirectionIcon()})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class GridTransferDirectionComponent extends Vue {\r\n @Prop({ default: () => null }) public action: any;\r\n @Prop({ default: () => false }) public isIncoming: any;\r\n\r\n public getDirectionIcon() {\r\n if (this.isIncoming) {\r\n return 'k-icon k-i-arrow-right text-danger k-icon-24 ';\r\n } else {\r\n return 'k-icon k-i-arrow-left text-success k-icon-24';\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-transfer-direction.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-transfer-direction.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-transfer-direction.vue?vue&type=template&id=f9fbf3e0&\"\nimport script from \"./grid-transfer-direction.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-transfer-direction.ts?vue&type=script&lang=js&\"\nimport style0 from \"./grid-transfer-direction.vue?vue&type=style&index=0&id=f9fbf3e0&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('grid',{ref:\"grid\",staticClass:\"prd-grid-wrapper\",class:{ flat: _vm.flat, 'clickable': !!_vm.$listeners.rowclick },attrs:{\"data-items\":_vm.getData(),\"columns\":_vm.columns,\"pageable\":_vm.pageable,\"skip\":_vm.skip,\"total\":_vm.getTotal(),\"resizable\":_vm.resizable,\"take\":_vm.take,\"orderBy\":_vm.orderBy,\"detail\":_vm.detail,\"expand-field\":'expanded'},on:{\"pagechange\":_vm.pageChangeHandler,\"rowclick\":_vm.rowClicked,\"expandchange\":_vm.expandChange}},[_c('grid-norecords',[_c('prd-translate-text',{attrs:{\"translate-key\":\"NO_RECORDS\",\"translate-group\":\"GRID\",\"inline\":true}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop } from 'vue-property-decorator';\r\nimport { GridColumnProps, GridGroupableSettings, GridPagerSettings, GridSortSettings } from '@progress/kendo-vue-grid';\r\nimport { CompositeFilterDescriptor, DataResult, GroupDescriptor, SortDescriptor } from '@progress/kendo-data-query';\r\nimport { ScrollMode } from '@progress/kendo-vue-grid/dist/npm/ScrollMode';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\n\r\n@Component\r\nexport default class GridWrapper extends Vue {\r\n @Prop({ type: Boolean }) public flat: boolean;\r\n @Prop({ type: Boolean }) public fixedHeight: boolean;\r\n\r\n // https://www.telerik.com/kendo-vue-ui/components/grid/api/GridProps/\r\n @Prop() public allGroupedItems?: DataResult;\r\n @Prop() public alternatePerGroup?: boolean;\r\n @Prop() public cancel?: CallableFunction;\r\n @Prop() public cellRender?: CallableFunction;\r\n @Prop() public cellClick?: CallableFunction;\r\n @Prop() public columnMenu?: boolean;\r\n @Prop() public columnVirtualization?: boolean;\r\n @Prop() public columnreorder?: CallableFunction;\r\n @Prop() public columnresize?: CallableFunction;\r\n @Prop() public columns?: GridColumnProps[];\r\n @Prop() public dataItems?: any[];\r\n @Prop() public datastatechange?: CallableFunction;\r\n @Prop() public edit?: CallableFunction;\r\n @Prop() public editField?: string;\r\n @Prop() public expandField?: string;\r\n @Prop() public filter?: CompositeFilterDescriptor;\r\n @Prop() public filterCellRender?: CallableFunction;\r\n @Prop() public filterable?: boolean;\r\n @Prop() public filterchange?: CallableFunction;\r\n @Prop() public group?: GroupDescriptor[];\r\n @Prop() public groupable?: GridGroupableSettings | boolean;\r\n @Prop() public groupchange?: CallableFunction;\r\n @Prop() public headerCellRender?: CallableFunction;\r\n @Prop() public headerselectionchange?: CallableFunction;\r\n @Prop() public itemchange?: CallableFunction;\r\n @Prop({ default: 50 }) public pageSize?: number;\r\n @Prop({ default: false }) public pageable?: GridPagerSettings | any;\r\n @Prop() public remove?: CallableFunction;\r\n @Prop() public reorderable?: boolean;\r\n @Prop({ default: true }) public resizable?: boolean;\r\n @Prop({ default: 34 }) public rowHeight?: number;\r\n @Prop() public rowRender?: string | CallableFunction;\r\n @Prop() public save?: CallableFunction;\r\n @Prop() public scrollable?: ScrollMode;\r\n @Prop() public selectedField?: string;\r\n @Prop() public selectionchange?: CallableFunction;\r\n @Prop() public sort?: SortDescriptor;\r\n @Prop() public sortable?: GridSortSettings;\r\n @Prop() public sortchange?: CallableFunction;\r\n @Prop() public detail?: any;\r\n // @Prop() public total?: number;\r\n\r\n @Prop({ default: 0 }) public skip: number;\r\n @Prop({ default: 50 }) public take: number;\r\n\r\n @Prop({ default: () => ({ field: 'id', dir: 'asc' }) }) public orderBy?: SortDescriptor;\r\n\r\n public $refs!: {\r\n grid: any;\r\n };\r\n\r\n private get _dataItems() {\r\n return orderBy(this.dataItems, [this.orderBy]);\r\n }\r\n\r\n public created() {\r\n this.columns.forEach((c) => {\r\n if (c.title && c.title.length) {\r\n c.headerCell = this.translate;\r\n }\r\n });\r\n }\r\n\r\n public mounted() {\r\n this.setHeight();\r\n this.$watch('dataItems', () => {\r\n this.setHeight();\r\n });\r\n }\r\n\r\n public getData() {\r\n if (this.pageable) {\r\n return this._dataItems.slice(this.skip, this.take + this.skip);\r\n }\r\n\r\n return this._dataItems;\r\n }\r\n\r\n public getTotal() {\r\n return this._dataItems ? this._dataItems.length : 0;\r\n }\r\n\r\n public setHeight() {\r\n if (this.detail || !this.fixedHeight) {\r\n return;\r\n }\r\n\r\n let height = 0;\r\n const scrollbarHeight = 25;\r\n const defaultHeight = 65;\r\n const headerHeight: number = this.getHeaderHeight();\r\n const footerHeight: number = this.getFooterHeight();\r\n const rowHeight: number = this.getRowHeight();\r\n\r\n if (this._dataItems && this._dataItems.length) {\r\n height =\r\n headerHeight +\r\n footerHeight +\r\n (this.pageable ? (this._dataItems.length > this.take ? this.take : this._dataItems.length) : this._dataItems.length) * rowHeight;\r\n } else {\r\n height = defaultHeight;\r\n }\r\n\r\n if (this.pageable) {\r\n height += 46;\r\n }\r\n height += scrollbarHeight;\r\n this.$refs.grid.$el.style.height = height.toString() + 'px';\r\n }\r\n\r\n public pageChangeHandler(event: { page: { skip: number; take: number } }) {\r\n this.skip = event.page.skip;\r\n this.take = event.page.take;\r\n }\r\n\r\n public rowClicked(e) {\r\n this.$emit('rowclick', e);\r\n }\r\n\r\n public expandChange(event: any) {\r\n Vue.set(event.dataItem, event.target.$props.expandField, event.value);\r\n }\r\n\r\n protected translate(h, _, props) {\r\n return h(Vue.component('prd-translate-text'), {\r\n props: {\r\n translateKey: props.title,\r\n translateGroup: 'GRID',\r\n column: true,\r\n inline: true,\r\n },\r\n });\r\n }\r\n\r\n private getRowHeight(): number {\r\n if (this.$el && this.$el.querySelector) {\r\n const tableRow = this.$el.querySelector('tbody tr');\r\n return parseFloat(getComputedStyle(tableRow).height);\r\n }\r\n return this.rowHeight;\r\n }\r\n\r\n private getHeaderHeight(): number {\r\n if (this.$el && this.$el.querySelector) {\r\n const headRow = this.$el.querySelector('thead tr');\r\n return parseFloat(getComputedStyle(headRow).height);\r\n }\r\n return 34;\r\n }\r\n\r\n private getFooterHeight(): number {\r\n if (this.$el && this.$el.querySelector) {\r\n const footerRow = this.$el.querySelector('tfoot tr');\r\n if (footerRow) {\r\n return parseFloat(getComputedStyle(footerRow).height);\r\n }\r\n }\r\n return 47;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-wrapper.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./grid-wrapper.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./grid-wrapper.vue?vue&type=template&id=4d408556&\"\nimport script from \"./grid-wrapper.ts?vue&type=script&lang=js&\"\nexport * from \"./grid-wrapper.ts?vue&type=script&lang=js&\"\nimport style0 from \"./grid-wrapper.vue?vue&type=style&index=0&id=4d408556&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"mt-2\"},[_c('h3',[_vm._v(\"Finance Cash\")]),_c('b-card-group',{staticClass:\"mt-2\",attrs:{\"deck\":\"\"}},[_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CASHFLOW_RESULT\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCashflowResult())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CASHFLOW_BALANCE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCashflowBalance())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"UNPAID_REVENUE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getUnpaidRevenue())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"UNPAID_EXPENSES\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getUnpaidExpenses())}})])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class InsightsEcosystemCashTotalsComponent extends Vue {\r\n @Prop({ default: () => null }) public data: any;\r\n\r\n public getCashflowResult() {\r\n return Vue.filter('number-format')(this.data ? this.data.result : 0);\r\n }\r\n\r\n public getCashflowBalance() {\r\n return Vue.filter('number-format')(this.data ? this.data.balance : 0);\r\n }\r\n\r\n public getUnpaidRevenue() {\r\n return Vue.filter('number-format')(this.data ? this.data.unpaidRevenue : 0);\r\n }\r\n\r\n public getUnpaidExpenses() {\r\n return Vue.filter('number-format')(this.data ? this.data.unpaidExpenses : 0);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-cash-totals.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-cash-totals.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ecosystem-cash-totals.vue?vue&type=template&id=f5d28790&\"\nimport script from \"./ecosystem-cash-totals.ts?vue&type=script&lang=js&\"\nexport * from \"./ecosystem-cash-totals.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"mt-5\"},[_c('h3',[_vm._v(\"CO2 footprint\")]),_c('b-card-group',{staticClass:\"mt-2\",attrs:{\"deck\":\"\"}},[_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CO2_BALANCE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCO2Balance())}}),_vm._v(\" Kilograms \")]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CO2_MUTATION\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCO2Mutation())}}),_vm._v(\" Kilograms \")]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CO2_COMPENSATION\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCO2Compensation())}}),_vm._v(\" Kilograms \")]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CO2_ONEXPENSES\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCO2Expenses())}}),_vm._v(\" Kilograms \")]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CO2_TRANSFERED_TO_REVENUE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getCO2Transfered())}}),_vm._v(\" Kilograms \")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class InsightsEcosystemFinanceTotalsComponent extends Vue {\r\n @Prop({ default: () => null }) public data: any;\r\n\r\n public getCO2Balance() {\r\n return Vue.filter('number-format')(this.data && this.data.co2balance ? this.data.co2balance : 113292);\r\n }\r\n\r\n public getCO2Mutation() {\r\n return Vue.filter('number-format')(this.data && this.data.co2mutation ? this.data.co2mutation : 10482);\r\n }\r\n\r\n public getCO2Compensation() {\r\n return Vue.filter('number-format')(this.data && this.data.co2compensation ? this.data.co2compensation : 5000);\r\n }\r\n\r\n public getCO2Expenses() {\r\n return Vue.filter('number-format')(this.data && this.data.co2OnExpenses ? this.data.co2OnExpenses : 5482);\r\n }\r\n\r\n public getCO2Transfered() {\r\n return Vue.filter('number-format')(this.data && this.data.co2Transfered ? this.data.co2Transfered : 4248);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-co2-totals.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-co2-totals.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ecosystem-co2-totals.vue?vue&type=template&id=0352289a&\"\nimport script from \"./ecosystem-co2-totals.ts?vue&type=script&lang=js&\"\nexport * from \"./ecosystem-co2-totals.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"mt-5\"},[_c('h3',[_vm._v(\"Fearless Organization - Psychological safety index\")]),_c('b-card-group',{staticClass:\"mt-2\",attrs:{\"deck\":\"\"}},[_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"PSI\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getPSI())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"OPEN_CONVERSATION\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getConversation())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"WILLINGNESS_TO_HELP\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getWillingness())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"INCLUSION_AND_DIVERSITY\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getInclusion())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"ATTITUDE_TO_RISK_FAILURE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getAttitude())}})])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class InsightsEcosystemFinanceTotalsComponent extends Vue {\r\n @Prop({ default: () => null }) public data: any;\r\n\r\n public getPSI() {\r\n return Vue.filter('number-format')(this.data && this.data.psi ? this.data.psi : 95);\r\n }\r\n\r\n public getConversation() {\r\n return Vue.filter('number-format')(this.data && this.data.conversation ? this.data.conversation : 87);\r\n }\r\n\r\n public getWillingness() {\r\n return Vue.filter('number-format')(this.data && this.data.willingness ? this.data.willingness : 100);\r\n }\r\n\r\n public getInclusion() {\r\n return Vue.filter('number-format')(this.data && this.data.inclusion ? this.data.inclusion : 92);\r\n }\r\n\r\n public getAttitude() {\r\n return Vue.filter('number-format')(this.data && this.data.attitude ? this.data.attitude : 92);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-fearless-totals.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-fearless-totals.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ecosystem-fearless-totals.vue?vue&type=template&id=3b831b3f&\"\nimport script from \"./ecosystem-fearless-totals.ts?vue&type=script&lang=js&\"\nexport * from \"./ecosystem-fearless-totals.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"mt-5\"},[_c('h3',[_vm._v(\"Finance Results\")]),_c('b-card-group',{staticClass:\"mt-2\",attrs:{\"deck\":\"\"}},[_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"START_BALANCE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getStartBalance())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"RESULT\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getResult())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"BALANCE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getBalance())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"EXTERNAL_REVENUE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getExternalRevenue())}})]),_c('b-card',{staticClass:\"mb-3 mb-md-3 \"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"EXPENSES\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getExpenses())}})]),(_vm.team && _vm.team.teamId && _vm.team.teamId > 0)?_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"SAFETY_ZONE\"}})],1),_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.getSafetyZone())}}),_vm._v(\" Months \")]):_vm._e()],1),_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('b-button',{staticClass:\"w-25 d-block\",attrs:{\"size\":\"sm\",\"variant\":\"link\"},on:{\"click\":function($event){_vm.team.expanded = !_vm.team.expanded}}},[_vm._v(\" \"+_vm._s(!_vm.team.expanded ? 'View all ' + _vm.lense.slug + ' data' : 'Hide all ' + _vm.lense.slug + ' data')+\" \")])],1),_c('prd-grid-wrapper',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.team.expanded),expression:\"team.expanded\"}],attrs:{\"data-items\":[_vm.tableData],\"columns\":_vm.team && _vm.team.teamId && _vm.team.teamId > 0 ? _vm.teamTableColumns : _vm.tableColumns}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class InsightsEcosystemFinanceTotalsComponent extends Vue {\r\n @Prop({ default: () => null }) public data: any;\r\n @Prop({\r\n default: () => {\r\n return { teamId: null, expanded: false };\r\n },\r\n })\r\n public team: any;\r\n @Prop({ default: () => null }) public tableData: any;\r\n @Prop({ default: () => null }) public lense: any;\r\n\r\n public tableColumns: any[] = [\r\n {\r\n filterable: false,\r\n cell: this.renderStartBalance,\r\n title: 'START_BALANCE',\r\n field: 'startBalance',\r\n width: 160,\r\n },\r\n { filterable: false, cell: this.renderBalance, title: 'BALANCE', field: 'balance', width: 160 },\r\n { filterable: false, cell: this.renderResult, title: 'RESULT', width: 160, field: 'result' },\r\n {\r\n filterable: false,\r\n cell: this.renderExpenses,\r\n title: 'EXPENSES_RECURRING',\r\n width: 160,\r\n field: 'expenses',\r\n },\r\n {\r\n filterable: false,\r\n cell: this.renderExtras,\r\n title: 'EXTRA_NON_RECURRING',\r\n width: 160,\r\n field: 'extras',\r\n },\r\n {\r\n filterable: false,\r\n cell: this.renderExternalRevenue,\r\n title: 'EXTERNAL_REVENUE',\r\n width: 160,\r\n field: 'externalRevenue',\r\n },\r\n { filterable: false, cell: this.renderDropDeadRatio, title: 'DROP_DEAD_RATIO', width: 150 },\r\n ];\r\n\r\n public teamTableColumns: any[] = [\r\n {\r\n filterable: false,\r\n cell: this.renderStartBalance,\r\n title: 'START_BALANCE',\r\n field: 'startBalance',\r\n width: 160,\r\n },\r\n { filterable: false, cell: this.renderBalance, title: 'BALANCE', field: 'balance', width: 160 },\r\n { filterable: false, cell: this.renderResult, title: 'RESULT', width: 160, field: 'result' },\r\n {\r\n filterable: false,\r\n cell: this.renderExpenses,\r\n title: 'EXPENSES_RECURRING',\r\n width: 160,\r\n field: 'expenses',\r\n },\r\n {\r\n filterable: false,\r\n cell: this.renderExtras,\r\n title: 'EXTRA_NON_RECURRING',\r\n width: 160,\r\n field: 'extras',\r\n },\r\n {\r\n field: 'openInvoiceAmount',\r\n title: 'OPEN_INVOICES',\r\n filterable: false,\r\n cell: this.renderOpenInvoiceAmount,\r\n width: 160,\r\n },\r\n {\r\n field: 'openExpenseAmount',\r\n title: 'OPEN_EXPENSES',\r\n filterable: false,\r\n cell: this.renderOpenExpensesAmount,\r\n width: 160,\r\n },\r\n {\r\n field: 'groupOpenInvoiceAmount',\r\n title: 'OPEN_INVOICES_GROUP',\r\n filterable: false,\r\n cell: this.renderGroupOpenInvoiceAmount,\r\n width: 160,\r\n },\r\n {\r\n field: 'groupOpenExpenseAmount',\r\n title: 'OPEN_EXPENSES_GROUP',\r\n filterable: false,\r\n cell: this.renderGroupOpenExpensesAmount,\r\n width: 160,\r\n },\r\n {\r\n filterable: false,\r\n cell: this.renderExternalRevenue,\r\n title: 'EXTERNAL_REVENUE',\r\n width: 160,\r\n\r\n field: 'externalRevenue',\r\n },\r\n { filterable: false, cell: this.renderDropDeadRatio, title: 'DROP_DEAD_RATIO', width: 150 },\r\n ];\r\n\r\n public getBalance() {\r\n return Vue.filter('number-format')(this.data ? this.data.balance : 0);\r\n }\r\n\r\n public getStartBalance() {\r\n return Vue.filter('number-format')(this.data ? this.data.startBalance : 0);\r\n }\r\n\r\n public getResult() {\r\n return Vue.filter('number-format')(this.data ? this.data.result : 0);\r\n }\r\n\r\n public getExternalRevenue() {\r\n return Vue.filter('number-format')(this.data ? this.data.externalRevenue : 0);\r\n }\r\n\r\n public getExpenses() {\r\n return Vue.filter('number-format')(this.data ? this.data.expenses : 0);\r\n }\r\n\r\n public getNonRecurringExpenses() {\r\n return Vue.filter('number-format')(this.data ? this.data.nonRecurringExpenses : 0);\r\n }\r\n\r\n public getSafetyZone() {\r\n return Vue.filter('number-format')(this.data ? this.data.safetyZone : 0);\r\n }\r\n\r\n public renderBalance(h, _, row) {\r\n const props = { value: row.dataItem.balance };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderStartBalance(h, _, row) {\r\n const props = { value: row.dataItem.startBalance };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExpenses(h, _, row) {\r\n const props = { value: row.dataItem.expenses };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderResult(h, _, row) {\r\n const props = { value: row.dataItem.result };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExtras(h, _, row) {\r\n const props = { value: row.dataItem.extras };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExternalRevenue(h, _, row) {\r\n const props = { value: row.dataItem.externalRevenue };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderOpenInvoiceAmount(h, _, row) {\r\n const teamOpenInvoices = row.dataItem.openInvoiceAmount as number;\r\n const props = { value: teamOpenInvoices };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderOpenExpensesAmount(h, _, row) {\r\n const teamOpenExpenses = row.dataItem.openExpenseAmount as number;\r\n const props = { value: teamOpenExpenses };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderGroupOpenInvoiceAmount(h, _, row) {\r\n const groupOpenInvoiceAmount = row.dataItem.groupOpenInvoiceAmount as number;\r\n const props = { value: groupOpenInvoiceAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderGroupOpenExpensesAmount(h, _, row) {\r\n const groupOpenExpenseAmount = row.dataItem.groupOpenExpenseAmount as number;\r\n const props = { value: groupOpenExpenseAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderDropDeadRatio(h, _, row) {\r\n if (row.dataItem.safetyZone) {\r\n const props = { value: row.dataItem.safetyZone };\r\n return h(Vue.component('number-formatter'), { props });\r\n } else {\r\n return h('td', ['N/A']);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-finance-totals.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-finance-totals.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ecosystem-finance-totals.vue?vue&type=template&id=bdba36b8&\"\nimport script from \"./ecosystem-finance-totals.ts?vue&type=script&lang=js&\"\nexport * from \"./ecosystem-finance-totals.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (!_vm.mapData)?_c('div',{staticClass:\"prd-map\"},[_vm._v(\" No map data found \")]):_c('div',{staticClass:\"prd-map\"},[(_vm.editMode)?_c('div',{staticClass:\"prd-map-settings\"},[_c('h2',[_vm._v(\"Map setup\")]),_c('div',{staticClass:\"prd-map-settings-item\"},[_c('div',{staticClass:\"prd-group\"},[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Width\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.width),expression:\"width\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.width)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.width=$event.target.value}}})]),_c('div',{staticClass:\"prd-group\"},[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Height\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.height),expression:\"height\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.height)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.height=$event.target.value}}})])]),_c('div',{staticClass:\"prd-map-entities\"},_vm._l((_vm.mapData.entities),function(entity,index){return _c('div',{key:'e' + index,staticClass:\"prd-map-entity\"},[_c('h4',{staticClass:\"prd-entity-title\"},[_vm._v(_vm._s(entity.name))]),_c('div',{staticClass:\"prd-group\"},[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Position lat\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(entity.pos[0]),expression:\"entity.pos[0]\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(entity.pos[0])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(entity.pos, 0, $event.target.value)}}})]),_c('div',{staticClass:\"prd-group\"},[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Position lng\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(entity.pos[1]),expression:\"entity.pos[1]\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(entity.pos[1])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(entity.pos, 1, $event.target.value)}}})]),_c('div',{staticClass:\"prd-group\"},[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Radius (\"+_vm._s(entity.radius)+\")\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(entity.radius),expression:\"entity.radius\"}],attrs:{\"type\":\"range\",\"min\":\"1\",\"max\":\"150\"},domProps:{\"value\":(entity.radius)},on:{\"__r\":function($event){return _vm.$set(entity, \"radius\", $event.target.value)}}})]),_c('div',{staticClass:\"prd-group\"},[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Color\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(entity.fillColor),expression:\"entity.fillColor\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(entity.fillColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(entity, \"fillColor\", $event.target.value)}}})]),_c('div',{staticClass:\"prd-map-btn-group\"},[(!_vm.selectedEntity || _vm.selectedEntity.id != entity.id)?_c('button',{staticClass:\"btn\",on:{\"click\":function($event){return _vm.selectEntity(entity)}}},[_vm._v(\" Select \")]):_c('button',{staticClass:\"btn\",on:{\"click\":_vm.clearSelectedEntity}},[_vm._v(\" Cancel \")])])])}),0)]):_vm._e(),_c('l-map',{ref:\"prdMap\",style:((\"width: \" + _vm.width + \"px; height: \" + _vm.height + \"px; background: #eee;\")),attrs:{\"crs\":_vm.crs,\"zoom\":2}},[_c('l-circle',{ref:\"tooltipContainer\",attrs:{\"opacity\":_vm.circle.opacity,\"fill\":_vm.circle.fill,\"fill-opacity\":_vm.circle.fillOpacity,\"lat-lng\":_vm.tooltipLatLng,\"stroke\":false,\"radius\":40,\"options\":{ zIndex: 10000, 'z-index': 10000 }}},[_c('l-tooltip',{ref:\"refTooltip\",attrs:{\"visbile\":true,\"lat-lng\":_vm.tooltipLatLng,\"options\":{ permanent: true, direction: 'center' }}},[_c('h3',{domProps:{\"innerHTML\":_vm._s(_vm.contentTitle)}}),_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.content)}})])],1),_vm._l((_vm.mapData.entities),function(entity,index){return [_c('l-circle',{key:entity.id,ref:\"circleEntity\",refInFor:true,attrs:{\"lat-lng\":_vm.getEntityPos(entity),\"radius\":_vm.getEntityRadius(entity),\"name\":entity.name,\"stroke\":false,\"fillColor\":entity.fillColor}},[_c('l-tooltip',{attrs:{\"options\":{ permanent: true, direction: 'center', className: 'prd-entity-tooltip' }}},[_c('h3',[_vm._v(_vm._s(entity.name))]),_c('p',[_vm._v(_vm._s(entity.description))])])],1),_vm._l((entity.entities),function(group,index){return _c('l-circle',{key:group.id,attrs:{\"radius\":_vm.getEntityRadius(group),\"lat-lng\":_vm.getEntityPos(group),\"name\":group.name}},[_c('l-tooltip',{attrs:{\"options\":{ permanent: true, direction: 'center', className: 'prd-entity-tooltip' }}},[_c('p',[_vm._v(_vm._s(group.name))])])],1)})]}),_c('l-circle',{attrs:{\"lat-lng\":_vm.mousePosition,\"radius\":_vm.getEntityRadius(_vm.selectedEntity),\"visible\":!!_vm.selectedEntity,\"stroke\":false,\"fillColor\":\"placeHolderFill\"}})],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Leaflet, { CRS } from 'leaflet';\r\nimport { LMap, LImageOverlay, LMarker, LPopup, LPolyline, LIcon, LCircle, LTooltip, LLayerGroup, LRectangle } from 'vue2-leaflet';\r\nimport '@elfalem/leaflet-curve';\r\nimport 'leaflet/dist/leaflet.css';\r\nimport Vue from 'vue';\r\n\r\nexport default {\r\n components: {\r\n LMap,\r\n LImageOverlay,\r\n LMarker,\r\n LPopup,\r\n LPolyline,\r\n LIcon,\r\n LCircle,\r\n LRectangle,\r\n LTooltip,\r\n LLayerGroup,\r\n },\r\n props: {\r\n mapData: { Type: Object },\r\n editMode: { type: Boolean },\r\n },\r\n data() {\r\n return {\r\n crs: CRS.Simple,\r\n width: 400,\r\n height: 600,\r\n mousePosition: [0, 0],\r\n selectedEntity: null,\r\n placeHolderFill: '#ccc',\r\n content: '',\r\n contentTitle: '',\r\n circle: {\r\n opacity: 0,\r\n fill: true,\r\n fillOpacity: 0,\r\n },\r\n tooltipLatLng: {\r\n lat: -99999,\r\n lng: -99999,\r\n },\r\n tooltipLatLngArray: [0, 0],\r\n permanent: false,\r\n biggestTotal: 0,\r\n };\r\n },\r\n\r\n mounted() {\r\n this.$watch('editMode', this._watchEditModeChange);\r\n this.$watch('width', this._refreshCanvas);\r\n this.$watch('height', this._refreshCanvas);\r\n\r\n this.mapData.entities.forEach((entity) => {\r\n entity.revenue.forEach((revenue) => {\r\n if (revenue.total > this.biggestTotal) {\r\n this.biggestTotal = revenue.total;\r\n }\r\n });\r\n });\r\n\r\n this.$nextTick(() => {\r\n this._addResizeListener();\r\n this.stretchCanvasWidth();\r\n this.drawRelations();\r\n });\r\n },\r\n methods: {\r\n drawRelations() {\r\n this.mapData.entities.forEach((entity) => {\r\n entity.revenue.forEach((revenue) => {\r\n const sendingTeam = this.mapData.entities.find((entity) => entity.id == revenue.teamId);\r\n this.drawArc(\r\n entity.transferPointReceiving,\r\n sendingTeam.transferPointSending,\r\n this._getMapObject(),\r\n revenue,\r\n entity.name,\r\n sendingTeam.name,\r\n );\r\n });\r\n });\r\n },\r\n drawArc(latlng1, latlng2, map, revenue, to, from) {\r\n const offsetX = latlng2[1] - latlng1[1];\r\n const offsetY = latlng2[0] - latlng1[0];\r\n const r = Math.sqrt(Math.pow(offsetX, 2) + Math.pow(offsetY, 2));\r\n const theta = Math.atan2(offsetY, offsetX);\r\n const thetaOffset = 3.14 / 10;\r\n const r2 = r / 2 / Math.cos(thetaOffset);\r\n const theta2 = theta + thetaOffset;\r\n const midpointX = r2 * Math.cos(theta2) + latlng1[1];\r\n const midpointY = r2 * Math.sin(theta2) + latlng1[0];\r\n const midpointLatLng = [midpointY, midpointX];\r\n const pathOptions = {\r\n color: 'rgba(0, 0, 0, 0.3)',\r\n weight: revenue.total < 1000 ? 5 : revenue.total / (this.biggestTotal / 10) + 5,\r\n title: `${Vue.filter('number-format')(revenue.total)} from ${from} to ${to}`,\r\n transfers: `Total transfers amount: ${Vue.filter('number-format')(revenue.transfers)}`,\r\n attributions: `Total attribution amount: ${Vue.filter('number-format')(revenue.attributions)}`,\r\n };\r\n\r\n const curve = Leaflet.curve(['M', latlng1, 'Q', midpointLatLng, latlng2], pathOptions);\r\n curve.on('mouseover', (e) => this.showTooltip(e));\r\n curve.on('mouseout', (e) => this.hideToolTip(e));\r\n curve.addTo(map);\r\n },\r\n showTooltip(event) {\r\n this.contentTitle = event.target.options.title;\r\n this.content = event.target.options.transfers + '
' + event.target.options.attributions;\r\n this.$refs.tooltipContainer.latlng = event.latlng;\r\n this.tooltipLatLng = event.latlng;\r\n },\r\n hideToolTip(event) {\r\n this.tooltipLatLng = {\r\n lat: -99999,\r\n lng: -99999,\r\n };\r\n },\r\n stretchCanvasWidth() {\r\n this.width = this.$el.clientWidth;\r\n this._refreshCanvas();\r\n },\r\n getEntityPos(entity) {\r\n return [parseFloat(entity.pos[0]), parseFloat(entity.pos[1])];\r\n },\r\n getEntityRadius(entity) {\r\n return entity && entity.radius ? parseFloat(entity.radius) : 10;\r\n },\r\n selectEntity(entity) {\r\n this.selectedEntity = entity;\r\n },\r\n clearSelectedEntity() {\r\n this.selectedEntity = null;\r\n },\r\n _getMapObject() {\r\n if (this.$refs.prdMap && this.$refs.prdMap.mapObject) {\r\n return this.$refs.prdMap.mapObject;\r\n }\r\n },\r\n _watchEditModeChange() {\r\n const map = this._getMapObject();\r\n\r\n if (this.editMode) {\r\n this._disableMapMutations(map);\r\n this._addEventListeners();\r\n } else {\r\n this._enableMapMutations(map);\r\n this._removeEventListeners();\r\n }\r\n },\r\n _addEventListeners() {\r\n const map = this._getMapObject();\r\n\r\n map.on('click', this._setEntityPositionOnClick);\r\n map.on('mousemove', this._setMousePosition);\r\n\r\n this.$refs.circleEntity.forEach((circle) => {\r\n const map = circle.mapObject;\r\n map.on('click', this._selectEntityOnClick);\r\n });\r\n },\r\n _removeEventListeners() {\r\n const map = this._getMapObject();\r\n\r\n map.off('click', this._setEntityPositionOnClick);\r\n map.off('mousemove', this._setMousePosition);\r\n\r\n this.$refs.circleEntity.forEach((circle) => {\r\n const map = circle.mapObject;\r\n map.off('click', this._selectEntityOnClick);\r\n });\r\n },\r\n _disableMapMutations(map) {\r\n map.dragging.disable();\r\n map.touchZoom.disable();\r\n map.doubleClickZoom.disable();\r\n map.scrollWheelZoom.disable();\r\n map.boxZoom.disable();\r\n map.keyboard.disable();\r\n },\r\n _enableMapMutations(map) {\r\n map.dragging.enable();\r\n map.touchZoom.enable();\r\n map.doubleClickZoom.enable();\r\n map.scrollWheelZoom.enable();\r\n map.boxZoom.enable();\r\n map.keyboard.enable();\r\n },\r\n _setEntityPositionOnClick(e) {\r\n if (this.selectedEntity) {\r\n this._setEntityPosition(this.selectedEntity, e);\r\n }\r\n },\r\n _setEntityPosition(entity, mouseEvent) {\r\n entity.pos = [mouseEvent.latlng.lat, mouseEvent.latlng.lng];\r\n this.selectedEntity = null;\r\n },\r\n _setMousePosition(e) {\r\n this.mousePosition = [e.latlng.lat, e.latlng.lng];\r\n },\r\n _selectEntityOnClick(e) {\r\n const self = this;\r\n const center = e.target._latlng;\r\n const entity = this.mapData.entities.find((ent) => {\r\n return ent.pos[0] === center.lat && ent.pos[1] === center.lng;\r\n });\r\n\r\n if (entity) {\r\n setTimeout(() => {\r\n self.selectEntity(entity);\r\n });\r\n }\r\n },\r\n _addResizeListener() {\r\n const self = this;\r\n window.addEventListener('resize', () => {\r\n self.stretchCanvasWidth();\r\n });\r\n },\r\n _refreshCanvas() {\r\n this._getMapObject()._onResize();\r\n },\r\n _groupBy(arr, prop) {\r\n const map = new Map(Array.from(arr, (obj) => [obj[prop], []]));\r\n arr.forEach((obj) => map.get(obj[prop]).push(obj));\r\n return Array.from(map.values());\r\n },\r\n },\r\n};\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./Map.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./Map.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Map.vue?vue&type=template&id=7466e294&\"\nimport script from \"./Map.js?vue&type=script&lang=js&\"\nexport * from \"./Map.js?vue&type=script&lang=js&\"\nimport style0 from \"./Map.css?vue&type=style&index=0&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoaded)?_c('td',{staticClass:\"text-nowrap\"},[(!_vm.memberObj || !_vm.memberObj.personId)?[_vm._v(\" - \")]:[(_vm.memberObj.avatar)?_c('img',{attrs:{\"src\":'/dist/images/' + _vm.memberObj.avatar,\"alt\":\"\"}}):_c('span',{staticClass:\"icon-user mr-2\"}),_vm._v(\" \"+_vm._s(_vm.memberObj.getFullName())+\" \"),(_vm.memberObj.deleted)?_c('b-badge',{staticClass:\"ml-2\",attrs:{\"pill\":\"\",\"variant\":\"warning\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DELETED\"}})],1):_vm._e()]],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport { Person } from '../../models/Person';\r\n\r\n@Component\r\nexport default class MemberNameComponent extends Vue {\r\n @Prop({ default: () => new Person() }) public member: Person;\r\n public memberObj: Person = null;\r\n public isLoaded: boolean = false;\r\n\r\n public mounted() {\r\n this.memberObj = new Person(this.member);\r\n this.isLoaded = true;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./member-name-native.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./member-name-native.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./member-name-native.vue?vue&type=template&id=3c10976a&\"\nimport script from \"./member-name-native.ts?vue&type=script&lang=js&\"\nexport * from \"./member-name-native.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.member.avatar)?_c('img',{attrs:{\"src\":'/dist/images/' + _vm.member.avatar,\"alt\":\"\"}}):_c('span',{staticClass:\"icon-user mr-2\"}),_vm._v(\" \"+_vm._s(_vm.member.getFullName())+\" \")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport { Person } from '../../models/Person';\r\n\r\n@Component\r\nexport default class MemberNameComponent extends Vue {\r\n @Prop() public member: Person = new Person();\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./member-name.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./member-name.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./member-name.vue?vue&type=template&id=fd1c18a0&\"\nimport script from \"./member-name.ts?vue&type=script&lang=js&\"\nexport * from \"./member-name.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[_c('kendo-dropdownlist',{staticClass:\"members-dropdown\",attrs:{\"data-items\":_vm.dropdownMembers,\"auto-width\":true,\"value-render\":_vm.valueRender,\"item-render\":_vm.itemRender,\"popupSettings\":{ width: 'auto', className: 'px-2' }},on:{\"open\":_vm.loadMembers},scopedSlots:_vm._u([{key:\"valueTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('div',{staticClass:\"p-1\"},[_c('span',{staticClass:\"icon-users mr-1\"}),_vm._v(\" \"+_vm._s(_vm.lazy ? _vm.memberCount : _vm.members.length))])]}},{key:\"itemTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('div',{staticClass:\"p-2 px-2\"},[_c('member-name-native',{attrs:{\"member\":props.dataItem}})],1)]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport { groupService } from '@/main';\r\nimport to from 'await-to-js';\r\nimport { Member } from '@/models/Member';\r\n\r\n@Component\r\nexport default class MembersComponent extends Vue {\r\n @Prop({ default: () => [] }) public members: any;\r\n @Prop({ default: false }) public lazy: boolean;\r\n @Prop({ default: null }) public groupId: number;\r\n @Prop({ default: null }) public teamId: number;\r\n @Prop({ default: null }) public memberCount: number;\r\n\r\n public memberItems: Member[] = [];\r\n public defaultItem = {\r\n text: this.memberDropdownButtonTemplate(),\r\n };\r\n\r\n public valueRender = 'valueTemplate';\r\n public itemRender = 'itemTemplate';\r\n\r\n public mounted() {\r\n if (this.members) {\r\n this.memberItems = this.members;\r\n }\r\n }\r\n\r\n public get dropdownMembers() {\r\n return this.memberItems;\r\n }\r\n\r\n public memberDropdownButtonTemplate() {\r\n if (this.lazy) {\r\n return `${this.memberCount}`;\r\n }\r\n\r\n return `${this.members.length}`;\r\n }\r\n\r\n public async loadMembers() {\r\n if (this.lazy) {\r\n const [err, response] = await to(groupService.getMembers(this.groupId, this.teamId));\r\n if (!err) {\r\n this.memberItems = response.data;\r\n }\r\n }\r\n }\r\n\r\n public memberDropdownTemplate(item) {\r\n return {\r\n template: Vue.component('member-name'),\r\n templateArgs: { member: item },\r\n };\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./members.vue?vue&type=template&id=6e78faa4&\"\nimport script from \"./members.ts?vue&type=script&lang=js&\"\nexport * from \"./members.ts?vue&type=script&lang=js&\"\nimport style0 from \"./members.vue?vue&type=style&index=0&id=6e78faa4&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('td',[_c('kendo-dropdownlist',{staticClass:\"members-dropdown\",attrs:{\"data-items\":_vm.memberships,\"auto-width\":true,\"value-render\":_vm.valueRender,\"item-render\":_vm.itemRender,\"popupSettings\":{ width: 'auto', className: 'px-2' }},on:{\"open\":_vm.onSelect},scopedSlots:_vm._u([{key:\"valueTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('span',{staticClass:\"px-2 py-1\"},[_vm._v(_vm._s(_vm.memberships.length)+\" \"+_vm._s(_vm.isTeam ? 'team' : 'group')+_vm._s(_vm.memberships.length > 1 ? 's' : ''))])]}},{key:\"itemTemplate\",fn:function(ref){\nvar props = ref.props;\nreturn [(!_vm.disableOnClick)?_c('div',{staticClass:\"p-2 px-2 k-item cursor-pointer\",on:{\"click\":function($event){return _vm.onSelect(props)}}},[_c('span',{staticClass:\"px-2\"},[_vm._v(_vm._s(props.dataItem.name))])]):_c('div',{staticClass:\"p-2 px-2\"},[_c('span',{staticClass:\"px-2\"},[_vm._v(_vm._s(props.dataItem.name))])])]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport { $router, teamHelper, ecosystemHelper } from '@/main';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class MembershipComponent extends Vue {\r\n @Prop({ default: () => [] }) public memberships: any;\r\n @Prop({ default: () => false }) public isTeam: boolean;\r\n @Prop({ default: () => false }) public disableOnClick: boolean;\r\n\r\n public valueRender = 'valueTemplate';\r\n public itemRender = 'itemTemplate';\r\n\r\n public async go(key: string, id: number) {\r\n let team = !key ? teamHelper.currentTeam : teamHelper.getTeamByKey(key);\r\n const groupKey = key;\r\n const groupId = id;\r\n\r\n if (this.isTeam) {\r\n team = teamHelper.getTeamByKey(key);\r\n }\r\n\r\n if (this.isTeam) {\r\n return $router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: team.id.toString(),\r\n teamKey: team.key,\r\n groupkey: groupKey,\r\n groupId: groupId.toString(),\r\n tab: 'groups',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n const params = {\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n groupkey: groupKey,\r\n groupId: groupId.toString(),\r\n tab: 'members',\r\n period: periodModule.selectedPeriod,\r\n };\r\n await $router.push({ name: 'team-directory-group', params });\r\n }\r\n\r\n public memberShipValueTemplate(): string {\r\n return `${this.memberships.length} ${this.isTeam ? 'team' : 'group'}${this.memberships.length > 1 ? 's' : ''}`;\r\n }\r\n\r\n public async onSelect(item) {\r\n if (!this.disableOnClick) {\r\n const membership = item.dataItem;\r\n await this.go(membership.key, membership.id);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./memberships.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./memberships.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./memberships.vue?vue&type=template&id=ce3de096&\"\nimport script from \"./memberships.ts?vue&type=script&lang=js&\"\nexport * from \"./memberships.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"id\":\"amortizeModal\",\"title\":\"Amortize selected invoice\",\"size\":\"lg\"}},[_c('b-form',[(_vm.invoice.invoice.invoiceAmortization && _vm.invoice.invoice.invoiceAmortization.account)?_c('div',[_c('p',{staticClass:\"font-italic mb-4\"},[_c('span',{staticClass:\"k-icon k-i-info align-text-bottom\"}),_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_SETTINGS\",\"translate-group\":\"MODALS\"}})],1)]):_vm._e(),_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('label',[_c('strong',[_vm._v(_vm._s(_vm.invoice.invoice.amount))]),_c('prd-translate-text',{attrs:{\"translate-key\":\"FILL_BE_CHARGED_ON\",\"translate-group\":\"MODALS\"}})],1)]),_c('div',{staticClass:\"col-md-8\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsList},model:{value:(_vm.account),callback:function ($$v) {_vm.account=$$v},expression:\"account\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_PERSON_GROUP'),expression:\"'SELECT_PERSON_GROUP'\"}],domProps:{\"value\":null}})])],2)],1)])]),_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_FINISHED_PERIODS\",\"translate-group\":\"MODALS\"}})],1),_c('div',{staticClass:\"col-md-8\"},[_c('b-form-input',{attrs:{\"disabled\":!_vm.account,\"type\":\"number\"},nativeOn:{\"focus\":function($event){_vm.numberOfPeriodsIsDirty = true;\n _vm.amountIsDirty = false;},\"blur\":function($event){_vm.numberOfPeriodsIsDirty = false}},model:{value:(_vm.numberOfPeriods),callback:function ($$v) {_vm.numberOfPeriods=$$v},expression:\"numberOfPeriods\"}})],1)])]),_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_PER_PERIOD\",\"translate-group\":\"MODALS\"}})],1),_c('div',{staticClass:\"col-md-8\"},[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",attrs:{\"disabled\":!_vm.account,\"output-dec-seperator\":\",\",\"convert-on\":\"input\"},nativeOn:{\"focus\":function($event){_vm.amountIsDirty = true;\n _vm.numberOfPeriodsIsDirty = false;},\"blur\":function($event){_vm.amountIsDirty = false}},model:{value:(_vm.amount),callback:function ($$v) {_vm.amount=$$v},expression:\"amount\"}})],1)])])],1),_c('div',{staticClass:\"mt-5\"},[_c('h4',[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_KEEP_IN_MIND\",\"translate-group\":\"MODALS\"}})],1),_c('ul',{staticClass:\"mb-0\"},[_c('li',[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_1\",\"translate-group\":\"MODALS\"}}),_c('strong',{domProps:{\"innerHTML\":_vm._s(_vm.getAmortizationAmountFormat())}}),_vm._v(\" to \"),_c('strong',[_vm._v(_vm._s(_vm.getAccountName()))]),_vm._v(\". \")],1),_c('li',[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_2\",\"translate-group\":\"MODALS\"}})],1),_c('li',[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_3\",\"translate-group\":\"MODALS\"}})],1),_c('li',[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMORTIZE_4\",\"translate-group\":\"MODALS\"}})],1)])]),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.AMORTIZE_INVOICES'),expression:\"'MODALS.AMORTIZE_INVOICES'\"}],attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":!_vm.account},on:{\"click\":function($event){return _vm.setInvoiceAsAmortized()}}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop, Watch } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport to from 'await-to-js';\r\nimport { financeService } from '@/main';\r\nimport Vue from 'vue';\r\n\r\n@Component\r\nexport default class AmortizeModalComponent extends BaseModal {\r\n @Prop({ default: () => false }) public isGroupScope: boolean;\r\n @Prop({ default: () => false }) public isExpense: boolean;\r\n @Prop({ default: () => [] }) public optionsList: any[];\r\n @Prop({ default: () => new DistributedInvoice() }) public invoice: DistributedInvoice;\r\n\r\n public account: any = null;\r\n public amount: any = null;\r\n public numberOfPeriods: number = 24;\r\n\r\n public amountIsDirty = false;\r\n public numberOfPeriodsIsDirty = false;\r\n\r\n public mounted() {\r\n this.amount = this.invoice.invoice.amount / this.numberOfPeriods;\r\n\r\n if (this.invoice.invoice.invoiceAmortization && this.invoice.invoice.invoiceAmortization.account) {\r\n this.account = this.invoice.invoice.invoiceAmortization.account.accountId;\r\n this.amount = this.invoice.invoice.invoiceAmortization.amortizationAmount;\r\n }\r\n\r\n if (this.$refs.modal) {\r\n this.$refs.modal.$on('hidden.bs.BModal', this.onHide);\r\n }\r\n }\r\n\r\n public onHide() {\r\n this.account = null;\r\n }\r\n\r\n public async setInvoiceAsAmortized() {\r\n this.showPending('SETTING_AMORTIZATION');\r\n const [err] = await to(financeService.setInvoiceAmortization(this.invoice.invoice.invoiceId, this.account, this.amount));\r\n if (err) {\r\n return this.clearAndShowError('AMORTIZATION_FAILED', err);\r\n }\r\n\r\n this.invoice.selected = false;\r\n\r\n this.clearAndShowSuccess('AMORIZATION_SUCCESS');\r\n this.$emit('amortization-set', this.invoice);\r\n this.hide();\r\n }\r\n\r\n public getAccountName() {\r\n const account = this.optionsList.find((option) => option.value === this.account);\r\n return account ? account.text : 'select a person/group first';\r\n }\r\n\r\n public getAmortizationAmountFormat() {\r\n if (this.amount) {\r\n return Vue.filter('number-format')(this.amount);\r\n }\r\n\r\n return '0';\r\n }\r\n\r\n @Watch('numberOfPeriods')\r\n public OnNumberChange(val) {\r\n if (val && this.numberOfPeriodsIsDirty && !this.amountIsDirty) {\r\n this.amount = this.invoice.invoice.amount / this.numberOfPeriods;\r\n }\r\n }\r\n\r\n @Watch('amount')\r\n public OnAmountChange(val) {\r\n if (val && this.amountIsDirty && !this.numberOfPeriodsIsDirty) {\r\n this.numberOfPeriods = Math.ceil(this.invoice.invoice.amount / this.amount);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./amortize-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./amortize-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./amortize-modal.vue?vue&type=template&id=4229d813&\"\nimport script from \"./amortize-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./amortize-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"id\":\"create-ledger-account-modal\"}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[(_vm.itemToDelete)?_c('h5',[_c('prd-translate-text',{attrs:{\"translate-key\":\"DELETE\",\"translate-group\":\"MODALS\",\"element\":\"span\"}}),_vm._v(\" \"+_vm._s(_vm.entityName)+\" \"+_vm._s(_vm.itemToDelete[_vm.propertyToCheck])+\" \")],1):_vm._e()]),_c('b-form-group',{attrs:{\"id\":\"input-group-2\",\"label-for\":\"ledger-name\"}},[_c('template',{slot:\"label\"},[_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'MODALS.DELETE_EXPLANATION', params: { property: _vm.propertyToCheck, entityName: _vm.entityName } }),expression:\"{ key: 'MODALS.DELETE_EXPLANATION', params: { property: propertyToCheck, entityName: entityName } }\"}]})]),_c('b-form-input',{attrs:{\"id\":\"ledger-name\",\"type\":\"text\",\"placeholder\":'Type ' + _vm.propertyToCheck + ' to confirm',\"required\":\"\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}})],2),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.hide()}}},[_vm._v(\"Cancel\")]),_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.deleteEntity}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'MODALS.DELETE_ENTIITY', params: { entityName: _vm.entityName } }),expression:\"{ key: 'MODALS.DELETE_ENTIITY', params: { entityName: entityName } }\"}]})])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\n\r\n@Component\r\nexport default class AreYouSureModal extends BaseModal {\r\n public value: string = '';\r\n public entityName: string = '';\r\n public itemToDelete: any = null;\r\n public propertyToCheck: string = '';\r\n\r\n public setScope(item: any, property: string, entityName: string) {\r\n this.itemToDelete = item;\r\n this.propertyToCheck = property;\r\n this.entityName = entityName;\r\n }\r\n\r\n public async deleteEntity() {\r\n if (!this.itemToDelete.hasOwnProperty(this.propertyToCheck)) {\r\n return this.showError('PROPERTY_DOENST_EXIST');\r\n }\r\n\r\n if (this.itemToDelete[this.propertyToCheck] !== this.value) {\r\n return this.showError('VALUE_DOESNT_MATCH');\r\n }\r\n\r\n this.$emit('delete-entity', this.itemToDelete);\r\n }\r\n\r\n public onHide() {\r\n this.itemToDelete = null;\r\n this.propertyToCheck = '';\r\n this.entityName = '';\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./are-you-sure-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./are-you-sure-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./are-you-sure-modal.vue?vue&type=template&id=44fa78b0&\"\nimport script from \"./are-you-sure-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./are-you-sure-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"id\":\"ecosystemSwitcherModal\"}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('h5',[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEGAL_ENTITY_SWITCH_TITLE\",\"translate-group\":\"MODALS\"}})],1)]),_c('b-form-group',{attrs:{\"id\":\"input-group-2\",\"label-for\":\"legal-name\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEGAL_ENTITY_SWITCH_LABEL\",\"translate-group\":\"MODALS\"}})],1),_c('b-form-input',{attrs:{\"id\":\"legal-name\",\"type\":\"text\",\"placeholder\":\"Legal entity reference\",\"required\":\"\"},model:{value:(_vm.legalEntityReference),callback:function ($$v) {_vm.legalEntityReference=$$v},expression:\"legalEntityReference\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"LEGAL_ENTITY_SWITCH_DESCRIPTION\",\"translate-group\":\"MODALS\"}})],2),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{attrs:{\"variant\":\"secondary\"},on:{\"click\":_vm.hide}},[_vm._v(\"Cancel\")]),_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.updateLegalEntity}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEGAL_ENTITY_SWITCH_BUTTON\",\"translate-group\":\"MODALS\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { financeService } from '@/main';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport to from 'await-to-js';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\n\r\n@Component\r\nexport default class ChangeLegalEntityReferenceModal extends BaseModal {\r\n @Prop({ default: () => [] }) public invoices: DistributedInvoice[];\r\n\r\n public legalEntityReference: string = '';\r\n\r\n public async updateLegalEntity() {\r\n const self = this;\r\n const list = [];\r\n\r\n this.invoices.forEach((invoice: DistributedInvoice) => {\r\n if (invoice) {\r\n list.push({ InvoiceId: invoice.invoice.invoiceId, LegalEntityReference: this.legalEntityReference });\r\n }\r\n });\r\n\r\n this.showPending('UPDATE_LEGAL_ENTITY_PENDING');\r\n const [err] = await to(financeService.setInvoicesLegalEntityReference(list));\r\n if (err) {\r\n return self.clearAndShowError('UPDATE_LEGAL_ENTITY_FAILED', null);\r\n }\r\n self.clearAndShowSuccess('UPDATE_LEGAL_ENTITY_SUCCESS');\r\n this.$emit('invoices-updated');\r\n this.hide();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./change-legal-entity-reference-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./change-legal-entity-reference-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./change-legal-entity-reference-modal.vue?vue&type=template&id=9878b374&\"\nimport script from \"./change-legal-entity-reference-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./change-legal-entity-reference-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"id\":\"create-ledger-account-modal\"}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('h5',[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEDGER_ACCOUNT_MODAL_TITLE\",\"translate-group\":\"MODALS\"}})],1)]),_c('b-form-group',{attrs:{\"id\":\"input-group-2\",\"label-for\":\"ledger-name\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEDGER_ACCOUNT_MODAL_NAME\",\"translate-group\":\"MODALS\"}})],1),_c('b-form-input',{attrs:{\"id\":\"ledger-name\",\"type\":\"text\",\"placeholder\":\"Ledger account name\",\"required\":\"\"},model:{value:(_vm.ledger.name),callback:function ($$v) {_vm.$set(_vm.ledger, \"name\", $$v)},expression:\"ledger.name\"}})],2),_c('b-form-group',{attrs:{\"id\":\"input-group-2\",\"label-for\":\"ledger-number\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEDGER_ACCOUNT_MODAL_NUMBER\",\"translate-group\":\"MODALS\"}})],1),_c('b-form-input',{attrs:{\"id\":\"ledger-number\",\"type\":\"text\",\"placeholder\":\"Ledger account number\",\"required\":\"\"},model:{value:(_vm.ledger.value),callback:function ($$v) {_vm.$set(_vm.ledger, \"value\", $$v)},expression:\"ledger.value\"}})],2),_c('b-form-group',{attrs:{\"id\":\"input-group-2\",\"label-for\":\"ledger-description\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEDGER_ACCOUNT_MODAL_DESCRIPTION\",\"translate-group\":\"MODALS\"}})],1),_c('b-form-textarea',{attrs:{\"rows\":\"3\",\"max-rows\":\"6\",\"id\":\"ledger-description\",\"type\":\"text\",\"placeholder\":\"Description\",\"required\":\"\"},model:{value:(_vm.ledger.description),callback:function ($$v) {_vm.$set(_vm.ledger, \"description\", $$v)},expression:\"ledger.description\"}})],2),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.hide()}}},[_vm._v(\"Cancel\")]),_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.createOrUpdateLedgerAccount}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEDGER_ACCOUNT_MODAL_BUTTON\",\"translate-group\":\"MODALS\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { ledgerService } from '@/main';\r\nimport Ledger from '@/models/Finance/Ledger';\r\nimport to from 'await-to-js';\r\nimport { Component } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\n\r\n@Component\r\nexport default class CreateLedgerAccountModal extends BaseModal {\r\n private ledger: Ledger = new Ledger();\r\n\r\n public setLedger(ledger: Ledger) {\r\n this.ledger = ledger;\r\n }\r\n\r\n public async createOrUpdateLedgerAccount() {\r\n this.showPending('CREATE_OR_UPDATE_LEDGER_PENDING');\r\n let err = null;\r\n if (this.ledger.ledgerId) {\r\n [err] = await to(ledgerService.updateLedgers(this.ledger));\r\n } else {\r\n [err] = await to(ledgerService.postLedgers(this.ledger));\r\n }\r\n\r\n if (err) {\r\n return this.clearAndShowError('CREATE_OR_UPDATE_LEDGER_FAILED', null);\r\n }\r\n\r\n this.$emit('reload-ledgers');\r\n this.clearAndShowSuccess('CREATE_OR_UPDATE_LEDGER_SUCCESS');\r\n this.hide();\r\n }\r\n\r\n public onHide() {\r\n this.ledger = new Ledger();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-ledger-account-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-ledger-account-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create-ledger-account-modal.vue?vue&type=template&id=31cbfffc&\"\nimport script from \"./create-ledger-account-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./create-ledger-account-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"id\":\"ecosystemSwitcherModal\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"modal-title\",\"translate-key\":\"NEW_ECOSYSTEM_LABEL\",\"translate-group\":\"MODALS\"},slot:\"modal-title\"}),_c('b-form-group',{staticClass:\"mt-5\",attrs:{\"label-cols\":\"6\",\"label-size\":\"sm\",\"label-for\":\"input-sm\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"NEW_ECOSYSTEM_LABEL\",\"translate-group\":\"MODALS\"},slot:\"label\"}),_c('b-form-select',{attrs:{\"options\":_vm.optionListEcosystems()},on:{\"change\":function($event){return _vm.switchToAnotherEcosystem($event)}},model:{value:(_vm.currentEcosystem),callback:function ($$v) {_vm.currentEcosystem=$$v},expression:\"currentEcosystem\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_ECOSYSTEM\"}})],1)])],2),_c('b-button',{attrs:{\"slot\":\"description\",\"size\":\"sm\",\"variant\":\"link\"},on:{\"click\":_vm.openCreateEcosystemSideAction},slot:\"description\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_ECOSYSTEM\",\"translate-group\":\"MODALS\"}})],1)],1),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { ecosystemHelper, loginHelper, teamHelper } from '@/main';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { Component } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\n\r\n@Component\r\nexport default class EcosystemSwitcherModalComponent extends BaseModal {\r\n public currentEcosystem: number = null;\r\n\r\n public optionListEcosystems() {\r\n return loginHelper\r\n .getUser()\r\n .ecosystemMemberships.filter((x) => x.id !== ecosystemHelper.currentEcosystem.id)\r\n .map((ship) => {\r\n return { value: ship.id, text: ship.name };\r\n });\r\n }\r\n\r\n public async switchToAnotherEcosystem(ecosystemId: number, reloadProfile: boolean = false) {\r\n if (reloadProfile) {\r\n await profileModule.loadBrightProfileIfNeeded(true);\r\n const reloadedProfile = await loginHelper.reloadProfile();\r\n profileModule.setBrightProfile(reloadedProfile);\r\n }\r\n\r\n const profile = profileModule.brightProfile;\r\n const ecosystem = profile.ecosystemMemberships.find((x) => x.id === ecosystemId);\r\n\r\n let team = profile.teamMemberships\r\n .filter((x) => x.ecosystem === ecosystem.id)\r\n .find((t) => {\r\n if (profile.primaryTeam) {\r\n return t.id === profile.primaryTeam;\r\n }\r\n });\r\n\r\n if (!team) {\r\n team = profile.teamMemberships.filter((x) => x.ecosystem === ecosystem.id)[0];\r\n }\r\n\r\n if (this.$refs.modal) {\r\n this.$refs.modal.hide();\r\n }\r\n\r\n ecosystemHelper.setEcosystemByEcosystemId(ecosystem.id);\r\n teamHelper.setTeam(team);\r\n await periodModule.init();\r\n\r\n this.currentEcosystem = null;\r\n\r\n if (reloadProfile) {\r\n return this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystem.id.toString(),\r\n ecosystemKey: ecosystem.key,\r\n teamId: team.id.toString(),\r\n teamKey: team.key,\r\n period: periodModule.selectedPeriod,\r\n tab: 'groups',\r\n },\r\n });\r\n }\r\n\r\n return this.$router.push({\r\n name: 'me-finances',\r\n params: {\r\n ecosystemId: ecosystem.id.toString(),\r\n ecosystemKey: ecosystem.key,\r\n teamId: team.id.toString(),\r\n teamKey: team.key,\r\n period: periodModule.selectedPeriod,\r\n tab: 'overview',\r\n },\r\n });\r\n }\r\n\r\n public openCreateEcosystemSideAction() {\r\n this.hide();\r\n\r\n this.$sideActions.push(\r\n 'create-ecosystem-side-action',\r\n {\r\n // options\r\n },\r\n async (ecosystem) => {\r\n await this.switchToAnotherEcosystem(ecosystem.ecosystemId, true);\r\n },\r\n );\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-switcher-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ecosystem-switcher-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ecosystem-switcher-modal.vue?vue&type=template&id=55e13d2e&\"\nimport script from \"./ecosystem-switcher-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./ecosystem-switcher-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"id\":\"edit-energy-dication\",\"title\":\"Edit your energy dedication\",\"size\":\"md\"}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ENERGY_DEDICATION\",\"translate-group\":\"MODALS\"}})],1),_c('b-form',[_vm._l((_vm.energyGroups),function(group,index){return [_c('b-form-group',{attrs:{\"label-cols\":\"\",\"label-for\":'groupenergy_' + index}},[_c('template',{slot:\"label\"},[_vm._v(_vm._s(group.groupKey))]),_c('vue-regex-input',{staticClass:\"form-control\",attrs:{\"list\":\"input-list\",\"regExp\":/^\\d*(\\.\\d{0,2})?$/g,\"placeholder\":\"Enter an energy percentage\"},on:{\"input\":function($event){return _vm.updateEnergy($event, group.groupId)}},model:{value:(group.amount),callback:function ($$v) {_vm.$set(group, \"amount\", _vm._n($$v))},expression:\"group.amount\"}}),_c('b-form-datalist',{attrs:{\"id\":\"input-list\",\"options\":_vm.percentageOptions}})],2)]}),_c('b-form-group',{attrs:{\"label-cols\":\"\",\"label-for\":\"totalenergy\"}},[_c('template',{slot:\"label\"},[_c('b',[_c('prd-translate-text',{attrs:{\"translate-key\":\"ENERGY_DEDICATION_TOTAL\",\"translate-group\":\"MODALS\"}})],1)]),_c('span',[_c('b',[_vm._v(_vm._s(_vm.energySpent)+\"% \")]),_c('prd-translate-text',{attrs:{\"translate-key\":\"ENERGY_DEDICATION_TOTAL\",\"translate-group\":\"MODALS\",\"element\":\"span\"}})],1)],2)],2),_c('div',{staticClass:\"w-100\",attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('p',{staticClass:\"mb-4 cursor-pointer text-info\"},[_c('span',{staticClass:\"k-icon k-i-info\"}),_c('prd-translate-text',{attrs:{\"translate-key\":\"ENERGY_DEDICATION_OVERRIDE\",\"translate-group\":\"MODALS\",\"element\":\"span\"}})],1),_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.ENERGY_DEDICATION_SAVE'),expression:\"'MODALS.ENERGY_DEDICATION_SAVE'\"}],staticClass:\"mb-2 float-right\",attrs:{\"disabled\":_vm.energySpent != 100,\"variant\":\"primary\"},on:{\"click\":_vm.setEnergyDedication}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport { Member } from '@/models/Member';\r\nimport { personService, teamHelper, teamService, roleHelper, loginHelper } from '@/main';\r\nimport Vue from 'vue';\r\nimport EnergyDedication from '@/models/EnergyDedication';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class EnergyDedicationModalComponent extends BaseModal {\r\n @Prop({ default: () => new Member() }) public member: Member;\r\n\r\n public energyGroups: EnergyDedication[] = [];\r\n public energySpent: number = 0;\r\n\r\n public totalSpent: string;\r\n public energyDedication: string;\r\n\r\n public percentageOptions = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100];\r\n\r\n private _member: Person = new Person();\r\n\r\n public async mounted() {\r\n if (this.member && this.member.memberId > 0) {\r\n await this.setMember(this.member);\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async setMember(member: Member) {\r\n this._member = new Person(member);\r\n if (typeof this._member.groupMemberships === 'undefined' || this._member.groupMemberships.length === 0) {\r\n this._member = await teamService.getMemberById(this._member.personId, periodModule.selectedPeriod);\r\n }\r\n\r\n const energy = await personService.getEnergyDedication(this._member.personId, teamHelper.currentTeamId, periodModule.selectedPeriod);\r\n this.energyGroups.length = 0;\r\n for (const groupShip of this._member.groupMemberships) {\r\n const energyofGroup = energy.find((x) => x.groupKey === groupShip.key);\r\n this.energyGroups.push({\r\n groupKey: groupShip.key,\r\n groupId: groupShip.id,\r\n amount: energyofGroup ? parseInt(energyofGroup.amount.toString()) : 0,\r\n initialAmount: energyofGroup ? parseInt(energyofGroup.amount.toString()) : 0,\r\n });\r\n }\r\n\r\n this.updateEnergy();\r\n }\r\n\r\n public onHide() {\r\n this._member = null;\r\n }\r\n\r\n public handleInput(e) {\r\n console.log(e);\r\n // this.input = this.input.replace(/[0-9]/g, '')\r\n }\r\n\r\n public handleChange(e) {\r\n console.log(e);\r\n // this.input = this.input.replace(/[0-9]/g, '')\r\n }\r\n\r\n public async setEnergyDedication() {\r\n this.showPending('ENERGY_DEDICATION_PENDING');\r\n\r\n let success = false;\r\n\r\n if (roleHelper.isSiteAdmin() && this._member.personId !== loginHelper.getUser().personId) {\r\n success = await this.updateEnergyDedicationForMember();\r\n } else {\r\n success = await this.updateEnergyDedication();\r\n }\r\n\r\n if (success) {\r\n this.clearAndShowSuccess('ENERGY_DEDICATION_SUCCESS');\r\n this.$emit('energy-dedications-updated');\r\n this.hide();\r\n }\r\n }\r\n\r\n public async updateEnergyDedication() {\r\n try {\r\n await teamService.updateEnergyDedicationsForMember(\r\n teamHelper.currentTeamId,\r\n this.energyGroups,\r\n periodModule.selectedPeriod,\r\n loginHelper.getUser().personId,\r\n );\r\n } catch (e) {\r\n this.clearAndShowError('Failed to update energy dedication', e);\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public async updateEnergyDedicationForMember() {\r\n try {\r\n await teamService.updateEnergyDedicationsForMember(\r\n teamHelper.currentTeamId,\r\n this.energyGroups,\r\n periodModule.selectedPeriod,\r\n this._member.personId,\r\n );\r\n } catch (e) {\r\n this.clearAndShowError('Failed to update energy dedication', e);\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public totalEnergySpentPercentage() {\r\n const amount = this.getTotalEnergyDedicationSpent();\r\n return Vue.filter('number-format')(100 - amount);\r\n }\r\n\r\n public getTotalEnergyDedicationSpentString() {\r\n return `${this.getTotalEnergyDedicationSpent()}%`;\r\n }\r\n\r\n public getTotalEnergyDedicationSpent(): number {\r\n return parseInt(this.totalSpent) + parseInt(this.energyDedication);\r\n }\r\n\r\n public updateEnergy(value?: number, groupId?: number) {\r\n this.energySpent = 0;\r\n\r\n if (value && groupId) {\r\n const fGroup = this.energyGroups.find((x) => x.groupId === groupId);\r\n fGroup.amount = value * 1;\r\n }\r\n\r\n for (const group of this.energyGroups) {\r\n if (!group.amount) {\r\n continue;\r\n }\r\n this.energySpent += isNaN(group.amount) ? parseInt(group.amount.toString()) : group.amount;\r\n }\r\n\r\n return this.energySpent;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./energy-dedication-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./energy-dedication-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./energy-dedication-modal.vue?vue&type=template&id=51d5f500&\"\nimport script from \"./energy-dedication-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./energy-dedication-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"size\":\"xl\"},on:{\"hide\":_vm.onHide}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_INVOICES\",\"translate-group\":\"MODALS\"}})],1),_c('div',{staticClass:\"p-0\"},[(_vm.inputMode === 'overview')?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card card-link cursor-pointer mb-3\",on:{\"click\":function($event){_vm.inputMode = 'import'}}},[_c('h3',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_CSV_DELIMITER\",\"translate-group\":\"MODALS\"}})],1),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"translate-key\":\"IMPORT_CSV_DELIMITER_TEXT\",\"translate-group\":\"MODALS\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card card-link cursor-pointer\",on:{\"click\":function($event){_vm.inputMode = 'paste'}}},[_c('h3',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_PASTE_FILE\",\"translate-group\":\"MODALS\"}})],1),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"translate-key\":\"IMPORT_PASTE_FILE_TEXT\",\"translate-group\":\"MODALS\"}})],1)])])]):((_vm.inputMode === 'import' || _vm.inputMode === 'paste') && _vm.lineData.length != 0)?_c('div',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TEXT\",\"translate-group\":\"MODALS\"}}),_c('table',{staticClass:\"table table-sm table-hover\"},[_c('thead',[_c('tr',[_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_CLIENT\",\"translate-group\":\"MODALS\"}})],1),_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_DESCRIPTION\",\"translate-group\":\"MODALS\"}})],1),_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_REFERENCE\",\"translate-group\":\"MODALS\"}})],1),_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_AMOUNT\",\"translate-group\":\"MODALS\"}})],1),_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_DATE\",\"translate-group\":\"MODALS\"}})],1),_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_LEGAL\",\"translate-group\":\"MODALS\"}})],1),_c('th',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_TABLE_DISTRIBUTIONS\",\"translate-group\":\"MODALS\"}})],1)])]),_c('tbody',_vm._l((_vm.lineData),function(line,index){return _c('tr',[_c('td',[_vm._v(_vm._s(line.client))]),_c('td',[_vm._v(_vm._s(line.description))]),_c('td',[_vm._v(_vm._s(line.reference))]),_c('td',[_vm._v(_vm._s(line.amount))]),_c('td',[_vm._v(_vm._s(line.date))]),_c('td',[_vm._v(_vm._s(line.legalEntityReference))]),_c('td',[_c('b-button',{attrs:{\"id\":'popover-target-' + index}},[_vm._v(\" \"+_vm._s(line.distributions.length)+\" \"),_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"IMPORT_TABLE_DISTRIBUTIONS\",\"translate-group\":\"MODALS\"}})],1),_c('b-popover',{attrs:{\"target\":'popover-target-' + index,\"triggers\":\"hover\",\"placement\":\"bottom\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"IMPORT_TABLE_DISTRIBUTIONS\",\"translate-group\":\"MODALS\"}})]},proxy:true}],null,true)},[_c('ul',{staticClass:\"list-unstyled\"},_vm._l((line.distributions),function(dist){return _c('li',[_c('strong',[_vm._v(_vm._s(dist.value)+\" \")]),_vm._v(\" | \"+_vm._s(_vm.getRelatedEntityName(dist.relatedEntityId))+\" \")])}),0)])],1)])}),0)])],1):(_vm.inputMode === 'import')?_c('div',[(_vm.lineData.length == 0)?_c('div',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_NOTE\",\"translate-group\":\"MODALS\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"translate-key\":\"IMPORT_HEADER_NOTE\",\"translate-group\":\"MODALS\"}}),_c('b-form-group',{attrs:{\"label-for\":\"fileInput\"}},[_c('b-form-file',{ref:\"fileInput\",attrs:{\"id\":\"fileInput\",\"placeholder\":\"Select a .csv\",\"accept\":\".csv\"},on:{\"change\":function($event){return _vm.fileUploaded($event)}}})],1)],1):_vm._e()]):(_vm.inputMode === 'paste')?_c('div',[(_vm.lineData.length == 0)?_c('div',[_c('prd-translate-text',{attrs:{\"translate-key\":\"IMPORT_NOTE_COPY\",\"translate-group\":\"MODALS\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"translate-key\":\"IMPORT_HEADER_NOTE\",\"translate-group\":\"MODALS\"}}),_c('b-form-textarea',{staticClass:\"h-100\",attrs:{\"placeholder\":\"Paste your input here\"},model:{value:(_vm.inputModel),callback:function ($$v) {_vm.inputModel=$$v},expression:\"inputModel\"}}),_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.IMPORT_BUTTON'),expression:\"'MODALS.IMPORT_BUTTON'\"}],staticClass:\"btn-sm float-right mt-3\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"},on:{\"click\":_vm.processPastedInput}})],1):_vm._e()]):_vm._e()]),_c('div',{staticClass:\"w-100 text-right\",attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.IMPORT_EXAMPLE_FILE'),expression:\"'MODALS.IMPORT_EXAMPLE_FILE'\"}],staticClass:\"btn-outline-primary float-left\",attrs:{\"type\":\"submit\"},on:{\"click\":_vm.downloadExample}}),_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.IMPORT_START'),expression:\"'MODALS.IMPORT_START'\"}],staticClass:\"float-right\",attrs:{\"type\":\"submit\",\"variant\":\"primary\",\"disabled\":_vm.lineData.length == 0},on:{\"click\":_vm.importLines}}),_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.IMPORT_CANCEL'),expression:\"'MODALS.IMPORT_CANCEL'\"}],staticClass:\"float-right mr-2\",attrs:{\"type\":\"submit\",\"variant\":\"secondary\"},on:{\"click\":_vm.cancelImport}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport { financeService, teamHelper, financeAccountService } from '@/main';\r\nimport moment from 'moment';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\nimport { teamsModule } from '@/store/modules/teams';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport { to } from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { InvoiceSource } from '@/models/InvoiceSource';\r\n\r\nexport class InvoiceImportBase {\r\n public client: string = '';\r\n public description: string = '';\r\n public reference: string = '';\r\n public amount: string = '';\r\n public date: string = '';\r\n public group: string = '';\r\n public person: string = '';\r\n public legalEntityReference: string = '';\r\n public distributions: any[] = [];\r\n}\r\n\r\n// tslint:disable-next-line: max-classes-per-file\r\nexport class CsvColumn {\r\n public label: string = '';\r\n public placeholder: string = '';\r\n public property: string = '';\r\n}\r\n\r\n// tslint:disable-next-line: max-classes-per-file\r\n@Component\r\nexport default class ImportParticipantComponent extends BaseModal {\r\n @Prop({ default: () => [] }) public groups: FinanceAccount[];\r\n @Prop({ default: () => [] }) public persons: FinanceAccount[];\r\n @Prop({ default: () => InvoiceType.Income }) public type: InvoiceType;\r\n\r\n public inputModel: string = '';\r\n public inputMode: string = 'overview';\r\n public isUploadingCsv: boolean = false;\r\n public personAccounts: FinanceAccount[] = [];\r\n\r\n public lineData: InvoiceImportBase[] = [];\r\n public mapping: any[] = [];\r\n\r\n private readonly delimiter: string = ';';\r\n private csvColumns: CsvColumn[] = [\r\n { label: 'Client', placeholder: 'Bright Services', property: 'client' },\r\n { label: 'Description', placeholder: 'Annual Licences', property: 'description' },\r\n { label: 'Reference', placeholder: '1234567890', property: 'reference' },\r\n { label: 'Amount', placeholder: '1234.56', property: 'amount' },\r\n { label: 'Date', placeholder: '31/12/2020', property: 'date' },\r\n {\r\n label: 'LegalEntityReference',\r\n placeholder: ' - The name of the legal entity this invoice is referred to, when left blank current legal entity will be filled',\r\n property: 'legalEntityReference',\r\n },\r\n ];\r\n\r\n public async mounted() {\r\n await teamsModule.fetchTeamsIfNeeded();\r\n\r\n if (this.type === InvoiceType.Expenses) {\r\n const [err, response] = await to(\r\n financeAccountService.getAccounts(AccountType.Person, teamHelper.currentTeam.id, periodModule.selectedPeriod),\r\n );\r\n\r\n if (err) {\r\n return this.showFailedResponse('failed to load person accounts');\r\n }\r\n\r\n this.personAccounts = response.data;\r\n }\r\n\r\n this.groups.forEach((x) => {\r\n this.csvColumns.push({\r\n label: `${x.name}`,\r\n placeholder: ` - to create on import a distribution for ${x.name}, matches on full name, only applicable on expenses`,\r\n property: `group_${x.relatedEntityId}`,\r\n });\r\n });\r\n\r\n if (this.type === InvoiceType.Expenses) {\r\n this.persons.forEach((x) => {\r\n if (this.csvColumns.findIndex((y) => y.label === x.name) === -1) {\r\n this.csvColumns.push({\r\n label: `${x.name}`,\r\n placeholder: ` - to create on import a distribution for ${x.name}, matches on full name, only applicable on expenses`,\r\n property: `person_${x.relatedEntityId}`,\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n public onHide() {\r\n this.inputMode = 'overview';\r\n this.lineData = [];\r\n }\r\n\r\n public importLines(): boolean {\r\n const removedDistributionInvoices = [];\r\n const self = this;\r\n self.isUploadingCsv = true;\r\n self.showPending('IMPORT_INVOICE_PENDING');\r\n\r\n const distributedInvoices = self.lineData.map((invoice: any) => {\r\n const distributedInvoice = new DistributedInvoice();\r\n invoice.source = InvoiceSource.Manual;\r\n distributedInvoice.invoice = invoice;\r\n distributedInvoice.invoice.invoiceDate = invoice.date;\r\n distributedInvoice.invoice.name = invoice.client;\r\n distributedInvoice.invoice.invoiceType = this.type;\r\n distributedInvoice.invoice.period = periodModule.selectedPeriodObject;\r\n distributedInvoice.invoice.legalEntityReferenceOrigin = invoice.legalEntityReference;\r\n\r\n distributedInvoice.distributions = invoice.distributions.map((x) => {\r\n const distribution = {\r\n amount: x.value,\r\n account: this.groups.find((g) => g.relatedEntityId === x.relatedEntityId),\r\n };\r\n\r\n if (!distribution.account) {\r\n distribution.account = this.persons.find((p) => p.relatedEntityId === x.relatedEntityId);\r\n }\r\n\r\n return distribution;\r\n });\r\n\r\n const total = distributedInvoice.distributions.reduce((a: number, b) => a + parseInt(b.amount.toString()), 0);\r\n if (Math.abs(total) > Math.abs(distributedInvoice.invoice.amount)) {\r\n delete distributedInvoice.distributions;\r\n removedDistributionInvoices.push(distributedInvoice.invoice.reference);\r\n }\r\n\r\n return distributedInvoice;\r\n });\r\n\r\n financeService\r\n .importInvoice(distributedInvoices, teamHelper.getTeamId(), null)\r\n .then((response) => {\r\n if (response) {\r\n self.isUploadingCsv = false;\r\n self.clearAndShowSuccess('IMPORT_INVOICE_SUCCESS');\r\n\r\n if (removedDistributionInvoices.length > 0) {\r\n self.showWarning(\r\n `Invoices with references ${removedDistributionInvoices.join(\r\n ', ',\r\n )} are not imported because the total distributions are greater than the total amount of the invoice`,\r\n );\r\n }\r\n\r\n this.$emit('invoices-imported', this.type);\r\n this.hide();\r\n }\r\n })\r\n .catch((error) => {\r\n self.isUploadingCsv = false;\r\n self.clearAndShowError('IMPORT_INVOICE_FAILED', error);\r\n });\r\n\r\n return true;\r\n }\r\n\r\n public fileUploaded(event) {\r\n this.loadCSV(event, new InvoiceImportBase());\r\n }\r\n\r\n public downloadExample() {\r\n this.exportExampleCSV(this.csvColumns);\r\n }\r\n\r\n public exportExampleCSV(columns: CsvColumn[]): void {\r\n const properties = [];\r\n const values = [];\r\n const lines = [];\r\n\r\n for (const prop of columns) {\r\n values.push(prop.placeholder);\r\n properties.push(prop.label);\r\n }\r\n\r\n lines.push(properties.join(';'));\r\n lines.push(values.join(';'));\r\n\r\n const blob = new Blob([lines.join('\\n')], { type: 'text/csv' });\r\n const downloadLink = document.createElement('a');\r\n downloadLink.download = 'ExampleImport.csv';\r\n downloadLink.href = window.URL.createObjectURL(blob);\r\n downloadLink.style.display = 'none';\r\n document.body.appendChild(downloadLink);\r\n downloadLink.click();\r\n document.body.removeChild(downloadLink);\r\n }\r\n\r\n public loadCSV(e: any, object: T): void {\r\n const self = this;\r\n if ((window as any).FileReader) {\r\n const reader = new FileReader();\r\n reader.readAsText(e.target.files[0]);\r\n reader.onload = (event) => {\r\n const csv = (event.target as any).result;\r\n self.processInput(csv, self.delimiter);\r\n };\r\n\r\n reader.onerror = (evt) => {\r\n if ((evt.target as any).error.name === 'NotReadableError') {\r\n alert('Cannot read file !');\r\n }\r\n };\r\n\r\n reader.onloadend = () => {\r\n return object;\r\n };\r\n } else {\r\n alert('FileReader are not supported in this browser.');\r\n }\r\n }\r\n\r\n public processPastedInput(): void {\r\n this.processInput(this.inputModel, '\\t');\r\n }\r\n\r\n public processInput(input: string, delimiter: string) {\r\n const self = this;\r\n const lines = input.split('\\n');\r\n const mapping = []; // Once to be used by a mailchimp style importer?\r\n\r\n const headers = lines[0].split(delimiter).map((header) => {\r\n return header.replace('\\r', '');\r\n });\r\n\r\n for (let i = 0; i < this.csvColumns.length; i++) {\r\n const matchingColumn = headers.findIndex((h) => {\r\n return h.length > 3 && h.toLowerCase() === this.csvColumns[i].label.toLowerCase();\r\n });\r\n\r\n if (matchingColumn !== -1) {\r\n mapping.push({ index: matchingColumn, property: this.csvColumns[i].property });\r\n }\r\n }\r\n\r\n this.mapping = mapping;\r\n\r\n for (let li = 1; li < lines.length; li++) {\r\n // Skip first line\r\n if (lines[li] == null || lines[li] === '') {\r\n continue;\r\n }\r\n\r\n const columns = lines[li].replace('\\r', '').replace('\"', '').split(delimiter);\r\n const itemLine = { distributions: [] } as InvoiceImportBase;\r\n\r\n for (let m = 0; m < mapping.length; m++) {\r\n const currentMap = mapping[m];\r\n let value = columns[currentMap.index];\r\n\r\n if (currentMap.property === 'amount') {\r\n const nanCheck = value;\r\n // @ts-ignore\r\n if (isNaN(1 * nanCheck)) {\r\n value = value.replace('.', '').replace(',', '.');\r\n }\r\n value = parseFloat(value).toString();\r\n }\r\n\r\n if (currentMap.property === 'date') {\r\n if (!value || value === '') {\r\n value = moment().format('YYYY-MM-DD');\r\n } else {\r\n value = moment(value, 'DD/MM/YYYY').format('YYYY-MM-DD');\r\n }\r\n }\r\n\r\n if (currentMap.property === 'legalEntityReference') {\r\n if (!value || value === '') {\r\n value = teamsModule.current.legalEntityReference;\r\n }\r\n }\r\n\r\n if (currentMap.property.startsWith('group_') || currentMap.property.startsWith('person_')) {\r\n if (!value || value === '' || value === '0') {\r\n continue;\r\n }\r\n\r\n const nanCheck = value;\r\n // @ts-ignore\r\n if (isNaN(1 * nanCheck)) {\r\n value = value.replace('.', '').replace(',', '.');\r\n }\r\n value = parseFloat(value).toString();\r\n\r\n itemLine.distributions.push({\r\n relatedEntityId: parseInt(currentMap.property.split('_')[1]),\r\n value,\r\n });\r\n\r\n continue;\r\n }\r\n\r\n itemLine[currentMap.property] = value.replace('\"', '');\r\n }\r\n\r\n self.lineData.push(itemLine);\r\n }\r\n }\r\n\r\n public cancelImport(): void {\r\n this.hide();\r\n }\r\n\r\n public getRelatedEntityName(relatedEntityId: number) {\r\n let entity = this.groups.find((x) => x.relatedEntityId === relatedEntityId);\r\n\r\n if (!entity) {\r\n entity = this.persons.find((x) => x.relatedEntityId === relatedEntityId);\r\n }\r\n\r\n return entity.name;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./import-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./import-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./import-modal.vue?vue&type=template&id=69999fc2&\"\nimport script from \"./import-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./import-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",on:{\"hide\":_vm.onHide}},[_c('prd-translate-text',{attrs:{\"slot\":\"modal-title\",\"element\":\"h4\",\"translate-key\":\"REMOVE_MEMBER\",\"translate-group\":\"MODALS\"},slot:\"modal-title\"}),_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"info\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"REMOVE_MEMBER_PL_EXPLANATION\",\"translate-group\":\"MODALS\"}})],1),(_vm.memberResult)?_c('div',[_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'MODALS.CURRENT_PL', params: { value: _vm.memberResult.balance, name: _vm.memberResult.member.name } }),expression:\"{ key: 'MODALS.CURRENT_PL', params: { value: memberResult.balance, name: memberResult.member.name } }\"}],staticClass:\"font-weight-bold\"}),_c('prd-translate-text',{staticClass:\"mb-2\",attrs:{\"translate-key\":\"RESPONSIBLE_GROUP_PL\",\"translate-group\":\"MODALS\"}}),_c('b-form-select',{attrs:{\"options\":_vm.optionListGroups()},model:{value:(_vm.plGroup),callback:function ($$v) {_vm.plGroup=$$v},expression:\"plGroup\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SELET_A_GROUP\",\"translate-group\":\"DROPDOWN\"}})],1)])],2),_c('prd-translate-text',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'MODALS.REMOVE_MEMBER_PL_ACTION', params: { name: _vm.memberResult.member.name } }),expression:\"{ key: 'MODALS.REMOVE_MEMBER_PL_ACTION', params: { name: memberResult.member.name } }\"}],staticClass:\"mt-5\",attrs:{\"element\":\"p\"}})],1):_vm._e(),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('div',{staticClass:\"add-member-button text-center\"},[_c('prd-translate-button',{staticClass:\"d-inline-block px-2 text-primary\",attrs:{\"disabled\":!_vm.plGroup,\"type\":\"submit\",\"translate-key\":\"REMOVE_FROM_TEAM\",\"translate-group\":\"MODALS\"},on:{\"click\":_vm.transferPLAndRemoveMember}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport to from 'await-to-js';\r\nimport {\r\n teamHelper,\r\n financeAccountService,\r\n resultService,\r\n attributionService,\r\n transferService,\r\n loginHelper,\r\n groupService,\r\n teamService,\r\n} from '@/main';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { Person } from '@/models/Person';\r\nimport AttributionPercentages from '@/models/Finance/AttributionPercentages';\r\nimport { AttributionType } from '@/models/AttributionType';\r\nimport Transfer from '@/models/Transfer';\r\nimport Team from '@/models/Team';\r\nimport moment from 'moment';\r\nimport { translateModule } from '@/store/modules/translate';\r\n\r\n@Component\r\nexport default class MovePLModalComponent extends BaseModal {\r\n public memberToRemove: Person = null;\r\n public memberResult: any = null;\r\n public groupAccounts: FinanceAccount[] = [];\r\n public plGroup: any = null;\r\n public attributionPercentages: AttributionPercentages = new AttributionPercentages();\r\n public attributionsAreLoading: boolean = false;\r\n\r\n public async init(item: Person) {\r\n this.memberToRemove = item;\r\n const results = await resultService.getMemberResults(teamHelper.currentTeamId, periodModule.selectedPeriod, periodModule.selectedPeriod);\r\n\r\n const result = results.items[0].item.memberResults.find((x) => x.member.personId === item.personId);\r\n this.memberResult = result;\r\n\r\n const financeGroupAccounts = await this.getFinanceGroupAccounts(teamHelper.currentTeamId);\r\n this.groupAccounts = financeGroupAccounts;\r\n }\r\n\r\n public async transferPLAndRemoveMember() {\r\n this.showPending('TRANSFERRING_PENDING');\r\n\r\n await this.loadAttributions();\r\n const amount = this.calculateFromPenLTariff(this.memberResult.balance);\r\n const transfer = new Transfer();\r\n transfer.amount = amount > 0 ? amount * -1 : amount;\r\n transfer.senderTeam = new Team({ teamId: teamHelper.currentTeam.id });\r\n transfer.receiverTeam = new Team({ teamId: teamHelper.currentTeam.id });\r\n transfer.sender = this.groupAccounts.find((x) => x.accountId === this.plGroup);\r\n transfer.reason = translateModule.value('TRANSFER_PL_CONTENT');\r\n transfer.group = transfer.sender.relatedEntityId;\r\n transfer.initiator = loginHelper.getUser().personId;\r\n transfer.invoiceType = InvoiceType.InternalIncome;\r\n transfer.period = periodModule.selectedPeriodObject.periodId;\r\n\r\n transfer.receiver = await financeAccountService.getAccount(\r\n teamHelper.currentTeamId,\r\n this.memberToRemove.personId,\r\n periodModule.selectedPeriod,\r\n );\r\n\r\n const [transferErr] = await to(transferService.doTransfer(transfer));\r\n if (transferErr) {\r\n return this.clearAndShowError('Failed to transfer P&L', transferErr);\r\n }\r\n\r\n const groups = await groupService.getGroups(teamHelper.currentTeamId, periodModule.selectedPeriod);\r\n const foundGroup = groups.data.find((x) => x.groupLead && x.groupLead.memberId === this.memberToRemove.personId);\r\n if (foundGroup) {\r\n return this.clearAndShowError(`The member you're trying to remove is still a group lead (${foundGroup.name})`, null);\r\n }\r\n this.clearNotifications();\r\n this.showPending('REMOVING_MEMBER_PENDING');\r\n const [err] = await to(\r\n teamService.removeMemberFromTeam(\r\n this.memberToRemove.personId,\r\n teamHelper.currentTeamId,\r\n moment(periodModule.selectedPeriodObject.startDate, 'YYYY-MM-DD')\r\n .add(1, 'months')\r\n .format('YYYY-MM'),\r\n ),\r\n );\r\n if (err) {\r\n return this.clearAndShowError(`REMOVING_MEMBER_FAILED`, err);\r\n }\r\n\r\n this.clearAndShowSuccess(`REMOVING_MEMBER_SUCCESS`);\r\n this.$emit('finished');\r\n this.hide();\r\n }\r\n\r\n public onHide() {\r\n this.memberToRemove = null;\r\n this.memberResult = null;\r\n this.groupAccounts = [];\r\n this.plGroup = null;\r\n\r\n this.attributionPercentages = new AttributionPercentages();\r\n }\r\n\r\n public calculateFromPenLTariff(amount) {\r\n return (\r\n amount /\r\n (1 - this.attributionPercentages.teamAttributionsPercentage / 100 / (1 - this.attributionPercentages.groupAttributionsPercentage / 100))\r\n );\r\n }\r\n\r\n public async getFinanceGroupAccounts(team: number) {\r\n const [err, response] = await to(financeAccountService.getAccounts(AccountType.GroupSavings, team, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load group accounts', null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public optionListGroups(): any[] {\r\n const list = this.groupAccounts.map((sender) => {\r\n return { value: sender.accountId, text: sender.name };\r\n });\r\n return list;\r\n }\r\n\r\n public async loadAttributions() {\r\n this.attributionsAreLoading = true;\r\n\r\n const groupId = this.groupAccounts.find((x) => x.accountId === this.plGroup).relatedEntityId;\r\n const [groupAttributions, groupRemittances, teamAttributions] = await Promise.all([\r\n this.getGroupAttributions(teamHelper.currentTeamId, groupId),\r\n this.getGroupRemittances(teamHelper.currentTeamId, groupId),\r\n this.getTeamAttributions(teamHelper.currentTeamId),\r\n ]);\r\n this.attributionPercentages.teamAttributionsPercentage = this.attributionPercentages.groupRemittancePercentage = this.attributionPercentages.groupAttributionsPercentage = 0;\r\n\r\n groupRemittances.forEach((attr) => {\r\n this.attributionPercentages.groupRemittancePercentage += attr.percentage;\r\n });\r\n\r\n // only do this when check box in settings is checked\r\n groupAttributions.forEach((attr) => {\r\n this.attributionPercentages.groupAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n teamAttributions.forEach((attr) => {\r\n this.attributionPercentages.teamAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n this.attributionsAreLoading = false;\r\n }\r\n\r\n public async getGroupAttributions(teamId: number, groupId: number) {\r\n const self = this;\r\n const [err, response] = await to(\r\n attributionService.getAttributions(AttributionType.GroupAttribution, teamId, periodModule.selectedPeriod, groupId),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load group attributions', null);\r\n }\r\n\r\n self.attributionPercentages.groupAttributionsPercentage = 0;\r\n\r\n response.data.forEach((attr) => {\r\n self.attributionPercentages.groupAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n return response.data;\r\n }\r\n\r\n public async getGroupRemittances(teamId: number, groupId: number) {\r\n const self = this;\r\n const [err, response] = await to(\r\n attributionService.getAttributions(AttributionType.GroupRemittance, teamId, periodModule.selectedPeriod, groupId),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load group remittances', null);\r\n }\r\n\r\n self.attributionPercentages.groupRemittancePercentage = 0;\r\n\r\n response.data.forEach((attr) => {\r\n self.attributionPercentages.groupRemittancePercentage += attr.percentage;\r\n });\r\n\r\n return response.data;\r\n }\r\n\r\n public async getTeamAttributions(teamId: number) {\r\n const self = this;\r\n const [err, response] = await to(attributionService.getAttributions(AttributionType.TeamAttribution, teamId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load team attributions', null);\r\n }\r\n\r\n self.attributionPercentages.teamAttributionsPercentage = 0;\r\n response.data.forEach((attr) => {\r\n self.attributionPercentages.teamAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n return response.data;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./move-pl-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./move-pl-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./move-pl-modal.vue?vue&type=template&id=93355b4c&\"\nimport script from \"./move-pl-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./move-pl-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",on:{\"hide\":_vm.onHide}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ACOUNT_SEND_INVOICES\",\"translate-group\":\"MODALS\"}})],1),(_vm.isLoaded)?_c('b-form',[_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"RECEIVER\"}})],1),_c('div',{staticClass:\"col-md-8\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsList},model:{value:(_vm.account),callback:function ($$v) {_vm.account=$$v},expression:\"account\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_RECEIVER'),expression:\"'SELECT_RECEIVER'\"}],domProps:{\"value\":null}})])],2)],1)])])],1):_vm._e(),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('DISTRIBUTE'),expression:\"'DISTRIBUTE'\"}],attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":!_vm.account},on:{\"click\":function($event){return _vm.moveSelectedInvoicesToAccount()}}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport to from 'await-to-js';\r\nimport { financeService, teamHelper, financeAccountService } from '@/main';\r\nimport { Distribution, FinanceAccount } from '@/models/Interfaces';\r\nimport Group from '@/models/Group';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class MoveToAccountModalComponent extends BaseModal {\r\n @Prop({ default: () => false }) public isExpense: boolean;\r\n @Prop({ default: () => [] }) public optionsList: any[];\r\n @Prop({ default: () => [] }) public selectedInvoices: DistributedInvoice[];\r\n @Prop({ default: () => new Group() }) public group: Group;\r\n\r\n public account: number = null;\r\n public financeGroupAccounts: FinanceAccount[];\r\n public isLoaded: boolean = false;\r\n\r\n public async mounted() {\r\n if (this.group && this.group.groupId > 0) {\r\n this.financeGroupAccounts = await this.loadGroupFinanceAccounts();\r\n }\r\n\r\n if (this.$refs.modal) {\r\n this.$refs.modal.$on('hidden.bs.BModal', this.onHide);\r\n }\r\n\r\n this.isLoaded = true;\r\n }\r\n\r\n public onHide() {\r\n this.account = null;\r\n }\r\n\r\n public async moveSelectedInvoicesToAccount() {\r\n this.showPending('DISTRIBUTING_INVOICES_PENDING');\r\n // tslint:disable-next-line: no-dead-store\r\n let [err] = [null];\r\n let account = null;\r\n if (this.group && this.group.groupId > 0 && this.financeGroupAccounts.length > 0) {\r\n // check if is group scope and check if its move out of current group\r\n account = this.financeGroupAccounts.find((x) => x.accountId === this.account);\r\n if (account) {\r\n const teamInvoices = await this.loadTeamInvoices(this.isExpense ? InvoiceType.Expenses : InvoiceType.Income);\r\n const invoiceIds = this.selectedInvoices.map((invoice) => invoice.invoice.invoiceId);\r\n const moveOutInvoices = teamInvoices.filter((tInvoice) => invoiceIds.indexOf(tInvoice.invoice.invoiceId) > -1);\r\n\r\n moveOutInvoices.forEach((invoice: DistributedInvoice) => {\r\n const groupDistribution = invoice.distributions.find(\r\n (distribution) => distribution.account.accountId === this.group.accountIncome.accountId,\r\n );\r\n if (groupDistribution) {\r\n groupDistribution.account = account;\r\n }\r\n });\r\n [err] = await to(financeService.saveDistributions(moveOutInvoices, teamHelper.getTeamId()));\r\n }\r\n }\r\n\r\n if (!account) {\r\n // when this account check is empty its a 'normal' in group/team distribution\r\n this.selectedInvoices.forEach((invoice: DistributedInvoice) => {\r\n invoice.distributions.forEach((d: Distribution) => {\r\n d.amount = 0;\r\n });\r\n\r\n const distribution = invoice.distributions.find((x) => x.account.accountId === this.account);\r\n distribution.amount = invoice.invoice.amount;\r\n });\r\n\r\n [err] = await to(financeService.saveDistributions(this.selectedInvoices, teamHelper.getTeamId(), this.group.groupId));\r\n }\r\n\r\n if (err) {\r\n return this.clearAndShowError('DISTRIBUTING_INVOICES_FAILED', null);\r\n }\r\n\r\n this.selectedInvoices.forEach((invoice) => (invoice.selected = false));\r\n this.clearAndShowSuccess('DISTRIBUTING_INVOICES_SUCCESS');\r\n\r\n this.$emit('invoice-moved', this.isExpense ? InvoiceType.Expenses : InvoiceType.Income);\r\n\r\n this.hide();\r\n }\r\n\r\n private async loadTeamInvoices(type: InvoiceType) {\r\n const invoices = await financeService.getInvoices(teamHelper.getTeamId(), null, type, null, periodModule.selectedPeriod);\r\n return invoices;\r\n }\r\n\r\n private async loadGroupFinanceAccounts() {\r\n const self = this;\r\n const [err, response] = await to(\r\n financeAccountService.getAccounts(AccountType.GroupIncome, teamHelper.currentTeam.id, periodModule.selectedPeriod),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load group accounts', null);\r\n }\r\n\r\n return response.data.filter((item: FinanceAccount) => {\r\n return item.relatedEntityId !== self.group.groupId;\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./move-to-account-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./move-to-account-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./move-to-account-modal.vue?vue&type=template&id=028597d4&\"\nimport script from \"./move-to-account-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./move-to-account-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"size\":\"sm\"}},[(_vm.relationEditMode)?[_c('prd-translate-text',{attrs:{\"slot\":\"modal-title\",\"translate-key\":\"DEFINE_RELATIONSHIP\",\"translate-group\":\"MODALS\"},slot:\"modal-title\"}),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'MODALS.DEFINE_RELATIONSHIP_EXPLANATION', params: { from: _vm.from, to: _vm.to } }),expression:\"{ key: 'MODALS.DEFINE_RELATIONSHIP_EXPLANATION', params: { from: from, to: to } }\"}],staticClass:\"mb-4\"},[_vm._v(\" Define relationship for transfers from \"),_c('b',[_vm._v(_vm._s(_vm.from))]),_vm._v(\" to \"),_c('b',[_vm._v(_vm._s(_vm.to))])])]:[_c('prd-translate-text',{attrs:{\"slot\":\"modal-title\",\"translate-key\":\"VIEW_RELATIONSHIP_SETTINGS\",\"translate-group\":\"MODALS\"},slot:\"modal-title\"})],_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"SALES_LEDGER_ACCOUNT\",\"translate-group\":\"MODALS\"}}),_c('b-form-select',{attrs:{\"options\":_vm.getOptionListLedgers(),\"disabled\":!_vm.relationEditMode},model:{value:(_vm.settings.salesLedger.ledgerId),callback:function ($$v) {_vm.$set(_vm.settings.salesLedger, \"ledgerId\", $$v)},expression:\"settings.salesLedger.ledgerId\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_OPTION'),expression:\"'SELECT_OPTION'\"}],domProps:{\"value\":null}})])],2)],1),_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"PURCHASE_LEDGER_ACCOUNT\",\"translate-group\":\"MODALS\"}}),_c('b-form-select',{attrs:{\"options\":_vm.getOptionListLedgers(),\"disabled\":!_vm.relationEditMode},model:{value:(_vm.settings.purchaseLedger.ledgerId),callback:function ($$v) {_vm.$set(_vm.settings.purchaseLedger, \"ledgerId\", $$v)},expression:\"settings.purchaseLedger.ledgerId\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_OPTION'),expression:\"'SELECT_OPTION'\"}],domProps:{\"value\":null}})])],2)],1),_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"INTELECTUAL_PROPERTY_LIMITATION\",\"translate-group\":\"MODALS\"}}),_c('b-form-select',{attrs:{\"options\":_vm.getOptionListIPL(),\"disabled\":!_vm.relationEditMode},model:{value:(_vm.settings.intellectualPropertyLimitation.intellectualPropertyLimitationId),callback:function ($$v) {_vm.$set(_vm.settings.intellectualPropertyLimitation, \"intellectualPropertyLimitationId\", $$v)},expression:\"settings.intellectualPropertyLimitation.intellectualPropertyLimitationId\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_OPTION'),expression:\"'SELECT_OPTION'\"}],domProps:{\"value\":null}})])],2)],1),_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TAX_RATE\",\"translate-group\":\"MODALS\"}}),_c('b-form-select',{attrs:{\"options\":_vm.getOptionListTaxRates(),\"disabled\":!_vm.relationEditMode},model:{value:(_vm.settings.taxRateId),callback:function ($$v) {_vm.$set(_vm.settings, \"taxRateId\", $$v)},expression:\"settings.taxRateId\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_OPTION'),expression:\"'SELECT_OPTION'\"}],domProps:{\"value\":null}})])],2)],1),(_vm.relationEditMode)?[_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$refs.modal.hide()}},slot:\"modal-footer\"},[_vm._v(\"Cancel\")]),_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":_vm.updateSettings},slot:\"modal-footer\"},[_vm._v(\"Save\")])]:[_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$refs.modal.hide()}},slot:\"modal-footer\"},[_vm._v(\"Close\")])]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { relationService } from '@/main';\r\nimport Relation, { IntellectualPropertyLimitation, RelationSettings, TaxRate } from '@/models/Finance/Relation';\r\nimport { ledgerModule } from '@/store/modules/ledger';\r\nimport to from 'await-to-js';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\n\r\n@Component\r\nexport default class RelationSettingsModal extends BaseModal {\r\n @Prop() public entityName: string;\r\n @Prop() public from: string;\r\n @Prop() public to: string;\r\n @Prop({ default: true }) public relationEditMode: boolean;\r\n @Prop({ default: () => [] }) public intellectualPropertyLimitations: IntellectualPropertyLimitation[];\r\n @Prop({ default: () => [] }) public taxRates: TaxRate[];\r\n\r\n public settings: RelationSettings = new RelationSettings();\r\n\r\n public salesLedger: any = null;\r\n public purchaseLedger: any = null;\r\n public relation: Relation = null;\r\n public taxRate: any = null;\r\n\r\n public async created() {\r\n await ledgerModule.fetchLedgersIfNeeded();\r\n }\r\n\r\n public setData(relation: Relation, settings?: RelationSettings) {\r\n if (settings) {\r\n this.settings = new RelationSettings(settings);\r\n } else {\r\n this.settings = new RelationSettings();\r\n }\r\n\r\n this.relation = relation;\r\n }\r\n\r\n public getOptionListLedgers() {\r\n return ledgerModule.ledgers.map((ledger) => {\r\n return { value: ledger.ledgerId, text: ledger.name };\r\n });\r\n }\r\n\r\n public getOptionListIPL() {\r\n return this.intellectualPropertyLimitations.map((ledger) => {\r\n return { value: ledger.intellectualPropertyLimitationId, text: ledger.name };\r\n });\r\n }\r\n\r\n public getOptionListTaxRates() {\r\n return this.taxRates.map((taxRate) => {\r\n return { value: taxRate.taxRateId, text: taxRate.description };\r\n });\r\n }\r\n\r\n public async updateSettings() {\r\n this.showPending('SAVING_RELATION_SETTINGS_PENDING');\r\n const [err] = await to(relationService.createOrUpdateSettings(this.relation.relationId, this.settings));\r\n if (err) {\r\n this.clearAndShowError('SAVING_RELATION_SETTINGS_FAILED', err);\r\n }\r\n\r\n this.hide();\r\n this.clearAndShowSuccess('SAVING_RELATION_SETTINGS_SUCCESS');\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./relation-settings-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./relation-settings-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./relation-settings-modal.vue?vue&type=template&id=5ccf7af5&\"\nimport script from \"./relation-settings-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./relation-settings-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"title\":\"Save settings\"},on:{\"hide\":_vm.onHide}},[(_vm.isLoaded)?_c('b-form',[_c('b-form-group',[_c('div',{staticClass:\"row mb-5\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"In which period do the new attributions need to take effect?\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsList()},model:{value:(_vm.period),callback:function ($$v) {_vm.period=$$v},expression:\"period\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SELECT_PERIOD\"}})],1)])],2)],1)])])],1):_vm._e(),_c('div',[_c('p',[_c('strong',[_vm._v(\"Changing your team attributions may have a big impact on your finance.\")]),_vm._v(\" We always advice to make the changes effect in the next period. \")]),_c('p',[_vm._v(\"When changing attributions always keep in mind of the following:\")]),_c('ul',[_c('li',[_vm._v(\" Invoices already distributed since the selected period won't be redistributed. So the current attributions of these transaction are still distributed to the 'old' attribution groups. \")]),_c('li',[_vm._v(\"For transfers the above also applies.\")]),_c('li',[_vm._v(\"Finance totals of groups and teams will be misrepresented in the overviews.\")]),_c('li',[_vm._v(\"Actual data will be correct\")])]),_c('strong',[_vm._v(\"Possible fix(es):\")]),_c('ul',[_c('li',[_vm._v(\" After changing the attributions the 'issues' above can be solved by re-do the distributions or the transfers. \")])])]),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('prd-translate-button',{attrs:{\"action\":_vm.saveSettings,\"disabled\":!_vm.period,\"translate-key\":\"SAVE_SETTINGS\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport { teamHelper, attributionService } from '@/main';\r\nimport Attribution from '@/models/Attribution';\r\nimport moment from 'moment';\r\nimport { AttributionType } from '@/models/AttributionType';\r\nimport Group from '@/models/Group';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class SaveAttributionsModalComponent extends BaseModal {\r\n @Prop({ default: () => new Group() }) public group: Group;\r\n\r\n @Prop({ default: () => [] }) public groupAttributions: Attribution[];\r\n @Prop({ default: () => [] }) public resourceAttributions: Attribution[];\r\n @Prop({ default: () => [] }) public servicesAttributions: Attribution[];\r\n // tslint:disable-next-line: no-empty\r\n @Prop({ default: () => {} }) public groupFinanceSettings: any;\r\n\r\n public isLoaded: boolean = false;\r\n public period: number = 9999;\r\n public isTeamScope: boolean = false;\r\n\r\n public async mounted() {\r\n this.period = periodModule.periods[0].periodId + 1;\r\n this.isTeamScope = !this.group || this.group.groupId === 0;\r\n this.isLoaded = true;\r\n }\r\n\r\n public onHide() {\r\n this.period = periodModule.periods[0].periodId + 1;\r\n }\r\n\r\n public optionsList() {\r\n const periods = periodModule.periods;\r\n\r\n const list = periods.map((period) => {\r\n return {\r\n text: moment(period.startDate).format(`MMMM 'YY`),\r\n value: period.periodId,\r\n apiFormat: moment(period.startDate).format(`YYYY-MM`),\r\n };\r\n });\r\n\r\n list.unshift({\r\n text: `Next period (${moment()\r\n .add(1, 'months')\r\n .format(`MMMM 'YY`)})`,\r\n value: periodModule.periods[0].periodId + 1,\r\n apiFormat: `${moment()\r\n .add(1, 'months')\r\n .format(`YYYY-MM`)}`,\r\n });\r\n\r\n return list;\r\n }\r\n public async saveSettings() {\r\n let postResourcesModel = [];\r\n let postGroupModel = [];\r\n let postModel = [];\r\n const errors = [];\r\n const periodString = this.optionsList().find((x) => x.value === this.period).apiFormat;\r\n\r\n this.showPending('SAVING_ATTRIBUTIONS_PENDING');\r\n\r\n if (!this.isTeamScope) {\r\n postResourcesModel = this.resourceAttributions.map((item) => {\r\n return {\r\n attributionId: item.attributionId,\r\n attributionType: AttributionType.GroupAttribution,\r\n percentage: !isNaN(item.percentage) ? parseFloat(item.percentage) : item.percentage,\r\n team: teamHelper.getTeamId(),\r\n group: this.group.groupId,\r\n targetGroup: item.targetGroupModel.groupId,\r\n targetTeam: item.targetTeamModel.teamId,\r\n };\r\n });\r\n\r\n try {\r\n await attributionService.saveAttributions(\r\n postResourcesModel,\r\n AttributionType.GroupAttribution,\r\n teamHelper.currentTeam.id,\r\n periodString,\r\n this.group.groupId,\r\n );\r\n } catch (e) {\r\n console.error(e);\r\n errors.push('Could not save group attributions.');\r\n }\r\n }\r\n\r\n if (!this.isTeamScope) {\r\n postGroupModel = this.groupAttributions.map((item) => {\r\n return {\r\n attributionId: item.attributionId,\r\n attributionType: AttributionType.GroupRemittance,\r\n percentage: !isNaN(item.percentage) ? parseFloat(item.percentage) : item.percentage,\r\n team: teamHelper.currentTeam.id,\r\n group: this.group.groupId,\r\n name: item.name,\r\n targetGroup: this.group.groupId,\r\n };\r\n });\r\n\r\n try {\r\n await attributionService.saveAttributions(\r\n postGroupModel,\r\n AttributionType.GroupRemittance,\r\n teamHelper.currentTeam.id,\r\n periodString,\r\n this.group.groupId,\r\n );\r\n } catch (e) {\r\n console.error(e);\r\n errors.push('Could not save remmittance.');\r\n }\r\n }\r\n\r\n if (this.isTeamScope) {\r\n postModel = this.servicesAttributions.map((item) => {\r\n return {\r\n attributionId: item.attributionId,\r\n attributionType: AttributionType.TeamAttribution,\r\n percentage: !isNaN(item.percentage) ? parseFloat(item.percentage) : item.percentage,\r\n team: teamHelper.currentTeam.id,\r\n targetGroup: item.targetGroupModel.groupId,\r\n targetTeam: item.targetTeamModel.teamId,\r\n };\r\n });\r\n\r\n try {\r\n await attributionService.saveAttributions(postModel, AttributionType.TeamAttribution, teamHelper.getTeamId(), periodString);\r\n } catch (e) {\r\n console.error(e);\r\n errors.push('Could not save service attributions.');\r\n }\r\n }\r\n\r\n if (errors.length === 0) {\r\n this.$emit('settings-saved');\r\n this.clearAndShowSuccess('SUCCESS');\r\n this.hide();\r\n } else {\r\n this.clearAndShowError(errors.join('
'), null);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./save-attributions-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./save-attributions-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./save-attributions-modal.vue?vue&type=template&id=4e148320&\"\nimport script from \"./save-attributions-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./save-attributions-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"hide-footer\":\"\"},on:{\"hide\":_vm.onHide}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_vm._v(_vm._s(_vm.title))]),(_vm.editIsLoading)?_c('prd-loader',{attrs:{\"center\":\"\"}},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-form',[(_vm.type === 'PersonToPerson' && !_vm.meScope)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Your team member\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-form-select',{class:{ 'is-invalid': !_vm.isTransferValid.receiver },attrs:{\"disabled\":_vm.editMode,\"options\":_vm.optionListReceivers()},model:{value:(_vm.transfer.receiverId),callback:function ($$v) {_vm.$set(_vm.transfer, \"receiverId\", $$v)},expression:\"transfer.receiverId\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SELECT_RECEIVER\"}})],1)])],2)],1)])]):_vm._e(),(\n (_vm.teams && !_vm.memberCompensation && _vm.type !== 'PersonToPerson') ||\n (_vm.type === 'PersonToPerson' && !_vm.meScope && _vm.transfer.receiver && _vm.transfer.receiverId > 0) ||\n (_vm.type === 'PersonToPerson' && _vm.meScope)\n )?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Receiving team\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-form-select',{class:{ 'is-invalid': !_vm.isTransferValid.team },attrs:{\"disabled\":_vm.editMode || _vm.readonly,\"options\":_vm.optionListOtherTeams()},model:{value:(_vm.transfer.receiverTeam.teamId),callback:function ($$v) {_vm.$set(_vm.transfer.receiverTeam, \"teamId\", $$v)},expression:\"transfer.receiverTeam.teamId\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_TEAM\"}})],1)])],2)],1)])]):_vm._e(),(_vm.type === 'GroupToPerson' || _vm.type === 'GroupToGroup')?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Receiver\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-form-select',{class:{ 'is-invalid': !_vm.isTransferValid.receiver },attrs:{\"disabled\":_vm.editMode || _vm.readonly,\"options\":_vm.optionListReceivers()},model:{value:(_vm.transfer.receiverId),callback:function ($$v) {_vm.$set(_vm.transfer, \"receiverId\", $$v)},expression:\"transfer.receiverId\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SELECT_RECEIVER\"}})],1)])],2)],1)])]):_vm._e(),(_vm.type === 'PersonToPerson' && _vm.transfer.receiverTeam && _vm.transfer.receiverTeam.teamId > 0)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('p',{staticClass:\"col-md-12 mt-4 text-info font-italic font-weight-bold\"},[(_vm.meScope)?_c('span',[_vm._v(\"Your\")]):_c('span',[_vm._v(_vm._s(this.transfer.sender.name))]),_vm._v(\" current balance is \"+_vm._s(_vm.getCurrentBalance())+\". \"),(_vm.currentBalance > 0)?_c('span',[_vm._v(\" This is the maximum you can transfer. \")]):_c('span',[_vm._v(\" With this balance a transfer isn't possible. \")])]),_c('p',{staticClass:\"col-md-12 text-info font-italic font-weight-bold\"},[_c('span',[_vm._v(\"Amount left to transfer \"+_vm._s(_vm.getBalanceWithoutAmount()))])])])]):_vm._e(),(\n (_vm.type === 'PersonToPerson' && _vm.currentBalance > 0 && _vm.transfer.receiverTeam && _vm.transfer.receiverTeam.teamId > 0) ||\n _vm.type !== 'PersonToPerson'\n )?[(_vm.attributionsAreLoading)?_c('div',{staticClass:\"d-flex justify-content-center p-2\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('div',[_c('b-form-group',[(!_vm.PersonToPerson)?_c('label',[_vm._v(\" Invoice amount (external rate) \"),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\",value:('Tooltip?'),expression:\"'Tooltip?'\"}],staticClass:\"icon-info\"})]):(_vm.PersonToPerson)?_c('label',[_vm._v(\" Amount \"),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\",value:('Tooltip?'),expression:\"'Tooltip?'\"}],staticClass:\"icon-info\"})]):_vm._e(),_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",class:{ 'is-invalid': !_vm.isTransferValid.amount },attrs:{\"output-dec-seperator\":\",\",\"convert-on\":\"input\",\"disabled\":!_vm.transfer.receiverId || _vm.readonly},nativeOn:{\"focus\":function($event){_vm.amountIsDirty = true;\n _vm.internalAmountIsDirty = false;},\"blur\":function($event){_vm.amountIsDirty = false}},model:{value:(_vm.amount),callback:function ($$v) {_vm.amount=$$v},expression:\"amount\"}})],1)],1),(_vm.GroupToPerson || (_vm.GroupToGroup && !this.applyMissingAttributions))?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\" Invoice amount (ecosystem rate) \"),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\",value:('Tooltip?'),expression:\"'Tooltip?'\"}],staticClass:\"icon-info\"})])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",class:{ 'is-invalid': !_vm.isTransferValid.internalAmount },attrs:{\"output-dec-seperator\":\",\",\"convert-on\":\"input\",\"disabled\":!_vm.transfer.receiverId || _vm.GroupToPerson || _vm.readonly},nativeOn:{\"focus\":function($event){_vm.internalAmountIsDirty = true;\n _vm.amountIsDirty = false;},\"blur\":function($event){_vm.internalAmountIsDirty = false}},model:{value:(_vm.internalAmount),callback:function ($$v) {_vm.internalAmount=$$v},expression:\"internalAmount\"}})],1)],1)])]):_vm._e(),(_vm.GroupToGroup && this.applyMissingAttributions)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Group Attribution\")])]),_c('div',{staticClass:\"col-md-8\"},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-input',{attrs:{\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.groupAttribution),callback:function ($$v) {_vm.groupAttribution=$$v},expression:\"groupAttribution\"}})],1)],1)])]):_vm._e(),(_vm.GroupToPerson && this.applyMissingAttributions)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Group Remittance\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-input',{attrs:{\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.groupRemittance),callback:function ($$v) {_vm.groupRemittance=$$v},expression:\"groupRemittance\"}})],1)],1)])]):_vm._e(),(_vm.GroupToPerson)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Team attributions\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-input',{attrs:{\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.teamAttribution),callback:function ($$v) {_vm.teamAttribution=$$v},expression:\"teamAttribution\"}})],1)],1)])]):_vm._e(),(_vm.GroupToPerson)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('label',[_vm._v(\"Amount received on P&L\")])]),_c('div',{staticClass:\"col-md-12\"},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",attrs:{\"output-dec-seperator\":\",\",\"convert-on\":\"input\",\"disabled\":!_vm.transfer.receiverId},nativeOn:{\"focus\":function($event){_vm.penlAmmountIsDirty = true;\n _vm.amountIsDirty = false;},\"blur\":function($event){_vm.penlAmmountIsDirty = false}},model:{value:(_vm.penlAmmount),callback:function ($$v) {_vm.penlAmmount=$$v},expression:\"penlAmmount\"}})],1)],1)])]):_vm._e()],1),_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"DESCRIPTION\"}}),_c('b-form-textarea',{class:{ 'is-invalid': !_vm.isTransferValid.reason },attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.transfer.reason),callback:function ($$v) {_vm.$set(_vm.transfer, \"reason\", $$v)},expression:\"transfer.reason\"}})],1),_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.isRecurring),callback:function ($$v) {_vm.isRecurring=$$v},expression:\"isRecurring\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"RECURRING_TRANSFER\"}})],1)],1),(_vm.isRecurring)?_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"RECURS_EVERY\"}}),_c('b-form-select',{attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.transferSchedule),callback:function ($$v) {_vm.transferSchedule=$$v},expression:\"transferSchedule\"}},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MONTHLY'),expression:\"'MONTHLY'\"}],attrs:{\"value\":\"Monthly\"}}),_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('QUARTERLY'),expression:\"'QUARTERLY'\"}],attrs:{\"value\":\"Quarterly\"}})])],1):_vm._e()]:_vm._e()],2),(!_vm.readonly)?_c('div',{staticClass:\"modal-footer justify-content-between align-items-start px-0 pb-2\"},[(_vm.applyMissingAttributions)?_c('p',{staticClass:\"mb-0 text-info d-inline text-left mr-10\"},[_c('span',{staticClass:\"k-icon k-i-info\"}),_vm._v(\" On this transfer missing attributions will be applied. \")]):_vm._e(),(_vm.type === 'GroupToPerson' && !_vm.applyMissingAttributions)?_c('p',{staticClass:\"mb-2 cursor-pointer text-info\",on:{\"click\":_vm.goToGroupTransfers}},[_vm._v(\" Want to make transfer to another group? \"),_c('br')]):_vm._e(),(_vm.type === 'GroupToGroup' && !_vm.applyMissingAttributions)?_c('p',{staticClass:\"mb-2 cursor-pointer text-info\",on:{\"click\":function($event){return _vm.goToGroupOverview()}}},[_vm._v(\" Want to compensate a member in \"+_vm._s(_vm.group.name)+\"? \"),_c('br')]):_vm._e(),_c('p',[_vm._v(\" \")]),(_vm.isRecurring)?_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"action\":_vm.createRecurringTransfer,\"translate-key\":\"MODALS.CREATE_RECURRING_TRANSFER\"}}):_c('prd-action-btn',{attrs:{\"disabled\":_vm.type === 'PersonToPerson' && _vm.currentBalance <= 0,\"variant\":\"primary\",\"action\":_vm.doTransfer}},[_vm._v(\" \"+_vm._s(_vm.buttonText)+\" \")])],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop, Watch } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\nimport {\r\n teamHelper,\r\n attributionService,\r\n financeAccountService,\r\n teamService,\r\n memberHelper,\r\n loginHelper,\r\n transferService,\r\n periodService,\r\n} from '@/main';\r\nimport Transfer from '@/models/Transfer';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\nimport Group from '@/models/Group';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport to from 'await-to-js';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport { AttributionType } from '@/models/AttributionType';\r\nimport AttributionPercentages from '@/models/Finance/AttributionPercentages';\r\nimport { TransferType } from '@/models/TransferType';\r\nimport Vue from 'vue';\r\nimport Team from '@/models/Team';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport IRecurringTransferRequest from '@/interfaces/IRecurringTransferRequest';\r\nimport IRecurringTransfer from '@/interfaces/IRecurringTransfer';\r\nimport { translateModule } from '@/store/modules/translate';\r\n\r\n@Component\r\nexport default class TransferModalComponent extends BaseModal {\r\n @Prop({ default: () => 'Make transfer' }) public title: string;\r\n @Prop({ default: () => 'Finalize transfer' }) public buttonText: string;\r\n @Prop({ default: () => new Group() }) public group: Group;\r\n @Prop({ default: () => new Transfer() }) public transfer: Transfer;\r\n @Prop({ default: () => null }) public selectedTeamId: number;\r\n @Prop({ default: () => null }) public selectedGroupId: number;\r\n @Prop({ default: () => TransferType.Unknown }) public type;\r\n @Prop({ default: false }) public meScope;\r\n @Prop({ default: null }) public recurringTransfer: IRecurringTransfer;\r\n @Prop({ default: false }) public readonly: boolean;\r\n @Prop({ default: false }) public memberCompensation: boolean;\r\n\r\n public receivingAccounts: FinanceAccount[] = [];\r\n public sendingAccounts: FinanceAccount[] = [];\r\n\r\n public editMode: boolean = false;\r\n public editIsLoading: boolean = false;\r\n\r\n public receivingTeams: Team[] = [];\r\n public teams: Team[] = [];\r\n\r\n public amountIsDirty: boolean = false;\r\n public amount: number = 0;\r\n\r\n public internalAmountIsDirty: boolean = false;\r\n public internalAmount: number = 0;\r\n\r\n public penlAmmountIsDirty: boolean = false;\r\n public penlAmmount: number = 0;\r\n\r\n public calculatedAmount: number = 0;\r\n public groupRemittance: number = 0;\r\n public teamAttribution: number = null;\r\n public groupAttribution: number = null;\r\n\r\n public attributionPercentages: AttributionPercentages = new AttributionPercentages();\r\n\r\n public attributionsAreLoading: boolean = false;\r\n\r\n public GroupToGroup: boolean = false;\r\n public GroupToPerson: boolean = false;\r\n public PersonToPerson: boolean = false;\r\n public currentBalance: number = 0;\r\n public selectedPerson: Person = null;\r\n\r\n public applyMissingAttributions: boolean = false;\r\n\r\n public otherTeamKey: string = null;\r\n public otherTeam: Team = null;\r\n\r\n public isTransferValid: any = {\r\n amount: true,\r\n sender: true,\r\n receiver: true,\r\n reason: true,\r\n internalAmount: true,\r\n team: true,\r\n };\r\n public isRecurring: boolean = false;\r\n public transferSchedule: string = '';\r\n\r\n @Watch('transfer.receiverTeam.teamId', { deep: true, immediate: true })\r\n public async onTeamSelected(val: number, oldVal: number) {\r\n if (val && val !== oldVal && !this.isRecurring) {\r\n const team = this.teams.find((t) => t.teamId === val);\r\n\r\n if (team) {\r\n const teamPeriods = await periodService.getPeriods(team.teamId);\r\n const teamPeriod = teamPeriods.find((x) => x.periodId === periodModule.selectedPeriodObject.periodId);\r\n if (teamPeriod && teamPeriod.closed) {\r\n this.showWarning('OTHER_TEAM_PERIOD_CLOSED_WARNING');\r\n return;\r\n } else {\r\n this.clearNotifications();\r\n }\r\n\r\n if (this.group && this.group.groupId > 0) {\r\n if (this.type === TransferType.GroupToGroup) {\r\n const financeGroupAccounts = await this.getFinanceGroupAccounts(team.teamId);\r\n this.receivingAccounts = financeGroupAccounts;\r\n }\r\n\r\n if (this.type === TransferType.GroupToPerson && this.memberCompensation) {\r\n const financePersonAccounts = await this.getFinancePersonsAccounts(team.teamId, this.group.groupId);\r\n this.receivingAccounts = financePersonAccounts;\r\n }\r\n this.setReceiverTransferTeam(team);\r\n }\r\n\r\n if (!this.editMode && this.type !== TransferType.PersonToPerson) {\r\n this.transfer.receiverId = null;\r\n }\r\n } else {\r\n const newTeam = new Team();\r\n this.setReceiverTransferTeam(newTeam);\r\n this.receivingAccounts = [];\r\n }\r\n }\r\n }\r\n\r\n @Watch('transfer.receiverId')\r\n public async onReceiverSelected(val) {\r\n if (!val && this.isRecurring) {\r\n return;\r\n }\r\n\r\n if (!this.editMode) {\r\n this.amount = 0;\r\n this.internalAmount = 0;\r\n\r\n this.transfer.receiver = this.receivingAccounts.find((account) => account.accountId === this.transfer.receiverId);\r\n\r\n if (this.type === TransferType.PersonToPerson && !this.meScope) {\r\n this.transfer.sender = this.transfer.receiver;\r\n }\r\n\r\n this.setTransferDirections();\r\n\r\n if (this.type === TransferType.GroupToGroup || this.type === TransferType.GroupToPerson) {\r\n this.attributionsAreLoading = true;\r\n\r\n const [groupAttributions, groupRemittances, teamAttributions] = await Promise.all([\r\n this.getGroupAttributions(\r\n this.transfer.receiverTeam.teamId,\r\n this.GroupToGroup ? this.transfer.receiver.relatedEntityId : this.group.groupId,\r\n ),\r\n this.getGroupRemittances(\r\n this.transfer.receiverTeam.teamId,\r\n this.GroupToGroup ? this.transfer.receiver.relatedEntityId : this.group.groupId,\r\n ),\r\n this.getTeamAttributions(this.transfer.receiverTeam.teamId),\r\n ]);\r\n this.attributionPercentages.teamAttributionsPercentage = this.attributionPercentages.groupRemittancePercentage = this.attributionPercentages.groupAttributionsPercentage = 0;\r\n\r\n groupRemittances.forEach((attr) => {\r\n this.attributionPercentages.groupRemittancePercentage += attr.percentage;\r\n });\r\n\r\n // only do this when check box in settings is checked\r\n groupAttributions.forEach((attr) => {\r\n this.attributionPercentages.groupAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n teamAttributions.forEach((attr) => {\r\n this.attributionPercentages.teamAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n this.attributionsAreLoading = false;\r\n }\r\n\r\n if (this.PersonToPerson) {\r\n await this.getPersonalAmountToSpent();\r\n\r\n if (!this.meScope) {\r\n const [err, response] = await to(teamService.getMembers(teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError('Failed to load teammemberships', err);\r\n }\r\n this.selectedPerson = response.find((x) => x.personId === this.transfer.sender.relatedEntityId);\r\n }\r\n }\r\n }\r\n }\r\n\r\n @Watch('amount')\r\n public onAmountChanged(val: any) {\r\n if (!this.internalAmountIsDirty && !this.penlAmmountIsDirty) {\r\n // this only works cuz output of prd-numeric-input is ,\r\n if (isNaN(val)) {\r\n val = parseFloat(val.replace(',', '.').toString());\r\n }\r\n const result = this.calculateTariff(val, true);\r\n this.internalAmount = result;\r\n\r\n if (this.GroupToPerson || (this.GroupToGroup && this.applyMissingAttributions)) {\r\n this.calculateAttributions(val);\r\n }\r\n }\r\n }\r\n @Watch('internalAmount')\r\n public onInternalAmountChanged(val: any) {\r\n if (!this.amountIsDirty) {\r\n // this only works cuz output of prd-numeric-input is ,\r\n if (isNaN(val)) {\r\n val = parseFloat(val.replace(',', '.').toString());\r\n }\r\n const result = this.calculateTariff(val, false);\r\n this.amount = result;\r\n\r\n if (this.GroupToPerson) {\r\n this.calculateAttributions(val, false);\r\n }\r\n }\r\n }\r\n\r\n @Watch('penlAmmount')\r\n public onPenLAmountChanged(val: any) {\r\n if (!this.amountIsDirty) {\r\n // this only works cuz output of prd-numeric-input is ,\r\n if (isNaN(val)) {\r\n val = parseFloat(val.replace(',', '.').toString());\r\n }\r\n\r\n const result = this.calculateFromPenLTariff(val);\r\n this.internalAmount = result;\r\n\r\n if (this.GroupToPerson) {\r\n this.calculateAttributions(val, false);\r\n }\r\n }\r\n }\r\n\r\n public async init() {\r\n this.editIsLoading = true;\r\n this.show();\r\n\r\n this.teams = await teamService.getTeams();\r\n\r\n if (this.selectedTeamId) {\r\n this.transfer.senderTeam = { ...this.teams.find((x) => x.teamId === this.selectedTeamId) };\r\n }\r\n\r\n if (this.group && this.group.groupId > 0) {\r\n this.sendingAccounts = await this.getFinanceGroupSavingAccounts(teamHelper.currentTeamId);\r\n this.transfer.sender = this.group.account;\r\n this.transfer.senderId = this.group.account.accountId;\r\n this.setReceiverTransferTeam(this.transfer.senderTeam);\r\n\r\n const attributionSettings = await this.getAttributionsSettings(this.group.groupId);\r\n this.applyMissingAttributions = attributionSettings.applyMissingAttributionsOnTransfer;\r\n this.transfer.includeMissingAttributions = this.applyMissingAttributions;\r\n this.transfer.invoiceType = this.applyMissingAttributions ? InvoiceType.Income : InvoiceType.InternalIncome;\r\n }\r\n\r\n if (this.type === TransferType.PersonToPerson && !this.meScope) {\r\n const financePersonAccounts = await this.getFinancePersonsAccounts(teamHelper.currentTeamId);\r\n const members = await memberHelper.getMembers(true);\r\n const list = financePersonAccounts.filter((acc) => {\r\n const member = members.find((m) => m.personId === acc.relatedEntityId);\r\n if (member && member.teamMemberships.length > 1) {\r\n return acc;\r\n }\r\n });\r\n this.receivingAccounts = list;\r\n }\r\n\r\n if (this.type === TransferType.PersonToPerson && this.meScope) {\r\n const currentUser = loginHelper.getUser();\r\n const period = periodModule.selectedPeriod;\r\n const financeAccount = await financeAccountService.getAccount(teamHelper.currentTeam.id, currentUser.personId, period);\r\n\r\n this.receivingAccounts = [financeAccount];\r\n\r\n this.transfer.sender = financeAccount;\r\n this.transfer.senderId = financeAccount.accountId;\r\n this.transfer.receiver = financeAccount;\r\n this.transfer.receiverId = financeAccount.accountId;\r\n this.transfer.senderTeam = this.teams.find((x) => x.teamId === teamHelper.currentTeamId);\r\n\r\n await this.getPersonalAmountToSpent();\r\n }\r\n\r\n this.editIsLoading = false;\r\n }\r\n\r\n public async initTransfer(transfer: Transfer) {\r\n await this.init();\r\n\r\n Object.assign(this.transfer, { ...transfer });\r\n\r\n this.transfer.receiverId = this.transfer.receiver.accountId;\r\n this.transfer.senderId = this.transfer.sender.accountId;\r\n\r\n this.applyMissingAttributions = this.transfer.invoiceType === InvoiceType.Income;\r\n\r\n this.setTransferDirections();\r\n\r\n this.attributionsAreLoading = true;\r\n\r\n if (this.transfer.receiver.accountType === AccountType.GroupIncome) {\r\n await this.getGroupAttributions(this.transfer.receiverTeam.teamId, this.transfer.receiver.relatedEntityId);\r\n }\r\n\r\n if (this.transfer.receiver.accountType === AccountType.Person) {\r\n await this.getGroupAttributions(\r\n this.transfer.receiverTeam.teamId,\r\n this.GroupToGroup ? this.transfer.receiver.relatedEntityId : this.group.groupId,\r\n );\r\n await this.getGroupRemittances(\r\n this.transfer.receiverTeam.teamId,\r\n this.GroupToGroup ? this.transfer.receiver.relatedEntityId : this.group.groupId,\r\n );\r\n await this.getTeamAttributions(this.transfer.receiverTeam.teamId);\r\n }\r\n\r\n if (this.GroupToPerson) {\r\n this.amountIsDirty = true;\r\n this.amount = this.calculateTariff(this.transfer.amount, false);\r\n this.$nextTick(() => {\r\n this.amountIsDirty = false;\r\n });\r\n } else {\r\n if (this.applyMissingAttributions) {\r\n this.amountIsDirty = true;\r\n this.amount = this.transfer.amount;\r\n this.amountIsDirty = false;\r\n } else {\r\n this.internalAmountIsDirty = true;\r\n this.internalAmount = this.transfer.amount;\r\n this.internalAmountIsDirty = false;\r\n }\r\n }\r\n\r\n if (this.type === TransferType.PersonToPerson) {\r\n this.currentBalance = await this.getPersonalAmountToSpent();\r\n }\r\n\r\n this.attributionsAreLoading = false;\r\n }\r\n\r\n public async initRecurringTransfer(transfer: IRecurringTransfer) {\r\n this.isRecurring = true;\r\n\r\n Object.assign(this.transfer, { ...transfer });\r\n\r\n this.transferSchedule = this.recurringTransfer.schedule;\r\n this.transfer.reason = this.recurringTransfer.description;\r\n this.transfer.internalAmount = this.recurringTransfer.amount;\r\n\r\n this.teams = await teamService.getTeams();\r\n\r\n this.transfer.receiverId = transfer.receiverAccount.accountId;\r\n this.transfer.senderId = transfer.senderAccount.accountId;\r\n // this.transfer.receiverTeam = transfer.receiverTeam;\r\n\r\n this.receivingAccounts = [transfer.receiverAccount];\r\n this.amount = transfer.amount;\r\n\r\n this.show();\r\n }\r\n\r\n public async onHide() {\r\n this.transfer.receiver = null;\r\n this.transfer.receiverId = null;\r\n const emptyTeam = new Team();\r\n this.setReceiverTransferTeam(emptyTeam);\r\n\r\n if (this.selectedTeamId) {\r\n this.setReceiverTransferTeam(this.teams.find((x) => x.teamId === this.selectedTeamId));\r\n } else if (!this.group || this.group.groupId === 0) {\r\n this.setReceiverTransferTeam(emptyTeam);\r\n }\r\n\r\n if (this.group && this.group.groupId > 0) {\r\n const attributionSettings = await this.getAttributionsSettings(this.group.groupId);\r\n this.applyMissingAttributions = attributionSettings.applyMissingAttributionsOnTransfer;\r\n }\r\n\r\n this.transfer.reason = '';\r\n delete this.transfer.transferId;\r\n this.internalAmount = 0;\r\n this.amount = 0;\r\n this.editMode = false;\r\n }\r\n\r\n public async doTransfer() {\r\n if (!this.validateTransfer(true)) {\r\n return;\r\n }\r\n\r\n this.checkTransferAmount();\r\n this.transfer.period = periodModule.selectedPeriodObject;\r\n\r\n this.showPending('TRANSFERRING_PENDING');\r\n\r\n if (this.editMode && this.transfer && this.transfer.transferId > 0) {\r\n transferService\r\n .updateTransfer(this.transfer)\r\n .then(() => {\r\n if (this.$appInsights) {\r\n this.$appInsights.trackEvent({ name: 'transfer-success' });\r\n }\r\n this.clearAndShowSuccess('TRANSFERRING_SUCCESS');\r\n this.$emit('transfer-completed');\r\n this.hide();\r\n })\r\n .catch((e) => {\r\n if (e.response && e.response.status && e.response.status === 400) {\r\n const transferResponse = e.response.data;\r\n this.clearAndShowError(`${transferResponse.title}.

Reason:
${transferResponse.detail}`, e);\r\n } else {\r\n this.clearAndShowError(e, e);\r\n }\r\n });\r\n\r\n return;\r\n }\r\n\r\n await transferService\r\n .doTransfer(this.transfer)\r\n .then(() => {\r\n if (this.$appInsights) {\r\n this.$appInsights.trackEvent({ name: 'transfer-success' });\r\n }\r\n this.clearAndShowSuccess('TRANSFERRING_SUCCESS');\r\n this.$emit('transfer-completed');\r\n this.hide();\r\n })\r\n .catch((e) => {\r\n if (e.response && e.response.status && e.response.status === 400) {\r\n const transferResponse = e.response.data;\r\n this.clearAndShowError(`${transferResponse.title}.

Reason:
${transferResponse.detail}`, e);\r\n } else {\r\n this.clearAndShowError(e, e);\r\n }\r\n });\r\n }\r\n\r\n public async createRecurringTransfer() {\r\n if (!this.validateTransfer(true)) {\r\n return;\r\n }\r\n\r\n this.checkTransferAmount();\r\n const team = parseInt(this.$route.params.teamId);\r\n const group = parseInt(this.$route.params.groupId);\r\n const recurringTransfer: IRecurringTransferRequest = {\r\n description: this.transfer.reason,\r\n amount: this.transfer.amount,\r\n schedule: this.transferSchedule,\r\n senderTeam: team,\r\n receiverTeam: this.transfer.receiverTeam.teamId,\r\n invoiceType: this.transfer.invoiceType,\r\n };\r\n\r\n if (this.GroupToGroup || this.GroupToPerson) {\r\n recurringTransfer.senderAccount = this.transfer.sender.accountId;\r\n recurringTransfer.receiverAccount = this.transfer.receiverId;\r\n recurringTransfer.senderGroup = group;\r\n }\r\n\r\n if (this.PersonToPerson) {\r\n recurringTransfer.receiverAccount = this.transfer.receiverId;\r\n recurringTransfer.receiverPerson = this.transfer.receiver.relatedEntityId;\r\n recurringTransfer.senderAccount = this.transfer.sender.accountId;\r\n recurringTransfer.senderPerson = this.transfer.sender.relatedEntityId;\r\n }\r\n\r\n if (this.GroupToGroup) {\r\n recurringTransfer.receiverGroup = this.transfer.receiver.relatedEntityId;\r\n }\r\n\r\n if (this.GroupToPerson) {\r\n recurringTransfer.receiverPerson =\r\n this.transfer.receiver.accountType === AccountType.Person ? this.transfer.receiver.relatedEntityId : null;\r\n }\r\n\r\n const [err] = await to(transferService.createRecurringTransfer(recurringTransfer));\r\n if (err) {\r\n return this.clearAndShowError('CREATE_RECURRING_TRANSFER_FAILED', null);\r\n } else {\r\n this.$refs.modal.hide();\r\n this.$emit('transfer-completed', recurringTransfer);\r\n return this.clearAndShowSuccess('CREATE_RECURRING_TRANSFER_SUCCESS');\r\n }\r\n }\r\n\r\n public optionListSenders(): any[] {\r\n const list = this.sendingAccounts.map((sender) => {\r\n return { value: sender.accountId, text: sender.name };\r\n });\r\n return list;\r\n }\r\n\r\n public optionListReceivers(): any[] {\r\n if (!this.receivingAccounts) {\r\n return [];\r\n }\r\n\r\n const list = this.receivingAccounts.map((sender) => {\r\n return { value: sender.accountId, text: sender.name };\r\n });\r\n\r\n return list;\r\n }\r\n\r\n public optionListOtherTeams(): any[] {\r\n const includeOwn = !this.PersonToPerson;\r\n\r\n let list = this.teams.filter((team) => includeOwn || team.teamId !== teamHelper.currentTeamId);\r\n\r\n if (this.selectedPerson && !this.meScope) {\r\n list = list.filter((x) => {\r\n for (const ship of this.selectedPerson.teamMemberships) {\r\n if (ship.id === x.teamId) {\r\n return x;\r\n }\r\n }\r\n });\r\n }\r\n\r\n return list.map((team) => {\r\n return { value: team.teamId, text: team.name };\r\n });\r\n }\r\n\r\n public optionListExternalReceivers(): any[] {\r\n const list = this.receivingAccounts.map((sender) => {\r\n return { value: sender.accountId, text: sender.name };\r\n });\r\n return list;\r\n }\r\n\r\n public async getAttributionsSettings(groupId: number) {\r\n const [err, response] = await to(attributionService.getAttributionSetting(groupId));\r\n if (err) {\r\n this.showFailedResponse('Failed to load attribution settings', null);\r\n }\r\n return response.data;\r\n }\r\n\r\n public disableInternal() {\r\n this.amountIsDirty = true;\r\n }\r\n\r\n public disableAmount() {\r\n this.internalAmountIsDirty = true;\r\n }\r\n\r\n public calculateAttributions(val: number, isExternal: boolean = true) {\r\n if (!isExternal) {\r\n val = this.calculateTariff(val, false);\r\n }\r\n\r\n let groupResult = 0;\r\n let teamResult = 0;\r\n let groupAttrResult = 0;\r\n let penlResult = 0;\r\n\r\n if (!this.applyMissingAttributions) {\r\n groupResult = val * (1 - this.attributionPercentages.groupAttributionsPercentage / 100);\r\n teamResult =\r\n (val *\r\n (1 - this.attributionPercentages.groupAttributionsPercentage / 100) *\r\n (this.attributionPercentages.teamAttributionsPercentage / 100)) /\r\n (1 - this.attributionPercentages.groupAttributionsPercentage / 100);\r\n groupAttrResult = val * (this.attributionPercentages.groupAttributionsPercentage / 100);\r\n penlResult = val - teamResult - groupAttrResult;\r\n }\r\n\r\n if (this.applyMissingAttributions) {\r\n groupResult =\r\n val *\r\n (1 - this.attributionPercentages.groupAttributionsPercentage / 100) *\r\n (this.attributionPercentages.groupRemittancePercentage / 100);\r\n teamResult =\r\n (val *\r\n (1 - this.attributionPercentages.groupAttributionsPercentage / 100) *\r\n (1 - this.attributionPercentages.groupRemittancePercentage / 100) *\r\n (this.attributionPercentages.teamAttributionsPercentage / 100)) /\r\n (1 - this.attributionPercentages.groupAttributionsPercentage / 100);\r\n groupAttrResult = val * (this.attributionPercentages.groupAttributionsPercentage / 100);\r\n penlResult = val - teamResult - groupAttrResult - groupResult;\r\n }\r\n\r\n this.groupRemittance = parseFloat(groupResult.toFixed(2));\r\n this.teamAttribution = parseFloat(teamResult.toFixed(2));\r\n this.groupAttribution = parseFloat(groupAttrResult.toFixed(2));\r\n\r\n if (this.GroupToPerson && !this.penlAmmountIsDirty) {\r\n this.penlAmmount = parseFloat(penlResult.toFixed(2));\r\n }\r\n }\r\n\r\n public setTransferDirections() {\r\n if (this.transfer.receiverId && this.transfer.receiver.accountId) {\r\n this.GroupToGroup =\r\n this.transfer.receiver.accountType === AccountType.GroupIncome && this.transfer.sender.accountType === AccountType.GroupSavings;\r\n this.GroupToPerson =\r\n this.transfer.receiver.accountType === AccountType.Person && this.transfer.sender.accountType === AccountType.GroupSavings;\r\n this.PersonToPerson =\r\n this.transfer.receiver.accountType === AccountType.Person && this.transfer.sender.accountType === AccountType.Person;\r\n }\r\n }\r\n\r\n public setReceiverTransferTeam(team: Team) {\r\n this.transfer.receiverTeam.teamId = team.teamId;\r\n this.transfer.receiverTeam.teamKey = team.teamKey;\r\n this.transfer.receiverTeam.name = team.name;\r\n\r\n if (team.groups) {\r\n this.transfer.receiverTeam.groups = team.groups;\r\n }\r\n if (team.periods) {\r\n this.transfer.receiverTeam.periods = team.periods;\r\n }\r\n }\r\n\r\n public calculateTariff(amount: number, isExternal: boolean = true) {\r\n let result = 0;\r\n if (isExternal) {\r\n result = amount * (1 - this.attributionPercentages.groupAttributionsPercentage / 100);\r\n } else {\r\n result = amount / (1 - this.attributionPercentages.groupAttributionsPercentage / 100);\r\n }\r\n return parseFloat(result.toFixed(2));\r\n }\r\n\r\n public calculateFromPenLTariff(amount) {\r\n return (\r\n amount /\r\n (1 - this.attributionPercentages.teamAttributionsPercentage / 100 / (1 - this.attributionPercentages.groupAttributionsPercentage / 100))\r\n );\r\n }\r\n\r\n public async goToGroupTransfers() {\r\n const params = this.$route.params;\r\n params.tab = 'transfers';\r\n await this.$router.push({ name: 'team-finances-group', params });\r\n }\r\n\r\n public async goToGroupOverview() {\r\n const params = this.$route.params;\r\n params.tab = 'overview';\r\n await this.$router.push({ name: 'team-finances-group', params });\r\n }\r\n\r\n public async getPersonalAmountToSpent() {\r\n if (!this.transfer.sender || !this.transfer.senderTeam || this.transfer.sender.accountId === 0 || this.transfer.senderTeam.teamId === 0) {\r\n return 0;\r\n }\r\n\r\n const [err, response] = await to(\r\n financeAccountService.getBalance(\r\n this.transfer.sender.accountId,\r\n periodModule.selectedPeriod,\r\n this.transfer.senderTeam.teamId,\r\n AccountType.Person,\r\n ),\r\n );\r\n\r\n if (err) {\r\n this.showFailedResponse('Failed to load balance');\r\n return 0;\r\n }\r\n\r\n if (!response || !response.items || response.items.length === 0) {\r\n return 0;\r\n }\r\n\r\n return (this.currentBalance = response.items[0].item.totalBalance);\r\n }\r\n\r\n public getCurrentBalance() {\r\n return Vue.filter('number-format')(this.currentBalance);\r\n }\r\n\r\n public getBalanceWithoutAmount() {\r\n return Vue.filter('number-format')(this.currentBalance - this.amount);\r\n }\r\n\r\n public validateTransfer(isBetweenTeams: boolean = false): boolean {\r\n const errors = [];\r\n const minLengthReason = 1;\r\n const transfer = this.transfer;\r\n\r\n this.isTransferValid.amount = true;\r\n this.isTransferValid.sender = true;\r\n this.isTransferValid.receiver = true;\r\n this.isTransferValid.reason = true;\r\n this.isTransferValid.internalAmount = true;\r\n this.isTransferValid.team = true;\r\n\r\n if (transfer.receiverTeam == null && isBetweenTeams) {\r\n this.isTransferValid.team = false;\r\n errors.push(translateModule.value('SELECT_A_TEAM', 'DROPDOWN'));\r\n }\r\n\r\n if (transfer.senderId == null) {\r\n this.isTransferValid.sender = false;\r\n errors.push(translateModule.value('SELECT_SENDER'));\r\n }\r\n\r\n if (transfer.receiverId == null) {\r\n this.isTransferValid.receiver = false;\r\n errors.push(translateModule.value('SELECT_RECEIVER'));\r\n }\r\n\r\n if (transfer.reason.length < minLengthReason) {\r\n this.isTransferValid.reason = false;\r\n errors.push(translateModule.value('RECOMMEND_DESCRIPTION'));\r\n }\r\n\r\n if (errors.length > 0) {\r\n this.showValidationErrors(errors);\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public async getFinanceGroupSavingAccounts(team: number) {\r\n const [err, response] = await to(financeAccountService.getAccounts(AccountType.GroupSavings, team, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load group accounts', null);\r\n }\r\n\r\n if (team === teamHelper.currentTeam.id) {\r\n this.group.account = response.data.find((item: FinanceAccount) => {\r\n return item.relatedEntityId === this.group.groupId;\r\n });\r\n }\r\n\r\n return response.data.filter((item: FinanceAccount) => {\r\n return item.relatedEntityId !== this.group.groupId;\r\n });\r\n }\r\n\r\n public async getFinanceGroupAccounts(team: number) {\r\n const [err, response] = await to(financeAccountService.getAccounts(AccountType.GroupIncome, team, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load group accounts', null);\r\n }\r\n\r\n if (team === teamHelper.currentTeam.id) {\r\n this.group.accountIncome = response.data.find((item: FinanceAccount) => {\r\n return item.relatedEntityId === this.group.groupId;\r\n });\r\n }\r\n\r\n return response.data.filter((item: FinanceAccount) => {\r\n return item.relatedEntityId !== this.group.groupId;\r\n });\r\n }\r\n\r\n public async getFinancePersonsAccounts(team: number, groupId?: number) {\r\n const [err, response] = await to(financeAccountService.getAccounts(AccountType.Person, team, periodModule.selectedPeriod, groupId));\r\n if (err) {\r\n this.showFailedResponse('FINANCE_PERSONS_FAILED', null);\r\n }\r\n return response.data;\r\n }\r\n\r\n public async getGroupAttributions(teamId: number, groupId: number) {\r\n const self = this;\r\n const [err, response] = await to(\r\n attributionService.getAttributions(AttributionType.GroupAttribution, teamId, periodModule.selectedPeriod, groupId),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load group attributions', null);\r\n }\r\n\r\n self.attributionPercentages.groupAttributionsPercentage = 0;\r\n\r\n response.data.forEach((attr) => {\r\n self.attributionPercentages.groupAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n return response.data;\r\n }\r\n\r\n public async getGroupRemittances(teamId: number, groupId: number) {\r\n const self = this;\r\n const [err, response] = await to(\r\n attributionService.getAttributions(AttributionType.GroupRemittance, teamId, periodModule.selectedPeriod, groupId),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load group remittances', null);\r\n }\r\n\r\n self.attributionPercentages.groupRemittancePercentage = 0;\r\n\r\n response.data.forEach((attr) => {\r\n self.attributionPercentages.groupRemittancePercentage += attr.percentage;\r\n });\r\n\r\n return response.data;\r\n }\r\n\r\n public async getTeamAttributions(teamId: number) {\r\n const self = this;\r\n const [err, response] = await to(attributionService.getAttributions(AttributionType.TeamAttribution, teamId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load team attributions', null);\r\n }\r\n\r\n self.attributionPercentages.teamAttributionsPercentage = 0;\r\n response.data.forEach((attr) => {\r\n self.attributionPercentages.teamAttributionsPercentage += attr.percentage;\r\n });\r\n\r\n return response.data;\r\n }\r\n\r\n private checkTransferAmount() {\r\n if ((this.applyMissingAttributions && this.GroupToGroup) || this.PersonToPerson) {\r\n if (isNaN(this.amount) && this.amount.toString().indexOf(',')) {\r\n const amount = this.amount.toString().replace(',', '.');\r\n this.transfer.amount = parseFloat(amount);\r\n } else {\r\n this.transfer.amount = this.amount;\r\n }\r\n } else {\r\n if (isNaN(this.internalAmount) && this.internalAmount.toString().indexOf(',')) {\r\n const amount = this.internalAmount.toString().replace(',', '.');\r\n this.transfer.amount = parseFloat(amount);\r\n } else {\r\n this.transfer.amount = this.internalAmount;\r\n }\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./transfer-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./transfer-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./transfer-modal.vue?vue&type=template&id=3df586d0&\"\nimport script from \"./transfer-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./transfer-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-modal',{ref:\"modal\",attrs:{\"scrollable\":\"\",\"hide-footer\":_vm.readonly},on:{\"hide\":_vm.onHide}},[(!_vm.transferRequest)?_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_vm._v(_vm._s(_vm.title))]):_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_vm._v(_vm._s(_vm.acceptTitle))]),(_vm.isLoading)?_c('prd-loader',{attrs:{\"center\":\"\"}},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-form',[(!_vm.isRequestReceiver)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-4\"},[_c('b-form-select',{class:{ 'is-invalid': !_vm.isTransferValid.receiver },attrs:{\"disabled\":_vm.transferRequest != null,\"options\":_vm.optionListTeams(),\"size\":\"sm\"},on:{\"change\":_vm.teamChanged},model:{value:(_vm.selectedTeam),callback:function ($$v) {_vm.selectedTeam=$$v},expression:\"selectedTeam\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_TEAM\"}})],1)])],2)],1),(_vm.transferRequest == null)?_c('div',{staticClass:\"col-8\"},[_c('p',{staticClass:\"cursor-pointer d-inline-block mt-1\",on:{\"click\":function($event){}}},[_vm._v(\" Team not here? Make a friendship request \")])]):_vm._e()])]):_vm._e(),(!_vm.isRequestReceiver)?_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-4\"},[_c('b-form-select',{class:{ 'is-invalid': !_vm.isTransferValid.receiver },attrs:{\"disabled\":!_vm.selectedTeam || _vm.selectedMember != null || _vm.transferRequest != null,\"options\":_vm.optionListGroups(),\"size\":\"sm\"},on:{\"change\":_vm.groupChanged},model:{value:(_vm.selectedGroup),callback:function ($$v) {_vm.selectedGroup=$$v},expression:\"selectedGroup\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_GROUP\"}})],1)])],2)],1),_c('div',{staticClass:\"col-4 text-center\"},[_c('b',{staticClass:\"d-inline-block mt-1\"},[_vm._v(\"Or\")])]),_c('div',{staticClass:\"col-4\"},[_c('b-form-select',{class:{ 'is-invalid': !_vm.isTransferValid.receiver },attrs:{\"disabled\":true,\"options\":_vm.optionListMembers(),\"size\":\"sm\"},on:{\"change\":_vm.memberChanged},model:{value:(_vm.selectedMember),callback:function ($$v) {_vm.selectedMember=$$v},expression:\"selectedMember\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_MEMBER\"}})],1)])],2)],1)])]):_vm._e(),_c('hr'),(_vm.selectedTeam && (_vm.selectedGroup || _vm.selectedMember))?[_c('b-form-group',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('label',[_vm._v(\" Invoice amount (external rate) \"),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\",value:('Tooltip?'),expression:\"'Tooltip?'\"}],staticClass:\"icon-info\"})])]),_c('div',{staticClass:\"col-12\"},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",class:{ 'is-invalid': !_vm.isTransferValid.amount },attrs:{\"disabled\":_vm.isRequestReceiver || _vm.readonly,\"output-dec-seperator\":\",\",\"convert-on\":\"input\"},on:{\"keyup\":_vm.amountChange},nativeOn:{\"focus\":function($event){_vm.externalAmountIsDirty = true;\n _vm.ecoAmountIsDirty = false;},\"blur\":function($event){_vm.externalAmountIsDirty = false}},model:{value:(_vm.transfer.amount),callback:function ($$v) {_vm.$set(_vm.transfer, \"amount\", $$v)},expression:\"transfer.amount\"}})],1)],1)])]),(!_vm.applyMissingAttributions)?_c('b-form-group',[_c('label',[_vm._v(\" Invoice amount (ecosystem rate) \"),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\",value:('Tooltip?'),expression:\"'Tooltip?'\"}],staticClass:\"icon-info\"})]),_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('prd-numeric-input',{staticClass:\"form-control form-control-sm\",class:{ 'is-invalid': !_vm.isTransferValid.internalAmount },attrs:{\"disabled\":_vm.isRequestReceiver || _vm.readonly,\"output-dec-seperator\":\",\",\"convert-on\":\"input\"},on:{\"keyup\":_vm.amountChange},nativeOn:{\"focus\":function($event){_vm.ecoAmountIsDirty = true;\n _vm.externalAmountIsDirty = false;},\"blur\":function($event){_vm.ecoAmountIsDirty = false}},model:{value:(_vm.transfer.internalAmount),callback:function ($$v) {_vm.$set(_vm.transfer, \"internalAmount\", $$v)},expression:\"transfer.internalAmount\"}})],1)],1):_vm._e(),_c('b-form-group',{attrs:{\"label\":\"Description\"}},[_c('b-form-textarea',{class:{ 'is-invalid': !_vm.isTransferValid.reason },attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.transfer.reason),callback:function ($$v) {_vm.$set(_vm.transfer, \"reason\", $$v)},expression:\"transfer.reason\"}})],1)]:_vm._e(),(_vm.selectedGroup)?_c('b-form-group',{staticClass:\"mb-0\",attrs:{\"label\":'Recipients',\"disabled\":_vm.transferRequest != null}},[(_vm.groupLeadName)?_c('b-form-checkbox',{attrs:{\"checked\":\"true\",\"disabled\":true}},[_vm._v(_vm._s(_vm.groupLeadName)+\" (Group lead)\")]):_vm._e(),_c('b-form-checkbox-group',{attrs:{\"id\":\"recipients\",\"options\":_vm.receipientsOptions,\"name\":\"recipients\",\"stacked\":\"\",\"disabled\":_vm.readonly},model:{value:(_vm.selectedRecipients),callback:function ($$v) {_vm.selectedRecipients=$$v},expression:\"selectedRecipients\"}})],1):_vm._e()],2),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[(_vm.applyMissingAttributions)?_c('p',{staticClass:\"mb-0 text-info d-inline text-left mr-2\"},[_c('span',{staticClass:\"k-icon k-i-info\"}),_vm._v(\" Missing attributions will be applied on this transfer. \")]):_vm._e(),(!_vm.transferRequest)?_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"action\":_vm.sendRequest,\"translate-key\":\"SEND_REQUEST\"}}):_vm._e(),(_vm.transferRequest && _vm.transferRequest.status === 'New')?[(_vm.isRequestReceiver)?[(_vm.hasReceiverRights)?[_c('prd-translate-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"warning\",\"action\":_vm.rejectRequest,\"translate-key\":\"REJECT_REQUEST\"}}),_c('prd-translate-button',{attrs:{\"variant\":\"success\",\"action\":_vm.acceptRequest,\"translate-key\":\"ACCEPT_REQUEST\"}})]:_vm._e()]:[(_vm.hasSenderRights)?[_c('prd-translate-button',{attrs:{\"variant\":\"warning\",\"action\":_vm.withdrawRequest,\"translate-key\":\"WITHDRAW_REQUEST\"}}),_c('prd-translate-button',{staticClass:\"ml-2\",attrs:{\"variant\":\"success\",\"action\":_vm.updateRequest,\"translate-key\":\"UPDATE_REQUEST\"}})]:_vm._e()]]:_vm._e()],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport BaseModal from './BaseModal';\r\n// import DistributedInvoice from '@/models/DistributedInvoice';\r\n// import { InvoiceType } from '@/models/InvoiceType';\r\nimport {\r\n periodFilterHelper,\r\n transferService,\r\n teamHelper,\r\n teamService,\r\n groupHelper,\r\n attributionService,\r\n financeAccountService,\r\n personService,\r\n loginHelper,\r\n roleHelper,\r\n} from '@/main';\r\n// import Group from '@/models/Group';\r\n// import moment from 'moment';\r\nimport Transfer from '@/models/Transfer';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\nimport to from 'await-to-js';\r\nimport Group from '@/models/Group';\r\nimport { Person } from '@/models/Person';\r\nimport { AttributionType } from '@/models/AttributionType';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport TransferRequest from '@/models/Finance/TransferRequest';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport Team from '@/models/Team';\r\nimport { Member } from '@/models/Member';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { profileModule } from '@/store/modules/profile';\r\n\r\n@Component\r\nexport default class TransferRequestModalComponent extends BaseModal {\r\n @Prop({ default: () => 'Create a transfer' }) public title: string;\r\n @Prop({ default: () => new Group() }) public group: Group;\r\n @Prop({ default: () => [] }) public receivingAccounts: FinanceAccount[];\r\n @Prop({ default: () => null }) public transferRequest: TransferRequest;\r\n @Prop({ type: Boolean }) public readonly: boolean;\r\n\r\n public applyMissingAttributions: boolean = false;\r\n public transfer: Transfer = new Transfer({\r\n includeMissingAttributions: this.applyMissingAttributions,\r\n invoiceType: this.applyMissingAttributions ? InvoiceType.Income : InvoiceType.InternalIncome,\r\n });\r\n public editMode: boolean = false;\r\n public externalAmountIsDirty: boolean = false;\r\n public ecoAmountIsDirty: boolean = false;\r\n public editIsLoading: boolean = false;\r\n\r\n public receivingTeams: Team[] = [];\r\n public teams: Team[] = [];\r\n public memberAccounts: FinanceAccount[] = [];\r\n public groupAccounts: FinanceAccount[] = [];\r\n public team: any = null;\r\n public selectedTeam: any = null;\r\n public selectedGroup: any = null;\r\n public selectedMember: any = null;\r\n\r\n public selectedRecipients: any = [];\r\n public groupLeadName: string = '';\r\n public isExpense: boolean = false;\r\n public recurring: boolean = null;\r\n public acceptTitle: string = '';\r\n\r\n public attributionsPercentage: number = 0;\r\n\r\n public currentUserId = profileModule.brightProfile.personId;\r\n\r\n get isRequestReceiver(): boolean {\r\n return this.transferRequest && this.transferRequest.receiverGroup === this.group.groupId;\r\n }\r\n\r\n get isRequestSender(): boolean {\r\n return this.transferRequest && this.transferRequest.senderGroup === this.group.groupId;\r\n }\r\n\r\n get isRecipient(): boolean {\r\n return this.transferRequest && this.transferRequest.recipients.find((x) => x.personId === loginHelper.getUser().personId);\r\n }\r\n\r\n get hasReceiverRights(): boolean {\r\n let group = null;\r\n const team = this.teams.find((x) => x.teamId === this.transferRequest.transfer.senderTeam.teamId);\r\n if (team) {\r\n group = team.groups.find((x) => x.groupId === this.transferRequest.receiverGroup);\r\n }\r\n\r\n if (roleHelper.isAccountant() || roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee() || (group && roleHelper.isGroupLead(group))) {\r\n return true;\r\n }\r\n\r\n if (this.isRecipient) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n get hasSenderRights(): boolean {\r\n const team = this.teams.find((x) => x.teamId === this.transferRequest.transfer.receiverTeam.teamId);\r\n const group = team.groups.find((x) => x.groupId === this.transferRequest.receiverGroup);\r\n\r\n if (roleHelper.isAccountant() || roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee() || roleHelper.isGroupLead(group)) {\r\n return true;\r\n }\r\n\r\n if (this.isRecipient) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public isTransferValid: any = {\r\n amount: true,\r\n sender: true,\r\n receiver: true,\r\n reason: true,\r\n internalAmount: true,\r\n team: true,\r\n };\r\n\r\n private receipientsOptions: any[] = [];\r\n\r\n public async mounted() {\r\n this.teams = await teamService.getTeams();\r\n this.transfer.group = this.group.groupId;\r\n this.transfer.receiver = await financeAccountService.getGroupAccount(\r\n teamHelper.currentTeam.id,\r\n this.group.groupId,\r\n AccountType.GroupIncome,\r\n periodModule.selectedPeriod,\r\n );\r\n\r\n this.transfer.period = periodFilterHelper.getSelectedPeriodObject();\r\n\r\n if (this.transferRequest && this.transferRequest.transferRequestId) {\r\n await this.initRequest();\r\n }\r\n\r\n this.attributionsPercentage = 0;\r\n const groupAttributions = await this.getGroupAttributions(teamHelper.getTeamId(), this.group.groupId);\r\n groupAttributions.forEach((attr) => {\r\n this.attributionsPercentage += attr.percentage;\r\n });\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async initRequest() {\r\n this.isLoading = true;\r\n if (this.isRequestSender) {\r\n this.selectedTeam = this.transferRequest.transfer.senderTeam.teamId;\r\n await this.teamChanged();\r\n this.selectedGroup = this.transferRequest.receiverGroup;\r\n await this.groupChanged();\r\n } else {\r\n this.selectedTeam = this.transferRequest.transfer.receiverTeam.teamId;\r\n await this.teamChanged();\r\n this.selectedGroup = this.transferRequest.senderGroup;\r\n await this.groupChanged();\r\n }\r\n\r\n this.transfer = Object.assign(this.transfer, this.transferRequest.transfer);\r\n\r\n this.selectedRecipients = this.transferRequest.recipients.map((x) => x.personId);\r\n\r\n if (!this.applyMissingAttributions) {\r\n this.ecoAmountIsDirty = true;\r\n this.amountChange({ target: { value: this.transfer.amount } });\r\n this.transfer.internalAmount = this.calculateTariff(this.transfer.amount, true);\r\n this.ecoAmountIsDirty = false;\r\n }\r\n\r\n const team = this.teams.find((x) => x.teamId === this.selectedTeam);\r\n const group = team.groups.find((x) => x.groupId === this.selectedGroup);\r\n const person = await personService.getPerson(this.transferRequest.initiator, periodModule.selectedPeriod);\r\n\r\n if (!this.isRequestSender) {\r\n this.acceptTitle = `Accept transfer request from ${team.name} - ${group.name} (${person.getFullName()})`;\r\n } else {\r\n this.acceptTitle = `Transfer request details`;\r\n }\r\n this.isLoading = false;\r\n }\r\n\r\n public optionListTeams() {\r\n const list = this.teams.map((team: Team) => {\r\n return { value: team.teamId, text: team.name };\r\n });\r\n\r\n return list;\r\n }\r\n\r\n public optionListGroups() {\r\n return this.groupAccounts\r\n .filter((x) => x.relatedEntityId !== this.group.groupId)\r\n .map((group: FinanceAccount) => {\r\n return { value: group.relatedEntityId, text: group.name };\r\n });\r\n }\r\n\r\n public async teamChanged() {\r\n const team = this.teams.find((x) => x.teamId === this.selectedTeam);\r\n // this.memberAccounts = await financeAccountService.getTeamAccounts(AccountType.Person, team.key, periodModule.selectedPeriod);\r\n this.groupAccounts = await financeAccountService.getTeamAccounts(AccountType.GroupSavings, team.teamId, periodModule.selectedPeriod);\r\n this.selectedGroup = this.selectedMember = null;\r\n this.selectedRecipients = [];\r\n }\r\n\r\n public getGroupLeadName() {\r\n const team = this.teams.find((x) => x.teamId === this.selectedTeam);\r\n const group = team.groups.find((x) => x.groupId === this.selectedGroup);\r\n if (group) {\r\n return group.groupLead.name;\r\n }\r\n }\r\n\r\n public amountChange(a) {\r\n let val = a.target.value;\r\n // this only works cuz output of prd-numeric-input is ,\r\n if (isNaN(val)) {\r\n val = parseFloat(val.replace(',', '.').toString());\r\n }\r\n if (this.ecoAmountIsDirty) {\r\n this.transfer.amount = this.calculateTariff(val, false);\r\n }\r\n\r\n if (this.externalAmountIsDirty) {\r\n this.transfer.internalAmount = this.calculateTariff(val);\r\n }\r\n }\r\n\r\n public calculateTariff(amount: number, isExternal: boolean = true) {\r\n let result = 0;\r\n\r\n if (isExternal) {\r\n result = amount * (1 - this.attributionsPercentage / 100);\r\n } else {\r\n result = amount / (1 - this.attributionsPercentage / 100);\r\n }\r\n return parseFloat(result.toFixed(2));\r\n }\r\n\r\n public async groupChanged() {\r\n this.receipientsOptions = [];\r\n this.selectedRecipients = [];\r\n const team = this.teams.find((x) => x.teamId === this.selectedTeam);\r\n const group = team.groups.find((x) => x.groupId === this.selectedGroup);\r\n if (group) {\r\n const apiGroup = await groupHelper.getGroup(this.isRequestReceiver ? this.group.groupId : this.selectedGroup);\r\n const list = apiGroup.members.map((member: Member) => {\r\n if (apiGroup.groupLead && member.memberId === apiGroup.groupLead.memberId) {\r\n return;\r\n }\r\n\r\n let parts = [member.firstName, member.insertion, member.lastName];\r\n\r\n parts = parts.filter((value) => {\r\n return !!value;\r\n });\r\n\r\n return { value: member.memberId, text: parts.join(' ') };\r\n });\r\n this.receipientsOptions.push(...list.filter((x) => x && x.value));\r\n\r\n if (apiGroup.groupLead) {\r\n this.selectedRecipients.push(apiGroup.groupLead.memberId);\r\n this.groupLeadName = new Person(apiGroup.groupLead).getFullName();\r\n } else {\r\n this.groupLeadName = '';\r\n }\r\n\r\n if (this.transferRequest) {\r\n const settings = await this.getAttributionsSettings(!this.isRequestSender ? this.group.groupId : this.selectedGroup);\r\n this.applyMissingAttributions = settings.applyMissingAttributionsOnTransfer;\r\n\r\n this.attributionsPercentage = 0;\r\n const groupAttributions = await this.getGroupAttributions(\r\n this.isRequestSender ? teamHelper.getTeamId() : this.selectedTeam,\r\n this.isRequestSender ? this.group.groupId : this.selectedGroup,\r\n );\r\n groupAttributions.forEach((attr) => {\r\n this.attributionsPercentage += attr.percentage;\r\n });\r\n\r\n this.transfer.includeMissingAttributions = this.applyMissingAttributions;\r\n this.transfer.invoiceType = this.applyMissingAttributions ? InvoiceType.Income : InvoiceType.InternalIncome;\r\n } else {\r\n const settings = await this.getAttributionsSettings(this.selectedGroup);\r\n this.applyMissingAttributions = settings.applyMissingAttributionsOnTransfer;\r\n\r\n this.transfer.includeMissingAttributions = this.applyMissingAttributions;\r\n this.transfer.invoiceType = this.applyMissingAttributions ? InvoiceType.Income : InvoiceType.InternalIncome;\r\n }\r\n\r\n this.transfer.sender = this.groupAccounts.find((x) => x.relatedEntityId === this.selectedGroup);\r\n }\r\n }\r\n\r\n public async getGroupAttributions(teamId: number, groupId: number) {\r\n const [err, response] = await to(\r\n attributionService.getAttributions(AttributionType.GroupAttribution, teamId, periodModule.selectedPeriod, groupId),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load group attributions', null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async memberChanged() {\r\n // do stuff\r\n }\r\n\r\n public optionListMembers() {\r\n return this.memberAccounts.map((member: FinanceAccount) => {\r\n return { value: member.relatedEntityId, text: member.name };\r\n });\r\n }\r\n\r\n public async onHide() {\r\n this.transfer = new Transfer({\r\n includeMissingAttributions: this.applyMissingAttributions,\r\n invoiceType: this.applyMissingAttributions ? InvoiceType.Income : InvoiceType.InternalIncome,\r\n });\r\n\r\n this.selectedTeam = this.selectedMember = this.selectedGroup = null;\r\n this.selectedRecipients = [];\r\n\r\n this.attributionsPercentage = 0;\r\n const groupAttributions = await this.getGroupAttributions(teamHelper.getTeamId(), this.group.groupId);\r\n groupAttributions.forEach((attr) => {\r\n this.attributionsPercentage += attr.percentage;\r\n });\r\n }\r\n\r\n public async sendRequest() {\r\n if (!this.validateTransferRequest()) {\r\n return;\r\n }\r\n\r\n if (this.selectedRecipients.length === 0) {\r\n this.showValidationErrors(['Select at least one recipient']);\r\n return;\r\n }\r\n\r\n this.showPending('TRANSFER_REQUEST_PENDING');\r\n\r\n if (!this.transfer.receiver || this.transfer.receiver.accountId === 0) {\r\n this.transfer.receiver = await financeAccountService.getGroupAccount(\r\n teamHelper.currentTeam.id,\r\n this.group.groupId,\r\n AccountType.GroupIncome,\r\n periodModule.selectedPeriod,\r\n );\r\n }\r\n\r\n let amount = this.transfer.internalAmount;\r\n if (this.applyMissingAttributions) {\r\n amount = this.transfer.amount;\r\n }\r\n\r\n if (!this.transfer.group) {\r\n this.transfer.group = this.group.groupId;\r\n }\r\n\r\n this.transfer.senderTeam = this.teams.find((x) => x.teamId === this.selectedTeam);\r\n this.transfer.receiverTeam = this.teams.find((x) => x.teamId === teamHelper.getTeamId());\r\n\r\n await transferService.createTransferRequest({ transfer: this.transfer, recipients: this.selectedRecipients }, amount, teamHelper.getTeamId());\r\n this.$emit('reload-transfer-requests');\r\n this.hide();\r\n }\r\n\r\n public async updateRequest() {\r\n if (!this.validateTransferRequest()) {\r\n return;\r\n }\r\n\r\n let amount = this.transfer.internalAmount;\r\n if (this.applyMissingAttributions) {\r\n amount = this.transfer.amount;\r\n }\r\n\r\n const model = {\r\n transfer: this.transferRequest.transfer,\r\n senderGroup: this.transferRequest.senderGroup,\r\n receiverGroup: this.transferRequest.receiverGroup,\r\n initiator: this.transferRequest.initiator,\r\n transferRequestId: this.transferRequest.transferRequestId,\r\n recipients: this.transferRequest.recipients.map((x) => x.personId),\r\n };\r\n\r\n model.transfer.amount = amount;\r\n\r\n const success = await transferService.updateTransferRequest(model, teamHelper.getTeamId());\r\n if (success) {\r\n this.$emit('reload-transfer-requests');\r\n }\r\n }\r\n\r\n public async acceptRequest(transferRequestId?: number) {\r\n const trId = transferRequestId ? transferRequestId : this.transferRequest.transferRequestId;\r\n const success = await transferService.acceptTransferRequest(trId);\r\n if (success) {\r\n this.$emit('transfer-request-status-changed', { transferRequestId: trId, accepted: true });\r\n }\r\n }\r\n\r\n public async withdrawRequest(transferRequestId?: number) {\r\n const trId = transferRequestId ? transferRequestId : this.transferRequest.transferRequestId;\r\n const success = await transferService.withdrawRequest(trId);\r\n if (success) {\r\n this.$emit('transfer-request-status-changed', { transferRequestId: trId, accepted: false });\r\n }\r\n }\r\n\r\n public async rejectRequest(transferRequestId?: number) {\r\n const trId = transferRequestId ? transferRequestId : this.transferRequest.transferRequestId;\r\n const success = await transferService.rejectTransferRequest(trId);\r\n if (success) {\r\n this.$emit('transfer-request-status-changed', { transferRequestId: trId, accepted: false });\r\n }\r\n }\r\n\r\n public validateTransferRequest(): boolean {\r\n const errors = [];\r\n // const minLengthReason = 10;\r\n const transfer = this.transfer;\r\n\r\n this.isTransferValid.amount = true;\r\n this.isTransferValid.sender = true;\r\n this.isTransferValid.receiver = true;\r\n this.isTransferValid.reason = true;\r\n this.isTransferValid.internalAmount = true;\r\n this.isTransferValid.team = true;\r\n\r\n if (transfer.receiverTeam == null) {\r\n this.isTransferValid.team = false;\r\n errors.push('Select a team.');\r\n }\r\n\r\n if (transfer.senderId == null) {\r\n this.isTransferValid.sender = false;\r\n errors.push('Select a sender.');\r\n }\r\n\r\n if (transfer.amount == null) {\r\n this.isTransferValid.amount = false;\r\n errors.push('Fill in a valid amount');\r\n }\r\n\r\n if (transfer.internalAmount == null) {\r\n this.isTransferValid.internalAmount = false;\r\n errors.push('Fill in a valid amount');\r\n }\r\n\r\n if (errors.length > 0) {\r\n this.showValidationErrors(errors);\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public async getAttributionsSettings(groupId: number) {\r\n const [err, response] = await to(attributionService.getAttributionSetting(groupId));\r\n if (err) {\r\n this.showFailedResponse('Failed to load attribution settings', null);\r\n }\r\n return response.data;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./transfer-request-modal.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./transfer-request-modal.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./transfer-request-modal.vue?vue&type=template&id=ea4c1588&\"\nimport script from \"./transfer-request-modal.ts?vue&type=script&lang=js&\"\nexport * from \"./transfer-request-modal.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('prd-navigation-bar',[_c('navigation-team',{key:_vm.$route.fullPath}),_c('navigation-breadcrumb',{staticClass:\"d-none d-sm-flex align-items-center\"}),_c('navigation-profile',{attrs:{\"slot\":\"right\"},slot:\"right\"}),_c('period-filter',{attrs:{\"slot\":\"right\"},slot:\"right\"}),_c('b-button',{staticClass:\"btn-with-icon notification-button\",attrs:{\"slot\":\"right\",\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$refs.notifications.show()}},slot:\"right\"},[_c('i',{staticClass:\"icon-bell\"}),(_vm.hasUnreadNotifications())?_c('span',{staticClass:\"alert-badge\"}):_vm._e()]),_c('bright-notifications',{ref:\"notifications\",attrs:{\"title\":\"Notifications\",\"notificationService\":_vm.notificationService}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { VuexModule, Module, Mutation, Action } from 'vuex-class-modules';\r\nimport store from '../index';\r\n\r\n@Module\r\nclass NotificationModule extends VuexModule {\r\n private _visible: boolean = false;\r\n\r\n public get visible() {\r\n return this._visible;\r\n }\r\n\r\n @Action\r\n public toggleVisibility() {\r\n this.SET_VISIBILITY(!this.visible);\r\n }\r\n\r\n @Mutation\r\n private SET_VISIBILITY(payload: boolean) {\r\n this._visible = payload;\r\n }\r\n}\r\n\r\nexport const notificationModule = new NotificationModule({ store, name: 'notification' });\r\n","import Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\nimport { navigationHelper, notificationsService, transferService } from '@/main';\r\nimport { notificationModule } from '@/store/modules/notification';\r\nimport Notification from '@/models/Notification/Notification';\r\nimport { NotificationsService } from '@/services/notificationsService';\r\n\r\n@Component\r\nexport default class BarComponent extends Vue {\r\n public isLoading: boolean = true;\r\n public notificationService = null;\r\n public notificationsService: NotificationsService = null;\r\n\r\n public $refs!: {\r\n notifications;\r\n };\r\n\r\n public hasUnreadNotifications() {\r\n return this.$refs.notifications && this.$refs.notifications.hasUnreadNotifications();\r\n }\r\n\r\n public toggleNavMenu() {\r\n navigationHelper.toggleNavigation();\r\n }\r\n\r\n public toggleNotification() {\r\n notificationModule.toggleVisibility();\r\n }\r\n\r\n public async mounted() {\r\n this.$root.$off('notification-approve');\r\n this.$root.$on('notification-approve', this.approve);\r\n this.$root.$off('notification-deny');\r\n this.$root.$on('notification-deny', this.deny);\r\n\r\n this.notificationService = notificationsService;\r\n this.$nextTick(this.$refs.notifications.fetch);\r\n this.isLoading = false;\r\n }\r\n\r\n public async approve(notification: Notification) {\r\n if (notification.notificationTemplate === 'transfer-request-sent') {\r\n await transferService.acceptTransferRequest(parseInt(notification.externalIdentifier));\r\n }\r\n }\r\n\r\n public async deny(notification: Notification) {\r\n if (notification.notificationTemplate === 'transfer-request-sent') {\r\n await transferService.rejectTransferRequest(parseInt(notification.externalIdentifier));\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./bar.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./bar.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./bar.vue?vue&type=template&id=10248673&\"\nimport script from \"./bar.ts?vue&type=script&lang=js&\"\nexport * from \"./bar.ts?vue&type=script&lang=js&\"\nimport style0 from \"./bar.vue?vue&type=style&index=0&id=10248673&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('nav',[_c('b-dd',{staticClass:\"p-0 mr-2 btn-with-icon bg-white\",attrs:{\"variant\":_vm.variant,\"size\":\"sm\",\"no-caret\":\"\",\"left\":\"\",\"split\":\"\"}},[_c('template',{slot:\"button-content\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":_vm.scope}})],1),_c('b-dd-item',{on:{\"click\":function($event){return _vm.me()}}},[_c('span',{staticClass:\"icon-user\"}),_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ME'),expression:\"'ME'\"}]})]),_c('b-dd-item',{on:{\"click\":function($event){return _vm.team()}}},[_c('span',{staticClass:\"icon-users\"}),_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM'),expression:\"'TEAM'\"}]})]),_c('b-dd-item',{on:{\"click\":function($event){return _vm.ecology()}}},[_c('span',{staticClass:\"icon-box\"}),_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ECOLOGY'),expression:\"'ECOLOGY'\"}]})]),_c('b-dd-item',{on:{\"click\":function($event){return _vm.settings()}}},[_c('span',{staticClass:\"icon-settings\"}),_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS'),expression:\"'SETTINGS'\"}]})])],2),(_vm.breadcrumb)?_c('b-dd',{staticClass:\"p-0 btn-with-icon bg-white\",attrs:{\"variant\":_vm.variant,\"size\":\"sm\",\"no-caret\":\"\",\"left\":\"\",\"split\":\"\",\"split-href\":_vm.splitHref}},[_c('template',{slot:\"button-content\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":_vm.breadcrumb.text}})],1),_vm._l((_vm.breadcrumbItems),function(route,i){return _c('router-link',{directives:[{name:\"translate\",rawName:\"v-translate\",value:(route.text),expression:\"route.text\"}],key:'br_' + i + '_' + route.name,staticClass:\"dropdown-item\",attrs:{\"to\":route.route}})})],2):_vm._e(),(_vm.$root.navigationHelper.isGroup)?_c('span',{staticClass:\"ml-2\"},[_vm._v(\" \"+_vm._s(_vm.getGroupKey())+\" \")]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\nimport { ecosystemHelper, navigationHelper, roleHelper, teamHelper } from '@/main';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TopBarBreadcrumb extends Vue {\r\n public getCurrentTeamName() {\r\n const team = teamHelper.currentTeam;\r\n return team ? team.name : '';\r\n }\r\n\r\n public getGroupKey() {\r\n return this.$route.params.groupKey;\r\n }\r\n\r\n public getRouteObject() {\r\n const tab =\r\n this.$route.meta.section === 'directory' ? 'groups' : this.$route.meta.section === 'finances' ? 'group-overview' : 'group-results';\r\n\r\n return {\r\n name: navigationHelper.scope + '-' + navigationHelper.section,\r\n params: {\r\n ecosystemId: this.$route.params.ecosystemId,\r\n ecosystemKey: this.$route.params.ecosystemKey,\r\n teamId: this.$route.params.teamId,\r\n teamKey: this.$route.params.teamKey,\r\n tab,\r\n period: this.$route.params.period,\r\n },\r\n };\r\n }\r\n\r\n public toggleNavMenu() {\r\n navigationHelper.toggleNavigation();\r\n }\r\n\r\n public me() {\r\n return this.$router.push({\r\n name: 'me-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'groups',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n public team() {\r\n return this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'groups',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n public ecology() {\r\n return this.$router.push({\r\n name: 'ecosystem-overview',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n public settings() {\r\n return this.$router.push({ name: 'settings-base' });\r\n }\r\n\r\n public get variant() {\r\n if (this.$route.meta.scope === 'ecosystem') {\r\n return 'success-light';\r\n }\r\n if (this.$route.path.indexOf('/team/') > -1) {\r\n return 'warning-light';\r\n }\r\n if (this.$route.meta.scope === 'settings') {\r\n return 'dark-light';\r\n }\r\n return 'primary-light';\r\n }\r\n\r\n public get scope() {\r\n if (this.$route.meta.scope === 'ecosystem') {\r\n return 'ECOLOGY';\r\n }\r\n if (this.$route.path.indexOf('/team/') > -1) {\r\n return 'TEAM';\r\n }\r\n if (this.$route.meta.scope === 'settings') {\r\n return 'SETTINGS';\r\n }\r\n return 'ME';\r\n }\r\n\r\n public get breadcrumb() {\r\n return this.$route.meta && this.$route.meta.breadcrumb ? this.$route.meta.breadcrumb : {};\r\n }\r\n\r\n public get breadcrumbItems() {\r\n const items = [];\r\n if (this.breadcrumb && this.breadcrumb.items) {\r\n this.breadcrumb.items.forEach((routeName) => {\r\n const resolved = this.$router.resolve({ name: routeName, params: this.$route.params });\r\n if (resolved && resolved.route.meta && resolved.route.meta.breadcrumb) {\r\n if (routeName === 'team-insights' && !roleHelper.isSiteAdmin()) {\r\n return;\r\n }\r\n\r\n items.push({\r\n text: resolved.route.meta.breadcrumb.text,\r\n route: resolved.route,\r\n path: resolved.href,\r\n });\r\n }\r\n });\r\n }\r\n\r\n return items;\r\n }\r\n\r\n public get splitHref() {\r\n if (!this.breadcrumb.split) {\r\n return '';\r\n }\r\n\r\n const route = this.$router.resolve({\r\n name: this.breadcrumb.split,\r\n params: {\r\n ecosystemId: this.$route.params.ecosystemId,\r\n ecosystemKey: this.$route.params.ecosystemKey,\r\n period: this.$route.params.period,\r\n teamId: this.$route.params.teamId,\r\n },\r\n });\r\n return route.href;\r\n }\r\n\r\n public goTo(resolvedRoute) {\r\n return this.$router.push(resolvedRoute);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./breadcrumb.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./breadcrumb.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./breadcrumb.vue?vue&type=template&id=6fca1ed2&\"\nimport script from \"./breadcrumb.ts?vue&type=script&lang=js&\"\nexport * from \"./breadcrumb.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('section',[_c('b-dd',{staticClass:\"p-0 btn-with-icon\",attrs:{\"size\":\"sm\",\"no-caret\":\"\",\"right\":\"\"}},[_c('template',{slot:\"button-content\"},[_c('i',{staticClass:\"icon-user\"}),_c('span',{staticClass:\"d-none d-md-inline-block\"},[_vm._v(_vm._s(_vm.currentUser))]),_c('i',{staticClass:\"icon-chevron-down\"})]),_c('b-dd-text',[_vm._v(_vm._s(_vm.currentUser))]),(_vm.$root.inEditMode)?_c('div',{staticClass:\"dropdown-item\"},[_c('prd-translate-text-inline',{attrs:{\"translate-key\":\"PROFILE\"}})],1):_c('router-link',{staticClass:\"dropdown-item\",attrs:{\"to\":{ name:'me-profile', params: _vm.profileParams }}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('PROFILE'),expression:\"'PROFILE'\"}]})]),(_vm.$root.roleHelper.isSiteAdmin())?_c('b-dd-item',{attrs:{\"active\":_vm.editModeActive},on:{\"click\":_vm.toggleEditMode}},[(_vm.editModeActive)?_c('span',[_vm._v(\"Turn edit mode off\")]):_c('span',[_vm._v(\"Turn edit mode on\")])]):_vm._e(),(_vm.profile.ecosystemMemberships.length > 1)?_c('b-dd-item',{on:{\"click\":_vm.openEcosystemSwitcherModal}},[_c('span',[_vm._v(\"Swith to another ecosystem\")])]):_vm._e(),_c('b-dd-item',{on:{\"click\":function($event){return _vm.logOut()}}},[_vm._v(\"Log out\")]),_c('b-dd-divider'),_c('b-dd-text',[_vm._v(\"Language\")]),_c('div',{staticClass:\"btn-group mx-3\"},_vm._l((_vm.languages),function(lang,index){return _c('b-button',{key:'lang' + index,attrs:{\"variant\":lang == _vm.activeLanguage ? 'primary' : 'secondary',\"size\":\"sm\"},on:{\"click\":function($event){return _vm.setLanguage(lang)}}},[_vm._v(\" \"+_vm._s(lang)+\" \")])}),1)],2),_c('ecosystem-switcher-modal',{ref:\"ecosystemSwitcherModal\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport { loginHelper, teamHelper, eventBus, ecosystemHelper, $router } from '@/main';\r\nimport { Route } from 'vue-router';\r\nimport PageRender from '@/models/PageRender';\r\nimport { Person } from '@/models/Person';\r\nimport { translateModule } from '@/store/modules/translate';\r\nimport { Membership } from '@/models/Interfaces';\r\nimport EcosystemSwitcherModalComponent from '../modals/ecosystem-switcher-modal';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TopBarTeamSwitch extends PageRender {\r\n public key: number = 0;\r\n public profile: Person = null;\r\n\r\n public $refs!: {\r\n ecosystemSwitcherModal: EcosystemSwitcherModalComponent;\r\n };\r\n\r\n public mounted() {\r\n this.profile = loginHelper.getUser();\r\n eventBus.$on('onPeriodChanged', this.updateTeamSwith);\r\n }\r\n\r\n public updateTeamSwith() {\r\n const profile = loginHelper.getUser();\r\n this.profile.teamMemberships = profile.teamMemberships;\r\n this.profile.ecosystemMemberships = profile.ecosystemMemberships;\r\n this.key++;\r\n }\r\n\r\n public get currentUser(): string {\r\n this.profile = loginHelper.getUser();\r\n if (this.profile) {\r\n let parts = [this.profile.firstName, this.profile.insertion, this.profile.lastName];\r\n parts = parts.filter((value) => !!value);\r\n return parts.join(' ');\r\n }\r\n\r\n return '';\r\n }\r\n\r\n public get currentTeam() {\r\n this.profile = loginHelper.getUser();\r\n if (this.profile && this.profile.teamMemberships) {\r\n return this.profile.teamMemberships.find((membership: Membership) => {\r\n return membership.id === teamHelper.currentTeamId;\r\n });\r\n }\r\n\r\n return {} as Membership;\r\n }\r\n\r\n public async switchTo(team: Membership): Promise {\r\n teamHelper.setTeam(team);\r\n await periodModule.init();\r\n const route = this.$route;\r\n const params = Object.assign({}, route.params);\r\n params.teamId = teamHelper.currentTeam.id.toString();\r\n params.teamKey = teamHelper.currentTeam.key;\r\n if (typeof route.params.groupKey !== 'undefined') {\r\n const sub =\r\n this.$route.fullPath.indexOf('finance') > -1\r\n ? 'finances'\r\n : this.$route.fullPath.indexOf('insights') > -1\r\n ? 'insights'\r\n : 'directory';\r\n const tab =\r\n this.$route.fullPath.indexOf('finance') > -1\r\n ? 'group-overview'\r\n : this.$route.fullPath.indexOf('insights') > -1\r\n ? 'group-results'\r\n : 'groups';\r\n params.tab = tab;\r\n return this.$router.push({\r\n name: `team-${sub}`,\r\n params,\r\n });\r\n }\r\n return this.$router.push({\r\n name: route.name,\r\n params,\r\n });\r\n }\r\n\r\n public openEcosystemSwitcherModal() {\r\n return this.$refs.ecosystemSwitcherModal.show();\r\n }\r\n public toggleEditMode() {\r\n translateModule.toggleEditMode();\r\n }\r\n\r\n public get editModeActive() {\r\n return translateModule.inEditMode;\r\n }\r\n\r\n public get languages() {\r\n return translateModule.languages;\r\n }\r\n\r\n public get profileParams() {\r\n return {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n id: loginHelper.getUser().personId.toString(),\r\n team: teamHelper.teamParam,\r\n };\r\n }\r\n\r\n public get activeLanguage() {\r\n return translateModule.activeLanguage;\r\n }\r\n\r\n public async setLanguage(lang: string) {\r\n await translateModule.setLanguage(lang);\r\n }\r\n\r\n public async logOut() {\r\n await loginHelper.logOut();\r\n await $router.push({\r\n name: 'login',\r\n params: {\r\n lang: translateModule.activeLanguage,\r\n },\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./profile.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./profile.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./profile.vue?vue&type=template&id=65e1222f&\"\nimport script from \"./profile.ts?vue&type=script&lang=js&\"\nexport * from \"./profile.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isEcoScope)?_c('div',{key:_vm.teamChanged,staticClass:\"team-switch-wrap\"},[(_vm.otherTeams && _vm.otherTeams.length === 1)?_c('span',{staticClass:\"p-2\"},[_c('i',{staticClass:\"icon-users ml-md-2 mr-2\"}),_vm._v(\" \"+_vm._s(_vm.currentTeam().name)+\" \")]):_c('b-dd',{attrs:{\"size\":\"sm\",\"no-caret\":\"\",\"left\":\"\"}},[_c('div',{staticClass:\"nav-team-switch\",attrs:{\"slot\":\"button-content\"},slot:\"button-content\"},[_c('i',{staticClass:\"icon-users ml-md-2\"}),_c('span',{staticClass:\"team-name\"},[_vm._v(\" \"+_vm._s(_vm.currentTeam().name)+\" \")]),_c('i',{staticClass:\"icon-chevron-down\"})]),_c('b-dd-text',[_c('prd-translate-text-inline',{attrs:{\"translate-key\":\"SWITCH_TEAM\"}})],1),_vm._l((_vm.otherTeams),function(team,teamIndex){return _c('b-dd-item',{key:'team_' + teamIndex,attrs:{\"active\":_vm.currentTeam && _vm.currentTeam.name === team.name},on:{\"click\":function($event){return _vm.switchTo(team)}}},[_vm._v(\" \"+_vm._s(team.name)+\" \")])}),(_vm.leftTeams)?_c('b-dd-item',{attrs:{\"disabled\":\"\"}},[_c('hr')]):_vm._e(),_vm._l((_vm.leftTeams),function(team,teamIndex){return _c('b-dd-item',{key:'team_left_' + teamIndex,attrs:{\"active\":_vm.currentTeam && _vm.currentTeam.name === team.name},on:{\"click\":function($event){return _vm.switchTo(team)}}},[_c('span',{staticClass:\"text-muted\"},[_vm._v(_vm._s(team.name))])])})],2)],1):_c('div',{staticClass:\"p-0 team-switch-wrap\",attrs:{\"no-caret\":\"\",\"left\":\"\"}},[_c('div',{staticClass:\"nav-team-switch\"},[_c('i',{staticClass:\"icon-box ml-md-2\"}),_c('span',{staticClass:\"d-none d-md-inline-block team-name\"},[_vm._v(\" \"+_vm._s(_vm.$root.ecosystemHelper.currentEcosystem.name)+\" \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { teamHelper, ecosystemHelper, roleHelper } from '@/main';\r\nimport { Membership } from '@/models/Interfaces';\r\nimport { Route } from 'vue-router';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport moment from 'moment';\r\n\r\n@Component\r\nexport default class NavigationTeam extends Vue {\r\n public isEcoScope: boolean = false;\r\n public teamChanged: number = 1;\r\n\r\n public created() {\r\n this.isEcoScope = this.$route.meta.scope === 'ecosystem';\r\n }\r\n\r\n public updated() {\r\n this.isEcoScope = this.$route.meta.scope === 'ecosystem';\r\n }\r\n\r\n public currentTeam() {\r\n if (profileModule.brightProfile && profileModule.brightProfile.teamMemberships) {\r\n return profileModule.brightProfile.teamMemberships.find((membership: Membership) => {\r\n return membership.key === teamHelper.currentTeam.key;\r\n });\r\n }\r\n\r\n return {} as Membership;\r\n }\r\n\r\n public get otherTeams(): any[] {\r\n if (profileModule.brightProfile && roleHelper.isAccountant()) {\r\n return profileModule.brightProfile.teamMemberships;\r\n }\r\n\r\n if (\r\n !profileModule.brightProfile ||\r\n !profileModule.brightProfile.teamMemberships.filter(\r\n (x) =>\r\n x.ecosystem === ecosystemHelper.currentEcosystem.id &&\r\n x.accessFrom >= periodModule.selectedPeriodObject.periodId &&\r\n (!x.accessUntil || x.accessUntil >= periodModule.selectedPeriodObject.periodId),\r\n )\r\n ) {\r\n return [];\r\n }\r\n\r\n return profileModule.brightProfile.teamMemberships.filter(\r\n (x) =>\r\n x.ecosystem === ecosystemHelper.currentEcosystem.id &&\r\n x.accessFrom <= periodModule.selectedPeriodObject.periodId &&\r\n (!x.accessUntil || x.accessUntil >= periodModule.selectedPeriodObject.periodId),\r\n );\r\n }\r\n\r\n public get leftTeams() {\r\n return profileModule.brightProfile.teamMemberships.filter(\r\n (x) => x.ecosystem === ecosystemHelper.currentEcosystem.id && x.accessUntil < periodModule.selectedPeriodObject.periodId,\r\n );\r\n }\r\n\r\n public async switchTo(team: Membership): Promise {\r\n ecosystemHelper.setEcosystemByEcosystemId(team.ecosystem);\r\n teamHelper.setTeam(team);\r\n\r\n await periodModule.init();\r\n\r\n const route = this.$route;\r\n const params = Object.assign({}, route.params);\r\n params.teamKey = team.key;\r\n params.teamId = team.id.toString();\r\n\r\n const ecosystem = profileModule.brightProfile.ecosystemMemberships.find((x) => x.id === team.ecosystem);\r\n params.ecosystemKey = ecosystem.key;\r\n params.ecosystemId = ecosystem.id.toString();\r\n\r\n if (team.accessUntil && periodModule.selectedPeriodObject.periodId > team.accessUntil) {\r\n const period = periodModule.allPeriods.find((x) => x.periodId === team.accessUntil);\r\n params.period = moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM');\r\n }\r\n\r\n if (typeof route.params.groupKey !== 'undefined') {\r\n const sub =\r\n this.$route.fullPath.indexOf('finance') > -1 ? 'finances' : this.$route.fullPath.indexOf('insights') > -1 ? 'insights' : 'directory';\r\n const tab =\r\n this.$route.fullPath.indexOf('finance') > -1\r\n ? 'group-overview'\r\n : this.$route.fullPath.indexOf('insights') > -1\r\n ? 'group-results'\r\n : 'groups';\r\n\r\n params.tab = tab;\r\n return this.$router.push({\r\n name: `team-${sub}`,\r\n params,\r\n });\r\n }\r\n\r\n this.teamChanged++;\r\n\r\n return this.$router.push({\r\n name: route.name,\r\n params,\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team.vue?vue&type=template&id=815912ce&\"\nimport script from \"./team.ts?vue&type=script&lang=js&\"\nexport * from \"./team.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[_c('transition',{attrs:{\"name\":\"fade-in-from-right\"}},[(_vm.visible)?_c('div',{staticClass:\"prd-notifications\"},[_c('div',{staticClass:\"prd-notifications-header\"},[_c('h5',[_vm._v(_vm._s(_vm.title))]),_c('button',{staticClass:\"btn btn-sm btn-secondary\",on:{\"click\":_vm.fetch}},[_c('i',{staticClass:\"icon-rotate-cw\"})])]),_c('div',{staticClass:\"prd-notifications-body\"},[(_vm.isLoading)?_c('p',[_vm._v(\"Loading notifications\")]):[(_vm.notifications.length == 0)?_c('div',{staticClass:\"prd-notification-general\"},[_c('div',{staticClass:\"prd-notification-indicator done\"},[_c('span',{staticClass:\"k-icon k-i-heart\"})]),_c('div',{staticClass:\"prd-notification-text text-decoration-none text-black\"},[_c('b',[_vm._v(\"All done!\")]),_c('div',[_vm._v(\"No open notifications\")])])]):_vm._l((_vm.notifications),function(item,index){return _c('item',{key:\"notification_\" + index,attrs:{\"notification\":item,\"notification-service\":_vm.notificationService},on:{\"delete\":_vm.deleteNotification}})})]],2),_c('div',{staticClass:\"prd-notifications-lastupdate\"},[_vm._v(\"Last updated: \"+_vm._s(_vm.lastUpdatedText))]),_c('div',{staticClass:\"prd-notifications-footer\"},[_c('button',{staticClass:\"btn btn-sm btn-primary\",on:{\"click\":_vm.readAll}},[_c('strong',[_vm._v(\"Mark all as read\")])])])]):_vm._e()]),_c('toast',{ref:\"toaster\",attrs:{\"notification\":_vm.toastNotification}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.getType(),{tag:\"component\",attrs:{\"notification\":_vm.notification,\"notification-service\":_vm.notificationService},on:{\"delete-notification\":_vm.deleteNotification}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"prd-notification-general\"},[_c('div',{staticClass:\"prd-notification-indicator\",class:{ new: !_vm.handled() }},[_c('span')]),(_vm.notification.deepLink)?_c('div',{staticClass:\"prd-notification-text cursor-pointer text-decoration-none text-black\",on:{\"click\":_vm.openLink}},[_c('b',[_vm._v(_vm._s(_vm.notification.title))]),_c('div',[_vm._v(_vm._s(_vm.notification.subtitle))]),_c('div',{staticClass:\"time\"},[_vm._v(_vm._s(_vm.notification.dateString))])]):_c('div',[_c('b',[_vm._v(_vm._s(_vm.notification.title))]),_c('div',[_vm._v(_vm._s(_vm.notification.subtitle))]),_c('div',{staticClass:\"time\"},[_vm._v(_vm._s(_vm.notification.dateString))])]),_c('div',[_c('div',{staticClass:\"prd-notification-indicator\"},[_c('a',{staticClass:\"delete-button btn btn-sm\",on:{\"click\":_vm.deleteNotification}},[_c('i',{staticClass:\"icon-cancel k-icon\"})])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\nimport Notification from './models/Notification';\r\nimport { INotificationsService } from './models/Interface/INotifcationService';\r\n@Component\r\nexport default class GeneralNotificationsComponent extends Vue {\r\n @Prop({ default: () => null }) public notification: Notification;\r\n @Prop() public notificationService: INotificationsService;\r\n\r\n public handled() {\r\n return this.notification.handled;\r\n }\r\n\r\n public async openLink() {\r\n this.notificationService.markAsHandled(this.notification);\r\n this.notification.handled = true;\r\n\r\n window.open(this.notification.deepLink, '_blank');\r\n }\r\n\r\n public deleteNotification() {\r\n this.$emit('delete-notification', this.notification);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./general.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./general.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./general.vue?vue&type=template&id=5072b256&\"\nimport script from \"./general.ts?vue&type=script&lang=js&\"\nexport * from \"./general.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"prd-notification-general\"},[_c('div',{staticClass:\"prd-notification-indicator\",class:{ new: !_vm.handled() }},[_c('span')]),_c('div',{staticClass:\"prd-notification-text cursor-pointer text-decoration-none text-black\",on:{\"click\":_vm.openLink}},[_c('b',[_vm._v(_vm._s(_vm.notification.title))]),_c('div',{staticClass:\"prd-notification-link\"},[_vm._v(\"Go to transfer request\")]),_c('div',{staticClass:\"time\"},[_vm._v(_vm._s(_vm.notification.dateString))])]),_c('div',{staticClass:\"prd-notification-indicator\"},[_c('a',{staticClass:\"prd-notification-delete-button btn btn-sm\",on:{\"click\":_vm.deleteNotification}},[_c('i',{staticClass:\"icon-cancel k-icon\"})])]),(!_vm.handled() && _vm.isSent())?_c('div',{staticClass:\"prd-notification-actions\"},[_c('a',{staticClass:\"btn btn-sm btn-success rounded-circle mr-2\",on:{\"click\":_vm.approve}},[_c('i',{staticClass:\"icon-check1\"})]),_c('a',{staticClass:\"btn btn-sm btn-warning rounded-circle\",on:{\"click\":_vm.deny}},[_c('i',{staticClass:\"icon-cancel\"})])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\nimport Notification from './models/Notification';\r\nimport { INotificationsService } from './models/Interface/INotifcationService';\r\n\r\n@Component\r\nexport default class TransferSentNotificationsComponent extends Vue {\r\n @Prop({ default: () => null }) public notification: Notification;\r\n @Prop() public notificationService: INotificationsService;\r\n\r\n public handled() {\r\n return this.notification.handled;\r\n }\r\n\r\n public isSent() {\r\n return this.notification.notificationTemplate === 'transfer-request-sent';\r\n }\r\n\r\n public async approve() {\r\n this.$root.$emit('notification-approve', this.notification);\r\n this.notification.handled = true;\r\n }\r\n\r\n public async deny() {\r\n this.$root.$emit('notification-deny', this.notification);\r\n this.notification.handled = true;\r\n }\r\n\r\n public deleteNotification() {\r\n this.$emit('delete-notification', this.notification);\r\n }\r\n\r\n public async openLink() {\r\n this.notificationService.markAsHandled(this.notification);\r\n this.notification.handled = true;\r\n\r\n window.open(this.notification.deepLink, '_blank');\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./transfer.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./transfer.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./transfer.vue?vue&type=template&id=e5429d88&\"\nimport script from \"./transfer.ts?vue&type=script&lang=js&\"\nexport * from \"./transfer.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\nimport General from './general.vue';\r\nimport TransferRequestSent from './transfer.vue';\r\nimport TransferRequestRejected from './transfer.vue';\r\nimport TransferRequestAccepted from './transfer.vue';\r\nimport Notification from './models/Notification';\r\nimport { INotificationsService } from './models/Interface/INotifcationService';\r\n\r\n@Component({\r\n components: {\r\n General,\r\n TransferRequestSent,\r\n TransferRequestRejected,\r\n TransferRequestAccepted,\r\n },\r\n})\r\nexport default class ItemNotificationsComponent extends Vue {\r\n @Prop({ default: () => null }) public notification: Notification;\r\n @Prop() public notificationService: INotificationsService;\r\n\r\n private availableNotificationTypes = ['transfer-request-sent', 'transfer-request-rejected', 'transfers-request-accepted'];\r\n\r\n public mounted() {\r\n this.$off('delete-notification');\r\n this.$on('delete-notification', this.deleteNotification);\r\n }\r\n\r\n public getType() {\r\n if (this.notification.notificationTemplate) {\r\n const template = this.availableNotificationTypes.find((x) => x === this.notification.notificationTemplate);\r\n if (template) {\r\n return template;\r\n }\r\n }\r\n\r\n return 'general';\r\n }\r\n\r\n public deleteNotification(notification: Notification) {\r\n this.$emit('delete', notification);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./item.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./item.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./item.vue?vue&type=template&id=d0fa8f2c&\"\nimport script from \"./item.ts?vue&type=script&lang=js&\"\nexport * from \"./item.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('transition',{attrs:{\"name\":\"fade-in-from-right\"}},[(_vm.visible)?_c('div',{staticClass:\"prd-notification-toast\",on:{\"mouseover\":_vm.cancelHide,\"mouseleave\":_vm.hide}},[(_vm.notification)?_c('item',{attrs:{\"notification\":_vm.notification}}):_c('span',[_vm._v(\"Notification property is empty...\")])],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./toast.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./toast.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./toast.vue?vue&type=template&id=032d3a41&\"\nimport script from \"./toast.vue?vue&type=script&lang=js&\"\nexport * from \"./toast.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 { BFormCheckbox } from 'bootstrap-vue';\r\nimport Item from './item.vue';\r\n// @ts-ignore\r\nimport toast from './toast.vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport Vue from 'vue';\r\nimport Notification from './models/Notification';\r\nimport { INotificationsService } from './models/Interface/INotifcationService';\r\n\r\n@Component({\r\n components: {\r\n BFormCheckbox,\r\n toast,\r\n Item,\r\n },\r\n})\r\nexport default class NotificationsComponent extends Vue {\r\n @Prop() public title: string;\r\n @Prop() public duration: number;\r\n @Prop() public hideTimeout: number;\r\n @Prop() public notificationService: INotificationsService;\r\n\r\n public $refs!: {\r\n toaster;\r\n };\r\n\r\n public canDisturb: boolean = false;\r\n public showToast: boolean = false;\r\n public visible: boolean = false;\r\n public lock: boolean = false;\r\n public isLoading: boolean = true;\r\n public toastNotification: any = {};\r\n public lastUpdated: Date = null;\r\n public lastUpdatedText: string = 'never';\r\n public notifications: Notification[] = [];\r\n\r\n public hasUnreadNotifications() {\r\n return this.notifications.filter((x) => !x.handled).length > 0;\r\n }\r\n\r\n public toast(item) {\r\n if (this.showToast) {\r\n return;\r\n }\r\n this.showToast = true;\r\n this.toastNotification = item;\r\n this.$refs.toaster.show();\r\n this.hideTimeout = setTimeout(() => {\r\n this.showToast = false;\r\n this.$refs.toaster.hide();\r\n }, this.duration);\r\n }\r\n\r\n public show() {\r\n if (!this.visible && !this.lock) {\r\n this.lock = true;\r\n document.addEventListener('click', this.mouseClick);\r\n setTimeout(() => {\r\n this.visible = true;\r\n this.lastUpdatedText = this.getLastUpdatedText();\r\n });\r\n }\r\n }\r\n\r\n public hide() {\r\n document.removeEventListener('click', this.mouseClick);\r\n this.visible = false;\r\n this.$nextTick(() => {\r\n this.lock = false;\r\n });\r\n }\r\n\r\n public mouseClick(e) {\r\n const outside = !this.$el.contains(e.target);\r\n if (outside && this.visible) {\r\n this.hide();\r\n }\r\n }\r\n\r\n public async fetch() {\r\n this.lastUpdated = new Date();\r\n this.lastUpdatedText = this.getLastUpdatedText();\r\n if (this.notificationService) {\r\n const notifications = await this.notificationService.getNotifications();\r\n this.addNotifcations(notifications);\r\n this.$emit('notifications-fetched');\r\n } else {\r\n console.error('There is not fetch action specified');\r\n }\r\n }\r\n\r\n public addNotifcations(notifications: any[]) {\r\n if (!notifications || notifications.length === 0) {\r\n this.isLoading = false;\r\n return;\r\n }\r\n\r\n this.notifications = notifications.map((x) => new Notification(x));\r\n this.isLoading = false;\r\n }\r\n\r\n public readAll() {\r\n this.notifications.forEach(async (not: Notification) => {\r\n this.notificationService.markAsHandled(not);\r\n not.handled = true;\r\n });\r\n }\r\n\r\n public getLastUpdatedText() {\r\n if (this.lastUpdated != null) {\r\n const diff = new Date().getTime() - this.lastUpdated.getTime();\r\n const seconds = Math.ceil(diff / 1000);\r\n const minutes = Math.ceil(seconds / 60);\r\n const hours = Math.ceil(minutes / 60);\r\n\r\n if (seconds < 60) {\r\n return `a few seconds ago`;\r\n }\r\n if (minutes < 60) {\r\n return `${minutes} minutes ago`;\r\n }\r\n return `${hours} hours ago`;\r\n }\r\n return 'never';\r\n }\r\n\r\n public async deleteNotification(notification: Notification) {\r\n await this.notificationService.deleteNotification(notification);\r\n this.notifications = this.notifications.filter((x) => x.id !== notification.id);\r\n this.show();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./notifications.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./notifications.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./notifications.vue?vue&type=template&id=100aabba&\"\nimport script from \"./notifications.ts?vue&type=script&lang=js&\"\nexport * from \"./notifications.ts?vue&type=script&lang=js&\"\nimport style0 from \"./notifications.vue?vue&type=style&index=0&id=100aabba&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-dd',{key:_vm.componentKey,staticClass:\"p-0 btn-with-icon\",attrs:{\"size\":\"sm\",\"no-caret\":\"\",\"right\":\"\"}},[_c('template',{slot:\"button-content\"},[_c('i',{staticClass:\"icon-calendar\"}),_vm._v(_vm._s(_vm.getFancyDate(_vm.selectedPeriodObject()))),(_vm.selectedPeriodObject() && _vm.selectedPeriodObject().closed)?_c('span',[_vm._v(\"(closed)\")]):_vm._e(),_c('i',{staticClass:\"icon-chevron-down\"})]),_c('b-dd-text',[_c('prd-translate-text-inline',{attrs:{\"translate-key\":\"PERIOD\"}})],1),_vm._l((_vm.periods),function(period,index){return _c('b-dd-item',{key:'period_' + index,attrs:{\"active\":period == _vm.$store.state.period._selectedPeriodObject},on:{\"click\":function($event){return _vm.selectPeriod(period)}}},[_vm._v(\" \"+_vm._s(_vm.getFancyDate(period))+\" \")])}),(_vm.closedPeriods && _vm.closedPeriods.length)?_c('b-dd-item',{attrs:{\"disabled\":\"\"},nativeOn:{\"mouseover\":function($event){_vm.hover = true}}},[_c('span',{staticClass:\"text-muted\"},[_vm._v(\" Closed \"),_c('i',{staticClass:\"mt-1 float-right icon-chevron-down\"})])]):_vm._e(),_vm._l((_vm.closedPeriods),function(period,index){return (_vm.hover)?_c('b-dd-item',{key:'period_closed_' + index,attrs:{\"active\":period == _vm.$store.state.period._selectedPeriodObject},on:{\"click\":function($event){return _vm.selectPeriod(period)}}},[_c('span',{class:{'text-muted' : period !== _vm.$store.state.period._selectedPeriodObject }},[_vm._v(_vm._s(_vm.getFancyDate(period))+\" (closed)\")])]):_vm._e()})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport { $router, eventBus, loginHelper } from '@/main';\r\nimport Period from '../../models/Period';\r\nimport moment from 'moment';\r\nimport to from 'await-to-js';\r\nimport PageRender from '@/models/PageRender';\r\nimport { filtersModule } from '@/store/modules/filters';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { periodModule } from '@/store/modules/period';\r\n@Component\r\nexport default class PeriodFilter extends PageRender {\r\n public componentKey: number = 0;\r\n public hover: boolean = false;\r\n\r\n public created() {\r\n eventBus.$on('teamChange', this.forceRerender);\r\n\r\n if (\r\n periodModule.selectedPeriodObject &&\r\n periodModule.selectedPeriodObject.periodId &&\r\n this.closedPeriods.find((x) => x.periodId === periodModule.selectedPeriodObject.periodId)\r\n ) {\r\n this.hover = true;\r\n }\r\n }\r\n\r\n public get periods() {\r\n return periodModule.periods.filter((x) => !x.closed);\r\n }\r\n\r\n public get closedPeriods() {\r\n return periodModule.periods.filter((x) => x.closed);\r\n }\r\n\r\n public selectedPeriodObject() {\r\n return periodModule.selectedPeriodObject;\r\n }\r\n\r\n public async selectPeriod(period: Period) {\r\n const dateString = this.getDateString(period);\r\n\r\n if (dateString) {\r\n periodModule.SET_SELECTEDPERIOD(dateString);\r\n\r\n const params = this.$route.params;\r\n params.period = periodModule.selectedPeriod;\r\n\r\n filtersModule.setStartMonth(dateString);\r\n filtersModule.setEndMonth(dateString);\r\n\r\n const [err, response] = await to(loginHelper.reloadProfile());\r\n if (err) {\r\n this.clearAndShowError('Failed to reload profile', err);\r\n await $router.push({ name: 'login' });\r\n return loginHelper.logOut();\r\n }\r\n\r\n profileModule.setBrightProfile(response);\r\n if (typeof params.teamId !== 'undefined' && params.teamId) {\r\n const hasActiveMembership = response.teamMemberships.find((x) => x.id === parseInt(params.teamId));\r\n if (!hasActiveMembership) {\r\n params.teamKey = response.teamMemberships[0].key;\r\n params.teamId = response.teamMemberships[0].id.toString();\r\n this.showWarning(`This team didn't exist on ${dateString}, switched to team ${response.teamMemberships[0].name}`);\r\n }\r\n }\r\n\r\n await $router.push({ name: this.$route.name, params });\r\n\r\n this.forceRerender();\r\n eventBus.$emit('onPeriodChanged');\r\n }\r\n }\r\n\r\n public getFancyDate(period: Period) {\r\n if (period && period.startDate) {\r\n return moment(period.startDate, 'YYYY-MM-DD').format(`MMMM 'YY`);\r\n }\r\n }\r\n\r\n public getDateString(period: Period) {\r\n return moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM');\r\n }\r\n\r\n public forceRerender() {\r\n this.componentKey += 1;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./period-filter.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./period-filter.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./period-filter.vue?vue&type=template&id=ad31a724&\"\nimport script from \"./period-filter.ts?vue&type=script&lang=js&\"\nexport * from \"./period-filter.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"p-3\"},[_c('h4',{staticClass:\"mb-5\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ROLE_MANAGEMENT\"}})],1),_c('div',{staticClass:\"d-block\"},[_c('prd-grid-wrapper',{attrs:{\"flat\":\"\",\"data-items\":_vm.members,\"columns\":_vm.gridColumns,\"row-height\":40}})],1),_c('b-modal',{ref:\"rolesModal\"},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"EDIT_ROLES_OF\",\"translate-group\":\"MODALS\",\"inline\":true}}),_vm._v(\" \"+_vm._s(_vm.modalUser.emailAddress)+\" \")],1),_c('b-form-group',[_c('b-form-checkbox-group',{attrs:{\"stacked\":\"\",\"id\":\"checkbox-group-1\",\"options\":_vm.roleOptions},model:{value:(_vm.modalUser.roles),callback:function ($$v) {_vm.$set(_vm.modalUser, \"roles\", $$v)},expression:\"modalUser.roles\"}})],1),_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"variant\":\"primary\"},on:{\"click\":_vm.updateRoles},slot:\"modal-footer\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"UPDATE_ROLES\",\"translate-group\":\"MODALS\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","declare global {\r\n interface String {\r\n /**\r\n * Returns the string with the first character changed to uppercase.\r\n */\r\n firstCharToUpper(): string;\r\n\r\n replaceAt(index: number, replacement: string): string;\r\n }\r\n}\r\n\r\nString.prototype.firstCharToUpper = function f(this: string): string {\r\n if (!!this && !!this[0]) {\r\n return this[0].toUpperCase() + this.slice(1);\r\n }\r\n\r\n return '';\r\n};\r\n\r\nString.prototype.replaceAt = function(this: string, index, replacement) {\r\n return `${this.substr(0, index)}${replacement}${this.substr(index + replacement.length)}`;\r\n};\r\n\r\nexport {};\r\n","import Component from 'vue-class-component';\r\nimport { Provide, Vue } from 'vue-property-decorator';\r\nimport { UserRoles } from '@/models/UserRoles';\r\nimport { userRoleService, memberHelper } from '@/main';\r\nimport PageRender from '@/models/PageRender';\r\nimport '@/extensions/stringExtensions';\r\nimport to from 'await-to-js';\r\nimport { BModal } from 'bootstrap-vue';\r\nimport { Person } from '@/models/Person';\r\nimport { Member } from '@/models/Member';\r\nimport { translateModule } from '@/store/modules/translate';\r\n\r\n/**\r\n * Encompasses a control that allows changing the admins for a team, group or other entities that can later be added.\r\n */\r\n@Component({\r\n filters: {\r\n firstCharToUpper: (value: string) => value.firstCharToUpper(),\r\n },\r\n})\r\nexport default class RolesSettings extends PageRender {\r\n // Properties used in HTML\r\n @Provide() public admins: Person[] = [];\r\n @Provide() public financeEmployees: Person[] = [];\r\n public roles: any[] = [{ id: 3, role: UserRoles.FinanceEmployee }, { id: 1, role: UserRoles.SiteAdmin }];\r\n public members: Person[] = [];\r\n\r\n public externalIdentifier: string = null;\r\n public role: UserRoles = null;\r\n public modalUser: Member = new Member();\r\n public oldRoles: any[] = [];\r\n\r\n public gridColumns: any[] = [\r\n { title: 'NAME', cell: this.renderMemberOfTeam },\r\n { field: 'emailAddress', title: 'EMAIL' },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 120 },\r\n ];\r\n\r\n public $refs!: {\r\n rolesModal: BModal;\r\n };\r\n\r\n public async mounted() {\r\n await this.loadMembers();\r\n }\r\n\r\n public async loadMembers() {\r\n const [err, response] = await to(memberHelper.getMembers());\r\n if (err) {\r\n return this.showFailedResponse('Failed to retrieve members', null);\r\n }\r\n\r\n this.members = response.filter((member: Person) => {\r\n return member.externalIdentifier;\r\n });\r\n }\r\n\r\n public addRoleToMemberPopup(role: UserRoles) {\r\n this.$refs.rolesModal.show();\r\n this.role = role;\r\n }\r\n\r\n public get roleOptions() {\r\n return this.roles.map((role) => {\r\n return {\r\n text: role.role,\r\n value: role.id,\r\n };\r\n });\r\n }\r\n\r\n public async saveRole() {\r\n const self = this;\r\n self.showPending('SAVE_ROLE_PENDING');\r\n const [err] = await to(userRoleService.setUserRole(self.externalIdentifier, self.role));\r\n if (err) {\r\n return self.clearAndShowError('SAVE_ROLE_FAILED', null);\r\n }\r\n\r\n self.clearAndShowSuccess('SAVE_ROLE_SUCCESS');\r\n if (self.role === UserRoles.SiteAdmin) {\r\n self.admins.push(\r\n self.members.find((filteredMember) => {\r\n return filteredMember.externalIdentifier === self.externalIdentifier;\r\n }),\r\n );\r\n }\r\n\r\n if (self.role === UserRoles.FinanceEmployee) {\r\n self.financeEmployees.push(\r\n self.members.find((filteredMember) => {\r\n return filteredMember.externalIdentifier === self.externalIdentifier;\r\n }),\r\n );\r\n }\r\n self.$refs.rolesModal.hide();\r\n }\r\n\r\n public openRolesModal(member: Member) {\r\n this.modalUser = member;\r\n this.oldRoles = member.roles;\r\n this.$refs.rolesModal.show();\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [{ title: translateModule.value('UPDATE_ROLES', 'MODALS'), function: this.openRolesModal }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public renderMemberOfTeam(h, _, row): any {\r\n return this.renderMember(h, row.dataItem);\r\n }\r\n\r\n public async updateRoles() {\r\n this.showPending('UPDATING_ROLES_PENDING');\r\n const removedRoles = [];\r\n const addedRoles = [];\r\n\r\n for (const role of this.oldRoles) {\r\n if (this.modalUser.roles.indexOf(role) === -1) {\r\n removedRoles.push(role);\r\n }\r\n }\r\n\r\n for (const role of this.modalUser.roles) {\r\n if (this.oldRoles.indexOf(role) === -1) {\r\n addedRoles.push(role);\r\n }\r\n }\r\n\r\n for (const addedRole of addedRoles) {\r\n const [err] = await to(userRoleService.setUserRole(this.modalUser.externalIdentifier, addedRole));\r\n if (err) {\r\n return this.clearAndShowError('UPDATING_ROLES_FAILED', err);\r\n }\r\n }\r\n\r\n for (const removedRole of removedRoles) {\r\n const [err] = await to(userRoleService.deleteUserRole(this.modalUser.externalIdentifier, removedRole));\r\n if (err) {\r\n return this.clearAndShowError('UPDATING_ROLES_FAILED', err);\r\n }\r\n }\r\n\r\n this.clearAndShowSuccess('UPDATING_ROLES_SUCCEEDED');\r\n this.$refs.rolesModal.hide();\r\n\r\n this.isLoading = true;\r\n await this.loadMembers();\r\n this.isLoading = false;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./roles-settings.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./roles-settings.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./roles-settings.vue?vue&type=template&id=0436267f&\"\nimport script from \"./roles-settings.ts?vue&type=script&lang=js&\"\nexport * from \"./roles-settings.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[_c('b-card',{staticClass:\"mb-3\",attrs:{\"header-tag\":\"header\"},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [(!_vm.isEdit)?_c('h2',{staticClass:\"mb-0\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_TEMPLATE\"}})],1):(!_vm.isLoading)?_c('h2',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'EDIT_TEMPLATE', params: { name: _vm.template.name } }),expression:\"{ key: 'EDIT_TEMPLATE', params: { name: template.name } }\"}],staticClass:\"mb-0\"}):_vm._e()]},proxy:true}])},[(_vm.isLoading)?_c('spinner',{attrs:{\"color\":\"white\"}}):_c('b-card-body',[_c('form',{staticClass:\"d-block \"},[_c('b-form-group',{attrs:{\"id\":\"groupNameGroup\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"element\":\"span\",\"translate-key\":\"TEMPLATE_NAME_DESCRIPTION\"},slot:\"description\"}),_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"for\":\"groupNameInput\",\"element\":\"span\",\"translate-key\":\"TEMPLATE_NAME_LABEL\"},slot:\"label\"}),_c('b-form-input',{class:{ 'border-danger': _vm.$v.template.name.$invalid && _vm.submitted },attrs:{\"id\":\"groupNameInput\",\"type\":\"text\",\"placeholder\":\"Development\"},model:{value:(_vm.template.name),callback:function ($$v) {_vm.$set(_vm.template, \"name\", $$v)},expression:\"template.name\"}})],1),_c('b-form-group',{attrs:{\"id\":\"groupNameGroup\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"for\":\"groupPurposeInput\",\"element\":\"span\",\"translate-key\":\"TEMPLATE_NAME_LABEL\"},slot:\"label\"}),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"element\":\"span\",\"translate-key\":\"TEMPLATE_DESCRIPTION_DESCRIPTION\"},slot:\"description\"}),_c('b-form-textarea',{class:{ 'border-danger': _vm.$v.template.description.$invalid && _vm.submitted },attrs:{\"id\":\"groupPurposeInput\",\"type\":\"text\",\"rows\":3,\"max-rows\":6},model:{value:(_vm.template.description),callback:function ($$v) {_vm.$set(_vm.template, \"description\", $$v)},expression:\"template.description\"}})],1)],1)])],1),_c('b-card',{staticClass:\"mb-3\",scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('prd-translate-text',{attrs:{\"element\":\"h4\",\"translate-key\":\"GROUP_ATTRIBUTIONS\"}})]},proxy:true}])},[_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"GROUP_ATTRIBUTIONS_CHANGE_MESSAGE\"}}),(_vm.isLoading)?_c('spinner',{attrs:{\"color\":\"white\"}}):_c('b-card-body',[_c('form',{staticClass:\"d-block \"},[_vm._l((_vm.groupAttributions),function(attribution){return _c('div',{key:attribution.id,staticClass:\"form-group\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(attribution.targetTeamModel),expression:\"attribution.targetTeamModel\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(attribution, \"targetTeamModel\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.teamChange(attribution)}]}},[_c('option',{attrs:{\"value\":\"\"}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_TEAM\"}})],1),_vm._l((_vm.teams),function(team){return _c('option',{key:team.name,domProps:{\"value\":team}},[_vm._v(\" \"+_vm._s(team.name)+\" \")])})],2)]),_c('div',{staticClass:\"col-md-4\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(attribution.targetGroupModel),expression:\"attribution.targetGroupModel\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(attribution, \"targetGroupModel\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"\"}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_GROUP\"}})],1),_vm._l((attribution.groups),function(group){return _c('option',{key:group.name,domProps:{\"value\":group}},[_vm._v(\" \"+_vm._s(group.name)+\" \")])})],2)]),_c('div',{staticClass:\"col-md-3\"},[_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text bg-transparent\"},[_vm._v(\"%\")])]),_c('prd-numeric-input',{staticClass:\"form-control text-right border-left-0\",attrs:{\"output-dec-seperator\":\",\"},model:{value:(attribution.percentage),callback:function ($$v) {_vm.$set(attribution, \"percentage\", $$v)},expression:\"attribution.percentage\"}})],1)]),_c('div',{staticClass:\"col-md-1\"},[(\n _vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group)\n )?_c('button',{staticClass:\"btn btn-link\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteGroupAttribution(attribution)}}},[_c('i',{staticClass:\"icon-trash-2\"})]):_vm._e()])])])}),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group))?_c('div',{staticClass:\"form-row\"},[(!_vm.copingLoading)?[_c('prd-translate-button',{staticClass:\"float-left\",attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"ADD_ATTRIBUTION\"},on:{\"click\":function($event){return _vm.addGroupAttribution()}}}),_c('prd-translate-text',{staticClass:\"float-left my-2 mx-3\",attrs:{\"translate-key\":\"OR\"}}),_c('div',{staticClass:\"input-group col-md-6 float-left\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.importGroupAttributionGroupId),expression:\"importGroupAttributionGroupId\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.importGroupAttributionGroupId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.groups),function(group){return _c('option',{key:group.name,domProps:{\"value\":group.groupId}},[_vm._v(\" \"+_vm._s(group.name)+\" \")])}),0),_c('prd-translate-button',{staticClass:\"input-group-append\",attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"disabled\":!_vm.importGroupAttributionGroupId,\"translate-key\":\"COPY_FROM\"},on:{\"click\":_vm.importGroupAttribution}})],1)]:_c('spinner',{attrs:{\"color\":\"white\"}})],2):_vm._e()],2),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"REMITTANCE_PERCENTAGE\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"REMITTANCE_PERCENTAGE_TEXT\"}}),_c('form',{staticClass:\"d-block \"},[_vm._l((_vm.remittances),function(remmitance){return _c('div',{key:remmitance.id,staticClass:\"form-group\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-8\"},[_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text bg-transparent\"},[_vm._v(\"%\")])]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(remmitance.percentage),expression:\"remmitance.percentage\"}],staticClass:\"form-control text-right border-left-0\",attrs:{\"type\":\"text\"},domProps:{\"value\":(remmitance.percentage)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(remmitance, \"percentage\", $event.target.value)}}})])]),_c('div',{staticClass:\"col-md-3\"},[_c('button',{staticClass:\"btn btn-link\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteRemittanceAttribution(remmitance)}}},[_c('i',{staticClass:\"icon-trash-2\"})])])])])}),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group))?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"ADD_ATTRIBUTION\"},on:{\"click\":function($event){return _vm.addRemittanceAttribution()}}}):_vm._e()],2)],1)],1),_c('b-card',{scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('prd-translate-text',{attrs:{\"element\":\"h4\",\"translate-key\":\"FINANCE_SETTINGS\"}})]},proxy:true}])},[_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"FINANCE_SETTINGS_TEXT\"}}),(_vm.isLoading)?_c('spinner',{attrs:{\"color\":\"white\"}}):_c('b-card-body',[_c('form',{staticClass:\"d-block mt-5\"},[_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"PERSONAL_GROUP_FINANCE\"}}),_c('prd-translate-text',{staticClass:\"text-muted font-italic\",attrs:{\"element\":\"p\",\"translate-key\":\"PERSONAL_GROUP_FINANCE_TEXT\",\"params\":{ level: _vm.teamFinanceSettings.defaultGroupPrivacyLevel }}}),_c('b-form-group',{attrs:{\"label-for\":\"defaultGroupPrivacyLevel\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"ACCESSABLE_FROM_AND_UP\"},slot:\"description\"}),_c('b-form-select',{class:{ 'border-danger': _vm.$v.template.privacyLevel.$invalid && _vm.submitted },attrs:{\"id\":\"defaultGroupPrivacyLevel\",\"options\":_vm.roleOptions},model:{value:(_vm.template.privacyLevel),callback:function ($$v) {_vm.$set(_vm.template, \"privacyLevel\", $$v)},expression:\"template.privacyLevel\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_ROLE'),expression:\"'SELECT_ROLE'\"}],domProps:{\"value\":'Unknown'}})])],2)],1)],1),_c('hr'),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"APPLIED_MISSING_ATTRIBUTIONS\"}}),_c('prd-translate-text',{staticClass:\"text-muted \",attrs:{\"element\":\"p\",\"translate-key\":\"APPLIED_MISSING_ATTRIBUTIONS_TEXT\"}}),_c('form',{staticClass:\"d-block \"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"serviceAttributions\"},model:{value:(_vm.template.applyMissingAttributionsOnTransfer),callback:function ($$v) {_vm.$set(_vm.template, \"applyMissingAttributionsOnTransfer\", $$v)},expression:\"template.applyMissingAttributionsOnTransfer\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"APPLIED_MISSING_ATTRIBUTIONS\"}})],1)],1)],1),_c('hr'),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"INCOME_DISTRIBUTION\"}}),_c('prd-translate-text',{staticClass:\"text-muted \",attrs:{\"element\":\"p\",\"translate-key\":\"INCOME_DISTRIBUTION_TEXT\"}}),_c('form',{staticClass:\"d-block \"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"distributeIncome\"},model:{value:(_vm.template.autoDistributeIncomeToSavings),callback:function ($$v) {_vm.$set(_vm.template, \"autoDistributeIncomeToSavings\", $$v)},expression:\"template.autoDistributeIncomeToSavings\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DISTRIBUTE_INCOME_AUTO\"}})],1)],1)],1),_c('hr'),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"EXPENSES_DISTRIBUTION\"}}),_c('prd-translate-text',{staticClass:\"text-muted \",attrs:{\"element\":\"p\",\"translate-key\":\"EXPENSES_DISTRIBUTION_TEXT\"}}),_c('form',{staticClass:\"d-block \"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"distributeExpenses\"},model:{value:(_vm.template.autoDistributeExpensesToSavings),callback:function ($$v) {_vm.$set(_vm.template, \"autoDistributeExpensesToSavings\", $$v)},expression:\"template.autoDistributeExpensesToSavings\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DISTRIBUTE_EXPENSE_AUTO\"}})],1)],1)],1),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"COMPENSATE_GROUP_MEMBERS\"}}),_c('prd-translate-text',{staticClass:\"text-muted \",attrs:{\"element\":\"p\",\"translate-key\":\"COMPENSATE_GROUP_MEMBERS_TEXT\"}}),_c('form',{staticClass:\"d-block \"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"compensateGroupMembers\"},model:{value:(_vm.template.autoCompensateGroupMembers),callback:function ($$v) {_vm.$set(_vm.template, \"autoCompensateGroupMembers\", $$v)},expression:\"template.autoCompensateGroupMembers\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"COMPENSATE_MEMBERS_AUTO\"}})],1)],1)],1),_c('div',{staticClass:\"d-flex justify-content-end mt-5\"},[(_vm.isEdit)?_c('prd-translate-button',{staticClass:\"mr-2\",attrs:{\"translate-key\":\"DELETE\",\"variant\":\"danger\",\"action\":_vm.deleteTemplate}}):_vm._e(),_c('prd-translate-button',{staticClass:\"mr-2\",attrs:{\"translate-key\":\"CANCEL\"},on:{\"click\":_vm.cancel}}),_c('prd-translate-button',{attrs:{\"action\":_vm.createTemplate,\"translate-key\":\"SAVE\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { attributionService, groupService, teamHelper, teamService, templateService } from '@/main';\r\nimport Attribution from '@/models/Attribution';\r\nimport { AttributionType } from '@/models/AttributionType';\r\nimport Template from '@/models/Finance/Template';\r\nimport Group from '@/models/Group';\r\nimport { PrivacyLevel } from '@/models/PrivacyLevel';\r\nimport Team from '@/models/Team';\r\nimport TeamSettings from '@/models/TeamSettings';\r\nimport SideActionBase from '@/plugin/sideActions/sideActionBase';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { settingsModule } from '@/store/modules/settings';\r\nimport to from 'await-to-js';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { required, minValue, maxValue, not } from 'vuelidate/lib/validators';\r\n\r\n@Component({\r\n validations: {\r\n template: {\r\n name: { required },\r\n description: { required },\r\n privacyLevel: {\r\n not: not((model) => {\r\n return model === PrivacyLevel.Unknown;\r\n }),\r\n },\r\n\r\n attributions: {\r\n $each: {\r\n percentage: { required, minValue: minValue(0.01), maxValue: maxValue(100) },\r\n // targetTeamModel: { required },\r\n // targetGroupModel: { required },\r\n },\r\n },\r\n },\r\n },\r\n} as any)\r\nexport default class TemplateActionComponent extends SideActionBase {\r\n public isEdit: boolean = false;\r\n public isLoading: boolean = true;\r\n public submitted: boolean = false;\r\n\r\n public template: Template = new Template();\r\n\r\n public teams: Team[] = [];\r\n public groups: Group[] = [];\r\n public copingLoading: boolean = false;\r\n public importGroupAttributionGroupId?: number = null;\r\n\r\n public remittances: Attribution[] = [];\r\n public groupAttributions: Attribution[] = [];\r\n\r\n public teamFinanceSettings: TeamSettings = {\r\n defaultGroupPrivacyLevel: PrivacyLevel.Unknown,\r\n allExpensesPrivacyLevel: PrivacyLevel.Unknown,\r\n memberResultsPrivacyLevel: PrivacyLevel.Unknown,\r\n };\r\n\r\n public roleOptions: any[] = [\r\n { text: 'Site Admin', value: 'SiteAdmin' },\r\n { text: 'Finance Employee', value: 'FinanceEmployee' },\r\n { text: 'Group Lead', value: 'GroupLead' },\r\n { text: 'Member', value: 'Member' },\r\n ];\r\n\r\n public async mounted() {\r\n this.isEdit = this.options.template && this.options.template.financeGroupTemplateId && this.options.template.financeGroupTemplateId > 0;\r\n\r\n this.teams = await teamService.getTeams();\r\n\r\n await this.loadTeamFinanceSettings();\r\n\r\n this.groups = this.teams.find((x) => x.teamId === teamHelper.getTeamId()).groups;\r\n\r\n if (this.isEdit) {\r\n Object.assign(this.template, this.options.template);\r\n\r\n const groupAttributions = this.options.template.attributions.filter((x) => x.attributionType === AttributionType.GroupAttribution);\r\n const attrs = groupAttributions.map((item) => {\r\n const attr = new Attribution(0);\r\n Object.assign(attr, item);\r\n\r\n attr.targetTeamModel = this.teams.find((team) => {\r\n if (item.targetTeam) {\r\n return team.teamId === item.targetTeam;\r\n }\r\n\r\n return team.teamId === teamHelper.getTeamId();\r\n });\r\n\r\n return attr;\r\n });\r\n\r\n attrs.forEach(async (attribution) => {\r\n attribution.groups = await this.getTeamGroups(attribution.targetTeamModel);\r\n\r\n attribution.targetGroupModel = attribution.groups.find((group) => {\r\n return group.groupId === attribution.targetGroup;\r\n });\r\n });\r\n\r\n this.groupAttributions = attrs;\r\n\r\n this.remittances = this.options.template.attributions.filter((x) => x.attributionType === AttributionType.GroupRemittance);\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async addGroupAttribution() {\r\n const attribution = new Attribution(0);\r\n attribution.attributionType = AttributionType.GroupAttribution;\r\n attribution.targetTeamModel = this.teams.find((team) => {\r\n return team.teamId === teamHelper.getTeamId();\r\n });\r\n\r\n attribution.groups = await this.getTeamGroups(attribution.targetTeamModel);\r\n\r\n this.groupAttributions.push(attribution);\r\n }\r\n\r\n public addRemittanceAttribution(): any {\r\n const attribution = new Attribution(0);\r\n attribution.attributionType = AttributionType.GroupRemittance;\r\n this.remittances.push(attribution);\r\n }\r\n\r\n public deleteRemittanceAttribution(item: Attribution) {\r\n this.remittances.splice(this.remittances.indexOf(item), 1);\r\n }\r\n\r\n public deleteGroupAttribution(item: Attribution) {\r\n this.groupAttributions.splice(this.groupAttributions.indexOf(item), 1);\r\n }\r\n\r\n public async teamChange(attribution: Attribution) {\r\n attribution.targetGroup = null;\r\n attribution.groups = await this.getTeamGroups(attribution.targetTeamModel);\r\n }\r\n\r\n public async getTeamGroups(team: Team) {\r\n const [err, response] = await to(groupService.getGroups(team.teamId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse(`Failed to load groups for team ${team.teamKey}`, null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async importGroupAttribution() {\r\n this.copingLoading = true;\r\n const currentTeamId = teamHelper.getTeamId(teamHelper.currentTeamId);\r\n\r\n await attributionService\r\n .getAttributions(AttributionType.GroupAttribution, currentTeamId, periodModule.selectedPeriod, this.importGroupAttributionGroupId)\r\n .then((result) => {\r\n result.data.forEach(async (attribution: Attribution) => {\r\n attribution.attributionId = undefined;\r\n // attribution.group = self.group.groupId;\r\n const foundTeam = this.teams.find((team) => team.teamId === attribution.targetTeam);\r\n attribution.targetTeamModel = foundTeam;\r\n const groups = (await teamService.getGroups(foundTeam.teamId, periodModule.selectedPeriod)).data;\r\n attribution.targetGroupModel = groups.find((group) => group.groupId === attribution.targetGroup);\r\n attribution.groups = groups;\r\n\r\n this.groupAttributions.push(attribution);\r\n });\r\n });\r\n\r\n this.copingLoading = false;\r\n }\r\n\r\n public async loadTeamFinanceSettings() {\r\n const currentTeamId = teamHelper.getTeamId(teamHelper.currentTeamId);\r\n await settingsModule.fetchTeamSettingsIfNeeded(currentTeamId);\r\n return (this.teamFinanceSettings = settingsModule.findTeamFinanceSettings(currentTeamId));\r\n }\r\n\r\n public async createTemplate(e) {\r\n this.submitted = true;\r\n\r\n this.template.attributions = [];\r\n\r\n this.groupAttributions.forEach((x) => {\r\n x.targetTeam = x.targetTeamModel.teamId;\r\n x.targetGroup = x.targetGroupModel.groupId;\r\n });\r\n\r\n this.template.attributions.push(...this.groupAttributions);\r\n\r\n this.remittances.forEach((x) => {\r\n x.targetGroup = null;\r\n x.targetTeam = null;\r\n x.targetAccount = null;\r\n x.targetTeamModel = null;\r\n x.targetGroupModel = null;\r\n });\r\n\r\n this.template.attributions.push(...this.remittances);\r\n\r\n this.template.attributions.forEach((x) => {\r\n x.percentage = parseFloat(x.percentage);\r\n });\r\n\r\n this.template.teamId = teamHelper.currentTeam.id;\r\n\r\n if ((this as any).$v.template.$invalid) {\r\n return;\r\n }\r\n\r\n this.showPending('SAVING_TEMPLATE');\r\n\r\n if (this.isEdit) {\r\n const [errU] = await to(templateService.updateTemplate(this.template));\r\n if (errU) {\r\n return this.clearAndShowError('ERROR_SAVING_TEMPLATE', errU);\r\n }\r\n } else {\r\n const [err] = await to(templateService.createTemplate(this.template));\r\n if (err) {\r\n return this.clearAndShowError('ERROR_SAVING_TEMPLATE', err);\r\n }\r\n }\r\n\r\n this.clearNotifications();\r\n this.finished(e);\r\n }\r\n\r\n public async deleteTemplate(e) {\r\n this.showPending('DELETING_TEMPLATE');\r\n const [err] = await to(templateService.deleteTemplate(this.template));\r\n if (err) {\r\n return this.clearAndShowError('ERROR_DELETING_TEMPLATE', err);\r\n }\r\n\r\n this.clearNotifications();\r\n this.finished(e);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-or-edit-template-action.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-or-edit-template-action.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create-or-edit-template-action.vue?vue&type=template&id=082ef73f&\"\nimport script from \"./create-or-edit-template-action.ts?vue&type=script&lang=js&\"\nexport * from \"./create-or-edit-template-action.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('b-card',{staticClass:\"mb-3\",attrs:{\"header-tag\":\"header\"},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h2',{staticClass:\"mb-0\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_ECOSYSTEM\",\"translate-group\":\"SIDE_ACTIONS\"}})],1)]},proxy:true}])},[(_vm.isLoading)?_c('spinner',{attrs:{\"color\":\"white\"}}):_c('b-card-body',[_c('form',{staticClass:\"d-block \"},[_c('b-form-group',{attrs:{\"id\":\"ecosystemName\",\"label-for\":\"ecosystemNameInput\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"CREATE_ECOSYSTEM_ECOSYSTEM_LABEL\",\"translate-group\":\"SIDE_ACTIONS\"},slot:\"label\"}),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"CREATE_ECOSYSTEM_ECOSYSTEM_DESCRIPTION\",\"translate-group\":\"SIDE_ACTIONS\"},slot:\"description\"}),_c('b-form-input',{class:{ 'border-danger': _vm.$v.ecosystem.ecosystemName.$invalid && _vm.submitted },attrs:{\"id\":\"ecosystemNameInput\",\"type\":\"text\",\"placeholder\":\"Desert\"},model:{value:(_vm.ecosystem.ecosystemName),callback:function ($$v) {_vm.$set(_vm.ecosystem, \"ecosystemName\", $$v)},expression:\"ecosystem.ecosystemName\"}})],1),_c('b-form-group',{attrs:{\"id\":\"teamName\",\"label-for\":\"teamNameInput\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"CREATE_ECOSYSTEM_TEAM_LABEL\",\"translate-group\":\"SIDE_ACTIONS\"},slot:\"label\"}),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"CREATE_ECOSYSTEM_TEAM_DESCRIPTION\",\"translate-group\":\"SIDE_ACTIONS\"},slot:\"description\"}),_c('b-form-input',{class:{ 'border-danger': _vm.$v.ecosystem.teamName.$invalid && _vm.submitted },attrs:{\"id\":\"teamNameInput\",\"type\":\"text\",\"placeholder\":\"Lizards\"},model:{value:(_vm.ecosystem.teamName),callback:function ($$v) {_vm.$set(_vm.ecosystem, \"teamName\", $$v)},expression:\"ecosystem.teamName\"}})],1)],1),_c('div',{staticClass:\"float-right\"},[_c('b-button',{staticClass:\"mt-5 mr-2\",on:{\"click\":function($event){return _vm.cancel()}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CANCEL\"}})],1),_c('b-button',{staticClass:\"mt-5\",attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.createEcosystem()}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE\"}})],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { ecosystemService, teamService } from '@/main';\r\nimport SideActionBase from '@/plugin/sideActions/sideActionBase';\r\nimport to from 'await-to-js';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { required } from 'vuelidate/lib/validators';\r\n\r\n@Component({\r\n validations: {\r\n ecosystem: {\r\n ecosystemName: { required },\r\n teamName: { required },\r\n // groupName: { required },\r\n },\r\n },\r\n} as any)\r\nexport default class TemplateActionComponent extends SideActionBase {\r\n public isEdit: boolean = false;\r\n public isLoading: boolean = true;\r\n public submitted: boolean = false;\r\n\r\n public ecosystem: any = {\r\n ecosystemName: '',\r\n teamName: '',\r\n groupName: 'Activity one',\r\n };\r\n\r\n public async mounted() {\r\n this.isLoading = false;\r\n }\r\n\r\n public async createEcosystem() {\r\n this.submitted = true;\r\n\r\n if ((this as any).$v.ecosystem.$invalid) {\r\n return;\r\n }\r\n\r\n this.showPending('CREATING_ECOSYSTEM');\r\n\r\n const createdEcosystem = await ecosystemService.createEcosytem(this.ecosystem.ecosystemName);\r\n if (createdEcosystem && createdEcosystem.ecosystemId > 0) {\r\n await to(\r\n teamService.createTeam(\r\n {\r\n name: this.ecosystem.teamName,\r\n ecosystem: createdEcosystem.ecosystemKey,\r\n legalEntityReference: this.ecosystem.teamName,\r\n },\r\n createdEcosystem.ecosystemId,\r\n ),\r\n );\r\n\r\n this.clearNotifications();\r\n return this.finished(createdEcosystem);\r\n }\r\n\r\n this.clearAndShowError('CREATING_ECOSYSTEM_FAILED', null);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-ecosystem-action.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-ecosystem-action.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create-ecosystem-action.vue?vue&type=template&id=9758bbb2&\"\nimport script from \"./create-ecosystem-action.ts?vue&type=script&lang=js&\"\nexport * from \"./create-ecosystem-action.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('b-card',{staticClass:\"mb-3\",attrs:{\"header-tag\":\"header\"},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [(!_vm.isEdit)?_c('h2',{staticClass:\"mb-0\"},[_vm._v(\"Create view\")]):_c('h2',{staticClass:\"mb-0\"},[_vm._v(\"Edit view '\"+_vm._s(_vm.view.name)+\"'\")])]},proxy:true}])},[(_vm.isLoading)?_c('spinner',{attrs:{\"color\":\"white\"}}):_c('b-card-body',[_c('form',{staticClass:\"d-block\"},[_c('b-form-group',{attrs:{\"id\":\"groupNameGroup\",\"label\":\"View name\",\"label-for\":\"groupNameInput\",\"description\":\"The view name\",\"label-cols\":\"3\"}},[_c('b-form-input',{class:{ 'border-danger': _vm.$v.view.name.$invalid && _vm.submitted },attrs:{\"id\":\"groupNameInput\",\"type\":\"text\",\"placeholder\":\"Development\"},model:{value:(_vm.view.name),callback:function ($$v) {_vm.$set(_vm.view, \"name\", $$v)},expression:\"view.name\"}})],1),_c('b-form-group',{attrs:{\"id\":\"allTeams\",\"label\":\"Included own teams\",\"label-cols\":\"3\",\"label-for\":\"own-teams\"}},[_c('b-form-checkbox',{staticClass:\"mt-1\",attrs:{\"name\":\"check-button\",\"id\":\"own-teams\",\"switch\":\"\"},model:{value:(_vm.view.includeOwnTeams),callback:function ($$v) {_vm.$set(_vm.view, \"includeOwnTeams\", $$v)},expression:\"view.includeOwnTeams\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INCLUDE_OWN_TEAMS\"}})],1)],1),(!_vm.view.includeOwnTeams)?_c('b-form-group',{attrs:{\"id\":\"teams\",\"label\":\"Included teams\",\"label-for\":\"checkbox-group-1\",\"label-cols\":\"3\"}},[_c('b-form-checkbox-group',{attrs:{\"stacked\":\"\",\"id\":\"checkbox-group-1\",\"options\":_vm.teamOptions(),\"name\":\"flavour-1\"},model:{value:(_vm.selectedTeams),callback:function ($$v) {_vm.selectedTeams=$$v},expression:\"selectedTeams\"}})],1):_vm._e(),_c('b-form-group',{attrs:{\"id\":\"members\",\"label\":\"Included persons\",\"label-for\":\"checkbox-group-2\",\"label-cols\":\"3\"}},[_c('b-form-checkbox-group',{attrs:{\"stacked\":\"\",\"id\":\"checkbox-group-2\",\"options\":_vm.memberOptions(),\"name\":\"flavour-2\"},model:{value:(_vm.selectedMembers),callback:function ($$v) {_vm.selectedMembers=$$v},expression:\"selectedMembers\"}})],1),_c('b-form-group',{attrs:{\"id\":\"roles\",\"label\":\"Included roles\",\"label-for\":\"checkbox-group-3\",\"label-cols\":\"3\"}},[_c('b-form-checkbox-group',{attrs:{\"stacked\":\"\",\"id\":\"checkbox-group-3\",\"options\":_vm.roleOptions,\"name\":\"flavour-3\"},model:{value:(_vm.selectedRoles),callback:function ($$v) {_vm.selectedRoles=$$v},expression:\"selectedRoles\"}})],1)],1),_c('div',{staticClass:\"float-right\"},[(_vm.isEdit)?_c('b-button',{staticClass:\"mt-5 mr-2\",attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteView()}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DELETE\"}})],1):_vm._e(),_c('b-button',{staticClass:\"mt-5 mr-2\",on:{\"click\":function($event){return _vm.cancel()}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CANCEL\"}})],1),_c('b-button',{staticClass:\"mt-5\",attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.createTemplate}},[(_vm.isEdit)?_c('prd-translate-text',{attrs:{\"translate-key\":\"UPDATE\"}}):_c('prd-translate-text',{attrs:{\"translate-key\":\"SAVE\"}})],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { groupService, teamService, insightService } from '@/main';\r\nimport Attribution from '@/models/Attribution';\r\nimport InsightView from '@/models/Insights/InsightView';\r\nimport { Member } from '@/models/Member';\r\nimport { Person } from '@/models/Person';\r\nimport Team from '@/models/Team';\r\nimport SideActionBase from '@/plugin/sideActions/sideActionBase';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport to from 'await-to-js';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { required } from 'vuelidate/lib/validators';\r\n\r\n@Component({\r\n validations: {\r\n view: {\r\n name: { required },\r\n },\r\n },\r\n} as any)\r\nexport default class TemplateActionComponent extends SideActionBase {\r\n public isEdit: boolean = false;\r\n public isLoading: boolean = true;\r\n public submitted: boolean = false;\r\n\r\n public view: InsightView = new InsightView();\r\n\r\n public teams: Team[] = [];\r\n public members: Member[] = [];\r\n public copingLoading: boolean = false;\r\n public importGroupAttributionGroupId?: number = null;\r\n\r\n public selectedTeams: any[] = [];\r\n public selectedRoles: any[] = [];\r\n public selectedMembers: any[] = [];\r\n\r\n public roleOptions: any[] = [\r\n { text: 'Accountant', value: 'BE_Accountant' },\r\n { text: 'Site Admin', value: 'BE_SiteAdmin' },\r\n { text: 'Member', value: 'BE_Member' },\r\n ];\r\n\r\n public async mounted() {\r\n this.isEdit = this.options.view && this.options.view.insightViewId && this.options.view.insightViewId > 0;\r\n\r\n this.teams = await teamService.getTeams();\r\n const members = [];\r\n for (const team of this.teams) {\r\n const apiMembers = await teamService.getMembers(team.teamId);\r\n\r\n for (const member of apiMembers) {\r\n const fMember = members.find((x) => x.id === member.personId);\r\n if (fMember) {\r\n fMember.groupMemberships.push(...member.groupMemberships);\r\n } else {\r\n this.members.push(new Member(member));\r\n }\r\n }\r\n }\r\n\r\n if (this.isEdit) {\r\n Object.assign(this.view, this.options.view);\r\n }\r\n\r\n if (this.view.teams.length > 0) {\r\n this.selectedTeams = this.view.teams.filter((x) => x.teamId).map((x) => x.teamId);\r\n }\r\n if (this.view.persons.length > 0) {\r\n this.selectedMembers = this.view.persons.map((x) => x.personId);\r\n }\r\n\r\n if (this.view.teams.length > 0) {\r\n this.selectedRoles = this.view.roles.map((x) => x.role);\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async teamChange(attribution: Attribution) {\r\n attribution.targetGroup = null;\r\n attribution.groups = await this.getTeamGroups(attribution.targetTeamModel);\r\n }\r\n\r\n public async getTeamGroups(team: Team) {\r\n const [err, response] = await to(groupService.getGroups(team.teamId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse(`Failed to load groups for team ${team.teamKey}`, null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public memberOptions() {\r\n return this.members\r\n .map((member) => {\r\n return { text: member.getFullName(), value: member.memberId };\r\n })\r\n .filter((item, index, array) => {\r\n return array.findIndex((x) => x.value === item.value) === index;\r\n });\r\n }\r\n\r\n public teamOptions() {\r\n return this.teams.map((team) => {\r\n return { text: team.name, value: team.teamId };\r\n });\r\n }\r\n\r\n public async createTemplate(e) {\r\n this.submitted = true;\r\n\r\n if ((this as any).$v.view.$invalid) {\r\n return;\r\n }\r\n\r\n this.showPending('SAVING_VIEW');\r\n\r\n this.view.persons = this.selectedMembers.map((x) => {\r\n return { personId: x } as Person;\r\n });\r\n\r\n this.view.roles = this.selectedRoles.map((x) => {\r\n return { role: x };\r\n });\r\n\r\n if (this.selectedTeams && this.selectedTeams.length) {\r\n this.view.teams = this.selectedTeams.map((x) => {\r\n return { teamId: x, teamKey: this.teams.find((y) => y.teamId === x).teamKey } as Team;\r\n });\r\n }\r\n\r\n if (this.isEdit) {\r\n const [errU] = await to(insightService.updateView(this.view));\r\n if (errU) {\r\n return this.clearAndShowError('ERROR_SAVING_VIEW', errU);\r\n }\r\n\r\n this.clearNotifications();\r\n this.finished(e);\r\n return;\r\n }\r\n\r\n const [err] = await to(insightService.createView(this.view));\r\n if (err) {\r\n return this.clearAndShowError('ERROR_SAVING_VIEW', err);\r\n }\r\n\r\n this.clearNotifications();\r\n this.finished(e);\r\n }\r\n\r\n public async deleteView(e) {\r\n this.showPending('DELETING_VIEW');\r\n const [err] = await to(insightService.deleteView(this.view));\r\n if (err) {\r\n return this.clearAndShowError('ERROR_DELETING_VIEW', err);\r\n }\r\n\r\n this.clearNotifications();\r\n this.finished(e);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-or-edit-view-action.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-or-edit-view-action.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create-or-edit-view-action.vue?vue&type=template&id=5e6335c7&\"\nimport script from \"./create-or-edit-view-action.ts?vue&type=script&lang=js&\"\nexport * from \"./create-or-edit-view-action.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (_vm.center)?_c('div',{staticClass:\"d-flex align-items-center justify-content-center p-3 w-100\"},[_c('img',{style:((\"height: \" + _vm.spinnerHeight)),attrs:{\"src\":_vm.src,\"alt\":\"Loading...\"}})]):_c('img',{style:((\"height: \" + _vm.spinnerHeight)),attrs:{\"src\":_vm.src,\"alt\":\"Loading...\"}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Prop, Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class SpinnerComponent extends Vue {\r\n @Prop({ default: 50 }) public height: number| string;\r\n @Prop({ type: String, default: 'blue' }) public color: string;\r\n @Prop() public center: boolean;\r\n public src: string = '';\r\n public spinnerHeight: string = '50px';\r\n public spinnerColor: string = 'blue';\r\n\r\n public mounted() {\r\n if (this.height) {\r\n if (typeof(this.height) === 'number') {\r\n this.spinnerHeight = `${this.height}px`;\r\n } else {\r\n this.spinnerHeight = this.height;\r\n }\r\n }\r\n\r\n if (this.color) {\r\n this.spinnerColor = this.color;\r\n }\r\n\r\n this.src = `/img/bright-loading-spinner-${this.spinnerColor}.gif`;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./spinner.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./spinner.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./spinner.vue?vue&type=template&id=efb773f0&\"\nimport script from \"./spinner.ts?vue&type=script&lang=js&\"\nexport * from \"./spinner.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.recurringTransfersLoading)?_c('spinner'):_c('div',[(_vm.showIfEmpty || _vm.transfers.length > 0)?_c('div',[(_vm.showTitle)?_c('h3',[(_vm.compensations)?_c('prd-translate-text',{attrs:{\"translate-key\":\"RECURRING_COMPENSATIONS\"}}):_c('prd-translate-text',{attrs:{\"translate-key\":\"RECURRING_TRANSFERS\"}})],1):_vm._e(),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.transfers,\"columns\":_vm.columns}}),_c('transfer-modal',{ref:\"transferModal\",attrs:{\"recurringTransfer\":_vm.selectedTransfer,\"title\":\"View recurring transfer\",\"selectedTeamId\":_vm.teamId,\"type\":_vm.transferModalType,\"readonly\":true}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport IRecurringTransfer from '@/interfaces/IRecurringTransfer';\r\nimport { transferService } from '@/main';\r\nimport PageRender from '@/models/PageRender';\r\nimport to from 'await-to-js';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport TransferModalComponent from '../modals/transfer-modal';\r\nimport { TransferType } from '@/models/TransferType';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport moment from 'moment';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class RecurringTransfersGrid extends PageRender {\r\n @Prop() public teamId: number;\r\n @Prop() public groupId: number;\r\n @Prop() public personId: number;\r\n @Prop() public period: string;\r\n @Prop({ default: true }) public showTitle: boolean;\r\n @Prop({ default: false }) public compensations: boolean;\r\n @Prop({ default: false }) public showIfEmpty: boolean;\r\n\r\n public recurringTransfersLoading: boolean = true;\r\n public transfers: IRecurringTransfer[] = [];\r\n public selectedTransfer: IRecurringTransfer = null;\r\n public columns = [\r\n { title: 'AMOUNT', field: 'amount', width: 100 },\r\n { title: 'SENDER', field: 'senderAccount.name', cell: this.renderSender, width: 250 },\r\n { title: 'RECEIVER', field: 'receiverAccount.name', cell: this.renderReceiver, width: 250 },\r\n { title: 'DESCRIPTION', field: 'description' },\r\n { title: 'INITIATOR', field: 'initiator.name', width: 250 },\r\n { title: 'SCHEDULE', field: 'schedule', width: 100 },\r\n { title: 'CREATED', cell: this.renderCreated, width: 150 },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 100 },\r\n ];\r\n\r\n public $refs!: {\r\n transferModal: TransferModalComponent;\r\n };\r\n\r\n public async mounted() {\r\n await this.refreshData();\r\n }\r\n\r\n public async refreshData() {\r\n this.recurringTransfersLoading = true;\r\n this.transfers = await this.getTransfers();\r\n this.recurringTransfersLoading = false;\r\n }\r\n\r\n public get teams() {\r\n return this.selectedTransfer ? [this.selectedTransfer.senderTeam, this.selectedTransfer.receiverTeam] : [];\r\n }\r\n\r\n public get transferModalType() {\r\n return TransferType.GroupToGroup;\r\n }\r\n\r\n private async getTransfers() {\r\n const [err, response] = await to(transferService.getReucrringTransfers(this.period, this.teamId, this.groupId));\r\n\r\n if (err) {\r\n this.clearAndShowError('Failed to load transfers.', null);\r\n return [];\r\n }\r\n return this.filterTransfers(response.data);\r\n }\r\n\r\n private filterTransfers(transfers: IRecurringTransfer[]) {\r\n return transfers.filter((transfer: IRecurringTransfer) => {\r\n if (this.compensations) {\r\n return transfer.receiverAccount.accountType === AccountType.Person;\r\n } else if (!this.compensations && this.groupId && !this.personId) {\r\n return transfer.senderAccount.accountType === AccountType.GroupSavings;\r\n } else if (!this.compensations && !this.groupId && !this.personId) {\r\n return transfer.senderAccount.accountType === AccountType.Person && transfer.receiverAccount.accountType === AccountType.Person;\r\n }\r\n });\r\n }\r\n\r\n private renderSender(h, _, row: { dataItem: IRecurringTransfer }) {\r\n const transfer = row.dataItem;\r\n const senders = [transfer.senderTeam ? transfer.senderTeam.name : '', transfer.senderGroup ? transfer.senderGroup.name : ''].filter(\r\n (v) => !!v,\r\n );\r\n\r\n if (transfer.receiverAccount.accountType === AccountType.Person) {\r\n senders.push(transfer.receiverAccount.name);\r\n }\r\n return h('td', senders.join(' - '));\r\n }\r\n\r\n private renderReceiver(h, _, row) {\r\n const transfer: IRecurringTransfer = row.dataItem;\r\n const receivers = [transfer.receiverTeam ? transfer.receiverTeam.name : '', transfer.receiverGroup ? transfer.receiverGroup.name : ''].filter(\r\n (v) => !!v,\r\n );\r\n if (transfer.receiverAccount.accountType === AccountType.Person) {\r\n receivers.push(transfer.receiverAccount.name);\r\n }\r\n return h('td', receivers.join(' - '));\r\n }\r\n\r\n private renderCreated(h, _, row) {\r\n const transfer: IRecurringTransfer = row.dataItem;\r\n return h('td', moment(transfer.dateCreated).format('DD-MM-YYYY'));\r\n }\r\n\r\n private renderActions(h, _, row) {\r\n const actions = [{ title: 'view', function: this.viewRecurringTransfer }, { title: 'stop', function: this.stopRecurringTransfer }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n private async stopRecurringTransfer(transfer: IRecurringTransfer) {\r\n let period = this.period;\r\n\r\n if (!period) {\r\n period = periodModule.selectedPeriod;\r\n }\r\n\r\n this.showPending('STOP_RECURRING_TRANSFER_PENDING');\r\n const [err] = await to(transferService.stopRecurringTransfer(transfer.recurringTransferId, period));\r\n if (err) {\r\n this.clearAndShowError('STOP_RECURRING_TRANSFER_FAILED', null);\r\n } else {\r\n this.clearAndShowSuccess('STOP_RECURRING_TRANSFER_SUCCESS');\r\n await this.refreshData();\r\n }\r\n }\r\n\r\n private viewRecurringTransfer(transfer: IRecurringTransfer) {\r\n this.selectedTransfer = transfer;\r\n this.$nextTick(async () => {\r\n this.$refs.transferModal.editMode = true;\r\n await this.$refs.transferModal.initRecurringTransfer(transfer);\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./recurring-transfers-grid.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./recurring-transfers-grid.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./recurring-transfers-grid.vue?vue&type=template&id=71235016&\"\nimport script from \"./recurring-transfers-grid.ts?vue&type=script&lang=js&\"\nexport * from \"./recurring-transfers-grid.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (!_vm.inEditMode && _vm.action)?_c('prd-action-btn',{attrs:{\"variant\":_vm.variant,\"size\":_vm.size,\"action\":_vm.action,\"disabled\":_vm.disabled}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:(_vm.translateKey),expression:\"translateKey\"}]})]):(!_vm.inEditMode)?_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:(_vm.translateKey),expression:\"translateKey\"}],attrs:{\"variant\":_vm.variant,\"size\":_vm.size,\"disabled\":_vm.disabled},on:{\"click\":_vm.clicked}}):_c('b-button',{attrs:{\"variant\":_vm.variant,\"size\":_vm.size}},[_c('prd-translate-text',{attrs:{\"translate-key\":_vm.translateKey,\"variant\":_vm.variant}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport TranslateBase from './base';\r\nimport PrdActionBtn from '@prd/shared-ui/src/components/Form/ActionButton.vue';\r\n\r\n@Component({\r\n components: {\r\n PrdActionBtn,\r\n }\r\n})\r\nexport default class TranslateButton extends TranslateBase {\r\n @Prop() public variant: string;\r\n @Prop() public size: string;\r\n @Prop() public action: CallableFunction;\r\n @Prop({ type: Boolean, default: false }) public disabled: boolean;\r\n\r\n public clicked(e) {\r\n this.$emit('click', e);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./button.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./button.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./button.vue?vue&type=template&id=b323286e&\"\nimport script from \"./button.ts?vue&type=script&lang=js&\"\nexport * from \"./button.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.editMode && _vm.inEditMode)?_c('b-input-group',[_c('b-input',{on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"space\",32,$event.key,[\" \",\"Spacebar\"])){ return null; }return _vm.onSpace.apply(null, arguments)}},model:{value:(_vm.virtualValue),callback:function ($$v) {_vm.virtualValue=$$v},expression:\"virtualValue\"}}),_c('b-button',{attrs:{\"size\":\"sm\"},on:{\"click\":_vm.save}},[_c('i',{staticClass:\"icon-check\"})])],1):_c('div',{staticClass:\"prd-translate\",class:[{'inline': _vm.inline, 'edit-mode': _vm.inEditMode}, _vm.variant]},[_c('span',[_vm._v(_vm._s(_vm.value))]),(_vm.inEditMode)?_c('div',{staticClass:\"edit-toggle\",on:{\"click\":_vm.edit}},[_c('i',{staticClass:\"icon-pencil\"})]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport TranslateBase from './base';\r\n\r\n@Component\r\nexport default class TranslateTextInline extends TranslateBase {\r\n @Prop({ default: () => '' }) public variant;\r\n\r\n public onClick(e) {\r\n this.$emit('click', e);\r\n }\r\n\r\n public onSpace(e) {\r\n e.preventDefault();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./text-inline.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./text-inline.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./text-inline.vue?vue&type=template&id=54092728&\"\nimport script from \"./text-inline.ts?vue&type=script&lang=js&\"\nexport * from \"./text-inline.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (!_vm.inEditMode)?_c(_vm.element,{tag:\"component\",class:[{'inline': _vm.inline, 'column': _vm.column}, _vm.variant],domProps:{\"innerHTML\":_vm._s(_vm.value)}}):_c(_vm.element,{tag:\"component\",staticClass:\"prd-translate\",class:[{'inline': _vm.inline, 'edit-mode': _vm.inEditMode, 'column': _vm.column}, _vm.variant],attrs:{\"id\":_vm.id}},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.value)}}),(_vm.inEditMode)?_c('div',{staticClass:\"edit-toggle\",on:{\"click\":_vm.edit}},[_c('i',{staticClass:\"icon-pencil\"})]):_vm._e(),(_vm.inEditMode)?_c('b-popover',{attrs:{\"target\":_vm.id,\"show\":_vm.editMode,\"placement\":\"bottom\"},on:{\"update:show\":function($event){_vm.editMode=$event}}},[_c('b-input-group',[_c('b-input',{ref:\"input\",attrs:{\"value\":_vm.rawValue,\"size\":\"sm\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.save.apply(null, arguments)},\"input\":_vm.setValue}}),_c('b-button',{attrs:{\"size\":\"sm\"},on:{\"click\":_vm.save}},[_c('i',{staticClass:\"icon-check\"})])],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport TranslateBase from './base';\r\n\r\n@Component\r\nexport default class TranslateText extends TranslateBase {\r\n @Prop({ default: () => '' }) public variant;\r\n @Prop({ default: () => 'div' }) public element;\r\n\r\n public onSpace(e) {\r\n e.preventDefault();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./text.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./text.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./text.vue?vue&type=template&id=de866454&\"\nimport script from \"./text.ts?vue&type=script&lang=js&\"\nexport * from \"./text.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('prd-detail-layout',[_c('prd-toolbar',{staticClass:\"mb-3\",attrs:{\"space-between\":\"\",\"stretch\":\"\"}},[_c('template',{slot:\"left\"},[_c('div',{staticStyle:{\"width\":\"250px\"}},[(_vm.loading)?_c('b-skeleton'):_c('prd-multiselect',{attrs:{\"placeholder\":\"Select a view\",\"options\":_vm.views,\"label\":\"name\",\"disabled\":_vm.loadingGraph},on:{\"select\":_vm.onSelectView},model:{value:(_vm.insight),callback:function ($$v) {_vm.insight=$$v},expression:\"insight\"}})],1)]),(!_vm.loading)?_c('template',{slot:\"right\"},[_c('grid-period-range-filter',{attrs:{\"hide-refresh\":\"\",\"disabled\":_vm.loadingGraph},on:{\"filter-input\":_vm.periodChanged}}),_c('b-btn',{attrs:{\"size\":\"sm\",\"disabled\":_vm.loadingGraph},on:{\"click\":function($event){return _vm.fetchAndDraw(true)}}},[_c('i',{staticClass:\"icon-rotate-cw\"})])],1):_vm._e()],2),(_vm.insight)?_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('div',{staticClass:\"graph-grid\"},[_c('div',{staticClass:\"graph-grid-column\"},[_c('div',{staticClass:\"graph-grid-title\"},[(_vm.canGoUp)?_c('b-btn',{attrs:{\"size\":\"sm\"},on:{\"click\":_vm.goUp}},[_vm._v(\"Back\")]):_vm._e()],1),_c('div',{staticClass:\"graph-grid-svg\"},[_c('prd-svg-canvas',{ref:\"svgPrimaryCanvas\",on:{\"resized\":_vm.onResize}}),(_vm.loadingGraph)?_c('prd-loader',{staticClass:\"bg-white\",attrs:{\"cover\":\"\",\"text\":\"Loading insights\"}},[_c('spinner',{attrs:{\"color\":\"white\",\"height\":\"100px\"}})],1):_vm._e()],1)]),_c('div',{staticClass:\"graph-grid-column\"},[_c('div',{staticClass:\"graph-grid-title justify-content-end\"},[_c('b-btn',{attrs:{\"size\":\"sm\"},on:{\"click\":function($event){return _vm.onZoom(1)}}},[_c('i',{staticClass:\"icon-rotate-ccw\"})]),_c('b-btn-group',[_c('b-btn',{attrs:{\"size\":\"sm\"},on:{\"click\":function($event){return _vm.onZoom(_vm.zoom * 0.75)}}},[_c('i',{staticClass:\"icon-zoom-out\"})]),_c('b-btn',{attrs:{\"size\":\"sm\"},on:{\"click\":function($event){return _vm.onZoom(_vm.zoom / 0.75)}}},[_c('i',{staticClass:\"icon-zoom-in\"})])],1),_c('b-dd',{staticClass:\"p-0\",attrs:{\"size\":\"sm\",\"no-caret\":\"\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('i',{staticClass:\"icon-settings\"})]},proxy:true}],null,false,2616120342)},[_c('b-dd-form',[_c('b-form-group',{attrs:{\"label\":\"Rotate\",\"description\":(\"(\" + _vm.rotate + \" graden)\")}},[_c('b-input',{attrs:{\"type\":\"range\",\"min\":\"-180\",\"max\":\"180\"},on:{\"input\":_vm.updateGraphSettings},model:{value:(_vm.rotate),callback:function ($$v) {_vm.rotate=$$v},expression:\"rotate\"}})],1),_c('b-form-group',{attrs:{\"label\":\"Margin\",\"description\":(\"(\" + _vm.margin + \")\")}},[_c('b-input',{attrs:{\"type\":\"range\",\"min\":\"10\",\"max\":\"200\"},on:{\"input\":_vm.updateGraphSettings},model:{value:(_vm.margin),callback:function ($$v) {_vm.margin=$$v},expression:\"margin\"}})],1)],1)],1)],1),_c('div',{staticStyle:{\"height\":\"20rem\",\"margin\":\"0 1.25rem\"}},[_c('prd-svg-canvas',{ref:\"svgSecondaryCanvas\"})],1),_c('div',{staticClass:\"graph-grid-info\"},[(_vm.incoming.length)?_c('div',{staticClass:\"mb-5\"},[_c('h5',[_vm._v(_vm._s(_vm._f(\"translate\")('INCOMING_FROM')))]),_c('table',{staticClass:\"table table-sm table-borderless\"},_vm._l((_vm.incoming),function(edge,indexI){return _c('tr',{key:(\"incoming_\" + (edge.origin) + \"_\" + indexI)},[_c('td',[_vm._v(_vm._s(_vm.nodeName(edge.origin)))]),_c('td',{staticClass:\"text-right\",staticStyle:{\"white-space\":\"nowrap\"}},[_c('b',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(edge.label)))]),_c('span',{staticClass:\"k-icon\",class:{ 'k-i-arrow-60-up text-success': edge.label > 0, ' k-i-arrow-60-down text-danger': edge.label < 0 }})])])}),0)]):_vm._e(),(_vm.outgoing.length)?_c('div',{staticClass:\"mb-5\"},[_c('h5',[_vm._v(_vm._s(_vm._f(\"translate\")('OUTGOING_TO')))]),_c('table',{staticClass:\"table table-sm table-borderless\"},_vm._l((_vm.outgoing),function(edge,indexO){return _c('tr',{key:(\"outgoing_\" + (edge.destination) + \"_\" + indexO)},[_c('td',[_vm._v(_vm._s(_vm.nodeName(edge.destination)))]),_c('td',{staticClass:\"text-right\",staticStyle:{\"white-space\":\"nowrap\"}},[_c('b',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(edge.label)))]),_c('span',{staticClass:\"k-icon\",class:{ 'k-i-arrow-60-up text-success': edge.label < 0, ' k-i-arrow-60-down text-danger': edge.label > 0 }})])])}),0)]):_vm._e()])])])]):_vm._e(),(_vm.insight && _vm.ecologyTotals)?_c('prd-card',{staticClass:\"mt-3\",attrs:{\"title\":\"Insights totals\"}},[_c('finance-totals',{attrs:{\"totals\":[_vm.ecologyTotals]}})],1):_vm._e(),(_vm.insight && _vm.teamTotals)?[_c('div',{staticClass:\"mt-3\"}),_vm._l((_vm.teamTotals),function(totals){return _c('prd-card',{key:totals.teamId,staticClass:\"mb-3\",attrs:{\"title\":totals.name}},[_c('finance-totals',{attrs:{\"totals\":[totals],\"expanded\":\"\"}})],1)})]:_vm._e(),(_vm.insight && _vm.activityTotals)?[_c('div',{staticClass:\"mt-3\"}),_vm._l((_vm.activityTotals),function(totals){return _c('prd-card',{key:totals.id,staticClass:\"mb-3\",attrs:{\"title\":totals.name}},[_c('finance-totals',{attrs:{\"totals\":totals.totals}})],1)})]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export enum MapView {\r\n Ecology = 'Ecology',\r\n Team = 'Team',\r\n Activity = 'Activity',\r\n Member = 'Member',\r\n};\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"prd-canvas\"})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { SVG, Svg } from '@svgdotjs/svg.js';\r\nimport Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class PrdCanvasComponent extends Vue {\r\n public canvas: Svg = null;\r\n\r\n public mounted() {\r\n this.canvas = SVG().addTo(this.getContainer());\r\n this.fitContainer();\r\n\r\n this.$emit('loaded', this.canvas);\r\n window.addEventListener('resize', this.onResized);\r\n }\r\n\r\n public beforeDestroy() {\r\n window.removeEventListener('resize', this.onResized);\r\n }\r\n\r\n private onResized() {\r\n this.fitContainer();\r\n if (this.canvas) {\r\n this.$emit('resized', this.canvas);\r\n }\r\n }\r\n\r\n private fitContainer() {\r\n const container: HTMLElement = this.getContainer();\r\n const rect = container.getBoundingClientRect();\r\n const height = rect.height;\r\n const width = rect.width;\r\n\r\n if (this.canvas) {\r\n this.canvas.size(width, height);\r\n }\r\n }\r\n\r\n private getContainer(): HTMLElement {\r\n return this.$el as HTMLElement;\r\n }\r\n}\r\n","export enum HorizontalAlign {\r\n Center = 'Center',\r\n Right = 'Right',\r\n Left = 'Left',\r\n};\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./prd-svg-canvas.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./prd-svg-canvas.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./prd-svg-canvas.vue?vue&type=template&id=29a9832c&\"\nimport script from \"./prd-svg-canvas.ts?vue&type=script&lang=js&\"\nexport * from \"./prd-svg-canvas.ts?vue&type=script&lang=js&\"\nimport style0 from \"./prd-svg-canvas.vue?vue&type=style&index=0&id=29a9832c&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 { G, Svg } from '@svgdotjs/svg.js';\r\nimport MapNode from '../models/MapNode';\r\n\r\nexport default class SvgRender {\r\n public id = '';\r\n public type = '';\r\n public canvas: Svg = null;\r\n public container: G = null;\r\n public allNodes: MapNode[] = [];\r\n public empty: boolean = true;\r\n protected minScale = 0;\r\n private callbacks: { [key: string]: CallableFunction } = {};\r\n private zoomBy: number = 1;\r\n\r\n public render() {\r\n return;\r\n }\r\n\r\n public redraw() {\r\n this.render();\r\n }\r\n\r\n public clear() {\r\n this.canvas.clear();\r\n this.empty = true;\r\n }\r\n\r\n public fit() {\r\n const smallest = Math.min(+this.canvas.width(), +this.canvas.height());\r\n const ratio = smallest / (+this.container.bbox().width);\r\n const scale = (ratio >= this.minScale ? ratio : this.minScale) * this.zoomBy;\r\n this.container.transform({ scale });\r\n }\r\n\r\n public setSize(width: number, height: number) {\r\n this.canvas.size(width, height);\r\n }\r\n\r\n public on(name: string, callback) {\r\n this.callbacks[name] = callback;\r\n }\r\n\r\n public zoom(zoom: number) {\r\n this.zoomBy = zoom;\r\n }\r\n\r\n public setId(id: string) {\r\n this.id = id;\r\n }\r\n\r\n protected fire(name: string, params: any) {\r\n if (this.callbacks[name]) {\r\n this.callbacks[name](params);\r\n }\r\n }\r\n}\r\n","export enum VerticalAlign {\r\n Top = 'Top',\r\n Bottom = 'Bottom',\r\n Center = 'Center',\r\n};\r\n","import { Element, G, Svg } from '@svgdotjs/svg.js';\r\nimport { HorizontalAlign } from './HorizontalAlign';\r\nimport { VerticalAlign } from './VerticalAlign';\r\n\r\nexport default class SvgHelper {\r\n public static hAlign(node: Element, align: HorizontalAlign) {\r\n const box = this.getParentBox(node);\r\n switch (align) {\r\n case HorizontalAlign.Center:\r\n node.x((box.width - +node.bbox().width) / 2);\r\n break;\r\n case HorizontalAlign.Right:\r\n node.x(box.width - node.bbox().width);\r\n break;\r\n case HorizontalAlign.Left:\r\n node.x(0);\r\n break;\r\n }\r\n }\r\n\r\n public static vAlign(node: Element, align: VerticalAlign) {\r\n const box = this.getParentBox(node);\r\n switch(align) {\r\n case VerticalAlign.Center:\r\n node.y((box.height - node.bbox().height) / 2);\r\n break;\r\n }\r\n }\r\n\r\n public static center(node: Element) {\r\n this.hAlign(node, HorizontalAlign.Center);\r\n this.vAlign(node, VerticalAlign.Center);\r\n }\r\n\r\n public static stackChildren(node: Element, align: HorizontalAlign) {\r\n let y = 0;\r\n node.children().forEach((child: Element) => {\r\n child.y(y);\r\n this.hAlign(child, align);\r\n y += child.bbox().height;\r\n });\r\n }\r\n\r\n public static verticalCenter(node: Element, parent: Element) {\r\n node.move(node.x(), (+parent.height() - +node.height()) / 2);\r\n }\r\n\r\n public static lines(container: G, lines: string[], align: HorizontalAlign, font: any = null) {\r\n lines.forEach((line) => {\r\n const text = container.text(line);\r\n if (font) {\r\n text.font(font);\r\n }\r\n });\r\n this.stackChildren(container, align);\r\n }\r\n\r\n private static getParentBox(node: Element) {\r\n if (!node.parent()) {\r\n throw Error('No parent specified');\r\n }\r\n\r\n if (node.parent().type === 'svg') {\r\n const parent = node.parent() as Svg;\r\n return { width: +parent.width(), height: +parent.height(), x: +parent.x(), y: +parent.y() };\r\n }\r\n return (node.parent() as Element).bbox();\r\n }\r\n}\r\n","export enum CellScore {\r\n Bad = 0,\r\n BelowAvarage = 1,\r\n AboveAvarage = 2,\r\n Ambigious = 3,\r\n Unknown = 4,\r\n}\r\n","import MapCellConfig from './MapCellConfig';\r\n\r\nexport default class MapConfig {\r\n public static animationTime = 200;\r\n public static maxNodes = 100;\r\n public static maxEdges = 1000;\r\n\r\n public static fontSize = 12;\r\n public static title = { size: 32, weight: 'bold' };\r\n public static subTitle = { size: 24 };\r\n public static text = { size: 20 };\r\n public static textMutedColor = '#495057';\r\n public static padding = 16;\r\n public static green = '#11AA6F';\r\n public static lightGreen = '#B4DFCC';\r\n public static orange = '#ffbc00';\r\n public static lightOrange = '#FBE8AB'\r\n public static red = '#ff0026';\r\n public static lightRed = '#F2A7B2';\r\n public static purple = '#7011AA';\r\n public static lightPurple = '#DCB4DF';\r\n public static blue = '#228be6';\r\n public static lightBlue = '#B7D4F3';\r\n\r\n // Main cell\r\n public static containerBg = '#fff';\r\n public static mainCellBg = 'transparent';\r\n public static mainCellStroke = { color: '#f2f6f9', width: 6 };\r\n\r\n // Cell\r\n public static cell: MapCellConfig = {\r\n radius: 15,\r\n fill: '#D9EBF9',\r\n stroke: { color: '#1F75D5', width: 2 },\r\n };\r\n\r\n // Edges\r\n public static edgeStroke = { color: '#ced4da', width: 3, linecap: 'round' };\r\n public static edgeStrokeGreen = { color: '#11AA6F' };\r\n public static edgeStrokeRed = { color: '#ff0026' };\r\n\r\n // External cells\r\n public static externalCell: MapCellConfig = {\r\n radius: 20,\r\n fill: '#adb5bd',\r\n stroke: { color: '#495057', width: 2 },\r\n };\r\n}\r\n","import { CellScore } from './CellScore';\r\nimport MapConfig from './MapConfig';\r\n\r\nexport default class CellColor {\r\n public static score(score: CellScore) {\r\n const map = {\r\n [CellScore.Bad]: { light: MapConfig.lightRed, dark: MapConfig.red },\r\n [CellScore.BelowAvarage]: { light: MapConfig.lightOrange, dark: MapConfig.orange },\r\n [CellScore.AboveAvarage]: { light: MapConfig.lightGreen, dark: MapConfig.green },\r\n [CellScore.Ambigious]: { light: MapConfig.lightPurple, dark: MapConfig.purple },\r\n [CellScore.Unknown]: { light: MapConfig.lightBlue, dark: MapConfig.blue },\r\n }\r\n\r\n return map[score];\r\n }\r\n}\r\n","export enum CellIndicatorScore {\r\n Negative = 0,\r\n Positive = 1,\r\n Unkown = 2\r\n}\r\n","import { CellIndicatorScore } from './CellIndicatorScore';\r\nimport { CellScore } from './CellScore';\r\n\r\nexport default class MapCellData {\r\n public id?: number | string = null;\r\n public name = '';\r\n public subtitle = '';\r\n public title = '';\r\n public labels: string[] = [];\r\n public values: string[] = [];\r\n public indicatorScore: CellIndicatorScore = CellIndicatorScore.Unkown;\r\n public colorScore: CellScore = CellScore.Unknown;\r\n}\r\n","import { Container, G, Svg } from '@svgdotjs/svg.js';\r\nimport { HorizontalAlign } from './HorizontalAlign';\r\nimport SvgRender from './SvgRender';\r\nimport SvgHelper from './SvgHelper';\r\nimport CellColor from '../models/CellColor';\r\nimport MapConfig from '../models/MapConfig';\r\nimport MapCellData from '../models/MapCellData';\r\nimport { CellIndicatorScore } from '../models/CellIndicatorScore';\r\n\r\nexport default class SvgRenderInfoCell extends SvgRender {\r\n public type = 'InfoCell';\r\n public canvas: Svg = null;\r\n private data: MapCellData = new MapCellData();\r\n\r\n constructor(canvas?: Svg) {\r\n super();\r\n this.canvas = canvas;\r\n }\r\n\r\n public setData(data: MapCellData) {\r\n this.data = data;\r\n }\r\n\r\n public getId() {\r\n return this.data.id;\r\n }\r\n\r\n public render() {\r\n this.canvas.clear();\r\n this.container = this.canvas.group();\r\n this.container.addClass('cursor-pointer');\r\n this.container.click(() => this.fire('navigate', true));\r\n\r\n const circleBackground = this.container.group();\r\n const circleContent = this.container.group();\r\n this.drawHeader(circleContent.group().id('header'));\r\n this.drawTextContainer(circleContent);\r\n SvgHelper.stackChildren(circleContent, HorizontalAlign.Center);\r\n\r\n const size = Math.max(+this.container.width() / 2, +this.container.height() / 2);\r\n this.drawCircle(circleBackground, size);\r\n\r\n SvgHelper.center(circleContent);\r\n SvgHelper.center(this.container);\r\n }\r\n\r\n private drawHeader(header: G): G {\r\n const title = header.group().id('title');\r\n title.text(this.data.name).font(MapConfig.text);\r\n const t = title.text(this.data.title).font(MapConfig.title);\r\n SvgHelper.stackChildren(title, HorizontalAlign.Center);\r\n t.dy(24);\r\n\r\n const subtitle = header.group().id('subtitle');\r\n const subtitleText = subtitle.text(this.data.subtitle).font(MapConfig.subTitle);\r\n const indicator = this.indicator(subtitle, subtitleText.bbox().height / 2)\r\n .fill(MapConfig.red)\r\n .move(subtitleText.bbox().width + 8, -subtitleText.bbox().height / 2);\r\n\r\n if (this.data.indicatorScore === CellIndicatorScore.Positive) {\r\n indicator.rotate(180).fill(MapConfig.green);\r\n }\r\n\r\n SvgHelper.stackChildren(header, HorizontalAlign.Center);\r\n return header;\r\n }\r\n\r\n private drawTextContainer(container: G) {\r\n const textContainer = container.group();\r\n const labels = textContainer.group().id('labels');\r\n const values = textContainer.group().id('values');\r\n\r\n SvgHelper.lines(labels, this.data.labels, HorizontalAlign.Right, MapConfig.text);\r\n labels.font(MapConfig.text).fill(MapConfig.textMutedColor);\r\n\r\n SvgHelper.lines(values, this.data.values, HorizontalAlign.Left, MapConfig.text);\r\n values.font(MapConfig.text);\r\n\r\n const width = Math.max(labels.bbox().width, values.bbox().width);\r\n const height = Math.max(labels.bbox().height, values.bbox().height);\r\n\r\n values.dx(width + 16);\r\n labels.dx(width - labels.bbox().width);\r\n textContainer.rect(width * 2, height + 48).dy(-24).fill('transparent');\r\n return textContainer;\r\n }\r\n\r\n private drawCircle(container: G, size: number) {\r\n const radius = Math.sqrt(size**2 + size**2) + MapConfig.padding;\r\n const circle = container.circle(radius * 2);\r\n circle.stroke(MapConfig.cell.stroke);\r\n\r\n const colors = CellColor.score(this.data.colorScore);\r\n circle.fill(colors.light);\r\n circle.stroke({ color: colors.dark });\r\n }\r\n\r\n private indicator(container: Container, size: number) {\r\n return container.polyline(`0,0 ${size / 2},${size} ${size},0`);\r\n }\r\n}\r\n","import { Container } from '@svgdotjs/svg.js';\r\nimport ISvgElement from './ISvgElement';\r\n\r\nexport default class SvgLabel implements ISvgElement {\r\n private paddingY = 4;\r\n private paddingX = 8;\r\n private radius = 4;\r\n private fill = '#fff';\r\n private stroke = { width: 1, color: '#f2f6f9' };\r\n private container: Container;\r\n\r\n constructor(container: Container) {\r\n this.container = container;\r\n }\r\n\r\n public draw(content: string) {\r\n const label = this.container.group();\r\n const text = label.text(content).move(0, 0);\r\n const rect = label.rect(text.bbox().width + this.paddingX, text.bbox().height + this.paddingY);\r\n rect.fill(this.fill).stroke(this.stroke);\r\n rect.x(-this.paddingX / 2).y(-this.paddingY / 2);\r\n rect.insertBefore(text);\r\n rect.radius(this.radius, this.radius);\r\n\r\n return label;\r\n }\r\n}\r\n","import { Circle, Container, Element, G } from '@svgdotjs/svg.js';\r\nimport MapCellConfig from '../models/MapCellConfig';\r\nimport ISvgElement from './ISvgElement';\r\nimport SvgLabel from './SvgLabel';\r\n\r\nexport default class SvgCircleCell implements ISvgElement {\r\n private container: Container;\r\n private cellGroup: G;\r\n private circle: Circle;\r\n\r\n constructor(container: Container) {\r\n this.container = container;\r\n }\r\n\r\n public draw(parent: Circle, angle: number, config: MapCellConfig): Element {\r\n const parentRadius = parent.bbox().width / 2;\r\n const x = +parent.x() + parentRadius + (Math.cos(angle) * parentRadius) - config.radius;\r\n const y = +parent.y() + parentRadius + (Math.sin(angle) * parentRadius) - config.radius;\r\n const group = this.container.group();\r\n const circle = group.circle(config.radius * 2);\r\n circle.fill(config.fill);\r\n circle.stroke(config.stroke);\r\n circle.id(`cell-${config.id}`);\r\n group.move(x, y);\r\n\r\n this.cellGroup = group;\r\n this.circle = circle;\r\n return circle;\r\n }\r\n\r\n public label(content: string): Element {\r\n if (!this.circle || !this.cellGroup) {\r\n throw new Error('The cell must be drawn before the label');\r\n }\r\n\r\n const l = new SvgLabel(this.cellGroup).draw(content);\r\n const textX = (this.circle.bbox().width - l.bbox().width) / 2;\r\n l.x(+this.circle.x() + textX);\r\n l.y(+this.circle.y() - l.bbox().height - 4);\r\n\r\n return l;\r\n }\r\n\r\n public getGroup() {\r\n return this.cellGroup;\r\n }\r\n}\r\n","import { Circle, Container, G, Svg } from '@svgdotjs/svg.js';\r\nimport CellColor from '../models/CellColor';\r\nimport { CellScore } from '../models/CellScore';\r\nimport MapCell from '../models/MapCell';\r\nimport MapCellConfig from '../models/MapCellConfig';\r\nimport MapConfig from '../models/MapConfig';\r\nimport MapData from '../models/MapData';\r\nimport MapEdge from '../models/MapEdge';\r\nimport MapNode from '../models/MapNode';\r\nimport SvgCircleCell from './SvgCircleCell';\r\nimport SvgHelper from './SvgHelper';\r\nimport SvgRender from './SvgRender';\r\n\r\nexport default class SvgRenderCellSpace extends SvgRender {\r\n public type = 'CellSpace';\r\n public selectedId: number | string = 0;\r\n public extGroup: G;\r\n public edgesGroup: G;\r\n public cellsGroup: G;\r\n protected minScale = 0;\r\n private cells: MapCell[] = [];\r\n private nodes: MapNode[] = [];\r\n private edges: MapEdge[] = [];\r\n private externalNodes: MapNode[] = [];\r\n private rotateBy = 45;\r\n private margin = 100;\r\n\r\n constructor(canvas?: Svg) {\r\n super();\r\n this.canvas = canvas;\r\n }\r\n\r\n public setData(data: MapData) {\r\n if (data.nodes.length > MapConfig.maxNodes) {\r\n console.warn(`To much nodes, only ${MapConfig.maxNodes} are rendered`);\r\n }\r\n\r\n if (data.edges.length > MapConfig.maxEdges) {\r\n console.warn(`To much edges, only ${MapConfig.maxEdges} are rendered`);\r\n }\r\n\r\n this.nodes = data.nodes.slice(0, MapConfig.maxNodes);\r\n this.edges = data.edges.slice(0, MapConfig.maxEdges);\r\n this.externalNodes = data.external;\r\n this.allNodes = [...this.nodes, ...this.externalNodes];\r\n }\r\n\r\n public render() {\r\n this.empty = false;\r\n this.canvas.clear();\r\n this.canvas.click(() => this.resetHighlight());\r\n\r\n this.container = this.canvas.group().draggable();\r\n this.edgesGroup = this.container.group();\r\n this.extGroup = this.container.group();\r\n this.cellsGroup = this.container.group();\r\n this.cells = [];\r\n\r\n const mainRadius = this.calculateMainCircleRadius(this.nodes.length);\r\n const externalRadius = this.calculateExternalCircleRadius(mainRadius);\r\n const mainCircle = this.renderMain(this.container, mainRadius);\r\n const externalCircle = this.renderExternal(this.container, externalRadius);\r\n mainCircle.insertBefore(this.edgesGroup);\r\n externalCircle.insertBefore(this.edgesGroup);\r\n\r\n SvgHelper.center(mainCircle);\r\n SvgHelper.center(externalCircle);\r\n SvgHelper.center(this.container);\r\n\r\n this.nodes.forEach((node: MapNode, index: number) => {\r\n const degree = this.rotateBy + (360 / this.nodes.length) * index;\r\n const config = MapConfig.cell;\r\n const colors = CellColor.score(node.data ? node.data.colorScore : CellScore.Unknown);\r\n config.id = `cell-${node.id}`;\r\n config.fill = colors.light;\r\n config.stroke.color = colors.dark;\r\n const mapCell = this.renderCell(this.cellsGroup, mainCircle, node, degree, config);\r\n mapCell.group.click((e: Event) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.resetHighlight();\r\n this.fire('navigate', node.id);\r\n });\r\n this.cells.push(mapCell);\r\n });\r\n\r\n this.externalNodes.forEach((node: MapNode, index: number) => {\r\n const degree = -45 + (360 / this.externalNodes.length) * index;\r\n const config = MapConfig.externalCell;\r\n config.id = `external-${node.id}`;\r\n const mapCell = this.renderCell(this.extGroup, externalCircle, node, degree, config);\r\n mapCell.group.click((e: Event) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n });\r\n this.cells.push(mapCell);\r\n });\r\n\r\n this.renderEdges(this.edgesGroup, this.edges, this.cells);\r\n }\r\n\r\n public redraw() {\r\n this.render();\r\n if (this.selectedId) {\r\n this.highlight(this.selectedId);\r\n }\r\n }\r\n\r\n public rotate(degree: number) {\r\n this.rotateBy = degree;\r\n }\r\n\r\n public setMargin(margin: number) {\r\n this.margin = margin;\r\n }\r\n\r\n private renderMain(container: Container, radius: number) {\r\n const circle = container.circle(radius * 2);\r\n circle.stroke(MapConfig.mainCellStroke);\r\n circle.fill(MapConfig.mainCellBg);\r\n return circle;\r\n }\r\n\r\n private renderExternal(container: Container, radius: number) {\r\n const circle = container.circle(radius * 2);\r\n circle.fill('transparent');\r\n return circle;\r\n }\r\n\r\n private renderCell(group: G, mainCircle: Circle, node: MapNode, degree: number, config: MapCellConfig): MapCell {\r\n const angle = (degree * Math.PI) / 180;\r\n const cell = new SvgCircleCell(group);\r\n const circle = cell.draw(mainCircle, angle, config);\r\n const cellGroup = cell.getGroup();\r\n cell.label(node.title);\r\n\r\n let timeout = null;\r\n cellGroup.mouseenter(() => {\r\n clearTimeout(timeout);\r\n cellGroup.transform({ scale: 1.1 });\r\n this.highlight(node.id);\r\n });\r\n cellGroup.mouseleave(() => {\r\n clearTimeout(timeout);\r\n timeout = setTimeout(() => {\r\n cellGroup.transform({ scale: 1 });\r\n this.resetHighlight();\r\n }, 50);\r\n });\r\n cellGroup.attr({ class: 'cursor-pointer' });\r\n\r\n return {\r\n id: node.id,\r\n degree,\r\n circle,\r\n group: cellGroup,\r\n };\r\n }\r\n\r\n private renderEdges(container: G, edges: MapEdge[], cells: MapCell[]) {\r\n if (cells.length < 1) {\r\n return;\r\n }\r\n\r\n container.clear();\r\n for (let i = 0; i < edges.length; i++) {\r\n const origin = this.findCell(cells, edges[i].origin);\r\n const destination = this.findCell(cells, edges[i].destination);\r\n const edge = edges[i];\r\n\r\n if (!origin || !destination) {\r\n console.warn('Destination or origin cell could not be found', edge);\r\n } else {\r\n edge.path = this.renderEdge(container, origin, destination);\r\n }\r\n }\r\n }\r\n\r\n private renderEdge(container: G, v1: MapCell, v2: MapCell) {\r\n const angle = Math.atan((v2.circle.cy() - v1.circle.cy()) / (v2.circle.cx() - v1.circle.cx()));\r\n const degree = (angle * 180) / Math.PI;\r\n const inverse = v1.degree > v2.degree ? 1 : 0;\r\n let rotateY = 0;\r\n if (Math.abs(v1.degree - v2.degree) < 45) {\r\n rotateY = inverse ? 30 : 25;\r\n } else {\r\n rotateY = inverse ? 10 : 5;\r\n }\r\n const path = container.path(\r\n `M ${v1.circle.cx()} ${v1.circle.cy()} A 30 ${rotateY}, ${degree}, 0 ${inverse}, ${v2.circle.cx()} ${v2.circle.cy()}`,\r\n );\r\n path.attr({ 'fill-opacity': 0 });\r\n path.stroke(MapConfig.edgeStroke);\r\n return path;\r\n }\r\n\r\n private highlight(id: number | string) {\r\n this.select(id);\r\n const cellIds = [id];\r\n\r\n const external_incoming = ['external_revenue'];\r\n const external_outgoing = ['member_cost', 'activity_expenses'];\r\n const external_incoming_outgoing = ['transfers_outside'];\r\n\r\n this.edges.forEach((edge: MapEdge) => {\r\n if (!edge.path) {\r\n return;\r\n }\r\n\r\n if (edge.destination === id || edge.origin === id) {\r\n cellIds.push(edge.destination);\r\n cellIds.push(edge.origin);\r\n }\r\n\r\n if (edge.valueColorOverride) {\r\n // plz don't ask, here doesn't the direction determine the color, but combination of external outgoing/incoming with a positive/negative value\r\n if (edge.origin === id) {\r\n if (external_incoming.indexOf(edge.origin as string) > -1) {\r\n edge.path.stroke(edge.value > 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_outgoing.indexOf(edge.origin as string) > -1) {\r\n edge.path.stroke(edge.value < 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_incoming.indexOf(edge.destination as string) > -1) {\r\n edge.path.stroke(edge.value > 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_outgoing.indexOf(edge.destination as string) > -1) {\r\n edge.path.stroke(edge.value < 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_incoming_outgoing.indexOf(edge.destination as string) > -1) {\r\n edge.path.stroke(edge.value < 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n }\r\n }\r\n\r\n if (edge.destination === id) {\r\n if (external_incoming.indexOf(edge.destination as string) > -1) {\r\n edge.path.stroke(edge.value < 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_outgoing.indexOf(edge.destination as string) > -1) {\r\n edge.path.stroke(edge.value < 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_incoming.indexOf(edge.origin as string) > -1) {\r\n edge.path.stroke(edge.value > 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_outgoing.indexOf(edge.origin as string) > -1) {\r\n edge.path.stroke(edge.value < 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n } else if (external_incoming_outgoing.indexOf(edge.destination as string) > -1) {\r\n edge.path.stroke(edge.value > 0 ? MapConfig.edgeStrokeGreen : MapConfig.edgeStrokeRed);\r\n }\r\n }\r\n } else if (edge.destination === id && !edge.valueColorOverride) {\r\n edge.path.stroke(MapConfig.edgeStrokeGreen);\r\n } else if (edge.origin === id && !edge.valueColorOverride) {\r\n edge.path.stroke(MapConfig.edgeStrokeRed);\r\n } else {\r\n edge.path.stroke(MapConfig.edgeStroke);\r\n edge.path.opacity(0.2);\r\n }\r\n });\r\n\r\n this.cells.forEach((cell: MapCell) => {\r\n if (cellIds.indexOf(cell.id) > -1) {\r\n cell.group.opacity(1);\r\n } else {\r\n cell.group.opacity(0.2);\r\n }\r\n });\r\n }\r\n\r\n private resetHighlight() {\r\n this.select(null);\r\n this.edges.forEach((edge: MapEdge) => {\r\n if (edge.path) {\r\n edge.path.stroke(MapConfig.edgeStroke);\r\n edge.path.opacity(1);\r\n }\r\n });\r\n this.cells.forEach((cell: MapCell) => {\r\n cell.group.opacity(1);\r\n });\r\n }\r\n\r\n private select(id: number | string) {\r\n this.selectedId = id;\r\n this.fire('select', id);\r\n }\r\n\r\n private calculateMainCircleRadius(cells: number) {\r\n const outline = (MapConfig.cell.radius * 2 + this.margin) * cells;\r\n const radius = outline / (2 * Math.PI);\r\n return radius;\r\n }\r\n\r\n private calculateExternalCircleRadius(mainRadius: number) {\r\n const outerBorder = mainRadius + MapConfig.cell.radius;\r\n return Math.sqrt(outerBorder ** 2 + outerBorder ** 2) + this.margin;\r\n }\r\n\r\n private findCell(cells: MapCell[], id: string | number) {\r\n return cells.find((cell: MapCell) => cell.id === id);\r\n }\r\n}\r\n","import InsightGroupTotals from './InsightGroupTotals';\r\nimport InsightTotals from './InsightTotals';\r\nimport MapCellData from './MapCellData';\r\nimport MapEdge from './MapEdge';\r\nimport MapNode from './MapNode';\r\n\r\nexport default class MapData {\r\n public nodes: MapNode[] = [];\r\n public edges: MapEdge[] = [];\r\n public external: MapNode[] = [];\r\n public total?: MapCellData = null;\r\n public insightTotals?: InsightTotals;\r\n public groupTotals?: InsightGroupTotals[];\r\n}\r\n","export default class GroupResultItem {\r\n public group: any;\r\n public balance: number = 0;\r\n public result: number = 0;\r\n public expenses: number = 0;\r\n public extras: number = 0;\r\n public externalRevenue: number = 0;\r\n public startBalance: number = 0;\r\n public openExpenseAmount: number = 0;\r\n public openInvoiceAmount: number = 0;\r\n public name: string = '';\r\n public groupKey: string = '';\r\n}\r\n","import GroupResultItem from '@/models/Finance/Api/GroupResultItem';\r\n\r\nexport default class InsightGroupTotals {\r\n public id: number;\r\n public name: string;\r\n public totals: GroupResultItem[] = [];\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n","import { groupService, insightService, resultService } from '@/main';\r\nimport GraphData from '@/models/Graph/GraphData';\r\nimport GraphNode from '@/models/Graph/Node';\r\nimport InsightView from '@/models/Insights/InsightView';\r\nimport PeriodRange from '@/models/PeriodRange';\r\nimport to from 'await-to-js';\r\nimport { Module, Mutation, VuexModule } from 'vuex-class-modules';\r\nimport MapData from '../models/MapData';\r\nimport store from '@/store/index';\r\nimport Group from '@/models/Group';\r\nimport InsightTotals from '../models/InsightTotals';\r\nimport InsightResponse from '../models/InsightResponse';\r\nimport { Member } from '@/models/Member';\r\nimport InsightTeamTotals from '../models/InsightTeamTotals';\r\nimport RangeItem from '@/models/Finance/Api/RangeItem';\r\nimport TeamResultItem from '@/models/Finance/Api/TeamResultItem';\r\nimport GroupResultItem from '@/models/Finance/Api/GroupResultItem';\r\nimport MapCellData from '../models/MapCellData';\r\nimport { CellScore } from '../models/CellScore';\r\nimport { CellIndicatorScore } from '../models/CellIndicatorScore';\r\nimport { numberFormat } from '@/filters';\r\nimport GraphEdge from '@/models/Graph/GraphEdge';\r\nimport InsightGroupTotals from '../models/InsightGroupTotals';\r\n\r\n@Module\r\nclass InsightStoreModule extends VuexModule {\r\n private cache: { [key: string]: MapData } = {};\r\n\r\n public async getTeamsInsight(insight: InsightView, dates: PeriodRange, refresh: boolean): Promise {\r\n return this.getCachedOrFetch(insight.insightViewId, 'teams', dates, refresh, async () => {\r\n return await this.getTeamsData(insight, dates);\r\n });\r\n }\r\n\r\n public async getActivitiesInsight(teamId: number, dates: PeriodRange, refresh: boolean): Promise {\r\n return this.getCachedOrFetch(teamId, 'activities', dates, refresh, async () => {\r\n return await this.getActivitiesData(teamId, dates);\r\n });\r\n }\r\n\r\n public async getMembersInsight(activityId: number, dates: PeriodRange, refresh: boolean) {\r\n return this.getCachedOrFetch(activityId, 'activities', dates, refresh, async () => {\r\n return await this.getMembersData(activityId, dates.fromFilterMonth);\r\n });\r\n }\r\n\r\n private async getTeamsData(insight: InsightView, dates: PeriodRange): Promise {\r\n const [err, response] = await to(insightService.getLens('ecosystem-finance', insight.insightViewId, dates, null));\r\n\r\n if (err) {\r\n throw Error('Unable to fetch insight');\r\n }\r\n\r\n const data = response.data as InsightResponse;\r\n const { graph, table, totals } = data;\r\n const mapData = new MapData();\r\n mapData.edges = (graph as GraphData).edges.map((edge: GraphEdge) => {\r\n return {\r\n origin: edge.origin,\r\n destination: edge.destination,\r\n label: edge.total,\r\n };\r\n });\r\n mapData.nodes = graph.nodes.map((node: GraphNode) => {\r\n const nodeTotals = totals.teamTotals.find((t: InsightTeamTotals) => t.teamId === node.id);\r\n const cellData = this.getEcologyOrTeamTotals(nodeTotals);\r\n cellData.name = node.name;\r\n return {\r\n id: node.id,\r\n title: node.name,\r\n data: cellData,\r\n };\r\n });\r\n mapData.external = [\r\n { id: 'member_cost', title: 'Member costs' },\r\n { id: 'transfers_outside', title: 'Transfers outside insight' },\r\n { id: 'activity_expenses', title: 'Activity expenses' },\r\n { id: 'external_revenue', title: 'External revenue' },\r\n ];\r\n\r\n totals.teamTotals.forEach((team) => {\r\n const destinations = {\r\n member_cost:\r\n this.getTableValue(table, team.teamId, 'memberExpenses') + this.getTableValue(table, team.teamId, 'memberNonRecurringExpenses'),\r\n activity_expenses:\r\n this.getTableValue(table, team.teamId, 'groupExpenses') + this.getTableValue(table, team.teamId, 'groupNonRecurringExpenses'),\r\n transfers_outside: this.getTableValue(table, team.teamId, 'transfers'),\r\n };\r\n\r\n const origins = {\r\n external_revenue: this.getTableValue(table, team.teamId, 'externalRevenue'),\r\n };\r\n\r\n Object.keys(destinations).forEach((key: string) => {\r\n if (destinations[key]) {\r\n mapData.edges.push({\r\n origin: team.teamId,\r\n destination: key,\r\n label: destinations[key],\r\n valueColorOverride: true,\r\n value: destinations[key],\r\n });\r\n }\r\n });\r\n\r\n Object.keys(origins).forEach((key: string) => {\r\n if (origins[key]) {\r\n mapData.edges.push({\r\n destination: team.teamId,\r\n origin: key,\r\n label: origins[key],\r\n valueColorOverride: true,\r\n value: origins[key],\r\n });\r\n }\r\n });\r\n });\r\n mapData.total = this.getEcologyOrTeamTotals(totals);\r\n mapData.insightTotals = totals;\r\n return mapData;\r\n }\r\n\r\n // Activities\r\n private async getActivitiesData(teamId: number, dates: PeriodRange): Promise {\r\n const mapData = new MapData();\r\n mapData.groupTotals = [];\r\n mapData.external = [\r\n { id: 'member_cost', title: 'Member costs' },\r\n { id: 'transfers_outside', title: 'Transfers outside insight' },\r\n { id: 'activity_expenses', title: 'Activity expenses' },\r\n { id: 'external_revenue', title: 'External revenue' },\r\n ];\r\n\r\n const results = await resultService.getGroupResults(teamId, dates.fromFilterMonth, dates.toFilterMonth);\r\n const groupResults: { [key: string]: GroupResultItem[] } = {};\r\n\r\n results.items.forEach((result: RangeItem) => {\r\n result.item.groupResults.forEach((groupResult: GroupResultItem) => {\r\n const id = groupResult.group.groupId;\r\n if (groupResult.group.deleted) {\r\n return;\r\n }\r\n if (!groupResults[id]) {\r\n groupResults[id] = [];\r\n }\r\n groupResults[id].push(groupResult);\r\n\r\n let groupTotal = mapData.groupTotals.find((totals: InsightGroupTotals) => {\r\n return totals.id === id;\r\n });\r\n if (!groupTotal) {\r\n groupTotal = new InsightGroupTotals({\r\n id,\r\n name: groupResult.group.name,\r\n });\r\n mapData.groupTotals.push(groupTotal);\r\n }\r\n groupTotal.totals.push(groupResult);\r\n });\r\n });\r\n\r\n Object.keys(groupResults).forEach((groupId: string) => {\r\n const agregate = new GroupResultItem();\r\n agregate.startBalance = null;\r\n groupResults[groupId].forEach((result: GroupResultItem) => {\r\n if (!agregate.startBalance === null) {\r\n agregate.startBalance = result.startBalance ? result.startBalance : 0;\r\n }\r\n agregate.expenses += result.expenses;\r\n agregate.externalRevenue += result.externalRevenue;\r\n agregate.result += result.result;\r\n agregate.balance = result.balance;\r\n agregate.group = result.group;\r\n });\r\n\r\n mapData.nodes.push({\r\n id: groupId,\r\n title: agregate.group.name,\r\n data: this.getActivityTotals(agregate),\r\n });\r\n });\r\n return mapData;\r\n }\r\n\r\n // Member data\r\n private async getMembersData(activityId: number, period) {\r\n const response = await groupService.getGroup(activityId, period);\r\n const group: Group = response.data;\r\n const mapData = new MapData();\r\n mapData.nodes = group.members.map((member: Member) => {\r\n return { id: member.memberId, title: [member.firstName, member.insertion, member.lastName].join(' ') };\r\n });\r\n return mapData;\r\n }\r\n\r\n private getTableValue(table: any, teamId: number, property: string) {\r\n let total = 0;\r\n table.results.items.forEach((item) => {\r\n const teamResult = item.item.teamResults.find((x: any) => x.teamId === teamId);\r\n total += teamResult[property];\r\n });\r\n return total;\r\n }\r\n\r\n private getEcologyOrTeamTotals(totals: InsightTotals | InsightTeamTotals): MapCellData {\r\n if (!totals) {\r\n return new MapCellData();\r\n }\r\n\r\n const data = new MapCellData();\r\n if (totals.externalRevenue && totals.result) {\r\n const percent = (totals.result / totals.externalRevenue) * 100;\r\n data.colorScore =\r\n percent <= -10 ? CellScore.Bad : percent <= 0 ? CellScore.BelowAvarage : percent <= 20 ? CellScore.AboveAvarage : CellScore.Ambigious;\r\n }\r\n data.title = numberFormat(totals.balance);\r\n data.subtitle = numberFormat(totals.result);\r\n\r\n data.labels = ['Start balance', 'Balance', 'Result', 'Expenses', 'External revenue', 'Transfers'];\r\n data.values = [totals.startBalance, totals.balance, totals.result, totals.expenses, totals.externalRevenue, totals.transfers].map((value) =>\r\n numberFormat(value),\r\n );\r\n data.indicatorScore = totals.result > 0 ? CellIndicatorScore.Positive : CellIndicatorScore.Negative;\r\n return data;\r\n }\r\n\r\n private getActivityTotals(totals: GroupResultItem): MapCellData {\r\n const data = new MapCellData();\r\n if (totals.result && totals.externalRevenue) {\r\n const percent = (totals.result / totals.externalRevenue) * 100;\r\n data.colorScore =\r\n percent <= -10 ? CellScore.Bad : percent <= 0 ? CellScore.BelowAvarage : percent <= 20 ? CellScore.AboveAvarage : CellScore.Ambigious;\r\n }\r\n data.name = totals.group.name;\r\n data.title = numberFormat(totals.balance);\r\n data.subtitle = numberFormat(totals.result);\r\n data.labels = ['Start balance', 'Balance', 'Result', 'Expenses', 'External revenue'];\r\n data.values = [totals.startBalance, totals.balance, totals.result, totals.expenses, totals.externalRevenue].map((value) =>\r\n numberFormat(value),\r\n );\r\n data.indicatorScore = totals.result > 0 ? CellIndicatorScore.Positive : CellIndicatorScore.Negative;\r\n return data;\r\n }\r\n\r\n private async getCachedOrFetch(id: string | number, entity: string, dates: PeriodRange, refresh: boolean, callback) {\r\n let mapData = this.getCachedMapData(id, entity, dates);\r\n if (refresh || !mapData) {\r\n mapData = await callback();\r\n this.SET_CACHE({ id, entity, dates, mapData });\r\n }\r\n return mapData;\r\n }\r\n\r\n private getCacheKey(id: string | number, entity: string, dates: PeriodRange) {\r\n return [id, entity, dates.fromFilterMonth, dates.toFilterMonth].join('_');\r\n }\r\n\r\n @Mutation\r\n private SET_CACHE(payload: { id: string | number; entity: string; dates: PeriodRange; mapData: MapData }) {\r\n this.cache[this.getCacheKey(payload.id, payload.entity, payload.dates)] = payload.mapData;\r\n }\r\n\r\n private getCachedMapData(id: string | number, entity: string, dates: PeriodRange): MapData {\r\n if (this.cache[this.getCacheKey(id, entity, dates)]) {\r\n return this.cache[this.getCacheKey(id, entity, dates)];\r\n }\r\n return null;\r\n }\r\n}\r\n\r\nexport const insightStoreModule = new InsightStoreModule({ store, name: 'map-store-module' });\r\n","import { Container, Element } from '@svgdotjs/svg.js';\r\n\r\nexport default class SvgAnimate {\r\n public static duration = 500;\r\n\r\n public static appear(container: Container): Promise {\r\n return new Promise((resolve) => {\r\n let done = 0;\r\n const children = container.children();\r\n children.forEach((child: Element) => {\r\n const { factor, delay, duration } = this.randomTimes();\r\n child.transform({ scale: factor })\r\n .attr({ opacity: 0 })\r\n .animate(duration, delay, 'now')\r\n .attr({ opacity: 1 })\r\n .transform({ scale: 1 })\r\n .after(() => {\r\n done++;\r\n if (done === children.length) {\r\n resolve();\r\n }\r\n });\r\n });\r\n });\r\n }\r\n\r\n public static disappear(container: Container): Promise {\r\n return new Promise((resolve) => {\r\n let done = 0;\r\n const children = container.children();\r\n children.forEach((child: Element) => {\r\n const { delay, duration } = this.randomTimes();\r\n child.transform({ scale: 1 })\r\n .attr({ opacity: 1 })\r\n .animate(duration / 5, delay, 'now')\r\n .attr({ opacity: 0 })\r\n .transform({ scale: 1.2 })\r\n .after(() => {\r\n done++;\r\n if (done === children.length) {\r\n resolve();\r\n }\r\n });\r\n });\r\n });\r\n }\r\n\r\n public static fadeIn(container: Container) {\r\n const children = container.children();\r\n children.forEach((child: Element) => {\r\n const { delay, duration } = this.randomTimes();\r\n child.attr({ opacity: 0 }).animate(duration, delay).attr({ opacity: 1 });\r\n });\r\n }\r\n\r\n public static fadeOut(container: Container) {\r\n const children = container.children();\r\n children.forEach((child: Element) => {\r\n const { delay, duration } = this.randomTimes();\r\n child.attr({ opacity: 1 }).animate(duration, delay).attr({ opacity: 0 });\r\n });\r\n }\r\n\r\n private static randomTimes(): { factor: number, delay: number, duration: number } {\r\n const factor = Math.ceil(Math.random() * 100) / 100;\r\n const delay = Math.ceil(Math.random() * 250);\r\n const duration = factor * this.duration;\r\n\r\n return { factor, delay, duration };\r\n }\r\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-card-group',{attrs:{\"deck\":\"\"}},[_c('prd-card',{attrs:{\"flat\":\"\",\"title\":_vm._f(\"translate\")('START_BALANCE')}},[_c('h3',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(_vm.aggregates ? _vm.aggregates.startBalance : 0)))])]),_c('prd-card',{attrs:{\"flat\":\"\",\"title\":_vm._f(\"translate\")('RESULT')}},[_c('h3',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(_vm.aggregates ? _vm.aggregates.result : 0)))])]),_c('prd-card',{attrs:{\"flat\":\"\",\"title\":_vm._f(\"translate\")('BALANCE')}},[_c('h3',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(_vm.aggregates ? _vm.aggregates.balance : 0)))])]),_c('prd-card',{attrs:{\"flat\":\"\",\"title\":_vm._f(\"translate\")('EXTERNAL_REVENUE')}},[_c('h3',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(_vm.aggregates ? _vm.aggregates.externalRevenue : 0)))])]),_c('prd-card',{attrs:{\"flat\":\"\",\"title\":_vm._f(\"translate\")('EXPENSES')}},[_c('h3',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(_vm.aggregates ? _vm.aggregates.expenses : 0)))])])],1),_c('hr'),_c('div',{staticClass:\"text-center\"},[_c('b-btn',{attrs:{\"variant\":\"link\"},on:{\"click\":function($event){_vm.showDetails = !_vm.showDetails}}},[_c('i',{staticClass:\"icon-eye mr-2\"}),(!_vm.showDetails)?_c('span',[_vm._v(\"Show finance details\")]):_c('span',[_vm._v(\"Hide finance details\")])])],1),(_vm.showDetails)?_c('prd-grid-wrapper',{staticClass:\"mt-3\",attrs:{\"data-items\":_vm.totals,\"columns\":_vm.columns,\"flat\":\"\",\"auto-height\":\"\"}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\n\r\nexport default class GridHelper {\r\n public static renderNumber(h, value) {\r\n return h('td', Vue.filter('number-format')(value));\r\n }\r\n}\r\n","import GridHelper from '@/helpers/GridHelper';\r\nimport Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport Totals from '../models/Totals';\r\n\r\n@Component\r\nexport default class FinanceTotals extends Vue {\r\n @Prop() public totals: Totals[];\r\n @Prop({ type: Boolean }) public expanded: boolean;\r\n public showDetails = false;\r\n private expandedColumns = [\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.startBalance), title: 'START_BALANCE' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.balance), title: 'BALANCE', field: 'balance' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.result), title: 'RESULT', field: 'result' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.expenses), title: 'EXPENSES_RECURRING' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.nonRecurringExpenses), title: 'EXTRA_NON_RECURRING' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.transfers), title: 'TRANSFERS' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.openInvoiceAmount), title: 'OPEN_INVOICES' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.openExpenseAmount), title: 'OPEN_EXPENSES' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.groupOpenInvoiceAmount), title: 'OPEN_INVOICES_GROUP' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.groupOpenExpenseAmount), title: 'OPEN_EXPENSES_GROUP' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.externalRevenue), title: 'EXTERNAL_REVENUE' },\r\n { cell: this.renderDropDeadRatio, title: 'DROP_DEAD_RATIO' },\r\n ];\r\n private defaultColumsn = [\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.startBalance), title: 'START_BALANCE' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.balance), title: 'BALANCE', field: 'balance' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.result), title: 'RESULT', field: 'result' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.expenses), title: 'EXPENSES_RECURRING' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.extras), title: 'EXTRA_NON_RECURRING' },\r\n { cell: (h, _, row) => GridHelper.renderNumber(h, row.dataItem.externalRevenue), title: 'EXTERNAL_REVENUE' },\r\n { cell: this.renderDropDeadRatio, title: 'DROP_DEAD_RATIO' },\r\n ];\r\n\r\n public get columns() {\r\n if (this.expanded) {\r\n return this.expandedColumns;\r\n }\r\n return this.defaultColumsn;\r\n }\r\n\r\n public get aggregates() {\r\n return this.totals.reduce((totals: Totals, value: Totals) => {\r\n return {\r\n startBalance: totals.startBalance,\r\n balance: value.balance,\r\n result: totals.result + value.result,\r\n expenses: totals.expenses + value.expenses,\r\n extras: totals.extras + value.extras,\r\n openInvoiceAmount: totals.openInvoiceAmount + value.openInvoiceAmount,\r\n openExpenseAmount: totals.openExpenseAmount + value.openExpenseAmount,\r\n groupOpenInvoiceAmount: totals.groupOpenInvoiceAmount + value.groupOpenInvoiceAmount,\r\n groupOpenExpenseAmount: totals.groupOpenExpenseAmount + value.groupOpenExpenseAmount,\r\n externalRevenue: totals.externalRevenue + value.externalRevenue,\r\n };\r\n });\r\n }\r\n\r\n private renderDropDeadRatio(h, _, row) {\r\n if (row.dataItem.safetyZone) {\r\n const props = { value: row.dataItem.safetyZone };\r\n return h(Vue.component('number-formatter'), { props });\r\n } else {\r\n return h('td', ['N/A']);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./finance-totals.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./finance-totals.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./finance-totals.vue?vue&type=template&id=0c8ce686&\"\nimport script from \"./finance-totals.ts?vue&type=script&lang=js&\"\nexport * from \"./finance-totals.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 GraphEdge from '@/models/Graph/GraphEdge';\r\nimport { Svg } from '@svgdotjs/svg.js';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { MapView } from '../models/MapView';\r\nimport { insightService, loginHelper } from '@/main';\r\nimport PeriodRange from '@/models/PeriodRange';\r\nimport PageRender from '@/models/PageRender';\r\nimport MapNode from '../models/MapNode';\r\nimport InsightView from '@/models/Insights/InsightView';\r\nimport { teamsModule } from '@/store/modules/teams';\r\nimport PrdSvgCanvasVue from '../components/prd-svg-canvas.vue';\r\nimport PrdCanvasComponent from '../components/prd-svg-canvas';\r\nimport SvgRender from '../svg/SvgRender';\r\nimport SvgRenderInfoCell from '../svg/SvgRenderInfoCell';\r\nimport SvgRenderCellSpace from '../svg/SvgRenderCellSpace';\r\nimport { insightStoreModule } from '../store/map';\r\nimport MapData from '../models/MapData';\r\nimport SvgAnimate from '../svg/SvgAnimate';\r\nimport financeTotalsVue from '../components/finance-totals.vue';\r\nimport InsightTeamTotals from '../models/InsightTeamTotals';\r\nimport { Membership } from '@/models/Interfaces';\r\n@Component({\r\n components: {\r\n PrdSvgCanvas: PrdSvgCanvasVue,\r\n FinanceTotals: financeTotalsVue,\r\n },\r\n})\r\nexport default class CellsPage extends PageRender {\r\n public mapData = new MapData();\r\n public primarySvg: SvgRender = new SvgRender();\r\n public secondarySvg: SvgRenderInfoCell = new SvgRenderInfoCell();\r\n public canvas: Svg = null;\r\n public renderTiemout = null;\r\n public selectedId: string | number = null;\r\n public view: MapView = MapView.Team;\r\n public dates: PeriodRange = { toFilterMonth: '', fromFilterMonth: '' };\r\n public views: InsightView[] = [];\r\n public insight: InsightView = null;\r\n public loading = true;\r\n public loadingGraph = false;\r\n public rotate: number = 0;\r\n public margin: number = 100;\r\n public zoom: number = 1;\r\n\r\n public $refs!: {\r\n svgPrimaryCanvas: PrdCanvasComponent;\r\n svgSecondaryCanvas: PrdCanvasComponent;\r\n };\r\n\r\n public get incoming(): GraphEdge[] {\r\n return this.mapData.edges.filter((edge: GraphEdge) => edge.destination === this.selectedId);\r\n }\r\n\r\n public get outgoing(): GraphEdge[] {\r\n return this.mapData.edges.filter((edge: GraphEdge) => edge.origin === this.selectedId);\r\n }\r\n\r\n public get nodes(): MapNode[] {\r\n return [...this.mapData.nodes, ...this.mapData.external];\r\n }\r\n\r\n public get ecology() {\r\n return this.$route.query && this.$route.query.ecology ? this.$route.query.ecology : null;\r\n }\r\n\r\n public get ecologyTotals() {\r\n if (this.view === MapView.Ecology) {\r\n return this.mapData.insightTotals;\r\n }\r\n return null;\r\n }\r\n\r\n public get teamId() {\r\n return this.$route.query && this.$route.query.team ? +this.$route.query.team : null;\r\n }\r\n\r\n public get teamTotals() {\r\n if (this.view === MapView.Team) {\r\n if (!this.mapData.insightTotals) {\r\n return [];\r\n }\r\n\r\n return this.mapData.insightTotals.teamTotals.map((value: InsightTeamTotals) => {\r\n const mapped: any = { ...value };\r\n mapped.name = this.mapData.nodes.find((node: MapNode) => node.id === value.teamId)?.title;\r\n return mapped;\r\n });\r\n }\r\n\r\n return null;\r\n }\r\n\r\n public get activityId() {\r\n return this.$route.query && this.$route.query.activity ? +this.$route.query.activity : null;\r\n }\r\n\r\n public get activityTotals() {\r\n if (this.view === MapView.Activity) {\r\n return this.mapData.groupTotals;\r\n }\r\n return null;\r\n }\r\n\r\n public get canGoUp() {\r\n return Object.keys(this.$route.query).length > 1;\r\n }\r\n\r\n public async mounted() {\r\n this.loading = true;\r\n this.views = await insightService.getViews(true);\r\n this.insight = this.getInsight();\r\n await teamsModule.fetchTeamsIfNeeded();\r\n this.loading = false;\r\n\r\n this.$watch('$route.query', () => this.fetchAndDraw(false), { immediate: true, deep: true });\r\n }\r\n\r\n public nodeName(id: string | number) {\r\n const node = this.nodes.find((n: MapNode) => n.id === id);\r\n return node ? node.title : '';\r\n }\r\n\r\n public periodChanged(dates: PeriodRange) {\r\n this.dates = dates;\r\n }\r\n\r\n public async fetchAndDraw(refresh = false) {\r\n if (!this.insight) {\r\n return;\r\n }\r\n\r\n this.view = this.getView();\r\n await this.drawSecondary();\r\n this.selectedId = null;\r\n\r\n if (this.view === MapView.Ecology) {\r\n await this.drawEcology(refresh);\r\n } else {\r\n await this.drawCellspace(this.view, refresh);\r\n }\r\n }\r\n\r\n public async drawCellspace(view: MapView, refresh: boolean) {\r\n const callback = {\r\n [MapView.Team]: async () => await insightStoreModule.getTeamsInsight(this.insight, this.dates, refresh),\r\n [MapView.Activity]: async () => await insightStoreModule.getActivitiesInsight(this.teamId, this.dates, refresh),\r\n [MapView.Member]: async () => await insightStoreModule.getMembersInsight(this.activityId, this.dates, refresh),\r\n };\r\n\r\n if (!callback[view]) {\r\n throw new Error(`Callback for ${view} not defined`);\r\n }\r\n\r\n this.loadingGraph = true;\r\n const mapData = await callback[view]();\r\n this.mapData = mapData;\r\n const svg = new SvgRenderCellSpace(this.$refs.svgPrimaryCanvas.canvas);\r\n svg.on('select', this.onSelect);\r\n svg.on('navigate', this.onNavigate);\r\n svg.setData(mapData);\r\n svg.render();\r\n svg.fit();\r\n this.primarySvg = svg;\r\n this.loadingGraph = false;\r\n\r\n SvgAnimate.appear(svg.cellsGroup);\r\n SvgAnimate.appear(svg.extGroup);\r\n SvgAnimate.fadeIn(svg.edgesGroup);\r\n }\r\n\r\n public async drawEcology(refresh: boolean) {\r\n this.loadingGraph = true;\r\n const mapData = await insightStoreModule.getTeamsInsight(this.insight, this.dates, refresh);\r\n this.mapData = mapData;\r\n const svg = new SvgRenderInfoCell(this.$refs.svgPrimaryCanvas.canvas);\r\n svg.on('navigate', this.onNavigate);\r\n svg.setData(mapData.total);\r\n svg.render();\r\n this.primarySvg = svg;\r\n this.$refs.svgSecondaryCanvas.canvas.clear();\r\n this.loadingGraph = false;\r\n\r\n SvgAnimate.appear(svg.container);\r\n }\r\n\r\n public async drawSecondary() {\r\n if (this.secondarySvg.getId() === this.selectedId) {\r\n return;\r\n }\r\n\r\n const node = this.nodes.find((n: MapNode) => n.id === this.selectedId);\r\n if (node.data) {\r\n const svg = new SvgRenderInfoCell(this.$refs.svgSecondaryCanvas.canvas);\r\n svg.setData(node.data);\r\n svg.render();\r\n svg.fit();\r\n this.secondarySvg = svg;\r\n } else {\r\n this.secondarySvg = new SvgRenderInfoCell(this.$refs.svgSecondaryCanvas.canvas);\r\n this.$refs.svgSecondaryCanvas.canvas.clear();\r\n }\r\n }\r\n\r\n public onResize() {\r\n this.updateGraphSettings();\r\n }\r\n\r\n public async onSelectView(view: InsightView) {\r\n const query = { ...this.$route.query };\r\n query.insight = view.insightViewId.toString();\r\n await this.$router.replace({ query });\r\n }\r\n\r\n public async goUp() {\r\n const order = [MapView.Ecology, MapView.Team, MapView.Activity, MapView.Member];\r\n const level = order.findIndex((key) => key === this.view);\r\n const query = { ...this.$route.query };\r\n const prop = order[level - 1];\r\n delete query[prop.toLowerCase()];\r\n await this.$router.push({ query });\r\n }\r\n\r\n public updateGraphSettings() {\r\n if (this.primarySvg.type === 'CellSpace') {\r\n const svg = this.primarySvg as SvgRenderCellSpace;\r\n svg.zoom(+this.zoom);\r\n svg.rotate(+this.rotate);\r\n svg.setMargin(+this.margin);\r\n svg.redraw();\r\n svg.fit();\r\n } else {\r\n const svg = this.primarySvg as SvgRenderInfoCell;\r\n svg.redraw();\r\n svg.fit();\r\n }\r\n\r\n if (this.secondarySvg && !this.secondarySvg.empty) {\r\n const svg2 = this.secondarySvg as SvgRenderInfoCell;\r\n svg2.redraw();\r\n svg2.fit();\r\n }\r\n }\r\n\r\n public onZoom(zoom: number) {\r\n this.zoom = zoom;\r\n this.updateGraphSettings();\r\n }\r\n\r\n private getView(): MapView {\r\n if (this.activityId) {\r\n return MapView.Member;\r\n }\r\n\r\n if (this.teamId) {\r\n return MapView.Activity;\r\n }\r\n\r\n if (this.ecology) {\r\n return MapView.Team;\r\n }\r\n\r\n return MapView.Ecology;\r\n }\r\n\r\n private getInsight(): InsightView | null {\r\n if (this.$route.query && this.$route.query.insight) {\r\n return this.views.find((view) => view.insightViewId === +this.$route.query.insight) as InsightView;\r\n }\r\n return null;\r\n }\r\n\r\n private async onSelect(id: number | string) {\r\n if (id) {\r\n this.selectedId = id;\r\n await this.drawSecondary();\r\n }\r\n }\r\n\r\n private async onNavigate(id: number | string) {\r\n const query = { ...this.$route.query };\r\n const allowed = [MapView.Ecology, MapView.Team, MapView.Activity];\r\n\r\n if (this.primarySvg.type === 'InfoCell') {\r\n await SvgAnimate.disappear(this.primarySvg.container);\r\n }\r\n\r\n if (!allowed.includes(this.view)) {\r\n return;\r\n }\r\n\r\n if (!this.hasAccesToNextRoute(this.view, id)) {\r\n return this.clearAndShowWarning('INSIGHTS_NO_ACCESS');\r\n }\r\n\r\n query[this.view.toLowerCase()] = id.toString();\r\n this.loadingGraph = true;\r\n await this.$router.push({ query });\r\n }\r\n\r\n private hasAccesToNextRoute(view: MapView, id: number | string) {\r\n if (view === MapView.Team) {\r\n const user = loginHelper.getUser();\r\n const teamIndex = user.teamMemberships.findIndex((memberShip: Membership) => {\r\n return memberShip.id === id;\r\n });\r\n return teamIndex > -1;\r\n }\r\n return true;\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./cells.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./cells.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./cells.vue?vue&type=template&id=7abc1dd7&scoped=true&\"\nimport script from \"./cells.ts?vue&type=script&lang=js&\"\nexport * from \"./cells.ts?vue&type=script&lang=js&\"\nimport style0 from \"./cells.vue?vue&type=style&index=0&id=7abc1dd7&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7abc1dd7\",\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 (_vm.isLoading)?_c('prd-loader',{attrs:{\"cover\":\"\",\"text\":\"Loading..\"}}):_c('div',{staticClass:\"mw-600 mx-auto my-5\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[(_vm.invite)?_c('h2',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'REGISTER.WELCOME_TEXT', params: { fullname: _vm.getInvitePersonFullname(), teamName: _vm.getTeamName() } }),expression:\"{ key: 'REGISTER.WELCOME_TEXT', params: { fullname: getInvitePersonFullname(), teamName: getTeamName() } }\"}],staticClass:\"mb-5\"}):_vm._e(),_c('div',[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',{attrs:{\"id\":\"firstNameGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FIRST_NAME\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"firstNameInput\",\"type\":\"text\",\"required\":\"\",\"placeholder\":\"Firstname\"},model:{value:(_vm.model.person.firstName),callback:function ($$v) {_vm.$set(_vm.model.person, \"firstName\", $$v)},expression:\"model.person.firstName\"}})],1),_c('b-form-group',{attrs:{\"id\":\"insertionGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INSERTION\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"insertionInput\",\"type\":\"text\",\"placeholder\":\"Name affix\"},model:{value:(_vm.model.person.insertion),callback:function ($$v) {_vm.$set(_vm.model.person, \"insertion\", $$v)},expression:\"model.person.insertion\"}})],1),_c('b-form-group',{attrs:{\"id\":\"lastNameGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LAST_NAME\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"lastNameInput\",\"type\":\"text\",\"required\":\"\",\"placeholder\":\"Lastname\"},model:{value:(_vm.model.person.lastName),callback:function ($$v) {_vm.$set(_vm.model.person, \"lastName\", $$v)},expression:\"model.person.lastName\"}})],1),_c('b-form-group',{attrs:{\"id\":\"emailAdressGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"EMAIL\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"emailRegisterInput\",\"type\":\"email\",\"required\":\"\",\"autocomplete\":\"email address\",\"placeholder\":\"Enter email\",\"disabled\":true},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"EMAIL_DESCRIPTION\",\"translate-group\":\"REGISTER\"}})],1),_c('b-form-group',{attrs:{\"id\":\"passwordGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"PASSWORD\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"passwordRegisterInput\",\"type\":\"password\",\"required\":\"\",\"autocomplete\":\"new-password\",\"placeholder\":\"Something incredibly unlogical\"},on:{\"focus\":function($event){_vm.showPolicy = true},\"blur\":function($event){_vm.showPolicy = false}},model:{value:(_vm.model.password),callback:function ($$v) {_vm.$set(_vm.model, \"password\", $$v)},expression:\"model.password\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"PASSWORD_DESCRIPTION\",\"translate-group\":\"REGISTER\"}}),(_vm.showPolicy)?_c('div',[_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.policies),function(policy,index){return _c('li',{key:(\"policy_\" + index)},[(_vm.model.password && policy.valid(_vm.model.password))?_c('i',{staticClass:\"icon-check\"}):_c('i',{staticClass:\"icon-cancel\"}),_vm._v(\" \"+_vm._s(policy.message)+\" \")])}),0)]):_vm._e()],1),_c('b-form-group',{attrs:{\"id\":\"passwordRepeatGroup\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"REAPEAT_PASSWORD\",\"translate-group\":\"REGISTER\"}}),_c('b-form-input',{attrs:{\"id\":\"passwordRepeatInput\",\"type\":\"password\",\"required\":\"\",\"autocomplete\":\"repeat-password\",\"placeholder\":\"Something incredibly unlogical, again\"},model:{value:(_vm.model.passwordRepeat),callback:function ($$v) {_vm.$set(_vm.model, \"passwordRepeat\", $$v)},expression:\"model.passwordRepeat\"}}),_c('prd-translate-text',{staticClass:\"form-text text-muted\",attrs:{\"translate-key\":\"REPEAT_PASSWORD_DESCRIPTION\",\"translate-group\":\"REGISTER\"}})],1),_vm._t(\"extra-fields\"),_c('div',{staticClass:\"sign-in-link-holder text-center d-block w-100 mt-5\",attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"btn btn-lg btn-primary w-100 d-block\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"BUTTON\",\"translate-group\":\"REGISTER\"}})],1)],1)],2)],1)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { InviteInterface } from './Interfaces';\r\n\r\nexport default class Invite implements InviteInterface {\r\n public id: number;\r\n public email: string;\r\n public valid: boolean;\r\n public fromPerson: number;\r\n public key: string;\r\n public team: number;\r\n}\r\n","import { InviteResponseInterface } from './Interfaces';\r\nimport { Person } from './Person';\r\nimport Invite from './Invite';\r\nimport Team from './Team';\r\n\r\nexport default class InviteResponse implements InviteResponseInterface {\r\n public sender: Person = new Person();\r\n public receiver: Person = new Person();\r\n public team: Team = new Team();\r\n public invite: Invite = new Invite();\r\n}\r\n","import IValidation from './IValidation';\r\n\r\nexport default class Digit implements IValidation {\r\n public valid(value: string) {\r\n return !!value.match(/[0-9]/g);\r\n }\r\n\r\n public get message() {\r\n return 'Must contain a digit';\r\n }\r\n}\r\n","import IValidation from './IValidation';\r\n\r\nexport default class LowerCase implements IValidation {\r\n public valid(value: string) {\r\n return !!value.match(/[a-z]/g);\r\n }\r\n\r\n public get message() {\r\n return 'Must contain a lowercase character';\r\n }\r\n}\r\n","import IValidation from './IValidation';\r\n\r\nexport default class MinLength implements IValidation {\r\n private length: number = 10;\r\n\r\n constructor(length: number) {\r\n this.length = length;\r\n }\r\n\r\n public valid(value: string) {\r\n return value.length >= this.length;\r\n }\r\n\r\n public get message() {\r\n return `Must contain at least ${this.length} characters`;\r\n }\r\n}\r\n","import IValidation from './IValidation';\r\n\r\nexport default class NonAlpha implements IValidation {\r\n public valid(value: string) {\r\n return !!value.match(/[\\W_]+/g);\r\n }\r\n\r\n public get message() {\r\n return 'Must contain a non-alphanumeric character';\r\n }\r\n}\r\n","import IValidation from './IValidation';\r\n\r\nexport default class UpperCase implements IValidation {\r\n public valid(value: string) {\r\n return !!value.match(/[A-Z]/g);\r\n }\r\n\r\n public get message() {\r\n return 'Must contain a uppercase character';\r\n }\r\n}\r\n","import Digit from '../Validator/Digit';\r\nimport IValidation from '../Validator/IValidation';\r\nimport LowerCase from '../Validator/LowerCase';\r\nimport MinLength from '../Validator/MinLength';\r\nimport NonAlpha from '../Validator/NonAlpha';\r\nimport UpperCase from '../Validator/UpperCase';\r\n\r\nexport default class Policies {\r\n public static Default: IValidation[] = [Policies.MinLength(), Policies.NonAlpha()];\r\n public static Password: IValidation[] = [\r\n Policies.MinLength(),\r\n Policies.NonAlpha(),\r\n Policies.LowerCase(),\r\n Policies.UpperCase(),\r\n Policies.Digit(),\r\n ];\r\n\r\n public static MinLength(length: number = 8): IValidation {\r\n return new MinLength(length);\r\n }\r\n\r\n public static NonAlpha(): IValidation {\r\n return new NonAlpha();\r\n }\r\n\r\n public static LowerCase(): IValidation {\r\n return new LowerCase();\r\n }\r\n\r\n public static UpperCase(): IValidation {\r\n return new UpperCase();\r\n }\r\n\r\n public static Digit(): IValidation {\r\n return new Digit();\r\n }\r\n}\r\n","import Policies from '@/models/Policy/Policies';\r\nimport IValidation from '@/models/Validator/IValidation';\r\n\r\nexport default class PolicyHelper {\r\n private options: IValidation[] = [];\r\n\r\n constructor(options: IValidation[] = Policies.Default) {\r\n this.options = options;\r\n }\r\n\r\n public validate(password: string) {\r\n return this.options.filter((policy) => {\r\n return !policy.valid(password);\r\n }).length <= 0;\r\n }\r\n\r\n public get policies() {\r\n return this.options;\r\n }\r\n}\r\n","import { Component } from 'vue-property-decorator';\r\nimport { teamService } from '@/main';\r\nimport InviteResponse from '../../../models/InviteResponse';\r\nimport SelectItem from '../../../models/SelectItem';\r\nimport Register from '../../../models/Register';\r\nimport { Person } from '../../../models/Person';\r\nimport { Membership } from '../../../models/Interfaces';\r\nimport PageRender from '@/models/PageRender';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport to from 'await-to-js';\r\nimport Policies from '@/models/Policy/Policies';\r\nimport PolicyHelper from '@/helpers/PolicyHelper';\r\n\r\n@Component\r\nexport default class InvitedComponent extends PageRender {\r\n public key: string = '';\r\n public team: string = '';\r\n public teamId: number = 0;\r\n public teamOptions: SelectItem[] = [];\r\n public selectedTeams: string[] = [];\r\n public invite: InviteResponse = new InviteResponse();\r\n public model: Register = new Register();\r\n public email: string = '';\r\n public needsAccount: boolean = true;\r\n public showPolicy: boolean = false;\r\n private passwordPolicyHelper = new PolicyHelper(Policies.Password);\r\n\r\n public get policies() {\r\n return this.passwordPolicyHelper.policies;\r\n }\r\n\r\n public async created() {\r\n this.key = this.$route.params.key;\r\n this.teamId = parseInt(this.$route.params.teamId);\r\n const period = this.$route.params.period;\r\n const ecosystem = this.$route.params.ecosystemId;\r\n\r\n const [err, inviteResponse] = await to(teamService.getInvite(this.key, this.teamId, period, ecosystem));\r\n if (!err) {\r\n this.invite = inviteResponse.data;\r\n this.invite.sender = new Person(inviteResponse.data.sender);\r\n this.email = this.invite.invite.email;\r\n\r\n if (inviteResponse.data.receiver) {\r\n this.model.person = this.invite.receiver = new Person(inviteResponse.data.receiver);\r\n }\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public getInvitePersonFullname() {\r\n return this.invite.sender.getFullName();\r\n }\r\n\r\n public getTeamName() {\r\n return this.invite.team.name;\r\n }\r\n\r\n public registerPost(model: Register) {\r\n const self = this;\r\n\r\n model.period = periodModule.selectedPeriod;\r\n\r\n self.showPending('REGISTRATION_PENDING');\r\n\r\n teamService\r\n .acceptInvite(this.teamId, self.key, model)\r\n .then((response: any) => {\r\n if (response) {\r\n self.clearAndShowSuccess('REGISTRATION_SUCCESS');\r\n\r\n setTimeout(() => {\r\n return self.$router.push({\r\n name: 'login',\r\n });\r\n }, 3000);\r\n }\r\n })\r\n .catch((error) => {\r\n self.clearAndShowError('REGISTRATION_FAILED', error);\r\n });\r\n }\r\n\r\n public onSubmit(evt: any) {\r\n evt.preventDefault();\r\n this.register();\r\n }\r\n\r\n public register(): void {\r\n const self = this;\r\n const valid = this.passwordPolicyHelper.validate(self.model.password);\r\n if (!valid) {\r\n return this.clearAndShowWarning(`Make sure your password meets the requirements.`);\r\n }\r\n\r\n if (self.model.password !== self.model.passwordRepeat) {\r\n return this.clearAndShowWarning(`Passwords aren't equal`);\r\n }\r\n\r\n this.clearNotifications();\r\n self.model.emailAddress = self.email;\r\n self.model.person.emailAddress = self.email;\r\n self.model.needsAccount = self.needsAccount;\r\n self.model.person.teamMemberships.length = 0;\r\n self.model.person.teamMemberships.push({ key: this.team } as Membership);\r\n\r\n self.registerPost(self.model);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./invited.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./invited.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./invited.vue?vue&type=template&id=a136b4ce&\"\nimport script from \"./invited.ts?vue&type=script&lang=js&\"\nexport * from \"./invited.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[_c('div',[_c('h1',{staticClass:\"title\"},[_vm._v(\"My profile\")]),_c('b-tabs',[_c('b-tab',{attrs:{\"title\":\"My Bright identity\",\"active\":\"\"}},[_c('div',{staticClass:\"card-deck\"},[_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Name\")]),_c('b-card-body',{staticClass:\"pt-3\"},[_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"label\":\"First name\",\"label-for\":\"input-sm\"}},[_c('b-form-input',{attrs:{\"id\":\"input-sm\",\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.profile.firstName),callback:function ($$v) {_vm.$set(_vm.profile, \"firstName\", $$v)},expression:\"profile.firstName\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"label\":\"insertion\",\"label-for\":\"input-sm\"}},[_c('b-form-input',{attrs:{\"id\":\"input-sm\",\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.profile.insertion),callback:function ($$v) {_vm.$set(_vm.profile, \"insertion\", $$v)},expression:\"profile.insertion\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"label\":\"Last name\",\"label-for\":\"input-sm\"}},[_c('b-form-input',{attrs:{\"id\":\"input-sm\",\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.profile.lastName),callback:function ($$v) {_vm.$set(_vm.profile, \"lastName\", $$v)},expression:\"profile.lastName\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"description\":\"Only visible in Bright. Your email address you use to login won't change.\",\"label\":\"Email address \",\"label-for\":\"input-sm\"}},[_c('b-form-input',{attrs:{\"id\":\"input-sm\",\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.profile.emailAddress),callback:function ($$v) {_vm.$set(_vm.profile, \"emailAddress\", $$v)},expression:\"profile.emailAddress\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"label\":\"Phone number\",\"label-for\":\"input-sm\"}},[_c('b-form-input',{attrs:{\"id\":\"input-sm\",\"size\":\"sm\",\"disabled\":true},model:{value:(_vm.profile.phoneNumber),callback:function ($$v) {_vm.$set(_vm.profile, \"phoneNumber\", $$v)},expression:\"profile.phoneNumber\"}})],1)],1)],1),_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Handy links\")]),_c('b-card-body',{staticClass:\"pt-3\"},[_c('b-form-group',{attrs:{\"label-cols\":\"9\",\"label-cols-lg\":\"9\",\"label-size\":\"sm\",\"label\":\"Want to change your password?\",\"label-for\":\"input-sm\"}},[_c('b-button',{attrs:{\"variant\":\"primary\",\"id\":\"input-sm\",\"size\":\"sm\"},on:{\"click\":_vm.goToManangePassword}},[_vm._v(\"Manage password\")])],1),_c('b-form-group',{attrs:{\"label-cols\":\"9\",\"label-cols-lg\":\"9\",\"label-size\":\"sm\",\"label\":\"Want to change information on your profile?\",\"label-for\":\"input-sm\"}},[_c('b-button',{attrs:{\"variant\":\"primary\",\"id\":\"input-sm\",\"size\":\"sm\"},on:{\"click\":_vm.goToManangeProfile}},[_vm._v(\"Manage profile\")])],1)],1)],1)],1)]),_c('b-tab',{attrs:{\"title\":\"Preferences\"}},[_c('div',{staticClass:\"card-deck\"},[_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Primary ecosystem and team\")]),_c('b-card-body',{staticClass:\"pt-3\"},[_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"label\":\"Primary ecosystem\",\"label-for\":\"input-sm\",\"description\":\"When you're a member of multiple ecosystems select a preferred ecosystem so this will used as default when opening Bright without direct destination\"}},[_c('b-form-select',{class:{ 'is-invalid': !_vm.profile.primaryEcosystem },attrs:{\"options\":_vm.optionListEcosystems()},model:{value:(_vm.profile.primaryEcosystem),callback:function ($$v) {_vm.$set(_vm.profile, \"primaryEcosystem\", $$v)},expression:\"profile.primaryEcosystem\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_ECOSYSTEM\"}})],1)])],2)],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label-size\":\"sm\",\"label\":\"Primary team\",\"label-for\":\"input-sm\",\"description\":\"When you're a member of multiple teams select a preferred team so this will used as default when opening Bright without direct destination\"}},[_c('b-form-select',{class:{ 'is-invalid': !_vm.profile.primaryTeam },attrs:{\"options\":_vm.optionListTeams()},model:{value:(_vm.profile.primaryTeam),callback:function ($$v) {_vm.$set(_vm.profile, \"primaryTeam\", $$v)},expression:\"profile.primaryTeam\"}},[_c('template',{slot:\"first\"},[_c('option',{domProps:{\"value\":null}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_TEAM\"}})],1)])],2)],1)],1),_c('b-button',{staticClass:\"btn btn-sm btn-primary float-right\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"},on:{\"click\":_vm.saveProfile}},[_vm._v(\"Save\")])],1)],1)])],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { loginHelper, meService } from '@/main';\r\nimport { Person } from '@/models/Person';\r\nimport to from 'await-to-js';\r\nimport PageRender from '@/models/PageRender';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport Vue from 'vue';\r\n@Component\r\nexport default class ProfileComponent extends PageRender {\r\n public profile: Person = null;\r\n public isLoading: boolean = true;\r\n\r\n public created() {\r\n this.profile = profileModule.brightProfile;\r\n this.isLoading = false;\r\n }\r\n\r\n public async saveProfile() {\r\n this.showPending('SAVE_PROFILE_PENDING');\r\n const [err] = await to(\r\n meService.updatePreferences(\r\n this.profile.primaryEcosystem,\r\n this.profile.primaryTeam,\r\n ),\r\n );\r\n if (err) {\r\n return this.clearAndShowError('SAVE_PROFILE_FAILED', err);\r\n }\r\n\r\n const reloadProfileResponse = await loginHelper.reloadProfile();\r\n profileModule.setBrightProfile(reloadProfileResponse);\r\n this.profile = new Person(reloadProfileResponse);\r\n\r\n return this.clearAndShowSuccess('SAVE_PROFILE_SUCCESS');\r\n }\r\n\r\n public optionListEcosystems() {\r\n return this.profile.ecosystemMemberships.map((ship) => {\r\n return { value: ship.id, text: ship.name };\r\n });\r\n }\r\n\r\n public optionListTeams() {\r\n return this.profile.teamMemberships.map((ship) => {\r\n return { value: ship.id, text: ship.name };\r\n });\r\n }\r\n\r\n public goToManangePassword() {\r\n window.open(`${Vue.$env().identityEndpoint}Manage/ChangePassword`, '_blank');\r\n }\r\n\r\n public goToManangeProfile() {\r\n window.open(`${Vue.$env().identityEndpoint}Manage`, '_blank');\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./profile.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./profile.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./profile.vue?vue&type=template&id=4353fb79&\"\nimport script from \"./profile.ts?vue&type=script&lang=js&\"\nexport * from \"./profile.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h2',[_vm._v(\"Me dashboard\")])])}]\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class MeDashboardComponent extends Vue {\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./me.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./me.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me.vue?vue&type=template&id=f1883ec8&\"\nimport script from \"./me.ts?vue&type=script&lang=js&\"\nexport * from \"./me.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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-form',[_c('b-card',{staticClass:\"w-50\",attrs:{\"title\":\"Create team\"}},[_c('b-card-body',[_c('b-form-group',{attrs:{\"id\":\"input-group-1\",\"label\":\"Team name:\",\"label-for\":\"team-name\",\"description\":\"Enter the name corret, this cant be changed later\"}},[_c('b-form-input',{attrs:{\"id\":\"team-name\",\"type\":\"text\",\"required\":\"\",\"placeholder\":\"Enter name\"},model:{value:(_vm.newTeam.name),callback:function ($$v) {_vm.$set(_vm.newTeam, \"name\", $$v)},expression:\"newTeam.name\"}})],1),_c('b-form-group',{attrs:{\"id\":\"input-group-2\",\"label\":\"Legal Entity Reference:\",\"label-for\":\"legal-name\",\"description\":\"The name of your legal entity, eg: 'Bright Ecology B.V.'\"}},[_c('b-form-input',{attrs:{\"id\":\"legal-name\",\"type\":\"text\",\"required\":\"\",\"placeholder\":\"Enter legal entity reference\"},model:{value:(_vm.newTeam.legalEntityReference),callback:function ($$v) {_vm.$set(_vm.newTeam, \"legalEntityReference\", $$v)},expression:\"newTeam.legalEntityReference\"}})],1)],1),_c('b-card-footer',[_c('b-form-group',[_c('b-button',{staticClass:\"mr-2 \",attrs:{\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":_vm.createTeam}},[_vm._v(\"Create team\")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import PageRender from '@/models/PageRender';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { teamService, ecosystemHelper, loginHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { profileModule } from '@/store/modules/profile';\r\n\r\n@Component\r\nexport default class EcosystemCreateTeamComponent extends PageRender {\r\n public newTeam: any = {\r\n name: '',\r\n legalEntityReference: '',\r\n ecosystem: ecosystemHelper.currentEcosystem.name,\r\n teamLeadId: loginHelper.getUser().personId,\r\n };\r\n\r\n public async createTeam() {\r\n this.showPending('CREATE_TEAM_PENDING');\r\n\r\n const [err] = await to(teamService.createTeam(this.newTeam));\r\n if (err) {\r\n return this.clearAndShowError('CREATE_TEAM_FAILED', err);\r\n }\r\n this.clearAndShowSuccess('CREATE_TEAM_SUCCESS');\r\n\r\n await profileModule.loadBrightProfileIfNeeded(true);\r\n\r\n await this.$router.push({\r\n name: 'ecosystem-overview',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-team.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./create-team.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create-team.vue?vue&type=template&id=7dde60b0&\"\nimport script from \"./create-team.ts?vue&type=script&lang=js&\"\nexport * from \"./create-team.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('prd-loader',{attrs:{\"absolute\":\"\"}}):_c('div',[_c('prd-toolbar',{attrs:{\"space-between\":\"\"}},[_c('generic-search',{attrs:{\"slot\":\"left\",\"data-items\":_vm.allGroups,\"properties\":['purpose', 'team', 'firstName', 'lastName', 'name', 'team']},on:{\"finished-search\":_vm.updateGridData},slot:\"left\"})],1),_c('prd-grid-wrapper',{key:_vm.refreshGrid,attrs:{\"data-items\":_vm.groups,\"columns\":_vm.groupsColumns,\"row-height\":36}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { teamHelper, teamService, ecosystemHelper } from '@/main';\r\nimport BaseEcosystemDirectory from './BaseEcosystemDirectory';\r\nimport Group from '@/models/Group';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class EcosystemGroupsComponent extends BaseEcosystemDirectory {\r\n public allGroups: Group[] = [];\r\n public groupsColumns: any[] = [\r\n { field: 'name', title: 'NAME', width: 300 },\r\n { cell: this.renderTeam, title: 'TEAM', width: 300 },\r\n { field: 'purpose', title: 'GROUP_PURPOSE' },\r\n { cell: this.renderMembersEcosystem, title: 'GROUP_MEMBERS', width: 125 },\r\n { cell: this.renderGroupLead, title: 'GROUP_LEAD', width: 300 },\r\n ];\r\n\r\n public async created() {\r\n const self = this;\r\n\r\n this.teams = await teamService.getTeams();\r\n\r\n for (const team of this.teams) {\r\n team.groups.forEach((group) => {\r\n group.teamId = team.teamId;\r\n this.groups.push(group);\r\n });\r\n }\r\n\r\n this.allGroups = this.groups = orderBy(this.groups, [{ field: 'name', dir: 'asc' }]);\r\n self.isLoading = false;\r\n }\r\n\r\n public updateGridData(dataItems) {\r\n this.groups = orderBy(dataItems, [{ field: 'name', dir: 'asc' }]);\r\n this.refreshGrid++;\r\n }\r\n\r\n public renderGroupLead(h, _, row): any {\r\n if (!row.dataItem.groupLead) {\r\n return h('td', 'Not yet set');\r\n }\r\n\r\n return this.renderMember(h, row.dataItem.groupLead);\r\n }\r\n\r\n public renderMembersEcosystem(h, _, row): any {\r\n const props = { teamId: row.dataItem.teamId, groupId: row.dataItem.groupId, lazy: true, memberCount: row.dataItem.memberCount };\r\n return h(Vue.component('members-component'), { props });\r\n }\r\n\r\n public renderRounterLink(h, _, row) {\r\n const routeUrl = this.$router.resolve({\r\n name: 'team-directory-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey: row.dataItem.groupKey,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'members',\r\n period: periodModule.selectedPeriod,\r\n },\r\n }).href;\r\n\r\n const props = {\r\n text: row.dataItem.name,\r\n url: routeUrl,\r\n };\r\n\r\n return h(Vue.component('grid-router-link'), { props });\r\n }\r\n\r\n public fullname(member: any): string {\r\n return `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n\r\n public renderTeam(h, _, row) {\r\n return h('td', this.teams.find((x) => x.teamId === row.dataItem.teamId).name);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./groups.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./groups.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./groups.vue?vue&type=template&id=c04149b2&\"\nimport script from \"./groups.ts?vue&type=script&lang=js&\"\nexport * from \"./groups.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.isLoading)?_c('spinner'):_c('div',[_c('h3',[(_vm.teamKey || _vm.groupKey)?_c('b-button',{staticClass:\"my-2 mr-5 \",attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.goUp}},[_c('span',{staticClass:\"k-icon k-i-arrow-left align-text-bottom\"}),_vm._v(\" Up one level\")]):_vm._e(),(!_vm.teamKey && !_vm.groupKey)?_c('span',[_vm._v(\"All teams of \"+_vm._s(_vm.getEcosystemName()))]):_vm._e(),(_vm.teamKey && !_vm.groupKey)?_c('span',[_vm._v(\"Groups of \"+_vm._s(_vm.team.name))]):_vm._e(),(_vm.teamKey && _vm.groupKey)?_c('span',[_vm._v(\"Members of \"+_vm._s(_vm.group.name))]):_vm._e()],1),_c('svg-graph',{attrs:{\"graphData\":_vm.graph}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport to from 'await-to-js';\r\nimport { mapService, $router, groupService, teamService, ecosystemHelper } from '@/main';\r\nimport GraphData from '@/models/Graph/GraphData';\r\nimport IMapSetting from '@/models/Map/IMapSettings';\r\nimport Group from '@/models/Group';\r\nimport Team from '@/models/Team';\r\nimport { Person } from '@/models/Person';\r\nimport BaseEcosystemDirectory from './BaseEcosystemDirectory';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class EcosystemMapComponent extends BaseEcosystemDirectory {\r\n public graph = new GraphData();\r\n public teamId: number = null;\r\n public team: Team = new Team();\r\n public groupKey: string = '';\r\n public groupId: number = null;\r\n public group: Group = new Group();\r\n\r\n private mapSettings: IMapSetting[] = [];\r\n\r\n public created() {\r\n this.teamId = parseInt(this.$route.params.teamId);\r\n this.groupKey = this.$route.params.group;\r\n this.groupId = parseInt(this.$route.params.groupId);\r\n }\r\n\r\n public async mounted() {\r\n if (typeof this.groupKey !== 'undefined') {\r\n const [err, response] = await to(groupService.getGroup(this.groupId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load group', err);\r\n }\r\n\r\n this.group = response.data;\r\n }\r\n\r\n this.teams = await teamService.getTeams();\r\n if (typeof this.teamId !== 'undefined') {\r\n this.team = this.teams.find((x) => x.teamId === this.teamId);\r\n this.mapSettings = await mapService.getSettings(this.teamId);\r\n } else {\r\n this.mapSettings = await mapService.getSettings();\r\n }\r\n\r\n if (this.group && this.group.groupId > 0) {\r\n await this.handleGroupScope();\r\n } else if (this.team && this.team.teamId > 0) {\r\n await this.handleTeamScope();\r\n } else {\r\n await this.handleEcosystemScope();\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async handleGroupScope() {\r\n for (const [index, member] of this.group.members.entries()) {\r\n let settings = null; // this.mapSettings.find((x) => x.member === member.groupId);\r\n\r\n if (!settings) {\r\n const rows = Math.ceil(Math.sqrt(this.group.members.length));\r\n const x = 0 + (index % rows) * 100;\r\n const y = 0 + Math.floor(index / rows) * 100;\r\n\r\n settings = { x, y, radius: 40, team: null, group: this.group.groupId, member: member.memberId };\r\n }\r\n\r\n this.graph.vertices.push({\r\n id: member.memberId,\r\n name: new Person(member).getFullName(),\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n // onclick: () => this.goToGroup(this.team.key, group.groupKey),\r\n });\r\n }\r\n }\r\n\r\n public async handleTeamScope() {\r\n for (const [index, group] of this.team.groups.entries()) {\r\n let settings = this.mapSettings.find((x) => x.group === group.groupId);\r\n if (!settings) {\r\n settings = { x: 20 * index, y: 20, radius: 20, team: null, group: group.groupId };\r\n }\r\n\r\n this.graph.vertices.push({\r\n id: group.groupId,\r\n name: group.name,\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n onclick: () => this.goToGroup(this.team, group),\r\n });\r\n }\r\n }\r\n\r\n public async handleEcosystemScope() {\r\n for (const team of this.teams) {\r\n const settings = this.mapSettings.find((x) => x.team === team.teamId);\r\n this.graph.vertices.push({\r\n id: team.teamId,\r\n key: team.teamKey,\r\n name: team.name,\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n onclick: () => this.goToTeam(team),\r\n });\r\n }\r\n }\r\n\r\n public async goUp() {\r\n if (this.group && this.group.groupId > 0) {\r\n return this.goToTeam(this.team);\r\n }\r\n\r\n await $router.push({\r\n name: 'ecosystem-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n tab: 'map',\r\n },\r\n });\r\n }\r\n\r\n public async goToTeam(team: Team) {\r\n await $router.push({\r\n name: 'ecosystem-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n tab: 'map',\r\n teamId: team.teamId.toString(),\r\n teamKey: team.teamKey,\r\n },\r\n });\r\n }\r\n\r\n public async goToGroup(team: Team, group: Group) {\r\n await $router.push({\r\n name: 'ecosystem-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n tab: 'map',\r\n teamId: team.teamId.toString(),\r\n teamKey: team.teamKey,\r\n groupId: group.groupId.toString(),\r\n groupKey: group.groupKey,\r\n },\r\n });\r\n }\r\n\r\n public getEcosystemName() {\r\n return ecosystemHelper.currentEcosystem.name;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./map.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./map.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./map.vue?vue&type=template&id=2c403423&\"\nimport script from \"./map.ts?vue&type=script&lang=js&\"\nexport * from \"./map.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('prd-loader',{attrs:{\"absolute\":\"\"}}):_c('div',[_c('prd-toolbar',{attrs:{\"space-between\":\"\"}},[_c('generic-search',{attrs:{\"slot\":\"left\",\"data-items\":_vm.allMembers,\"properties\":['firstName', 'phoneNumber', 'emailAddress', 'lastName', 'name', 'team']},on:{\"finished-search\":_vm.updateGridData},slot:\"left\"})],1),_c('prd-grid-wrapper',{key:_vm.refreshGrid,attrs:{\"data-items\":_vm.members,\"columns\":_vm.memberColumns,\"row-height\":36}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { ecosystemHelper, teamService } from '@/main';\r\nimport { ecosystemService } from '@/main';\r\nimport { Member } from '@/models/Member';\r\nimport BaseEcosystemDirectory from './BaseEcosystemDirectory';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class MembersComponent extends BaseEcosystemDirectory {\r\n public allMembers: Member[] = [];\r\n public isLoading: boolean = true;\r\n\r\n public memberColumns: any[] = [\r\n { cell: this.renderMemberWithIcon, title: 'NAME', field: 'firstName' },\r\n { cell: this.renderTeamMemberships, title: 'MEMBERS_OF', field: 'firstName' },\r\n { cell: this.renderMemberships, title: 'MEMBERS_OF', field: 'firstName' },\r\n { title: 'EMAIL', field: 'emailAddress' },\r\n { title: 'PHONE', field: 'phoneNumber' },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 120 },\r\n ];\r\n\r\n public updateGridData(dataItems) {\r\n this.members = orderBy(dataItems, [{ field: 'firstName', dir: 'asc' }]);\r\n this.refreshGrid++;\r\n }\r\n\r\n public async created() {\r\n const self = this;\r\n\r\n this.teams = await teamService.getTeams();\r\n const members = await ecosystemService.getMembers();\r\n const membersDataSorted = orderBy(members, [{ field: 'firstName', dir: 'asc' }]);\r\n self.allMembers = self.members = membersDataSorted;\r\n self.isLoading = false;\r\n }\r\n\r\n public renderMemberWithIcon(h, _, row) {\r\n return this.renderMember(h, row.dataItem);\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n public async removeFromEcosystem(item) {\r\n this.showPending('REMOVING_MEMBER_PENDING_ECO');\r\n const [err] = await to(ecosystemService.removeMember(item.personId, ecosystemHelper.currentEcosystem.id, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError(`REMOVING_MEMBER_FAILED_ECO`, err);\r\n }\r\n\r\n this.clearAndShowSuccess(`REMOVING_MEMBER_SUCCESS_ECO`);\r\n await this.refreshMembersGrid();\r\n }\r\n\r\n public async refreshMembersGrid() {\r\n\r\n const members = await ecosystemService.getMembers();\r\n const membersDataSorted = orderBy(members, [{ field: 'firstName', dir: 'asc' }]);\r\n this.allMembers = this.members = membersDataSorted;\r\n\r\n this.refreshGrid++;\r\n }\r\n\r\n public renderActions(h, _, row) {\r\n const member = row.dataItem;\r\n\r\n if (!member.teamMemberships.length) {\r\n const actions = [{ title: 'Remove account', function: this.removeFromEcosystem }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n return h('td');\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./members.vue?vue&type=template&id=6d90cb07&\"\nimport script from \"./members.ts?vue&type=script&lang=js&\"\nexport * from \"./members.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.isLoading)?_c('spinner'):_c('div')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import PageRender from '@/models/PageRender';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class EcosystemPeopleComponent extends PageRender {\r\n public async mounted() {\r\n this.isLoading = false;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./people.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./people.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./people.vue?vue&type=template&id=45b86bf7&\"\nimport script from \"./people.ts?vue&type=script&lang=js&\"\nexport * from \"./people.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('prd-loader',{attrs:{\"absolute\":\"\"}}):_c('div',[_c('prd-toolbar',{attrs:{\"space-between\":\"\"}},[_c('generic-search',{attrs:{\"slot\":\"left\",\"data-items\":_vm.allTeams,\"properties\":['name', 'key']},on:{\"finished-search\":_vm.updateGridData},slot:\"left\"}),_c('router-link',{attrs:{\"slot\":\"right\",\"to\":{ name: 'ecosystem-ceate-team', params: { ecosystem: _vm.$root.ecosystemHelper.ecosystemParam, period: _vm.$store.state.period._selectedPeriod } }},slot:\"right\"},[_c('b-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\"}},[_vm._v(\"Add team \")])],1)],1),_c('prd-grid-wrapper',{key:_vm.refreshGrid,attrs:{\"data-items\":_vm.teams,\"columns\":_vm.teamsColumns,\"row-height\":36}}),_c('are-you-sure-modal',{ref:\"areYouSureModal\",on:{\"delete-entity\":_vm.deleteTeam}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { teamHelper, teamService, ecosystemHelper } from '@/main';\r\nimport BaseEcosystemDirectory from './BaseEcosystemDirectory';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\nimport Team from '@/models/Team';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport AreYouSureModal from '@/components/modals/are-you-sure-modal';\r\n\r\n@Component\r\nexport default class EcosystemTeamsComponent extends BaseEcosystemDirectory {\r\n public allTeams: Team[] = [];\r\n public teamsColumns: any[] = [\r\n { field: 'name', title: 'NAME' },\r\n { cell: this.renderEcosystem, title: 'ECOSYSTEM', width: 300 },\r\n { cell: this.renderGroups, title: 'GROUPS', width: 125 },\r\n { cell: this.renderActions, title: 'ACTIONS', width: 125 },\r\n ];\r\n\r\n public $refs!: {\r\n areYouSureModal: AreYouSureModal;\r\n };\r\n\r\n public async created() {\r\n const self = this;\r\n\r\n this.teams = await teamService.getTeams();\r\n this.allTeams = this.teams = orderBy(this.teams, [{ field: 'name', dir: 'asc' }]);\r\n\r\n self.isLoading = false;\r\n }\r\n\r\n public updateGridData(dataItems) {\r\n this.teams = orderBy(dataItems, [{ field: 'name', dir: 'asc' }]);\r\n this.refreshGrid++;\r\n }\r\n\r\n public renderGroupLead(h, _, row): any {\r\n return this.renderMember(h, row.dataItem.groupLead);\r\n }\r\n\r\n public renderRounterLink(h, _, row) {\r\n const routeUrl = this.$router.resolve({\r\n name: 'team-directory-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey: row.dataItem.groupKey,\r\n groupId: row.dataItem.groupId,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'members',\r\n period: periodModule.selectedPeriod,\r\n },\r\n }).href;\r\n\r\n const props = {\r\n text: row.dataItem.name,\r\n url: routeUrl,\r\n };\r\n\r\n return h(Vue.component('grid-router-link'), { props });\r\n }\r\n\r\n public fullname(member: any): string {\r\n return `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n\r\n public renderEcosystem(h) {\r\n return h('td', ecosystemHelper.currentEcosystem.name);\r\n }\r\n\r\n public showDeleteTeamModal(item) {\r\n this.$refs.areYouSureModal.setScope(item, 'name', 'Team');\r\n this.$refs.areYouSureModal.show();\r\n }\r\n\r\n public async deleteTeam(team: Team) {\r\n this.showPending('DELETE_TEAM_PENDING');\r\n const success = await teamService.deleteTeam(team.teamId);\r\n if (!success) {\r\n return;\r\n }\r\n\r\n this.clearAndShowSuccess('DELETE_TEAM_SUCCESS');\r\n this.$refs.areYouSureModal.hide();\r\n\r\n this.isLoading = true;\r\n this.teams = await teamService.getTeams();\r\n this.allTeams = this.teams = orderBy(this.teams, [{ field: 'name', dir: 'asc' }]);\r\n this.isLoading = false;\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [{ title: 'Delete team', function: this.showDeleteTeamModal }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./teams.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./teams.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./teams.vue?vue&type=template&id=d7d65a36&\"\nimport script from \"./teams.ts?vue&type=script&lang=js&\"\nexport * from \"./teams.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link teams\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ALL_TEAMS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ALL_TEAMS'),expression:\"'ALL_TEAMS'\"}],staticClass:\"nav-link teams\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('teams')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link groups\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ALL_GROUPS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ALL_GROUPS'),expression:\"'ALL_GROUPS'\"}],staticClass:\"nav-link groups\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('groups')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link members\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ALL_MEMBERS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ALL_MEMBERS'),expression:\"'ALL_MEMBERS'\"}],staticClass:\"nav-link members\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('members')}}})])]),_c('div',{staticClass:\"tab-content\"},[_c(_vm.currentTabComponent,{tag:\"component\"})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { $router } from '@/main';\r\nimport jQuery from 'jquery';\r\nimport PageRender from '@/models/PageRender';\r\n\r\n@Component\r\nexport default class EcosytemDirectoryComponent extends PageRender {\r\n public tab: string = null;\r\n public currentTabComponent: string = '';\r\n public tabs: string[] = [\r\n 'teams',\r\n 'groups',\r\n 'members',\r\n ];\r\n\r\n public async mounted() {\r\n await this.checkPeriodParam();\r\n await this.changeTab(this.$route.params.tab);\r\n }\r\n\r\n public async changeTab(tab: string): Promise {\r\n if (this.tabs.indexOf(tab) < 0) {\r\n tab = this.tabs[0];\r\n }\r\n\r\n if (tab !== this.$route.params.tab) {\r\n const params = this.$route.params;\r\n params.tab = tab;\r\n\r\n await $router.push({ name: 'ecosystem-directory', params });\r\n } else {\r\n this.doActiveClass(tab);\r\n this.currentTabComponent = 'ecosystem-directory-' + tab;\r\n }\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./directory.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./directory.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./directory.vue?vue&type=template&id=2b708a8a&\"\nimport script from \"./directory.ts?vue&type=script&lang=js&\"\nexport * from \"./directory.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[(_vm.teams)?_c('div',[_c('div',[_c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link invoices\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INVOICES\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('INVOICES'),expression:\"'INVOICES'\"}],staticClass:\"nav-link invoices active\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('invoices')}}})]),_vm._l((_vm.teams),function(team,index){return _c('li',{key:'eco_finance_' + index,staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{class:'nav-link ' + team.teamKey,attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab(team.teamKey)}}},[_vm._v(_vm._s(team.name))])])}),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link totals\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTALS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TOTALS'),expression:\"'TOTALS'\"}],staticClass:\"nav-link totals\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('totals')}}})])]],2)]),(_vm.currentTab != 'invoices')?_c('b-card',{staticClass:\"mb-3\"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"PERIOD\"}})],1),_c('grid-period-range-filter',{on:{\"filter-change\":_vm.recalculateResultsIncome}})],1):_c('b-card',{staticClass:\"mb-3\"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"PERIOD\"}})],1),_c('grid-period-range-filter',{on:{\"filter-change\":_vm.reloadInvoices}})],1),(_vm.currentTab == 'totals')?_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"TEAMS_INCLUDED_IN_TOTALS\"}})],1),_c('b-form-group',[_c('b-form-checkbox-group',{attrs:{\"id\":\"checkbox-group-1\",\"options\":_vm.teamOptions(),\"name\":\"flavour-1\"},model:{value:(_vm.selectedTeams),callback:function ($$v) {_vm.selectedTeams=$$v},expression:\"selectedTeams\"}})],1)],1):_vm._e(),(_vm.currentTab == 'invoices')?_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"LEGAL_ENTITIES\"}})],1),_c('b-form-group',[_c('b-form-radio-group',{attrs:{\"id\":\"checkbox-group-legal-entities\",\"options\":_vm.legalEntitiesOptions(),\"name\":\"legal-entities\"},model:{value:(_vm.selectedLegalEntity),callback:function ($$v) {_vm.selectedLegalEntity=$$v},expression:\"selectedLegalEntity\"}})],1)],1):_vm._e(),(_vm.currentTab == 'invoices')?_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"TEAMS\"}})],1),_c('b-form-group',[_c('b-form-radio-group',{attrs:{\"id\":\"checkbox-group-teams\",\"options\":_vm.teamOptions(),\"name\":\"teams\"},model:{value:(_vm.selectedTeam),callback:function ($$v) {_vm.selectedTeam=$$v},expression:\"selectedTeam\"}})],1)],1):_vm._e(),(_vm.currentTab != 'totals' && _vm.currentTab != 'invoices')?_c('div',{staticClass:\"tab-content\"},[_c('div',{staticClass:\"row row-eq-height mb-4\"},[_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"TEAM_RESULT\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getTeamResult())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"TEAM_BALANCE\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getTeamBalance())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"OPEN_INVOICES\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getTeamOpenInvocies())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"OPEN_EXPENSES\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getTeamOpenExpenses())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"EXPENSES\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getTeamExpenses())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"EXTRAS\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getTeamExtras())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"DROP_DEAD_RATIO\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.getDropDeadRatio())}})])])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"TOTAL_GROUP_OPEN_INVOICES\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getGroupOpenInvoices())}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"TOTAL_GROUP_OPEN_EXPENSES\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.getGroupOpenExpenses())}})])],1)],1)]),(!_vm.loadingGrids)?[_c('prd-grid-wrapper',{key:'groups_' + _vm.reloadGrids,staticClass:\"mb-5\",attrs:{\"data-items\":_vm.groupsData,\"columns\":_vm.groupsDataColumns,\"row-height\":34}}),_c('prd-grid-wrapper',{key:'members_' + _vm.reloadGrids,staticClass:\"mb-5\",attrs:{\"data-items\":_vm.membersData,\"columns\":_vm.membersDataColumns,\"row-height\":34}})]:_vm._e()],2):_vm._e(),(_vm.currentTab == 'totals')?_c('div',{key:_vm.updateTotals,staticClass:\"tab-content\"},[_c('div',{staticClass:\"row row-eq-height\"},[_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-3\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FINANCES_RESULT\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.totalResult)}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FINANCES_BALANCE\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.totalBalance)}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FINANCE_EXTERNAL_REVENUE\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.totalExternalRevenue)}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_EXPENSES\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.totalExpenses)}})])],1)],1),_c('div',{staticClass:\"col-md-3\"},[_c('b-card',{staticClass:\"mb-3 mb-md-0\"},[_c('h5',{staticClass:\"pb-2\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_EXTRAS\"}})],1),(_vm.reloadingResults)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('b-card-body',{staticClass:\"py-3\"},[(_vm.numberOfMonths == 1)?_c('h6',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.$root.periodFilterHelper.currentMonth(\"MMMM 'YY\")))]):_vm._e(),_c('h1',{staticClass:\"mb-3\",domProps:{\"innerHTML\":_vm._s(_vm.totalExtras)}})])],1)],1)]),_c('div',{staticClass:\"row mt-5\"},[_c('div',{staticClass:\"col-md-12\"},[(_vm.reloadingResults)?[_c('spinner')]:_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.getEcologyOverviewData(),\"columns\":_vm.overviewTeamColumns,\"row-height\":34}})],2)])]):_vm._e(),(_vm.currentTab == 'invoices')?_c('div',{staticClass:\"tab-content\"},[_c('div',{staticClass:\"row mt-5\"},[_c('div',{staticClass:\"col-md-12\"},[(_vm.reloadingResults)?[_c('spinner')]:[_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('b-button',{staticClass:\"mr-3 d-inline\",attrs:{\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.reloadInvoices(_vm.currentDates)}}},[_c('span',{staticClass:\"icon-rotate-cw\"})]),_c('div',[_c('b-form-checkbox',{staticClass:\"mt-1\",attrs:{\"name\":\"check-button\",\"switch\":\"\"},model:{value:(_vm.expensesType),callback:function ($$v) {_vm.expensesType=$$v},expression:\"expensesType\"}},[_vm._v(\" Expenses \")])],1),_c('div',{staticClass:\"ml-3\"},[_c('b-form-checkbox',{staticClass:\"mt-1\",attrs:{\"name\":\"check-button\",\"switch\":\"\"},model:{value:(_vm.includeDistributions),callback:function ($$v) {_vm.includeDistributions=$$v},expression:\"includeDistributions\"}},[_vm._v(\" Include distributions \")])],1),(_vm.selectedLegalEntity || _vm.selectedTeam)?[_c('span',{staticClass:\"mt-1 ml-2\"},[_vm._v(\"Scope: \")]),(_vm.selectedLegalEntity)?[_c('b-badge',{staticClass:\"mt-1 ml-2\"},[_vm._v(_vm._s(_vm.selectedLegalEntity)+\" \"),_c('span',{staticClass:\"k-icon k-i-close\",on:{\"click\":function($event){_vm.selectedLegalEntity = null}}})])]:_vm._e(),(_vm.selectedTeam)?[_c('b-badge',{staticClass:\"mt-1 ml-2\"},[_vm._v(_vm._s(_vm.teams.find(function (x) { return x.teamId === _vm.selectedTeam; }).name)+\" \"),_c('span',{staticClass:\"k-icon k-i-close\",on:{\"click\":function($event){_vm.selectedTeam = null}}})])]:_vm._e()]:_vm._e()],2),_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"EXPORT_INVOICES\"},on:{\"click\":_vm.exportInvoices}})],1),_c('prd-grid-wrapper',{key:_vm.invoicesGrid,attrs:{\"data-items\":_vm.invoices,\"columns\":_vm.invoicesColumns,\"row-height\":34}})]],2)])]):_vm._e()],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport to from 'await-to-js';\r\nimport { resultService, teamService, $router, roleHelper, periodService, loginHelper, ecosystemHelper, teamHelper, financeService } from '@/main';\r\nimport PageRender from '../../models/PageRender';\r\nimport jQuery from 'jquery';\r\nimport TeamResults from '@/models/Finance/Api/TeamResults';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\nimport Team from '@/models/Team';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport EcosystemResults from '@/models/Finance/Api/TeamResults';\r\nimport { Invoice } from '@/models/Invoice';\r\nimport { saveExcel } from '@progress/kendo-vue-excel-export';\r\nimport moment from 'moment';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\n\r\n@Component\r\nexport default class EcosystemResultsComponent extends PageRender {\r\n public ecosystemResults: EcosystemResults = null;\r\n\r\n public currentTabComponent: string;\r\n public currentTab: string = null;\r\n public currentTeamData: any = new TeamResults();\r\n public previousCurrentTeamData: any = null;\r\n public isLoading: boolean = true;\r\n public numberOfMonths: number = 1;\r\n\r\n public teams: Team[] = [];\r\n\r\n public totalBalance: string = '';\r\n public totalResult: string = '';\r\n public totalExternalRevenue: string = '';\r\n public totalExtras: string = '';\r\n public totalExpenses: string = '';\r\n public expensesType: boolean = false;\r\n public includeDistributions: boolean = false;\r\n\r\n public previousTotalBalance: string = '';\r\n public previousTotalResult: string = '';\r\n public previousTotalExternalRevenue: string = '';\r\n public previousTotalExpenses: string = '';\r\n public previousTotalExtras: string = '';\r\n\r\n public reloadingResults: boolean = true;\r\n public reloadGrids: number = 0;\r\n public loadingGrids: boolean = false;\r\n\r\n public selectedTeams: number[] = [];\r\n public selectedTeam: number = null;\r\n public selectedLegalEntity: string = null;\r\n\r\n public updateTotals: number = 0;\r\n public teamPeriodStatusses: any = [];\r\n\r\n public invoicesColumns = [\r\n { title: 'INVOICE_ID', field: 'invoiceId' },\r\n { title: 'NAME', field: 'name', width: 300 },\r\n { title: 'DESCRIPTION', field: 'description', width: 300 },\r\n { title: 'AMOUNT', field: 'amount', cell: this.formatAmount },\r\n { title: 'REFERENCE', field: 'reference' },\r\n { title: 'INVOICE_DATE', field: 'invoiceDate', cell: this.renderInvoiceDate }, // cell: this.renderInvoiceDate },\r\n { title: 'INVOICE_TYPE', field: 'invoiceType' },\r\n { title: 'IS_RECURRING', field: 'isRecurring' },\r\n { title: 'LEGAL_ENTITY_REF', field: 'legalEntityReferenceOrigin', width: 180 },\r\n { title: 'PERIOD', field: 'periodId' },\r\n { title: 'SOURCE', field: 'source' },\r\n { title: 'TEAM', field: 'team' },\r\n ];\r\n\r\n public exportInvoicesGridColumns = [\r\n { title: 'INVOICE_ID', field: 'invoiceId' },\r\n { title: 'AMOUNT', field: 'amount' },\r\n { title: 'NAME', field: 'name' },\r\n { title: 'DESCRIPTION', field: 'description' },\r\n { title: 'REFERENCE', field: 'reference' },\r\n { title: 'INVOICE_DATE', field: 'invoiceDate' },\r\n { title: 'INVOICE_TYPE', field: 'invoiceType' },\r\n { title: 'IS_RECURRING', field: 'isRecurring' },\r\n { title: 'LEGAL_ENTITY_REF', field: 'legalEntityReferenceOrigin' },\r\n { title: 'PERIOD', field: 'periodId' },\r\n { title: 'SOURCE', field: 'source' },\r\n { title: 'TEAM', field: 'team' },\r\n ];\r\n\r\n public exportDistributedInvoicesGridColumns = [\r\n { title: 'INVOICE_ID', field: 'invoiceId' },\r\n { title: 'AMOUNT', field: 'amount' },\r\n { title: 'NAME', field: 'name' },\r\n { title: 'DESCRIPTION', field: 'description' },\r\n { title: 'REFERENCE', field: 'reference' },\r\n { title: 'INVOICE_DATE', field: 'invoiceDate' },\r\n { title: 'INVOICE_TYPE', field: 'invoiceType' },\r\n { title: 'IS_RECURRING', field: 'isRecurring' },\r\n { title: 'LEGAL_ENTITY_REF', field: 'legalEntityReferenceOrigin' },\r\n { title: 'PERIOD', field: 'periodId' },\r\n { title: 'SOURCE', field: 'source' },\r\n { title: 'TEAM', field: 'team' },\r\n { title: 'GROUP', field: 'group' },\r\n { title: 'OPEN_AMOUNT', field: 'openAmount' },\r\n ];\r\n\r\n public invoices: Invoice[] = [];\r\n public invoicesGrid: number = 0;\r\n\r\n public groupsData: any = [];\r\n public groupsDataColumns = [\r\n { field: 'group.name', title: 'GROUP_NAME', cell: this.renderEcosystemGroupLink, width: 300, locked: true },\r\n { field: 'startBalance', format: '{0:n2}', title: 'START_BALANCE', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'balance', format: '{0:n2}', title: 'BALANCE', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'income', format: '{0:n2}', title: 'INCOME', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'totalCosts', format: '{0:n2}', title: 'TOTAL_COSTS', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'result', format: '{0:n2}', title: 'RESULT', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'expenses', format: '{0:n2}', title: 'EXPENSES', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'nonRecurringExpenses', format: '{0:n2}', title: 'EXTRAS', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'openInvoiceAmount', format: '{0:n2}', title: 'OPEN_INVOICES', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'openExpenseAmount', format: '{0:n2}', title: 'OPEN_EXPENSES', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'externalRevenue', format: '{0:n2}', title: 'EXTERNAL_REVENUE', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'attributions', format: '{0:n2}', title: 'ATTRIBUTIONS', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'compensations', format: '{0:n2}', title: 'COMPENSATIONS', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n { field: 'transferredAmount', format: '{0:n2}', title: 'TRANSFERRED_AMOUNT', width: 150, footerCell: this.renderGroupResultsFooterCellSum },\r\n ];\r\n\r\n public membersData: any = [];\r\n public membersDataColumns = [\r\n { field: 'member', cell: this.renderMemberResult, title: 'MEMBER', width: 300, locked: true },\r\n { field: 'income', format: '{0:n2}', title: 'INCOME', width: 150, footerCell: this.renderMemberResultsFooterCellSum },\r\n { field: 'totalCosts', format: '{0:n2}', title: 'TOTAL_COSTS', width: 150, footerCell: this.renderMemberResultsFooterCellSum },\r\n { field: 'result', format: '{0:n2}', title: 'RESULT', width: 150, footerCell: this.renderMemberResultsFooterCellSum },\r\n { field: 'balance', format: '{0:n2}', title: 'BALANCE', width: 150, footerCell: this.renderMemberResultsFooterCellSum },\r\n { field: 'extras', format: '{0:n2}', title: 'EXTRAS', width: 150, footerCell: this.renderMemberResultsFooterCellSum },\r\n { field: 'expenses', format: '{0:n2}', title: 'EXPENSES', width: 150, footerCell: this.renderMemberResultsFooterCellSum },\r\n ];\r\n\r\n public overviewTeamColumns: any[] = [\r\n { field: 'teamName', title: 'TEAM', width: 300, filterable: false, cell: this.renderTeamNameWithPeriod, locked: true, className: 'bg-white' },\r\n {\r\n filterable: false,\r\n cell: this.renderStartBalance,\r\n title: 'START_BALANCE',\r\n field: 'startBalance',\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n },\r\n { filterable: false, cell: this.renderBalance, title: 'BALANCE', field: 'balance', width: 160, footerCell: this.renderFooterCellSum },\r\n { filterable: false, cell: this.renderResult, title: 'RESULT', width: 160, footerCell: this.renderFooterCellSum, field: 'result' },\r\n {\r\n filterable: false,\r\n cell: this.renderExpenses,\r\n title: 'EXPENSES_RECURRING',\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n field: 'expenses',\r\n },\r\n {\r\n filterable: false,\r\n cell: this.renderExtras,\r\n title: 'EXTRA_NON_RECURRING',\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n field: 'extras',\r\n },\r\n {\r\n field: 'openInvoiceAmount',\r\n title: 'OPEN_INVOICES',\r\n filterable: false,\r\n cell: this.renderOpenInvoiceAmount,\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n },\r\n {\r\n field: 'openExpenseAmount',\r\n title: 'OPEN_EXPENSES',\r\n filterable: false,\r\n cell: this.renderOpenExpensesAmount,\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n },\r\n {\r\n field: 'groupOpenInvoiceAmount',\r\n title: 'OPEN_INVOICES_GROUP',\r\n filterable: false,\r\n cell: this.renderGroupOpenInvoiceAmount,\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n },\r\n {\r\n field: 'groupOpenExpenseAmount',\r\n title: 'OPEN_EXPENSES_GROUP',\r\n filterable: false,\r\n cell: this.renderGroupOpenExpensesAmount,\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n },\r\n {\r\n filterable: false,\r\n cell: this.renderExternalRevenue,\r\n title: 'EXTERNAL_REVENUE',\r\n width: 160,\r\n footerCell: this.renderFooterCellSum,\r\n field: 'externalRevenue',\r\n },\r\n { filterable: false, cell: this.renderDropDeadRatio, title: 'DROP_DEAD_RATIO', width: 150 },\r\n ];\r\n\r\n private currentDates: any = null;\r\n\r\n public async created() {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await $router.push({ name: 'not-found' });\r\n }\r\n\r\n this.teams = await teamService.getTeams();\r\n\r\n this.teamPeriodStatusses = await periodService.getTeamPeriodStatusses();\r\n\r\n this.currentTab = 'invoices';\r\n this.isLoading = false;\r\n }\r\n\r\n public async recalculateResultsIncome(dates) {\r\n this.reloadingResults = true;\r\n this.currentDates = dates;\r\n\r\n const results = await resultService.getEcosystemResults(dates.fromFilterMonth, dates.toFilterMonth, this.selectedTeams);\r\n if (dates.fromFilterMonth !== dates.toFilterMonth) {\r\n this.numberOfMonths = 0;\r\n }\r\n\r\n this.ecosystemResults = results;\r\n this.reloadingResults = false;\r\n this.setTotals();\r\n\r\n this.loadGridData(this.currentTab);\r\n }\r\n\r\n public async reloadInvoices(dates) {\r\n this.reloadingResults = true;\r\n if (this.currentTab !== 'invoices') {\r\n return;\r\n }\r\n\r\n this.currentDates = dates;\r\n\r\n const results = await financeService.searchInvoices(\r\n dates.fromFilterMonth,\r\n dates.toFilterMonth,\r\n this.selectedTeam,\r\n this.selectedLegalEntity,\r\n this.expensesType ? InvoiceType.Expenses : InvoiceType.Income,\r\n this.includeDistributions,\r\n );\r\n\r\n if (this.includeDistributions && !this.invoicesColumns.find((x) => x.field === 'openAmount')) {\r\n this.invoicesColumns.splice(4, 0, {\r\n title: 'Open',\r\n field: 'openAmount',\r\n cell: this.renderOpenAmount,\r\n });\r\n } else if (!this.includeDistributions) {\r\n this.invoicesColumns = this.invoicesColumns.filter((x) => x.field !== 'openAmount');\r\n }\r\n\r\n this.invoices = results;\r\n this.reloadingResults = false;\r\n this.invoicesGrid++;\r\n }\r\n\r\n public async exportInvoices() {\r\n if (this.includeDistributions) {\r\n return this.exportDistributedInvoices();\r\n }\r\n\r\n saveExcel({\r\n data: this.invoices,\r\n fileName: `Team-${teamHelper.currentTeamId}-invoices-${moment().format('YYYY-MM-DD HH:mm:')}`,\r\n columns: this.exportInvoicesGridColumns,\r\n });\r\n }\r\n\r\n public exportDistributedInvoices() {\r\n const invoices = [];\r\n\r\n this.invoices.forEach((invoice) => {\r\n invoice.distributions.forEach((dist: any) => {\r\n invoices.push({\r\n ...invoice,\r\n group: dist.groupName,\r\n openAmount: dist.openAmount,\r\n });\r\n });\r\n });\r\n\r\n saveExcel({\r\n data: invoices,\r\n fileName: `Team-${teamHelper.currentTeamId}-invoices-${moment().format('YYYY-MM-DD HH:mm:')}`,\r\n columns: this.exportDistributedInvoicesGridColumns,\r\n });\r\n }\r\n\r\n public filterOnMembership(teams: Team[]) {\r\n const member = loginHelper.getUser();\r\n const myTeams = [];\r\n\r\n for (const team of teams) {\r\n if (member.teamMemberships.find((x) => x.id === team.teamId)) {\r\n myTeams.push(team);\r\n }\r\n }\r\n\r\n return myTeams;\r\n }\r\n\r\n public setTotals() {\r\n this.totalBalance = Vue.filter('number-format')(this.ecosystemResults.balance);\r\n this.totalResult = Vue.filter('number-format')(this.ecosystemResults.result);\r\n this.totalExternalRevenue = Vue.filter('number-format')(this.ecosystemResults.externalRevenue);\r\n this.totalExpenses = Vue.filter('number-format')(this.ecosystemResults.expenses);\r\n this.totalExtras = Vue.filter('number-format')(this.ecosystemResults.extras);\r\n }\r\n\r\n public renderBalance(h, _, row) {\r\n const props = { value: row.dataItem.balance };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderStartBalance(h, _, row) {\r\n const props = { value: row.dataItem.startBalance };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExpenses(h, _, row) {\r\n const props = { value: row.dataItem.expenses };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderResult(h, _, row) {\r\n const props = { value: row.dataItem.result };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExtras(h, _, row) {\r\n const props = { value: row.dataItem.extras };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExternalRevenue(h, _, row) {\r\n const props = { value: row.dataItem.externalRevenue };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderOpenInvoiceAmount(h, _, row) {\r\n const teamOpenInvoices = row.dataItem.openInvoiceAmount as number;\r\n const props = { value: teamOpenInvoices };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderOpenExpensesAmount(h, _, row) {\r\n const teamOpenExpenses = row.dataItem.openExpenseAmount as number;\r\n const props = { value: teamOpenExpenses };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderGroupOpenInvoiceAmount(h, _, row) {\r\n const groupOpenInvoiceAmount = row.dataItem.groupOpenInvoiceAmount as number;\r\n const props = { value: groupOpenInvoiceAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderGroupOpenExpensesAmount(h, _, row) {\r\n const groupOpenExpenseAmount = row.dataItem.groupOpenExpenseAmount as number;\r\n const props = { value: groupOpenExpenseAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderDropDeadRatio(h, _, row) {\r\n if (row.dataItem.safetyZone) {\r\n const props = { value: row.dataItem.safetyZone };\r\n return h(Vue.component('number-formatter'), { props });\r\n } else {\r\n return h('td', ['N/A']);\r\n }\r\n }\r\n\r\n public async getTeamPeriods(teamId: number) {\r\n const [err, periods] = await to(periodService.getPeriods(teamId));\r\n if (err) {\r\n this.showFailedResponse('Failed to load team periods', null);\r\n }\r\n\r\n return periods;\r\n }\r\n\r\n public loadGridData(currentTab: string) {\r\n if (currentTab === 'totals' || currentTab === 'invoices') {\r\n return;\r\n }\r\n\r\n const foundTeam = this.teams.find((x) => x.teamKey === currentTab);\r\n this.currentTeamData = this.ecosystemResults.teamResults.find((team) => team.teamId === foundTeam.teamId);\r\n\r\n if (this.currentTeamData) {\r\n const groupDataSorted = orderBy(this.currentTeamData.groupResults, [{ field: 'name', dir: 'asc' }]);\r\n this.groupsData = groupDataSorted;\r\n\r\n const memberDataSorted = orderBy(this.currentTeamData.memberResults, [{ field: 'name', dir: 'asc' }]);\r\n this.membersData = memberDataSorted;\r\n } else {\r\n this.membersData = [];\r\n this.groupsData = [];\r\n }\r\n\r\n this.loadingGrids = false;\r\n }\r\n\r\n public teamOptions() {\r\n return this.teams.map((team) => {\r\n return { text: team.name, value: team.teamId };\r\n });\r\n }\r\n\r\n public legalEntitiesOptions() {\r\n const teams = this.teams.filter((x) => x.legalEntityReference);\r\n\r\n const list = [];\r\n\r\n teams.forEach((team) => {\r\n if (!list.find((y) => y.value === team.legalEntityReference)) {\r\n list.push({ text: `${team.legalEntityReference}`, value: team.legalEntityReference });\r\n }\r\n });\r\n\r\n return list;\r\n }\r\n\r\n public getEcologyOverviewData() {\r\n this.ecosystemResults.teamResults.forEach((team) => {\r\n const apiTeam = this.teams.find((x) => x.teamId === team.teamId);\r\n if (apiTeam) {\r\n team.name = apiTeam.name;\r\n } else {\r\n team.name = `team name non-found (teamId: ${team.teamId})`;\r\n }\r\n });\r\n\r\n return orderBy(this.ecosystemResults.teamResults, [{ field: 'name', dir: 'asc' }]);\r\n }\r\n\r\n public getTeamBalance() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.balance : 0);\r\n }\r\n\r\n public getTeamResult() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.result : 0);\r\n }\r\n\r\n public getTeamOpenInvocies() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.openInvoiceAmount : 0);\r\n }\r\n\r\n public getTeamOpenExpenses() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.openExpenseAmount * -1 : 0);\r\n }\r\n\r\n public getTeamExpenses() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.expenses * -1 : 0);\r\n }\r\n\r\n public getGroupOpenExpenses() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.groupOpenExpenseAmount * -1 : 0);\r\n }\r\n\r\n public getGroupOpenInvoices() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.groupOpenInvoiceAmount : 0);\r\n }\r\n\r\n public getTeamExtras() {\r\n return Vue.filter('number-format')(this.currentTeamData ? this.currentTeamData.extras * -1 : 0);\r\n }\r\n\r\n public getDropDeadRatio() {\r\n if (this.currentTeamData && this.currentTeamData.safetyZone) {\r\n return Vue.filter('number-format')(this.currentTeamData.safetyZone);\r\n }\r\n\r\n return 'N/A';\r\n }\r\n\r\n public async changeTab(tab: string) {\r\n if (!this.teams) {\r\n return;\r\n }\r\n\r\n this.doActiveClass(tab);\r\n this.currentTab = tab;\r\n this.loadingGrids = true;\r\n\r\n if (this.currentTab !== 'invoices') {\r\n if (!this.ecosystemResults) {\r\n await this.recalculateResultsIncome(this.currentDates);\r\n }\r\n }\r\n\r\n if (this.currentTab !== 'totals' && this.currentTab !== 'invoices') {\r\n this.$nextTick(() => {\r\n this.loadGridData(this.currentTab);\r\n });\r\n } else {\r\n this.reloadGrids++;\r\n this.loadingGrids = false;\r\n }\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.nav-link').removeClass('active');\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n\r\n public renderMemberResult(h, _row, item: any): any {\r\n return h('td', [item.dataItem.name]);\r\n }\r\n\r\n public calculateGroupGridHeight() {\r\n return { height: `${100 + (this.currentTeamData ? this.currentTeamData.groupResults.length : 1) * 40}px` };\r\n }\r\n\r\n public calculateMemberGridHeight() {\r\n return { height: `${100 + (this.currentTeamData ? this.currentTeamData.memberResults.length : 1) * 40}px` };\r\n }\r\n\r\n public calculateTotalsHeight() {\r\n return { height: `${100 + this.ecosystemResults.teamResults.length * 40}px` };\r\n }\r\n\r\n public renderFooterCellSum(h, _, row) {\r\n const total = this.ecosystemResults.teamResults.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderMemberResultsFooterCellSum(h, _, row) {\r\n const total = this.membersData.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderGroupResultsFooterCellSum(h, _, row) {\r\n const total = this.groupsData.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderOpenAmount(h, _, row) {\r\n let openAmount = 0;\r\n\r\n openAmount = row.dataItem.distributions.reduce((a, b) => a + b.openAmount, 0);\r\n\r\n const props = { value: openAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatAmount(h, _, row) {\r\n const props = { value: row.dataItem.amount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderInvoiceDate(h, _, row) {\r\n return h('td', [moment(row.dataItem.invoiceDate, 'YYYY-MM-DD').format('DD-MM-YYYY')]);\r\n }\r\n\r\n private renderTeamNameWithPeriod(h, _, row) {\r\n const teamId = row.dataItem.teamId;\r\n const periodStatus = this.teamPeriodStatusses.find((team) => team.teamId === teamId);\r\n const foundTeam = this.teams.find((team) => team.teamId === teamId);\r\n\r\n if (!periodStatus || !foundTeam) {\r\n return h('td', [`Team not found (teamId: ${teamId})`]);\r\n }\r\n\r\n return h('td', [`${foundTeam.name} ${periodStatus && periodStatus.closed ? '(closed)' : '(open)'}`]);\r\n }\r\n\r\n private renderEcosystemGroupLink(h, _, row): any {\r\n const groupId = row.dataItem.groupId;\r\n const groupName = row.dataItem.name;\r\n const groupKey = row.dataItem.groupKey;\r\n let group;\r\n\r\n let team = this.teams.find((x) => {\r\n return x.groups.filter((y) => y.groupId === groupId).length > 0;\r\n });\r\n\r\n if (team) {\r\n group = team.groups.find((x) => x.groupId === groupId);\r\n } else {\r\n team = this.teams.find((x) => x.teamKey === this.currentTab);\r\n }\r\n\r\n teamHelper.setTeamByTeamId(team.teamId);\r\n\r\n const routeUrl = $router.resolve({\r\n name: 'team-finances-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey: groupKey ? groupKey : group ? group.groupKey : `not-found`,\r\n groupId,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'insights',\r\n period: periodModule.selectedPeriod,\r\n },\r\n }).href;\r\n\r\n const props = {\r\n text: groupName ? groupName : group ? group.name : `Group not found (id: ${groupId})`,\r\n url: routeUrl,\r\n };\r\n\r\n return h(Vue.component('grid-router-link'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./finances.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./finances.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./finances.vue?vue&type=template&id=061328b8&\"\nimport script from \"./finances.ts?vue&type=script&lang=js&\"\nexport * from \"./finances.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"col-2\"},[_c('multiselect',{attrs:{\"options\":_vm.views,\"placeholder\":\"Select a view\",\"track-by\":\"insightViewId\",\"label\":\"name\",\"hideSelected\":true,\"showLabels\":false,\"allowEmpty\":false,\"disabled\":_vm.isLoading},model:{value:(_vm.selectedView),callback:function ($$v) {_vm.selectedView=$$v},expression:\"selectedView\"}})],1),_c('grid-period-range-filter',{on:{\"filter-change\":_vm.reloadInsights}}),_c('div',{staticClass:\"col-2\"},[_c('multiselect',{attrs:{\"options\":_vm.lenses,\"multiple\":true,\"placeholder\":\"Select a lens\",\"track-by\":\"slug\",\"label\":\"name\",\"disabled\":!_vm.selectedView,\"showLabels\":false},model:{value:(_vm.selectedLenses),callback:function ($$v) {_vm.selectedLenses=$$v},expression:\"selectedLenses\"}})],1)],1),(_vm.lensesData.length === 0 && !_vm.isLoading)?_c('div',[_c('b-card',{staticClass:\"w-100 text-center\"},[_c('p',{staticClass:\"mb-5\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INSIGHTS_INTRO\"}})],1),_c('pre',{staticStyle:{\"line-height\":\"0.5\",\"overflow-y\":\"hidden\"}},[_vm._v(\" 88 88 88 \\n \\\"\\\" \\\"\\\" 88 ,d \\n 88 88 \\n 88 8b,dPPYba, ,adPPYba, 88 ,adPPYb,d8 88,dPPYba, MM88MMM ,adPPYba, \\n 88 88P' `\\\"8a I8[ \\\"\\\" 88 a8\\\" `Y88 88P' \\\"8a 88 I8[ \\\"\\\" \\n 88 88 88 `\\\"Y8ba, 88 8b 88 88 88 88 `\\\"Y8ba, \\n 88 88 88 aa ]8I 88 \\\"8a, ,d88 88 88 88, aa ]8I \\n 88 88 88 `\\\"YbbdP\\\"' 88 `\\\"YbbdP\\\"Y8 88 88 \\\"Y888 `\\\"YbbdP\\\"' \\n aa, ,88 \\n \\\"Y8bbdP\\\" \\n \")])])],1):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-10 min-vh-25\",attrs:{\"id\":\"graph\"}}),_c('div',{staticClass:\"col-2\"},[(_vm.lensesData.length > 0 && !_vm.isLoading)?_c('b-card',{staticClass:\"w-100 h-100\",scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h3',[_vm._v(_vm._s(_vm.content))])]},proxy:true}],null,false,237156266)},[_c('b-card-body',[(_vm.edgesToShowContentOfDestination.length > 0)?_c('h6',{staticClass:\"font-italic\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"INCOMING_FROM\"}})],1):_vm._e(),_vm._l((_vm.edgesToShowContentOfDestination),function(edge){return _c('div',[_vm._v(\" \"+_vm._s(_vm.getOriginName(edge.origin))+\" | \"),_c('strong',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(edge.total)))]),_c('span',{staticClass:\"k-icon k-i-arrow-60-up text-success\"})])}),(_vm.edgesToShowContentOfOrigin.length > 0)?_c('h6',{staticClass:\"font-italic\",class:{ 'mt-5': _vm.edgesToShowContentOfDestination.length > 0 }},[_c('prd-translate-text',{attrs:{\"translate-key\":\"OUTGOING_TO\"}})],1):_vm._e(),_vm._l((_vm.edgesToShowContentOfOrigin),function(edge){return _c('div',[_vm._v(\" \"+_vm._s(_vm.getDestinationName(edge.destination))+\" | \"),_c('strong',[_vm._v(_vm._s(_vm._f(\"numberFormat\")(edge.total)))]),_c('span',{staticClass:\"k-icon k-i-arrow-60-down text-error\"})])})],2)],1):_vm._e()],1)]),(_vm.isLoading && _vm.selectedLenses.length > 0)?_c('div',[_c('h2',{staticClass:\"text-center\"},[_c('spinner',{attrs:{\"center\":\"true\"}}),_vm._v(\" Gathering insights...\")],1)]):_vm._e(),(!_vm.isLoading && _vm.selectedLenses.length > 0)?[(_vm.lensesData.length > 0)?_c('div',{staticClass:\"w-100\"},[_c('b-card',{staticClass:\"my-5\"},[_c('b-card-header',[_c('h2',[_vm._v(\"Insight Totals\")])]),_vm._l((_vm.lensesData),function(lense){return [(lense.slug === 'ecosystem-cash')?_c('multiselect',{staticClass:\"w-25 float-right\",attrs:{\"options\":_vm.paymentTerms,\"placeholder\":\"Select a payment terms\",\"track-by\":\"value\",\"label\":\"name\",\"showLabels\":false},model:{value:(_vm.paymentTerm),callback:function ($$v) {_vm.paymentTerm=$$v},expression:\"paymentTerm\"}}):_vm._e(),_c(_vm.getComponentName(lense.slug),{key:'component_' + lense.slug + '_totals',tag:\"component\",attrs:{\"data\":_vm.getLenseData(lense.slug),\"table-data\":_vm.getTableData(lense.slug),\"lense\":lense}})]}),(_vm.hasCO2LenseSelected)?_c('ecosystem-co2-totals'):_vm._e(),(_vm.multiplePeriodsSelected)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('b-button',{staticClass:\"w-25 d-block\",attrs:{\"size\":\"sm\",\"variant\":\"link\"},on:{\"click\":function($event){_vm.showVisuals = !_vm.showVisuals}}},[_vm._v(\" \"+_vm._s(!_vm.showVisuals ? 'View visualizations' : 'Hide visualizations')+\" \")])],1):_vm._e(),(_vm.multiplePeriodsSelected && _vm.showVisuals)?_c('div',{staticClass:\"row\"},[(_vm.hasFinanceLenseSelected)?_c('div',{staticClass:\"col-6\"},[_c('b-card',[_c('GChart',{attrs:{\"type\":\"LineChart\",\"data\":_vm.getChartDataForLens('ecosystem-finance', null, ['result', 'balance', 'externalRevenue']),\"options\":{\n title: 'Finance',\n interpolateNulls: true,\n height: 400,\n }}})],1)],1):_vm._e(),_c('div',{staticClass:\"col-6\"},[_c('b-card',[_c('GChart',{attrs:{\"type\":\"BarChart\",\"data\":_vm.getTeamRevenueParts('ecosystem-finance', null, ['safetyZone']),\"options\":{\n title: 'External revenue team distribution',\n interpolateNulls: true,\n height: 400,\n legend: { position: 'top', maxLines: 3 },\n bar: { groupWidth: '75%' },\n isStacked: true,\n }}})],1)],1)]):_vm._e()],2),_vm._l((_vm.availableTeams),function(team){return _c('b-card',{key:team.teamId,staticClass:\"my-5\"},[_c('b-card-header',[_c('h2',[_vm._v(_vm._s(_vm.getTeamName(team.teamId)))])]),_vm._l((_vm.lensesData),function(lense){return [_c(_vm.getComponentName(lense.slug),{key:'component_' + lense.slug + '_' + team.teamId,tag:\"component\",attrs:{\"data\":_vm.getLenseData(lense.slug, team.teamId),\"team\":team,\"table-data\":_vm.getTableData(lense.slug, team.teamId),\"lense\":lense}})]}),(_vm.hasFearlessLenseSelected)?_c('ecosystem-fearless-totals',{attrs:{\"data\":_vm.getLenseData('ecosystem-fearless', team.teamId)}}):_vm._e(),(_vm.multiplePeriodsSelected)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('b-button',{staticClass:\"w-25 d-block\",attrs:{\"size\":\"sm\",\"variant\":\"link\"},on:{\"click\":function($event){team.visuals = !team.visuals}}},[_vm._v(\" \"+_vm._s(!team.visuals ? 'View visualizations' : 'Hide visualizations')+\" \")])],1):_vm._e(),(_vm.multiplePeriodsSelected && team.visuals)?_c('div',{staticClass:\"row\"},[(_vm.hasFinanceLenseSelected)?_c('div',{staticClass:\"col-6\"},[_c('b-card',[_c('GChart',{attrs:{\"type\":\"LineChart\",\"data\":_vm.getChartDataForLens('ecosystem-finance', team.teamId, ['result', 'balance', 'externalRevenue']),\"options\":{\n title: 'Finance',\n interpolateNulls: true,\n height: 400,\n }}})],1)],1):_vm._e(),_c('div',{staticClass:\"col-6\"},[_c('b-card',[_c('GChart',{attrs:{\"type\":\"LineChart\",\"data\":_vm.getChartDataForLens('ecosystem-finance', team.teamId, ['safetyZone']),\"options\":{\n title: 'Financial Safety zone',\n interpolateNulls: true,\n height: 400,\n }}})],1)],1)]):_vm._e()],2)})],2):_vm._e()]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import PageRender from '@/models/PageRender';\r\nimport { Svg } from '@svgdotjs/svg.js';\r\nimport { SVG } from '@svgdotjs/svg.js';\r\nimport { Component } from 'vue-property-decorator';\r\nimport '@svgdotjs/svg.draggable.js';\r\nimport moment from 'moment';\r\nimport svgPanZoom from 'svg-pan-zoom';\r\nimport { insightService, mapService, teamService } from '@/main';\r\nimport Team from '@/models/Team';\r\nimport IMapSetting from '@/models/Map/IMapSettings';\r\nimport GraphData from '@/models/Graph/GraphData';\r\nimport { translateModule } from '@/store/modules/translate';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class InsightsComponent extends PageRender {\r\n public teams: Team[] = [];\r\n public canvas: Svg = null;\r\n public panZoomInstance: SvgPanZoom.Instance = null;\r\n public point: SvgPanZoom.Point = null;\r\n public selectedView: any = null;\r\n public selectedLenses: any[] = [];\r\n public views: any[] = [];\r\n public lenses: any[] = [];\r\n public graphData: GraphData = new GraphData();\r\n public lensesData: any[] = [];\r\n public chartData: any[] = [];\r\n public showVisuals: boolean = false;\r\n\r\n public lines = [\r\n { text: 'Results', value: 'results' },\r\n { text: 'Balance', value: 'balance' },\r\n { text: 'Safety Zone', value: 'safetyZone' },\r\n { text: 'External Revenue', value: 'externalRevenue' },\r\n { text: 'Expenses', value: 'expenses' },\r\n ];\r\n\r\n public selectedLines: any[] = [];\r\n public chartsLib = null;\r\n public chartsLibBar = null;\r\n public multiplePeriodsSelected: boolean = false;\r\n public target: string = '';\r\n public content: string = translateModule.value('HOVER_INSIGHTS');\r\n public edgesToShowContentOfDestination: any[] = [];\r\n public edgesToShowContentOfOrigin: any[] = [];\r\n public availableTeamsList = [];\r\n public paymentTerm: any = { value: 0, name: 'Zero days' };\r\n\r\n private mapSettings: IMapSetting[] = [];\r\n\r\n public get hasFinanceLenseSelected() {\r\n return this.selectedLenses.find((x) => x.slug === 'ecosystem-finance');\r\n }\r\n\r\n public get hasCO2LenseSelected() {\r\n return this.selectedLenses.find((x) => x.slug === 'co2');\r\n }\r\n\r\n public get hasFearlessLenseSelected() {\r\n return this.selectedLenses.find((x) => x.slug === 'fearless');\r\n }\r\n\r\n public get paymentTerms() {\r\n return [\r\n { value: 0, name: 'Zero days' },\r\n { value: 14, name: '14 Days' },\r\n { value: 30, name: '30 Days' },\r\n { value: 60, name: '60 Days' },\r\n { value: 90, name: '90 Days' },\r\n ];\r\n }\r\n\r\n public get availableTeams() {\r\n if (!this.lensesData) {\r\n return [{ teamId: null, expanded: false, visuals: false }];\r\n }\r\n\r\n return this.availableTeamsList;\r\n }\r\n\r\n public chartOptionsBar() {\r\n if (!this.chartsLibBar) {\r\n return null;\r\n }\r\n\r\n return this.chartsLibBar.charts.Bar.convertOptions({\r\n chart: {\r\n title: 'Ecosystem Team Finances',\r\n subtitle: 'Result, balance, etc per period',\r\n },\r\n height: 800,\r\n });\r\n }\r\n\r\n public createBarChart(el, google) {\r\n this.chartsLibBar = google;\r\n return new this.chartsLibBar.charts.Bar(el);\r\n }\r\n\r\n public createLineChart(el, google) {\r\n this.chartsLib = google;\r\n return new this.chartsLib.charts.Line(el);\r\n }\r\n\r\n public async mounted() {\r\n await this.loadPersonalViews();\r\n await this.loadLenses();\r\n this.mapSettings = await mapService.getSettings();\r\n this.teams = await teamService.getTeams();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async reloadInsights(dates) {\r\n this.isLoading = true;\r\n\r\n this.multiplePeriodsSelected = dates.fromFilterMonth !== dates.toFilterMonth;\r\n\r\n await this.loadLens(dates);\r\n\r\n if (this.lensesData.length === 0) {\r\n return;\r\n }\r\n\r\n if (this.panZoomInstance) {\r\n this.panZoomInstance.destroy();\r\n delete this.panZoomInstance;\r\n\r\n this.canvas.clear();\r\n }\r\n this.initCanvas();\r\n this.baseStructure();\r\n this.plotTeams();\r\n this.plotRevenue();\r\n\r\n this.$nextTick(() => {\r\n this.panZoomInstance = svgPanZoom('#svg-container', {\r\n panEnabled: true,\r\n controlIconsEnabled: true,\r\n });\r\n\r\n this.panZoomInstance.zoom(1.2);\r\n });\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public showRelatedElements(id) {\r\n this.content = '';\r\n\r\n this.edgesToShowContentOfDestination = [];\r\n this.edgesToShowContentOfOrigin = [];\r\n\r\n this.graphData.edgePaths.forEach((x) => {\r\n x.stroke({ color: 'rgba(0,0,0,0)' });\r\n });\r\n\r\n this.graphData.edges\r\n .filter((x) => x.origin === id || x.destination === id)\r\n .forEach((edge) => {\r\n const path = this.graphData.edgePaths.find((x) => x.id() === `edge-${edge.origin}-${edge.destination}`);\r\n if (path) {\r\n if (edge.destination === id) {\r\n path.stroke({ color: `rgba(0,128,0,0.3)` });\r\n } else {\r\n path.stroke({ color: `rgba(255,0,0,0.3)` });\r\n }\r\n }\r\n\r\n let name = this.getOriginName(id);\r\n if (!name) {\r\n name = this.getDestinationName(id);\r\n }\r\n\r\n this.content = name;\r\n\r\n if (edge.destination === id) {\r\n this.edgesToShowContentOfDestination.push(edge);\r\n } else {\r\n this.edgesToShowContentOfOrigin.push(edge);\r\n }\r\n });\r\n }\r\n\r\n public showAllEdges() {\r\n this.graphData.edgePaths.forEach((x) => {\r\n x.stroke({ color: 'rgba(0,0,0,0.3)' });\r\n });\r\n }\r\n\r\n public plotTeams() {\r\n this.graphData.edges = [];\r\n this.graphData.edgePaths = [];\r\n\r\n for (let j = 0; j < this.lensesData.length; j++) {\r\n const lense = this.lensesData[j];\r\n\r\n if (lense && lense.graph) {\r\n for (let i = 0; i < lense.graph.nodes.length; i++) {\r\n const vertex = lense.graph.nodes[i];\r\n const teamSettings = this.mapSettings.find((x) => x.team === vertex.id);\r\n\r\n vertex.x = teamSettings.x;\r\n vertex.y = teamSettings.y;\r\n vertex.radius = teamSettings.radius;\r\n\r\n const group = this.canvas.group();\r\n\r\n const vertexCircle = this.canvas.circle(vertex.radius).fill('#0f0');\r\n vertexCircle.attr({ cx: vertex.x, cy: vertex.y, opacity: '0.2', name: vertex.name, id: vertex.id, class: 'cursor-pointer' });\r\n\r\n const text = this.canvas.text(vertex.name);\r\n const textBbox = text.bbox();\r\n text.move(vertex.x - textBbox.width / 2, vertex.y - textBbox.height - vertex.radius / 2);\r\n\r\n group.add(vertexCircle);\r\n group.add(text);\r\n\r\n group.on('mouseover', () => {\r\n this.showRelatedElements(vertexCircle.id());\r\n });\r\n group.on('mouseout', () => {\r\n this.showAllEdges();\r\n });\r\n\r\n this.graphData.vertices[vertex.id] = vertex;\r\n this.graphData.vertexPaths[vertex.id] = group;\r\n }\r\n\r\n for (let i = 0; i < lense.graph.edges.length; i++) {\r\n const edge = lense.graph.edges[i];\r\n this.drawEdge(edge);\r\n }\r\n }\r\n }\r\n }\r\n\r\n public drawEdge(edge) {\r\n const v1 = this.graphData.vertices[edge.origin];\r\n const v2 = this.graphData.vertices[edge.destination];\r\n\r\n if (!v1 || !v2) {\r\n return;\r\n }\r\n\r\n const startx = v1.x;\r\n const starty = v1.y - v1.radius / 3;\r\n\r\n const endx = v2.x;\r\n // tslint:disable: restrict-plus-operands\r\n const endy = v2.y + v2.radius / 3;\r\n\r\n const mpx = (startx + endx) * 0.5;\r\n const mpy = (starty + endy) * 0.5;\r\n\r\n // angle of perpendicular to line:\r\n const theta = Math.atan2(endy - starty, endx - startx) - Math.PI / 2;\r\n\r\n // distance of control point from mid-point of line:\r\n const offset = 30; // random(20, 50);\r\n\r\n // location of control point:\r\n const c1x = mpx + offset * Math.cos(theta);\r\n const c1y = mpy + offset * Math.sin(theta);\r\n\r\n const path = this.canvas.path(`M${startx} ${starty} Q${c1x} ${c1y} ${endx} ${endy}`);\r\n path.stroke({ color: 'rgba(0,0,0,0.3)', width: 5, linecap: 'round' })\r\n .attr({ fill: 'transparent' })\r\n .attr('id', `edge-${edge.origin}-${edge.destination}`);\r\n\r\n this.graphData.edges.push(edge);\r\n this.graphData.edgePaths.push(path);\r\n }\r\n\r\n public plotRevenue() {\r\n this.lensesData.forEach((lense) => {\r\n if (lense && lense.totals) {\r\n lense.totals.teamTotals.forEach((team) => {\r\n const externalRevenue = this.getTableValue(team.teamId, 'externalRevenue');\r\n if (externalRevenue) {\r\n this.drawEdge({ destination: team.teamId, origin: 'ext_revenue', total: externalRevenue });\r\n }\r\n\r\n const memberCosts = this.getTableValue(team.teamId, 'memberExpenses');\r\n const memberCostsExtra = this.getTableValue(team.teamId, 'memberNonRecurringExpenses');\r\n if (memberCosts || memberCostsExtra) {\r\n this.drawEdge({ origin: team.teamId, destination: 'member_costs', total: memberCosts + memberCostsExtra });\r\n }\r\n\r\n const groupCosts = this.getTableValue(team.teamId, 'groupExpenses');\r\n const groupCostsExtra = this.getTableValue(team.teamId, 'groupNonRecurringExpenses');\r\n if (groupCosts || groupCostsExtra) {\r\n this.drawEdge({ origin: team.teamId, destination: 'group_costs', total: groupCosts + groupCostsExtra });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n public async loadPersonalViews() {\r\n if (this.views.length === 0) {\r\n this.views = await insightService.getViews(true);\r\n }\r\n }\r\n\r\n public async loadLenses() {\r\n this.lenses = await insightService.getLenses();\r\n\r\n this.lenses.push({ slug: 'co2', name: 'CO2 footprint' });\r\n this.lenses.push({ slug: 'fearless', name: 'Fearless PSI (demo)' });\r\n }\r\n\r\n public async loadLens(dates) {\r\n if (this.selectedLenses.length > 0) {\r\n this.lensesData = [];\r\n\r\n for (let i = 0; i < this.selectedLenses.length; i++) {\r\n if (this.selectedLenses[i].slug === 'co2' || this.selectedLenses[i].slug === 'fearless') {\r\n continue;\r\n }\r\n\r\n const lense = await insightService.getLens(\r\n this.selectedLenses[i].slug,\r\n this.selectedView.insightViewId,\r\n dates,\r\n this.selectedLenses[i].slug === 'ecosystem-cash' ? this.paymentTerm.value : null,\r\n );\r\n this.lensesData.push(lense.data);\r\n\r\n if (i === 0) {\r\n this.availableTeamsList = [];\r\n lense.data.totals.teamTotals.forEach((x) => {\r\n this.availableTeamsList.push({\r\n teamId: x.teamId,\r\n expanded: false,\r\n visuals: false,\r\n });\r\n });\r\n\r\n if (\r\n !this.availableTeamsList.length &&\r\n lense.data.table.results &&\r\n lense.data.table.results.items &&\r\n lense.data.table.results.items.length > 0\r\n ) {\r\n lense.data.table.results.items[0].item.teamResults.forEach((x) => {\r\n this.availableTeamsList.push({\r\n teamId: x.teamId,\r\n expanded: false,\r\n visuals: false,\r\n });\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n public initCanvas() {\r\n if (!this.canvas) {\r\n this.canvas = SVG()\r\n .addTo('#graph')\r\n .size(this.calculateGraphWidth(), this.calculateGraphHeight())\r\n .attr('id', 'svg-container')\r\n .addClass('svg-container');\r\n } else {\r\n this.canvas.clear();\r\n }\r\n }\r\n\r\n public baseStructure() {\r\n const petriCircle = this.canvas.circle(2000);\r\n petriCircle.attr({ cx: 0, cy: 0, 'fill-opacity': 0, stroke: '#32e875', 'stroke-width': 5 });\r\n\r\n const group = this.canvas.group();\r\n\r\n const elipse = this.canvas\r\n .ellipse(400, 200)\r\n .fill('#f06')\r\n .attr({ opacity: '0.1', id: 'ext_revenue', class: 'cursor-pointer' })\r\n .move(-1400, -100);\r\n const externalRevenueText = this.canvas.text('External revenue').attr({ 'font-size': 30 });\r\n const externalRevenueTextBox = externalRevenueText.bbox();\r\n externalRevenueText.move(\r\n (elipse.x() as number) + (elipse.width() as number) / 2 - externalRevenueTextBox.width / 2,\r\n (elipse.y() as number) + (elipse.height() as number) / 2 - externalRevenueTextBox.height / 2,\r\n );\r\n\r\n group.add(externalRevenueText);\r\n group.add(elipse);\r\n\r\n group.on('mouseover', () => {\r\n this.showRelatedElements(elipse.id());\r\n });\r\n group.on('mouseout', () => {\r\n this.showAllEdges();\r\n });\r\n\r\n const group2 = this.canvas.group();\r\n const elipse2 = this.canvas\r\n .ellipse(400, 200)\r\n .fill('#f06')\r\n .attr({ opacity: '0.1', id: 'member_costs', class: 'cursor-pointer' })\r\n .move(750, -800);\r\n const memberCostsText = this.canvas.text('Member costs').attr({ 'font-size': 30 });\r\n const memberCostsTextBox = memberCostsText.bbox();\r\n memberCostsText.move(\r\n (elipse2.x() as number) + (elipse2.width() as number) / 2 - memberCostsTextBox.width / 2,\r\n (elipse2.y() as number) + (elipse2.height() as number) / 2 - memberCostsTextBox.height / 2,\r\n );\r\n\r\n group2.add(memberCostsText);\r\n group2.add(elipse2);\r\n\r\n group2.on('mouseover', () => {\r\n this.showRelatedElements(elipse2.id());\r\n });\r\n group2.on('mouseout', () => {\r\n this.showAllEdges();\r\n });\r\n\r\n const group3 = this.canvas.group();\r\n const elipse3 = this.canvas\r\n .ellipse(400, 200)\r\n .fill('#f06')\r\n .attr({ opacity: '0.1', id: 'group_costs', class: 'cursor-pointer' })\r\n .move(750, 600);\r\n const groupCostsText = this.canvas.text('Group costs').attr({ 'font-size': 30 });\r\n const groupCostsTextBox = groupCostsText.bbox();\r\n groupCostsText.move(\r\n (elipse3.x() as number) + (elipse3.width() as number) / 2 - groupCostsTextBox.width / 2,\r\n (elipse3.y() as number) + (elipse3.height() as number) / 2 - groupCostsTextBox.height / 2,\r\n );\r\n\r\n group3.add(groupCostsText);\r\n group3.add(elipse3);\r\n\r\n group3.on('mouseover', () => {\r\n this.showRelatedElements(elipse3.id());\r\n });\r\n group3.on('mouseout', () => {\r\n this.showAllEdges();\r\n });\r\n\r\n // tslint:disable: no-string-literal\r\n this.graphData.vertexPaths['ext_revenue'] = elipse;\r\n this.graphData.vertices['ext_revenue'] = {\r\n id: 'ext_revenue',\r\n x: (elipse.x() as number) + 400,\r\n y: (elipse.y() as number) + 100,\r\n name: 'External revenue',\r\n radius: 0,\r\n };\r\n\r\n this.graphData.vertexPaths['member_costs'] = elipse2;\r\n this.graphData.vertices['member_costs'] = {\r\n id: 'member_costs',\r\n x: elipse2.x(),\r\n y: (elipse2.y() as number) + 100,\r\n name: 'Member costs',\r\n radius: 0,\r\n };\r\n this.graphData.vertexPaths['group_costs'] = elipse3;\r\n this.graphData.vertices['group_costs'] = {\r\n id: 'group_costs',\r\n x: elipse3.x(),\r\n y: (elipse3.y() as number) + 100,\r\n name: 'Group costs',\r\n radius: 0,\r\n };\r\n }\r\n\r\n public getComponentName(slug) {\r\n return `${slug}-totals`;\r\n }\r\n\r\n public getLenseData(slug, teamId?: number) {\r\n let tableData:any;\r\n\r\n if (slug === 'ecosystem-finance') {\r\n const lenseData = this.lensesData.find((x) => x.slug === slug);\r\n if (!teamId) {\r\n if (lenseData) {\r\n tableData = lenseData.totals;\r\n }\r\n\r\n return tableData;\r\n }\r\n\r\n if (lenseData) {\r\n tableData = lenseData.totals.teamTotals.find((y) => y.teamId === teamId);\r\n }\r\n\r\n return tableData;\r\n }\r\n\r\n const lens = this.lensesData.find((x) => x.slug === slug);\r\n if (lens && lens.table && lens.table.results && lens.table.results.items && lens.table.results.items.length > 0) {\r\n if (!teamId) {\r\n tableData = lens.table.results.items[0].item;\r\n tableData.startBalance = lens.table.results.items[lens.table.results.items.length - 1].item.startBalance;\r\n } else {\r\n tableData = lens.table.results.items[0].item.teamResults.find((y) => y.teamId === teamId);\r\n tableData.startBalance = lens.table.results.items[lens.table.results.items.length - 1].item.startBalance;\r\n }\r\n }\r\n\r\n return tableData;\r\n }\r\n\r\n public getTableData(slug, teamId) {\r\n let tableData: any;\r\n const lens = this.lensesData.find((x) => x.slug === slug);\r\n if (lens && lens.table && lens.table.results && lens.table.results.items && lens.table.results.items.length > 0) {\r\n if (!teamId) {\r\n tableData = lens.table.results.items[0].item;\r\n tableData.startBalance = lens.table.results.items[lens.table.results.items.length - 1].item.startBalance;\r\n } else {\r\n tableData = lens.table.results.items[0].item.teamResults.find((y) => y.teamId === teamId);\r\n tableData.startBalance = lens.table.results.items[lens.table.results.items.length - 1].item.startBalance;\r\n }\r\n }\r\n\r\n return tableData;\r\n }\r\n\r\n public getOriginName(origin) {\r\n if (origin === 'ext_revenue') {\r\n return 'External revenue';\r\n }\r\n\r\n if (origin === 'group_costs') {\r\n return 'Group costs';\r\n }\r\n\r\n if (origin === 'member_costs') {\r\n return 'Member costs';\r\n }\r\n\r\n return this.graphData.vertices.find((x) => x && x.id === origin).name;\r\n }\r\n\r\n public getDestinationName(destination) {\r\n if (destination === 'group_costs') {\r\n return 'Group costs';\r\n }\r\n\r\n if (destination === 'member_costs') {\r\n return 'Member costs';\r\n }\r\n\r\n if (destination === 'ext_revenue') {\r\n return 'External revenue';\r\n }\r\n\r\n return this.graphData.vertices.find((x) => x && x.id === destination).name;\r\n }\r\n\r\n public getTableValue(teamId: number, property: string) {\r\n const ecosystemFinanceLenseData = this.lensesData.find((x) => x.slug === 'ecosystem-finance');\r\n let total = 0;\r\n if (ecosystemFinanceLenseData) {\r\n const table = ecosystemFinanceLenseData.table;\r\n table.results.items.forEach((item) => {\r\n const teamResult = item.item.teamResults.find((x) => x.teamId === teamId);\r\n\r\n total += teamResult[property];\r\n });\r\n }\r\n\r\n return total;\r\n }\r\n\r\n public getTeamRevenueParts() {\r\n const data = [];\r\n const lines = ['Period'];\r\n\r\n const lensTable = this.lensesData.find((x) => x.slug === 'ecosystem-finance').table;\r\n\r\n for (let i = lensTable.results.items.length - 1; i >= 0; i--) {\r\n const element = lensTable.results.items[i];\r\n const periodData = [];\r\n const period = periodModule.allPeriods.find((x) => x.periodId === element.periodId);\r\n periodData.push(moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'));\r\n\r\n const ecologyTotalRevenue = element.item.externalRevenue;\r\n\r\n for (let j = 0; j < element.item.teamResults.length; j++) {\r\n const teamRevenue = element.item.teamResults[j].externalRevenue;\r\n const value = (teamRevenue / ecologyTotalRevenue) * 100;\r\n\r\n if (i === 0) {\r\n const team = this.teams.find((x) => x.teamId === element.item.teamResults[j].teamId);\r\n lines.push(team ? team.name : element.item.teamResults[j].teamId);\r\n }\r\n\r\n if (typeof value !== 'undefined' || !isNaN(value)) {\r\n periodData.push(value);\r\n } else {\r\n periodData.push(null);\r\n }\r\n }\r\n\r\n data.push(periodData);\r\n }\r\n\r\n data.unshift(lines);\r\n\r\n return data;\r\n }\r\n\r\n public getChartDataForLens(slug, teamId, props) {\r\n const data = [];\r\n const lines = ['Period'];\r\n\r\n lines.push(...props);\r\n\r\n if (slug === 'ecosystem-finance') {\r\n const lensTable = this.lensesData.find((x) => x.slug === slug).table;\r\n\r\n for (let i = lensTable.results.items.length - 1; i >= 0; i--) {\r\n const element = lensTable.results.items[i];\r\n const periodData = [];\r\n const period = periodModule.allPeriods.find((x) => x.periodId === element.periodId);\r\n\r\n periodData.push(moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'));\r\n\r\n for (let j = 0; j < props.length; j++) {\r\n const prop = props[j];\r\n let value = 0;\r\n if (!teamId) {\r\n value = element.item[prop];\r\n } else {\r\n value = element.item.teamResults.find((x) => x.teamId === teamId)[prop];\r\n }\r\n if (typeof value !== 'undefined') {\r\n periodData.push(value);\r\n } else {\r\n periodData.push(null);\r\n }\r\n }\r\n\r\n data.push(periodData);\r\n }\r\n\r\n data.unshift(lines);\r\n }\r\n\r\n return data;\r\n }\r\n\r\n public getTeamName(teamId: number) {\r\n const team = this.teams.find((x) => x.teamId === teamId);\r\n return team ? team.name : 'N/A';\r\n }\r\n\r\n public getTableDataForLens(lens) {\r\n const list = [];\r\n\r\n if (lens.slug === 'ecosystem-finance') {\r\n const flattendData = [];\r\n\r\n lens.table.results.items.forEach((x) => {\r\n x.item.periodId = x.periodId;\r\n\r\n x.item.teamResults.forEach((y) => {\r\n y.periodId = x.periodId;\r\n flattendData.push(y);\r\n });\r\n });\r\n\r\n list.push(...flattendData);\r\n }\r\n\r\n return list;\r\n }\r\n\r\n private calculateGraphHeight() {\r\n const height = window.innerHeight - 190;\r\n return height;\r\n }\r\n\r\n private calculateGraphWidth() {\r\n return '100%';\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./insights.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./insights.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./insights.vue?vue&type=template&id=17ee8160&\"\nimport script from \"./insights.ts?vue&type=script&lang=js&\"\nexport * from \"./insights.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.isLoading)?_c('spinner'):_c('div',[_c('h3',[(_vm.teamId || _vm.groupId)?_c('b-button',{staticClass:\"my-2 mr-5 \",attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.goUp}},[_c('span',{staticClass:\"k-icon k-i-arrow-left align-text-bottom\"}),_vm._v(\" Up one level \")]):_vm._e(),(!_vm.teamId && !_vm.groupId)?_c('span',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"ALL_TEAMS_OF\"}}),_vm._v(\" \"+_vm._s(_vm.getEcosystemName())+\" \"),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?[(_vm.$root.inEditMode)?_c('prd-translate-button',{staticClass:\"ml-2 \",attrs:{\"translate-key\":\"ADD_TEAM\",\"variant\":\"primary\",\"size\":\"sm\"}}):_c('router-link',{attrs:{\"to\":{\n name: 'ecosystem-ceate-team',\n params: { ecosystem: _vm.$root.ecosystemHelper.ecosystemParam, period: _vm.$store.state.period._selectedPeriod },\n }}},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ADD_TEAM'),expression:\"'ADD_TEAM'\"}],staticClass:\"ml-2 \",attrs:{\"variant\":\"primary\",\"size\":\"sm\"}})],1)]:_vm._e()],2):_vm._e(),(_vm.teamId && !_vm.groupId)?_c('span',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"ALL_GROUPS_OF\"}}),_vm._v(\" \"+_vm._s(_vm.team.name)+\" \")],1):_vm._e(),(_vm.teamId && _vm.groupId)?_c('span',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"ALL_MEMBERS_OF\"}}),_vm._v(\" \"+_vm._s(_vm.group.name)+\" \")],1):_vm._e(),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?[(_vm.$root.inEditMode)?[_c('prd-translate-button',{staticClass:\"ml-2\",attrs:{\"translate-key\":\"EDIT_MAP\",\"variant\":\"primary\",\"size\":\"sm\"}}),(_vm.$root.inEditMode)?_c('prd-translate-button',{staticClass:\"mx-2\",attrs:{\"translate-key\":\"CANCEL\",\"variant\":\"secondary\",\"size\":\"sm\"}}):_vm._e(),(_vm.$root.inEditMode)?_c('prd-translate-button',{attrs:{\"translate-key\":\"SAVE\",\"variant\":\"primary\",\"size\":\"sm\"}}):_vm._e()]:[(!_vm.editMode)?[_c('b-button',{staticClass:\"ml-2\",attrs:{\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":function($event){_vm.editMode = true}}},[_c('span',{staticClass:\"k-icon k-i-edit mr-1\"}),_vm._v(\" \"),_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('EDIT_MAP'),expression:\"'EDIT_MAP'\"}]})])]:[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('CANCEL'),expression:\"'CANCEL'\"}],staticClass:\"mx-2\",attrs:{\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){_vm.editMode = false}}}),_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SAVE'),expression:\"'SAVE'\"}],attrs:{\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":_vm.saveMapSettings}})]]]:_vm._e()],2),_c('svg-graph',{attrs:{\"graphData\":_vm.graph,\"editMode\":_vm.editMode},on:{\"settingsUpdated\":_vm.updateSettings}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport to from 'await-to-js';\r\nimport { mapService, $router, groupService, teamService, eventBus, ecosystemHelper } from '@/main';\r\nimport GraphData from '@/models/Graph/GraphData';\r\nimport IMapSetting from '@/models/Map/IMapSettings';\r\nimport Group from '@/models/Group';\r\nimport Team from '@/models/Team';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport BaseEcologyDirectory from './directory/components/BaseEcosystemDirectory';\r\n\r\n@Component\r\nexport default class EcosystemOverviewComponent extends BaseEcologyDirectory {\r\n public graph = new GraphData();\r\n public teamId: number = 0;\r\n public team: Team = new Team();\r\n public groupId: number = null;\r\n public group: Group = new Group();\r\n public isTeamScope: boolean = false;\r\n\r\n private mapSettings: IMapSetting[] = [];\r\n\r\n public created() {\r\n this.isTeamScope = typeof this.$route.params.teamId !== 'undefined';\r\n this.teamId = parseInt(this.$route.params.teamId);\r\n this.groupId = parseInt(this.$route.params.groupId);\r\n }\r\n\r\n public async mounted() {\r\n if (!isNaN(this.groupId)) {\r\n const [err, response] = await to(groupService.getGroup(this.groupId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('LOADING_GROUP_FAILED', err);\r\n }\r\n\r\n this.group = response.data;\r\n }\r\n\r\n this.teams = await teamService.getTeams();\r\n if (!isNaN(this.teamId) && this.teamId > 0) {\r\n this.team = this.teams.find((x) => x.teamId === this.teamId);\r\n this.mapSettings = await mapService.getSettings(this.team.teamId);\r\n } else {\r\n this.mapSettings = await mapService.getSettings();\r\n }\r\n\r\n if (this.group && this.group.groupId > 0) {\r\n await this.handleGroupScope();\r\n } else if (this.team && this.team.teamId > 0) {\r\n await this.handleTeamScope();\r\n } else {\r\n await this.handleEcosystemScope();\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async handleGroupScope() {\r\n for (const [index, member] of this.group.members.entries()) {\r\n let settings = null; // this.mapSettings.find((x) => x.member === member.groupId);\r\n\r\n if (!settings) {\r\n const rows = Math.ceil(Math.sqrt(this.group.members.length));\r\n const x = 0 + (index % rows) * 100;\r\n const y = 0 + Math.floor(index / rows) * 100;\r\n\r\n settings = { x, y, radius: 40, team: null, group: this.group.groupId, member: member.memberId };\r\n }\r\n\r\n this.graph.vertices.push({\r\n id: member.memberId,\r\n name: new Person(member).getFullName(),\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n // onclick: () => this.goToGroup(this.team.key, group.groupKey),\r\n });\r\n }\r\n }\r\n\r\n public async handleTeamScope() {\r\n for (const [index, group] of this.team.groups.entries()) {\r\n let settings = this.mapSettings.find((x) => x.group === group.groupId);\r\n if (!settings) {\r\n settings = { x: 20 * index, y: 20, radius: 20, team: null, group: group.groupId };\r\n }\r\n\r\n this.graph.vertices.push({\r\n id: group.groupId,\r\n name: group.name,\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n onclick: () => this.goToGroup(this.team, group),\r\n });\r\n }\r\n }\r\n\r\n public async handleEcosystemScope() {\r\n for (const [index, team] of this.teams.entries()) {\r\n let settings = this.mapSettings.find((x) => x.team === team.teamId);\r\n if (!settings) {\r\n settings = { x: 20 * index, y: 20, radius: 20, team: team.teamId, group: null };\r\n }\r\n\r\n this.graph.vertices.push({\r\n id: team.teamId,\r\n key: team.teamKey,\r\n name: team.name,\r\n icon: team.logoUrl,\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n onclick: () => this.goToTeam(team),\r\n });\r\n }\r\n }\r\n\r\n public async goUp() {\r\n if (this.group && this.group.groupId > 0) {\r\n return this.goToTeam(this.team);\r\n }\r\n\r\n await $router.push({\r\n name: 'ecosystem-overview',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n public async goToTeam(team: Team) {\r\n if (this.editMode) {\r\n return;\r\n }\r\n\r\n await $router.push({\r\n name: 'ecosystem-overview-team',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: team.teamId.toString(),\r\n teamKey: team.teamKey,\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n public async goToGroup(team: Team, group: Group) {\r\n if (this.editMode) {\r\n return;\r\n }\r\n\r\n await $router.push({\r\n name: 'ecosystem-overview-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: team.teamId.toString(),\r\n teamKey: team.teamKey,\r\n period: periodModule.selectedPeriod,\r\n groupId: group.groupId.toString(),\r\n groupKey: group.groupKey,\r\n },\r\n });\r\n }\r\n\r\n public getEcosystemName() {\r\n return ecosystemHelper.currentEcosystem.name;\r\n }\r\n\r\n public updateSettings(vertex) {\r\n const settings = this.mapSettings.find((x) => x.team === vertex.id);\r\n settings.radius = vertex.radius;\r\n eventBus.$emit('redraw');\r\n }\r\n\r\n public async saveMapSettings() {\r\n this.showPending('SAVE_MAP_PENDING');\r\n this.graph.vertices.forEach((vertex: any) => {\r\n let setting = this.mapSettings.find((s: IMapSetting) => {\r\n return (s.team === vertex.id && !this.team.teamId) || (s.group === vertex.id && s.team === this.team.teamId);\r\n });\r\n\r\n if (!setting) {\r\n setting = { x: parseInt(vertex.x), y: parseInt(vertex.y), radius: vertex.radius, group: null, team: null };\r\n\r\n if (this.isTeamScope) {\r\n setting.team = this.team.teamId;\r\n setting.group = vertex.id;\r\n } else {\r\n setting.team = vertex.id;\r\n }\r\n this.mapSettings.push(setting);\r\n } else {\r\n setting.x = parseInt(vertex.x);\r\n setting.y = parseInt(vertex.y);\r\n setting.radius = vertex.radius;\r\n }\r\n });\r\n\r\n const [err] = await to(mapService.saveSettings(this.mapSettings));\r\n if (err) {\r\n this.clearAndShowError('SAVE_MAP_FAILED', err);\r\n }\r\n\r\n this.clearAndShowSuccess('SAVE_MAP_SUCCESS');\r\n this.editMode = false;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./overview.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./overview.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./overview.vue?vue&type=template&id=38f52c48&\"\nimport script from \"./overview.ts?vue&type=script&lang=js&\"\nexport * from \"./overview.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[_c('prd-toolbar',[_c('generic-search',{ref:\"searchBox\",attrs:{\"data-items\":_vm.allTransactions,\"properties\":[\n 'matchId',\n 'amount',\n 'destinationLegalEntityReference',\n 'legalEntityReference',\n 'destinationGroup',\n 'name',\n 'destinationTeam',\n 'description',\n 'originLegalEntityReference',\n 'originGroup',\n 'originTeamId' ]},on:{\"finished-search\":_vm.updateGridData}}),_c('b-form-checkbox',{staticClass:\"ml-2\",on:{\"change\":_vm.filterRelations},model:{value:(_vm.onlyWithoutSettings),callback:function ($$v) {_vm.onlyWithoutSettings=$$v},expression:\"onlyWithoutSettings\"}},[_vm._v(\" Show transactions without settings \")])],1),(_vm.isLoading)?_c('prd-loader',[_c('spinner')],1):_c('prd-grid-wrapper',{key:_vm.refreshGrid,attrs:{\"data-items\":_vm.transactions,\"columns\":_vm.columns,\"row-height\":35,\"pageable\":true,\"orderBy\":{ field: 'dateCreated', dir: 'desc' }}}),(!_vm.isLoading)?_c('relation-settings-modal',{ref:\"relationModal\",attrs:{\"relation-edit-mode\":false,\"intellectual-property-limitations\":_vm.intellectualPropertyLimitations,\"tax-rates\":_vm.taxRates}}):_vm._e(),_c('b-modal',{ref:\"invoiceInfoModal\",attrs:{\"size\":\"sm\"}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_vm._v(\" Invoice details \")]),_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.getContent())}}),_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$refs.invoiceInfoModal.hide()}},slot:\"modal-footer\"},[_vm._v(\"Close\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import RelationSettingsModal from '@/components/modals/relation-settings-modal';\r\nimport { financeService, relationService, roleHelper } from '@/main';\r\nimport CrossLegalTransaction from '@/models/Finance/CrossLegalTransaction';\r\nimport { IntellectualPropertyLimitation, RelationSettings, TaxRate } from '@/models/Finance/Relation';\r\nimport PageRender from '@/models/PageRender';\r\nimport { Component } from 'vue-property-decorator';\r\nimport moment from 'moment';\r\nimport { BModal } from 'bootstrap-vue';\r\nimport { Invoice } from '@/models/Invoice';\r\nimport Vue from 'vue';\r\nimport GenericSearch from '@/components/generic-search/generic-search';\r\n\r\n@Component\r\nexport default class EcosystemSettingsTransactions extends PageRender {\r\n public isLoading: boolean = true;\r\n public refreshGrid: number = 0;\r\n public onlyWithoutSettings: boolean = true;\r\n\r\n public columns: any = [\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_MATCH_ID', field: 'matchId', width: 100 },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_AMOUNT', field: 'amount', width: 100 },\r\n // { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_INVOICE', field: 'invoice.invoiceId', width: 100 },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_FROM', field: 'originTeam.name', cell: this.renderFrom },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_TO', field: 'originTeam.name', cell: this.renderTo },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_DATE_HANDLED', field: 'dateHandled', cell: this.renderInvoiceDate },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_DATE_CREATED', field: 'dateCreated', cell: this.renderDateCreated },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_STATUS', field: 'status', width: 100 },\r\n { title: 'CROSS_LEGAL_ENITIY_TRANSACTION_SETTINGS', field: 'relationSettings', width: 150, cell: this.viewSettings },\r\n { title: 'INVOICE', field: 'relationSettings', width: 150, cell: this.viewInvoice },\r\n ];\r\n public transactions: CrossLegalTransaction[] = [];\r\n public allTransactions: CrossLegalTransaction[] = [];\r\n public invoice: Invoice = new Invoice();\r\n public intellectualPropertyLimitations: IntellectualPropertyLimitation[] = [];\r\n public taxRates: TaxRate[] = [];\r\n\r\n public $refs!: {\r\n relationModal: RelationSettingsModal;\r\n invoiceInfoModal: BModal;\r\n searchBox: GenericSearch;\r\n };\r\n\r\n public async created() {\r\n this.allTransactions = await financeService.getCrossLegalTransactions();\r\n this.filterRelations();\r\n const data = (await relationService.getRelationProperties()).data;\r\n this.intellectualPropertyLimitations = data.intellectualPropertyLimitations;\r\n this.taxRates = data.taxRates;\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public filterRelations() {\r\n if (this.onlyWithoutSettings) {\r\n this.transactions = this.allTransactions.filter((x) => !x.relationSettings);\r\n } else {\r\n this.transactions = this.allTransactions;\r\n }\r\n\r\n this.refreshGrid++;\r\n }\r\n\r\n public async updateGridData(dataItems) {\r\n if (!dataItems || !dataItems.length) {\r\n // do search\r\n this.transactions = await financeService.getCrossLegalTransactions(this.$refs.searchBox.searchTerm);\r\n\r\n if (this.transactions.length) {\r\n this.showSuccess(`Found ${this.transactions.length} matching transaction(s) in other periods`);\r\n }\r\n this.refreshGrid++;\r\n return;\r\n }\r\n\r\n this.transactions = dataItems;\r\n\r\n this.refreshGrid++;\r\n }\r\n\r\n public openSettingsModal(settings: RelationSettings) {\r\n if (settings) {\r\n this.$refs.relationModal.setData(null, settings);\r\n this.$refs.relationModal.show();\r\n }\r\n }\r\n\r\n public openInvoiceModal(invoice: Invoice) {\r\n if (invoice) {\r\n this.invoice = invoice;\r\n this.$refs.invoiceInfoModal.show();\r\n }\r\n }\r\n\r\n public renderFrom(h, _, row) {\r\n let from = '';\r\n\r\n if (row.dataItem.originLegalEntityReference) {\r\n from += row.dataItem.originLegalEntityReference;\r\n }\r\n\r\n if (row.dataItem.originTeam ) {\r\n from += ` - ${row.dataItem.originTeam.name ? row.dataItem.originTeam.name : '(no team)'}`;\r\n }\r\n\r\n if (row.dataItem.originGroup && row.dataItem.originGroup.name) {\r\n from += ` - ${row.dataItem.originGroup.name ? row.dataItem.originGroup.name : '(no group)'}`;\r\n }\r\n\r\n return h('td', [from]);\r\n }\r\n\r\n public renderTo(h, _, row) {\r\n let from = '';\r\n\r\n if (row.dataItem.destinationLegalEntityReference) {\r\n from += row.dataItem.destinationLegalEntityReference;\r\n }\r\n\r\n if (row.dataItem.destinationTeam) {\r\n from += ` - ${row.dataItem.destinationTeam.name ? row.dataItem.destinationTeam.name : '(no team)'}`;\r\n }\r\n\r\n if (row.dataItem.destinationGroup) {\r\n from += ` - ${row.dataItem.destinationGroup.name ? row.dataItem.destinationGroup.name : '(no group)'}`;\r\n }\r\n\r\n return h('td', [from]);\r\n }\r\n\r\n public renderDateCreated(h, _, row) {\r\n return h('td', [moment(row.dataItem.dateCreated, 'YYYY-MM-DD HH:mm:ss').format('DD-MM-YYYY HH:mm:ss')]);\r\n }\r\n\r\n public renderInvoiceDate(h, _, row) {\r\n return h('td', [moment(row.dataItem.dateHandled, 'YYYY-MM-DD HH:mm:ss').format('DD-MM-YYYY HH:mm:ss')]);\r\n }\r\n\r\n public viewInvoice(h, _, props) {\r\n return h(\r\n 'td',\r\n {\r\n class: 'btn-link cursor-pointer',\r\n on: {\r\n click: () => {\r\n this.openInvoiceModal(props.dataItem.invoice);\r\n },\r\n },\r\n },\r\n [props.dataItem.invoice.invoiceId],\r\n );\r\n }\r\n\r\n public viewSettings(h, _, props) {\r\n return h(\r\n 'td',\r\n {\r\n class: 'btn-link cursor-pointer',\r\n on: {\r\n click: () => {\r\n this.openSettingsModal(props.dataItem.relationSettings);\r\n },\r\n },\r\n },\r\n [props.dataItem.relationSettings ? 'Set (view)' : 'Not set'],\r\n );\r\n }\r\n\r\n public getContent(): string {\r\n let content = `\r\n
\r\n
Client
\r\n

${this.invoice.name}

\r\n\r\n
Description
\r\n

${this.invoice.description}

\r\n `;\r\n\r\n if (this.invoice.reference) {\r\n content += `\r\n
Reference
\r\n

${this.invoice.reference}

\r\n `;\r\n }\r\n\r\n content += `\r\n
Date
\r\n

${this.getDate()}

\r\n `;\r\n\r\n if (this.invoice.originalAmount && this.invoice.parent) {\r\n content += `
Original amount
` + `

${Vue.filter('number-format')(this.invoice.originalAmount)}

`;\r\n }\r\n\r\n if (this.invoice.invoiceAmortization && this.invoice.invoiceAmortization.account) {\r\n content +=\r\n `
Amortization setting
` +\r\n `

Distributes automatically ${this.getAmortizationAmountFormat()} per period to ${\r\n this.invoice.invoiceAmortization.account.name\r\n }

`;\r\n }\r\n\r\n if (roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) {\r\n content +=\r\n `
Legal entity reference
` +\r\n `

${!this.invoice.legalEntityReferenceOrigin ? '-' : this.invoice.legalEntityReferenceOrigin}

`;\r\n }\r\n\r\n content += `
Invoice Id
` + `

${this.invoice.invoiceId}

` + '
';\r\n\r\n return content;\r\n }\r\n\r\n public getDate(): string {\r\n return moment(this.invoice.invoiceDate, 'YYYY-MM-DD').format('DD-MM-YYYY');\r\n }\r\n\r\n public getAmortizationAmountFormat() {\r\n if (this.invoice.invoiceAmortization.amortizationAmount) {\r\n return Vue.filter('number-format')(this.invoice.invoiceAmortization.amortizationAmount);\r\n }\r\n\r\n return '0';\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./cross-legal-transactions.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./cross-legal-transactions.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./cross-legal-transactions.vue?vue&type=template&id=09328457&\"\nimport script from \"./cross-legal-transactions.ts?vue&type=script&lang=js&\"\nexport * from \"./cross-legal-transactions.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('prd-toolbar',[(_vm.$root.inEditMode)?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"ADD_VIEW\"}}):_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ADD_VIEW'),expression:\"'ADD_VIEW'\"}],attrs:{\"size\":\"sm\",\"variant\":\"primary\"},on:{\"click\":_vm.opeSideActionCreateView}})],1),(_vm.isLoading)?_c('prd-loader',[_c('spinner')],1):_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.views,\"columns\":_vm.columns,\"row-height\":41},on:{\"rowclick\":_vm.opeSideActionCreateViewRow}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import CreateLedgerAccountModal from '@/components/modals/create-ledger-account-modal';\r\nimport { insightService } from '@/main';\r\nimport InsightView from '@/models/Insights/InsightView';\r\nimport PageRender from '@/models/PageRender';\r\nimport Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class EcosystemSettingsInsightViews extends PageRender {\r\n public isLoading: boolean = true;\r\n public columns: any = [\r\n { title: 'ID', field: 'insightViewId' },\r\n { title: 'NAME', field: 'name' },\r\n { title: 'TEAMS', field: 'name', cell: this.renderTeams },\r\n { title: 'PERSONS', field: 'name', cell: this.renderPersons },\r\n { title: 'ROLES', field: 'name', cell: this.renderRoles },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 100 },\r\n ];\r\n\r\n public views: InsightView[] = [];\r\n\r\n public $refs: {\r\n create: CreateLedgerAccountModal;\r\n };\r\n\r\n public async created() {\r\n await this.loadViews();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async loadViews() {\r\n this.views = await insightService.getViews();\r\n }\r\n\r\n public renderTeams(h, _, row) {\r\n const elements = row.dataItem.teams.map((x) => {\r\n return { label: x.teamKey, value: x.teamId };\r\n });\r\n const props = { elements };\r\n\r\n return h(Vue.component('grid-list'), { props });\r\n }\r\n\r\n public renderRoles(h, _, row) {\r\n const elements = row.dataItem.roles.map((x) => {\r\n return { value: x.role, label: x.role };\r\n });\r\n const props = { elements };\r\n\r\n return h(Vue.component('grid-list'), { props });\r\n }\r\n\r\n public renderPersons(h, _, row) {\r\n const elements = row.dataItem.persons.map((x) => {\r\n return { value: 'name', label: x.personId };\r\n });\r\n const props = { elements };\r\n\r\n return h(Vue.component('grid-list'), { props });\r\n }\r\n\r\n public opeSideActionCreateViewRow(row) {\r\n this.opeSideActionCreateView(row.dataItem);\r\n }\r\n\r\n public opeSideActionCreateView(item?: InsightView) {\r\n this.$sideActions.push(\r\n 'create-or-edit-view-side-action',\r\n {\r\n // options\r\n view: item ? item : null,\r\n },\r\n async () => {\r\n await this.loadViews();\r\n },\r\n );\r\n }\r\n\r\n public editView(item?: InsightView) {\r\n if (item) {\r\n this.opeSideActionCreateView(item);\r\n }\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [{ title: 'Edit view', function: this.editView }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./insight-views.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./insight-views.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./insight-views.vue?vue&type=template&id=088be4db&\"\nimport script from \"./insight-views.ts?vue&type=script&lang=js&\"\nexport * from \"./insight-views.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('prd-toolbar',[(_vm.$root.inEditMode)?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"ADD_LEDGER_ACCOUNT\"}}):_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ADD_LEDGER_ACCOUNT'),expression:\"'ADD_LEDGER_ACCOUNT'\"}],attrs:{\"size\":\"sm\",\"variant\":\"primary\"},on:{\"click\":_vm.openLedgerCreateModal}})],1),(_vm.isLoading)?_c('prd-loader',[_c('spinner')],1):_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.ledgers,\"columns\":_vm.columns,\"row-height\":41}}),_c('create-ledger-account-modal',{ref:\"createLeaderModal\",on:{\"reload-ledgers\":_vm.reloadLedgers}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import CreateLedgerAccountModal from '@/components/modals/create-ledger-account-modal';\r\nimport Ledger from '@/models/Finance/Ledger';\r\nimport PageRender from '@/models/PageRender';\r\nimport { ledgerModule } from '@/store/modules/ledger';\r\nimport Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class EcosystemSettingsLedgerAccounts extends PageRender {\r\n public isLoading: boolean = true;\r\n public columns: any = [\r\n { title: 'NAME', field: 'name' },\r\n { title: 'VALUE', field: 'value' },\r\n { title: 'DESCRIPTION', field: 'description' },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 100 },\r\n ];\r\n\r\n public $refs: {\r\n createLeaderModal: CreateLedgerAccountModal;\r\n };\r\n\r\n public async created() {\r\n await ledgerModule.fetchLedgersIfNeeded();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public get ledgers() {\r\n return ledgerModule.ledgers;\r\n }\r\n\r\n public async mounted() {\r\n this.isLoading = false;\r\n }\r\n\r\n public async reloadLedgers() {\r\n await ledgerModule.fetch();\r\n }\r\n\r\n public openLedgerCreateModal() {\r\n this.$refs.createLeaderModal.show();\r\n }\r\n\r\n public editLedger(item?: Ledger) {\r\n if (item) {\r\n this.$refs.createLeaderModal.setLedger(item);\r\n }\r\n\r\n this.openLedgerCreateModal();\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [{ title: 'Edit ledger', function: this.editLedger }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ledger-accounts.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./ledger-accounts.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ledger-accounts.vue?vue&type=template&id=1f77feaf&\"\nimport script from \"./ledger-accounts.ts?vue&type=script&lang=js&\"\nexport * from \"./ledger-accounts.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('h3',[_c('prd-translate-text',{attrs:{\"translate-key\":\"RELATIONS_TITLE\"}})],1),_c('p',[_c('prd-translate-text',{attrs:{\"translate-key\":\"RELATIONS_DESCRIPTION\"}})],1),_c('prd-toolbar',{attrs:{\"space-between\":\"\"}},[_c('template',{slot:\"left\"},[_c('multiselect',{staticStyle:{\"min-width\":\"400px\"},attrs:{\"options\":_vm.origins,\"placeholder\":\"Select a origin\",\"showLabels\":true,\"label\":\"label\",\"track-by\":\"relationId\",\"disabled\":_vm.isLoading},on:{\"remove\":_vm.reloadRelations,\"select\":_vm.reloadRelations},model:{value:(_vm.selectedOrigin),callback:function ($$v) {_vm.selectedOrigin=$$v},expression:\"selectedOrigin\"}}),_c('multiselect',{staticStyle:{\"min-width\":\"400px\"},attrs:{\"options\":_vm.destinations,\"placeholder\":\"Select a destination\",\"track-by\":\"relationId\",\"showLabels\":true,\"label\":\"label\",\"disabled\":_vm.isLoading},on:{\"remove\":_vm.reloadRelations,\"select\":_vm.reloadRelations},model:{value:(_vm.selectedDestination),callback:function ($$v) {_vm.selectedDestination=$$v},expression:\"selectedDestination\"}})],1),_c('template',{slot:\"right\"},[_c('b-form-checkbox',{staticClass:\"mt-2 mr-2 mb-0 text-nowrap d-inline-block\",on:{\"change\":_vm.reloadRelations},model:{value:(_vm.onlyWithoutSettings),callback:function ($$v) {_vm.onlyWithoutSettings=$$v},expression:\"onlyWithoutSettings\"}},[_vm._v(\" Show relations without settings \")]),_c('b-form-checkbox',{staticClass:\"mt-2 mr-2 mb-0 text-nowrap d-inline-block\",on:{\"change\":_vm.reloadWithDeletedRelations},model:{value:(_vm.includeDeletedRelations),callback:function ($$v) {_vm.includeDeletedRelations=$$v},expression:\"includeDeletedRelations\"}},[_vm._v(\" Show ignored relations \")])],1)],2),(_vm.isLoading)?_c('prd-loader',[_c('spinner')],1):_c('prd-grid-wrapper',{key:_vm.relationsGridKey,attrs:{\"data-items\":_vm.relations,\"columns\":_vm.columns,\"row-height\":43}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { relationService } from '@/main';\r\nimport Relation, { IntellectualPropertyLimitation, TaxRate } from '@/models/Finance/Relation';\r\nimport PageRender from '@/models/PageRender';\r\nimport Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class TeamFinanceRelations extends PageRender {\r\n public columns: any = [\r\n { title: 'Legal entity', field: 'originLegalEntityReference' },\r\n { title: 'Team', field: 'originTeam', cell: this.renderTeamName, filterable: true },\r\n { title: 'Group', field: 'originTeam', cell: this.renderGroupName },\r\n { title: 'Legal entity', field: 'destinationLegalEntityReference' },\r\n { title: 'Team', field: 'destinationTeam', cell: this.renderDestinationTeamName, filterable: true },\r\n { title: 'Group', field: 'destinationGroup', cell: this.renderDestinationGroupName },\r\n { title: 'Settings', cell: this.renderSettingsLink },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 100 },\r\n ];\r\n\r\n public $refs!: {\r\n relationModal: any;\r\n };\r\n\r\n public onlyWithoutSettings: boolean = true;\r\n public includeDeletedRelations: boolean = false;\r\n public relations: Relation[] = [];\r\n public allRelations: Relation[] = [];\r\n public intellectualPropertyLimitations: IntellectualPropertyLimitation[] = [];\r\n public taxRates: TaxRate[] = [];\r\n public relationsGridKey: number = 0;\r\n public origins: { relationId: number; legalEntity: string; team: string; group: string; label: string }[] = [];\r\n public destinations: { relationId: number; legalEntity: string; team: string; group: string; label: string }[] = [];\r\n public selectedOrigin: { relationId: number; legalEntity: string; team: string; group: string; label: string } | null = null;\r\n public selectedDestination: { relationId: number; legalEntity: string; team: string; group: string; label: string } | null = null;\r\n\r\n public async mounted() {\r\n await this.loadRelations(this.includeDeletedRelations);\r\n const data = (await relationService.getRelationProperties()).data;\r\n this.intellectualPropertyLimitations = data.intellectualPropertyLimitations;\r\n this.taxRates = data.taxRates;\r\n\r\n this.populateDropdowns();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public populateDropdowns() {\r\n this.origins = [];\r\n this.destinations = [];\r\n\r\n this.relations.forEach((relation) => {\r\n this.origins.push({\r\n relationId: relation.relationId,\r\n legalEntity: relation.originLegalEntityReference,\r\n team: relation.originTeam?.name,\r\n group: relation.originGroup?.name,\r\n label: `${relation.originLegalEntityReference} - ${relation.originTeam?.name ? relation.originTeam.name : '(no team)'} - ${relation.originGroup?.name ? relation.originGroup.name : '(no group)'}`,\r\n });\r\n\r\n this.destinations.push({\r\n relationId: relation.relationId,\r\n legalEntity: relation.destinationLegalEntityReference,\r\n team: relation.destinationTeam?.name,\r\n group: relation.destinationGroup?.name,\r\n label: `${relation.destinationLegalEntityReference} - ${relation.destinationTeam?.name ? relation.destinationTeam.name : '(no team)'} - ${relation.destinationGroup?.name ? relation.destinationGroup.name : '(no group)'}`,\r\n });\r\n });\r\n }\r\n\r\n public reloadRelations() {\r\n this.relations = this.filterRelations();\r\n this.populateDropdowns();\r\n\r\n this.relationsGridKey++;\r\n }\r\n\r\n public async loadRelations(includeDeleted: boolean) {\r\n this.allRelations = await relationService.getRelations(includeDeleted);\r\n this.relations = this.filterRelations();\r\n }\r\n\r\n public async reloadWithDeletedRelations() {\r\n await this.loadRelations(this.includeDeletedRelations);\r\n this.reloadRelations();\r\n }\r\n\r\n private filterRelations() {\r\n let relations = this.allRelations;\r\n if (this.selectedOrigin) {\r\n relations = relations.filter(\r\n (x) =>\r\n x.originLegalEntityReference === this.selectedOrigin.legalEntity &&\r\n x.originTeam?.name === this.selectedOrigin.team &&\r\n x.originGroup?.name === this.selectedOrigin.group,\r\n );\r\n }\r\n\r\n if (this.selectedDestination) {\r\n relations = relations.filter(\r\n (x) =>\r\n x.destinationLegalEntityReference === this.selectedDestination.legalEntity &&\r\n x.destinationTeam?.name === this.selectedDestination.team &&\r\n x.destinationGroup?.name === this.selectedDestination.group,\r\n );\r\n }\r\n\r\n if (this.onlyWithoutSettings) {\r\n return relations.filter((x) => x.relationSettings.length === 0);\r\n }\r\n return relations;\r\n }\r\n\r\n private renderTeamName(h, _, row) {\r\n if (row.dataItem.originTeam && row.dataItem.destinationTeam && row.dataItem.originTeam.teamId === row.dataItem.destinationTeam.teamId) {\r\n return h('td');\r\n }\r\n\r\n return h('td', row.dataItem.originTeam ? row.dataItem.originTeam.name : '');\r\n }\r\n\r\n private renderGroupName(h, _, row) {\r\n return h('td', row.dataItem.originGroup ? row.dataItem.originGroup.name : '');\r\n }\r\n\r\n private renderDestinationTeamName(h, _, row) {\r\n return h('td', row.dataItem.destinationTeam ? row.dataItem.destinationTeam.name : '');\r\n }\r\n\r\n private renderDestinationGroupName(h, _, row) {\r\n return h('td', row.dataItem.destinationGroup ? row.dataItem.destinationGroup.name : '');\r\n }\r\n\r\n private renderSettingsLink(h, _, row) {\r\n const props = { relation: row.dataItem, intellectualPropertyLimitations: this.intellectualPropertyLimitations, taxRates: this.taxRates };\r\n return h(Vue.component('grid-relation-settings'), { props });\r\n }\r\n\r\n private async deleteRelation(item: Relation): Promise {\r\n const success = await relationService.deleteRelation(item.relationId);\r\n\r\n if (success) {\r\n this.clearAndShowSuccess('RELATION_DELETED_SUCCESS');\r\n } else {\r\n this.clearAndShowError('RELATION_DELETED_FAILED');\r\n }\r\n\r\n await this.loadRelations(this.includeDeletedRelations);\r\n this.reloadRelations();\r\n }\r\n\r\n private renderActions(h, _, row: { dataItem: Relation }): any {\r\n const actions = [{ title: 'Delete relation', function: this.deleteRelation }];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./relations.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./relations.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./relations.vue?vue&type=template&id=4e2cf925&\"\nimport script from \"./relations.ts?vue&type=script&lang=js&\"\nexport * from \"./relations.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link ledger-accounts\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ECO_LEDGER_ACCOUNTS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ECO_LEDGER_ACCOUNTS'),expression:\"'ECO_LEDGER_ACCOUNTS'\"}],staticClass:\"nav-link ledger-accounts\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('ledger-accounts')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link cross-legal-transactions\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ECO_CROSS_LEGAL_TRANSACTIONS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ECO_CROSS_LEGAL_TRANSACTIONS'),expression:\"'ECO_CROSS_LEGAL_TRANSACTIONS'\"}],staticClass:\"nav-link cross-legal-transactions\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('cross-legal-transactions')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link relations\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_RELATIONS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_RELATIONS'),expression:\"'TEAM_FINANCE_RELATIONS'\"}],staticClass:\"nav-link relations\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('relations')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link insight-views\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ECOSYSTEM_INSIGHT_VIEWS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ECOSYSTEM_INSIGHT_VIEWS'),expression:\"'ECOSYSTEM_INSIGHT_VIEWS'\"}],staticClass:\"nav-link insight-views\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('insight-views')}}})])]),_c('div',{staticClass:\"tab-content\"},[_c(_vm.currentTabComponent,{tag:\"component\"})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { $router } from '@/main';\r\nimport jQuery from 'jquery';\r\nimport PageRender from '@/models/PageRender';\r\n\r\n@Component\r\nexport default class EcosystemSettings extends PageRender {\r\n public tab: string = null;\r\n public currentTabComponent: string = '';\r\n public tabs: string[] = [\r\n 'ledger-accounts',\r\n 'cross-legal-transactions',\r\n 'relations',\r\n 'insight-views',\r\n ];\r\n\r\n public async mounted() {\r\n await this.checkPeriodParam();\r\n await this.changeTab(this.$route.params.tab);\r\n }\r\n\r\n public async changeTab(tab: string): Promise {\r\n if (this.tabs.indexOf(tab) < 0) {\r\n tab = this.tabs[0];\r\n }\r\n if (tab !== this.$route.params.tab) {\r\n const params = this.$route.params;\r\n params.tab = tab;\r\n\r\n await $router.push({ name: 'ecosystem-settings', params });\r\n } else {\r\n this.doActiveClass(tab);\r\n this.currentTabComponent = 'ecosystem-settings-' + tab;\r\n }\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./settings.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./settings.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./settings.vue?vue&type=template&id=4b794886&\"\nimport script from \"./settings.ts?vue&type=script&lang=js&\"\nexport * from \"./settings.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('prd-toolbar'),(_vm.isLoading)?_c('prd-loader',[_c('spinner')],1):_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.subscriptionNodes,\"columns\":_vm.columns}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { ecosystemHelper, ecosystemService } from '@/main';\r\nimport { Member } from '@/models/Member';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport BaseEcologyDirectory from '../directory/components/BaseEcosystemDirectory';\r\n\r\n@Component\r\nexport default class EcosystemSettingsLedgerAccounts extends BaseEcologyDirectory {\r\n public isLoading: boolean = true;\r\n public info: any = null;\r\n public allMembers: Member[] = [];\r\n\r\n public columns: any = [\r\n { title: 'TYPE_OF_NODES', field: 'name', footerCell: this.renderTotalLabel },\r\n { title: 'NODES_IN_USE', field: 'value', footerCell: this.renderFooterCellSum },\r\n { title: 'INFORMATION', cell: this.renderLink },\r\n // { title: 'ACTIONS', cell: this.renderActions, width: 100 },\r\n ];\r\n\r\n public get subscriptionNodes() {\r\n if (!this.info) {\r\n return [];\r\n }\r\n\r\n const rows = [];\r\n for (const property in this.info) {\r\n rows.push({\r\n name: property === 'groupCount' ? 'Groups' : 'Members',\r\n type: property,\r\n value: this.info[property],\r\n });\r\n }\r\n\r\n return rows;\r\n }\r\n\r\n public async created() {\r\n this.info = await ecosystemService.getSubscriptionInfo();\r\n this.isLoading = false;\r\n }\r\n\r\n public renderLink(h, _, row: any): any {\r\n const type = row.dataItem.type === 'groupCount' ? 'groups' : 'members';\r\n const routeUrl = this.$router.resolve({\r\n name: 'ecosystem-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n tab: type,\r\n period: periodModule.selectedPeriod,\r\n },\r\n }).href;\r\n\r\n const props = {\r\n text: row.dataItem.type === 'groupCount' ? 'See all groups' : 'See all members',\r\n url: routeUrl,\r\n };\r\n\r\n return h(Vue.component('grid-router-link'), { props });\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public renderTotalLabel(h) {\r\n return h('td', 'Total active nodes');\r\n }\r\n\r\n public renderFooterCellSum(h, _, row) {\r\n const total = this.subscriptionNodes.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n return h('td', total);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./subscription.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./subscription.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./subscription.vue?vue&type=template&id=162d17b6&\"\nimport script from \"./subscription.ts?vue&type=script&lang=js&\"\nexport * from \"./subscription.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.isLoading)?_c('p',[_vm._v(\"Loading map data...\")]):_c('svg-graph',{attrs:{\"graphData\":_vm.graph}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import PageRender from '@/models/PageRender';\r\nimport { Component } from 'vue-property-decorator';\r\nimport IMapSetting from '@/models/Map/IMapSettings';\r\nimport { mapService, teamService, financeService, groupService, financeAccountService, roleHelper, $router, ecosystemHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport GraphData from '@/models/Graph/GraphData';\r\nimport Team from '@/models/Team';\r\nimport Group from '@/models/Group';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class MapSVGDashboardComponent extends PageRender {\r\n // tslint:disable: restrict-plus-operands\r\n public isLoading: boolean = true;\r\n public editMode: boolean = false;\r\n public isTeamScope: boolean = false;\r\n public team: Team = new Team();\r\n public teams: Team[] = [];\r\n public groups: Group[] = [];\r\n public teamRevenue: any[] = [];\r\n public ecosystemevenue = [];\r\n public graph = new GraphData();\r\n\r\n private mapSettings: IMapSetting[] = [];\r\n\r\n public async created() {\r\n this.isTeamScope = typeof this.$route.params.teamId !== 'undefined';\r\n if (this.isTeamScope) {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await $router.push({ name: 'not-found' });\r\n }\r\n }\r\n }\r\n\r\n public async mounted() {\r\n if (this.isTeamScope) {\r\n const respose = await teamService.getTeam(parseInt(this.$route.params.teamId), periodModule.selectedPeriod);\r\n this.team = respose.data;\r\n }\r\n\r\n this.mapSettings = await mapService.getSettings(this.team.teamId);\r\n\r\n if (!this.isTeamScope) {\r\n await this.handleEcosystemScope();\r\n } else {\r\n await this.handleTeamScope();\r\n }\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async handleEcosystemScope() {\r\n this.teams = await teamService.getTeams();\r\n this.ecosystemevenue = await this.getEcosystemRevenue();\r\n\r\n for (const [index, team] of this.teams.entries()) {\r\n let settings = this.mapSettings.find((x) => x.team === team.teamId);\r\n\r\n if (!settings) {\r\n settings = { x: 20 * index, y: 20, radius: 20, team: team.teamId, group: null };\r\n }\r\n\r\n this.graph.vertices.push({\r\n id: team.teamId,\r\n key: team.teamKey,\r\n name: team.name,\r\n x: settings.x,\r\n y: settings.y,\r\n radius: settings.radius,\r\n onclick: () => this.goToTeam(team),\r\n });\r\n }\r\n\r\n for (const transfer of this.ecosystemevenue) {\r\n const v1 = this.graph.vertices.find((v) => v.id === transfer.teamId);\r\n\r\n if (!v1) {\r\n continue;\r\n }\r\n\r\n for (const revenue of transfer.revenue) {\r\n const v2 = this.graph.vertices.find((v) => v.id === revenue.teamId);\r\n\r\n if (!v2) {\r\n continue;\r\n }\r\n\r\n this.graph.edges.push({ edge: `${v1.id}${v2.id}`, v1, v2, weight: revenue.total });\r\n }\r\n }\r\n }\r\n\r\n public goToTeam(team: Team) {\r\n if (this.editMode || team.groups.length === 0) {\r\n return;\r\n }\r\n\r\n if (roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) {\r\n // tslint:disable-next-line: no-floating-promises\r\n $router.push({\r\n name: 'ecosystem-graph',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n period: periodModule.selectedPeriod,\r\n teamId: team.teamId.toString(),\r\n },\r\n });\r\n }\r\n }\r\n\r\n public async handleTeamScope() {\r\n this.groups = await this.getTeamGroups(this.team.teamId);\r\n\r\n const groupsIcomeAccountIds = (await financeAccountService.getAccounts(\r\n AccountType.GroupIncome,\r\n this.team.teamId,\r\n periodModule.selectedPeriod,\r\n )).data;\r\n this.groups.forEach((item: Group) => {\r\n return (item.accountIncome = groupsIcomeAccountIds.find((account) => {\r\n return account.relatedEntityId === item.groupId;\r\n }));\r\n });\r\n\r\n this.teamRevenue = await this.getTeamRevenue(this.team.teamId);\r\n\r\n for (const [index, group] of this.groups.entries()) {\r\n let settings = this.mapSettings.find((x) => x.group === group.groupId);\r\n if (!settings) {\r\n settings = { x: 20 * index, y: 20, radius: 20, team: null, group: group.groupId };\r\n }\r\n this.graph.vertices.push({ id: group.groupId, name: group.name, x: settings.x, y: settings.y, radius: settings.radius });\r\n }\r\n\r\n for (const transfer of this.teamRevenue) {\r\n const v1 = this.graph.vertices.find((v) => v.id === transfer.teamId);\r\n\r\n if (!v1) {\r\n continue;\r\n }\r\n\r\n for (const revenue of transfer.revenue) {\r\n const v2 = this.graph.vertices.find((v) => v.id === revenue.teamId);\r\n\r\n if (!v2) {\r\n continue;\r\n }\r\n\r\n this.graph.edges.push({ edge: `${v1.id}${v2.id}`, v1, v2, weight: revenue.total });\r\n }\r\n }\r\n }\r\n\r\n public async getTeamGroups(teamId: number) {\r\n const [err, response] = await to(groupService.getGroups(teamId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse(`Failed to load groups for team ${teamId}`, null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async getTeamRevenue(teamId: number) {\r\n const [err, response] = await to(financeService.getTeamRevenue(periodModule.selectedPeriod, teamId));\r\n if (err) {\r\n this.showFailedResponse('Failed to load group intra revenue on team level', null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async getEcosystemRevenue() {\r\n const [err, response] = await to(financeService.getEcosystemRevenue(periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load team intra revenue on ecosystem level', null);\r\n }\r\n\r\n return response.data;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./svg-graph.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./svg-graph.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./svg-graph.vue?vue&type=template&id=01a87fa4&\"\nimport script from \"./svg-graph.ts?vue&type=script&lang=js&\"\nexport * from \"./svg-graph.ts?vue&type=script&lang=js&\"\nimport style0 from \"./svg-graph.vue?vue&type=style&index=0&id=01a87fa4&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"mw-600 mx-auto my-5\"},[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"danger\"}},[_c('h1',{staticClass:\"alert-heading\"},[_vm._v(\"An error has occured\")]),_c('p',[_vm._v(_vm._s(_vm.message))])]),(_vm.returnUrl)?_c('form',{attrs:{\"action\":_vm.returnUrl}},[_c('b-button',{staticClass:\"btn btn-lg\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_vm._v(\"Continue\")])],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\n\r\n@Component\r\nexport default class ErrorComponent extends Vue {\r\n public message: string = '';\r\n public returnUrl: string = null;\r\n\r\n public mounted() {\r\n this.message = this.$route.params.message as string;\r\n\r\n const r = this.$route.params.returnUrl as string;\r\n if (r !== undefined) {\r\n this.returnUrl = r;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./error.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./error.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./error.vue?vue&type=template&id=59922523&\"\nimport script from \"./error.ts?vue&type=script&lang=js&\"\nexport * from \"./error.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-translate-text',{staticClass:\"mb-2\",attrs:{\"translate-key\":\"AMBITIONS\",\"element\":\"h2\"}}),_c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-4\"},[_c('b-card',[_c('table',{staticClass:\"table table-sm table-borderless\"},[_c('tr',[_c('td',{staticClass:\"pb-4 font-italic\",attrs:{\"colspan\":\"4\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ACTUAL_VS_EXPECTED\"}})],1)]),_c('tr',[_c('prd-translate-text',{attrs:{\"element\":\"td\",\"translate-key\":\"RESULT\"}}),_c('td',{staticClass:\"text-left\",domProps:{\"innerHTML\":_vm._s(_vm.getActualGroupResult())}}),_c('td',{staticClass:\"text-right\",staticStyle:{\"width\":\"30px\"}},[_vm._v(\"vs.\")]),_c('td',{staticClass:\"text-right\",domProps:{\"innerHTML\":_vm._s(_vm.getExpectedGroupResult())}})],1),_c('tr',[_c('prd-translate-text',{attrs:{\"element\":\"td\",\"translate-key\":\"FEE\"}}),_c('td',{staticClass:\"text-left\",domProps:{\"innerHTML\":_vm._s(_vm.getExpectedGroupFee())}}),_c('td',{staticClass:\"text-right\",staticStyle:{\"width\":\"30px\"}},[_vm._v(\"vs.\")]),_c('td',{staticClass:\"text-right\",domProps:{\"innerHTML\":_vm._s(_vm.getActualGroupFee())}})],1)])])],1)]),_c('div',{staticClass:\"k-toolbar k-widget k-toolbar-resizable d-block\"},[_c('div',{staticClass:\"d-flex justify-content-between align-items-start\"},[_c('grid-period-range-filter',{on:{\"filter-change\":_vm.recalculateInternalIncome}})],1)]),_c('grid',{key:_vm.ambitionsUpdated,style:(_vm.calculateHeight()),attrs:{\"data-items\":_vm.ambitions,\"columns\":_vm.ambitionsColumns,\"edit-field\":'inEdit',\"resizable\":true},on:{\"rowclick\":_vm.rowClick,\"changed\":_vm.updateAmbition}},[_c('grid-norecords',[_c('p',[_vm._v(\"No claimed or distributed invoices\")])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Member } from '../Member';\r\n\r\nexport default class Ambition {\r\n public member: Member;\r\n public internalRevenueAmbition: any = 0;\r\n public actualInternalRevenue: number = 0;\r\n public actualExternalRevenue: number = 0;\r\n public cost: number = 0;\r\n public actualCompensations: number = 0;\r\n public guidancePercentage: number = 0;\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n\r\n get externalRevenueGoal(): number {\r\n return this.cost;\r\n }\r\n\r\n get actualMargin(): number {\r\n return this.actualInternalRevenue - this.actualCompensations;\r\n }\r\n\r\n get actualFee(): number {\r\n return (this.actualCompensations * this.guidancePercentage) / 100;\r\n }\r\n\r\n get actualResult(): number {\r\n return this.actualFee + this.actualMargin;\r\n }\r\n\r\n get expectedMargin(): number {\r\n return this.internalRevenueAmbition - this.cost;\r\n }\r\n\r\n get expectedFee(): number {\r\n return (this.cost * this.guidancePercentage) / 100;\r\n }\r\n\r\n get expectedResult(): number {\r\n return this.expectedFee + this.expectedMargin;\r\n }\r\n}\r\n","import BaseGroupPage from './BaseGroupPage';\r\nimport { periodFilterHelper, teamHelper, roleHelper, compensationService, ecosystemHelper } from '@/main';\r\nimport { FinanceAccount } from '../../../../models/Interfaces';\r\nimport Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\nimport Ambition from '@/models/Finance/Ambition';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport moment from 'moment';\r\nimport to from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class GroupDetailAmbitions extends BaseGroupPage {\r\n public isLoaded: boolean = false;\r\n public financeAccounts: FinanceAccount[] = [];\r\n public ambitions: Ambition[] = [];\r\n public editID: number = null;\r\n public compensations: any[] = [];\r\n public ambitionsUpdated: number = 0;\r\n\r\n public ambitionsColumns: any[] = [\r\n {\r\n field: 'member',\r\n cell: this.renderMemberRevenue,\r\n title: 'Member',\r\n className: 'bg-white',\r\n locked: true,\r\n width: 180,\r\n },\r\n { field: 'externalRevenueGoal', title: 'Client rate goal', width: 165, cell: this.renderExternalRevenueGoal },\r\n { field: 'internalRevenueAmbition', title: 'Ecosystem rate ambition', width: 185, cell: this.renderBla },\r\n { field: 'actualRevenueGoal', title: 'Actual client rate revenue', width: 175, cell: this.renderActualInternalRevenue },\r\n { field: 'actualExternalRevenue', title: 'Actual ecosystem rate revenue', width: 175, cell: this.renderActualExternalRevenue },\r\n { field: 'cost', title: 'Cost (Needed compensation for member based on energy and fixed cost)', width: 200, cell: this.renderCosts },\r\n { field: 'actualCompensations', title: 'Actual compensation for member (transfers)', width: 200, cell: this.renderActualCompensations },\r\n { field: 'guidancePercentage', title: 'Guidance percentage', width: 160, cell: this.renderBla },\r\n { field: 'expertedMargin', title: 'Expected margin', width: 135, cell: this.renderExpectedMargin },\r\n { field: 'expectedFee', title: 'Expected guidance fee (guild mode)', width: 160, cell: this.renderExpectedFee },\r\n { field: 'expectedResult', title: 'Expected Result', width: 130, cell: this.renderExpectedResult },\r\n { field: 'actualMargin', title: 'Actual margin', width: 120, cell: this.renderActualMargin },\r\n { field: 'actualFee', title: 'Actual guidance fee (guild mode)', width: 160, cell: this.renderActualFee },\r\n { field: 'actualResult', title: 'Actual result', width: 115, cell: this.renderActualResult },\r\n ];\r\n\r\n public async mounted() {\r\n await this.initInvoicesOrExpensesGroup(InvoiceType.Income);\r\n\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee() && !roleHelper.isGroupLead(this.group)) {\r\n await this.$router.push({\r\n name: 'team-finances-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey: this.group.groupKey,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'overview',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n await this.initAttributions();\r\n\r\n this.isLoaded = true;\r\n }\r\n\r\n public async recalculateInternalIncome(dates) {\r\n this.invoicesReloading = true;\r\n this.showPending('CALCULATING_REVENUE_PENDING');\r\n\r\n this.invoices = [];\r\n this.compensations = [];\r\n\r\n const startPeriod = periodModule.periods.find((x) => moment(x.startDate, 'YYYY-MM-DD').format('YYYY-MM') === dates.fromFilterMonth);\r\n const endPeriod = periodModule.periods.find((x) => moment(x.startDate, 'YYYY-MM-DD').format('YYYY-MM') === dates.toFilterMonth);\r\n\r\n if (startPeriod && endPeriod) {\r\n for (let i = startPeriod.periodId; i <= endPeriod.periodId; i++) {\r\n const period = periodModule.periods.find((x) => x.periodId === i);\r\n\r\n const invoices = await this.loadInvoices(InvoiceType.Income, moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'));\r\n const compensations = await this.loadGroupCompensations(moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'));\r\n\r\n this.invoices.push(...invoices);\r\n this.compensations.push(...compensations);\r\n }\r\n }\r\n\r\n await this.calculateRevenue();\r\n\r\n this.populateGrid();\r\n this.clearNotifications();\r\n this.invoicesReloading = false;\r\n this.ambitionsUpdated++;\r\n }\r\n\r\n public populateGrid() {\r\n this.ambitions = [];\r\n for (const member of this.group.members) {\r\n const ambition = new Ambition({ member });\r\n\r\n const personIncome = this.personIncomes.find((x) => x.member.id === member.memberId);\r\n if (personIncome) {\r\n ambition.actualInternalRevenue = personIncome.totalAmount;\r\n ambition.actualExternalRevenue = personIncome.totalExternalAmount;\r\n }\r\n\r\n const personCompensations = this.compensations.filter((x) => x.member.personId === member.memberId);\r\n for (const pc of personCompensations) {\r\n ambition.cost += pc.costs;\r\n ambition.actualCompensations += pc.compensation;\r\n }\r\n\r\n this.ambitions.push(ambition);\r\n }\r\n }\r\n\r\n public updateAmbition(a) {\r\n const ambition = a.dataItem;\r\n ambition[a.prop] = a.value;\r\n\r\n Vue.set(ambition, 'inEdit', false);\r\n }\r\n\r\n public async loadGroupCompensations(period?: string) {\r\n const [err, response] = await to(\r\n compensationService.getCompensations(this.teamId, this.group.groupId, period ? period : periodModule.selectedPeriod),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load compensations');\r\n }\r\n\r\n return response.data.memberCompensations;\r\n }\r\n\r\n public renderBla(h, _, row, listeners) {\r\n const column = this.ambitionsColumns[row.columnIndex];\r\n const props = {\r\n value: row.dataItem[column.field],\r\n prop: column.field,\r\n dataItem: row.dataItem,\r\n allowNegative: true,\r\n appendPercentage: column.field === 'guidancePercentage',\r\n };\r\n\r\n return h(Vue.component('grid-numeric-editor'), {\r\n props,\r\n on: {\r\n saved: (a) => {\r\n listeners.saved(a);\r\n },\r\n changed: (a) => {\r\n listeners.changed(a);\r\n },\r\n },\r\n });\r\n }\r\n\r\n public getActualGroupResult() {\r\n let count = 0;\r\n this.ambitions.forEach((x) => (count += x.actualResult));\r\n return Vue.filter('number-format')(count);\r\n }\r\n public getActualGroupFee() {\r\n let count = 0;\r\n this.ambitions.forEach((x) => (count += x.actualFee));\r\n return Vue.filter('number-format')(count);\r\n }\r\n public getExpectedGroupResult() {\r\n let count = 0;\r\n this.ambitions.forEach((x) => (count += x.expectedResult));\r\n return Vue.filter('number-format')(count);\r\n }\r\n public getExpectedGroupFee() {\r\n let count = 0;\r\n this.ambitions.forEach((x) => (count += x.expectedFee));\r\n return Vue.filter('number-format')(count);\r\n }\r\n\r\n public renderExternalRevenueGoal(h, _, row) {\r\n const props = { value: row.dataItem.externalRevenueGoal, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderActualInternalRevenue(h, _, row) {\r\n const amount = row.dataItem.actualInternalRevenue;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderActualExternalRevenue(h, _, row) {\r\n const amount = row.dataItem.actualExternalRevenue;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderCosts(h, _, row) {\r\n const amount = row.dataItem.cost;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderActualCompensations(h, _, row) {\r\n const props = { value: row.dataItem.actualCompensations, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderActualMargin(h, _, row) {\r\n const amount = row.dataItem.actualMargin;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderActualFee(h, _, row) {\r\n const props = { value: row.dataItem.actualFee, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderActualResult(h, _, row) {\r\n const amount = row.dataItem.actualResult;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExpectedMargin(h, _, row) {\r\n const amount = row.dataItem.expectedMargin;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExpectedFee(h, _, row) {\r\n const props = { value: row.dataItem.expectedFee, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderExpectedResult(h, _, row) {\r\n const amount = row.dataItem.expectedResult;\r\n const props = { value: amount, classNames: 'bg-secondary' };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public rowClick(e) {\r\n if (periodFilterHelper.isCurrentPeriodClosed()) {\r\n return;\r\n }\r\n\r\n const ambition = this.ambitions.find((i) => i.member.memberId === this.editID);\r\n this.ambitions.forEach((expense) => (expense[this.selectedField] = false));\r\n\r\n if (ambition) {\r\n Vue.set(ambition, 'inEdit', false);\r\n }\r\n\r\n this.editID = e.dataItem.member.id;\r\n Vue.set(e.dataItem, 'inEdit', true);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-ambitions.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-ambitions.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-ambitions.vue?vue&type=template&id=1a840725&\"\nimport script from \"./group-detail-ambitions.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-ambitions.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('div',{staticClass:\"card-deck mb-3\"},[_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_c('prd-translate-text',{attrs:{\"translate-key\":\"DISTRIBUTED_EXPENSES_AMOUNT\",\"element\":\"span\"}}),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getDistributedInvoiceAmount())}})],1)],1),_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_OPEN_EXPENSES_AMOUNT\",\"element\":\"span\"}}),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getOpenInvoiceAmount())}})],1)],1)],1),_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('prd-translate-text',{staticClass:\"text\",attrs:{\"translate-key\":\"SEARCH\",\"element\":\"span\"}}),_c('b-input',{directives:[{name:\"translate-placeholder\",rawName:\"v-translate-placeholder\",value:('PLACEHOLDER_ANYTHING_YOU_LIKE'),expression:\"'PLACEHOLDER_ANYTHING_YOU_LIKE'\"}],attrs:{\"id\":\"free-seach\"},model:{value:(_vm.textSearch),callback:function ($$v) {_vm.textSearch=$$v},expression:\"textSearch\"}})],1),_c('div',[_c('b-form-checkbox',{staticClass:\"mr-2 text-nowrap d-inline-block\",model:{value:(_vm.onlyNotYetDistributed),callback:function ($$v) {_vm.onlyNotYetDistributed=$$v},expression:\"onlyNotYetDistributed\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SHOW_NOT_YET_DISTRIBUTED\",\"element\":\"span\"}})],1),_c('b-form-checkbox',{staticClass:\"mr-2 text-nowrap d-inline-block\",model:{value:(_vm.onlyRecurring),callback:function ($$v) {_vm.onlyRecurring=$$v},expression:\"onlyRecurring\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SHOW_NON_RECURRING\",\"element\":\"span\"}})],1),(_vm.group)?_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length > 0),expression:\"getSelectedInvoices().length > 0\"}],staticClass:\"btn btn-sm btn-primary ml-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed()},on:{\"click\":_vm.openModalMultiDistribution}},[_vm._v(\" Move selected income to an account \")]):_vm._e(),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length == 1),expression:\"getSelectedInvoices().length == 1\"}],staticClass:\"btn btn-sm btn-primary ml-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openAmortizeModal}},[_vm._v(\" Amortize expense \")]),_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.reloadGrid(_vm.invoiceType)}}},[_c('i',{staticClass:\"icon-rotate-cw\"})])],1)]),(_vm.invoicesReloading)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{staticClass:\"mt-5 d-inline-block\"})],1):_c('grid',{key:_vm.reloadInvoicesGrid,style:(_vm.calculateGridHeight()),attrs:{\"data-items\":_vm.getData(),\"columns\":_vm.invoiceColumns,\"edit-field\":'inEdit',\"pageable\":true,\"row-height\":40,\"skip\":_vm.skip,\"take\":_vm.take,\"total\":_vm.getTotal(),\"resizable\":true,\"selected-field\":_vm.selectedField,\"disabled\":_vm.disableGrid},on:{\"rowclick\":_vm.rowClick,\"pagechange\":_vm.pageChangeHandler,\"selectionchange\":_vm.onSelectionChange,\"headerselectionchange\":_vm.onHeaderSelectionChange,\"saved\":_vm.saveRow,\"changed\":_vm.updateDistribution}}),(_vm.getSelectedInvoices().length > 0)?_c('move-to-account-modal',{ref:\"multiIncomeDistributionModal\",attrs:{\"options-list\":_vm.optionListReceivers(),\"selected-invoices\":_vm.getSelectedInvoices(),\"group\":_vm.group,\"is-expense\":\"true\"},on:{\"invoice-moved\":_vm.reloadGrid}}):_vm._e(),(_vm.selectedInvoice)?_c('amortize-modal',{ref:\"amortizeModal\",attrs:{\"invoice\":_vm.selectedInvoice,\"is-expense\":true,\"optionsList\":_vm.optionListReceivers()},on:{\"amortization-set\":_vm.removeAndSaveCurrentDistributions}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport BaseGroupPage from './BaseGroupPage';\r\nimport { functions } from '../../../../helpers/functions';\r\nimport Vue from 'vue';\r\nimport { teamHelper, financeService } from '@/main';\r\nimport { InvoiceType } from '../../../../models/InvoiceType';\r\nimport to from 'await-to-js';\r\nimport { enMessages } from '@/language/en';\r\nimport { Watch } from 'vue-property-decorator';\r\nimport { AccountType } from '@/models/AccountType';\r\n\r\n@Component\r\nexport default class GroupDetailExpense extends BaseGroupPage {\r\n public invoiceType: InvoiceType = InvoiceType.Expenses;\r\n\r\n @Watch('onlyRecurring')\r\n public onRecurringFilterChange() {\r\n this.filterInvoices();\r\n }\r\n\r\n @Watch('onlyNotYetDistributed')\r\n public onFailureFilterChange() {\r\n this.filterInvoices();\r\n }\r\n\r\n @Watch('textSearch')\r\n public onTextFilterChange(val, oldVal) {\r\n if ((val && val.length > 2) || (oldVal && oldVal.length > val.length)) {\r\n this.filterInvoices();\r\n }\r\n }\r\n\r\n public async mounted() {\r\n const self = this;\r\n\r\n this.invoiceColumns.push({\r\n title: 'IS_RECURRING',\r\n width: 125,\r\n field: 'invoice.isRecurring',\r\n locked: true,\r\n cell: this.renderRecurring,\r\n headerCell: this.translate,\r\n });\r\n\r\n await this.initInvoicesOrExpensesGroup(InvoiceType.Expenses);\r\n\r\n self.isLoaded = true;\r\n }\r\n\r\n public async openModalMultiDistribution() {\r\n const modal = this.$refs.multiIncomeDistributionModal;\r\n modal.show();\r\n }\r\n\r\n public async saveRow(a) {\r\n const self = this;\r\n\r\n const distributedInvoice = a.dataItem;\r\n const split = a.prop.split('_');\r\n let accountType = AccountType.Person;\r\n if (split[0].indexOf('group') > -1) {\r\n accountType = AccountType.GroupSavings;\r\n }\r\n\r\n const distribution = distributedInvoice.distributions.find(\r\n (d) =>\r\n d.account && d.account.relatedEntityId && d.account.relatedEntityId === parseInt(split[1]) && d.account.accountType === accountType,\r\n );\r\n distribution.amount = a.value;\r\n const amount = functions.amountLeft(distributedInvoice, distributedInvoice.invoice.amount < 0);\r\n if ((amount >= 0 && distributedInvoice.invoice.amount > 0) || (distributedInvoice.invoice.amount < 0 && amount <= 0)) {\r\n self.showPending('DISTRIBUTING_INVOICES_PENDING');\r\n const [err] = await to(financeService.saveDistribution(distributedInvoice, teamHelper.getTeamId(), this.group.groupId));\r\n if (err) {\r\n self.clearAndShowError('DISTRIBUTING_INVOICES_FAILED', err);\r\n } else {\r\n self.clearAndShowSuccess('DISTRIBUTING_INVOICES_SUCCESS');\r\n\r\n Vue.set(distributedInvoice, 'inEdit', false);\r\n Vue.set(distributedInvoice, 'amountLeftFilter', distributedInvoice.amountLeft);\r\n\r\n this.editID = null;\r\n\r\n await this.reloadGrid(InvoiceType.Expenses);\r\n await this.calculateRevenue();\r\n }\r\n } else {\r\n return self.showError(enMessages.notAllowedToDistribute);\r\n }\r\n }\r\n\r\n public renderRecurring(h, _, row) {\r\n return h('td', { class: 'bg-white k-grid-content-sticky' }, [row.dataItem.invoice.isRecurring ? 'Yes' : 'No']);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-expense.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-expense.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-expense.vue?vue&type=template&id=72381a85&\"\nimport script from \"./group-detail-expense.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-expense.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('div',{staticClass:\"card-deck mb-3\"},[_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_c('prd-translate-text',{attrs:{\"translate-key\":\"DISTRIBUTED_INVOICES_AMOUNT\",\"element\":\"span\"}}),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getDistributedInvoiceAmount())}})],1)],1),_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_OPEN_INVOICES_AMOUNT\",\"element\":\"span\"}}),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getOpenInvoiceAmount())}})],1)],1)],1),_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('prd-translate-text',{staticClass:\"text\",attrs:{\"translate-key\":\"SEARCH\",\"element\":\"span\"}}),_c('b-input',{directives:[{name:\"translate-placeholder\",rawName:\"v-translate-placeholder\",value:('PLACEHOLDER_ANYTHING_YOU_LIKE'),expression:\"'PLACEHOLDER_ANYTHING_YOU_LIKE'\"}],attrs:{\"id\":\"free-seach\"},model:{value:(_vm.textSearch),callback:function ($$v) {_vm.textSearch=$$v},expression:\"textSearch\"}})],1),_c('div',[_c('b-form-checkbox',{staticClass:\"mr-2 text-nowrap d-inline-block\",model:{value:(_vm.onlyNotYetDistributed),callback:function ($$v) {_vm.onlyNotYetDistributed=$$v},expression:\"onlyNotYetDistributed\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SHOW_NOT_YET_DISTRIBUTED\",\"element\":\"span\"}})],1),(_vm.group)?_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length > 0),expression:\"getSelectedInvoices().length > 0\"}],staticClass:\"btn btn-sm btn-primary mr-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed()},on:{\"click\":_vm.openModalMultiDistribution}},[_vm._v(\" Move selected income to an account \")]):_vm._e(),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length == 1),expression:\"getSelectedInvoices().length == 1\"}],staticClass:\"btn btn-sm btn-primary mr-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openAmortizeModal}},[_vm._v(\" Amortize income \")]),_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.reloadGrid(_vm.invoiceType)}}},[_c('i',{staticClass:\"icon-rotate-cw\"})])],1)]),(_vm.invoicesReloading)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{staticClass:\"mt-5 d-inline-block\"})],1):_c('grid',{key:_vm.reloadInvoicesGrid,style:(_vm.calculateGridHeight()),attrs:{\"data-items\":_vm.getData(),\"columns\":_vm.invoiceColumns,\"edit-field\":'inEdit',\"pageable\":true,\"row-height\":40,\"skip\":_vm.skip,\"take\":_vm.take,\"total\":_vm.getTotal(),\"resizable\":true,\"selected-field\":_vm.selectedField,\"disabled\":_vm.disableGrid},on:{\"rowclick\":_vm.rowClick,\"pagechange\":_vm.pageChangeHandler,\"selectionchange\":_vm.onSelectionChange,\"headerselectionchange\":_vm.onHeaderSelectionChange,\"saved\":_vm.saveRow,\"changed\":_vm.updateDistribution}}),(!_vm.hideCalculatedIncome)?[_c('prd-translate-text',{staticClass:\"my-5 mr-3 d-inline-block\",attrs:{\"element\":\"h3\",\"translate-key\":\"CALCULATED_INCOME\"}}),_c('prd-grid-wrapper',{style:(_vm.calculateRevenueGridHeight()),attrs:{\"data-items\":_vm.personIncomes,\"columns\":_vm.personIncomesColumns}})]:_vm._e(),(_vm.getSelectedInvoices().length > 0)?_c('move-to-account-modal',{ref:\"multiIncomeDistributionModal\",attrs:{\"options-list\":_vm.optionListReceivers(),\"selected-invoices\":_vm.getSelectedInvoices(),\"group\":_vm.group},on:{\"invoice-moved\":_vm.reloadGrid}}):_vm._e(),(_vm.selectedInvoice)?_c('amortize-modal',{ref:\"amortizeModal\",attrs:{\"invoice\":_vm.selectedInvoice,\"optionsList\":_vm.optionListReceivers()},on:{\"amortization-set\":_vm.removeAndSaveCurrentDistributions}}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport BaseGroupPage from './BaseGroupPage';\r\nimport { InvoiceType } from '../../../../models/InvoiceType';\r\nimport { Watch } from 'vue-property-decorator';\r\nimport { roleHelper } from '@/main';\r\n\r\n@Component\r\nexport default class GroupDetailIncome extends BaseGroupPage {\r\n public invoiceType: InvoiceType = InvoiceType.Income;\r\n\r\n @Watch('onlyNotYetDistributed')\r\n public onFailureFilterChange() {\r\n this.filterInvoices();\r\n }\r\n\r\n @Watch('textSearch')\r\n public onTextFilterChange(val, oldVal) {\r\n if ((val && val.length > 2) || (oldVal && oldVal.length > val.length)) {\r\n this.filterInvoices();\r\n }\r\n }\r\n\r\n public async mounted() {\r\n const self = this;\r\n\r\n await this.initInvoicesOrExpensesGroup(InvoiceType.Income);\r\n await this.initAttributions();\r\n await self.calculateRevenue();\r\n\r\n self.isLoaded = true;\r\n }\r\n\r\n public async openModalMultiDistribution() {\r\n const modal = this.$refs.multiIncomeDistributionModal;\r\n modal.show();\r\n }\r\n\r\n get hideCalculatedIncome() {\r\n return !roleHelper.checkAccess(this.groupFinanceSettings.privacyLevel, this.group);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-income.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-income.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-income.vue?vue&type=template&id=2ac208d4&\"\nimport script from \"./group-detail-income.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-income.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-translate-text',{staticClass:\"mb-2\",attrs:{\"element\":\"h2\",\"translate-key\":\"CALCULATED_INCOME\"}}),_c('div',{staticClass:\"k-toolbar k-widget k-toolbar-resizable d-block\"},[_c('div',{staticClass:\"d-flex justify-content-between align-items-start\"},[_c('grid-period-range-filter',{on:{\"filter-change\":_vm.recalculateInternalIncome}})],1)]),_c('prd-grid-wrapper',{key:_vm.invoicesReloaded,attrs:{\"data-items\":_vm.personIncomes,\"columns\":_vm.personIncomesColumns,\"row-height\":34}},[_c('grid-norecords',[_c('prd-translate-text',{attrs:{\"translate-key\":\"NO_CLAIMED_DISTRIBUTED_INVOICES\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import BaseGroupPage from './BaseGroupPage';\r\nimport Vue from 'vue';\r\nimport DistributedInvoice from '../../../../models/DistributedInvoice';\r\nimport { teamHelper, roleHelper, ecosystemHelper, compensationService } from '@/main';\r\nimport { InvoiceType } from '../../../../models/InvoiceType';\r\nimport { Member } from '../../../../models/Member';\r\nimport moment from 'moment';\r\nimport { FinanceAccount } from '../../../../models/Interfaces';\r\nimport Component from 'vue-class-component';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport to from 'await-to-js';\r\nimport Compensation from '@/models/Compensation';\r\n\r\n@Component\r\nexport default class GroupDetailAnalytics extends BaseGroupPage {\r\n public invoices: DistributedInvoice[] = [];\r\n public compensations: Compensation[] = [];\r\n public members: Member[] = [];\r\n public isLoaded: boolean = false;\r\n public financeAccounts: FinanceAccount[] = [];\r\n public invoicesReloading: boolean = false;\r\n public invoicesReloaded: number = 0;\r\n\r\n public async mounted() {\r\n const self = this;\r\n const groupKey = this.$route.params.groupKey;\r\n\r\n await this.initInvoicesOrExpensesGroup(InvoiceType.Income);\r\n\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee() && !roleHelper.isGroupLead(this.group)) {\r\n await this.$router.push({\r\n name: 'team-finances-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'overview',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n this.personIncomesColumns.push(\r\n { title: 'Compensation', cell: this.formatNumber('compensation') },\r\n { title: 'Result', cell: this.formatNumber('result') },\r\n { title: 'ROI', cell: this.formatField('roi', (x: number) => `${x.toFixed()}%`, 0) });\r\n\r\n await this.initAttributions();\r\n\r\n self.isLoaded = true;\r\n }\r\n\r\n public async recalculateInternalIncome(dates) {\r\n this.invoicesReloading = true;\r\n this.showPending('CALCULATING_REVENUE_PENDING');\r\n\r\n this.invoices = [];\r\n this.compensations = [];\r\n\r\n const startPeriod = periodModule.periods.find((x) => moment(x.startDate, 'YYYY-MM-DD').format('YYYY-MM') === dates.fromFilterMonth);\r\n const endPeriod = periodModule.periods.find((x) => moment(x.startDate, 'YYYY-MM-DD').format('YYYY-MM') === dates.toFilterMonth);\r\n\r\n if (startPeriod && endPeriod) {\r\n for (let i = startPeriod.periodId; i <= endPeriod.periodId; i++) {\r\n const period = periodModule.periods.find((x) => x.periodId === i);\r\n\r\n const invoices = await this.loadInvoices(InvoiceType.Income, moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'));\r\n const compensations = await this.loadCompensations(moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'));\r\n this.invoices.push(...invoices);\r\n this.compensations.push(...compensations);\r\n }\r\n }\r\n\r\n await this.calculateRevenue();\r\n await this.calculateCompensations();\r\n this.clearNotifications();\r\n this.invoicesReloading = false;\r\n this.invoicesReloaded++;\r\n }\r\n\r\n public async calculateCompensations() {\r\n for (let i = 0; i < this.members.length; i++) {\r\n const member = this.members[i];\r\n const personIncome = this.personIncomes.find((x) => x.member.memberId === member.memberId);\r\n const compensation = this.getTotalCompensations(member.memberId);\r\n const result = personIncome.totalAmount - compensation;\r\n personIncome.compensation = compensation;\r\n personIncome.costs = this.getTotalCosts(member.memberId);\r\n personIncome.result = result;\r\n personIncome.roi = result && compensation\r\n ? (result / compensation) * 100\r\n : 0;\r\n }\r\n }\r\n\r\n public calculateFromPenLTariff(amount) {\r\n return (\r\n amount /\r\n (1 - this.attributionPercentages.teamAttributionsPercentage / 100 / (1 - this.attributionPercentages.groupAttributionsPercentage / 100))\r\n );\r\n }\r\n\r\n public getTotalCompensations(personId: number) {\r\n const compensations = this.compensations.filter((x) => x.member.personId === personId);\r\n const total = compensations.reduce((x, y) => {\r\n return x + y.compensation;\r\n }, 0);\r\n\r\n return this.calculateFromPenLTariff(total);\r\n }\r\n\r\n public getTotalCosts(personId: number) {\r\n const compensations = this.compensations.filter((x) => x.member.personId === personId);\r\n const total = compensations.reduce((x, y) => {\r\n return x + y.costs;\r\n }, 0);\r\n\r\n return this.calculateFromPenLTariff(total);\r\n }\r\n\r\n public async loadCompensations(period: string) {\r\n const [err, response] = await to(compensationService.getCompensations(this.teamId, this.group.groupId, period));\r\n if (err) {\r\n this.clearAndShowError('FAILED', err);\r\n return [];\r\n }\r\n return response.data.memberCompensations.map((x) => new Compensation(x));\r\n }\r\n\r\n public renderMemberRevenue(h, _, row: any) {\r\n const props = { member: row.dataItem.member };\r\n return h(Vue.component('member-name-native'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-insights.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-insights.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-insights.vue?vue&type=template&id=57c32cc8&\"\nimport script from \"./group-detail-insights.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-insights.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('prd-loader',{attrs:{\"center\":\"\"}},[_c('spinner')],1):_c('div',[_c('prd-toolbar',{attrs:{\"space-between\":\"\"}},[_c('div',{staticClass:\"d-none d-md-block\",attrs:{\"slot\":\"right\"},slot:\"right\"},[(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.isGroupLead)?_c('prd-translate-button',{staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"type\":\"button\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"ADD_MEMBER\"},on:{\"click\":_vm.addMemberToGroup}}):_vm._e(),_c('prd-translate-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isMember),expression:\"!isMember\"}],staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"JOIN_GROUP\"},on:{\"click\":_vm.openModalJoinGroup}}),_c('prd-translate-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isMember && !_vm.isGroupLead),expression:\"isMember && !isGroupLead\"}],staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"LEAVE_GROUP\"},on:{\"click\":_vm.openModalLeaveGroup}}),_c('prd-translate-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isGroupLead || _vm.$root.roleHelper.isSiteAdmin()),expression:\"isGroupLead || $root.roleHelper.isSiteAdmin()\"}],staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"variant\":\"warning\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"TRANSFER_GROUP_LEAD\"},on:{\"click\":_vm.openModalTransferGroupLead}})],1)]),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.members,\"columns\":_vm.memberColumns,\"auto-height\":\"\"}}),_c('b-modal',{ref:\"leaveGroup\",attrs:{\"id\":\"leave-group\",\"title\":\"Leave group\",\"size\":\"sm\"}},[_c('div',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'GROUP.LEAVE_TITLE', params: { name: _vm.group.name } }),expression:\"{ key: 'GROUP.LEAVE_TITLE', params: { name: group.name } }\"}],attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"}),_c('prd-translate-text',{attrs:{\"translate-key\":\"LEAVE_QUESTION\",\"translate-group\":\"GROUP\",\"element\":\"p\"}}),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block px-2\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.unenroll}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEAVE_GROUP\",\"translate-group\":\"GROUP\"}})],1)],1)],1),_c('b-modal',{ref:\"joinGroup\",attrs:{\"id\":\"join-group\",\"title\":\"Join group\",\"size\":\"sm\"}},[_c('div',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'GROUP.JOIN_TITLE', params: { name: _vm.group.name } }),expression:\"{ key: 'GROUP.JOIN_TITLE', params: { name: group.name } }\"}],attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"}),_c('prd-translate-text',{attrs:{\"translate-key\":\"JOIN_QUESTION\",\"translate-group\":\"GROUP\",\"element\":\"p\"}}),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block px-2\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.enroll}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"JOIN_GROUP\",\"translate-group\":\"GROUP\"}})],1)],1)],1),_c('b-modal',{ref:\"transferGroupLead\",attrs:{\"id\":\"transfer-group-lead\",\"size\":\"sm\"}},[_c('div',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'GROUP.TRANSFER_LEAD_TITLE', params: { name: _vm.group.name } }),expression:\"{ key: 'GROUP.TRANSFER_LEAD_TITLE', params: { name: group.name } }\"}],attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"}),_c('b-form-group',{attrs:{\"id\":\"groupLeadGroup\",\"label-for\":\"persons\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"element\":\"span\",\"translate-key\":\"TRANSFER_LEAD_DESCRIPTION\",\"translate-group\":\"GROUP\"},slot:\"description\"}),_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"for\":\"groupNameInput\",\"element\":\"span\",\"translate-key\":\"TRANSFER_LEAD_LABEL\",\"translate-group\":\"GROUP\"},slot:\"label\"}),_c('b-form-select',{staticClass:\"mb-3 form-control\",attrs:{\"id\":\"persons\",\"required\":\"\",\"options\":_vm.optionListMembers()},model:{value:(_vm.transferGroupLeadForm.newLeader),callback:function ($$v) {_vm.$set(_vm.transferGroupLeadForm, \"newLeader\", $$v)},expression:\"transferGroupLeadForm.newLeader\"}})],1),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block px-2\",attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.transferLeadership}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TRANSFER_LEAD\",\"translate-group\":\"GROUP\"}})],1)],1)],1),_c('b-modal',{ref:\"addMemberModal\",attrs:{\"id\":\"add-member\",\"title\":\"Add member to group\",\"size\":\"sm\"}},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_vm._v(\"Add member to group to \"+_vm._s(_vm.group.name))]),_c('b-form-group',{attrs:{\"id\":\"memberGroup\",\"label\":\"Select member\",\"label-for\":\"members\",\"description\":\"Add a member to this group\"}},[_c('b-form-select',{staticClass:\"mb-3\",attrs:{\"id\":\"members\",\"required\":\"\",\"options\":_vm.optionListNotMembers()},model:{value:(_vm.newMember),callback:function ($$v) {_vm.newMember=$$v},expression:\"newMember\"}})],1),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block px-2\",attrs:{\"variant\":\"info\"},on:{\"click\":_vm.addMember}},[_vm._v(\"Add member to \"+_vm._s(_vm.group.name))])],1)],1),_c('b-modal',{ref:\"kickConfirm\",attrs:{\"id\":\"kickConfirm\",\"title\":\"Confirm remove\",\"size\":\"sm\"}},[_vm._v(\" Are you sure you want to remove this member? \"),_c('br'),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.confirmKick}},[_vm._v(\"Yes\")]),_c('b-button',{staticClass:\"d-inline-block\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.cancelKick}},[_vm._v(\"No\")])],1)]),_c('energy-dedication-modal',{ref:\"energyDedicationEdit\",on:{\"energy-dedications-updated\":_vm.reloadEnergyMembers}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\nimport { Member } from '@/models/Member';\r\nimport {\r\n memberHelper,\r\n loginHelper,\r\n financeAccountService,\r\n groupService,\r\n teamHelper,\r\n meService,\r\n financeService,\r\n roleHelper,\r\n ecosystemHelper,\r\n} from '@/main';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport BaseGroupPage from './BaseGroupPage';\r\nimport to from 'await-to-js';\r\nimport { AxiosResponse } from 'axios';\r\nimport FinancialActivity from '@/models/FinancialActivity';\r\nimport { Route } from 'vue-router';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { translateModule } from '@/store/modules/translate';\r\n\r\n@Component\r\nexport default class GroupDetailMembers extends BaseGroupPage {\r\n public members: Member[] = [];\r\n public allMembers: Person[] = [];\r\n public notMembers: Person[] = [];\r\n public isMember: boolean = false;\r\n public isGroupLead: boolean = false;\r\n public sendingAccounts: FinanceAccount[] = []; // current group saving account + current group member accounts\r\n public receivingAccounts: FinanceAccount[] = []; // all gourp incoome acounts + current group member accounts\r\n public transferGroupLeadForm: any = { newLeader: null };\r\n public newMember: number = null;\r\n public kickedMember: number = null;\r\n public totalEnergySpent: number = 0;\r\n\r\n public memberColumns: any[] = [\r\n { cell: this.renderFullname, title: 'Name', field: 'firstName' },\r\n { cell: this.renderGrouprole, title: 'Grouprole', field: 'firstName' },\r\n { cell: this.renderEnergyDedication, title: 'Energy dedication' },\r\n { title: 'E-mail', field: 'emailAddress' },\r\n ];\r\n\r\n public async created() {\r\n const self = this;\r\n this.isGroupLead = roleHelper.isGroupLead(this.group);\r\n\r\n if (this.isGroupLead || roleHelper.isSiteAdmin()) {\r\n this.memberColumns.push({ title: 'Actions', cell: this.renderActions, width: 150 });\r\n }\r\n\r\n const membersEnergyResponse = await groupService.getEnergyDedication(\r\n teamHelper.currentTeamId,\r\n self.group.groupId,\r\n periodModule.selectedPeriod,\r\n );\r\n\r\n const members = this.group.members;\r\n for (let i = 0; i < members.length; i++) {\r\n const energy = membersEnergyResponse.data.find((memb) => memb.personId === members[i].memberId);\r\n members[i].energyDedication = energy ? energy.amount : 0;\r\n this.members.push(members[i]);\r\n }\r\n\r\n this.isMember =\r\n this.members.filter((item: Member) => {\r\n return item.memberId === loginHelper.getUser().personId;\r\n }).length > 0;\r\n\r\n if (this.group) {\r\n this.sendingAccounts.push(this.group.account);\r\n }\r\n\r\n const groupAccounts = (await financeAccountService.getAccounts(\r\n AccountType.GroupIncome,\r\n teamHelper.currentTeam.id,\r\n periodModule.selectedPeriod,\r\n )).data;\r\n this.receivingAccounts = this.receivingAccounts.concat(groupAccounts);\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async reloadEnergyMembers() {\r\n const membersEnergyResponse = await groupService.getEnergyDedication(\r\n teamHelper.currentTeamId,\r\n this.group.groupId,\r\n periodModule.selectedPeriod,\r\n );\r\n\r\n for (const member of this.members) {\r\n const energy = membersEnergyResponse.data.find((memb) => memb.personId === member.memberId);\r\n member.energyDedication = energy ? energy.amount : 0;\r\n }\r\n }\r\n\r\n public async confirmKick() {\r\n const self = this;\r\n this.showPending('REMOVING_MEMBER_PENDING');\r\n\r\n const [err] = await to(groupService.kickMember(this.group.groupId, this.kickedMember, teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError('REMOVING_MEMBER_FAILED', err);\r\n }\r\n\r\n self.$refs.kickConfirm.hide();\r\n this.clearAndShowSuccess('REMOVING_MEMBER_SUCCESS');\r\n }\r\n\r\n public cancelKick() {\r\n this.$refs.kickConfirm.hide();\r\n }\r\n\r\n public async checkValidKick(memberId) {\r\n const [err, response] = await to>(\r\n financeService.getPersonFinancialActiviy(teamHelper.getTeamId(), this.group.groupId, memberId, periodModule.selectedPeriod),\r\n );\r\n if (err) {\r\n this.clearAndShowError('Failed to check financial activity for this member.', err);\r\n return false;\r\n }\r\n\r\n return !response.data.isCompensated;\r\n }\r\n\r\n public async kickMember(item: Member) {\r\n const result = await this.checkValidKick(item.memberId);\r\n if (result) {\r\n this.kickedMember = item.memberId;\r\n this.$refs.kickConfirm.show();\r\n } else {\r\n this.clearAndShowError(`There are financial activities in this period for this person. You aren't allowed to remove this person.`, null);\r\n }\r\n }\r\n\r\n public renderEnergyDedication(h, _, row) {\r\n const props = {\r\n value: row.dataItem.energyDedication,\r\n showPercentage: true,\r\n action: null,\r\n };\r\n\r\n if (roleHelper.isGroupLead(this.group) || roleHelper.isSiteAdmin()) {\r\n props.action = async () => {\r\n await this.openEditEnergyEdicationModal(row.dataItem);\r\n };\r\n }\r\n return h(Vue.component('grid-percentage'), { props });\r\n }\r\n\r\n public async openEditEnergyEdicationModal(member: Member) {\r\n const self = this;\r\n const modal = self.$refs.energyDedicationEdit;\r\n\r\n await modal.setMember(member);\r\n modal.show();\r\n }\r\n\r\n public hideEnergyDedicationModal() {\r\n this.$refs.energyDedicationEdit.hide();\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [\r\n { title: 'Remove member from group', function: this.kickMember },\r\n { title: 'Edit energy dedication', function: this.openEditEnergyEdicationModal },\r\n ];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public renderGrouprole(h, _, row: { dataItem: Member }) {\r\n const role = typeof this.group.groupLead !== 'undefined' && this.group.groupLead.memberId === row.dataItem.memberId ? 'Group lead' : 'Member';\r\n return h('td', [role]);\r\n }\r\n\r\n public exploreAllGroups(): Promise {\r\n return this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n team: teamHelper.teamParam,\r\n },\r\n });\r\n }\r\n\r\n public openModalJoinGroup(): void {\r\n const self = this;\r\n const modal = self.$refs.joinGroup;\r\n modal.show();\r\n }\r\n\r\n public async openModalLeaveGroup() {\r\n const self = this;\r\n const result = await this.checkValidKick(loginHelper.getUser().personId);\r\n\r\n if (result) {\r\n const modal = self.$refs.leaveGroup;\r\n modal.show();\r\n } else {\r\n this.clearAndShowError(\r\n `There are financial activities in this period for this person. You aren't allowed to leave this group in this period.`,\r\n null,\r\n );\r\n }\r\n }\r\n\r\n public openModalTransferGroupLead(): void {\r\n const self = this;\r\n const modal = self.$refs.transferGroupLead;\r\n modal.show();\r\n }\r\n\r\n public optionListMembers(): any[] {\r\n const filteredMembers = [{ value: null, text: translateModule.value('SELECT_A_MEMBER', 'DROPDOWN') }];\r\n\r\n this.members.forEach((member) => {\r\n if (!this.group.groupLead || (this.group.groupLead && member.memberId !== this.group.groupLead.memberId)) {\r\n filteredMembers.push({\r\n value: member.memberId,\r\n text: member.firstName + ' ' + (member.insertion ? member.insertion + ' ' : '') + member.lastName,\r\n });\r\n }\r\n });\r\n\r\n return filteredMembers;\r\n }\r\n\r\n public optionListNotMembers(): any[] {\r\n const list = this.notMembers.map((member) => {\r\n return { value: member.personId, text: member.firstName + ' ' + (member.insertion ? member.insertion + ' ' : '') + member.lastName };\r\n });\r\n\r\n list.unshift({ value: null, text: translateModule.value('SELECT_A_MEMBER', 'DROPDOWN') });\r\n\r\n return list;\r\n }\r\n\r\n public optionListSenders(): any[] {\r\n const list = this.sendingAccounts.map((sender) => {\r\n return { value: sender.accountId, text: sender.name };\r\n });\r\n\r\n list.unshift({ value: null, text: 'Select an account' });\r\n\r\n return list;\r\n }\r\n\r\n public grouprole(member: any): string {\r\n return typeof this.group.groupLead !== 'undefined' && this.group.groupLead.memberId === member.id ? 'Group lead' : 'Member';\r\n }\r\n\r\n public async transferLeadership(evt: any) {\r\n const self = this;\r\n evt.preventDefault();\r\n const modal = self.$refs.transferGroupLead;\r\n\r\n if (!this.transferGroupLeadForm.newLeader) {\r\n return this.showError('Select a valid member');\r\n }\r\n\r\n self.showPending('TRANSFER_LEADERSHIP_PENDING');\r\n const [err] = await to(\r\n groupService.transferLeadership(\r\n teamHelper.currentTeamId,\r\n this.group.groupId,\r\n { newLeader: this.transferGroupLeadForm.newLeader },\r\n periodModule.selectedPeriod,\r\n ),\r\n );\r\n if (err) {\r\n return self.clearAndShowError('TRANSFER_LEADERSHIP_FAILED', err);\r\n }\r\n\r\n self.clearAndShowSuccess('TRANSFER_LEADERSHIP_SUCCESS');\r\n modal.hide();\r\n self.isGroupLead = self.transferGroupLeadForm.newLeader === loginHelper.getUser().personId;\r\n\r\n const newLeader = self.members.find((item: Member) => {\r\n return item.memberId === self.transferGroupLeadForm.newLeader;\r\n });\r\n\r\n if (newLeader) {\r\n self.group.groupLead.memberId = newLeader.memberId;\r\n self.group.groupLead.firstName = newLeader.firstName;\r\n self.group.groupLead.insertion = newLeader.insertion;\r\n self.group.groupLead.lastName = newLeader.lastName;\r\n self.transferGroupLeadForm.oldLeader = newLeader.memberId;\r\n }\r\n }\r\n\r\n public async enroll() {\r\n const self = this;\r\n self.showPending('JOINING_GROUP_PENDING');\r\n const [err] = await to(groupService.enroll(this.group.groupId, teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n\r\n if (err) {\r\n return self.clearAndShowError('JOINING_GROUP_FAILED', err);\r\n }\r\n\r\n const modal = self.$refs.joinGroup;\r\n const [profErr, profileResponse] = await to(meService.profile());\r\n if (profErr) {\r\n console.log(profErr);\r\n }\r\n const profile = profileResponse;\r\n self.isMember = true;\r\n self.members.push(new Member(profile));\r\n self.clearAndShowSuccess('JOINING_GROUP_SUCCESS');\r\n modal.hide();\r\n }\r\n\r\n public async unenroll() {\r\n const self = this;\r\n self.showPending('LEAVING_GROUP_PENDING');\r\n const [err] = await to(groupService.unenroll(this.group.groupId, teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n\r\n if (err) {\r\n return self.clearAndShowError('LEAVING_GROUP_FAILED', err);\r\n }\r\n\r\n const modal = self.$refs.leaveGroup;\r\n const myself = self.members.findIndex((item: Member) => item.memberId === loginHelper.getUser().personId);\r\n self.members.splice(myself, 1);\r\n self.isMember = false;\r\n self.clearAndShowSuccess('LEAVING_GROUP_SUCCESS');\r\n modal.hide();\r\n }\r\n\r\n public fullName(item: any): string {\r\n const member = new Member(item);\r\n return member.getFullName();\r\n }\r\n\r\n public async addMemberToGroup() {\r\n const self = this;\r\n self.allMembers = await memberHelper.getMembers(true);\r\n self.notMembers = self.allMembers.filter((member: Person) => {\r\n return !member.inGroup(self.group.groupId);\r\n });\r\n\r\n const modal = self.$refs.addMemberModal;\r\n modal.show();\r\n }\r\n\r\n public async addMember() {\r\n const self = this;\r\n self.showPending('JOINING_GROUP_PENDING');\r\n\r\n const [err] = await to(groupService.addMember(this.newMember, this.group.groupId, teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError('JOINING_GROUP_FAILED', err);\r\n }\r\n\r\n const member = this.notMembers.find((m) => m.personId === this.newMember);\r\n\r\n const profile = member;\r\n\r\n this.members.push(new Member(profile));\r\n\r\n self.clearAndShowSuccess('JOINING_GROUP_SUCCESS');\r\n\r\n const modal = self.$refs.addMemberModal;\r\n modal.hide();\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-members.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-members.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-members.vue?vue&type=template&id=46801d92&\"\nimport script from \"./group-detail-members.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-members.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6 col-lg-5 col-xl-4\"},[_c('h3',{staticClass:\"mb-2\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_RESULT\"}})],1),_c('b-card',[(!_vm.isLoaded)?_c('div',{staticClass:\"d-flex justify-content-center p-4\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('table',{staticClass:\"table table-sm table-borderless\"},[_c('tr',[_c('td',{staticClass:\"pb-4 font-weight-bold\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"PREVIOUS_BUDGET\"}})],1),_c('td',{staticClass:\"pb-4 text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.startBalance)))])]),_c('tr',[_c('td',{staticClass:\"pb-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_INCOME\"}})],1),_c('td',{staticClass:\"pb-4 text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.income)))])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_COMPENSATIONS\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.compensations)))])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_ATTRIBUTIONS\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.attributions)))])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_EXPENSES\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.expenses)))])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_NON_RECURRING_EXPENSES\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.nonRecurringExpenses)))])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_OUTGOING_TRANSFERS\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.transferredAmount)))])]),_c('tr',[_c('td',{attrs:{\"colspan\":\"3\"}},[_c('hr',{staticClass:\"mb-0 mt-0\"})])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TOTAL_COSTS\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.totalCosts)))])]),_c('tr',[_c('td',{staticClass:\"pt-4 font-weight-bold\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"RESULT\"}})],1),_c('td',{staticClass:\"pt-4 text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.result)))])]),_c('tr',[_c('td',{staticClass:\"pt-4 font-weight-bold\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"NEW_BUDGET\"}})],1),_c('td',{staticClass:\"pt-4 text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.currentBalance)))])]),_c('tr',[_c('td',{attrs:{\"colspan\":\"3\"}},[_c('hr')])]),_c('tr',[_c('td',{staticClass:\"pt-4\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_OPEN_INVOICES\"}})],1),_c('td',{staticClass:\"pt-4 text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.openInvoiceAmount)))])]),_c('tr',[_c('td',[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_OPEN_EXPENSES\"}})],1),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.openExpenseAmount)))])]),_c('tr',[_c('td',{staticClass:\"pt-4 font-weight-bold\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_SAFETY_ZONE\"}})],1),_c('td',{staticClass:\"pt-4 text-right\",attrs:{\"colspan\":\"2\"}},[_vm._v(\" \"+_vm._s(_vm._f(\"formatNumber\")(_vm.groupResults.safetyZone))+\" \"),_c('prd-translate-text',{attrs:{\"translate-key\":\"MONTHS\",\"element\":\"span\"}})],1)])])])],1),(_vm.isLoaded && !_vm.isBuitenBeschouwingGroup && !_vm.hideMemberCompensations)?_c('div',{staticClass:\"col-xl-8\"},[_c('h3',{staticClass:\"mt-5 mt-xl-0 mb-2\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"COMPENSATIONS\"}})],1),_c('prd-toolbar',[((_vm.$root.roleHelper.isGroupLead(_vm.group)) || _vm.$root.roleHelper.isSiteAdmin(_vm.group))?_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"action\":_vm.compensateMembers,\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"COMPENSATE_ALL_MEMBERS\"}}):_vm._e()],1),_c('prd-grid-wrapper',{style:({ height: '533px' }),attrs:{\"data-items\":_vm.groupCompensations,\"columns\":_vm.compensationColumns}})],1):_vm._e(),(_vm.isLoaded && !_vm.isBuitenBeschouwingGroup && !_vm.hideMemberCompensations)?_c('div',{staticClass:\"col-xl-12\"},[_c('h3',{staticClass:\"mt-5 mb-2\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"MEMBER_COMPENSATIONS\"}})],1),_c('prd-toolbar',[(_vm.$root.inEditMode)?_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"translate-key\":\"ADD_COMPENSATION\"}}):_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ADD_COMPENSATION'),expression:\"'ADD_COMPENSATION'\"}],staticClass:\"btn btn-sm btn-primary\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed()},on:{\"click\":function($event){return _vm.$refs.newTransferModal.init()}}})],1),_c('prd-grid-wrapper',{key:_vm.transferGridUpdate,attrs:{\"data-items\":_vm.personTranfers,\"row-height\":40,\"columns\":_vm.transferColumns}}),_c('recurring-transfers-grid',{ref:\"recurringTransfers\",staticClass:\"mt-5\",attrs:{\"compensations\":true,\"teamId\":_vm.teamId,\"groupId\":_vm.$route.params.groupId}})],1):_vm._e(),(_vm.isLoaded && !_vm.isBuitenBeschouwingGroup)?_c('div',[_c('transfer-modal',{ref:\"newTransferModal\",attrs:{\"member-compensation\":true,\"title\":_vm.transferTitle,\"group\":_vm.group,\"button-text\":'Compensate member',\"transfer\":_vm.transfer,\"selectedTeamId\":_vm.teamId,\"type\":_vm.transferModalType},on:{\"transfer-completed\":_vm.reloadData}})],1):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport FinanceGroup from '../../../../models/FinanceGroup';\r\nimport {\r\n periodFilterHelper,\r\n loginHelper,\r\n teamHelper,\r\n roleHelper,\r\n groupService,\r\n compensationService,\r\n financeGroupService,\r\n transferService,\r\n} from '@/main';\r\nimport FinanceTotal from '../../../../models/FinanceTotal';\r\nimport Transfer from '../../../../models/Transfer';\r\nimport Vue from 'vue';\r\nimport BaseGroupPage from './BaseGroupPage';\r\nimport { Member } from '../../../../models/Member';\r\nimport { to } from 'await-to-js';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\nimport { TransferType } from '@/models/TransferType';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component({\r\n filters: {\r\n formatNumber(n: any) {\r\n if (!n || typeof n === 'undefined' || n == null) {\r\n return 0;\r\n }\r\n\r\n if (n > -1000 && n < 1000) {\r\n return n.round(2).replace('.', ',');\r\n }\r\n\r\n const parts = n.round(2).split('.');\r\n const chars = [];\r\n let i = 0;\r\n\r\n if (parts.length === 2) {\r\n chars.push(`,${parts[1]}`);\r\n }\r\n\r\n parts[0]\r\n .split('')\r\n .reverse()\r\n .forEach((c) => {\r\n chars.push(c);\r\n i++;\r\n if (i > 0 && i % 3 === 0) {\r\n chars.push(' ');\r\n }\r\n });\r\n\r\n return chars.reverse().join('');\r\n },\r\n },\r\n})\r\nexport default class GroupDetailOverview extends BaseGroupPage {\r\n public compensations: any = null;\r\n public groupFinance: FinanceGroup = new FinanceGroup();\r\n public isLoaded: boolean = false;\r\n\r\n public members: Member[] = null;\r\n public groupCompensations: any = [];\r\n\r\n public transferGridUpdate: number = 0;\r\n public transfer: Transfer = new Transfer();\r\n public transferModalType: TransferType = TransferType.GroupToPerson;\r\n public teamId: number = null;\r\n\r\n public receivingAccounts: FinanceAccount[] = [];\r\n\r\n public compensationColumns: any[] = [\r\n { title: 'Member', field: 'member' },\r\n { title: 'Compensation', field: 'compensation', cell: this.formatCompensationValue },\r\n { title: 'Energy dedication', field: 'energyDedication', cell: this.renderEnergyDedication },\r\n { title: 'Financial compensation', field: 'financialCompensation', cell: this.renderPercentageCompensation },\r\n ];\r\n\r\n public calculatedAmount: number = 0;\r\n public teamAttribution: number = 0;\r\n public groupResults: any = null;\r\n\r\n public editMode: boolean = false;\r\n public editIsLoading: boolean = false;\r\n\r\n get transferTitle() {\r\n return `Compensate member of ${this.group.name}`;\r\n }\r\n\r\n public async mounted() {\r\n await this.loadGroupFinanceSettings();\r\n this.isBuitenBeschouwingGroup = this.groupFinanceSettings && this.groupFinanceSettings.applyMissingAttributionsOnTransfer;\r\n\r\n const financeTotal = new FinanceTotal(this.teamId);\r\n try {\r\n this.groupFinance = await financeTotal.getGroupFinance(this.group, periodModule.selectedPeriod);\r\n this.groupResults = await this.getGroupResults();\r\n } catch (e) {\r\n this.groupFinance = {} as FinanceGroup;\r\n this.clearAndShowError('Could not get group finance', e);\r\n }\r\n\r\n if (this.isBuitenBeschouwingGroup) {\r\n this.$emit('activate-class');\r\n this.isLoaded = true;\r\n return;\r\n }\r\n\r\n this.members = this.group.members.map((member: any) => new Member(member));\r\n const membersEnergyResponse = await groupService.getEnergyDedication(\r\n teamHelper.currentTeamId,\r\n this.group.groupId,\r\n periodModule.selectedPeriod,\r\n );\r\n membersEnergyResponse.data.forEach((energy) => {\r\n const foundMember = this.group.members.find((member) => member.memberId === energy.personId);\r\n if (foundMember) {\r\n foundMember.energyDedication = energy.amount;\r\n }\r\n });\r\n\r\n if (this.groupFinance.compensations) {\r\n await this.mutateGridCompensationData(this.groupFinance.compensations);\r\n }\r\n\r\n this.$emit('activate-class');\r\n\r\n this.teamId = teamHelper.getTeamId();\r\n this.isLoaded = true;\r\n }\r\n\r\n get personTranfers() {\r\n return this.groupFinance.transfers.filter((x) => x.transferType === 'GroupToPerson');\r\n }\r\n\r\n get hideMemberCompensations() {\r\n return !roleHelper.checkAccess(this.groupFinanceSettings.privacyLevel, this.group);\r\n }\r\n\r\n public async reloadData() {\r\n this.isLoaded = false;\r\n\r\n const financeTotal = new FinanceTotal(this.teamId);\r\n try {\r\n this.groupFinance = await financeTotal.getGroupFinance(this.group, periodModule.selectedPeriod);\r\n this.groupResults = await this.getGroupResults();\r\n } catch (e) {\r\n this.groupFinance = {} as FinanceGroup;\r\n this.clearAndShowError('Could not get group finance', e);\r\n }\r\n\r\n if (this.isBuitenBeschouwingGroup) {\r\n this.$emit('activate-class');\r\n this.isLoaded = true;\r\n return;\r\n }\r\n\r\n if (this.groupFinance.compensations) {\r\n await this.mutateGridCompensationData(this.groupFinance.compensations);\r\n }\r\n\r\n this.isLoaded = true;\r\n\r\n if (this.$refs.recurringTransfers) {\r\n await this.$refs.recurringTransfers.refreshData();\r\n }\r\n this.transfer = new Transfer();\r\n }\r\n\r\n public async getGroupResults() {\r\n const [err, response] = await to(financeGroupService.getGroupResults(this.group.groupId, periodModule.selectedPeriod));\r\n if (err) {\r\n console.error(err);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async compensateMembers() {\r\n this.showPending('COMPENSATE_MEMBERS_PENDING');\r\n\r\n const [err] = await to(financeGroupService.compenstateCosts(this.group.groupId, teamHelper.currentTeamId));\r\n if (err) {\r\n return this.clearAndShowError('COMPENSATE_MEMBERS_FAILED', err);\r\n }\r\n\r\n await this.reloadGridCompensationData();\r\n await this.reloadData();\r\n this.clearAndShowSuccess('COMPENSATE_MEMBERS_SUCCCESS');\r\n this.transferGridUpdate++;\r\n }\r\n\r\n public getAccount(accounts, id) {\r\n return accounts.find((account) => {\r\n return account.accountId === id;\r\n });\r\n }\r\n\r\n public renderMemberInitiator(h, _, row) {\r\n let member = row.dataItem.initiatorPerson;\r\n\r\n if (!member) {\r\n member = this.members.find((m: Member) => m.memberId === row.dataItem.initiator);\r\n }\r\n\r\n if (!member) {\r\n member = new Member();\r\n member.firstName = 'Not available';\r\n }\r\n\r\n return this.renderMember(h, member);\r\n }\r\n\r\n public calculateTransferGridHeight() {\r\n if (this.groupFinance.transfers.length < 25) {\r\n return { height: `${39 + this.groupFinance.transfers.length * 47}px` };\r\n }\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n let actions = [];\r\n const userId = loginHelper.getUser().personId;\r\n const initiator = row.dataItem && typeof row.dataItem.initiator !== 'undefined' ? parseInt(row.dataItem.initiator) : 0;\r\n\r\n if (initiator === userId || roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) {\r\n actions = [\r\n { title: 'Edit', function: this.editCompensation, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n { title: 'Delete', function: this.removeCompensation, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n ];\r\n }\r\n\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public renderPercentageCompensation(h, _, row) {\r\n let additionalPercentages = 0;\r\n\r\n const attribition = this.teamAttributions.find((x) => x.targetGroup === this.group.groupId);\r\n if (attribition) {\r\n additionalPercentages += attribition.percentage;\r\n }\r\n\r\n return h('td', [\r\n isNaN(row.dataItem.financialCompensation)\r\n ? row.dataItem.financialCompensation\r\n : // tslint:disable-next-line: restrict-plus-operands\r\n `${(row.dataItem.financialCompensation + additionalPercentages).toFixed(2)}%`,\r\n ]);\r\n }\r\n\r\n public formatCompensationValue(h, _, row) {\r\n const props = { value: row.dataItem.compensation };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public async editCompensation(item) {\r\n Vue.nextTick(async () => {\r\n this.$refs.newTransferModal.editMode = true;\r\n await this.$refs.newTransferModal.initTransfer(item);\r\n });\r\n }\r\n\r\n public async removeCompensation(item) {\r\n await transferService.deleteTransfer(item.transferId);\r\n\r\n const transfer = this.groupFinance.transfers.findIndex((t: Transfer) => {\r\n return t.transferId === item.transferId;\r\n });\r\n\r\n this.groupFinance.transfers.splice(transfer, 1);\r\n this.transferGridUpdate++;\r\n await this.reloadGridCompensationData();\r\n }\r\n\r\n private async mutateGridCompensationData(compensations) {\r\n this.groupCompensations = [];\r\n\r\n this.groupFinance.setCompensations(compensations);\r\n await this.groupFinance.recalculateTotals();\r\n\r\n compensations.forEach((compensation: any) => {\r\n const member = this.group.members.find((m) => m.memberId === compensation.member.personId);\r\n const energyDedication = member ? (member.energyDedication ? member.energyDedication : 0) : 0;\r\n const totalCompensations = parseFloat(compensation.compensation) + parseFloat(compensation.invoiceIncome);\r\n\r\n const financialCompensation = (totalCompensations / (compensation.costs * (energyDedication / 100))) * 100;\r\n this.groupCompensations.push({\r\n member: compensation.member.name,\r\n memberObj: compensation.member,\r\n compensation: totalCompensations,\r\n costs: compensation.costs,\r\n energyDedication,\r\n financialCompensation:\r\n isNaN(totalCompensations) || totalCompensations === 0\r\n ? 'Missing compensations'\r\n : isFinite(financialCompensation)\r\n ? financialCompensation\r\n : 'Costs or energy dedication zero',\r\n });\r\n });\r\n }\r\n\r\n private async reloadGridCompensationData() {\r\n const [errC, responseC] = await to(\r\n compensationService.getCompensations(teamHelper.currentTeam.id, this.group.groupId, periodModule.selectedPeriod),\r\n );\r\n if (errC) {\r\n this.clearAndShowError(errC, errC);\r\n }\r\n await this.mutateGridCompensationData(responseC.data.memberCompensations);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-overview.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-overview.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-overview.vue?vue&type=template&id=419c944a&\"\nimport script from \"./group-detail-overview.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-overview.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('prd-loader',[_c('spinner')],1):_c('div',[_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('b-tabs',{attrs:{\"vertical\":\"\",\"no-nav-style\":\"\",\"nav-wrapper-class\":\"border-right\",\"nav-class\":\"nav-tabs-vertical\",\"content-class\":\"\"}},[(_vm.section == 'directory' && (_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isGroupLead(_vm.group)))?[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"GROUP_CONNECTORS\"},slot:\"title\"}),_c('div',{staticClass:\"py-3 px-3 pt-1\"},[_c('connectors',{attrs:{\"connectors\":_vm.connectors,\"group\":_vm.group}})],1)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"DELETE_GROUP\"},slot:\"title\"}),_c('div',{staticClass:\"py-3 px-3\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"DELETE_GROUP\"}}),_c('prd-translate-text',{staticClass:\"mb-3\",attrs:{\"element\":\"p\",\"translate-key\":\"DELETE_GROUP_INFO\"}}),_c('ul',{staticClass:\"mt-2\"},[_c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_NO_EXPENSES\"}}),(_vm.financialGroupActivity.expensesInvoiceCount === 0)?_c('span',[_c('span',{staticClass:\"k-icon k-i-check text-success\"})]):_c('span',[_c('span',{staticClass:\"k-icon k-i-close text-danger\"})])],1),_c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_NO_INVOICES\"}}),(_vm.financialGroupActivity.incomeInvoicesCount === 0)?_c('span',[_c('span',{staticClass:\"k-icon k-i-check text-success\"})]):_c('span',[_c('span',{staticClass:\"k-icon k-i-close text-danger\"})])],1),_c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_ZERO_BALANCE\"}}),(_vm.financialGroupActivity.savingBalance === 0)?_c('span',[_c('span',{staticClass:\"k-icon k-i-check text-success\"})]):_c('span',[_c('span',{staticClass:\"k-icon k-i-close text-danger\"})])],1),_c('li',[(!_vm.financialGroupActivity.attributionSources || _vm.financialGroupActivity.attributionSources.length === 0)?[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_NO_ATTRIBUTION\"}}),_c('span',{staticClass:\"k-icon k-i-check text-success\"})]:[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_HAS_ATTRIBUTION\"}}),_c('span',{staticClass:\"k-icon k-i-close text-danger\"}),_c('ul',{staticClass:\"mt-2\"},_vm._l((_vm.financialGroupActivity.attributionSources),function(source){return _c('li',{staticClass:\"font-weight-bold\"},[_vm._v(\" \"+_vm._s(source.groupName)+\" (\"+_vm._s(source.teamName)+\") \")])}),0),_c('ul',{staticClass:\"list-unstyled mt-2\"},[_c('li',[_c('prd-translate-button',{staticClass:\"mt-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"DELETE_GROUP_POINTED_TO_ME\"},on:{\"click\":_vm.showRemoveAllAttributionsPointedToMeModal}})],1)])]],2)]),_c('prd-translate-text',{staticClass:\"mb-3\",attrs:{\"element\":\"p\",\"translate-key\":\"DELETE_GROUP_APP_CONDITIONS\"}}),_c('ul',[_c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_PERIODS_CLOSED\"}}),(_vm.$root.periodFilterHelper.areAllPreviousPeriodsClosed())?_c('span',[_c('span',{staticClass:\"k-icon k-i-check text-success\"})]):_c('span',[_c('span',{staticClass:\"k-icon k-i-close text-danger\"})])],1),_c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DELETE_GROUP_CURRENT_PERIOD_OPEN\"}}),(!_vm.$root.periodFilterHelper.isCurrentPeriodClosed())?_c('span',[_c('span',{staticClass:\"k-icon k-i-check text-success\"})]):_c('span',[_c('span',{staticClass:\"k-icon k-i-close text-danger\"})])],1)]),_c('b-form',{staticClass:\"mt-5\"},[_c('prd-translate-button',{attrs:{\"variant\":\"danger\",\"disabled\":!_vm.$root.periodFilterHelper.areAllPreviousPeriodsClosed() ||\n _vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() &&\n _vm.$root.roleHelper.isFinanceEmployee() &&\n _vm.$root.roleHelper.isGroupLead(_vm.group)),\"translate-key\":\"DELETE_WITH_ICON\"},on:{\"click\":_vm.deleteGroup}})],1)],1)],1)]:_vm._e(),(_vm.section == 'finances')?[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"GROUP_ATTRIBUTIONS\"},slot:\"title\"}),(_vm.groupAttributionsLoading || _vm.resourceAttributionsLoading)?_c('div',{staticClass:\"d-flex justify-content-center py-5\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('div',{staticClass:\"py-3 px-3\"},[_c('div',{staticClass:\"mw-600 mb-5\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"GROUP_BASE_TEMPLATE\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"GROUP_BASE_TEMPLATE_DESCRIPTION\"}}),(_vm.derivedFromTemplate)?_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"info\"}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'GROUP_ATTRIBUTIONS_INHERETED', params: { templateName: _vm.getTemplateName() } }),expression:\"{ key: 'GROUP_ATTRIBUTIONS_INHERETED', params: { templateName: getTemplateName() } }\"}]})]):_vm._e(),_c('prd-multiselect',{staticClass:\"mb-3\",attrs:{\"options\":_vm.templates,\"placeholder\":\"Select a template\",\"label\":\"name\",\"allowEmpty\":false,\"disabled\":_vm.isLoading},on:{\"select\":function($event){_vm.templateEdited = true;}},model:{value:(_vm.selectedTemplate),callback:function ($$v) {_vm.selectedTemplate=$$v},expression:\"selectedTemplate\"}}),(_vm.templateEdited)?_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"warning\"}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'GROUP_ATTRIBUTIONS_EXPLANATION_CHANGE' }),expression:\"{ key: 'GROUP_ATTRIBUTIONS_EXPLANATION_CHANGE' }\"}]})]):_vm._e(),(_vm.templateEdited)?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"GROUP_BASE_TEMPLATE_UPDATE\"},on:{\"click\":_vm.updateTemplate}}):_vm._e()],1),(!_vm.derivedFromTemplate)?[_c('hr',{staticClass:\"mt-5\"}),_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"GROUP_ATTRIBUTIONS\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"GROUP_ATTRIBUTIONS_CHANGE_MESSAGE\"}}),_c('form',{staticClass:\"d-block mw-600\"},[_vm._l((_vm.resourceAttributions),function(attribution){return _c('div',{key:attribution.id,staticClass:\"form-group\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(attribution.targetTeamModel),expression:\"attribution.targetTeamModel\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(attribution, \"targetTeamModel\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.teamChange(attribution)}]}},[_c('option',{attrs:{\"value\":\"\"}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_TEAM\"}})],1),_vm._l((_vm.teams),function(team){return _c('option',{key:team.name,domProps:{\"value\":team}},[_vm._v(\" \"+_vm._s(team.name)+\" \")])})],2)]),_c('div',{staticClass:\"col-md-4\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(attribution.targetGroupModel),expression:\"attribution.targetGroupModel\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(attribution, \"targetGroupModel\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"\"}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_GROUP\"}})],1),_vm._l((attribution.groups),function(group){return _c('option',{key:group.name,domProps:{\"value\":group}},[_vm._v(\" \"+_vm._s(group.name)+\" \")])})],2)]),_c('div',{staticClass:\"col-md-3\"},[_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text bg-transparent\"},[_vm._v(\"%\")])]),_c('prd-numeric-input',{staticClass:\"form-control text-right border-left-0\",attrs:{\"output-dec-seperator\":\",\"},model:{value:(attribution.percentage),callback:function ($$v) {_vm.$set(attribution, \"percentage\", $$v)},expression:\"attribution.percentage\"}})],1)]),_c('div',{staticClass:\"col-md-1\"},[(\n _vm.$root.roleHelper.isSiteAdmin() ||\n _vm.$root.roleHelper.isFinanceEmployee() ||\n _vm.$root.roleHelper.isGroupLead(_vm.group)\n )?_c('button',{staticClass:\"btn btn-link\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteServiceAttribution(attribution)}}},[_c('i',{staticClass:\"icon-trash-2\"})]):_vm._e()])])])}),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group))?_c('div',{staticClass:\"form-row\"},[(!_vm.copingLoading)?[_c('prd-translate-button',{staticClass:\"float-left\",attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"ADD_ATTRIBUTION\"},on:{\"click\":function($event){return _vm.addServiceAttribution()}}}),_c('prd-translate-text',{staticClass:\"float-left my-2 mx-3\",attrs:{\"translate-key\":\"OR\"}}),_c('div',{staticClass:\"input-group col-md-6 float-left\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.importServiceAttributionGroupId),expression:\"importServiceAttributionGroupId\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.importServiceAttributionGroupId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.groups),function(group){return _c('option',{key:group.name,domProps:{\"value\":group.groupId}},[_vm._v(\" \"+_vm._s(group.name)+\" \")])}),0),_c('prd-translate-button',{staticClass:\"input-group-append\",attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"disabled\":!_vm.importServiceAttributionGroupId,\"translate-key\":\"COPY_FROM\"},on:{\"click\":_vm.importServiceAttribution}})],1)]:_c('spinner')],2):_vm._e()],2),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"REMITTANCE_PERCENTAGE\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"REMITTANCE_PERCENTAGE_TEXT\"}}),_c('form',{staticClass:\"d-block mw-600\"},[_vm._l((_vm.groupAttributions),function(remmitance){return _c('div',{key:remmitance.id,staticClass:\"form-group\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-5\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(remmitance.name),expression:\"remmitance.name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(remmitance.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(remmitance, \"name\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-3\"},[_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text bg-transparent\"},[_vm._v(\"%\")])]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(remmitance.percentage),expression:\"remmitance.percentage\"}],staticClass:\"form-control text-right border-left-0\",attrs:{\"type\":\"text\"},domProps:{\"value\":(remmitance.percentage)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(remmitance, \"percentage\", $event.target.value)}}})])]),_c('div',{staticClass:\"col-md-3\"},[_c('button',{staticClass:\"btn btn-link\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteGroupAttribution(remmitance)}}},[_c('i',{staticClass:\"icon-trash-2\"})])])])])}),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group))?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"ADD_ATTRIBUTION\"},on:{\"click\":function($event){return _vm.addGroupAttribution()}}}):_vm._e()],2),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{staticClass:\"btn btn-sm btn-primary\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() &&\n !_vm.$root.roleHelper.isFinanceEmployee() &&\n !_vm.$root.roleHelper.isGroupLead(_vm.group)),\"translate-key\":\"SAVE_SETTINGS\"},on:{\"click\":function($event){return _vm.openSaveAttributionsModal()}}})],1)]:_vm._e()],2)],1),((_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isGroupLead(_vm.group)))?_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"GROUP_ALIASES\"},slot:\"title\"}),(_vm.group)?_c('div',{staticClass:\"py-3 px-3 col-4\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"GROUP_ALIASES\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"GROUP_ALIASES_TEXT\",\"params\":{ name: _vm.group.name }}}),_c('form',{staticClass:\"d-block mw-600\"},[_vm._l((_vm.aliases),function(alias,index){return _c('div',{key:'alias_' + index,staticClass:\"form-group\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10\"},[_c('b-form-input',{model:{value:(alias.text),callback:function ($$v) {_vm.$set(alias, \"text\", $$v)},expression:\"alias.text\"}})],1),_c('div',{staticClass:\"col-md-2\"},[(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('button',{staticClass:\"btn btn-link\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteGroupAlias(alias)}}},[_c('i',{staticClass:\"icon-trash-2\"})]):_vm._e()])])])}),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"ADD_ALIAS\"},on:{\"click\":function($event){return _vm.addGroupAlias()}}}):_vm._e()],2),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"action\":_vm.saveAliases,\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() &&\n !_vm.$root.roleHelper.isFinanceEmployee() &&\n !_vm.$root.roleHelper.isGroupLead(_vm.group)),\"translate-key\":\"SAVE_ALIASES\"}})],1)],1):_vm._e()],1):_vm._e(),(!_vm.derivedFromTemplate)?[((_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isGroupLead(_vm.group)))?_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"COLLABORATION_MODE\"},slot:\"title\"}),(_vm.group)?_c('div',{staticClass:\"py-3 px-3 col-4\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"COLLABORATION_MODE\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"COLLABORATION_MODE_TEXT\",\"params\":{ name: _vm.group.name }}}),_c('form',{staticClass:\"d-block mw-600\"},[_c('b-form-group',[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"COLLABORATION_MODE_DESCRIPTION\"},slot:\"description\"}),_c('b-form-select',{attrs:{\"options\":[{ text: 'Guild', value: 'Guild' }, { text: 'Expert', value: 'Expert' }]},model:{value:(_vm.group.collaborationMode),callback:function ($$v) {_vm.$set(_vm.group, \"collaborationMode\", $$v)},expression:\"group.collaborationMode\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_MODE'),expression:\"'SELECT_MODE'\"}],domProps:{\"value\":'Unknown'}})])],2)],1)],1),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"action\":_vm.saveCollaborationMode,\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() &&\n !_vm.$root.roleHelper.isFinanceEmployee() &&\n !_vm.$root.roleHelper.isGroupLead(_vm.group)),\"translate-key\":\"SAVE_COLLABORATION_MODE\"}})],1)],1):_vm._e()],1):_vm._e(),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"FINANCE_SETTINGS\"},slot:\"title\"}),(_vm.groupAttributionsLoading || _vm.resourceAttributionsLoading)?_c('div',{staticClass:\"d-flex justify-content-center py-5\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('div',{staticClass:\"py-3 px-3 mw-600\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"FINANCE_SETTINGS\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"FINANCE_SETTINGS_TEXT\"}}),_c('hr'),_c('form',{staticClass:\"d-block mw-600 mt-5\"},[_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"PERSONAL_GROUP_FINANCE\"}}),_c('prd-translate-text',{staticClass:\"text-muted font-italic\",attrs:{\"element\":\"p\",\"translate-key\":\"PERSONAL_GROUP_FINANCE_TEXT\",\"params\":{ level: _vm.teamFinanceSettings.defaultGroupPrivacyLevel }}}),_c('b-form-group',{attrs:{\"label-for\":\"defaultGroupPrivacyLevel\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"ACCESSABLE_FROM_AND_UP\"},slot:\"description\"}),_c('b-form-select',{attrs:{\"id\":\"defaultGroupPrivacyLevel\",\"options\":_vm.roleOptions},model:{value:(_vm.groupFinanceSettings.privacyLevel),callback:function ($$v) {_vm.$set(_vm.groupFinanceSettings, \"privacyLevel\", $$v)},expression:\"groupFinanceSettings.privacyLevel\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_ROLE'),expression:\"'SELECT_ROLE'\"}],domProps:{\"value\":'Unknown'}})])],2)],1)],1),_c('hr'),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"APPLIED_MISSING_ATTRIBUTIONS\"}}),_c('prd-translate-text',{staticClass:\"text-muted mw-600\",attrs:{\"element\":\"p\",\"translate-key\":\"APPLIED_MISSING_ATTRIBUTIONS_TEXT\"}}),_c('form',{staticClass:\"d-block mw-600\"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"serviceAttributions\"},model:{value:(_vm.groupFinanceSettings.applyMissingAttributionsOnTransfer),callback:function ($$v) {_vm.$set(_vm.groupFinanceSettings, \"applyMissingAttributionsOnTransfer\", $$v)},expression:\"groupFinanceSettings.applyMissingAttributionsOnTransfer\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"APPLIED_MISSING_ATTRIBUTIONS\"}})],1)],1)],1),_c('hr'),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"INCOME_DISTRIBUTION\"}}),_c('prd-translate-text',{staticClass:\"text-muted mw-600\",attrs:{\"element\":\"p\",\"translate-key\":\"INCOME_DISTRIBUTION_TEXT\"}}),_c('form',{staticClass:\"d-block mw-600\"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"distributeIncome\"},model:{value:(_vm.groupFinanceSettings.autoDistributeIncomeToSavings),callback:function ($$v) {_vm.$set(_vm.groupFinanceSettings, \"autoDistributeIncomeToSavings\", $$v)},expression:\"groupFinanceSettings.autoDistributeIncomeToSavings\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DISTRIBUTE_INCOME_AUTO\"}})],1)],1)],1),_c('hr'),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"EXPENSES_DISTRIBUTION\"}}),_c('prd-translate-text',{staticClass:\"text-muted mw-600\",attrs:{\"element\":\"p\",\"translate-key\":\"EXPENSES_DISTRIBUTION_TEXT\"}}),_c('form',{staticClass:\"d-block mw-600\"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"distributeExpenses\"},model:{value:(_vm.groupFinanceSettings.autoDistributeExpensesToSavings),callback:function ($$v) {_vm.$set(_vm.groupFinanceSettings, \"autoDistributeExpensesToSavings\", $$v)},expression:\"groupFinanceSettings.autoDistributeExpensesToSavings\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DISTRIBUTE_EXPENSE_AUTO\"}})],1)],1)],1),_c('prd-translate-text',{staticClass:\"mt-4\",attrs:{\"element\":\"h6\",\"translate-key\":\"COMPENSATE_GROUP_MEMBERS\"}}),_c('prd-translate-text',{staticClass:\"text-muted mw-600\",attrs:{\"element\":\"p\",\"translate-key\":\"COMPENSATE_GROUP_MEMBERS_TEXT\"}}),_c('form',{staticClass:\"d-block mw-600\"},[_c('b-form-group',[_c('b-form-checkbox',{attrs:{\"id\":\"compensateGroupMembers\"},model:{value:(_vm.groupFinanceSettings.autoCompensateGroupMembers),callback:function ($$v) {_vm.$set(_vm.groupFinanceSettings, \"autoCompensateGroupMembers\", $$v)},expression:\"groupFinanceSettings.autoCompensateGroupMembers\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"COMPENSATE_MEMBERS_AUTO\"}})],1)],1)],1),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{staticClass:\"btn btn-sm btn-primary\",attrs:{\"variant\":\"primary\",\"action\":_vm.saveFinanceSettings,\"disabled\":!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee() && !_vm.$root.roleHelper.isGroupLead(_vm.group),\"translate-key\":\"SAVE_SETTINGS\"}})],1)],1)],1)]:_vm._e()]:_vm._e()],2)],1),(_vm.group)?_c('save-attributions-modal',{ref:\"saveAttributionsModal\",attrs:{\"resourceAttributions\":_vm.resourceAttributions,\"groupAttributions\":_vm.groupAttributions,\"group\":_vm.group,\"groupFinanceSettings\":_vm.groupFinanceSettings},on:{\"settings-saved\":_vm.updateTemplateOfGroup}}):_vm._e(),_c('b-modal',{ref:\"deleteConfirm\",attrs:{\"id\":\"deleteConfirm\",\"title\":\"Confirm deletion\",\"size\":\"sm\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CONFIRM_GROUP_DELETE\"}}),_c('br'),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('prd-translate-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"success\",\"translate-key\":\"YES\"},on:{\"click\":_vm.confirmDelete}}),_c('prd-translate-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"danger\",\"translate-key\":\"NO\"},on:{\"click\":_vm.cancelDelete}})],1)],1),_c('b-modal',{ref:\"templateEditWarning\"},[_c('div',{attrs:{\"slot\":\"modal-title\"},slot:\"modal-title\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"COUPLE_LOOSE_TEMPLATE\",\"translate-group\":\"MODALS\"}})],1),_c('prd-translate-text',{attrs:{\"translate-key\":\"COUPLE_LOOSE_TEMPLATE_EXPLANATION\",\"translate-group\":\"MODALS\"}}),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('prd-translate-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"CANCEL\"},on:{\"click\":function($event){return _vm.$refs.templateEditWarning.hide()}}}),_c('prd-translate-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"CONTINUE_SAVING_ATTRIBUTIONS\",\"translate-group\":\"MODALS\"},on:{\"click\":function($event){_vm.$refs.saveAttributionsModal.show();_vm.$refs.templateEditWarning.hide();}}})],1)],1),_c('b-modal',{ref:\"confirmRemoveAttributions\",attrs:{\"id\":\"confirmRemoveAttributions\",\"size\":\"sm\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"modal-title\",\"translate-key\":\"CONFIRM_GROUP_ATTRIBUTIONS_DELETE_TITLE\",\"translate-group\":\"MODALS\"},slot:\"modal-title\"}),_c('prd-translate-text',{attrs:{\"translate-key\":\"CONFIRM_GROUP_ATTRIBUTIONS_DELETE\",\"translate-group\":\"MODALS\"}}),_c('br'),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('prd-translate-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"danger\",\"translate-key\":\"NO\"},on:{\"click\":_vm.cancelAttributionsDelete}}),_c('prd-translate-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"success\",\"translate-key\":\"YES\"},on:{\"click\":_vm.confirmDeleteAttributions}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default class FinancialGroupActivity {\r\n public hasActivity: boolean = false;\r\n public incomeInvoicesCount: number = 0;\r\n public expensesInvoiceCount: number = 0;\r\n public savingBalance: number = 0;\r\n public isAttributionGroup: boolean = false;\r\n\r\n /**\r\n *\r\n */\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n","import Component from 'vue-class-component';\r\nimport Attribution from '../../../../models/Attribution';\r\nimport {\r\n attributionService,\r\n teamHelper,\r\n groupService,\r\n teamService,\r\n financeService,\r\n ecosystemHelper,\r\n templateService,\r\n groupHelper,\r\n financeGroupService,\r\n} from '@/main';\r\nimport { AttributionType } from '../../../../models/AttributionType';\r\nimport BaseGroupPage from './BaseGroupPage';\r\nimport to from 'await-to-js';\r\nimport Team from '@/models/Team';\r\nimport GroupAlias from '@/models/GroupAlias';\r\nimport { AxiosResponse } from 'axios';\r\nimport FinancialGroupActivity from '@/models/FinancialGroupActivity';\r\nimport TeamSettings from '@/models/TeamSettings';\r\nimport { PrivacyLevel } from '@/models/PrivacyLevel';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class GroupDetailSettings extends BaseGroupPage {\r\n public teams: Team[] = [];\r\n\r\n public groupAttributionsLoading: boolean = true;\r\n public resourceAttributionsLoading: boolean = true;\r\n\r\n public groupAttributions: Attribution[] = [];\r\n public resourceAttributions: Attribution[] = [];\r\n\r\n public teamFinanceSettings: TeamSettings = null;\r\n\r\n public importServiceAttributionGroupId?: number = null;\r\n public copingLoading: boolean = false;\r\n public aliases: any[] = [];\r\n\r\n public groupType: any = 'Experts';\r\n public templates: any[] = [];\r\n public selectedTemplate: any = null;\r\n public templateEdited: boolean = false;\r\n\r\n public financialGroupActivity: FinancialGroupActivity = new FinancialGroupActivity();\r\n\r\n public groupFinanceSettings: any = {\r\n applyMissingAttributionsOnTransfer: false,\r\n autoDistributeIncomeToSavings: false,\r\n autoDistributeExpensesToSavings: false,\r\n autoCompensateGroupMembers: false,\r\n privacyLevel: PrivacyLevel.Unknown,\r\n };\r\n\r\n public roleOptions: any[] = [\r\n { text: 'Site Admin', value: 'SiteAdmin' },\r\n { text: 'Finance Employee', value: 'FinanceEmployee' },\r\n { text: 'Group Lead', value: 'GroupLead' },\r\n { text: 'Member', value: 'Member' },\r\n ];\r\n\r\n public get derivedFromTemplate() {\r\n return this.group.baseTemplate && this.group.baseTemplate > 0;\r\n }\r\n\r\n public async created() {\r\n const self = this;\r\n this.section = this.$route.meta.section;\r\n\r\n await this.initSettingsGroup();\r\n\r\n if (this.section === 'directory') {\r\n if (this.group.isConnectorMember(this.connectors.find((x) => x.connectorId === 1))) {\r\n this.financialGroupActivity = await this.checkValidDelete();\r\n }\r\n }\r\n\r\n self.teams = await teamService.getTeams();\r\n\r\n const groupAttributionResponse = await attributionService.getAttributions(\r\n AttributionType.GroupRemittance,\r\n teamHelper.currentTeam.id,\r\n periodModule.selectedPeriod,\r\n this.group.groupId,\r\n );\r\n self.groupAttributions = groupAttributionResponse.data;\r\n self.groupAttributionsLoading = false;\r\n\r\n const resourceAttributionsResponse = await attributionService.getAttributions(\r\n AttributionType.GroupAttribution,\r\n teamHelper.currentTeam.id,\r\n periodModule.selectedPeriod,\r\n this.group.groupId,\r\n );\r\n\r\n const attrs = resourceAttributionsResponse.data.map((item) => {\r\n const attr = new Attribution(0);\r\n Object.assign(attr, item);\r\n\r\n attr.targetTeamModel = self.teams.find((team) => {\r\n if (item.targetTeam) {\r\n return team.teamId === item.targetTeam;\r\n }\r\n\r\n return team.teamId === teamHelper.getTeamId();\r\n });\r\n\r\n return attr;\r\n });\r\n\r\n attrs.forEach(async (attribution) => {\r\n attribution.groups = await financeGroupService.getGroups(attribution.targetTeamModel.teamId);\r\n\r\n attribution.targetGroupModel = attribution.groups.find((group) => {\r\n return group.groupId === attribution.targetGroup;\r\n });\r\n });\r\n\r\n self.resourceAttributions = attrs;\r\n self.resourceAttributionsLoading = false;\r\n\r\n await this.loadGroupFinanceSettings();\r\n await this.loadTeamFinanceSettings();\r\n await this.loadTemplates();\r\n\r\n if (this.group.baseTemplate) {\r\n this.selectedTemplate = this.templates.find((x) => x.financeGroupTemplateId === this.group.baseTemplate);\r\n }\r\n\r\n this.group.aliases = await this.getGroupAliases(this.group.groupId);\r\n if (!this.group.aliases) {\r\n this.group.aliases = new GroupAlias({ teamKey: teamHelper.currentTeam.key, groupKey: this.group.groupKey });\r\n }\r\n this.aliases = this.getGroupAliasesFromGroup();\r\n\r\n this.groups = this.teams.find((x) => x.teamId === teamHelper.getTeamId()).groups;\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async addGroupAttribution() {\r\n this.groupAttributions.push(new Attribution(0));\r\n }\r\n\r\n public async loadTemplates() {\r\n this.templates = await templateService.getTemplates(teamHelper.currentTeam.id);\r\n }\r\n\r\n public getTemplateName() {\r\n const template = this.templates.find((x) => x.financeGroupTemplateId === this.group.baseTemplate);\r\n return template ? template.name : 'n/a';\r\n }\r\n\r\n public getGroupAliasesFromGroup() {\r\n if (!this.group.aliases) {\r\n return [];\r\n }\r\n\r\n return this.group.aliases.aliases.map((alias) => {\r\n return { text: alias, teamKey: this.group.aliases.teamKey, groupKey: this.group.aliases.groupKey };\r\n });\r\n }\r\n\r\n public async getGroupAliases(groupId: number) {\r\n const [err, response] = await to>(financeService.getGroupAliases(groupId));\r\n if (err) {\r\n this.clearAndShowError('Failed to update group', null);\r\n return new GroupAlias();\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public deleteGroupAlias(alias) {\r\n this.aliases.splice(this.aliases.indexOf(alias), 1);\r\n }\r\n\r\n public addGroupAlias() {\r\n this.aliases.push({ text: '', teamKey: this.group.aliases.teamKey, groupKey: this.group.aliases.groupKey });\r\n }\r\n\r\n public async saveAliases() {\r\n this.showPending('SAVE_ALIASES_PENDING');\r\n const aliases = this.group.aliases;\r\n aliases.aliases = this.aliases.map((x) => x.text);\r\n const [errAlias] = await to(financeService.upsertGroupAliases(this.group.groupId, aliases));\r\n if (errAlias) {\r\n return this.clearAndShowError('SAVE_ALIASES_FAILED', null);\r\n }\r\n\r\n this.clearAndShowSuccess('SAVE_ALIASES_SUCCESS');\r\n }\r\n\r\n public async addServiceAttribution() {\r\n const attribution = new Attribution(0);\r\n attribution.targetTeamModel = this.teams.find((team) => {\r\n return team.teamId === teamHelper.getTeamId();\r\n });\r\n attribution.groups = await financeGroupService.getGroups(attribution.targetTeamModel.teamId);\r\n\r\n this.resourceAttributions.push(attribution);\r\n }\r\n\r\n public deleteGroupAttribution(item: Attribution) {\r\n this.groupAttributions.splice(this.groupAttributions.indexOf(item), 1);\r\n }\r\n\r\n public deleteServiceAttribution(item: Attribution) {\r\n this.resourceAttributions.splice(this.resourceAttributions.indexOf(item), 1);\r\n }\r\n\r\n public async teamChange(attribution: Attribution) {\r\n attribution.targetGroup = null;\r\n attribution.groups = await financeGroupService.getGroups(attribution.targetTeamModel.teamId);\r\n }\r\n\r\n public async getTeamGroups(team: Team) {\r\n const [err, response] = await to(groupService.getGroups(team.teamId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse(`Failed to load groups for team ${team.teamKey}`, null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async importServiceAttribution() {\r\n const self = this;\r\n\r\n this.copingLoading = true;\r\n const currentTeamId = teamHelper.getTeamId(teamHelper.currentTeamId);\r\n\r\n await attributionService\r\n .getAttributions(AttributionType.GroupAttribution, currentTeamId, periodModule.selectedPeriod, this.importServiceAttributionGroupId)\r\n .then((result) => {\r\n result.data.forEach(async (attribution: Attribution) => {\r\n attribution.attributionId = undefined;\r\n attribution.group = self.group.groupId;\r\n const foundTeam = self.teams.find((team) => team.teamId === attribution.targetTeam);\r\n attribution.targetTeamModel = foundTeam;\r\n const groups = (await teamService.getGroups(foundTeam.teamId, periodModule.selectedPeriod)).data;\r\n attribution.targetGroupModel = groups.find((group) => group.groupId === attribution.targetGroup);\r\n attribution.groups = groups;\r\n\r\n self.resourceAttributions.push(attribution);\r\n });\r\n });\r\n\r\n this.copingLoading = false;\r\n }\r\n\r\n public async saveCollaborationMode() {\r\n this.showPending('SAVE_COLLABORATION_PENDING');\r\n const [errAlias] = await to(financeService.saveCollaborationMode(this.group.groupId, this.group.collaborationMode));\r\n if (errAlias) {\r\n return this.clearAndShowError('SAVE_COLLABORATION_FAILED', null);\r\n }\r\n\r\n this.clearAndShowSuccess('SAVE_COLLABORATION_SUCCESS');\r\n }\r\n\r\n public async openSaveAttributionsModal() {\r\n let invalid = false;\r\n this.resourceAttributions.forEach((attr) => {\r\n if (\r\n typeof attr.targetGroupModel === 'undefined' ||\r\n attr.targetGroupModel === null ||\r\n !attr.targetGroupModel ||\r\n typeof attr.targetTeamModel === 'undefined' ||\r\n !attr.targetTeamModel ||\r\n attr.targetTeamModel === null ||\r\n !attr.percentage ||\r\n attr.percentage < 0 ||\r\n attr.percentage > 100\r\n ) {\r\n invalid = true;\r\n }\r\n });\r\n\r\n this.groupAttributions.forEach((attr) => {\r\n if (!attr.name || !attr.percentage || attr.percentage < 0 || attr.percentage > 100) {\r\n invalid = true;\r\n }\r\n });\r\n\r\n if (invalid) {\r\n return this.clearAndShowWarning('Current state of attributions not valid, please fill in all fields');\r\n }\r\n\r\n if (this.group.baseTemplate) {\r\n this.$refs.templateEditWarning.show();\r\n } else {\r\n this.$refs.saveAttributionsModal.show();\r\n }\r\n }\r\n\r\n public async checkValidDelete() {\r\n const [err, response] = await to>(\r\n financeService.getGroupFinancialActiviy(teamHelper.getTeamId(), this.group.groupId, periodModule.selectedPeriod),\r\n );\r\n if (err) {\r\n this.clearAndShowError('Failed to check financial activity for this group.', err);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async saveFinanceSettings() {\r\n this.showPending('SAVE_FINANCE_SETTINGS_PENDING');\r\n const [err] = await to(\r\n attributionService.saveAttributionSetting(\r\n this.group.groupId,\r\n this.groupFinanceSettings.applyMissingAttributionsOnTransfer,\r\n this.groupFinanceSettings.autoDistributeIncomeToSavings,\r\n this.groupFinanceSettings.autoDistributeExpensesToSavings,\r\n this.groupFinanceSettings.autoCompensateGroupMembers,\r\n this.groupFinanceSettings.privacyLevel,\r\n ),\r\n );\r\n\r\n if (err) {\r\n return this.clearAndShowError('SAVE_FINANCE_SETTINGS_FAILED', err);\r\n }\r\n\r\n this.clearAndShowSuccess('SAVE_FINANCE_SETTINGS_SUCCESS');\r\n }\r\n\r\n public async deleteGroup() {\r\n const result = await this.checkValidDelete();\r\n if (!result.hasActivity) {\r\n this.$refs.deleteConfirm.show();\r\n } else {\r\n let errorMessage = `Conditions to delete this group aren't met.

Failed on:`;\r\n\r\n if (result.isAttributionGroup) {\r\n errorMessage += `
- Group is used as an attribution group`;\r\n }\r\n if (result.expensesInvoiceCount) {\r\n errorMessage += `
- Group has expenses`;\r\n }\r\n if (result.incomeInvoicesCount) {\r\n errorMessage += `
- Group has invoices`;\r\n }\r\n if (result.savingBalance) {\r\n errorMessage += `
- Group balance isn't zero`;\r\n }\r\n\r\n this.clearAndShowError(errorMessage, null);\r\n }\r\n }\r\n\r\n public async updateTemplate(showMessages: boolean = true) {\r\n if (showMessages) {\r\n this.showPending('SAVE_GROUP_PENDING');\r\n }\r\n this.group.baseTemplate = this.selectedTemplate.financeGroupTemplateId;\r\n\r\n const group = await groupHelper.createOrUpdateGroup(this.group);\r\n\r\n if ((!group || group.groupId === 0) && showMessages) {\r\n return this.clearAndShowError('SAVE_GROUP_FAILED', null);\r\n }\r\n\r\n this.templateEdited = false;\r\n if (showMessages) {\r\n this.clearAndShowSuccess('SAVE_GROUP_SUCCESS');\r\n }\r\n }\r\n\r\n public async updateTemplateOfGroup() {\r\n if (this.group.baseTemplate) {\r\n await this.updateTemplate(false);\r\n }\r\n }\r\n\r\n public async confirmDelete() {\r\n const self = this;\r\n this.showPending('DELETE_GROUP_PENDING');\r\n\r\n const [err] = await to(groupService.deleteGroup(this.group.groupId, teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError('DELETE_GROUP_FAILED', err);\r\n }\r\n\r\n self.$refs.deleteConfirm.hide();\r\n\r\n this.clearAndShowSuccess('DELETE_GROUP_SUCCESS');\r\n return this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'groups',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n public showRemoveAllAttributionsPointedToMeModal() {\r\n this.$refs.confirmRemoveAttributions.show();\r\n }\r\n\r\n public cancelAttributionsDelete() {\r\n this.$refs.confirmRemoveAttributions.hide();\r\n }\r\n\r\n public async confirmDeleteAttributions() {\r\n const success = await attributionService.removeAttributionSources(teamHelper.currentTeamId, this.group.groupId);\r\n if (success) {\r\n this.financialGroupActivity = await this.checkValidDelete();\r\n this.$refs.confirmRemoveAttributions.hide();\r\n }\r\n }\r\n\r\n public cancelDelete() {\r\n this.$refs.deleteConfirm.hide();\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-settings.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-settings.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-settings.vue?vue&type=template&id=4101e49a&\"\nimport script from \"./group-detail-settings.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-settings.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[(_vm.incomingTransferRequests.length > 0)?[_c('prd-translate-text',{staticClass:\"mb-0\",attrs:{\"translate-key\":\"INCOMING\",\"element\":\"h3\"}}),_c('p',[_c('prd-translate-text',{attrs:{\"translate-key\":\"REQUEST_FROM_OTHER_GROUPS\",\"element\":\"span\"}}),_c('i',{domProps:{\"innerHTML\":_vm._s(_vm.getActionLabel)}})],1),_c('prd-toolbar',{staticClass:\"justify-content-start\"},[_c('div',{staticClass:\"d-inline\"},[_c('b-form-select',{attrs:{\"size\":\"sm\",\"options\":[{ text: 'New', value: 'New' }, { text: 'Fulfilled', value: 'Fulfilled' }, { text: 'Rejected', value: 'Rejected' }]},on:{\"change\":_vm.statusChanged},model:{value:(_vm.selectedStatus),callback:function ($$v) {_vm.selectedStatus=$$v},expression:\"selectedStatus\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SHOW_ALL'),expression:\"'SHOW_ALL'\"}],domProps:{\"value\":null}})])],2)],1)]),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.incomingTransferRequests,\"columns\":_vm.transferRequestColumns,\"auto-height\":\"\"}})]:_vm._e(),(!_vm.isBuitenBeschouwingGroup)?[_c('prd-translate-text',{staticClass:\"mb-0 mt-5\",attrs:{\"translate-key\":\"OUTGOING\",\"element\":\"h3\"}}),_c('p',[_c('prd-translate-text',{attrs:{\"translate-key\":\"REQUEST_TO_OTHER_GROUPS\",\"element\":\"span\"}}),_c('i',{domProps:{\"innerHTML\":_vm._s(_vm.getActionOutgoingLabel)}})],1),_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"d-inline\"},[_c('b-form-select',{attrs:{\"size\":\"sm\",\"options\":[{ text: 'New', value: 'New' }, { text: 'Fulfilled', value: 'Fulfilled' }, { text: 'Rejected', value: 'Rejected' }]},on:{\"change\":_vm.statusChanged},model:{value:(_vm.selectedStatus),callback:function ($$v) {_vm.selectedStatus=$$v},expression:\"selectedStatus\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SHOW_ALL'),expression:\"'SHOW_ALL'\"}],domProps:{\"value\":null}})])],2)],1),_c('div',{staticClass:\"d-inline\"},[_c('prd-translate-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isGroupLead || _vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee()),expression:\"isGroupLead || $root.roleHelper.isSiteAdmin() || $root.roleHelper.isFinanceEmployee()\"}],staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"SEND_TRANSFER_REQUEST\"},on:{\"click\":function($event){return _vm.openTransferRequestModal(true)}}})],1)]),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.outgoingTransferRequests,\"columns\":_vm.transferRequestColumns,\"auto-height\":\"\"},on:{\"rowclick\":_vm.openTransferRequest}})]:_vm._e(),_c('h3',{staticClass:\"mt-5\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TRANSFERS\"}})],1),_c('prd-toolbar',[_c('prd-translate-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isGroupLead || _vm.$root.roleHelper.isSiteAdmin()),expression:\"isGroupLead || $root.roleHelper.isSiteAdmin()\"}],staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed(),\"translate-key\":\"MAKE_TRANSFER\"},on:{\"click\":_vm.openTransferModal}})],1),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.transfers,\"columns\":_vm.transferColumns,\"auto-height\":\"\"},on:{\"rowclick\":_vm.openTransfer}}),_c('recurring-transfers-grid',{staticClass:\"mt-5\",attrs:{\"teamId\":_vm.$route.params.teamId,\"groupId\":_vm.$route.params.groupId}}),(!_vm.isLoading)?_c('transfer-modal',{ref:\"newTransferModal\",attrs:{\"title\":_vm.transferTitle,\"group\":_vm.group,\"button-text\":'Finalize transfer',\"transfer\":_vm.transfer,\"selectedTeamId\":_vm.teamId,\"type\":_vm.transferModalType,\"readonly\":_vm.transferReadOnly},on:{\"transfer-completed\":_vm.reloadData}}):_vm._e(),(!_vm.isLoading)?_c('transfer-request-modal',{ref:\"transferRequestModal\",attrs:{\"title\":'Send new transfer request',\"group\":_vm.group,\"readonly\":_vm.transferReadOnly,\"transferRequest\":_vm.transferRequest},on:{\"transfer-request-status-changed\":_vm.statusChangedEvent,\"reload-transfer-requests\":_vm.reloadTransfers}}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Transfer from '../Transfer';\r\n\r\nexport default class TransferRequest {\r\n public transferRequestId: number;\r\n public senderGroup: number;\r\n public receiverGroup: number;\r\n\r\n public direction: string;\r\n public status: string;\r\n public initiator: number;\r\n public dateCreated: string;\r\n\r\n public transfer: Transfer = new Transfer();\r\n public recipients: any[];\r\n\r\n}\r\n","import BaseGroupPage from './BaseGroupPage';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { roleHelper, transferService, periodFilterHelper, loginHelper, teamHelper, teamService } from '@/main';\r\nimport Transfer from '@/models/Transfer';\r\nimport TransferRequest from '@/models/Finance/TransferRequest';\r\nimport Vue from 'vue';\r\nimport moment from 'moment';\r\nimport to from 'await-to-js';\r\nimport { Person } from '@/models/Person';\r\nimport { TransferType } from '@/models/TransferType';\r\nimport { Member } from '@/models/Member';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { profileModule } from '@/store/modules/profile';\r\n\r\n@Component\r\nexport default class GroupDetailTransfers extends BaseGroupPage {\r\n public transferRequests: TransferRequest[] = [];\r\n public allTransferRequests: TransferRequest[] = [];\r\n public allIncomingTransferRequests: TransferRequest[] = [];\r\n public allOutgoingTransferRequests: TransferRequest[] = [];\r\n public transferRequest: TransferRequest = new TransferRequest();\r\n public transfers: Transfer[] = [];\r\n public transferRequestColumns: any[] = [\r\n { field: 'amount', title: 'Amount', cell: this.formatImportedInvoiceAmountValue, width: 100 },\r\n { cell: this.renderRequestMaker, title: 'Receiver', editable: false, width: 250 },\r\n { title: 'Description', field: 'transfer.reason' },\r\n { field: 'status', title: 'Status', width: 250 },\r\n { cell: this.renderCreatedDate, title: 'Date', width: 120 },\r\n { cell: this.renderTransferRequestActions, title: 'Actions', width: 120 },\r\n ];\r\n public isGroupLead: boolean;\r\n public selectedStatus: any = null;\r\n public refreshModal: number = 0;\r\n public transfer: Transfer = new Transfer();\r\n public transferGridUpdate: number = 0;\r\n public teamId: number = null;\r\n public transferModalType: TransferType = TransferType.GroupToGroup;\r\n\r\n public get transferTitle() {\r\n return `Make a transfer from ${this.group.name}`;\r\n }\r\n\r\n public get transferReadOnly() {\r\n return periodFilterHelper.isCurrentPeriodClosed();\r\n }\r\n\r\n public async mounted() {\r\n this.members = this.group.members;\r\n this.isGroupLead = roleHelper.isGroupLead(this.group);\r\n\r\n const transferRequests = await transferService.getTransfersRequests(this.group.groupId);\r\n this.allTransferRequests = this.transferRequests = transferRequests.filter((x) => x.transfer && x.recipients.length > 0);\r\n\r\n this.teamId = teamHelper.getTeamId();\r\n this.teams = await teamService.getTeams();\r\n\r\n await this.getTransfers();\r\n\r\n this.isLoading = false;\r\n\r\n if (this.$route.query && this.$route.query['transfer-request']) {\r\n this.transferRequest = transferRequests.find((x) => x.transferRequestId === parseInt(this.$route.query['transfer-request'] as string));\r\n\r\n if (this.transferRequest) {\r\n Vue.nextTick(() => this.openTransferRequestModal());\r\n }\r\n }\r\n }\r\n\r\n public async getTransfers() {\r\n const [err, response] = await to(transferService.getTransfers(this.teamId, this.group.groupId, null, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse('Failed to load transfers');\r\n return [];\r\n }\r\n\r\n return (this.transfers = response.filter((x) => x.transferType === 'GroupToGroup'));\r\n }\r\n\r\n public async reloadTransfers() {\r\n this.isLoading = true;\r\n const tranferRequestsReloaded = await transferService.getTransfersRequests(this.group.groupId);\r\n this.allTransferRequests = this.transferRequests = tranferRequestsReloaded.filter((x) => x.transfer && x.recipients.length > 0);\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async reloadData() {\r\n this.isLoading = true;\r\n\r\n await this.getTransfers();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async openTransferRequest(item) {\r\n await this.openRequest(item.dataItem);\r\n }\r\n\r\n public async openTransfer(item) {\r\n await this.editTransfer(item.dataItem);\r\n }\r\n\r\n public openTransferRequestModal(resetTransferRequest?: boolean) {\r\n if (resetTransferRequest) {\r\n this.transferRequest = null;\r\n }\r\n this.$refs.transferRequestModal.show();\r\n }\r\n\r\n public async openTransferModal() {\r\n await this.$refs.newTransferModal.init();\r\n }\r\n\r\n get incomingTransferRequests() {\r\n return this.transferRequests.filter((x) => x.direction === 'Receiving');\r\n }\r\n\r\n get outgoingTransferRequests() {\r\n return this.transferRequests.filter((x) => x.direction === 'Sending');\r\n }\r\n\r\n get getActionLabel() {\r\n return this.incomingTransferRequests.filter((x) => x.status === 'New').length > 0\r\n ? '(action required)'\r\n : '(you\\'re all done!)';\r\n }\r\n\r\n get getActionOutgoingLabel() {\r\n return this.outgoingTransferRequests.filter((x) => x.status === 'New').length > 0 ? '(waiting on their response)' : '';\r\n }\r\n\r\n public statusChangedEvent(transferRequestStatusChangedEvent) {\r\n const request = this.transferRequests.find((x) => x.transferRequestId === transferRequestStatusChangedEvent.transferRequestId);\r\n request.status = transferRequestStatusChangedEvent.accepted ? 'Fulfilled' : 'Rejected';\r\n\r\n this.$refs.transferRequestModal.hide();\r\n this.transferRequest = new TransferRequest();\r\n }\r\n\r\n public statusChanged() {\r\n if (this.selectedStatus === null) {\r\n return (this.transferRequests = this.allTransferRequests);\r\n }\r\n\r\n return (this.transferRequests = this.allTransferRequests.filter((x) => x.status === this.selectedStatus));\r\n }\r\n\r\n public renderRequestMaker(h, _, row) {\r\n let team = null;\r\n let group = null;\r\n\r\n if (row.dataItem.direction !== 'Receiving') {\r\n team = this.teams.find((x) => x.teamId === row.dataItem.transfer.senderTeam.teamId);\r\n group = team.groups.find((x) => x.groupId === row.dataItem.receiverGroup);\r\n } else {\r\n team = this.teams.find((x) => x.teamId === row.dataItem.transfer.receiverTeam.teamId);\r\n group = team.groups.find((x) => x.groupId === row.dataItem.senderGroup);\r\n }\r\n\r\n return h('td', `${team.name} - ${group.name}`);\r\n }\r\n\r\n public formatImportedInvoiceAmountValue(h, _, row) {\r\n const props = { value: row.dataItem.transfer.amount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public async rejectRequest(item: TransferRequest) {\r\n await this.$refs.transferRequestModal.rejectRequest(item.transferRequestId);\r\n }\r\n\r\n public async withdrawRequest(item: TransferRequest) {\r\n await this.$refs.transferRequestModal.withdrawRequest(item.transferRequestId);\r\n }\r\n\r\n public async acceptRequest(item: TransferRequest) {\r\n await this.$refs.transferRequestModal.acceptRequest(item.transferRequestId);\r\n }\r\n\r\n public async openRequest(item: TransferRequest) {\r\n this.transferRequest = item;\r\n this.$refs.transferRequestModal.show();\r\n Vue.nextTick(async () => {\r\n await this.$refs.transferRequestModal.initRequest();\r\n });\r\n }\r\n\r\n public renderCreatedDate(h, _, row) {\r\n return h('td', [moment(row.dataItem.dateCreated, 'YYYY-MM-DD').format('DD-MM-YYYY')]);\r\n }\r\n\r\n public isRequestReceiver(transferRequest: TransferRequest): boolean {\r\n return transferRequest && transferRequest.receiverGroup === this.group.groupId;\r\n }\r\n\r\n public isRequestSender(transferRequest: TransferRequest): boolean {\r\n return transferRequest && transferRequest.senderGroup === this.group.groupId;\r\n }\r\n\r\n public renderTransferRequestActions(h, _, row) {\r\n let actions = [];\r\n const userId = profileModule.brightProfile.personId;\r\n const initiator = row.dataItem && typeof row.dataItem.initiator !== 'undefined' ? parseInt(row.dataItem.initiator) : 0;\r\n if (\r\n this.isRequestSender(row.dataItem) &&\r\n row.dataItem.status === 'New' &&\r\n (initiator === userId || roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee() || this.isGroupLead)\r\n ) {\r\n actions = [\r\n { title: 'Withdraw', function: this.withdrawRequest, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n { title: 'Open', function: this.openRequest, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n ];\r\n } else if (\r\n this.isRequestReceiver(row.dataItem) &&\r\n row.dataItem.status === 'New' &&\r\n (initiator === userId ||\r\n roleHelper.isSiteAdmin() ||\r\n roleHelper.isFinanceEmployee() ||\r\n this.isGroupLead ||\r\n row.dataItem.recipients.find((x) => x.personId === userId))\r\n ) {\r\n actions = [\r\n { title: 'Reject', function: this.rejectRequest, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n { title: 'Open', function: this.openRequest, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n { title: 'Accept', function: this.acceptRequest, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n ];\r\n } else {\r\n return h('td');\r\n }\r\n\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public renderDirection(h, _, row) {\r\n const props = {\r\n action: () => this.openRequest(row.dataItem),\r\n isIncoming: row.dataItem.direction === 'Receiving',\r\n };\r\n\r\n return h(Vue.component('grid-transfer-direction'), { props });\r\n }\r\n\r\n public renderMemberInitiator(h, _, row) {\r\n let member = row.dataItem.initiatorPerson;\r\n\r\n if (!member) {\r\n member = this.members.find((m: Member) => m.memberId === row.dataItem.initiator);\r\n }\r\n\r\n if (!member) {\r\n member = new Person();\r\n member.firstName = 'Not available';\r\n }\r\n\r\n return this.renderMember(h, member);\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n let actions = [];\r\n const userId = loginHelper.getUser().personId;\r\n const initiator = row.dataItem && typeof row.dataItem.initiator !== 'undefined' ? parseInt(row.dataItem.initiator) : 0;\r\n\r\n if (initiator === userId || roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) {\r\n actions = [\r\n { title: 'View', function: this.editTransfer },\r\n { title: 'Delete', function: this.removeTransfer, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n ];\r\n }\r\n\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public async editTransfer(item) {\r\n this.$refs.newTransferModal.show();\r\n Vue.nextTick(async () => {\r\n this.$refs.newTransferModal.editMode = true;\r\n await this.$refs.newTransferModal.initTransfer(item);\r\n });\r\n }\r\n\r\n public async removeTransfer(item) {\r\n await transferService.deleteTransfer(item.transferId);\r\n\r\n const transfer = this.transfers.findIndex((t: Transfer) => {\r\n return t.transferId === item.transferId;\r\n });\r\n\r\n this.transfers.splice(transfer, 1);\r\n this.transferGridUpdate++;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-transfers.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-transfers.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-transfers.vue?vue&type=template&id=0bdf5637&\"\nimport script from \"./group-detail-transfers.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-transfers.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('prd-loader',{attrs:{\"center\":\"\"}},[_c('spinner')],1):_c('div',[_c('b-card',[(!_vm.editMode)?_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.group.readMe)}}):_c('b-form-group',{staticClass:\"mb-0\"},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"NO_USEFULL_INFO\"},slot:\"label\"}),_c('vue-editor',{attrs:{\"editorToolbar\":_vm.customControls},model:{value:(_vm.group.readMe),callback:function ($$v) {_vm.$set(_vm.group, \"readMe\", $$v)},expression:\"group.readMe\"}})],1),_c('div',[(!_vm.editMode)?_c('div',{staticClass:\"btn-group mr-2 float-right\"},[_c('b-button',{attrs:{\"disabled\":!_vm.isInGroup,\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.edit()}}},[_vm._v(\"Edit \"),_c('span',{staticClass:\"k-icon k-i-edit\"})])],1):_c('div',{staticClass:\"btn-group mt-2 mr-2 float-right\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.cancelEdit()}}},[_vm._v(\" Cancel \"),_c('span',{staticClass:\"k-icon k-i-close\"})]),_c('b-button',{attrs:{\"variant\":\"success\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.saveWorkspace()}}},[_vm._v(\"Save \"),_c('span',{staticClass:\"k-icon k-i-save\"})])],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import BaseGroupPage from './BaseGroupPage';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { VueEditor } from 'vue2-editor';\r\nimport { loginHelper, groupHelper } from '@/main';\r\n\r\n@Component({\r\n components: {\r\n VueEditor,\r\n },\r\n})\r\nexport default class GroupDetailWorkspace extends BaseGroupPage {\r\n public customControls: any = [\r\n [{ header: [false, 1, 2, 3] }],\r\n ['bold', 'italic', 'underline'],\r\n [{ align: '' }, { align: 'center' }, { align: 'right' }, { align: 'justify' }],\r\n [{ list: 'ordered' }, { list: 'bullet' }],\r\n ['link'],\r\n ['clean'],\r\n ];\r\n\r\n public isInGroup: boolean = false;\r\n\r\n public async mounted() {\r\n await this.initSettingsGroup();\r\n this.isInGroup = this.group.members.filter((member) => member.memberId === loginHelper.getUser().personId).length > 0;\r\n this.isLoading = false;\r\n }\r\n\r\n public async saveWorkspace() {\r\n this.showPending('SAVING_WORKSPACE_PENDING');\r\n const group = await groupHelper.createOrUpdateGroup(this.group);\r\n if (!group || group.groupId === 0) {\r\n return this.clearAndShowError('SAVING_WORKSPACE_FAILED', null);\r\n }\r\n\r\n this.editMode = false;\r\n this.clearAndShowSuccess('SAVING_WORKSPACE_SUCCESS');\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-workspace.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./group-detail-workspace.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./group-detail-workspace.vue?vue&type=template&id=2d814a5a&\"\nimport script from \"./group-detail-workspace.ts?vue&type=script&lang=js&\"\nexport * from \"./group-detail-workspace.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.group)?_c('div',[_c('div',{staticClass:\"group-title\"},[(!_vm.editMode)?_c('div',{staticClass:\"group-title-text\"},[((_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isGroupLead(_vm.group)))?_c('b-button',{staticClass:\"border\",attrs:{\"variant\":\"secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.edit()}}},[_c('i',{staticClass:\"icon-pencil\"})]):_vm._e(),_c('h1',{staticClass:\"d-flex align-items-center\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"GROUP_NAME\",\"params\":{ name: _vm.group.name },\"element\":\"span\"}}),(_vm.group.deleted)?_c('b-badge',{staticClass:\"ml-2\",attrs:{\"pill\":\"\",\"variant\":\"warning\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"DELETED\"}})],1):_vm._e()],1)],1):_c('h1',[_c('div',{staticClass:\"input-group border rounded\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.group.name),expression:\"group.name\"}],staticClass:\"border-0 rounded px-2\",attrs:{\"type\":\"text\",\"placeholder\":\"Name\"},domProps:{\"value\":(_vm.group.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.group, \"name\", $event.target.value)}}}),_c('div',{staticClass:\"input-group-append\"},[_c('b-button',{attrs:{\"size\":\"sm\"},on:{\"click\":_vm.cancel}},[_c('div',{staticClass:\"k-icon k-i-cancel\"})])],1),_c('div',{staticClass:\"input-group-append\"},[_c('b-button',{attrs:{\"size\":\"sm\"},on:{\"click\":_vm.saveGroup}},[_c('div',{staticClass:\"k-icon k-i-save\"})])],1)])]),(!_vm.editMode)?_c('div',[_vm._v(_vm._s(_vm.group.purpose))]):_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-12\"},[_c('small',{staticClass:\"font-italic\"},[_vm._v(\"Purpose\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.group.purpose),expression:\"group.purpose\"}],staticClass:\"form-control\",attrs:{\"cols\":\"30\",\"rows\":\"3\",\"placeholder\":\"Purpose\"},domProps:{\"value\":(_vm.group.purpose)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.group, \"purpose\", $event.target.value)}}})])])]),_c('div',{},[_c('ul',{staticClass:\"nav nav-tabs d-flex align-items-start\",attrs:{\"role\":\"tablist\"}},[(_vm.section == 'directory')?[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link workspace\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('workspace')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"WORKSPACE\"}})],1)])]:_vm._e(),(_vm.section == 'directory')?[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link members\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('members')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"MEMBERS\"}})],1)])]:_vm._e(),(_vm.section == 'finances')?[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link overview\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('overview')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"OVERVIEW_TITLE\"}})],1)]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link income\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('income')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ALL_INCOME\"}})],1)]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link expense\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('expense')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ALL_EXPENSES\"}})],1)]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link transfers\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('transfers')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TRANSFERS\"}})],1)]),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group))?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link ambitions\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('ambitions')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"AMBITIONS\"}})],1)]):_vm._e(),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee() || _vm.$root.roleHelper.isGroupLead(_vm.group))?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link insights\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('insights')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ANALYTICS_TITLE\"}})],1)]):_vm._e()]:_vm._e(),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nav-link settings\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('settings')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SETTINGS_TITLE\"}})],1)])],2)]),_c('div',{staticClass:\"tab-content\"},[_c(_vm.currentTabComponent,{tag:\"component\",attrs:{\"group\":_vm.group}})],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport Group from '../../../models/Group';\r\nimport { groupHelper, $router, teamHelper, roleHelper, ecosystemHelper } from '@/main';\r\nimport jQuery from 'jquery';\r\nimport BaseGroupPage from './components/BaseGroupPage';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class GroupDetailComponent extends BaseGroupPage {\r\n public currentTabComponent: string = '';\r\n public editMode: boolean = false;\r\n public currentTab: string;\r\n public tabs: string[] = ['workspace', 'members', 'overview', 'income', 'expense', 'transfers', 'ambitions', 'insights', 'relations', 'settings'];\r\n\r\n public async created() {\r\n await this.checkPeriodParam();\r\n await this.loadTeamFinanceSettings();\r\n await this.loadGroupFinanceSettings();\r\n\r\n const groupId = parseInt(this.$route.params.groupId);\r\n const group = await groupHelper.getGroup(groupId);\r\n Object.assign(this.group, group);\r\n\r\n if (!this.group || this.group.groupId === 0) {\r\n const params = this.$route.params;\r\n params.tab = 'group-overview';\r\n await this.$router.push({ name: 'team-finances', params });\r\n }\r\n\r\n this.currentTab = this.$route.params.tab;\r\n if (this.currentTab === 'transfer-requests') {\r\n this.currentTab = 'transfers';\r\n }\r\n\r\n this.section = this.$route.meta.section;\r\n if (!this.tabs.indexOf(this.currentTab)) {\r\n this.currentTab = this.section === 'finances' ? 'overview' : 'workspace';\r\n }\r\n this.changeTab(this.currentTab);\r\n }\r\n\r\n public changeTab(tab: string): void {\r\n if (!this.group) {\r\n return;\r\n }\r\n\r\n let name = 'group-directory-';\r\n if (this.section === 'finances') {\r\n name = 'group-finance-';\r\n }\r\n\r\n if (tab !== this.$route.params.tab) {\r\n const params = this.$route.params;\r\n params.tab = tab;\r\n if (this.section === 'finances') {\r\n // tslint:disable: no-floating-promises\r\n $router.push({ name: 'team-finances-group', params, query: this.$route.query });\r\n } else {\r\n $router.push({ name: 'team-directory-group', params, query: this.$route.query });\r\n }\r\n } else {\r\n this.doActiveClass(tab);\r\n this.currentTabComponent = name + tab;\r\n }\r\n }\r\n\r\n public changeSection(section) {\r\n const params = this.$route.params;\r\n this.section = section;\r\n\r\n if (this.section === 'finances') {\r\n params.tab = 'overview';\r\n params.period = periodModule.selectedPeriod;\r\n } else {\r\n params.tab = 'workspace';\r\n }\r\n\r\n if (this.currentTab === 'settings') {\r\n params.tab = this.currentTab;\r\n }\r\n\r\n params.period = periodModule.selectedPeriod;\r\n\r\n $router.push({ name: `team-${this.section}-group`, params });\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n\r\n get hideAmbitions() {\r\n return !roleHelper.checkAccess(this.groupFinanceSettings.privacyLevel, this.group);\r\n }\r\n\r\n get hideInsights() {\r\n return !roleHelper.checkAccess(this.groupFinanceSettings.privacyLevel, this.group);\r\n }\r\n\r\n public edit() {\r\n this.editMode = true;\r\n }\r\n\r\n public cancel() {\r\n this.editMode = false;\r\n }\r\n\r\n public async saveGroup() {\r\n const self = this;\r\n this.showPending('SAVE_GROUP_PENDING');\r\n\r\n const group = await groupHelper.createOrUpdateGroup(this.group);\r\n if (!group || group.groupId === 0) {\r\n return this.clearAndShowError('SAVE_GROUP_FAILED', null);\r\n }\r\n\r\n this.editMode = false;\r\n if (this.group.groupKey !== group.groupKey) {\r\n this.clearAndShowSuccess('SAVE_GROUP_SUCCESS');\r\n setTimeout(async () => {\r\n await $router.push({\r\n name: self.$route.name,\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n groupKey: group.groupKey,\r\n groupId: group.groupId.toString(),\r\n },\r\n });\r\n }, 1500);\r\n } else {\r\n this.clearAndShowSuccess('SAVE_GROUP_SUCCESS');\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./details.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./details.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./details.vue?vue&type=template&id=a31cae10&\"\nimport script from \"./details.ts?vue&type=script&lang=js&\"\nexport * from \"./details.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-toolbar',[_c('prd-translate-button',{staticClass:\"d-none d-md-inline-block\",attrs:{\"translate-key\":\"EXPLORE_ALL_GROUPS\",\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":_vm.exploreAllGroups}})],1),_c('prd-grid-wrapper',{key:_vm.reloadKey,attrs:{\"data-items\":_vm.groups,\"columns\":_vm.groupsColumns,\"row-height\":40}}),_c('energy-dedication-modal',{ref:\"energyDedicationEdit\",on:{\"energy-dedications-updated\":_vm.reloadEnergyDedications}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { meService, periodFilterHelper, teamHelper, loginHelper, ecosystemHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport PageRender from '@/models/PageRender';\r\nimport Group from '@/models/Group';\r\nimport { Route } from 'vue-router';\r\nimport EnergyDedicationModalComponent from '@/components/modals/energy-dedication-modal';\r\nimport { Member } from '@/models/Member';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class GroupsComponent extends PageRender {\r\n public isLoaded: boolean = false;\r\n public groups: Group[] = [];\r\n public $refs!: {\r\n energyDedicationEdit: EnergyDedicationModalComponent;\r\n };\r\n\r\n public groupUsedInModal: Group = {} as Group;\r\n public totalEnergySpent: number = 0;\r\n public reloadKey: number = 0;\r\n\r\n public groupsColumns: any[] = [\r\n { cell: this.renderRouterLink, title: 'GROUP_NAME', width: 300 },\r\n { cell: this.renderEnergyDedication, title: 'ENERGY_DEDICATION', width: 175 },\r\n { field: 'purpose', title: 'GROUP_PURPOSE' },\r\n { cell: this.renderMembers, title: 'GROUP_MEMBERS', width: 125 },\r\n { cell: this.renderGroupLead, title: 'GROUP_LEAD', width: 300 },\r\n { cell: this.renderActions, title: 'ACTIONS', width: 125 },\r\n ];\r\n\r\n public async mounted() {\r\n await this.checkPeriodParam();\r\n const self = this;\r\n const [err, response] = await to(meService.getGroups(teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n self.showFailedResponse('Could not get groups.', err);\r\n }\r\n const groups = response.data;\r\n\r\n const [errEnergy, responseEnergy] = await to(\r\n meService.getEnergyDedications(teamHelper.currentTeamId, periodModule.selectedPeriod),\r\n );\r\n if (errEnergy) {\r\n self.showFailedResponse('Could not get energy dedication.', errEnergy);\r\n }\r\n\r\n responseEnergy.data.forEach((energy) => {\r\n const group = groups.find((item: any) => {\r\n return item.groupKey === energy.groupKey.toLowerCase();\r\n });\r\n if (group) {\r\n group.energyDedication = energy.amount;\r\n self.totalEnergySpent += energy.amount;\r\n }\r\n });\r\n\r\n self.groups = groups;\r\n this.isLoaded = true;\r\n }\r\n\r\n public async reloadEnergyDedications() {\r\n const [errEnergy, responseEnergy] = await to(\r\n meService.getEnergyDedications(teamHelper.currentTeamId, periodModule.selectedPeriod),\r\n );\r\n if (errEnergy) {\r\n this.showFailedResponse('Could not get energy dedication.', errEnergy);\r\n }\r\n\r\n this.groups.forEach((x) => (x.energyDedication = 0));\r\n\r\n responseEnergy.data.forEach((energy) => {\r\n const group = this.groups.find((item: any) => {\r\n return item.groupKey === energy.groupKey.toLowerCase();\r\n });\r\n if (group) {\r\n group.energyDedication = energy.amount;\r\n }\r\n });\r\n\r\n this.reloadKey++;\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n\r\n public renderEnergyDedication(h, _, row) {\r\n const props = {\r\n value: row.dataItem.energyDedication,\r\n showPercentage: true,\r\n action: async () => {\r\n await this.openEditEnergyEdicationModal();\r\n },\r\n };\r\n return h(Vue.component('grid-percentage'), { props });\r\n }\r\n\r\n public renderGroupLead(h, _, row): any {\r\n return this.renderMember(h, row.dataItem.groupLead);\r\n }\r\n\r\n public renderMemberName(h, _, row): any {\r\n return this.renderMember(h, row.dataItem);\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [\r\n { title: 'Overview', function: this.exploreAllGroups },\r\n {\r\n title: 'Edit energy dedication',\r\n function: this.openEditEnergyEdicationModal,\r\n disabled: periodFilterHelper.isCurrentPeriodClosed(),\r\n },\r\n ];\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public renderRouterLink(h, _, row) {\r\n const routeUrl = this.$router.resolve({\r\n name: 'team-directory-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey: row.dataItem.groupKey,\r\n groupId: row.dataItem.groupId,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'workspace',\r\n period: periodModule.selectedPeriod,\r\n },\r\n }).href;\r\n\r\n const props = {\r\n text: row.dataItem.name,\r\n url: routeUrl,\r\n };\r\n\r\n return h(Vue.component('grid-router-link'), { props });\r\n }\r\n\r\n public renderPercentage(item: any): any {\r\n const self = this;\r\n return {\r\n template: Vue.component('grid-percentage-component'),\r\n templateArgs: (Object as any).assign(\r\n {},\r\n {\r\n value: item.energyDedication,\r\n async action() {\r\n await self.openEditEnergyEdicationModal();\r\n },\r\n },\r\n {},\r\n ),\r\n };\r\n }\r\n\r\n public exploreAllGroups(): Promise {\r\n return this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n team: teamHelper.teamParam,\r\n },\r\n });\r\n }\r\n\r\n public async openEditEnergyEdicationModal() {\r\n const self = this;\r\n const modal = self.$refs.energyDedicationEdit;\r\n const memberObj = new Member(loginHelper.getUser());\r\n await modal.setMember(memberObj);\r\n modal.show();\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./groups.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./groups.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./groups.vue?vue&type=template&id=6574a5ac&\"\nimport script from \"./groups.ts?vue&type=script&lang=js&\"\nexport * from \"./groups.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-toolbar',[_c('prd-translate-button',{attrs:{\"translate-key\":\"EXPLORE_ALL_MEMBERS\",\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":_vm.exploreAllMembers}})],1),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.members,\"columns\":_vm.memberColumns,\"row-height\":36}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { ecosystemHelper, meService, teamHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport PageRender from '@/models/PageRender';\r\nimport { Route } from 'vue-router';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { Person } from '@/models/Person';\r\n\r\n@Component\r\nexport default class MembersComponent extends PageRender {\r\n public isLoaded: boolean = false;\r\n public members: Person[] = [];\r\n\r\n public memberColumns: any[] = [\r\n { cell: this.renderMemberName, title: 'NAME', field: 'firstName' },\r\n { cell: this.renderMemberships, title: 'MEMBERS_OF', field: 'firstName', width: 200 },\r\n { title: 'EMAIL', field: 'emailAddress' },\r\n { title: 'PHONE', field: 'phoneNumber' },\r\n ];\r\n\r\n public async mounted() {\r\n await this.checkPeriodParam();\r\n const self = this;\r\n\r\n const [errMembers, responseMembers] = await to(meService.getMembers(teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (errMembers) {\r\n self.showFailedResponse('Could not get members.', errMembers);\r\n }\r\n\r\n this.members = responseMembers.data.map((x) => new Person(x));\r\n this.isLoaded = true;\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n\r\n public renderMemberName(h, _, row): any {\r\n return this.renderMember(h, row.dataItem);\r\n }\r\n\r\n public exploreAllMembers(): Promise {\r\n return this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n team: teamHelper.teamParam,\r\n },\r\n });\r\n }\r\n\r\n public fullname(member: any): string {\r\n return `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./members.vue?vue&type=template&id=1153eab4&\"\nimport script from \"./members.ts?vue&type=script&lang=js&\"\nexport * from \"./members.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"p-10 h-100\"},[_vm._m(0),_c('b-alert',{staticClass:\"mw-600 mx-auto my-14\",attrs:{\"show\":\"\",\"variant\":\"warning\"}},[_c('h1',{staticClass:\"alert-heading text-center\"},[_vm._v(\"Woops, you're not in such bright place!\")])]),_c('div',{staticClass:\"d-block mx-auto my-5 text-center\"},[_c('b-button',{staticClass:\"btn btn-lg\",attrs:{\"type\":\"submit\",\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.goToRoot()}}},[_vm._v(\"Head back to a brighter place\")])],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center my-5\"},[_c('span',{staticClass:\"k-icon k-i-brightness-contrast my-14\",staticStyle:{\"color\":\"#ffc107\",\"font-size\":\"10rem\"}})])}]\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\r\nimport Vue from 'vue';\r\nimport { $router, teamHelper } from '@/main';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class NotFoundComponent extends Vue {\r\n public async goToRoot() {\r\n await $router.push({\r\n name: 'me-finances',\r\n params: {\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'overview',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./notfound.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./notfound.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./notfound.vue?vue&type=template&id=5b491944&\"\nimport script from \"./notfound.ts?vue&type=script&lang=js&\"\nexport * from \"./notfound.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[_c('b-tabs',[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"SETTINGS_TRANSLATE_LANGUAGE\"},slot:\"title\"}),_c('prd-toolbar',[(_vm.$root.inEditMode)?_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"translate-key\":\"SETTINGS_ADD_LANGUAGE\"}}):_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_ADD_LANGUAGE'),expression:\"'SETTINGS_ADD_LANGUAGE'\"}],attrs:{\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":_vm.showAddLanguage}})],1),_c('ul',{staticClass:\"list-group mt-3\"},_vm._l((_vm.languages),function(lang,index){return _c('li',{key:'l-' + index,staticClass:\"list-group-item\"},[_vm._v(\" \"+_vm._s(lang)+\" \")])}),0)],1),_c('b-tab',[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_TRANSLATE_GENERAL'),expression:\"'SETTINGS_TRANSLATE_GENERAL'\"}]})]),_c('translate-group')],1),_c('b-tab',[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_ALERT_MESSAGES'),expression:\"'SETTINGS_ALERT_MESSAGES'\"}]})]),_c('translate-group',{attrs:{\"group\":\"ALERT_MESSAGES\"}})],1),_c('b-tab',[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_REGISTER_MESSAGES'),expression:\"'SETTINGS_REGISTER_MESSAGES'\"}]})]),_c('translate-group',{attrs:{\"group\":\"REGISTER\"}})],1),_c('b-tab',[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_MAP_MESSAGES'),expression:\"'SETTINGS_MAP_MESSAGES'\"}]})]),_c('translate-group',{attrs:{\"group\":\"MAP\"}})],1),_c('b-tab',[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_MODAL_MESSAGES'),expression:\"'SETTINGS_MODAL_MESSAGES'\"}]})]),_c('translate-group',{attrs:{\"group\":\"MODALS\"}})],1),_c('b-tab',[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SETTINGS_GRID_MESSAGES'),expression:\"'SETTINGS_GRID_MESSAGES'\"}]})]),_c('translate-group',{attrs:{\"group\":\"GRID\"}})],1)],1),_c('b-modal',{ref:\"addLanguageModal\",attrs:{\"size\":\"sm\"}},[_c('h5',{attrs:{\"slot\":\"modal-header\"},slot:\"modal-header\"},[_vm._v(\"Add language\")]),_c('b-form-group',{attrs:{\"label\":\"Key\"}},[_c('b-input',{model:{value:(_vm.newLanguage),callback:function ($$v) {_vm.newLanguage=$$v},expression:\"newLanguage\"}})],1),_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$refs.addLanguageModal.hide()}},slot:\"modal-footer\"},[_vm._v(\" Cancel \")]),_c('b-button',{attrs:{\"slot\":\"modal-footer\",\"size\":\"sm\",\"variant\":\"primary\"},on:{\"click\":_vm.addLanguage},slot:\"modal-footer\"},[_vm._v(\" Save \")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-form-group',[_c('b-input',{model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}}),_c('span',{staticClass:\"text-muted\"},[_vm._v(_vm._s(_vm.items.length))])],1),_c('b-card',[_c('table',{staticClass:\"table table-sm table-hover\"},[_c('thead',[_c('tr',[_c('th',[_vm._v(\"Key\")]),_c('th',[_vm._v(\"Value\")])])]),_vm._l((_vm.items),function(key,index){return _c('tr',{key:'alert-' + index},[_c('td',{staticStyle:{\"width\":\"30%\"}},[_vm._v(_vm._s(key))]),_c('td',[_c('prd-translate-text-inline',{attrs:{\"translate-key\":key,\"translate-group\":_vm.group,\"inline\":true}})],1)])})],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { translateModule } from '@/store/modules/translate';\r\nimport Vue from 'vue';\r\nimport { Component, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class TranslateGroupSetting extends Vue {\r\n @Prop() public group?: string;\r\n public search: string = '';\r\n\r\n public get items() {\r\n const search = this.search.toLowerCase();\r\n const messages = this.group && this.group !== '' ? this.grouped : this.ungrouped;\r\n return Object.keys(messages).filter((k) => {\r\n const value = messages[k].toLowerCase();\r\n const key = k.toLowerCase();\r\n return search ? (value.indexOf(search) > -1 || key.indexOf(search) > -1) : true;\r\n });\r\n }\r\n\r\n public get grouped() {\r\n return translateModule.value(this.group);\r\n }\r\n\r\n public get ungrouped() {\r\n const messages = {};\r\n const all = translateModule.all;\r\n Object.keys(all).forEach((key) => {\r\n if (typeof(all[key]) === 'string') {\r\n messages[key] = all[key];\r\n }\r\n });\r\n return messages;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./translate-group.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./translate-group.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./translate-group.vue?vue&type=template&id=906f80e6&\"\nimport script from \"./translate-group.ts?vue&type=script&lang=js&\"\nexport * from \"./translate-group.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { translateModule } from '@/store/modules/translate';\r\nimport { BModal } from 'bootstrap-vue';\r\nimport TranslateGroup from './translate-group.vue';\r\n\r\n@Component({\r\n components: {\r\n TranslateGroup,\r\n },\r\n})\r\nexport default class LanguagePage extends Vue {\r\n public newLanguage: string = '';\r\n public searchAlertMessage: string = '';\r\n public $refs!: {\r\n addLanguageModal: BModal,\r\n };\r\n\r\n public get languages() {\r\n return translateModule.languages;\r\n }\r\n\r\n public showAddLanguage() {\r\n this.$refs.addLanguageModal.show();\r\n }\r\n\r\n public async addLanguage() {\r\n translateModule.addLanguage(this.newLanguage.toLowerCase());\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./translate.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./translate.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./translate.vue?vue&type=template&id=fb9782a6&\"\nimport script from \"./translate.ts?vue&type=script&lang=js&\"\nexport * from \"./translate.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('div',[(_vm.isLoading)?_c('prd-loader',{attrs:{\"absolute\":\"\"}}):_c('b-tabs',{attrs:{\"fill\":\"\",\"pills\":\"\"},on:{\"activate-tab\":_vm.moveToTab},model:{value:(_vm.stepIndex),callback:function ($$v) {_vm.stepIndex=$$v},expression:\"stepIndex\"}},[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_GROUP_STEP_1\"},slot:\"title\"}),_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"element\":\"h5\",\"translate-key\":\"SET_UP_GENERIC_PROPERTIES\"},slot:\"header\"}),_c('b-form-group',{attrs:{\"label-cols\":\"3\",\"label-for\":\"period\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ADD_IN_PERIOD\",\"element\":\"span\"}}),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],staticClass:\"icon-info ml-2\",attrs:{\"title\":_vm._f(\"translate\")('ADD_IN_PERIOD_INFO')}})],1),_c('prd-multiselect',{attrs:{\"options\":_vm.periods,\"label\":\"name\",\"placeholder\":_vm._f(\"translate\")('SELECT_PERIOD')},model:{value:(_vm.selectedPeriod),callback:function ($$v) {_vm.selectedPeriod=$$v},expression:\"selectedPeriod\"}})],2),_c('b-form-group',{attrs:{\"id\":\"groupLeadGroup\",\"label\":\"Group lead\",\"label-for\":\"persons\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"CREATE_GROUP_GROUPLEAD_LABEL\"},slot:\"label\"}),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"CREATE_GROUP_GROUPLEAD_DESCRIPTION\"},slot:\"description\"}),_c('prd-multiselect',{attrs:{\"options\":_vm.memberOptions,\"label\":\"fullName\",\"placeholder\":_vm._f(\"translate\")('DROPDOWN.SELET_A_MEMBER'),\"is-valid\":!_vm.submitted || !_vm.$v.selectedGroupLead.$invalid},on:{\"input\":_vm.updateMemberList},model:{value:(_vm.selectedGroupLead),callback:function ($$v) {_vm.selectedGroupLead=$$v},expression:\"selectedGroupLead\"}})],1),_c('b-form-group',{attrs:{\"id\":\"groupNameGroup\",\"label\":\"Group name\",\"label-for\":\"groupNameInput\",\"description\":\"The group name\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"CREATE_GROUP_NAME_DESCRIPTION\"},slot:\"description\"}),_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"CREATE_GROUP_NAME_LABEL\"},slot:\"label\"}),_c('b-form-input',{class:{ 'border-danger': _vm.$v.createGroupForm.name.$invalid && _vm.submitted },attrs:{\"id\":\"groupNameInput\",\"type\":\"text\",\"placeholder\":\"Development\"},model:{value:(_vm.createGroupForm.name),callback:function ($$v) {_vm.$set(_vm.createGroupForm, \"name\", $$v)},expression:\"createGroupForm.name\"}})],1),_c('b-form-group',{attrs:{\"id\":\"groupNameGroup\",\"label\":\"Group purpose\",\"label-for\":\"groupPurposeInput\",\"label-cols\":\"3\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"CREATE_GROUP_PURPOSE_DESCRIPTION\"},slot:\"description\"}),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.createGroupForm.purpose),expression:\"createGroupForm.purpose\"},{name:\"translate\",rawName:\"v-translate:placeholder\",value:('CREATE_GROUP_PURPOSE_PLACEHOLDER'),expression:\"'CREATE_GROUP_PURPOSE_PLACEHOLDER'\",arg:\"placeholder\"}],staticClass:\"form-control\",class:{ 'border-danger': _vm.$v.createGroupForm.purpose.$invalid && _vm.submitted },staticStyle:{\"resize\":\"none\",\"overflow-y\":\"scroll\"},attrs:{\"id\":\"groupPurposeInput\",\"type\":\"text\",\"rows\":\"3\",\"max-rows\":\"6\"},domProps:{\"value\":(_vm.createGroupForm.purpose)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.createGroupForm, \"purpose\", $event.target.value)}}})],1),_c('prd-translate-button',{attrs:{\"slot\":\"footer-buttons\",\"variant\":\"primary\",\"translate-key\":\"FORWARD_ONE_STEP\"},on:{\"click\":_vm.next},slot:\"footer-buttons\"})],1)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_GROUP_STEP_2\"},slot:\"title\"}),_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"SET_UP_MEMBERS\"},slot:\"header\"}),_c('b-form-group',[_c('b-form-checkbox-group',{attrs:{\"stacked\":\"\",\"options\":_vm.members},model:{value:(_vm.selectMemberIds),callback:function ($$v) {_vm.selectMemberIds=$$v},expression:\"selectMemberIds\"}})],1),_c('b-alert',{attrs:{\"variant\":\"warning\",\"show\":_vm.$v.selectMemberIds.$invalid && _vm.submitted}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_GROUP_MEMBERS_ADD_AT_LEAST_ONE\"}})],1),_c('template',{slot:\"footer-buttons\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"FORWARD_ONE_STEP\"},on:{\"click\":_vm.next}})],1)],2)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_GROUP_STEP_3\"},slot:\"title\"}),_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"SET_UP_WORKSPACE\"},slot:\"header\"}),_c('b-form-group',{attrs:{\"id\":\"groupWorkspace\",\"label\":\"Worksapce\",\"label-for\":\"groupWorkspaceInput\",\"description\":\"Specify default external links or other important notes on this section\",\"label-cols\":\"3\"}},[_c('prd-richtext-editor',{model:{value:(_vm.createGroupForm.readMe),callback:function ($$v) {_vm.$set(_vm.createGroupForm, \"readMe\", $$v)},expression:\"createGroupForm.readMe\"}})],1),_c('template',{slot:\"footer-buttons\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"FORWARD_ONE_STEP\"},on:{\"click\":_vm.next}})],1)],2)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_GROUP_STEP_4\"},slot:\"title\"}),_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"SET_UP_CONNECTORS\"},slot:\"header\"}),_c('b-form-group',{attrs:{\"label\":\"Group connectors\",\"label-cols\":\"3\",\"description\":\"Enable connectors if you want to activate this group automatically in theses sections\"}},[_c('b-form-checkbox-group',{staticClass:\"mb-2\",attrs:{\"options\":_vm.connectorOptions,\"name\":\"connectors\",\"stacked\":\"\",\"switches\":\"\"},model:{value:(_vm.selectedConnectors),callback:function ($$v) {_vm.selectedConnectors=$$v},expression:\"selectedConnectors\"}})],1),_c('template',{slot:\"footer-buttons\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"FORWARD_ONE_STEP\"},on:{\"click\":_vm.next}})],1)],2)],1),(_vm.hasFinanceConnector)?_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_GROUP_STEP_5\"},slot:\"title\"}),(_vm.stepIndex == 4)?[_c('prd-translate-text',{staticClass:\"my-3\",attrs:{\"element\":\"h5\",\"translate-key\":\"SET_UP_TEMPLATES\"}}),(!_vm.templates || _vm.templates.length == 0)?_c('prd-card',[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_GROUP_NO_TEMPLATES\"}}),_c('router-link',{attrs:{\"to\":_vm.teamFinanceSettingsRoute}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_GROUP_CONFIGURE_TEMPLATES\"}})],1)],1):[_c('b-card-group',{attrs:{\"deck\":\"\"}},[_vm._l((_vm.templates),function(template,templateIndex){return [_c('prd-card',{key:(\"template_\" + templateIndex),staticClass:\"cursor-pointer text-center\",class:template.financeGroupTemplateId === _vm.selectedTemplateId ? 'border-primary' : '',staticStyle:{\"min-width\":\"18rem\",\"max-width\":\"18rem\"},attrs:{\"title\":template.name},nativeOn:{\"click\":function($event){return _vm.selectTemplate(template)}}},[_vm._v(\" \"+_vm._s(template.description)+\" \")])]})],2),_c('prd-toolbar',{staticClass:\"mt-3\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"FORWARD_ONE_STEP\"},on:{\"click\":_vm.next}})],1)]]:_vm._e()],2):_vm._e(),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_GROUP_STEP_8\"},slot:\"title\"}),_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"CREATE_GROUP_SUMMARY_TITLE\"},slot:\"header\"}),_c('prd-translate-text',{attrs:{\"element\":\"p\",\"translate-key\":\"CREATE_GROUP_SUMMARY\"}}),_c('b-form-group',{attrs:{\"label-cols\":\"2\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"GROUP_NAME\",\"element\":\"label\"},slot:\"label\"}),_c('p',[_vm._v(_vm._s(_vm.createGroupForm.name))])],1),_c('b-form-group',{attrs:{\"label-cols\":\"2\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"DESCRIPTION\",\"element\":\"label\"},slot:\"label\"}),_c('p',[_vm._v(_vm._s(_vm.createGroupForm.purpose))])],1),_c('b-form-group',{attrs:{\"label\":\"Members to be add\",\"label-cols\":\"2\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"CREATE_GROUP_MEMBERS_ADD\",\"element\":\"label\"},slot:\"label\"}),_c('p',[_vm._v(_vm._s(_vm.memberNames))])],1),_c('b-form-group',{attrs:{\"label\":\"Connector\",\"label-cols\":\"2\"}},[(_vm.selectedConnectors.length > 0)?[_c('p',[_vm._v(\" \"+_vm._s(_vm.connectorNames)+\" \")])]:_c('prd-translate-text',{attrs:{\"element\":\"p\",\"translate-key\":\"CREATE_GROUP_SUMMARY_NO_CONNECTORS\"}})],2),_c('b-form-group',{attrs:{\"label\":\"Default settings\",\"label-cols\":\"2\"}},[(_vm.selectedTemplateId > 0)?[_c('prd-translate-text',{attrs:{\"translate-key\":\"CREATE_GROUP_SUMMERY_APPLIED\",\"params\":{ templateName: _vm.templateName },\"element\":\"p\"}})]:_c('p',[_c('prd-translate-text',{attrs:{\"element\":\"p\",\"translate-key\":\"CREATE_GROUP_SUMMARY_NO_TEMPLATE\"}})],1)],2),_c('template',{slot:\"footer-buttons\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"action\":_vm.finalize,\"variant\":\"primary\",\"translate-key\":\"CREATE_GROUP\"}})],1)],2)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport PageRender from '../../../models/PageRender';\r\nimport {\r\n groupHelper,\r\n roleHelper,\r\n memberHelper,\r\n connectorService,\r\n templateService,\r\n teamHelper,\r\n groupService,\r\n teamService,\r\n ecosystemHelper,\r\n} from '@/main';\r\nimport moment from 'moment';\r\nimport Group from '@/models/Group';\r\nimport { VueEditor } from 'vue2-editor';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport Connector from '@/models/Connectors/Connector';\r\nimport { Person } from '@/models/Person';\r\nimport { Member } from '@/models/Member';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { required, minLength } from 'vuelidate/lib/validators';\r\nimport to from 'await-to-js';\r\nimport Team from '@/models/Team';\r\nimport Period from '@/models/Period';\r\n\r\n@Component({\r\n components: {\r\n VueEditor,\r\n },\r\n validations: {\r\n createGroupForm: {\r\n name: { required },\r\n purpose: { required },\r\n readMe: { minLength: minLength(20) },\r\n },\r\n selectMemberIds: { required, minLength: minLength(1) },\r\n selectedGroupLead: { required },\r\n },\r\n} as any)\r\nexport default class TeamDirectoryAddGroupComponent extends PageRender {\r\n public connectors: Connector[] = [];\r\n public selectedConnectors: any[] = [];\r\n public allMembers: Person[] = [];\r\n public groups: Group[] = [];\r\n public selectedTemplateId: number = 0;\r\n public createGroupForm: Group = new Group();\r\n public selectedGroupLead: Person = null;\r\n public selectMemberIds: number[] = [];\r\n public submitted: boolean = false;\r\n public stepIndex: number = 0;\r\n public energySpent: number = 0;\r\n public selectedPeriod: Period = null;\r\n public templates: any[] = [];\r\n public teams: Team[] = [];\r\n\r\n public async mounted() {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await this.$router.push({ name: 'not-found' });\r\n }\r\n\r\n this.allMembers = await memberHelper.getMembers(true);\r\n const me = this.allMembers.find((x) => x.personId === profileModule.brightProfile.personId);\r\n this.connectors = await connectorService.getConnectors();\r\n this.groups = await groupHelper.getGroups();\r\n this.selectedGroupLead = me ? me : null;\r\n if (this.selectedGroupLead) {\r\n this.selectMemberIds.push(this.selectedGroupLead.personId);\r\n }\r\n this.selectedPeriod = this.periods.find((periodOption: Period) => {\r\n return periodOption.periodId === periodModule.selectedPeriodObject.periodId;\r\n });\r\n\r\n await this.loadTemplates();\r\n this.teams = await teamService.getTeams();\r\n this.isLoading = false;\r\n }\r\n\r\n public get periods() {\r\n return periodModule.periods.map((period: Period) => {\r\n const option: any = { ...period };\r\n option.name = moment(period.startDate).format(`MMMM 'YY`);\r\n return option;\r\n });\r\n }\r\n\r\n public get members() {\r\n const groupLeadId = this.selectedGroupLead ? this.selectedGroupLead.personId : null;\r\n let list = [];\r\n if (this.allMembers && this.allMembers.length > 0) {\r\n list = this.allMembers.map((member) => {\r\n return {\r\n text: `${member.getFullName()}${member.personId === groupLeadId ? ' (group lead)' : ''}`,\r\n value: member.personId,\r\n };\r\n });\r\n }\r\n return list.sort((x, y) => x.value === groupLeadId ? -1 : y === groupLeadId ? 1 : 0);\r\n }\r\n\r\n public get memberNames() {\r\n return this.allMembers\r\n .filter((x) => this.selectMemberIds.indexOf(x.personId) > -1)\r\n .map((x) => x.getFullName())\r\n .join(', ');\r\n }\r\n\r\n public get memberOptions() {\r\n return this.allMembers.filter((x) => x.externalIdentifier);\r\n }\r\n\r\n public get templateName() {\r\n return this.templates.find((x) => x.financeGroupTemplateId === this.selectedTemplateId).name;\r\n }\r\n\r\n public get connectorNames() {\r\n return this.connectors\r\n .filter((x) => this.selectMemberIds.indexOf(x.connectorId) > -1)\r\n .map((x) => x.name)\r\n .join(', ');\r\n }\r\n\r\n public get teamFinanceSettingsRoute() {\r\n const params = this.$route.params;\r\n const route = {\r\n name: 'team-finances',\r\n params: {\r\n teamId: params.teamId,\r\n teamKey: params.teamKey,\r\n period: params.period,\r\n tab: 'settings',\r\n },\r\n };\r\n return route;\r\n }\r\n\r\n public get hasFinanceConnector() {\r\n return this.selectedConnectors.filter((x) => x === 1).length > 0;\r\n }\r\n\r\n public get connectorOptions() {\r\n return this.connectors.map((x) => {\r\n return { value: x.connectorId, text: x.name };\r\n });\r\n }\r\n\r\n public valid(index: number = this.stepIndex) {\r\n this.clearNotifications();\r\n if (index === 0) {\r\n return !(this as any).$v.createGroupForm.$invalid && !(this as any).$v.selectedGroupLead.$invalid;\r\n } else if (index === 1) {\r\n return !(this as any).$v.selectMemberIds.$invalid;\r\n } else if (index === 2) {\r\n return !(this as any).$v.createGroupForm.$invalid;\r\n } else if (index === 3) {\r\n // no validation needed, connector is selected or not.\r\n } else if (index === 4) {\r\n // no validation, default no template selected\r\n } else if (index === 5) {\r\n // validate finance settings when editable\r\n } else if (index === 6) {\r\n // validate attributions settings when editable\r\n } else if (index === 7) {\r\n return !(this as any).$v.createGroupForm.$invalid || !(this as any).$v.selectMemberIds.$invalid;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public moveToTab(newTabIndex, prevTabIndex, bvEvent) {\r\n if (newTabIndex > this.stepIndex + 1 || (!this.valid(prevTabIndex) && newTabIndex > prevTabIndex)) {\r\n this.submitted = true;\r\n return bvEvent.preventDefault();\r\n }\r\n\r\n this.submitted = false;\r\n }\r\n\r\n public async next() {\r\n this.submitted = true;\r\n if (this.valid()) {\r\n this.stepIndex++;\r\n\r\n if (this.stepIndex === 4) {\r\n await this.loadTemplates();\r\n }\r\n\r\n if (this.stepIndex === 6) {\r\n this.teams = await teamService.getTeams();\r\n }\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n public back() {\r\n this.stepIndex--;\r\n }\r\n\r\n public async finalize() {\r\n if (this.valid()) {\r\n await this.addGroup();\r\n }\r\n }\r\n\r\n public updateMemberList(groupLead: Person) {\r\n this.selectMemberIds = [groupLead.personId];\r\n }\r\n\r\n public selectTemplate(template) {\r\n this.selectedTemplateId = template.financeGroupTemplateId;\r\n }\r\n\r\n public async addGroup() {\r\n const periodString = moment(this.selectedPeriod.startDate, 'YYYY-MM-DD').format('YYYY-MM');\r\n this.showPending('CREATE_GROUP_PENDING');\r\n this.createGroupForm.connectors = this.selectedConnectors;\r\n this.createGroupForm.groupLead = new Member({ memberId: this.selectedGroupLead.personId });\r\n this.createGroupForm.templateId = this.selectedTemplateId > 0 ? this.selectedTemplateId : null;\r\n\r\n const newGroup = await groupHelper.createOrUpdateGroup(this.createGroupForm, periodString);\r\n if (!newGroup.groupId) {\r\n return;\r\n }\r\n\r\n const groups = await teamService.getGroups(teamHelper.currentTeam.id, periodString);\r\n const group = groups.data.find((x) => x.name === this.createGroupForm.name);\r\n if (this.selectMemberIds.length > 1 && group) {\r\n this.clearNotifications();\r\n this.showPending('Adding selected members to the group...');\r\n const [err] = await to(groupService.addMembers(this.selectMemberIds, group.groupId, teamHelper.currentTeam.id, periodString));\r\n\r\n if (err) {\r\n return this.clearAndShowError('Failed adding members');\r\n }\r\n }\r\n\r\n this.clearNotifications();\r\n await this.$router.push({\r\n name: 'team-directory-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n groupId: group.groupId.toString(),\r\n groupKey: group.groupKey,\r\n tab: 'members',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n private async loadTemplates() {\r\n this.templates = await templateService.getTemplates(teamHelper.currentTeam.id);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./add-group.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./add-group.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add-group.vue?vue&type=template&id=e2bcc028&\"\nimport script from \"./add-group.ts?vue&type=script&lang=js&\"\nexport * from \"./add-group.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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-tabs',{attrs:{\"pills\":\"\",\"fill\":\"\"},model:{value:(_vm.stepIndex),callback:function ($$v) {_vm.stepIndex=$$v},expression:\"stepIndex\"}},[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_MEMBER_STEP_1\"},slot:\"title\"}),_c('prd-card',{staticClass:\"mt-3\"},[_c('b-form-group',{attrs:{\"label-cols\":\"\",\"label-for\":\"period\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{staticClass:\"mr-2\",attrs:{\"translate-key\":\"ADD_IN_PERIOD\",\"element\":\"span\"}}),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],staticClass:\"icon-info\",attrs:{\"title\":_vm._f(\"translate\")('ADD_IN_PERIOD_INFO')}})],1),_c('prd-multiselect',{attrs:{\"label\":\"name\",\"options\":_vm.periods,\"placeholder\":_vm._f(\"translate\")('SELECT_PERIOD')},model:{value:(_vm.period),callback:function ($$v) {_vm.period=$$v},expression:\"period\"}})],2),_c('b-form-group',{attrs:{\"label-cols\":\"\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"emailaddress\"},slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"EMAIL\"}})],1),_c('b-input',{directives:[{name:\"translate\",rawName:\"v-translate:placeholder\",value:('EMAIL'),expression:\"'EMAIL'\",arg:\"placeholder\"}],attrs:{\"id\":\"emailadress\"},on:{\"blur\":_vm.searchEmailaddress},model:{value:(_vm.memberToAdd.emailAddress),callback:function ($$v) {_vm.$set(_vm.memberToAdd, \"emailAddress\", $$v)},expression:\"memberToAdd.emailAddress\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"firstname\"},slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FIRST_NAME\"}})],1),_c('b-form-input',{directives:[{name:\"translate\",rawName:\"v-translate:placeholder\",value:('FIRST_NAME'),expression:\"'FIRST_NAME'\",arg:\"placeholder\"}],attrs:{\"id\":\"firstname\",\"disabled\":_vm.disableStuff},model:{value:(_vm.memberToAdd.firstName),callback:function ($$v) {_vm.$set(_vm.memberToAdd, \"firstName\", $$v)},expression:\"memberToAdd.firstName\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"lastname\"},slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LAST_NAME\"}})],1),_c('b-form-input',{directives:[{name:\"translate\",rawName:\"v-translate:placeholder\",value:('LAST_NAME'),expression:\"'LAST_NAME'\",arg:\"placeholder\"}],attrs:{\"id\":\"lastname\",\"disabled\":_vm.disableStuff},model:{value:(_vm.memberToAdd.lastName),callback:function ($$v) {_vm.$set(_vm.memberToAdd, \"lastName\", $$v)},expression:\"memberToAdd.lastName\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"\",\"label-for\":\"access\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{staticClass:\"mr-2\",attrs:{\"translate-key\":\"ACCESS_TO_TEAM\",\"element\":\"span\"}}),_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],staticClass:\"icon-info\",attrs:{\"title\":_vm._f(\"translate\")('ACCESS_TO_TEAM_INFO')}})],1),_c('b-form-checkbox',{attrs:{\"id\":\"access\",\"name\":\"access\",\"switch\":\"\"},model:{value:(_vm.memberToAdd.createAccount),callback:function ($$v) {_vm.$set(_vm.memberToAdd, \"createAccount\", $$v)},expression:\"memberToAdd.createAccount\"}})],2),_c('prd-translate-button',{attrs:{\"slot\":\"footer-buttons\",\"variant\":\"primary\",\"translate-key\":\"CREATE_ACCOUNT_POROCEED_TO_GROUP\"},on:{\"click\":_vm.next},slot:\"footer-buttons\"})],1)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_MEMBER_STEP_2\"},slot:\"title\"}),(_vm.stepIndex == 1)?_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"ADD_TO_GROUPS\",\"params\":{ name: _vm.memberToAdd.createAccount ? _vm.memberToAdd.emailAddress : _vm.memberToAdd.firstName }},slot:\"header\"}),_c('b-form-group',[_c('b-form-checkbox-group',{attrs:{\"stacked\":\"\",\"id\":\"checkbox-group-1\",\"options\":_vm.groups},model:{value:(_vm.selectedGroupIds),callback:function ($$v) {_vm.selectedGroupIds=$$v},expression:\"selectedGroupIds\"}})],1),_c('template',{slot:\"footer-buttons\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"PROCEED_TO_ENERGY_DEDICATION\"},on:{\"click\":_vm.next}})],1)],2):_vm._e()],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ADD_MEMBER_STEP_3\"},slot:\"title\"}),(_vm.stepIndex == 2)?_c('prd-card',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"SET_UP_ENERGY_DEDICATION\"},slot:\"header\"}),_vm._l((_vm.selectedGroups),function(group,groupIndex){return [_c('b-form-group',{key:(\"group_\" + groupIndex),attrs:{\"label-cols\":\"\",\"label-for\":\"groupenergy\"}},[_c('template',{slot:\"label\"},[_vm._v(_vm._s(group.name))]),_c('b-input',{directives:[{name:\"translate\",rawName:\"v-translate:placeholder\",value:('ENTER_A_PERCENTAGE'),expression:\"'ENTER_A_PERCENTAGE'\",arg:\"placeholder\"}],attrs:{\"id\":\"groupenergy\",\"list\":\"input-list\",\"type\":\"number\"},on:{\"update\":function($event){return _vm.updateEnergy($event, group.groupId)}},model:{value:(group.amount),callback:function ($$v) {_vm.$set(group, \"amount\", _vm._n($$v))},expression:\"group.amount\"}}),_c('b-form-datalist',{attrs:{\"id\":\"input-list\",\"options\":_vm.percentageOptions}})],2)]}),_c('b-form-group',{attrs:{\"label-cols\":\"\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"element\":\"label\",\"translate-key\":\"TOTAL_ENERGY_DEDICATION\",\"for\":\"totalenergy\"},slot:\"label\"}),_c('prd-translate-text',{key:_vm.energySpent,attrs:{\"element\":\"span\",\"translate-key\":\"ENERGY_ALWAYS_100\",\"params\":{ energy: _vm.energySpent }}})],1),_c('template',{slot:\"footer-buttons\"},[_c('prd-translate-button',{attrs:{\"translate-key\":\"BACK_ONE_STEP\"},on:{\"click\":_vm.back}}),_c('prd-translate-button',{attrs:{\"action\":_vm.finalize,\"variant\":\"primary\",\"translate-key\":\"CREATE_ACCOUNT\"}})],1)],2):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport PageRender from '../../../models/PageRender';\r\nimport { groupHelper, teamService, teamHelper, personService, roleHelper, ecosystemHelper } from '@/main';\r\nimport moment from 'moment';\r\nimport Group from '@/models/Group';\r\nimport { VueEditor } from 'vue2-editor';\r\nimport to from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport Period from '@/models/Period';\r\n\r\n@Component({\r\n components: {\r\n VueEditor,\r\n },\r\n})\r\nexport default class TeamDirectoryAddMemberComponent extends PageRender {\r\n public stepIndex: number = 0;\r\n public energySpent: number = 0;\r\n public period: Period = null;\r\n public isNotPresentInOtherTeam: boolean = false;\r\n public selectedGroupIds: any[] = [];\r\n public disableStuff: boolean = false;\r\n public memberToAdd: any = {\r\n lastName: '',\r\n insertion: '',\r\n firstName: '',\r\n phoneNumber: '',\r\n emailAddress: '',\r\n personId: 0,\r\n groupMemberships: [],\r\n accessUntil: null,\r\n createAccount: false,\r\n };\r\n public validationMessages = [\r\n { step: 0, message: 'Fill in at least an email address or first and last name of the member you want to add.' },\r\n { step: 0, message: 'When access to team is set, e-mail address is required' },\r\n { step: 1, message: 'Select at least one group where the (new) team member will be member of' },\r\n { step: 2, message: 'The distributed energy needs to be an exact total of 100% and all groups
' },\r\n { step: 2, message: 'All groups need at least a valid energy percentage' },\r\n ];\r\n\r\n public percentageOptions = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100];\r\n // tslint:disable-next-line: variable-name\r\n private _groups: Group[] = [];\r\n\r\n public async mounted() {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await this.$router.push({ name: 'not-found' });\r\n }\r\n\r\n this.period = this.periods.find((p: Period) => p.periodId === periodModule.selectedPeriodObject.periodId);\r\n this._groups = await groupHelper.getGroups();\r\n }\r\n\r\n public get periods() {\r\n return periodModule.periods.map((period) => {\r\n return {\r\n ...period,\r\n name: moment(period.startDate).format(`MMMM 'YY`),\r\n };\r\n });\r\n }\r\n\r\n public get groups() {\r\n let list = [];\r\n\r\n if (this._groups && this._groups.length > 0) {\r\n list = this._groups.map((group) => {\r\n return { text: group.name, value: group.groupId };\r\n });\r\n }\r\n\r\n return list;\r\n }\r\n\r\n public get selectedGroups() {\r\n const list = [];\r\n const amount = this.selectedGroupIds.length === 1 ? 100 : 0;\r\n\r\n this._groups.forEach((group) => {\r\n if (this.selectedGroupIds.indexOf(group.groupId) > -1) {\r\n list.push({\r\n groupId: group.groupId,\r\n name: group.name,\r\n groupKey: group.groupKey,\r\n amount,\r\n });\r\n }\r\n });\r\n\r\n return list;\r\n }\r\n\r\n public updateEnergy(value?: number, groupId?: number) {\r\n this.energySpent = 0;\r\n\r\n if (value && groupId) {\r\n const fGroup = this.selectedGroups.find((x) => x.groupId === groupId);\r\n fGroup.amount = value * 1;\r\n }\r\n\r\n for (const group of this.selectedGroups) {\r\n this.energySpent += !isNaN(group.amount) ? parseInt(group.amount.toString()) : group.amount;\r\n }\r\n\r\n return this.energySpent;\r\n }\r\n\r\n public async searchEmailaddress() {\r\n this.showPending('CHECK_IF_MEMBER_EXISTS');\r\n const period = periodModule.periods.find((x) => x.periodId === this.period.periodId);\r\n\r\n const person = await personService.getPersonByEmailaddress(\r\n this.memberToAdd.emailAddress,\r\n moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM'),\r\n false,\r\n );\r\n\r\n if (person && person.personId) {\r\n this.memberToAdd.personId = person.personId;\r\n this.memberToAdd.firstName = person.firstName;\r\n this.memberToAdd.lastName = person.lastName;\r\n this.memberToAdd.createAccount = true;\r\n\r\n this.disableStuff = true;\r\n\r\n return this.clearAndShowSuccess('Person found and added to the add-member flow');\r\n }\r\n\r\n this.disableStuff = false;\r\n this.memberToAdd.personId = 0;\r\n\r\n this.clearNotifications();\r\n }\r\n\r\n public async next() {\r\n if (this.valid()) {\r\n this.stepIndex++;\r\n } else {\r\n this.showValidationError();\r\n }\r\n }\r\n\r\n public back() {\r\n this.stepIndex--;\r\n }\r\n\r\n public async finalize() {\r\n if (this.valid()) {\r\n await this.addMember();\r\n } else {\r\n this.showValidationError();\r\n }\r\n }\r\n\r\n public async addMember() {\r\n const period = moment(this.period.startDate, 'YYYY-MM-DD').format('YYYY-MM');\r\n this.showPending('ADD_MEMBER_PENDING');\r\n this.memberToAdd.groupMemberships = this.selectedGroups.map((x) => {\r\n return { groupId: x.groupId, energyDedication: x.amount };\r\n });\r\n\r\n this.memberToAdd.accessFrom = this.period.periodId;\r\n const [inviteErr] = await to(teamService.addMember(this.memberToAdd, teamHelper.currentTeamId, period));\r\n if (inviteErr) {\r\n return this.clearAndShowError(`Failed to add ${this.memberToAdd.emailAddress} to the team`, inviteErr);\r\n }\r\n this.clearAndShowSuccess(`Member (${this.memberToAdd.emailAddress}) is added to the team.`);\r\n\r\n this.clearNotifications();\r\n await this.$router.push({\r\n name: 'team-directory',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n tab: 'members',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n private showValidationError() {\r\n return this.showValidationErrors(\r\n this.validationMessages\r\n .filter((x) => x.step === this.stepIndex)\r\n .map((x) => {\r\n return x.message;\r\n }),\r\n );\r\n }\r\n\r\n private valid() {\r\n this.clearNotifications();\r\n\r\n if (this.stepIndex === 0) {\r\n return (\r\n (this.memberToAdd.firstName !== '' && this.memberToAdd.lastName !== '' && !this.memberToAdd.createAccoun) ||\r\n (this.memberToAdd.emailAddress !== '' && this.memberToAdd.createAccount && !this.isNotPresentInOtherTeam) ||\r\n (this.memberToAdd.emailAddress !== '' &&\r\n this.memberToAdd.firstName !== '' &&\r\n this.memberToAdd.lastName !== '' &&\r\n this.isNotPresentInOtherTeam &&\r\n this.memberToAdd.createAccoun)\r\n );\r\n } else if (this.stepIndex === 1) {\r\n return this.selectedGroupIds.length > 0;\r\n } else if (this.stepIndex === 2) {\r\n return (\r\n (this.memberToAdd.firstName !== '' && this.memberToAdd.lastName !== '' && !this.memberToAdd.createAccount) ||\r\n (this.memberToAdd.emailAddress !== '' && this.memberToAdd.createAccount && !this.isNotPresentInOtherTeam) ||\r\n (this.memberToAdd.emailAddress !== '' &&\r\n this.memberToAdd.firstName !== '' &&\r\n this.memberToAdd.lastName !== '' &&\r\n this.isNotPresentInOtherTeam &&\r\n this.memberToAdd.createAccount) ||\r\n (this.energySpent === 100 && this.selectedGroups.filter((x) => x.amount === 0).length === 0) ||\r\n this.selectedGroupIds.length > 0\r\n );\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./add-member.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./add-member.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add-member.vue?vue&type=template&id=3251dd1f&\"\nimport script from \"./add-member.ts?vue&type=script&lang=js&\"\nexport * from \"./add-member.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[_c('prd-toolbar',[(_vm.$root.inEditMode)?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"CREATE_GROUP\"}}):_vm._e(),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('router-link',{attrs:{\"to\":{\n name: 'team-directory-add-group',\n params: { ecosystem: _vm.$root.ecosystemHelper.ecosystemParam, period: _vm.$store.state.period._selectedPeriod },\n }}},[_c('prd-translate-button',{staticClass:\"ml-2\",attrs:{\"size\":\"sm\",\"type\":\"button\",\"variant\":\"primary\",\"translate-key\":\"CREATE_GROUP\"}})],1):_vm._e()],1),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.groups,\"columns\":_vm.groupsColumns,\"row-height\":36}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { groupHelper, memberHelper, teamHelper, ecosystemHelper } from '@/main';\r\nimport PageRender from '@/models/PageRender';\r\nimport Group from '@/models/Group';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class GroupsComponent extends PageRender {\r\n public groups: Group[] = null;\r\n public members: Person[] = [];\r\n public isLoading: boolean = true;\r\n\r\n public groupsColumns: any[] = [\r\n { cell: this.renderRouterLink, title: 'NAME', width: 300 },\r\n { field: 'purpose', title: 'GROUP_PURPOSE' },\r\n { cell: this.renderMembers, title: 'GROUP_MEMBERS', width: 125 },\r\n { cell: this.renderGroupLead, title: 'GROUP_LEAD', width: 300 },\r\n ];\r\n\r\n public async created() {\r\n const self = this;\r\n\r\n this.groups = await groupHelper.getGroups();\r\n this.members = await memberHelper.getMembers(true);\r\n\r\n self.isLoading = false;\r\n }\r\n\r\n public renderGroupLead(h, _, row): any {\r\n return this.renderMember(h, row.dataItem.groupLead);\r\n }\r\n\r\n public renderRouterLink(h, _, row) {\r\n const routeUrl = this.$router.resolve({\r\n name: 'team-directory-group',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n groupKey: row.dataItem.groupKey,\r\n groupId: row.dataItem.groupId,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'workspace',\r\n period: periodModule.selectedPeriod,\r\n },\r\n }).href;\r\n\r\n const props = {\r\n text: row.dataItem.name,\r\n url: routeUrl,\r\n entity: row.dataItem,\r\n };\r\n\r\n return h(Vue.component('grid-router-link'), { props });\r\n }\r\n\r\n public fullname(member: any): string {\r\n return `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./groups.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./groups.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./groups.vue?vue&type=template&id=8463af26&\"\nimport script from \"./groups.ts?vue&type=script&lang=js&\"\nexport * from \"./groups.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[_c('prd-toolbar',[_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"action\":_vm.leaveTeam,\"translate-key\":\"LEAVE_TEAM\"}}),(_vm.$root.roleHelper.isSiteAdmin())?_c('router-link',{attrs:{\"to\":{\n name: 'team-directory-add-member',\n params: { ecosystem: _vm.$root.ecosystemHelper.ecosystemParam, period: _vm.$store.state.period._selectedPeriod },\n }}},[_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"ADD_MEMBER\"}})],1):_vm._e(),_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"translate-key\":\"EXPORT_MEMBERS\"},on:{\"click\":_vm.exportMembers}})],1),_c('prd-grid-wrapper',{key:_vm.cacheKeyMember,attrs:{\"data-items\":_vm.members,\"columns\":_vm.memberColumns,\"row-height\":41}}),_c('b-modal',{ref:\"inviteMember\",attrs:{\"id\":\"invite-member\",\"title\":\"Upgrade member\",\"size\":\"sm\"}},[_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\",value:({ key: 'MODALS.UPGRADE_ACCOUNT_TO_FULL', params: { name: _vm.invitePersonModel.name } }),expression:\"{ key: 'MODALS.UPGRADE_ACCOUNT_TO_FULL', params: { name: invitePersonModel.name } }\"}],staticClass:\"font-italic my-2\"}),_c('b-form',{staticClass:\"mt-5\"},[_c('b-form-group',[_c('label',{attrs:{\"for\":\"emailaddress\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"EMAIL\"}})],1),_c('b-input',{directives:[{name:\"translate\",rawName:\"v-translate:placeholder\",value:('EMAIL'),expression:\"'EMAIL'\",arg:\"placeholder\"}],attrs:{\"id\":\"emailaddress\",\"type\":\"text\"},model:{value:(_vm.invitePersonModel.emailAddress),callback:function ($$v) {_vm.$set(_vm.invitePersonModel, \"emailAddress\", $$v)},expression:\"invitePersonModel.emailAddress\"}})],1)],1),_c('b-form-group',{attrs:{\"label-for\":\"period\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ACCESS_FROM\",\"element\":\"span\"}}),_c('span',{staticClass:\"k-icon k-i-info cursor-pointer ml-2\",attrs:{\"id\":\"period-info\"}}),_c('prd-tooltip',{attrs:{\"target\":\"period-info\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ACCESS_FROM_INFO\"}})],1)],1),_c('b-form-select',{attrs:{\"options\":_vm.periods,\"id\":\"period\"},model:{value:(_vm.accessFromPeriod),callback:function ($$v) {_vm.accessFromPeriod=$$v},expression:\"accessFromPeriod\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_PERIOD'),expression:\"'SELECT_PERIOD'\"}],domProps:{\"value\":null}})])],2)],2),_c('b-form-group',{attrs:{\"label-for\":\"period2\"}},[_c('template',{slot:\"label\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ACCESS_UNTIL\",\"element\":\"span\"}}),_c('span',{staticClass:\"k-icon k-i-info cursor-pointer ml-2\",attrs:{\"id\":\"period-info2\"}}),_c('prd-tooltip',{attrs:{\"target\":\"period-info2\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"ACCESS_UNTIL_INFO\"}})],1)],1),_c('b-form-select',{attrs:{\"options\":_vm.periods,\"id\":\"period2\"},model:{value:(_vm.accessUntilPeriod),callback:function ($$v) {_vm.accessUntilPeriod=$$v},expression:\"accessUntilPeriod\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_PERIOD'),expression:\"'SELECT_PERIOD'\"}],domProps:{\"value\":null}})])],2)],2),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('div',{staticClass:\"add-member-button text-center\"},[_c('prd-translate-button',{staticClass:\"d-inline-block px-2 text-primary\",attrs:{\"type\":\"submit\",\"translate-key\":\"SEND_INVITE\"},on:{\"click\":_vm.upgradeAccount}})],1)])],1),_c('move-pl-modal',{ref:\"transferPAndLModal\",on:{\"finished\":_vm.refreshMembersGrid}}),_c('energy-dedication-modal',{ref:\"energyDedicationEdit\",on:{\"energy-dedications-updated\":_vm.reloadEnergyDedications}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { BModal } from 'bootstrap-vue';\r\nimport { teamService, loginHelper, memberHelper, teamHelper, personService, roleHelper, financeService, groupService } from '@/main';\r\nimport to from 'await-to-js';\r\nimport PageRender from '@/models/PageRender';\r\nimport { Member } from '@/models/Member';\r\nimport { AxiosResponse } from 'axios';\r\nimport FinancialActivity from '@/models/FinancialActivity';\r\nimport { saveExcel } from '@progress/kendo-vue-excel-export';\r\nimport moment from 'moment';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport EnergyDedicationModalComponent from '@/components/modals/energy-dedication-modal';\r\nimport { PrivacyLevel } from '@/models/PrivacyLevel';\r\nimport MovePLModalComponent from '@/components/modals/move-pl-modal';\r\n\r\n@Component\r\nexport default class MembersComponent extends PageRender {\r\n public members: Person[] = [];\r\n public admins: Member[] = [];\r\n public isLoading: boolean = true;\r\n public cacheKeyMember: number = 0;\r\n public invitePersonModel = { name: null, personId: null, emailAddress: null, teamId: null, accessFrom: null, accessUntil: null };\r\n public accessFromPeriod: number = null;\r\n public accessUntilPeriod: number = null;\r\n\r\n public memberColumns: any[] = [\r\n { cell: this.renderMemberWithIcon, title: 'NAME', field: 'firstName' },\r\n { cell: this.renderMemberships, title: 'MEMBERS_OF', field: 'firstName' },\r\n { title: 'EMAIL', field: 'emailAddress' },\r\n { title: 'PHONE', field: 'phoneNumber' },\r\n { title: 'ACTIONS', cell: this.renderActions, width: 150 },\r\n ];\r\n\r\n public exportMemberGridColumns: any[] = [\r\n { title: 'EMAIl', field: 'emailAddress' },\r\n { title: 'FIRST_NAME', field: 'firstName' },\r\n { title: 'LAST_NAME', field: 'lastName' },\r\n { title: 'PHONE', field: 'phoneNumber' },\r\n { title: 'GROUPS', field: 'groups' },\r\n ];\r\n\r\n public $refs!: {\r\n inviteMember: BModal;\r\n transferPAndLModal: MovePLModalComponent;\r\n energyDedicationEdit: EnergyDedicationModalComponent;\r\n };\r\n\r\n public newMemberForm: any = {\r\n firstName: '',\r\n insertion: '',\r\n lastName: '',\r\n };\r\n\r\n get periods() {\r\n return periodModule.periods.map((period) => {\r\n return {\r\n text: moment(period.startDate).format(`MMMM 'YY`),\r\n value: period.periodId,\r\n };\r\n });\r\n }\r\n\r\n public async created() {\r\n const self = this;\r\n\r\n this.members = await memberHelper.getMembers(true);\r\n this.accessFromPeriod = periodModule.selectedPeriodObject.periodId;\r\n\r\n if (roleHelper.checkAccess(PrivacyLevel.FinanceEmployee)) {\r\n this.memberColumns.splice(2, 0, { cell: this.renderEnergyDedication, title: 'ENERGY_DEDICATION' });\r\n }\r\n\r\n self.isLoading = false;\r\n }\r\n\r\n public renderMemberWithIcon(h, _, row) {\r\n return this.renderMember(h, row.dataItem);\r\n }\r\n\r\n public renderFullname(h, _, row) {\r\n const member = row.dataItem;\r\n const name = `${member.firstName} ${member.insertion ? member.insertion : ''} ${member.lastName}`;\r\n return h('td', [name]);\r\n }\r\n\r\n public renderActions(h, _, row: any): any {\r\n const actions = [];\r\n if (!row.dataItem.hasAccount && roleHelper.isSiteAdmin()) {\r\n actions.push({ title: 'Upgrade account', function: this.showUpgradeAccountModal });\r\n }\r\n\r\n if (row.dataItem.hasAccount && roleHelper.isSiteAdmin()) {\r\n actions.push({ title: 'Downgrade account', function: this.downgradeAccount });\r\n }\r\n\r\n if ((roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) && periodModule.periods[0] === periodModule.selectedPeriodObject) {\r\n actions.push({ title: 'Remove member from team', function: this.removeMemberFromTeam });\r\n } else if ((roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) && periodModule.periods[0] !== periodModule.selectedPeriodObject) {\r\n actions.push({\r\n title: 'Remove member from team (only available in most recent period)',\r\n disabled: true,\r\n function: () => {\r\n return;\r\n },\r\n });\r\n }\r\n\r\n if (actions && actions.length > 0) {\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n } else {\r\n return h('td');\r\n }\r\n }\r\n\r\n public async leaveTeam() {\r\n const result = await this.checkValidLeave(loginHelper.getUser().personId);\r\n if (!result) {\r\n return this.clearAndShowError('LEAVE_TEAM_FINANCE_ERROR', null);\r\n }\r\n this.showPending('LEAVE_TEAM_PENDING');\r\n const [err] = await to(teamService.unenroll(teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError(`LEAVE_TEAM_FAILED`, err);\r\n }\r\n\r\n this.clearAndShowSuccess(`LEAVE_TEAM_SUCCESS`);\r\n return this.$router.push({ name: 'home', query: { reloadProfile: 'true' } });\r\n }\r\n\r\n public async removeMemberFromTeam(item: Person) {\r\n const result = await this.checkValidLeave(item.personId);\r\n if (!result) {\r\n await this.$refs.transferPAndLModal.init(item);\r\n return this.$refs.transferPAndLModal.show();\r\n }\r\n\r\n const groups = await groupService.getGroups(teamHelper.currentTeamId, periodModule.selectedPeriod);\r\n const foundGroup = groups.data.find((x) => x.groupLead && x.groupLead.memberId === item.personId);\r\n if (foundGroup) {\r\n return this.clearAndShowError(`The member you're trying to remove is still a group lead (${foundGroup.name})`, null);\r\n }\r\n\r\n this.showPending('REMOVING_MEMBER_PENDING');\r\n const [err] = await to(teamService.removeMemberFromTeam(item.personId, teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError(`REMOVING_MEMBER_FAILED`, err);\r\n }\r\n\r\n this.clearAndShowSuccess(`REMOVING_MEMBER_SUCCESS`);\r\n await this.refreshMembersGrid();\r\n }\r\n\r\n public async checkValidLeave(personId: number) {\r\n const [err, response] = await to>(\r\n financeService.getPersonFinancialActityInTeam(teamHelper.getTeamId(), personId, periodModule.selectedPeriod),\r\n );\r\n\r\n if (err) {\r\n this.clearAndShowError('Failed to check financial activity for this member.', err);\r\n return false;\r\n }\r\n\r\n return !response.data.isCompensated;\r\n }\r\n\r\n public showUpgradeAccountModal(item: Person) {\r\n const modal = this.$refs.inviteMember;\r\n modal.show();\r\n\r\n this.invitePersonModel.emailAddress = item && item.emailAddress && item.emailAddress.indexOf('@') > -1 ? item.emailAddress : '';\r\n this.invitePersonModel.personId = item.personId;\r\n this.invitePersonModel.name = new Member(item).getFullName();\r\n this.invitePersonModel.teamId = teamHelper.getTeamId();\r\n }\r\n\r\n public async upgradeAccount() {\r\n this.showPending('INVITE_PENDING');\r\n this.invitePersonModel.accessFrom = this.accessFromPeriod;\r\n this.invitePersonModel.accessUntil = this.accessUntilPeriod;\r\n\r\n const [err] = await to(personService.invitePerson(this.invitePersonModel, periodModule.selectedPeriod));\r\n if (err) {\r\n return this.clearAndShowError(`INVITE_FAILED`, err);\r\n }\r\n\r\n this.clearAndShowSuccess('INVITE_SUCCESS');\r\n\r\n const modal = this.$refs.inviteMember;\r\n modal.hide();\r\n }\r\n\r\n public async downgradeAccount(item: Person) {\r\n this.showPending('DOWNGRADE_PENDING');\r\n const [err] = await to(personService.downgrageAccount(item.personId));\r\n if (err) {\r\n return this.clearAndShowError(`DOWNGRADE_FAILED`, err);\r\n }\r\n\r\n this.clearAndShowSuccess('DOWNGRADE_SUCCESS');\r\n }\r\n\r\n public async refreshMembersGrid() {\r\n this.members = await memberHelper.getMembers(true);\r\n this.cacheKeyMember++;\r\n }\r\n\r\n public getPeriodString() {\r\n return moment(periodModule.selectedPeriodObject.startDate, 'YYYY-MM-DD').format(`MMMM 'YY`);\r\n }\r\n\r\n public async exportMembers() {\r\n const members = [];\r\n this.members.forEach((member) => {\r\n const memberObj = new Member(member);\r\n members.push({\r\n emailAddress: memberObj.emailAddress,\r\n firstName: memberObj.firstName,\r\n lastName: (memberObj.insertion ? memberObj.insertion + ' ' : '') + memberObj.lastName,\r\n phoneNumber: memberObj.phoneNumber ? memberObj.phoneNumber : '',\r\n groups: memberObj.groupMemberships.map((mem) => mem.name).join(','),\r\n });\r\n });\r\n\r\n saveExcel({\r\n data: members,\r\n fileName: `Team-${teamHelper.currentTeamId}-members-${moment().format('YYYY-MM-DD HH:mm:')}`,\r\n columns: this.exportMemberGridColumns,\r\n });\r\n }\r\n\r\n public reloadEnergyDedications() {\r\n // implement;\r\n }\r\n\r\n public renderEnergyDedication(h, _, row) {\r\n if (row.dataItem.groupMemberships.length > 0) {\r\n const props = {\r\n value: row.dataItem.energyDedication,\r\n text: 'Edit energy',\r\n showPercentage: true,\r\n action: async () => {\r\n await this.openEditEnergyEdicationModal(row.dataItem);\r\n },\r\n };\r\n return h(Vue.component('grid-percentage'), { props });\r\n }\r\n\r\n return h('td');\r\n }\r\n\r\n public async openEditEnergyEdicationModal(item: Person) {\r\n const self = this;\r\n const modal = self.$refs.energyDedicationEdit;\r\n const memberObj = new Member(item);\r\n await modal.setMember(memberObj);\r\n modal.show();\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./members.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./members.vue?vue&type=template&id=6ec75ac6&\"\nimport script from \"./members.ts?vue&type=script&lang=js&\"\nexport * from \"./members.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (_vm.isLoading)?_c('spinner'):_c('div',[_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('b-tabs',{attrs:{\"vertical\":\"\",\"no-nav-style\":\"\",\"nav-wrapper-class\":\"border-right\",\"nav-class\":\"nav-tabs-vertical\",\"content-class\":\"\"}},[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"TEAM_PROFILE\"},slot:\"title\"}),_c('div',{staticClass:\"p-3\"},[_c('h4',{staticClass:\"mb-5\"},[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"TEAM_PROFILE\"},slot:\"title\"})],1),(_vm.isUpdatingTeam)?_c('spinner',{attrs:{\"color\":\"white\",\"center\":true}}):_c('div',[_c('b-form-group',[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_NAME\"}}),_c('b-input',{model:{value:(_vm.team.name),callback:function ($$v) {_vm.$set(_vm.team, \"name\", $$v)},expression:\"team.name\"}})],1),_c('b-form-group',{staticClass:\"mt-3\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_LEADER\"}}),_c('b-input-group',[_c('b-form-input',{attrs:{\"disabled\":\"\",\"value\":_vm.getTeamLeadName()}}),_c('b-input-group-append',[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.openTransferLeaderShipModal}},[_vm._v(\"Transfer leadership\")])],1)],1)],1)],1),_c('b-form-group',[_c('prd-translate-button',{attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"action\":_vm.updateTeam,\"translate-key\":\"SAVE_TEAM_PROFILE\"}})],1)],1)],1),(_vm.$root.roleHelper.isSiteAdmin())?_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ROLE_MANAGEMENT\"},slot:\"title\"}),_c('roles-settings')],1):_vm._e()],1)],1),_c('b-modal',{ref:\"transferLeaderShipModal\"},[_c('prd-translate-text',{attrs:{\"slot\":\"modal-header\",\"element\":\"h2\",\"translate-key\":\"TRANSFER_TEAM_LEAD_TITLE\"},slot:\"modal-header\"},[_vm._v(\"Transfer Team leadership\")]),_c('prd-multiselect',{attrs:{\"placeholder\":\"Select the new team lead\",\"track-by\":\"personId\",\"custom-label\":function (p) {\n return [p.firstName, p.insertion, p.lastName].join(' ');\n },\"hideSelected\":true,\"showLabels\":false,\"allowEmpty\":false,\"options\":_vm.teamMembers},model:{value:(_vm.selectedTeamLead),callback:function ($$v) {_vm.selectedTeamLead=$$v},expression:\"selectedTeamLead\"}}),_c('prd-translate-button',{attrs:{\"slot\":\"modal-footer\",\"variant\":\"primary\",\"translate-key\":\"TRANSFER_TEAM_LEAD\"},on:{\"click\":_vm.transferLeaderShip},slot:\"modal-footer\"},[_vm._v(\"Transfer\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport PageRender from '@/models/PageRender';\r\nimport Team from '@/models/Team';\r\nimport to from 'await-to-js';\r\nimport { memberHelper, teamService } from '@/main';\r\nimport { teamsModule } from '@/store/modules/teams';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { Person } from '@/models/Person';\r\nimport { BModal } from 'bootstrap-vue';\r\n\r\n@Component\r\nexport default class SettingsComponent extends PageRender {\r\n public failedSavingSettings: boolean = false;\r\n public failedInvites: string[] = [];\r\n public isLoading: boolean = true;\r\n public team: Team = new Team();\r\n public teamMembers: Person[] = [];\r\n public isUpdatingTeam: boolean = false;\r\n public selectedTeamLead: Person = null;\r\n\r\n public $refs!: {\r\n transferLeaderShipModal: BModal;\r\n };\r\n\r\n public async created() {\r\n const self = this;\r\n this.team = await this.getTeam();\r\n this.teamMembers = await memberHelper.getMembers();\r\n self.isLoading = false;\r\n }\r\n\r\n public getTeamLeadName() {\r\n if (!this.team.teamLead) {\r\n return 'N/A';\r\n }\r\n\r\n return [this.team.teamLead.firstName, this.team.teamLead.insertion, this.team.teamLead.lastName].filter((x) => x && x.length > 0).join(' ');\r\n }\r\n\r\n public async transferLeaderShip() {\r\n this.showPending('TRANSFER_TEAM_LEAD_PENDING');\r\n const [err] = await to(teamService.transferTeamLeaderShip(this.selectedTeamLead));\r\n if (err) {\r\n this.clearAndShowError('TRANSFER_TEAM_LEAD_FAILED', null);\r\n return;\r\n }\r\n\r\n this.showSuccess('TRANSFER_TEAM_LEAD_SUCCESS');\r\n this.$refs.transferLeaderShipModal.hide();\r\n }\r\n\r\n public openTransferLeaderShipModal() {\r\n this.$refs.transferLeaderShipModal.show();\r\n }\r\n\r\n public async updateTeam() {\r\n this.isUpdatingTeam = true;\r\n const [err] = await to(teamService.updateTeam(this.team));\r\n if (err) {\r\n this.clearAndShowError('UPDATE_TEAM_PROFILE_FAILED', null);\r\n } else {\r\n this.clearAndShowSuccess('UPDATE_TEAM_PROFILE_SUCCESS');\r\n }\r\n await teamsModule.fetchTeams();\r\n await profileModule.loadBrightProfileIfNeeded(true);\r\n this.isUpdatingTeam = false;\r\n }\r\n\r\n private async getTeam() {\r\n const teamId = parseInt(this.$route.params.teamId);\r\n const period = this.$route.params.period;\r\n const [err, response] = await to(teamService.getTeam(teamId, period));\r\n return err ? new Team() : response.data;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./settings.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./settings.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./settings.vue?vue&type=template&id=56290b99&\"\nimport script from \"./settings.ts?vue&type=script&lang=js&\"\nexport * from \"./settings.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('div',{attrs:{\"if\":\"groups && members\"}},[_c('div',{},[_c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link groups\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_GROUPS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_GROUPS'),expression:\"'TEAM_GROUPS'\"}],staticClass:\"nav-link groups\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('groups')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link members\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_MEMBERS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_MEMBERS'),expression:\"'TEAM_MEMBERS'\"}],staticClass:\"nav-link members\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('members')}}})]),(_vm.$root.roleHelper.isSiteAdmin())?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link settings\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_SETTINGS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_SETTINGS'),expression:\"'TEAM_SETTINGS'\"}],staticClass:\"nav-link settings\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('settings')}}})]):_vm._e()])]),_c('div',{staticClass:\"tab-content\"},[_c(_vm.currentTabComponent,{tag:\"component\"})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport PageRender from '../../../models/PageRender';\r\nimport { $router } from '@/main';\r\nimport jQuery from 'jquery';\r\n\r\n@Component\r\nexport default class TeamFinanceComponent extends PageRender {\r\n public tab: string = null;\r\n public tabs: string[] = ['groups', 'members', 'settings'];\r\n public currentTabComponent: string = '';\r\n\r\n public async created() {\r\n await this.checkPeriodParam();\r\n }\r\n\r\n public async mounted() {\r\n this.changeTab(this.$route.params.tab);\r\n }\r\n\r\n public changeTab(tab: string): void {\r\n if (this.tabs.indexOf(tab) === -1) {\r\n tab = this.tabs[0];\r\n }\r\n\r\n if (tab !== this.$route.params.tab) {\r\n const params = this.$route.params;\r\n params.tab = tab;\r\n // tslint:disable-next-line: no-floating-promises\r\n $router.push({ name: 'team-directory', params });\r\n } else {\r\n this.doActiveClass(tab);\r\n this.currentTabComponent = 'team-directory-' + tab;\r\n }\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./directory.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./directory.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./directory.vue?vue&type=template&id=25ea7ff0&\"\nimport script from \"./directory.ts?vue&type=script&lang=js&\"\nexport * from \"./directory.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('div',{staticClass:\"card-deck mb-3\"},[_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_vm._v(\" Distributed expenses amount: \"),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getDistributedInvoiceAmount())}})])],1),_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_vm._v(\"Open expenses amount: \"),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getOpenInvoiceAmount())}})])],1)],1),_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"text\"},[_vm._v(\"Search\")]),_c('b-form-input',{directives:[{name:\"translate-placeholder\",rawName:\"v-translate-placeholder\",value:('PLACEHOLDER_ANYTHING_YOU_LIKE'),expression:\"'PLACEHOLDER_ANYTHING_YOU_LIKE'\"}],attrs:{\"id\":\"free-seach\"},model:{value:(_vm.textSearch),callback:function ($$v) {_vm.textSearch=$$v},expression:\"textSearch\"}})],1),_c('div',[_c('b-form-checkbox',{staticClass:\"mr-2 text-nowrap d-inline-block\",model:{value:(_vm.onlyNotYetDistributed),callback:function ($$v) {_vm.onlyNotYetDistributed=$$v},expression:\"onlyNotYetDistributed\"}},[_vm._v(\" Show not yet distributed \")]),_c('b-form-checkbox',{staticClass:\"mr-2 text-nowrap d-inline-block\",model:{value:(_vm.onlyRecurring),callback:function ($$v) {_vm.onlyRecurring=$$v},expression:\"onlyRecurring\"}},[_vm._v(\" Show non-recurring \")]),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length == 0),expression:\"getSelectedInvoices().length == 0\"}],staticClass:\"mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openModalImportInvoices}},[_vm._v(\" Import expenses (.csv) \")]),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length > 0),expression:\"getSelectedInvoices().length > 0\"}],staticClass:\"btn btn-sm btn-primary mr-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.deleteRow}},[_vm._v(\" Delete expense(s) \")]),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length > 0),expression:\"getSelectedInvoices().length > 0\"}],staticClass:\"mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed()},on:{\"click\":_vm.setSelectedExpensesAsNotRecurring}},[_vm._v(\" Toggle as not recurring \")]),(_vm.getSelectedInvoices().length > 0)?_c('b-button',{staticClass:\"mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\"},on:{\"click\":_vm.openChangeLegalEntityRefModal}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEGAL_ENTITY_SWITCH_MODAL_BUTTON\",\"translate-group\":\"MODALS\"}})],1):_vm._e(),(_vm.getSelectedInvoices().length > 0)?_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed()},on:{\"click\":_vm.openModalMultiDistribution}},[_vm._v(\" Move expenses to an account \")]):_vm._e(),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length == 1),expression:\"getSelectedInvoices().length == 1\"}],staticClass:\"btn btn-sm btn-primary mr-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openAmortizeModal}},[_vm._v(\" Amortize expense \")]),_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.reloadGrid(_vm.type)}}},[_c('i',{staticClass:\"icon-rotate-cw\"})])],1)]),(_vm.isReloadingGrid)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{staticClass:\"mt-5 d-inline-block\"})],1):_c('grid',{key:_vm.reloadInvoicesGrid,style:(_vm.calculateInvoicesGridHeight(_vm.getData())),attrs:{\"data-items\":_vm.getData(),\"columns\":_vm.invoiceColumns,\"edit-field\":'inEdit',\"rowRender\":_vm.rowRender,\"row-height\":40,\"pageable\":{\n buttonCount: 5,\n info: true,\n type: 'numeric',\n pageSizes: [5, 10, 25, 50],\n previousNext: true,\n },\"skip\":_vm.skip,\"take\":_vm.take,\"total\":_vm.getTotal(),\"resizable\":true,\"selected-field\":_vm.selectedField,\"disabled\":_vm.disableGrid},on:{\"rowclick\":_vm.rowClick,\"pagechange\":_vm.pageChangeHandler,\"selectionchange\":_vm.onSelectionChange,\"headerselectionchange\":_vm.onHeaderSelectionChange,\"saved\":_vm.saveRow,\"changed\":_vm.updateDistribution}},[_c('grid-norecords',[_c('div',[_vm._v(\" No expenses, change your month or edit your filters to (re)load the expenses \")])])],1),_c('import-modal',{ref:\"importInvoice\",attrs:{\"type\":_vm.type,\"groups\":_vm.groups,\"persons\":_vm.members,\"team\":_vm.team},on:{\"invoices-imported\":function($event){return _vm.reloadGrid(_vm.type)}}}),_c('b-modal',{ref:\"deleteConfirm\",attrs:{\"id\":\"deleteConfirm\",\"title\":\"Confirm deletion\",\"size\":\"sm\"}},[_vm._v(\" Are you sure you want to delete these rows? \"),_c('br'),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.cancelDelete}},[_vm._v(\"No\")]),_c('b-button',{staticClass:\"d-inline-block\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.confirmDelete}},[_vm._v(\"Yes\")])],1)]),(_vm.getSelectedInvoices().length > 0)?_c('move-to-account-modal',{ref:\"multiIncomeDistributionModal\",attrs:{\"is-expense\":\"true\",\"options-list\":_vm.optionListReceivers(),\"selected-invoices\":_vm.getSelectedInvoices()},on:{\"invoice-moved\":function($event){return _vm.reloadGrid(_vm.type)}}}):_vm._e(),_c('legal-entity-change-modal',{ref:\"legalEntityRef\",attrs:{\"invoices\":_vm.getSelectedInvoices()},on:{\"invoices-updated\":function($event){return _vm.reloadGrid(_vm.type)}}}),(_vm.selectedInvoice)?_c('amortize-modal',{ref:\"amortizeModal\",attrs:{\"invoice\":_vm.selectedInvoice,\"is-expense\":true,\"optionsList\":_vm.optionListReceivers()},on:{\"amortization-set\":_vm.removeAndSaveCurrentDistributions}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport { financeService, periodFilterHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport BaseFinanceTeamInvoicePage from './BaseFinanceTeamInvoicePage';\r\n\r\n@Component\r\nexport default class TeamFinanceExpenses extends BaseFinanceTeamInvoicePage {\r\n public type: InvoiceType = InvoiceType.Expenses;\r\n\r\n @Watch('onlyNotYetDistributed')\r\n public onFailureFilterChange() {\r\n this.filterInvoices();\r\n }\r\n\r\n @Watch('onlyRecurring')\r\n public onRecurringChange() {\r\n this.filterInvoices();\r\n }\r\n\r\n @Watch('textSearch')\r\n public onTextFilterChange(val, oldVal) {\r\n if ((val && val.length > 2) || (oldVal && oldVal.length > val.length)) {\r\n this.filterInvoices();\r\n }\r\n }\r\n\r\n public async created() {\r\n this.invoiceColumns.push({\r\n title: 'IS_RECURRING',\r\n width: 125,\r\n field: 'invoice.isRecurring',\r\n locked: true,\r\n filterable: true,\r\n cell: this.renderRecurring,\r\n filter: 'boolean',\r\n headerCell: this.translate,\r\n });\r\n\r\n await this.init(this.type);\r\n\r\n this.isLoaded = true;\r\n }\r\n\r\n public optionListReceivers(): any[] {\r\n const list = this.groups.map((sender) => {\r\n if (sender) {\r\n return { value: sender.accountId, text: sender.name };\r\n }\r\n });\r\n\r\n list.push({ value: null, text: '-------------------------------------' });\r\n\r\n this.members.forEach((member) => {\r\n list.push({ value: member.accountId, text: member.name });\r\n });\r\n\r\n return list;\r\n }\r\n\r\n public rowClick(e) {\r\n if (periodFilterHelper.isCurrentPeriodClosed()) {\r\n return;\r\n }\r\n\r\n const invoice = this.invoices.find((item) => item.invoice.invoiceId === this.editID);\r\n this.invoices.forEach((expense) => (expense[this.selectedField] = false));\r\n if (invoice) {\r\n Vue.set(invoice, 'inEdit', false);\r\n }\r\n\r\n this.editID = e.dataItem.invoice.invoiceId;\r\n Vue.set(e.dataItem, 'inEdit', true);\r\n }\r\n\r\n public onHeaderSelectionChange(event) {\r\n const checked = event.event.target.checked;\r\n Vue.set(this, 'invoices', this.invoices.map((item) => ({ ...item, selected: checked })));\r\n }\r\n\r\n public onSelectionChange(event) {\r\n Vue.set(event.dataItem, 'inEdit', false);\r\n Vue.set(event.dataItem, this.selectedField, !event.dataItem[this.selectedField]);\r\n }\r\n\r\n public pageChangeHandler(event) {\r\n this.skip = event.page.skip;\r\n this.take = event.page.take;\r\n }\r\n\r\n public async setSelectedExpensesAsNotRecurring() {\r\n const self = this;\r\n const expenses = this.getSelectedInvoices();\r\n const list = [];\r\n\r\n expenses.forEach((expense: DistributedInvoice) => {\r\n if (expense) {\r\n list.push({ InvoiceId: expense.invoice.invoiceId, IsRecurring: expense.invoice.isRecurring = !expense.invoice.isRecurring });\r\n }\r\n });\r\n\r\n this.showPending('UPDATE_RECURRENCES_EXPENSES_PENDING');\r\n const [err] = await to(financeService.setInvoicesNotRercurring(list));\r\n if (err) {\r\n return self.clearAndShowError('UPDATE_RECURRENCES_EXPENSES_FAILED', null);\r\n }\r\n self.clearAndShowSuccess('UPDATE_RECURRENCES_EXPENSES_SUCCESS');\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-expenses.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-expenses.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-expenses.vue?vue&type=template&id=9796461e&\"\nimport script from \"./team-finance-expenses.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-expenses.ts?vue&type=script&lang=js&\"\nimport style0 from \"./team-finance-expenses.vue?vue&type=style&index=0&id=9796461e&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.groupOverviewData,\"columns\":_vm.groupResultColumns,\"row-height\":34}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { resultService, teamHelper } from '@/main';\r\nimport FinanceTeam from '../../../../models/FinanceTeam';\r\nimport BaseFinancePage from './BaseFinancePage';\r\nimport Vue from 'vue';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TeamFinanceGroupOverview extends BaseFinancePage {\r\n public groupOverviewData: any[] = [];\r\n public teamFinance: FinanceTeam;\r\n public isLoaded: boolean = false;\r\n public groupResultColumns: any[] = [\r\n { field: 'group.name', title: 'GROUP_NAME', cell: this.renderGroupFinanceLink },\r\n { cell: this.formatResultValue, title: 'RESULT' },\r\n { cell: this.formatBalanceValue, title: 'BALANCE' },\r\n { cell: this.formatOpenInvoicesValue, title: 'OPEN_INVOICES' },\r\n { cell: this.formatOpenExpensesValue, title: 'OPEN_EXPENSES' },\r\n ];\r\n\r\n public async mounted() {\r\n const period = periodModule.selectedPeriod;\r\n const results = await resultService.getGroupResults(teamHelper.getTeamId(), period, period);\r\n this.groupOverviewData = orderBy(results.items[0].item.groupResults, [{ field: 'group.name', dir: 'asc' }]);\r\n this.isLoaded = true;\r\n }\r\n\r\n public formatOpenInvoicesValue(h, _, row) {\r\n const props = { value: row.dataItem.openInvoiceAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatOpenExpensesValue(h, _, row) {\r\n const props = { value: row.dataItem.openExpenseAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-group-overview.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-group-overview.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-group-overview.vue?vue&type=template&id=616f6d72&\"\nimport script from \"./team-finance-group-overview.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-group-overview.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('prd-loader',{attrs:{\"absolute\":\"\"}}):_c('div',[_c('div',{staticClass:\"card-deck mb-3\"},[_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"DISTRIBUTED_INVOICES_AMOUNT\"}}),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getDistributedInvoiceAmount())}})],1)],1),_c('b-card',{staticClass:\"col-6\"},[_c('b-card-title',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"OPEN_INVOICES_AMOUNT\"}}),_c('span',{staticClass:\"float-right font-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.getOpenInvoiceAmount())}})],1)],1)],1),_c('prd-toolbar',{staticClass:\"justify-content-between\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('prd-translate-text',{staticClass:\"mr-2 px-1\",attrs:{\"translate-key\":\"SEARCH\",\"inline\":true}}),_c('b-input',{directives:[{name:\"translate\",rawName:\"v-translate:placeholder\",value:('PLACEHOLDER_ANYTHING_YOU_LIKE'),expression:\"'PLACEHOLDER_ANYTHING_YOU_LIKE'\",arg:\"placeholder\"}],attrs:{\"id\":\"free-seach\"},model:{value:(_vm.textSearch),callback:function ($$v) {_vm.textSearch=$$v},expression:\"textSearch\"}})],1),_c('div',[_c('b-form-checkbox',{staticClass:\"mt-2 mr-2 mb-0 text-nowrap d-inline-block\",model:{value:(_vm.onlyNotYetDistributed),callback:function ($$v) {_vm.onlyNotYetDistributed=$$v},expression:\"onlyNotYetDistributed\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SHOW_NOT_YET_DISTRIBUTED\"}})],1),_c('prd-translate-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length == 0),expression:\"getSelectedInvoices().length == 0\"}],staticClass:\"mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"translate-key\":\"IMPORT_INVOICES_CSV\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openModalImportInvoices}}),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length > 0),expression:\"getSelectedInvoices().length > 0\"}],staticClass:\"btn btn-sm btn-primary mr-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.deleteRow}},[_vm._v(\" Delete selected invoices \")]),(_vm.getSelectedInvoices().length > 0)?_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\"},on:{\"click\":_vm.openChangeLegalEntityRefModal}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"LEGAL_ENTITY_SWITCH_MODAL_BUTTON\",\"translate-group\":\"MODALS\"}})],1):_vm._e(),(_vm.getSelectedInvoices().length > 0)?_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed()},on:{\"click\":_vm.openModalMultiDistribution}},[_vm._v(\" Move selected income to an account \")]):_vm._e(),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.getSelectedInvoices().length == 1),expression:\"getSelectedInvoices().length == 1\"}],staticClass:\"btn btn-sm btn-primary mr-2\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openAmortizeModal}},[_vm._v(\" Amortize invoice \")]),_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.reloadGrid(_vm.type)}}},[_c('i',{staticClass:\"icon-rotate-cw\"})])],1)]),(_vm.isReloadingGrid)?_c('prd-loader'):_c('grid',{key:_vm.reloadInvoicesGrid,style:(_vm.calculateInvoicesGridHeight(_vm.getData())),attrs:{\"data-items\":_vm.getData(),\"columns\":_vm.invoiceColumns,\"edit-field\":'inEdit',\"rowRender\":_vm.renderNonEqualLEgalEntities,\"pageable\":true,\"row-height\":40,\"skip\":_vm.skip,\"pageSize\":_vm.take,\"total\":_vm.getTotal(),\"resizable\":true,\"selected-field\":_vm.selectedField,\"disabled\":_vm.disableGrid},on:{\"rowclick\":_vm.rowClick,\"pagechange\":_vm.pageChangeHandler,\"selectionchange\":_vm.onSelectionChange,\"headerselectionchange\":_vm.onHeaderSelectionChange,\"saved\":_vm.saveRow,\"changed\":_vm.updateDistribution}},[_c('grid-norecords',[_c('div',[_vm._v(\" No invoices, change your month or edit your filters to (re)load the invoices \")])])],1),_c('import-modal',{ref:\"importInvoice\",attrs:{\"type\":_vm.type,\"groups\":_vm.groups},on:{\"invoices-imported\":function($event){return _vm.reloadGrid(_vm.type)}}}),(_vm.getSelectedInvoices().length > 0)?_c('move-to-account-modal',{ref:\"multiIncomeDistributionModal\",attrs:{\"options-list\":_vm.optionListReceivers(),\"selected-invoices\":_vm.getSelectedInvoices()},on:{\"invoice-moved\":function($event){return _vm.reloadGrid(_vm.type)}}}):_vm._e(),_c('b-modal',{ref:\"deleteConfirm\",attrs:{\"id\":\"deleteConfirm\",\"title\":\"Confirm deletion\",\"size\":\"sm\"}},[_vm._v(\" Are you sure you want to delete these invoice(s)? \"),_c('br'),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{staticClass:\"d-inline-block mr-2\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.cancelDelete}},[_vm._v(\"No\")]),_c('b-button',{staticClass:\"d-inline-block\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.confirmDelete}},[_vm._v(\"Yes\")])],1)]),_c('legal-entity-change-modal',{ref:\"legalEntityRef\",attrs:{\"invoices\":_vm.getSelectedInvoices()},on:{\"invoices-updated\":function($event){return _vm.reloadGrid(_vm.type)}}}),(_vm.selectedInvoice)?_c('amortize-modal',{ref:\"amortizeModal\",attrs:{\"invoice\":_vm.selectedInvoice,\"optionsList\":_vm.optionListReceivers()},on:{\"amortization-set\":_vm.removeAndSaveCurrentDistributions}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { InvoiceType } from '../../../../models/InvoiceType';\r\nimport { periodFilterHelper, roleHelper } from '@/main';\r\nimport BaseFinanceTeamInvoicePage from './BaseFinanceTeamInvoicePage';\r\nimport DistributedInvoice from '@/models/DistributedInvoice';\r\nimport { teamsModule } from '@/store/modules/teams';\r\n\r\n@Component\r\nexport default class TeamFinanceInvoices extends BaseFinanceTeamInvoicePage {\r\n public type: InvoiceType = InvoiceType.Income;\r\n\r\n @Watch('onlyNotYetDistributed')\r\n public onFailureFilterChange() {\r\n this.filterInvoices();\r\n }\r\n\r\n @Watch('textSearch')\r\n public onTextFilterChange(val, oldVal) {\r\n if ((val && val.length > 2) || (oldVal && oldVal.length > val.length)) {\r\n this.filterInvoices();\r\n }\r\n }\r\n\r\n public async created() {\r\n this.importedInvoiceColumns.push({ field: 'group', title: 'GROUP' });\r\n\r\n await this.init(this.type);\r\n\r\n this.isLoaded = true;\r\n }\r\n\r\n public rowClick(e) {\r\n if (periodFilterHelper.isCurrentPeriodClosed()) {\r\n return;\r\n }\r\n\r\n const invoice = this.invoices.find((i) => i.invoice.invoiceId === this.editID);\r\n this.invoices.forEach((expense) => (expense[this.selectedField] = false));\r\n\r\n if (invoice) {\r\n Vue.set(invoice, 'inEdit', false);\r\n }\r\n\r\n this.editID = e.dataItem.invoice.invoiceId;\r\n Vue.set(e.dataItem, 'inEdit', true);\r\n }\r\n\r\n public onHeaderSelectionChange(event) {\r\n const checked = event.event.target.checked;\r\n Vue.set(this, 'invoices', this.invoices.map((item) => ({ ...item, selected: checked })));\r\n }\r\n\r\n public onSelectionChange(event) {\r\n Vue.set(event.dataItem, 'inEdit', false);\r\n Vue.set(event.dataItem, this.selectedField, !event.dataItem[this.selectedField]);\r\n }\r\n\r\n public pageChangeHandler(event) {\r\n this.skip = event.page.skip;\r\n this.take = event.page.take;\r\n }\r\n public renderNonEqualLEgalEntities(_h, tr, _row, item) {\r\n const invoice = new DistributedInvoice(item.dataItem);\r\n\r\n if (invoice.invoice && teamsModule.current && (roleHelper.isFinanceEmployee() || roleHelper.isSiteAdmin())) {\r\n // tslint:disable-next-line: no-string-literal\r\n tr.data['class'] += ` ${\r\n invoice.invoice && invoice.invoice.legalEntityReferenceOrigin !== teamsModule.current.legalEntityReference\r\n ? 'legal-entity-difference'\r\n : ''\r\n }`;\r\n }\r\n return tr;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-invoices.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-invoices.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-invoices.vue?vue&type=template&id=051efa0c&\"\nimport script from \"./team-finance-invoices.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-invoices.ts?vue&type=script&lang=js&\"\nimport style0 from \"./team-finance-invoices.vue?vue&type=style&index=0&id=051efa0c&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.memberOverviewData,\"columns\":_vm.memberResultColumns,\"row-height\":34}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { resultService, teamHelper } from '@/main';\r\nimport FinanceTeam from '../../../../models/FinanceTeam';\r\nimport BaseFinancePage from './BaseFinancePage';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TeamFinanceMemberOverview extends BaseFinancePage {\r\n public memberOverviewData: object[] = [];\r\n public teamFinance: FinanceTeam;\r\n public isLoaded: boolean = false;\r\n public memberResultColumns: any[] = [\r\n { cell: this.renderMemberWithIcon, title: 'NAME', field: 'firstName' },\r\n { cell: this.formatResultValue, title: 'RESULT' },\r\n { cell: this.formatExpensesValue, title: 'EXPENSES' },\r\n { cell: this.formatExtrasValue, title: 'EXTRAS' },\r\n { cell: this.formatBalanceValue, title: 'BALANCE' },\r\n ];\r\n\r\n public async mounted() {\r\n const period = periodModule.selectedPeriod;\r\n\r\n const results = await resultService.getMemberResults(teamHelper.getTeamId(), period, period);\r\n this.memberOverviewData = results.items[0].item.memberResults;\r\n\r\n this.isLoaded = true;\r\n }\r\n\r\n public renderMemberWithIcon(h, _, row) {\r\n return this.renderMember(h, row.dataItem.member);\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-member-overview.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-member-overview.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-member-overview.vue?vue&type=template&id=408d7618&\"\nimport script from \"./team-finance-member-overview.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-member-overview.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('b-tabs',{attrs:{\"vertical\":\"\",\"no-nav-style\":\"\",\"nav-wrapper-class\":\"border-right\",\"nav-class\":\"nav-tabs-vertical\",\"content-class\":\"\"}},[_c('b-tab',{attrs:{\"title\":\"Period\"}},[(_vm.isLoading)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner',{attrs:{\"color\":\"white\"}})],1):_c('div',{staticClass:\"py-4 px-3\"},[_c('h6',[_vm._v(\"Period\")]),_c('p',{staticClass:\"text-muted\"},[_vm._v(\"After closing a period no changes can be made anymore in that period\")]),_c('form',{staticClass:\"d-block mw-600\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.period),expression:\"period\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.period=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"null\"}}),_vm._l((_vm.periods),function(period){return _c('option',{key:period.id,domProps:{\"value\":period}},[_vm._v(\" \"+_vm._s(_vm.getFancyDate(period))+\" \")])})],2)]),_c('div',{staticClass:\"col-md-6\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('CLOSE_PERIOD'),expression:\"'CLOSE_PERIOD'\"}],attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"disabled\":!_vm.period || _vm.alreadyClosed},on:{\"click\":_vm.showClosePeriodConfirmModal}}),(!_vm.FirstTimeClosing)?_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('CLOSE_PERIOD_SOFT'),expression:\"'CLOSE_PERIOD_SOFT'\"}],staticClass:\"ml-2\",attrs:{\"variant\":\"warning\",\"size\":\"sm\"},on:{\"click\":_vm.showSoftClosePeriodConfirmModal}}):_vm._e()],1)])]),_c('hr'),(_vm.$root.roleHelper.isSiteAdmin() && _vm.closedPeriods.length > 0)?_c('div',{staticClass:\"mt-5\"},[_c('h6',[_vm._v(\"Breach Period\")]),(!_vm.showGif)?[_c('p',{staticClass:\"text-muted\"},[_vm._v(\" Made a fuck up? Or our software did a honky dory thing? Breach open the selected period and do your thing. \")]),_c('form',{staticClass:\"d-block mw-600\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.breachedPeriod),expression:\"breachedPeriod\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.breachedPeriod=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"null\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SELECT_PERIOD\"}})],1),_vm._l((_vm.closedPeriods),function(period){return _c('option',{key:period.id,domProps:{\"value\":period}},[_vm._v(\" \"+_vm._s(_vm.getFancyDate(period))+\" \")])})],2)]),_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"input-group\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('OPEN_PERIOD'),expression:\"'OPEN_PERIOD'\"}],attrs:{\"variant\":\"primary\",\"size\":\"sm\",\"disabled\":!_vm.breachedPeriod},on:{\"click\":_vm.openPeriod}})],1)])])])]:[_c('h1',[_vm._v(\"HIIJAAAAA!\")]),_c('img',{staticStyle:{\"max-width\":\"833px\",\"background-color\":\"rgb(131, 118, 88)\"},attrs:{\"src\":\"https://media1.tenor.com/images/85a980a49ac121a76a811d33c95605af/tenor.gif?itemid=5092837\",\"width\":\"833\",\"height\":\"499.8\",\"alt\":\"Warrior Soldier GIF - Warrior Soldier Fail GIFs\"}})]],2):_vm._e()])])],1)],1),_c('b-modal',{ref:\"closePeriodConfirm\",attrs:{\"title\":\"You really want to close this period?\"}},[_c('h4',[_vm._v(\"Please carefully read.\")]),_c('h4',[_vm._v(\"The following consequenses are applied when closing a period:\")]),_c('b-list-group',{staticClass:\"mt-5\"},[_c('b-list-group-item',[_c('span',{staticClass:\"icon-alert-triangle mr-2 text-warning text-xl-center\"}),_vm._v(\" No more changes can be made in this period!\")]),_c('b-list-group-item',[_c('span',{staticClass:\"icon-alert-triangle mr-2 text-warning\"}),_vm._v(\" All (fully) undistributed income will be merged to a new period (this isn't reversable).\")]),_c('b-list-group-item',[_c('span',{staticClass:\"icon-alert-triangle mr-2 text-warning\"}),_vm._v(\" Invoices and expenses cannot be edited anymore in this period.\")]),_c('b-list-group-item',[_c('span',{staticClass:\"icon-alert-triangle mr-2 text-warning\"}),_vm._v(\" Transfers cannot be edited anymore in this period.\")])],1),_c('h4',{staticClass:\"text-info mt-5 mb-5\"},[_c('span',{staticClass:\"icon-info1\"}),_vm._v(\" After closing the system need some time to transfer invoices from the closed period to the new period. This can take up to several minutes. Please be patient. \")]),(_vm.checkCanClose)?_c('spinner',{attrs:{\"color\":\"white\",\"center\":true}}):_vm._e(),(_vm.canCloseResponse == null)?[_c('b-alert',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ALERT_MESSAGES.FAILED_CHECK_PERIOD_CLOSE'),expression:\"'ALERT_MESSAGES.FAILED_CHECK_PERIOD_CLOSE'\"}],attrs:{\"show\":\"\",\"variant\":\"warning\"}})]:(!_vm.canCloseResponse.canClose)?[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"warning\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CANNOT_CLOSE_PERIOD\",\"translate-group\":\"ALERT_MESSAGES\"}})],1),(_vm.canCloseResponse.openTeams && _vm.canCloseResponse.openTeams.length > 0)?[_c('br'),_c('prd-translate-text',{attrs:{\"element\":\"h4\",\"translate-key\":\"CANNOT_CLOSE_OPEN_TEAMS\",\"translate-group\":\"ALERT_MESSAGES\"}}),_c('br'),_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.canCloseResponse.openTeams),function(team){return _c('li',[_vm._v(\" \"+_vm._s(team.name)+\" \")])}),0)]:_vm._e(),(_vm.canCloseResponse.openTransferRequests && _vm.canCloseResponse.openTransferRequests.length > 0)?[_c('br'),_c('prd-translate-text',{attrs:{\"element\":\"h4\",\"translate-key\":\"CANNOT_CLOSE_OPEN_TRANSFER\",\"translate-group\":\"ALERT_MESSAGES\"}}),_c('br'),_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.canCloseResponse.openTransferRequests),function(request){return _c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"OPEN_TRANSFER_REQUEST\"}}),_c('i',[_c('b',[_vm._v(_vm._s(request.receiverGroupName))]),_vm._v(\" in team \"+_vm._s(request.receiverTeamName)+\" (\"),_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"RECEIVER\",\"translate-group\":\"GRID\"}}),_vm._v(\")\")],1)],1)}),0)]:_vm._e()]:_vm._e(),_c('div',{attrs:{\"slot\":\"modal-footer\"},slot:\"modal-footer\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.YOU_SCARED_ME'),expression:\"'MODALS.YOU_SCARED_ME'\"}],staticClass:\"mr-2\",attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.$refs.closePeriodConfirm.hide()}}}),_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.DO_IT'),expression:\"'MODALS.DO_IT'\"}],attrs:{\"variant\":\"success\",\"disabled\":!_vm.canCloseResponse || !_vm.canCloseResponse.canClose},on:{\"click\":function($event){return _vm.closePeriod()}}})],1)],2),_c('b-modal',{ref:\"softClosePeriodConfirm\",attrs:{\"title\":\"You want to soft close this period?\"}},[_c('h4',{staticClass:\"mb-2\"},[_vm._v(\"No processes will be triggered when soft closing the period.\")]),(_vm.checkCanClose)?_c('spinner',{attrs:{\"center\":true}}):_vm._e(),(_vm.canCloseResponse == null)?[_c('b-alert',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('ALERT_MESSAGES.FAILED_CHECK_PERIOD_CLOSE'),expression:\"'ALERT_MESSAGES.FAILED_CHECK_PERIOD_CLOSE'\"}],attrs:{\"show\":\"\",\"variant\":\"warning\"}})]:(!_vm.canCloseResponse.canClose)?[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"warning\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"CANNOT_CLOSE_PERIOD\",\"translate-group\":\"ALERT_MESSAGES\"}})],1),(_vm.canCloseResponse.openTeams && _vm.canCloseResponse.openTeams.length > 0)?[_c('br'),_c('prd-translate-text',{attrs:{\"element\":\"h4\",\"translate-key\":\"CANNOT_CLOSE_OPEN_TEAMS\",\"translate-group\":\"ALERT_MESSAGES\"}}),_c('br'),_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.canCloseResponse.openTeams),function(team){return _c('li',[_vm._v(\" \"+_vm._s(team.name)+\" \")])}),0)]:_vm._e(),(_vm.canCloseResponse.openTransferRequests && _vm.canCloseResponse.openTransferRequests.length > 0)?[_c('br'),_c('prd-translate-text',{attrs:{\"element\":\"h4\",\"translate-key\":\"CANNOT_CLOSE_OPEN_TRANSFER\",\"translate-group\":\"ALERT_MESSAGES\"}}),_c('br'),_c('ul',{staticClass:\"list-unstyled\"},_vm._l((_vm.canCloseResponse.openTransferRequests),function(request){return _c('li',[_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"OPEN_TRANSFER_REQUEST\"}}),_c('i',[_c('b',[_vm._v(_vm._s(request.receiverGroupName))]),_vm._v(\" in team \"+_vm._s(request.receiverTeamName)+\" (\"),_c('prd-translate-text',{attrs:{\"element\":\"span\",\"translate-key\":\"RECEIVER\",\"translate-group\":\"GRID\"}}),_vm._v(\")\")],1)],1)}),0)]:_vm._e()]:_vm._e(),_c('template',{slot:\"modal-footer\"},[_c('b-button',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('MODALS.YOU_SCARED_ME'),expression:\"'MODALS.YOU_SCARED_ME'\"}],attrs:{\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$refs.softClosePeriodConfirm.hide()}}}),_c('prd-translate-button',{attrs:{\"action\":function () { return _vm.closePeriod(true); },\"disabled\":!_vm.canCloseResponse || !_vm.canCloseResponse.canClose,\"variant\":\"danger\",\"translate-key\":\"MODALS.DO_IT\"}})],1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import BaseFinancePage from './BaseFinancePage';\r\nimport { Component } from 'vue-property-decorator';\r\nimport Period from '../../../../models/Period';\r\nimport { BModal } from 'bootstrap-vue';\r\nimport { periodService, teamHelper } from '@/main';\r\nimport moment from 'moment';\r\nimport to from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport ICanClosePeriodResponse from '@/interfaces/ICanClosePeriodResponse';\r\n\r\n@Component\r\nexport default class TeamFinancePeriod extends BaseFinancePage {\r\n public isLoading: boolean = true;\r\n public periods: Period[] = null;\r\n public closedPeriods: Period[] = null;\r\n public period: Period = null;\r\n public breachedPeriod: Period = null;\r\n public showGif: boolean = false;\r\n public canCloseResponse: ICanClosePeriodResponse = null;\r\n public checkCanClose: boolean = false;\r\n\r\n public $refs!: {\r\n closePeriodConfirm: BModal;\r\n softClosePeriodConfirm: BModal;\r\n };\r\n\r\n public async created() {\r\n await this.loadPeriods();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public get alreadyClosed() {\r\n return this.period && this.period.status === 'Opened';\r\n }\r\n\r\n public get FirstTimeClosing() {\r\n return this.period && this.period.status === 'Open';\r\n }\r\n\r\n public async showClosePeriodConfirmModal() {\r\n this.$refs.closePeriodConfirm.show();\r\n this.canCloseResponse = null;\r\n await this.checkIfPeriodCanBeClosed();\r\n }\r\n\r\n public async showSoftClosePeriodConfirmModal() {\r\n this.$refs.softClosePeriodConfirm.show();\r\n this.canCloseResponse = null;\r\n await this.checkIfPeriodCanBeClosed();\r\n }\r\n\r\n public async openPeriod() {\r\n const team = teamHelper.getTeamId();\r\n this.showPending('Softly picking the lock of this period..');\r\n\r\n const [err] = await to(periodService.openPeriod(this.breachedPeriod.periodId, team));\r\n if (err) {\r\n this.clearAndShowError('Failed to breach period', err);\r\n }\r\n\r\n this.clearNotifications();\r\n this.showGif = true;\r\n await this.loadPeriods();\r\n }\r\n\r\n public async loadPeriods() {\r\n const allPeriods = await periodService.getPeriods(teamHelper.getTeamId());\r\n const periods = allPeriods.filter((period) => {\r\n return !period.closed;\r\n });\r\n\r\n if (periods.length > 0) {\r\n this.periods = [periods.pop()];\r\n }\r\n\r\n this.closedPeriods = allPeriods.filter((period) => {\r\n return period.closed;\r\n });\r\n\r\n this.period = null;\r\n this.breachedPeriod = null;\r\n this.isLoading = false;\r\n\r\n await periodModule.reloadPeriods();\r\n }\r\n\r\n public async closePeriod(soft: boolean = false) {\r\n const team = teamHelper.getTeamId();\r\n\r\n this.showPending('CLOSE_PERIOD_PENDING');\r\n const [err, response] = await to(periodService.closePeriod(this.period.periodId, team, soft));\r\n if (err) {\r\n this.clearAndShowError('CLOSE_PERIOD_FAILED', err);\r\n }\r\n\r\n if (response.status === 202 && !soft) {\r\n this.clearAndShowSuccess('CLOSE_PERIOD_SUCCESS');\r\n } else if (response.status === 202 && soft) {\r\n this.clearAndShowSuccess('Closed period');\r\n }\r\n\r\n this.$refs.closePeriodConfirm.hide();\r\n await this.loadPeriods();\r\n }\r\n\r\n public getFancyDate(period: Period) {\r\n return `${moment(period.startDate, 'YYYY-MM-DD').format(`MMMM 'YY`)} ${period.status === 'Openend' ? 'breached' : ''} `;\r\n }\r\n\r\n public getDateString(period: Period) {\r\n return moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM');\r\n }\r\n\r\n private async checkIfPeriodCanBeClosed() {\r\n this.checkCanClose = true;\r\n const teamId = parseInt(this.$route.params.teamId);\r\n const period = moment(this.period.startDate, 'YYYY-MM-DD').format('YYYY-MM');\r\n const [err, response] = await to(periodService.canClose(teamId, period));\r\n this.checkCanClose = false;\r\n this.canCloseResponse = err ? null : response.data;\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-period.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-period.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-period.vue?vue&type=template&id=2e42268a&\"\nimport script from \"./team-finance-period.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-period.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('b-tabs',{attrs:{\"vertical\":\"\",\"no-nav-style\":\"\",\"nav-wrapper-class\":\"border-right\",\"nav-class\":\"nav-tabs-vertical\",\"content-class\":\"\"}},[_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"FINANCE_TEMPLATES\"},slot:\"title\"}),_c('div',{staticClass:\"py-4 px-3\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"FINANCE_TEMPLATES\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"FINANCE_TEMPLATES_TEXT\"}})],1),(_vm.isLoading)?_c('spinner',{attrs:{\"color\":\"white\"}}):_c('form',{staticClass:\"d-block pb-4 px-3\"},[_c('b-card-group',{attrs:{\"deck\":\"\"}},[_c('b-card',{staticClass:\"cursor-pointer text-center mb-3 col mr-4\",staticStyle:{\"min-width\":\"18rem\",\"max-width\":\"18rem\"},on:{\"click\":function($event){return _vm.createContactSideAction()}}},[_c('prd-translate-text',{attrs:{\"slot\":\"header\",\"translate-key\":\"FINANCE_TEMPLATES_HEADER\"},slot:\"header\"}),_c('b-card-text',[_c('prd-translate-text',{attrs:{\"translate-key\":\"ADD_FINANCE_TEMPLATES\"}})],1)],1),_vm._l((_vm.templates),function(template,templateIndex){return _c('b-card',{key:template.financeGroupTemplateId,staticClass:\"col mb-3 mr-4 cursor-pointer text-center\",staticStyle:{\"min-width\":\"18rem\",\"max-width\":\"18rem\"},attrs:{\"header\":template.name},on:{\"click\":function($event){return _vm.createContactSideAction(template)}}},[_c('b-card-text',[_vm._v(_vm._s(template.description))])],1)})],2)],1)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"TEAM_ATTRIBUTIONS\"},slot:\"title\"}),_c('div',{staticClass:\"py-4 px-3\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"TEAM_ATTRIBUTIONS\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"TEAM_ATTRIBUTIONS_TEXT\"}}),(_vm.isLoading)?_c('spinner'):_c('form',{staticClass:\"d-block mw-600\"},[_vm._l((_vm.servicesAttributions),function(attribution){return _c('div',{key:attribution.id,staticClass:\"form-group\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(attribution.targetTeamModel),expression:\"attribution.targetTeamModel\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(attribution, \"targetTeamModel\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.teamChange(attribution)}]}},[_c('option',{attrs:{\"value\":\"\"}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_TEAM\"}})],1),_vm._l((_vm.teams),function(team){return _c('option',{key:team.name,domProps:{\"value\":team}},[_vm._v(\" \"+_vm._s(team.name)+\" \")])})],2)]),_c('div',{staticClass:\"col-md-4\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(attribution.targetGroupModel),expression:\"attribution.targetGroupModel\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(attribution, \"targetGroupModel\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"\"}},[_c('prd-translate-text',{attrs:{\"translate-group\":\"DROPDOWN\",\"translate-key\":\"SELET_A_GROUP\"}})],1),_vm._l((attribution.targetTeamModel.groups),function(group){return _c('option',{key:group.name,domProps:{\"value\":group}},[_vm._v(\" \"+_vm._s(group.name)+\" \")])})],2)]),_c('div',{staticClass:\"col-md-3\"},[_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text bg-transparent\"},[_vm._v(\"%\")])]),_c('prd-numeric-input',{staticClass:\"form-control text-right border-left-0\",attrs:{\"output-dec-seperator\":\",\"},model:{value:(attribution.percentage),callback:function ($$v) {_vm.$set(attribution, \"percentage\", $$v)},expression:\"attribution.percentage\"}})],1)]),_c('div',{staticClass:\"col-md-1\"},[(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('button',{staticClass:\"btn btn-link\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteGroupAttribution(attribution)}}},[_c('i',{staticClass:\"icon-trash-2\"})]):_vm._e()])])])}),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"secondary\",\"translate-key\":\"ADD_ATTRIBUTION\"},on:{\"click\":function($event){return _vm.addGroupAttribution()}}}):_vm._e()],2),_c('div',{staticClass:\"mt-5\"},[(_vm.failedSavingSettings)?_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"warning\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"OH_SNAP\"}})],1):_vm._e()],1),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() ||\n (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee()),\"translate-key\":\"SAVE_SETTINGS\"},on:{\"click\":function($event){return _vm.openSaveAttributionsModal()}}})],1)],1)],1),_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"PRIVACY_SETTINGS\"},slot:\"title\"}),_c('div',{staticClass:\"py-4 px-3\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"PRIVACY_SETTINGS\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"PRIVACY_SETTINGS_TEXT\"}}),(_vm.isLoading)?_c('spinner'):_c('form',{staticClass:\"d-block mw-600 mt-5\"},[_c('b-form-group',{attrs:{\"label-cols-sm\":\"8\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"ACCESS_MEMBER_OVERVIEW\",\"element\":\"label\",\"for\":\"memberOverviewAccess\"},slot:\"label\"}),_c('b-form-select',{attrs:{\"id\":\"memberOverviewAccess\",\"options\":_vm.roleOptions},model:{value:(_vm.teamSettings.memberResultsPrivacyLevel),callback:function ($$v) {_vm.$set(_vm.teamSettings, \"memberResultsPrivacyLevel\", $$v)},expression:\"teamSettings.memberResultsPrivacyLevel\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_ROLE'),expression:\"'SELECT_ROLE'\"}],domProps:{\"value\":'Unknown'}})])],2),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"ACCESSABLE_FROM_AND_UP\"},slot:\"description\"})],1),_c('b-form-group',{attrs:{\"label-cols-sm\":\"8\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"ACCESS_ALL_EXPENSE\",\"element\":\"label\",\"for\":\"allExpensesAccess\"},slot:\"label\"}),_c('b-form-select',{attrs:{\"id\":\"allExpensesAccess\",\"options\":_vm.roleOptions},model:{value:(_vm.teamSettings.allExpensesPrivacyLevel),callback:function ($$v) {_vm.$set(_vm.teamSettings, \"allExpensesPrivacyLevel\", $$v)},expression:\"teamSettings.allExpensesPrivacyLevel\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_ROLE'),expression:\"'SELECT_ROLE'\"}],domProps:{\"value\":'Unknown'}})])],2),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"ACCESSABLE_FROM_AND_UP\"},slot:\"description\"})],1),_c('b-form-group',{attrs:{\"label-cols-sm\":\"8\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"PERSONAL_GROUP_FINANCE\",\"element\":\"label\",\"for\":\"defaultGroupPrivacyLevel\"},slot:\"label\"}),_c('b-form-select',{attrs:{\"id\":\"defaultGroupPrivacyLevel\",\"options\":_vm.roleOptions},model:{value:(_vm.teamSettings.defaultGroupPrivacyLevel),callback:function ($$v) {_vm.$set(_vm.teamSettings, \"defaultGroupPrivacyLevel\", $$v)},expression:\"teamSettings.defaultGroupPrivacyLevel\"}},[_c('template',{slot:\"first\"},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('SELECT_ROLE'),expression:\"'SELECT_ROLE'\"}],domProps:{\"value\":'Unknown'}})])],2),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"ACCESSABLE_FROM_AND_UP\"},slot:\"description\"})],1)],1),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"action\":_vm.savePrivacySettings,\"disabled\":!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee(),\"translate-key\":\"SAVE_SETTINGS\"}})],1)],1)],1),(_vm.team)?_c('b-tab',[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"LEGAL_ENTITY_REFERENCE\"},slot:\"title\"}),_c('div',{staticClass:\"py-4 px-3\"},[_c('prd-translate-text',{attrs:{\"element\":\"h6\",\"translate-key\":\"LEGAL_ENTITY_REFERENCE\"}}),_c('prd-translate-text',{staticClass:\"text-muted\",attrs:{\"element\":\"p\",\"translate-key\":\"LEGAL_ENTITY_REFERENCE_TEXT\"}}),(_vm.isLoading)?_c('spinner'):_c('form',{staticClass:\"d-block mw-600 mt-5\"},[_c('b-form-group',{attrs:{\"label-cols-sm\":\"4\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"label\",\"translate-key\":\"LEGAL_ENTITY_REFERENCE\",\"element\":\"label\",\"for\":\"reference\"},slot:\"label\"}),_c('b-form-input',{attrs:{\"id\":\"reference\"},model:{value:(_vm.team.legalEntityReference),callback:function ($$v) {_vm.$set(_vm.team, \"legalEntityReference\", $$v)},expression:\"team.legalEntityReference\"}}),_c('prd-translate-text',{attrs:{\"slot\":\"description\",\"translate-key\":\"EXACT_LEGAL_REFERENCE\"},slot:\"description\"})],1)],1),_c('div',{staticClass:\"btn-group mt-3\"},[_c('prd-translate-button',{attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"action\":_vm.saveLegalEntityReference,\"disabled\":!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee(),\"translate-key\":\"SAVE_LEGAL_ENTITY\"}})],1)],1)],1):_vm._e()],1)],1),_c('save-attributions-modal',{ref:\"saveAttributionsModal\",attrs:{\"servicesAttributions\":_vm.servicesAttributions}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { attributionService, teamHelper, teamService, financeGroupService, settingService, templateService } from '@/main';\r\nimport Attribution from '../../../../models/Attribution';\r\nimport { AttributionType } from '../../../../models/AttributionType';\r\nimport BaseFinancePage from './BaseFinancePage';\r\nimport to from 'await-to-js';\r\nimport Team from '@/models/Team';\r\nimport SaveAttributionsModalComponent from '@/components/modals/save-attributions-modal';\r\nimport TeamSettings from '@/models/TeamSettings';\r\nimport { settingsModule } from '@/store/modules/settings';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TeamFinanceSettingsPage extends BaseFinancePage {\r\n public teams: Team[] = [];\r\n public team: Team = null;\r\n public isLoading: boolean = true;\r\n public servicesAttributions: Attribution[] = [];\r\n public failedSavingSettings: boolean = false;\r\n public roleOptions: any[] = [\r\n { text: 'SITE_ADMIN', value: 'SiteAdmin' },\r\n { text: 'FINANCE_EMPLOYEE', value: 'FinanceEmployee' },\r\n { text: 'GROUP_LEAD', value: 'GroupLead' },\r\n { text: 'MEMBER', value: 'Member' },\r\n ];\r\n\r\n public teamSettings: TeamSettings = null;\r\n\r\n public templates: any[] = [];\r\n\r\n public $refs!: {\r\n saveAttributionsModal: SaveAttributionsModalComponent;\r\n };\r\n\r\n public async created() {\r\n const self = this;\r\n self.teams = await teamService.getTeams();\r\n\r\n this.team = self.teams.find((x) => x.teamId === teamHelper.currentTeam.id);\r\n\r\n const currentTeamId = teamHelper.currentTeam.id;\r\n const [err, response] = await to(\r\n attributionService.getAttributions(AttributionType.TeamAttribution, currentTeamId, periodModule.selectedPeriod),\r\n );\r\n if (err) {\r\n this.showError('Failed to load attributoins');\r\n }\r\n\r\n await settingsModule.fetchTeamSettingsIfNeeded(currentTeamId);\r\n this.teamSettings = settingsModule.findTeamFinanceSettings(currentTeamId);\r\n\r\n for (let i = 0; i < response.data.length; i++) {\r\n const item = response.data[i];\r\n const attr = new Attribution(0);\r\n Object.assign(attr, item);\r\n\r\n attr.targetTeamModel = self.teams.find((team) => {\r\n if (item.targetTeam) {\r\n return team.teamId === item.targetTeam;\r\n }\r\n return team.teamId === teamHelper.getTeamId();\r\n });\r\n\r\n if (attr.targetTeamModel) {\r\n attr.targetTeamModel.groups = await financeGroupService.getGroups(attr.targetTeamModel.teamId);\r\n\r\n attr.targetGroupModel = attr.targetTeamModel.groups.find((group) => {\r\n return group.groupId === attr.targetGroup;\r\n });\r\n }\r\n\r\n if (attr.targetTeamModel || attr.targetGroupModel) {\r\n self.servicesAttributions.push(attr);\r\n }\r\n }\r\n\r\n // self.servicesAttributions = attrs.filter((x) => x.targetTeamModel || x.targetGroupModel);\r\n\r\n await this.loadTemplates();\r\n this.isLoading = false;\r\n }\r\n\r\n public createContactSideAction(template) {\r\n this.$sideActions.push(\r\n 'create-or-edit-template-side-action',\r\n {\r\n // options\r\n template: template ? template : null,\r\n },\r\n async () => {\r\n await this.loadTemplates();\r\n },\r\n );\r\n }\r\n\r\n public async loadTemplates() {\r\n this.templates = await templateService.getTemplates(teamHelper.currentTeam.id);\r\n }\r\n\r\n public async teamChange(attribution: Attribution) {\r\n attribution.targetGroup = null;\r\n attribution.groups = await financeGroupService.getGroups(attribution.targetTeamModel.teamId);\r\n }\r\n\r\n public async addGroupAttribution() {\r\n const attribution = new Attribution(0);\r\n\r\n attribution.targetTeamModel = this.teams.find((team) => {\r\n return team.teamId === teamHelper.getTeamId();\r\n });\r\n\r\n attribution.groups = await financeGroupService.getGroups(attribution.targetTeamModel.teamId);\r\n\r\n this.servicesAttributions.push(attribution);\r\n }\r\n\r\n public deleteGroupAttribution(item: Attribution) {\r\n this.servicesAttributions.splice(this.servicesAttributions.indexOf(item), 1);\r\n }\r\n\r\n public async getTeamGroups(team: Team) {\r\n return await financeGroupService.getGroups(team.teamId, periodModule.selectedPeriod);\r\n }\r\n\r\n public async savePrivacySettings() {\r\n const currentTeamId = teamHelper.getTeamId(teamHelper.currentTeamId);\r\n\r\n this.showPending('SAVE_FINANCE_SETTINGS_PENDING');\r\n const [err] = await to(settingService.saveTeamSettings(currentTeamId, this.teamSettings));\r\n\r\n if (err) {\r\n return this.clearAndShowError('SAVE_FINANCE_SETTINGS_FAILED', err);\r\n }\r\n\r\n this.clearAndShowSuccess('SAVE_FINANCE_SETTINGS_SUCCESS');\r\n }\r\n\r\n public async openSaveAttributionsModal() {\r\n let invalid = false;\r\n\r\n this.servicesAttributions.forEach((attr) => {\r\n if (\r\n typeof attr.targetGroupModel === 'undefined' ||\r\n attr.targetGroupModel === null ||\r\n !attr.targetGroupModel ||\r\n typeof attr.targetTeamModel === 'undefined' ||\r\n !attr.targetTeamModel ||\r\n attr.targetTeamModel === null ||\r\n !attr.percentage ||\r\n attr.percentage < 0 ||\r\n attr.percentage > 100\r\n ) {\r\n invalid = true;\r\n }\r\n });\r\n\r\n if (invalid) {\r\n return this.clearAndShowWarning('Current state of attributions not valid, please fill in all fields');\r\n }\r\n\r\n return this.$refs.saveAttributionsModal.show();\r\n }\r\n\r\n public async saveLegalEntityReference() {\r\n this.showPending('SAVE_TEAM_PENDING');\r\n\r\n const [err] = await to(\r\n teamService.updateTeam({ teamId: this.team.teamId, legalEntityReference: this.team.legalEntityReference, name: this.team.name }),\r\n );\r\n if (err) {\r\n return this.clearAndShowError('SAVE_TEAM_FAILED', err);\r\n }\r\n\r\n this.clearAndShowSuccess('SAVE_TEAM_SUCCESS');\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-settings.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-settings.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-settings.vue?vue&type=template&id=2a2b8d98&\"\nimport script from \"./team-finance-settings.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-settings.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('spinner')],1):_c('div',[_c('prd-toolbar',[_c('b-button',{staticClass:\"mr-2\",attrs:{\"size\":\"sm\",\"variant\":\"primary\",\"disabled\":_vm.$root.periodFilterHelper.isCurrentPeriodClosed() || (!_vm.$root.roleHelper.isSiteAdmin() && !_vm.$root.roleHelper.isFinanceEmployee())},on:{\"click\":_vm.openTransferModal}},[_vm._v(\" Move P&L \")])],1),_c('prd-grid-wrapper',{key:_vm.transferGridUpdate,attrs:{\"data-items\":_vm.externalTransfers,\"columns\":_vm.externalTransfersColumns,\"row-height\":34}}),_c('recurring-transfers-grid',{staticClass:\"mt-5\",attrs:{\"teamId\":_vm.$route.params.teamId}}),_c('transfer-modal',{ref:\"transferPAndLModal\",attrs:{\"title\":_vm.transferTitle,\"button-text\":'Finalize transfer',\"transfer\":_vm.transfer,\"type\":_vm.type},on:{\"transfer-completed\":_vm.reloadData}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { teamHelper, loginHelper, periodFilterHelper, roleHelper, teamService, transferService } from '@/main';\r\nimport BaseFinancePage from './BaseFinancePage';\r\nimport Transfer from '../../../../models/Transfer';\r\nimport TransferModalComponent from '@/components/modals/transfer-modal';\r\nimport { TransferType } from '@/models/TransferType';\r\nimport Team from '@/models/Team';\r\nimport { Person } from '@/models/Person';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TeamFinanceTransfers extends BaseFinancePage {\r\n public isLoaded: boolean = false;\r\n\r\n public componentKey: number = 0;\r\n public editMode: boolean = false;\r\n public editIsLoading: boolean = false;\r\n public amount: number = 0;\r\n public teams: Team[] = [];\r\n public members: Person[] = [];\r\n public team: string = '';\r\n public teamId: number;\r\n public receivingTeams: Team[] = [];\r\n public externalTransfers: Transfer[];\r\n public transferGridUpdate: number = 0;\r\n\r\n public transfer: Transfer = new Transfer();\r\n public type: TransferType = TransferType.PersonToPerson;\r\n\r\n public $refs!: {\r\n transferPAndLModal: TransferModalComponent;\r\n };\r\n\r\n public isTransferValid: any = {\r\n amount: true,\r\n sender: true,\r\n receiver: true,\r\n reason: true,\r\n internalAmount: true,\r\n team: true,\r\n };\r\n\r\n public externalTransfersColumns: any[] = [\r\n { cell: this.renderTransferAmount, title: 'AMOUNT', width: 100 },\r\n { field: 'reason', title: 'DESCRIPTION' },\r\n { cell: this.renderMemberBy, title: 'SENDER', width: 250 },\r\n { cell: this.renderMemberFor, title: 'RECEIVER', width: 250 },\r\n { cell: this.renderMemberInitiator, title: 'INITIATOR', width: 250 },\r\n { cell: this.renderActions, title: 'ACTIONS', width: 120 },\r\n ];\r\n\r\n public async created() {\r\n this.teamId = teamHelper.currentTeam.id;\r\n this.teams = await teamService.getTeams();\r\n this.members = await teamService.getMembers(this.teamId);\r\n\r\n await this.loadExternalTransfers();\r\n this.transfer.senderTeam = this.teams.find((x) => x.teamId === this.teamId);\r\n this.isLoaded = true;\r\n }\r\n\r\n public async loadExternalTransfers() {\r\n const period = periodModule.selectedPeriod;\r\n const transfers = await transferService.getCrossTeamPersonTransfers(this.teamId, period);\r\n\r\n transfers.forEach((transfer) => {\r\n transfer.receiverTeam = this.teams.find((x) => x.teamId === transfer.receiverTeam.teamId);\r\n transfer.senderTeam = this.teams.find((x) => x.teamId === transfer.senderTeam.teamId);\r\n });\r\n\r\n this.externalTransfers = transfers;\r\n }\r\n\r\n get transferTitle() {\r\n return 'Move a P&L of one of your team members';\r\n }\r\n\r\n public async openTransferModal() {\r\n await this.$refs.transferPAndLModal.init();\r\n }\r\n\r\n public async reloadData() {\r\n this.isLoaded = false;\r\n await this.loadExternalTransfers();\r\n this.isLoaded = true;\r\n }\r\n\r\n public renderTransferAmount(h, _, row) {\r\n const props = { value: row.dataItem.amount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderMemberInitiator(h, _, row) {\r\n const self = this;\r\n let member = self.members.find((m: Person) => {\r\n return m.personId === row.dataItem.initiator;\r\n });\r\n\r\n if (!member) {\r\n member = new Person();\r\n member.firstName = 'Not available';\r\n }\r\n\r\n return this.renderMember(h, member);\r\n }\r\n\r\n public amountUpdated(amount) {\r\n this.amount = amount;\r\n }\r\n\r\n public renderActions(h, _, row): any {\r\n let actions = [];\r\n const userId = loginHelper.getUser().personId;\r\n const initiator = row.dataItem && typeof row.dataItem.initiator !== 'undefined' ? parseInt(row.dataItem.initiator) : 0;\r\n\r\n if (initiator === userId || roleHelper.isSiteAdmin() || roleHelper.isFinanceEmployee()) {\r\n actions = [\r\n { title: 'Edit', function: this.editTransfer, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n { title: 'Delete', function: this.removeTransfer, disabled: periodFilterHelper.isCurrentPeriodClosed() },\r\n ];\r\n }\r\n\r\n const props = { actions, item: row.dataItem };\r\n return h(Vue.component('grid-actions'), { props });\r\n }\r\n\r\n public removeTransfer(item) {\r\n transferService.deleteTransfer(item.transferId);\r\n\r\n const transfer = this.externalTransfers.findIndex((t: Transfer) => {\r\n return t.transferId === item.transferId;\r\n });\r\n\r\n this.externalTransfers.splice(transfer, 1);\r\n this.transferGridUpdate++;\r\n }\r\n\r\n public async editTransfer(item) {\r\n this.editMode = true;\r\n\r\n this.$refs.transferPAndLModal.show();\r\n Vue.nextTick(async () => {\r\n this.$refs.transferPAndLModal.editMode = true;\r\n await this.$refs.transferPAndLModal.initTransfer(item);\r\n });\r\n\r\n this.editIsLoading = false;\r\n }\r\n\r\n public calculateTransferGridHeight() {\r\n if (this.externalTransfers.length < 25) {\r\n return { height: `${39 + this.externalTransfers.length * 47}px` };\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-transfers.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-finance-transfers.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-finance-transfers.vue?vue&type=template&id=ed1dcb48&\"\nimport script from \"./team-finance-transfers.ts?vue&type=script&lang=js&\"\nexport * from \"./team-finance-transfers.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',{attrs:{\"if\":\"isLoading\"}},[_c('div',{},[_c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link group-overview\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_GROUPS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_GROUPS'),expression:\"'TEAM_FINANCE_GROUPS'\"}],staticClass:\"nav-link group-overview\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('group-overview')}}})]),(!_vm.hideMemberResults)?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link member-overview\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_MEMBERS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_MEMBERS'),expression:\"'TEAM_FINANCE_MEMBERS'\"}],staticClass:\"nav-link member-overview\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('member-overview')}}})]):_vm._e(),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link invoices\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_INCOME\"}})],1):_c('span',{staticClass:\"nav-link invoices\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('invoices')}}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_INCOME\"}})],1)]),(!_vm.hideExpenses)?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link expenses\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_EXPENSES\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_EXPENSES'),expression:\"'TEAM_FINANCE_EXPENSES'\"}],staticClass:\"nav-link expenses\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('expenses')}}})]):_vm._e(),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link period\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_PERIOD\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_PERIOD'),expression:\"'TEAM_FINANCE_PERIOD'\"}],staticClass:\"nav-link period\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('period')}}})]):_vm._e(),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link transfers\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_TRANSFERS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_TRANSFERS'),expression:\"'TEAM_FINANCE_TRANSFERS'\"}],staticClass:\"nav-link transfers\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('transfers')}}})]):_vm._e(),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link settings\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_FINANCE_SETTINGS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_FINANCE_SETTINGS'),expression:\"'TEAM_FINANCE_SETTINGS'\"}],staticClass:\"nav-link settings\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('settings')}}})])])]),_c('div',{staticClass:\"tab-content\"},[_c(_vm.currentTabComponent,{tag:\"component\"})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport PageRender from '../../../models/PageRender';\r\nimport { $router, teamHelper, roleHelper } from '@/main';\r\nimport jQuery from 'jquery';\r\nimport TeamSettings from '@/models/TeamSettings';\r\nimport { settingsModule } from '@/store/modules/settings';\r\n\r\n@Component\r\nexport default class TeamFinanceComponent extends PageRender {\r\n public tab: string = null;\r\n public tabs: string[] = [\r\n 'group-overview', 'member-overview', 'invoices', 'expenses', 'period', 'transfers', 'settings',\r\n ];\r\n public currentTabComponent: string = '';\r\n public teamFinanceSettings: TeamSettings = new TeamSettings();\r\n\r\n public async created() {\r\n await this.loadTeamFinanceSettings();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n public async mounted() {\r\n await this.checkPeriodParam();\r\n await this.changeTab(this.$route.params.tab);\r\n }\r\n\r\n public async changeTab(tab: string): Promise {\r\n if (this.tabs.indexOf(tab) === -1) {\r\n tab = this.tabs[0];\r\n }\r\n\r\n if (tab !== this.$route.params.tab) {\r\n const params = this.$route.params;\r\n params.tab = tab;\r\n await $router.push({ name: 'team-finances', params });\r\n } else {\r\n this.doActiveClass(tab);\r\n this.currentTabComponent = 'team-finances-' + tab;\r\n }\r\n }\r\n\r\n public async loadTeamFinanceSettings() {\r\n const currentTeamId = teamHelper.currentTeam.id;\r\n await settingsModule.fetchTeamSettingsIfNeeded(currentTeamId);\r\n this.teamFinanceSettings = settingsModule.findTeamFinanceSettings(currentTeamId);\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n\r\n get hideExpenses() {\r\n return !roleHelper.checkAccess(this.teamFinanceSettings.allExpensesPrivacyLevel);\r\n }\r\n\r\n get hideMemberResults() {\r\n return !roleHelper.checkAccess(this.teamFinanceSettings.memberResultsPrivacyLevel);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./finance.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./finance.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./finance.vue?vue&type=template&id=6beac63f&\"\nimport script from \"./finance.ts?vue&type=script&lang=js&\"\nexport * from \"./finance.ts?vue&type=script&lang=js&\"\nimport style0 from \"./finance.vue?vue&type=style&index=0&id=6beac63f&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-toolbar',{staticClass:\"justify-content-start\"},[_c('grid-period-range-filter',{on:{\"filter-change\":_vm.recalculateResultsIncome}})],1),_c('prd-grid-wrapper',{key:_vm.reload,attrs:{\"data-items\":_vm.groupOverviewData,\"columns\":_vm.groupResultColumns,\"row-height\":34}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { resultService, teamHelper, roleHelper, ecosystemHelper } from '@/main';\r\nimport FinanceTeam from '../../../../models/FinanceTeam';\r\nimport Vue from 'vue';\r\nimport BaseInsightsPage from './BaseInsightsPage';\r\nimport GroupResults from '@/models/Finance/Api/GroupResults';\r\nimport RangeItem from '@/models/Finance/Api/RangeItem';\r\nimport { orderBy } from '@progress/kendo-data-query';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class TeamFinanceGroupOverviewNew extends BaseInsightsPage {\r\n public teamId: number = null;\r\n public reloadingResults: boolean = false;\r\n\r\n public groupOverviewData: any[] = [];\r\n public tempGroupOverviewData: any[] = [];\r\n public teamFinance: FinanceTeam;\r\n public isLoaded: boolean = false;\r\n public reload: number = 0;\r\n\r\n public groupResultColumns: any[] = [\r\n { field: 'group.groupName', title: 'GROUP_NAME', cell: this.renderGroupInsightsLink },\r\n { cell: this.formatStartBalanceValue, title: 'START_BALANCE', footerCell: this.renderFooterCellStartBalance },\r\n { field: 'result', cell: this.formatResultValue, title: 'RESULT', footerCell: this.renderFooterCellSum },\r\n { field: 'balance', cell: this.formatBalanceValue, title: 'END_BALANCE', footerCell: this.renderFooterCellSum },\r\n { field: 'expenses', cell: this.formatExpensesValue, title: 'EXPENSES' },\r\n { field: 'extras', cell: this.formatExtrasValue, title: 'EXTRAS' },\r\n { field: 'openInvoiceAmount', cell: this.formatOpenInvoicesValue, title: 'OPEN_INVOICES', footerCell: this.renderFooterCellSum },\r\n { field: 'openExpenseAmount', cell: this.formatOpenExpensesValue, title: 'OPEN_EXPENSES', footerCell: this.renderFooterCellSum },\r\n { field: 'externalRevenue', cell: this.formatExternalRevenue, title: 'EXTERNAL_REVENUE', footerCell: this.renderFooterCellSum },\r\n ];\r\n\r\n public async mounted() {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await this.$router.push({\r\n name: 'team-finances',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'group-overview',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n this.teamId = teamHelper.currentTeamId;\r\n this.isLoaded = true;\r\n }\r\n\r\n public async recalculateResultsIncome(dates) {\r\n this.reloadingResults = true;\r\n this.showPending('CALCULATING_RESULT_PENDING');\r\n\r\n this.groupOverviewData = [];\r\n this.tempGroupOverviewData = [];\r\n\r\n const results = await resultService.getGroupResults(teamHelper.getTeamId(), dates.fromFilterMonth, dates.toFilterMonth);\r\n this.calculateTotals(results.items);\r\n this.groupOverviewData = orderBy(this.tempGroupOverviewData, [{ field: 'group.name', dir: 'asc' }]);\r\n this.clearNotifications();\r\n this.reloadingResults = false;\r\n this.reload++;\r\n }\r\n\r\n public calculateTotals(results: RangeItem[]) {\r\n for (const item of results) {\r\n for (const groupResult of item.item.groupResults) {\r\n const group = this.tempGroupOverviewData.find((x) => x.group.groupId === groupResult.group.groupId);\r\n if (group) {\r\n group.result += groupResult.result;\r\n group.expenses += groupResult.expenses;\r\n group.extras += groupResult.extras;\r\n group.balance = groupResult.balance;\r\n group.externalRevenue += groupResult.externalRevenue;\r\n group.openInvoiceAmount = groupResult.openInvoiceAmount;\r\n group.openExpenseAmount = groupResult.openExpenseAmount;\r\n } else {\r\n this.tempGroupOverviewData.push(groupResult);\r\n }\r\n }\r\n }\r\n }\r\n\r\n public formatOpenInvoicesValue(h, _, row) {\r\n const props = { value: row.dataItem.openInvoiceAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatOpenExpensesValue(h, _, row) {\r\n const props = { value: row.dataItem.openExpenseAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatExternalRevenue(h, _, row) {\r\n const props = { value: row.dataItem.externalRevenue };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderFooterCellSum(h, _, row) {\r\n const total = this.groupOverviewData.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderFooterCellStartBalance(h, _) {\r\n const total = this.groupOverviewData.reduce((acc: number, current) => acc + this.getStartBalanceValue(current), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-group-results.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-group-results.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-insights-group-results.vue?vue&type=template&id=50414c4a&\"\nimport script from \"./team-insights-group-results.ts?vue&type=script&lang=js&\"\nexport * from \"./team-insights-group-results.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-toolbar',{staticClass:\"justify-content-start\"},[_c('grid-period-range-filter',{on:{\"filter-change\":_vm.recalculateResultsIncome}})],1),_c('prd-grid-wrapper',{key:_vm.reload,attrs:{\"data-items\":_vm.memberOverviewData,\"columns\":_vm.memberResultColumns,\"row-height\":34}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { resultService, teamHelper, roleHelper, ecosystemHelper } from '@/main';\r\nimport FinanceTeam from '../../../../models/FinanceTeam';\r\nimport BaseInsightsPage from './BaseInsightsPage';\r\nimport RangeItem from '@/models/Finance/Api/RangeItem';\r\nimport MemberResults from '@/models/Finance/Api/MemberResults';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport Vue from 'vue';\r\n\r\n@Component\r\nexport default class TeamFinanceMemberOverview extends BaseInsightsPage {\r\n public teamId: number = null;\r\n public reloadingResults: boolean = false;\r\n\r\n public memberOverviewData: any[] = [];\r\n public tempMemberOverviewData: any[] = [];\r\n public teamFinance: FinanceTeam;\r\n public isLoaded: boolean = false;\r\n public reload: number = 0;\r\n\r\n public memberResultColumns: any[] = [\r\n { field: 'member.name', title: 'MEMBER' },\r\n { field: 'balance', cell: this.formatStartBalanceValue, title: 'START_BALANCE', footerCell: this.renderFooterCellStartBalance },\r\n { field: 'result', cell: this.formatResultValue, title: 'RESULT', footerCell: this.renderFooterCellSum },\r\n { field: 'balance', cell: this.formatBalanceValue, title: 'END_BALANCE', footerCell: this.renderFooterCellSum },\r\n { field: 'expenses', cell: this.formatExpensesValue, title: 'EXPENSES', footerCell: this.renderFooterCellSum },\r\n { field: 'extras', cell: this.formatExtrasValue, title: 'EXTRAS', footerCell: this.renderFooterCellSum },\r\n ];\r\n\r\n public async mounted() {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await this.$router.push({\r\n name: 'team-finances',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'group-overview',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n this.teamId = teamHelper.currentTeamId;\r\n\r\n this.isLoaded = true;\r\n }\r\n\r\n public async recalculateResultsIncome(dates) {\r\n this.reloadingResults = true;\r\n this.clearNotifications();\r\n this.showPending('CALCULATING_RESULT_PENDING');\r\n\r\n this.memberOverviewData = [];\r\n this.tempMemberOverviewData = [];\r\n\r\n const result = await resultService.getMemberResults(teamHelper.getTeamId(), dates.fromFilterMonth, dates.toFilterMonth);\r\n this.calculateTotals(result.items);\r\n\r\n this.memberOverviewData = this.tempMemberOverviewData;\r\n this.clearNotifications();\r\n this.reloadingResults = false;\r\n this.reload++;\r\n }\r\n\r\n public calculateTotals(results: RangeItem[]) {\r\n for (const item of results) {\r\n for (const personResult of item.item.memberResults) {\r\n const member = this.tempMemberOverviewData.find((x) => x.member.personId === personResult.member.personId);\r\n if (member) {\r\n member.result += personResult.result;\r\n member.extras += personResult.extras;\r\n member.expenses += personResult.expenses;\r\n member.balance = personResult.balance;\r\n } else {\r\n this.tempMemberOverviewData.push(personResult);\r\n }\r\n }\r\n }\r\n }\r\n\r\n public renderFooterCellSum(h, _, row) {\r\n const total = this.memberOverviewData.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public renderFooterCellStartBalance(h, _) {\r\n const total = this.memberOverviewData.reduce((acc: number, current) => acc + this.getStartBalanceValue(current), 0);\r\n const props = { value: total };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-member-results.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-member-results.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-insights-member-results.vue?vue&type=template&id=16ca42ea&\"\nimport script from \"./team-insights-member-results.ts?vue&type=script&lang=js&\"\nexport * from \"./team-insights-member-results.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 (!_vm.isLoaded)?_c('spinner'):_c('div',[_c('prd-toolbar',{attrs:{\"space-between\":\"\"}},[_c('template',{slot:\"left\"},[_c('prd-translate-text',{staticClass:\"text text-nowrap\",attrs:{\"translate-key\":\"INVOICE_TYPE\",\"element\":\"span\"}}),_c('b-select',{model:{value:(_vm.invoiceType),callback:function ($$v) {_vm.invoiceType=$$v},expression:\"invoiceType\"}},[_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('INCOME'),expression:\"'INCOME'\"}],domProps:{\"value\":_vm.InvoiceType.Income}}),_c('option',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('EXPENSES'),expression:\"'EXPENSES'\"}],domProps:{\"value\":_vm.InvoiceType.Expenses}})])],1),_c('b-form-checkbox',{staticClass:\"mr-2 text-nowrap d-inline-block\",attrs:{\"slot\":\"right\"},slot:\"right\",model:{value:(_vm.onlyUnpaid),callback:function ($$v) {_vm.onlyUnpaid=$$v},expression:\"onlyUnpaid\"}},[_c('prd-translate-text',{attrs:{\"translate-key\":\"SHOW_UNPAID_INVOICES_ONLY\",\"element\":\"span\"}})],1)],2),_c('prd-grid-wrapper',{attrs:{\"data-items\":_vm.aggregatePayments,\"columns\":_vm.aggregateColumns,\"detail\":_vm.detailTemplate}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('prd-grid-wrapper',{staticClass:\"mb-0 shadow-sm\",attrs:{\"data-items\":_vm.payments,\"columns\":_vm.paymentStatussesColumns}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport PaymentStatus from '@/models/Insights/PaymentStatus';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport { translateModule } from '@/store/modules/translate';\r\nimport moment from 'moment';\r\nimport Component from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport BaseInsightsPage from './BaseInsightsPage';\r\n\r\n@Component\r\nexport default class TeamInsightPaymentDetail extends BaseInsightsPage {\r\n @Prop() public dataItem: { payments: PaymentStatus[] };\r\n\r\n public get payments(): PaymentStatus[] {\r\n return this.dataItem.payments;\r\n }\r\n\r\n public paymentStatussesColumns: any[] = [\r\n { field: 'invoiceId', title: 'INVOICE', cell: this.renderInvoiceLink },\r\n { field: 'invoiceReference', title: 'REFERENCE' },\r\n { field: 'invoiceDate', cell: this.renderInvoiceDate, title: 'DATE' },\r\n { field: 'externalIdentifier', title: 'EXTERNAL_IDENTIFIER' },\r\n { field: 'period', cell: this.formatPeriod, title: 'PERIOD' },\r\n { field: 'periodMatched', cell: this.formatPeriodMatched, title: 'PERIOD_MATCHED' },\r\n { field: 'invoiceAmount', cell: this.formatInvoicesAmountValue, title: 'INVOICE_AMOUNT' },\r\n { field: 'amountPaid', cell: this.formatAmountPaidValue, title: 'AMOUNT_PAID' },\r\n { field: 'paymentDate', cell: this.renderPaymentDate, title: 'PAYMENT_DATE' },\r\n ];\r\n\r\n public renderInvoiceDate(h, _, row) {\r\n return h('td', [moment(row.dataItem.invoiceDate, 'YYYY-MM-DD').format('DD-MM-YYYY')]);\r\n }\r\n\r\n public renderPaymentDate(h, _, row) {\r\n return h('td', [moment(row.dataItem.paymentDate, 'YYYY-MM-DD').format('DD-MM-YYYY')]);\r\n }\r\n\r\n public formatInvoicesAmountValue(h, _, row) {\r\n const props = { value: row.dataItem.invoiceAmount };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatAmountPaidValue(h, _, row) {\r\n const props = { value: row.dataItem.amountPaid };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatExternalRevenue(h, _, row) {\r\n const props = { value: row.dataItem.externalRevenue };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n public formatPeriodMatched(h, _, row) {\r\n if (!row.dataItem.periodMatched) {\r\n return h('td');\r\n }\r\n\r\n const period = periodModule.allPeriods.find((x) => x.periodId === row.dataItem.periodMatched);\r\n if (period) {\r\n return h('td', moment(period.startDate, 'YYYY-MM-DD').format(`MMMM 'YY`));\r\n }\r\n return h('td', translateModule.value('NO_PERIOD_FOUND'));\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-payment-detail.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-payment-detail.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-insights-payment-detail.vue?vue&type=template&id=39744e24&\"\nimport script from \"./team-insights-payment-detail.ts?vue&type=script&lang=js&\"\nexport * from \"./team-insights-payment-detail.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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 { Component } from 'vue-property-decorator';\r\nimport { teamHelper, roleHelper, ecosystemHelper, insightService } from '@/main';\r\nimport Vue from 'vue';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport PaymentStatus from '@/models/Insights/PaymentStatus';\r\nimport { InvoiceType } from '@/models/InvoiceType';\r\nimport PaymentDetail from './team-insights-payment-detail.vue';\r\n\r\n@Component\r\nexport default class TeamFinancePaymentStatusses extends Vue {\r\n public teamId: number = null;\r\n public paymentStatusses: PaymentStatus[] = [];\r\n public isLoaded: boolean = false;\r\n public onlyUnpaid: boolean = false;\r\n public invoiceType: InvoiceType = InvoiceType.Income;\r\n public InvoiceType = InvoiceType;\r\n public detailTemplate = PaymentDetail;\r\n\r\n public aggregateColumns: any[] = [\r\n { field: 'invoiceReference', title: 'REFERENCE' },\r\n { field: 'invoiceAmount', cell: this.formatAmountPaidValue, title: 'TOTAL_INVOICE_AMOUNT', footerCell: this.renderFooterCellSum },\r\n { field: 'amountPaid', cell: this.formatAmountPaidValue, title: 'TOTAL_AMOUNT_PAID', footerCell: this.renderFooterCellSum },\r\n ];\r\n\r\n public aggregatePayments: any[] = [];\r\n\r\n public get payments() {\r\n return this.paymentStatusses.filter((status) => {\r\n const matchOnlyUnpaid = (this.onlyUnpaid && !status.periodMatched) || !this.onlyUnpaid;\r\n const matchInvoiceType = status.invoiceType === this.invoiceType;\r\n return matchOnlyUnpaid && matchInvoiceType;\r\n });\r\n }\r\n\r\n public async mounted() {\r\n if (!roleHelper.isSiteAdmin() && !roleHelper.isFinanceEmployee()) {\r\n await this.$router.push({\r\n name: 'team-finances',\r\n params: {\r\n ecosystemId: ecosystemHelper.currentEcosystem.id.toString(),\r\n ecosystemKey: ecosystemHelper.currentEcosystem.key,\r\n teamId: teamHelper.currentTeam.id.toString(),\r\n teamKey: teamHelper.currentTeam.key,\r\n tab: 'group-overview',\r\n period: periodModule.selectedPeriod,\r\n },\r\n });\r\n }\r\n\r\n this.teamId = teamHelper.currentTeamId;\r\n this.paymentStatusses = await insightService.getPaymentStatusses(teamHelper.getTeamId());\r\n this.calculateAggregatePayments();\r\n this.isLoaded = true;\r\n\r\n this.$watch('paymentStatusses', this.calculateAggregatePayments);\r\n this.$watch('invoiceType', this.calculateAggregatePayments);\r\n this.$watch('onlyUnpaid', this.calculateAggregatePayments);\r\n }\r\n\r\n private formatAmountPaidValue(h, _, row) {\r\n const props = { value: row.dataItem[row.field] };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n\r\n private calculateAggregatePayments() {\r\n const aggregates = {};\r\n this.payments.forEach((payment: PaymentStatus) => {\r\n const key = payment.externalIdentifier;\r\n if (!aggregates[key]) {\r\n aggregates[key] = {\r\n externalIdentifier: payment.externalIdentifier,\r\n invoiceReference: payment.invoiceReference,\r\n invoiceAmount: 0,\r\n amountPaid: 0,\r\n payments: [],\r\n };\r\n }\r\n aggregates[key].invoiceAmount += payment.invoiceAmount;\r\n aggregates[key].amountPaid += payment.amountPaid;\r\n aggregates[key].payments.push(payment);\r\n });\r\n\r\n this.aggregatePayments = Object.values(aggregates);\r\n }\r\n\r\n private renderFooterCellSum(h, _, row) {\r\n const total = this.aggregatePayments.reduce((acc: number, current) => acc + (current[row.field] as number), 0);\r\n const props = { value: total, renderTd: false };\r\n return h(Vue.component('number-formatter'), { props });\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-payment-statusses.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./team-insights-payment-statusses.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./team-insights-payment-statusses.vue?vue&type=template&id=763a302d&\"\nimport script from \"./team-insights-payment-statusses.ts?vue&type=script&lang=js&\"\nexport * from \"./team-insights-payment-statusses.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/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('div',[_c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link group-results\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_ANALYTICS_GROUPS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_ANALYTICS_GROUPS'),expression:\"'TEAM_ANALYTICS_GROUPS'\"}],staticClass:\"nav-link group-results\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('group-results')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link member-results\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_ANALYTICS_MEMBERS\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_ANALYTICS_MEMBERS'),expression:\"'TEAM_ANALYTICS_MEMBERS'\"}],staticClass:\"nav-link member-results\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('member-results')}}})]),_c('li',{staticClass:\"nav-item tabs-list-group-item\",attrs:{\"role\":\"presentation\"}},[(_vm.$root.inEditMode)?_c('span',{staticClass:\"nav-link member-results\"},[_c('prd-translate-text',{attrs:{\"translate-key\":\"TEAM_INSIGHTS_PAYMENT_STATUSSES\"}})],1):_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\",value:('TEAM_INSIGHTS_PAYMENT_STATUSSES'),expression:\"'TEAM_INSIGHTS_PAYMENT_STATUSSES'\"}],staticClass:\"nav-link payment-statusses\",attrs:{\"role\":\"tab\"},on:{\"click\":function($event){return _vm.changeTab('payment-statusses')}}})])]),_c('div',{staticClass:\"tab-content\"},[_c(_vm.currentTabComponent,{tag:\"component\"})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component } from 'vue-property-decorator';\r\nimport { $router } from '@/main';\r\nimport jQuery from 'jquery';\r\nimport PageRender from '@/models/PageRender';\r\n\r\n@Component\r\nexport default class TeamInsightsComponent extends PageRender {\r\n public tab: string = null;\r\n public currentTabComponent: string = '';\r\n public tabs: string[] = ['group-results', 'member-results', 'payment-statusses'];\r\n\r\n public async mounted() {\r\n await this.checkPeriodParam();\r\n await this.changeTab(this.$route.params.tab);\r\n }\r\n\r\n public async changeTab(tab: string): Promise {\r\n if (tab !== this.$route.params.tab) {\r\n const params = this.$route.params;\r\n params.tab = tab;\r\n\r\n await $router.push({ name: 'team-insights', params });\r\n } else {\r\n if (this.tabs.indexOf(tab) === -1) {\r\n tab = this.tabs[0];\r\n }\r\n\r\n this.doActiveClass(tab);\r\n this.currentTabComponent = 'team-insights-' + tab;\r\n }\r\n }\r\n\r\n public doActiveClass(tab: string) {\r\n this.$nextTick(() => {\r\n jQuery('.' + tab).addClass('active');\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./insights.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./insights.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./insights.vue?vue&type=template&id=15fcf144&\"\nimport script from \"./insights.ts?vue&type=script&lang=js&\"\nexport * from \"./insights.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/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('div',{staticClass:\"offset-md-4 col-md-8\"},[_c('h2',[_vm._v(\" \"+_vm._s(_vm.getPersonFullName())+\" has requested access to the team \"+_vm._s(_vm.joinRequest.team.name)+\" \")]),_c('p',[_vm._v(\"What action do you want to take?\")]),_c('button',{staticClass:\"btn btn-success\",on:{\"click\":function($event){return _vm.choiceAction(true)}}},[_vm._v(\"Allow\")]),_c('button',{staticClass:\"btn btn-danger\",on:{\"click\":function($event){return _vm.choiceAction(false)}}},[_vm._v(\"Deny\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default class TeamJoinRequest {\r\n public TeamJoinRequestId: number;\r\n public FromPerson: number;\r\n public ForTeam: number;\r\n public Allowed: boolean;\r\n}\r\n","import Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport { teamService, personService } from '@/main';\r\nimport TeamJoinRequest from '../../models/TeamJoinRequest';\r\nimport { Person } from '../../models/Person';\r\nimport Team from '@/models/Team';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component\r\nexport default class JoinRequestComponent extends Vue {\r\n public joinRequest: TeamJoinRequest = new TeamJoinRequest();\r\n public person: Person;\r\n public team: Team;\r\n private requestId: number;\r\n\r\n public created() {\r\n const self = this;\r\n this.requestId = parseInt(this.$route.params.id);\r\n\r\n teamService\r\n .getJoinRequest(self.requestId)\r\n .then((result) => {\r\n self.joinRequest = result.data as TeamJoinRequest;\r\n\r\n teamService\r\n .getTeam(self.joinRequest.ForTeam, periodModule.selectedPeriod)\r\n .then((tresult) => self.team = tresult.data)\r\n .catch(console.log);\r\n\r\n personService\r\n .getPerson(self.joinRequest.FromPerson, periodModule.selectedPeriod)\r\n .then((presult) => self.person = presult)\r\n .catch(console.log);\r\n })\r\n .catch( console.log );\r\n }\r\n\r\n public getPersonFullName(): string {\r\n let parts = [this.person.firstName, this.person.insertion, this.person.lastName];\r\n parts = parts.filter((value) => {\r\n return !!value;\r\n });\r\n\r\n return parts.join(' ');\r\n }\r\n\r\n public choiceAction(allow: boolean) {\r\n this.joinRequest.Allowed = allow;\r\n\r\n teamService\r\n .updateJoinRequest(this.requestId, this.joinRequest)\r\n .then(console.log)\r\n .catch(console.log);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./joinrequest.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./joinrequest.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./joinrequest.vue?vue&type=template&id=88948750&\"\nimport script from \"./joinrequest.ts?vue&type=script&lang=js&\"\nexport * from \"./joinrequest.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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('transition',{attrs:{\"name\":\"fade\"}},[(_vm.actionList.length > 0)?_c('div',{attrs:{\"id\":\"action-list\"}},[_c('div',{staticClass:\"action-list-underlay\",on:{\"click\":_vm.cancelHandler}}),_c('div',{staticClass:\"p-3\",attrs:{\"id\":\"action-pane\"}},[_c('transition-group',{attrs:{\"name\":\"fade\",\"tag\":\"div\"}},_vm._l((_vm.actionList),function(action,index){return _c('div',{key:'action-pane-' + index.toString(),staticClass:\"action p-3\",style:({ width: 100 - index * 5 + '%' })},[_c(action.component,{tag:\"div\",attrs:{\"options\":action.sideOptions},on:{\"finished\":action.finishedHandler,\"cancel\":_vm.cancelHandler}}),(_vm.actionList.length != index + 1)?_c('div',{staticClass:\"action-list-underlay\"}):_vm._e()],1)}),0)],1)]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport { Component } from 'vue-property-decorator';\r\nimport { events } from './sideActionsEvents';\r\n\r\n@Component\r\nexport default class SideActionsComponent extends Vue {\r\n public actionList: any[] = [];\r\n\r\n public async mounted() {\r\n events.$on('pushed', (data: any) => {\r\n const handler = data.finishedHandler;\r\n const self = this;\r\n data.finishedHandler = (resultParam?: any) => {\r\n self.actionList.pop();\r\n if (handler) {\r\n handler(resultParam);\r\n }\r\n };\r\n\r\n this.actionList.push(data);\r\n });\r\n }\r\n\r\n public cancelHandler(): void {\r\n this.actionList.pop();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./sideActionsComponent.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./sideActionsComponent.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./sideActionsComponent.vue?vue&type=template&id=6a4c2e08&\"\nimport script from \"./sideActionsComponent.ts?vue&type=script&lang=js&\"\nexport * from \"./sideActionsComponent.ts?vue&type=script&lang=js&\"\nimport style0 from \"./sideActionsComponent.vue?vue&type=style&index=0&id=6a4c2e08&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 map = {\n\t\"./af\": 42786,\n\t\"./af.js\": 42786,\n\t\"./ar\": 30867,\n\t\"./ar-dz\": 14130,\n\t\"./ar-dz.js\": 14130,\n\t\"./ar-kw\": 96135,\n\t\"./ar-kw.js\": 96135,\n\t\"./ar-ly\": 56440,\n\t\"./ar-ly.js\": 56440,\n\t\"./ar-ma\": 47702,\n\t\"./ar-ma.js\": 47702,\n\t\"./ar-sa\": 16040,\n\t\"./ar-sa.js\": 16040,\n\t\"./ar-tn\": 37100,\n\t\"./ar-tn.js\": 37100,\n\t\"./ar.js\": 30867,\n\t\"./az\": 31083,\n\t\"./az.js\": 31083,\n\t\"./be\": 9808,\n\t\"./be.js\": 9808,\n\t\"./bg\": 68338,\n\t\"./bg.js\": 68338,\n\t\"./bm\": 67438,\n\t\"./bm.js\": 67438,\n\t\"./bn\": 8905,\n\t\"./bn-bd\": 76225,\n\t\"./bn-bd.js\": 76225,\n\t\"./bn.js\": 8905,\n\t\"./bo\": 11560,\n\t\"./bo.js\": 11560,\n\t\"./br\": 1278,\n\t\"./br.js\": 1278,\n\t\"./bs\": 80622,\n\t\"./bs.js\": 80622,\n\t\"./ca\": 2468,\n\t\"./ca.js\": 2468,\n\t\"./cs\": 5822,\n\t\"./cs.js\": 5822,\n\t\"./cv\": 50877,\n\t\"./cv.js\": 50877,\n\t\"./cy\": 47373,\n\t\"./cy.js\": 47373,\n\t\"./da\": 24780,\n\t\"./da.js\": 24780,\n\t\"./de\": 59740,\n\t\"./de-at\": 60217,\n\t\"./de-at.js\": 60217,\n\t\"./de-ch\": 60894,\n\t\"./de-ch.js\": 60894,\n\t\"./de.js\": 59740,\n\t\"./dv\": 5300,\n\t\"./dv.js\": 5300,\n\t\"./el\": 50837,\n\t\"./el.js\": 50837,\n\t\"./en-au\": 78348,\n\t\"./en-au.js\": 78348,\n\t\"./en-ca\": 77925,\n\t\"./en-ca.js\": 77925,\n\t\"./en-gb\": 22243,\n\t\"./en-gb.js\": 22243,\n\t\"./en-ie\": 46436,\n\t\"./en-ie.js\": 46436,\n\t\"./en-il\": 47207,\n\t\"./en-il.js\": 47207,\n\t\"./en-in\": 44175,\n\t\"./en-in.js\": 44175,\n\t\"./en-nz\": 76319,\n\t\"./en-nz.js\": 76319,\n\t\"./en-sg\": 31662,\n\t\"./en-sg.js\": 31662,\n\t\"./eo\": 92915,\n\t\"./eo.js\": 92915,\n\t\"./es\": 55655,\n\t\"./es-do\": 55251,\n\t\"./es-do.js\": 55251,\n\t\"./es-mx\": 96112,\n\t\"./es-mx.js\": 96112,\n\t\"./es-us\": 71146,\n\t\"./es-us.js\": 71146,\n\t\"./es.js\": 55655,\n\t\"./et\": 5603,\n\t\"./et.js\": 5603,\n\t\"./eu\": 77763,\n\t\"./eu.js\": 77763,\n\t\"./fa\": 76959,\n\t\"./fa.js\": 76959,\n\t\"./fi\": 11897,\n\t\"./fi.js\": 11897,\n\t\"./fil\": 42549,\n\t\"./fil.js\": 42549,\n\t\"./fo\": 94694,\n\t\"./fo.js\": 94694,\n\t\"./fr\": 94470,\n\t\"./fr-ca\": 63049,\n\t\"./fr-ca.js\": 63049,\n\t\"./fr-ch\": 52330,\n\t\"./fr-ch.js\": 52330,\n\t\"./fr.js\": 94470,\n\t\"./fy\": 5044,\n\t\"./fy.js\": 5044,\n\t\"./ga\": 29295,\n\t\"./ga.js\": 29295,\n\t\"./gd\": 2101,\n\t\"./gd.js\": 2101,\n\t\"./gl\": 38794,\n\t\"./gl.js\": 38794,\n\t\"./gom-deva\": 27884,\n\t\"./gom-deva.js\": 27884,\n\t\"./gom-latn\": 23168,\n\t\"./gom-latn.js\": 23168,\n\t\"./gu\": 95349,\n\t\"./gu.js\": 95349,\n\t\"./he\": 24206,\n\t\"./he.js\": 24206,\n\t\"./hi\": 30094,\n\t\"./hi.js\": 30094,\n\t\"./hr\": 30316,\n\t\"./hr.js\": 30316,\n\t\"./hu\": 22138,\n\t\"./hu.js\": 22138,\n\t\"./hy-am\": 11423,\n\t\"./hy-am.js\": 11423,\n\t\"./id\": 29218,\n\t\"./id.js\": 29218,\n\t\"./is\": 90135,\n\t\"./is.js\": 90135,\n\t\"./it\": 90626,\n\t\"./it-ch\": 10150,\n\t\"./it-ch.js\": 10150,\n\t\"./it.js\": 90626,\n\t\"./ja\": 39183,\n\t\"./ja.js\": 39183,\n\t\"./jv\": 24286,\n\t\"./jv.js\": 24286,\n\t\"./ka\": 12105,\n\t\"./ka.js\": 12105,\n\t\"./kk\": 47772,\n\t\"./kk.js\": 47772,\n\t\"./km\": 18758,\n\t\"./km.js\": 18758,\n\t\"./kn\": 79282,\n\t\"./kn.js\": 79282,\n\t\"./ko\": 33730,\n\t\"./ko.js\": 33730,\n\t\"./ku\": 1408,\n\t\"./ku.js\": 1408,\n\t\"./ky\": 33291,\n\t\"./ky.js\": 33291,\n\t\"./lb\": 36841,\n\t\"./lb.js\": 36841,\n\t\"./lo\": 55466,\n\t\"./lo.js\": 55466,\n\t\"./lt\": 57010,\n\t\"./lt.js\": 57010,\n\t\"./lv\": 37595,\n\t\"./lv.js\": 37595,\n\t\"./me\": 39861,\n\t\"./me.js\": 39861,\n\t\"./mi\": 35493,\n\t\"./mi.js\": 35493,\n\t\"./mk\": 95966,\n\t\"./mk.js\": 95966,\n\t\"./ml\": 87341,\n\t\"./ml.js\": 87341,\n\t\"./mn\": 5115,\n\t\"./mn.js\": 5115,\n\t\"./mr\": 10370,\n\t\"./mr.js\": 10370,\n\t\"./ms\": 9847,\n\t\"./ms-my\": 41237,\n\t\"./ms-my.js\": 41237,\n\t\"./ms.js\": 9847,\n\t\"./mt\": 72126,\n\t\"./mt.js\": 72126,\n\t\"./my\": 56165,\n\t\"./my.js\": 56165,\n\t\"./nb\": 64924,\n\t\"./nb.js\": 64924,\n\t\"./ne\": 16744,\n\t\"./ne.js\": 16744,\n\t\"./nl\": 93901,\n\t\"./nl-be\": 59814,\n\t\"./nl-be.js\": 59814,\n\t\"./nl.js\": 93901,\n\t\"./nn\": 83877,\n\t\"./nn.js\": 83877,\n\t\"./oc-lnc\": 92135,\n\t\"./oc-lnc.js\": 92135,\n\t\"./pa-in\": 15858,\n\t\"./pa-in.js\": 15858,\n\t\"./pl\": 64495,\n\t\"./pl.js\": 64495,\n\t\"./pt\": 89520,\n\t\"./pt-br\": 57971,\n\t\"./pt-br.js\": 57971,\n\t\"./pt.js\": 89520,\n\t\"./ro\": 96459,\n\t\"./ro.js\": 96459,\n\t\"./ru\": 21793,\n\t\"./ru.js\": 21793,\n\t\"./sd\": 40950,\n\t\"./sd.js\": 40950,\n\t\"./se\": 10490,\n\t\"./se.js\": 10490,\n\t\"./si\": 90124,\n\t\"./si.js\": 90124,\n\t\"./sk\": 64249,\n\t\"./sk.js\": 64249,\n\t\"./sl\": 14985,\n\t\"./sl.js\": 14985,\n\t\"./sq\": 51104,\n\t\"./sq.js\": 51104,\n\t\"./sr\": 49131,\n\t\"./sr-cyrl\": 79915,\n\t\"./sr-cyrl.js\": 79915,\n\t\"./sr.js\": 49131,\n\t\"./ss\": 85893,\n\t\"./ss.js\": 85893,\n\t\"./sv\": 98760,\n\t\"./sv.js\": 98760,\n\t\"./sw\": 91172,\n\t\"./sw.js\": 91172,\n\t\"./ta\": 27333,\n\t\"./ta.js\": 27333,\n\t\"./te\": 23110,\n\t\"./te.js\": 23110,\n\t\"./tet\": 52095,\n\t\"./tet.js\": 52095,\n\t\"./tg\": 27321,\n\t\"./tg.js\": 27321,\n\t\"./th\": 9041,\n\t\"./th.js\": 9041,\n\t\"./tk\": 19005,\n\t\"./tk.js\": 19005,\n\t\"./tl-ph\": 75768,\n\t\"./tl-ph.js\": 75768,\n\t\"./tlh\": 89444,\n\t\"./tlh.js\": 89444,\n\t\"./tr\": 72397,\n\t\"./tr.js\": 72397,\n\t\"./tzl\": 28254,\n\t\"./tzl.js\": 28254,\n\t\"./tzm\": 51106,\n\t\"./tzm-latn\": 30699,\n\t\"./tzm-latn.js\": 30699,\n\t\"./tzm.js\": 51106,\n\t\"./ug-cn\": 9288,\n\t\"./ug-cn.js\": 9288,\n\t\"./uk\": 67691,\n\t\"./uk.js\": 67691,\n\t\"./ur\": 13795,\n\t\"./ur.js\": 13795,\n\t\"./uz\": 6791,\n\t\"./uz-latn\": 60588,\n\t\"./uz-latn.js\": 60588,\n\t\"./uz.js\": 6791,\n\t\"./vi\": 65666,\n\t\"./vi.js\": 65666,\n\t\"./x-pseudo\": 14378,\n\t\"./x-pseudo.js\": 14378,\n\t\"./yo\": 75805,\n\t\"./yo.js\": 75805,\n\t\"./zh-cn\": 83839,\n\t\"./zh-cn.js\": 83839,\n\t\"./zh-hk\": 55726,\n\t\"./zh-hk.js\": 55726,\n\t\"./zh-mo\": 99807,\n\t\"./zh-mo.js\": 99807,\n\t\"./zh-tw\": 74152,\n\t\"./zh-tw.js\": 74152\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 46700;","import { BModal } from 'bootstrap-vue';\r\nimport PageRender from '@/models/PageRender';\r\n\r\nexport default class BaseModal extends PageRender {\r\n public isLoading: boolean = true;\r\n\r\n public $refs!: {\r\n modal: BModal;\r\n };\r\n\r\n public show() {\r\n this.$refs.modal.show();\r\n }\r\n\r\n public hide() {\r\n this.$refs.modal.hide();\r\n }\r\n}\r\n","import moment from 'moment';\r\n\r\nexport default class Notification {\r\n public id: string = '';\r\n public handled: boolean = false;\r\n public deepLink: string = null;\r\n\r\n public application: string;\r\n public notificationTemplate: string = '';\r\n public notificationType: number = 0;\r\n\r\n public title: string = '';\r\n public message: string = '';\r\n public timestamp: string = '';\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n\r\n public get dateString() {\r\n return moment(this.timestamp, 'YYYY-MM-DD hh:mm:ss').fromNow();\r\n }\r\n}\r\n","import Vue from 'vue';\r\nimport { Prop, Component } from 'vue-property-decorator';\r\nimport { translateModule } from '@/store/modules/translate';\r\n\r\n@Component\r\nexport default class TranslateBase extends Vue {\r\n @Prop() public translateKey: string;\r\n @Prop() public translateGroup: string;\r\n @Prop() public params: any;\r\n @Prop({ type: Boolean }) public inline: boolean;\r\n @Prop({ type: Boolean }) public column: boolean;\r\n public editMode: boolean = false;\r\n public virtualValue: string = '';\r\n public $refs!: {\r\n input: any,\r\n };\r\n\r\n public created() {\r\n this.virtualValue = this.rawValue;\r\n }\r\n\r\n public get rawValue() {\r\n return translateModule.value(this.translateKey, this.translateGroup);\r\n }\r\n\r\n public get value() {\r\n return translateModule.value(this.translateKey, this.translateGroup, this.params);\r\n }\r\n\r\n public get inEditMode() {\r\n return translateModule.inEditMode;\r\n }\r\n\r\n public edit(e) {\r\n this.editMode = true;\r\n e.preventDefault();\r\n\r\n this.$nextTick(() => {\r\n if (this.$refs.input) {\r\n this.$refs.input.$el.focus();\r\n }\r\n });\r\n }\r\n\r\n public setValue(e) {\r\n this.virtualValue = e;\r\n }\r\n\r\n public async save(e) {\r\n this.editMode = false;\r\n e.preventDefault();\r\n await translateModule.setValue({\r\n key: this.translateKey,\r\n value: this.virtualValue,\r\n group: this.translateGroup,\r\n });\r\n }\r\n\r\n public get id() {\r\n const self = this as any;\r\n return `p${self._uid}`;\r\n }\r\n}\r\n","export const numberFormat = (n: number): string => {\r\n if (!n || typeof n === 'undefined' || n == null) {\r\n return '0';\r\n }\r\n\r\n if (n > -1000 && n < 1000) {\r\n return n.round(2).replace('.', ',');\r\n }\r\n\r\n const parts = n.round(2).split('.');\r\n const chars = [];\r\n let i = 0;\r\n\r\n if (parts.length === 2) {\r\n chars.push(`,${parts[1]}`);\r\n }\r\n\r\n parts[0]\r\n .split('')\r\n .reverse()\r\n .forEach((c) => {\r\n chars.push(c);\r\n i++;\r\n if (i > 0 && i % 3 === 0) {\r\n chars.push(' ');\r\n }\r\n });\r\n\r\n return chars.reverse().join('').trim();\r\n};\r\n","import DistributedInvoice from '../models/DistributedInvoice';\r\nimport { AccountType } from '@/models/AccountType';\r\nimport { Distribution } from '@/models/Interfaces';\r\n\r\nclass Functions {\r\n public getCommunicationChannel(channels: any, channelName: string) {\r\n if (channels && channels.length) {\r\n const filteredChannel = channels.filter((channel: any) => channel.channelName === channelName);\r\n\r\n if (filteredChannel && filteredChannel.length) {\r\n return filteredChannel[0].value;\r\n }\r\n }\r\n\r\n return 'N/A';\r\n }\r\n\r\n public groupBy(arr, prop) {\r\n const map = new Map(Array.from(arr, (obj) => [obj[prop], []]));\r\n arr.forEach((obj) => map.get(obj[prop]).push(obj));\r\n return Array.from(map.values());\r\n }\r\n\r\n public amountLeft(item: DistributedInvoice, isNegative: boolean = false) {\r\n let amountLeft = parseInt((item.invoice.amount * 100).toFixed());\r\n if (item && item.distributions) {\r\n for (const distribution of item.distributions) {\r\n if (distribution) {\r\n if (isNegative) {\r\n amountLeft += parseInt((distribution.amount * 100 * -1).toFixed());\r\n } else {\r\n amountLeft -= parseInt((distribution.amount * 100).toFixed());\r\n }\r\n }\r\n }\r\n }\r\n return amountLeft / 100;\r\n }\r\n\r\n public setCookie(name, value, days): void {\r\n let expires = '';\r\n if (days) {\r\n const date = new Date();\r\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\r\n expires = '; expires=' + date.toUTCString();\r\n }\r\n document.cookie = `${name}=${value || ''}${expires}; path=/`;\r\n }\r\n\r\n public getCookie(name): any {\r\n const nameEQ = `${name}=`;\r\n const ca = document.cookie.split(';');\r\n for (let i = 0; i < ca.length; i++) {\r\n let c = ca[i];\r\n while (c.charAt(0) === ' ') {\r\n c = c.substring(1, c.length);\r\n }\r\n if (c.indexOf(nameEQ) === 0) {\r\n return c.substring(nameEQ.length, c.length);\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n public eraseCookie(name): void {\r\n document.cookie = `${name}=; Max-Age=-99999999;`;\r\n }\r\n\r\n public getPersonDistributions(personId: number, distributions: Distribution[]) {\r\n if (typeof personId === 'undefined' || personId === null) {\r\n console.error('Given personId is undefined or null. Please give a valid personId');\r\n }\r\n\r\n return distributions.filter((distribution: Distribution) => {\r\n if (distribution.account) {\r\n return distribution.account.relatedEntityId === personId && distribution.account.accountType === AccountType.Person;\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport const functions = new Functions();\r\n","class EnMessages {\r\n public notAllowedToDistribute: string = 'You magician! You\\'re not allowed to generate money by claiming more than there is available';\r\n}\r\n\r\nexport const enMessages = new EnMessages();\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.loggedIn || _vm.isLoading || _vm.loadingLanguage)?_c('div',{staticClass:\"d-block\"},[(_vm.isLoading || _vm.loadingLanguage)?_c('prd-loader',[_c('spinner'),_c('h2',[_vm._v(\"Loading..\")])],1):_c('router-view'),_c('prd-notify-wrapper')],1):_c('prd-page',{key:_vm.lang},[(_vm.showNav())?_c('menu-component'):_vm._e(),_c('prd-main-with-topbar',{class:{ main: _vm.showContent() }},[(!_vm.isLoading && _vm.showTopBar())?_c('navigation-bar',{key:_vm.$route.fullPath}):_vm._e(),_c('router-view',{key:_vm.$route.path,attrs:{\"slot\":\"content\"},slot:\"content\"})],1),_c('prd-notify-wrapper'),_c('side-actions')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('prd-nav-pane',{attrs:{\"name\":\"bright\"}},[_c('img',{attrs:{\"slot\":\"logo\",\"src\":\"/img/bright_icon_blue.svg\"},slot:\"logo\"}),_c('p',{attrs:{\"slot\":\"context\"},slot:\"context\"},[_vm._v(\"Bright\")]),_c('prd-nav-category',{attrs:{\"title\":\"Me\",\"variant\":\"primary\",\"open\":_vm.isMe,\"name\":\"me\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ME\"},slot:\"title\"}),_c('prd-nav-link',{attrs:{\"icon\":\"directory\",\"label\":\".directory\",\"to\":{\n name: 'me-directory',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n teamId: _vm.$root.teamHelper.currentTeam.id,\n teamKey: _vm.$root.teamHelper.currentTeam.key,\n tab: 'groups',\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isMe && _vm.$route.meta.section === 'directory'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"DIRECTORY\"}})],1),_c('prd-nav-link',{attrs:{\"icon\":\"finance\",\"label\":\".finances\",\"to\":{\n name: 'me-finances',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n teamId: _vm.$root.teamHelper.currentTeam.id,\n teamKey: _vm.$root.teamHelper.currentTeam.key,\n period: _vm.$store.state.period._selectedPeriod,\n tab: 'overview',\n },\n },\"active\":_vm.isMe && _vm.$route.meta.section === 'finances'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"FINANCES\"}})],1)],1),_c('prd-nav-category',{attrs:{\"title\":\"Team\",\"variant\":\"warning\",\"icon\":\"team\",\"open\":_vm.isTeam,\"name\":\"team\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"TEAM\"},slot:\"title\"}),_c('prd-nav-link',{attrs:{\"icon\":\"directory\",\"label\":\".directory\",\"to\":{\n name: 'team-directory',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n teamId: _vm.$root.teamHelper.currentTeam.id,\n teamKey: _vm.$root.teamHelper.currentTeam.key,\n tab: 'groups',\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isTeam && _vm.$route.meta.section == 'directory'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"DIRECTORY\"}})],1),_c('prd-nav-link',{attrs:{\"icon\":\"finance\",\"label\":\".finances\",\"to\":{\n name: 'team-finances',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n teamId: _vm.$root.teamHelper.currentTeam.id,\n teamKey: _vm.$root.teamHelper.currentTeam.key,\n tab: 'group-overview',\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isTeam && _vm.$route.meta.section == 'finances'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"FINANCES\"}})],1),_c('prd-nav-link',{attrs:{\"icon\":\"insights\",\"label\":\".analytics\",\"to\":{\n name: 'team-insights',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n teamId: _vm.$root.teamHelper.currentTeam.id,\n teamKey: _vm.$root.teamHelper.currentTeam.key,\n tab: 'group-results',\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isTeam && _vm.$route.meta.section == 'insights'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"ANALYTICS\"}})],1)],1),_c('prd-nav-category',{attrs:{\"title\":\"Ecosystem\",\"variant\":\"success\",\"icon\":\"ecosystem\",\"open\":_vm.isEco,\"name\":\"ecosystem\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"ECOLOGY\"},slot:\"title\"}),_c('prd-nav-link',{attrs:{\"icon\":\"overview\",\"label\":\".overview\",\"to\":{\n name: 'ecosystem-overview',\n params: { ecosystem: _vm.$root.ecosystemHelper.ecosystemParam, period: _vm.$store.state.period._selectedPeriod },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'overview'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"OVERVIEW\"}})],1),_c('prd-nav-link',{attrs:{\"icon\":\"directory\",\"label\":\".directory\",\"to\":{\n name: 'ecosystem-directory',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n period: _vm.$store.state.period._selectedPeriod,\n tab: 'groups',\n },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'directory'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"DIRECTORY\"}})],1),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('prd-nav-link',{attrs:{\"icon\":\"finance\",\"label\":\".finances\",\"to\":{\n name: 'ecosystem-finances',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'finances'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"FINANCES\"}})],1):_vm._e(),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('prd-nav-link',{attrs:{\"label\":\".settings\",\"icon\":\"settings\",\"to\":{\n name: 'ecosystem-settings',\n params: {\n tab: 'ledger-accounts',\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'settings'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"SETTINGS\"}})],1):_vm._e(),_c('prd-nav-link',{attrs:{\"label\":\".insights\",\"icon\":\"insights\",\"to\":{\n name: 'ecosystem-insights',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'insights'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"INSIGHTS\"}})],1),_c('prd-nav-link',{attrs:{\"label\":\".cells\",\"icon\":\"share-2\",\"to\":{\n name: 'ecosystem-cells',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'cells'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"CELLS\"}})],1),(_vm.$root.roleHelper.isSiteAdmin() || _vm.$root.roleHelper.isFinanceEmployee())?_c('prd-nav-link',{attrs:{\"label\":\".subscriptions\",\"icon\":\"rotate-cw\",\"to\":{\n name: 'ecosystem-subscription',\n params: {\n ecosystemId: _vm.$root.ecosystemHelper.currentEcosystem.id,\n ecosystemKey: _vm.$root.ecosystemHelper.currentEcosystem.key,\n period: _vm.$store.state.period._selectedPeriod,\n },\n },\"active\":_vm.isEco && _vm.$route.meta.section == 'subscription'}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"SUBSCRIPTION\"}})],1):_vm._e()],1),_c('prd-nav-category',{attrs:{\"title\":\"Settings\",\"variant\":\"dark\",\"icon\":\"settings\",\"open\":_vm.isSettings,\"name\":\"settings\"}},[_c('prd-translate-text',{attrs:{\"slot\":\"title\",\"translate-key\":\"SETTINGS\"},slot:\"title\"}),(_vm.$root.roleHelper.isSiteAdmin())?_c('prd-nav-link',{attrs:{\"icon\":\"settings\",\"label\":\".language\",\"to\":{ name: 'settings-translate' }}},[_c('prd-translate-text',{attrs:{\"inline\":true,\"translate-key\":\"SETTINGS_LANGUAGE\"}})],1):_vm._e()],1),_c('template',{slot:\"footer\"},[_c('button',{staticClass:\"btn btn-sm btn-default\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.showVersionModal}},[_c('span',{staticClass:\"icon-info\"})])]),_c('b-modal',{ref:\"versionNotesModal\",attrs:{\"size\":\"lg\",\"title\":'Version ' + _vm.$env().version}},[_c('release-notes'),_c('span',{attrs:{\"slot\":\"modal-ok\"},slot:\"modal-ok\"},[_vm._v(\" close \")])],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"wrapper\"},[_c('h4',{staticClass:\"ml-3\"},[_vm._v(\"Latest changes\")]),_c('ul',{staticClass:\"timeline\"},[_c('li',{staticClass:\"future\"},[_c('strong',[_vm._v(\"Upcoming features\")]),_c('strong',{staticClass:\"float-right\",attrs:{\"href\":\"#\"}},[_vm._v(\"Coming soon\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" Even more automation so you can sit, relax and monitor with less clicks. \")])]),_c('li',[_c('strong',[_vm._v(\"Recurring transfers\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"7 December, 2020\")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Implemented recurring transfers: more automation = more relaxing\")]),_c('li',[_vm._v(\"More detailed and correct group finance statitics\")]),_c('li',[_vm._v(\"Some minor improvements and bug fixes\")])])]),_c('li',[_c('strong',[_vm._v(\"New Bright Identity\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"26 October, 2020\")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Implemented new bright identiy for Bright Ecology\")]),_c('li',[_vm._v(\"Fixed several minor bugs\")])])]),_c('li',[_c('strong',[_vm._v(\"Ecosystem\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"23 September, 2020\")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Redesign of team-switcher and breadcrumb and many more small items\")]),_c('li',[_vm._v(\"Add preferences to set primary team and ecosystem\")]),_c('li',[_vm._v(\"Renamed ecology to ecosystem\")]),_c('li',[_vm._v(\"New add member flow for inviting or adding members to your team\")]),_c('li',[_vm._v(\"Possibility to create a new team or edit some properties of an excisting team\")]),_c('li',[_vm._v(\"Energy dedication is now editable on team level, so it always needs to add up to 100%\")]),_c('li',[_vm._v(\"Translate-module\")])])]),_c('li',[_c('strong',[_vm._v(\"Transfer requests\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"24 Juno, 2020\")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Make a tansfer request; ask a group in your or from another team to send you a tranfers\")]),_c('li',[_vm._v(\"Add analytics section to ecosystem overview\")]),_c('li',[_vm._v(\"Decoupling finance and directory related functions\")]),_c('li',[_vm._v(\"Add a 'docs' section to directory groups\")]),_c('li',[_vm._v(\"Set your finance group type, in the future this will cause different functionalities for specific group types\")])])]),_c('li',[_c('strong',[_vm._v(\"Amortization\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"19 May, 2020\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" Now it's possible to amortize income or an expense periodically. Attributions are coupled to periods, so changing them doesn't mess up totals of earlier periods. \")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Add a copy functionality for importing invocies\")]),_c('li',[_vm._v(\"Add periods to attributions\")]),_c('li',[_vm._v(\"Add a possibility to amortize an expense or income\")]),_c('li',[_vm._v(\"Add a ecosystem directory page to see all groups or all members in a grid or map-view\")]),_c('li',[_vm._v(\"Keep selected analytics periods the same when switching between analytics pages\")]),_c('li',[_vm._v(\"Add group aliases for financial matching purposes\")])])]),_c('li',[_c('strong',[_vm._v(\"How can i reach you? \")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"16 April, 2020\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" Well now there's the possibility to change your communication channels and other personal info. Also we added analytics for cumulative results, some bug fixes and a redesign of the grid-filter with the possibility to search on anything in those grids. \")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Implemented the profile page, you will find the link to your profile at the litte arrow behind your name.\")]),_c('li',[_vm._v(\"Added team analytics section for Finance Employees and Site Admins\")]),_c('li',[_vm._v(\"Added group analytics for Group leads, Finance Employees and Site Admins\")]),_c('li',[_vm._v(\" Redesigned topbar of most invoice-grids. You now also have the possibility to search for any property of an invoice, even to whom it's distributed. \")]),_c('li',[_vm._v(\"Fixed groupmembership update bug\")])])]),_c('li',[_c('strong',[_vm._v(\"Group lead now also can edit energy dedication of his/her group members.\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"26 March, 2020\")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Group lead (and site admin) can edit energy dedication of his/her group members\")]),_c('li',[_vm._v(\"Downgrade an account so it cannot login anymore, but functionally still exists as an entity in Bright\")]),_c('li',[_vm._v(\"Export all team members into an excel\")]),_c('li',[_vm._v(\"Add Group to calculated revenue table\")])])]),_c('li',[_c('strong',[_vm._v(\"Group lead coupled to periods\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"17 March, 2020\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" In this release we smashed a couple of known issues, concerning incorrect totals and other small bug fixes. \")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Transfer group lead from person to person\")]),_c('li',[_vm._v(\"Add current month to the period selector so you can do work in advance\")])])]),_c('li',[_c('strong',[_vm._v(\"Team user management & compensations\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"9 January, 2020\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" Energy dedication will become more important after this release. It's now possible to compensate your group members for the costs on the base of energy dedication. \")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Compensate group members for costs in one-click\")]),_c('li',[_vm._v(\"Remove inactive members (as group lead or site admin) from group or team\")]),_c('li',[_vm._v(\"Leave a team\")])])]),_c('li',[_c('strong',[_vm._v(\"Ecosystem overview & External transfers\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"28 September, 2019\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" It isn't needed anymore to create an invoice for transfer funds between teams. Now you can create a transfer between groups of different teams. \")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Transfer between multiple teams\")]),_c('li',[_vm._v(\"For admins and financial roles there is a financial overview of the whole ecosystem\")])])]),_c('li',[_c('strong',[_vm._v(\"Period closing & Transfer undistributed invoices to next period\")]),_c('strong',{staticClass:\"float-right\"},[_vm._v(\"17 Juni,2019\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" It's possible to close periods and no more activities are allowed to do in that period. Undistributed invoices will be transferred to the next period. \")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Close a period\")]),_c('li',[_vm._v(\"Undistributed invocies will come back in the new period\")])])]),_c('li',[_c('strong',{attrs:{\"href\":\"#\"}},[_vm._v(\"Release v1.0\")]),_c('strong',{staticClass:\"float-right\",attrs:{\"href\":\"#\"}},[_vm._v(\"10 March, 2019\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"Here it is! Version 1, congratz all.\")]),_c('p',{staticClass:\"mt-2 mb-0\"},[_vm._v(\"New features:\")]),_c('ul',[_c('li',[_vm._v(\"Import invoices\")]),_c('li',[_vm._v(\"Distribute invoices to groups or persons\")]),_c('li',[_vm._v(\"See your personal finance\")]),_c('li',[_vm._v(\"Add attributions on team and group level\")]),_c('li',[_vm._v(\"Import new members\")])])]),_c('li',[_c('strong',[_vm._v(\"Start of developing Bright\")]),_c('strong',{staticClass:\"float-right\",attrs:{\"href\":\"#\"}},[_vm._v(\"1 September, 2018\")])])])])])])}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./release-notes.vue?vue&type=template&id=2c931618&\"\nvar script = {}\nimport style0 from \"./release-notes.vue?vue&type=style&index=0&id=2c931618&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 Vue from 'vue';\r\nimport { Component, Watch } from 'vue-property-decorator';\r\nimport { navigationHelper } from '@/main';\r\nimport { Person } from '../../models/Person';\r\nimport { BModal } from 'bootstrap-vue';\r\nimport ReleaseNotes from '../../components/release-notes/release-notes.vue';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\n@Component({\r\n components: {\r\n ReleaseNotes,\r\n },\r\n})\r\nexport default class NavMenuComponent extends Vue {\r\n public isMe: boolean = false;\r\n public isTeam: boolean = false;\r\n public isEco: boolean = false;\r\n public profile: Person;\r\n public isSettings: boolean = false;\r\n public show: boolean = false;\r\n\r\n public $refs!: {\r\n versionNotesModal: BModal;\r\n };\r\n\r\n @Watch('$route', { immediate: true, deep: true })\r\n public onRouteChanged() {\r\n this.setScope();\r\n }\r\n\r\n public showVersionModal() {\r\n this.$refs.versionNotesModal.show();\r\n }\r\n\r\n public setScope(): void {\r\n this.isMe = this.$route.path.indexOf('/me/') > -1 || this.$route.path === '/';\r\n this.isTeam = this.$route.path.indexOf('/team/') > -1;\r\n this.isEco = this.$route.meta.scope === 'ecosystem';\r\n this.isSettings = this.$route.meta.scope === 'settings';\r\n }\r\n\r\n public toggleSubMenu() {\r\n navigationHelper.toggleNavigation();\r\n }\r\n\r\n public showMainNav() {\r\n return profileModule.profileLoaded && periodModule.periods.length > 0;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./navmenu.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./navmenu.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./navmenu.vue?vue&type=template&id=14383391&\"\nimport script from \"./navmenu.ts?vue&type=script&lang=js&\"\nexport * from \"./navmenu.ts?vue&type=script&lang=js&\"\nimport style0 from \"./navmenu.vue?vue&type=style&index=0&id=14383391&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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 { Component } from 'vue-property-decorator';\r\nimport NavMenuComponent from '@/components/navmenu/navmenu.vue';\r\nimport { loginHelper, teamHelper, meService, $router, ecosystemHelper } from './main';\r\nimport { Person } from './models/Person';\r\nimport Team from './models/Team';\r\nimport to from 'await-to-js';\r\nimport PageRender from './models/PageRender';\r\nimport { translateModule } from './store/modules/translate';\r\nimport { profileModule } from './store/modules/profile';\r\nimport { periodModule } from './store/modules/period';\r\n\r\n@Component({\r\n components: {\r\n MenuComponent: NavMenuComponent,\r\n },\r\n})\r\nexport default class AppComponent extends PageRender {\r\n public isLoading: boolean = true;\r\n public teams: Team[] = [];\r\n public user: Person = null;\r\n\r\n public async beforeMount() {\r\n await profileModule.init();\r\n await this.initApp();\r\n this.isLoading = false;\r\n }\r\n\r\n public showContent() {\r\n return profileModule.profileLoaded; // && loginHelper.profileLoaded() && periodFilterHelper.periods.length > 0;\r\n }\r\n\r\n public showTopBar() {\r\n return profileModule.profileLoaded; // loginService.user !== null || typeof loginService.user !== 'undefined'; // && loginHelper.profileLoaded();\r\n }\r\n\r\n public showNav() {\r\n return profileModule.profileLoaded; // loginService.user !== null || typeof loginService.user !== 'undefined'; // && loginHelper.profileLoaded() && periodFilterHelper.periods.length > 0;\r\n }\r\n\r\n public get loggedIn() {\r\n return profileModule.isLoggedIn;\r\n }\r\n\r\n public get lang() {\r\n return translateModule.activeLanguage;\r\n }\r\n\r\n public get loadingLanguage() {\r\n return translateModule.isLoading;\r\n }\r\n\r\n private async initApp() {\r\n translateModule.detectLanguage();\r\n await translateModule.fetch();\r\n\r\n if (profileModule.isLoggedIn) {\r\n const [err, response] = await to(meService.profile());\r\n if (err) {\r\n await $router.push({ name: 'login' });\r\n this.isLoading = false;\r\n return loginHelper.logOut();\r\n }\r\n profileModule.setBrightProfile(response);\r\n\r\n if (this.$appInsights) {\r\n this.$appInsights.trackEvent({ name: 'user-login-existing-token' });\r\n }\r\n\r\n await ecosystemHelper.setup();\r\n await teamHelper.setup();\r\n await periodModule.init();\r\n }\r\n }\r\n}\r\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./App.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./App.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=f603d900&\"\nimport script from \"./App.ts?vue&type=script&lang=js&\"\nexport * from \"./App.ts?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=f603d900&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/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('router-view')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\n\r\n@Component\r\nexport default class BaseEcosystem extends Vue {}\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./Base.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./Base.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Base.vue?vue&type=template&id=ee5a43fc&\"\nimport script from \"./Base.ts?vue&type=script&lang=js&\"\nexport * from \"./Base.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/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 VueRouter, { Route } from 'vue-router';\r\nimport { navigationHelper } from '@/main';\r\nimport BaseEcosystem from '@/pages/Base.vue';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport Vue from 'vue';\r\n\r\nVue.use(VueRouter);\r\n\r\nconst routes = [\r\n {\r\n name: 'login',\r\n path: '/login',\r\n component: () => import(/* webpackChunkName: \"login\" */ '../pages/account/login/login.vue'),\r\n meta: { title: 'Login' },\r\n },\r\n {\r\n name: 'home',\r\n path: '/',\r\n component: () => import(/* webpackChunkName: \"home\" */ '../pages/home/home.vue'),\r\n meta: { title: 'Loading..' },\r\n },\r\n {\r\n name: 'ecosystem-base',\r\n path: '/:ecosystemId(\\\\d+)-:ecosystemKey/',\r\n component: BaseEcosystem,\r\n children: [\r\n {\r\n name: 'ecosystem-settings',\r\n path: 'settings/:period/:tab?',\r\n component: require('@/pages/ecosystem/settings/settings.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'settings',\r\n breadcrumb: {\r\n text: 'SETTINGS',\r\n items: ['ecosystem-overview', 'ecosystem-directory', 'ecosystem-finances', 'ecosystem-graph'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'ecosystem-insights',\r\n path: 'insights/:period/:view?',\r\n component: require('@/pages/ecosystem/insights.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'insights',\r\n breadcrumb: {\r\n text: 'INSIGHTS',\r\n items: ['ecosystem-graph', 'ecosystem-overview', 'ecosystem-directory', 'ecosystem-finances', 'ecosystem-settings'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'ecosystem-cells',\r\n path: 'cells/:period/:view?',\r\n component: require('@/modules/cells/views/cells.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'cells',\r\n breadcrumb: {\r\n text: 'CELLS',\r\n items: ['ecosystem-graph', 'ecosystem-overview', 'ecosystem-directory', 'ecosystem-finances', 'ecosystem-settings'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'ecosystem-subscription',\r\n path: 'subscription/:period/',\r\n component: require('@/pages/ecosystem/subscription/subscription.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'subscription',\r\n breadcrumb: {\r\n text: 'SUBSCRIPTION',\r\n items: ['ecosystem-graph', 'ecosystem-overview', 'ecosystem-directory', 'ecosystem-finances', 'ecosystem-settings'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'ecosystem-graph',\r\n path: 'graph/:period/:teamId?',\r\n component: require('@/pages/ecosystem/svg-graph.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'graph',\r\n breadcrumb: {\r\n text: 'GRAPH',\r\n items: ['ecosystem-overview', 'ecosystem-directory', 'ecosystem-finances', 'ecosystem-settings'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'ecosystem-overview',\r\n path: 'overview/:period/',\r\n component: require('@/pages/ecosystem/overview.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'overview',\r\n breadcrumb: {\r\n text: 'OVERVIEW',\r\n items: ['ecosystem-directory', 'ecosystem-finances', 'ecosystem-graph', 'ecosystem-settings'],\r\n },\r\n },\r\n children: [\r\n {\r\n name: 'ecosystem-overview-team',\r\n path: ':teamId(\\\\d+)?-:teamKey?',\r\n component: require('@/pages/ecosystem/overview.vue').default,\r\n meta: { title: 'Ecosystem', scope: 'ecosystem', section: 'overview' },\r\n children: [\r\n {\r\n name: 'ecosystem-overview-group',\r\n path: ':groupId(\\\\d+)-:groupKey?',\r\n component: require('@/pages/ecosystem/overview.vue').default,\r\n meta: { title: 'Ecosystem', scope: 'ecosystem', section: 'overview' },\r\n children: [],\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n name: 'ecosystem-ceate-team',\r\n path: 'create-team/:period/',\r\n component: require('@/pages/ecosystem/create-team.vue').default,\r\n meta: { title: 'Ecosystem', scope: 'ecosystem', section: 'create-team' },\r\n },\r\n {\r\n name: 'ecosystem-directory',\r\n path: 'directory/:period/:tab?',\r\n component: require('@/pages/ecosystem/directory/directory.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'directory',\r\n breadcrumb: {\r\n text: 'DIRECTORY',\r\n items: ['ecosystem-overview', 'ecosystem-finances', 'ecosystem-graph', 'ecosystem-settings'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'ecosystem-finances',\r\n path: 'finances/:period',\r\n component: require('@/pages/ecosystem/finances.vue').default,\r\n meta: {\r\n title: 'Ecosystem',\r\n scope: 'ecosystem',\r\n section: 'finances',\r\n breadcrumb: {\r\n text: 'FINANCES',\r\n items: ['ecosystem-overview', 'ecosystem-finances', 'ecosystem-directory', 'ecosystem-graph', 'ecosystem-settings'],\r\n },\r\n },\r\n },\r\n {\r\n name: 'me',\r\n path: ':teamId(\\\\d+)-:teamKey/me/:period',\r\n component: require('@/pages/dashboard/me.vue').default,\r\n },\r\n {\r\n name: 'me-directory',\r\n // path: '/:ecosystem((\\\\d+)\\\\-([\\\\w\\\\-]+))/:team((\\\\d+)\\\\-([\\\\w\\\\-]+))/me/directory/:tab/:period',\r\n path: ':teamId(\\\\d+)-:teamKey/me/directory/:tab/:period',\r\n component: () => import(/* webpackChunkName: \"me\" */ '../pages/me/directory/directory.vue'),\r\n meta: { title: 'Me - Directory', section: 'directory', breadcrumb: { text: 'DIRECTORY', items: ['me-finances'] } },\r\n },\r\n {\r\n name: 'me-finances',\r\n path: ':teamId(\\\\d+)-:teamKey/me/finances/:tab/:period',\r\n component: () => import(/* webpackChunkName: \"me\" */ '../pages/me/finance/finance.vue'),\r\n meta: { title: 'Me - Finance', section: 'finances', breadcrumb: { text: 'FINANCES', items: ['me-directory'] } },\r\n },\r\n {\r\n name: 'me-insights',\r\n path: ':teamId(\\\\d+)-:teamKey/me/insights/:period',\r\n component: () => import(/* webpackChunkName: \"me\" */ '../pages/me/insights/insights.vue'),\r\n meta: { title: 'Me - Insights' },\r\n },\r\n {\r\n name: 'me-profile',\r\n path: ':teamId(\\\\d+)-:teamKey/me/profile/:id',\r\n component: require('@/pages/account/profile/profile.vue').default,\r\n meta: { title: 'Me - Profile' },\r\n },\r\n {\r\n name: 'team-finances',\r\n path: ':teamId(\\\\d+)-:teamKey/team/finances/:tab/:period',\r\n component: require('@/pages/teams/finance/finance.vue').default,\r\n meta: {\r\n title: 'Team - Finance',\r\n section: 'finances',\r\n breadcrumb: { text: 'FINANCES', items: ['team-directory', 'team-insights'] },\r\n },\r\n },\r\n {\r\n name: 'team-directory-add-group',\r\n path: ':teamId(\\\\d+)-:teamKey/team/directory/groups/:period/add',\r\n component: require('@/pages/teams/directory/add-group.vue').default,\r\n meta: { title: 'Team - Directory - Add group' },\r\n },\r\n {\r\n name: 'team-directory-add-member',\r\n path: ':teamId(\\\\d+)-:teamKey/team/directory/members/:period/add',\r\n component: require('@/pages/teams/directory/add-member.vue').default,\r\n meta: { title: 'Team - Directory - Add member' },\r\n },\r\n {\r\n name: 'team-directory',\r\n path: ':teamId(\\\\d+)-:teamKey/team/directory/:tab/:period',\r\n component: require('@/pages/teams/directory/directory.vue').default,\r\n meta: {\r\n title: 'Team - Directory',\r\n section: 'directory',\r\n breadcrumb: { text: 'DIRECTORY', items: ['team-finances', 'team-insights'] },\r\n },\r\n },\r\n {\r\n name: 'team-directory-group',\r\n path: ':teamId(\\\\d+)-:teamKey/team/directory/:groupId(\\\\d+)?-:groupKey?/:tab/:period',\r\n component: require('@/pages/groups/details/details.vue').default,\r\n meta: {\r\n title: 'Team - Directory',\r\n section: 'directory',\r\n scope: 'team',\r\n breadcrumb: { text: 'DIRECTORY', items: ['team-finances-group'], split: 'team-directory' },\r\n },\r\n },\r\n {\r\n name: 'team-finances-group',\r\n path: ':teamId(\\\\d+)-:teamKey/team/finances/:groupId(\\\\d+)?-:groupKey?/:tab/:period',\r\n component: require('@/pages/groups/details/details.vue').default,\r\n meta: {\r\n section: 'finances',\r\n scope: 'team',\r\n title: 'Team - Finance',\r\n breadcrumb: { text: 'FINANCES', items: ['team-directory-group'], split: 'team-finances' },\r\n },\r\n },\r\n {\r\n name: 'team-insights',\r\n path: ':teamId(\\\\d+)-:teamKey/team/insights/:tab/:period',\r\n component: require('@/pages/teams/insights/insights.vue').default,\r\n meta: {\r\n title: 'Team - Insights',\r\n section: 'insights',\r\n breadcrumb: { text: 'ANALYTICS', items: ['team-directory', 'team-finances'] },\r\n },\r\n },\r\n // {\r\n // name: 'team',\r\n // path: '/:team/team/:key/:period',\r\n // component: require('@/pages/teams/details/details.vue').default,\r\n // meta: { title: 'Team' },\r\n // },\r\n {\r\n name: 'invite',\r\n path: ':teamId(\\\\d+)-:teamKey/team/invite/:key/:period',\r\n component: require('@/pages/account/invited/invited.vue').default,\r\n meta: { title: 'Team - Invite' },\r\n },\r\n {\r\n name: 'joinrequest',\r\n path: ':teamId(\\\\d+)-:teamKey/team/joinrequest/:id',\r\n component: require('@/pages/teams/joinrequest.vue').default,\r\n meta: { title: 'Team - Join request' },\r\n },\r\n ],\r\n },\r\n {\r\n name: 'app-error',\r\n path: '/error',\r\n component: require('@/pages/error/error.vue').default,\r\n meta: { title: 'Error Page' },\r\n },\r\n {\r\n name: 'not-found',\r\n path: '*',\r\n component: require('@/pages/notfound/notfound.vue').default,\r\n meta: { title: 'Woops!?' },\r\n },\r\n {\r\n name: 'settings-base',\r\n path: '/settings',\r\n redirect: '/settings/translate',\r\n },\r\n {\r\n name: 'settings-translate',\r\n path: '/settings/translate',\r\n component: require('@/pages/settings/translate.vue').default,\r\n meta: { title: 'Settings', scope: 'settings' },\r\n },\r\n];\r\n// tslint:disable-next-line:no-unused-variable\r\nconst beforeRoute = async (to: Route, from: Route, next: any) => {\r\n const anonymousRoutes = ['login', 'app-error', 'not-found', 'invite'];\r\n await profileModule.init();\r\n const loggedIn = profileModule.isLoggedIn;\r\n const matchedRoute = to.matched.length > 0 ? to.matched[to.matched.length - 1] : to;\r\n const matchedRouteName = matchedRoute && matchedRoute.name ? matchedRoute.name : '';\r\n\r\n if (anonymousRoutes.indexOf(matchedRouteName) > -1 || loggedIn) {\r\n return next();\r\n }\r\n\r\n next(`/login?redirectUrl=${to.fullPath}`);\r\n};\r\n\r\nconst onRouteFinished = (to: Route) => {\r\n const meta = to.meta || {};\r\n const params = to.params || {};\r\n\r\n let title = 'Bright Ecology';\r\n\r\n if (params.team) {\r\n title += ` - ${params.team}`;\r\n }\r\n\r\n if (meta.title) {\r\n title += ` - ${meta.title}`;\r\n }\r\n\r\n Vue.nextTick(() => {\r\n document.title = title;\r\n navigationHelper.hideNavigation();\r\n navigationHelper.loadRouteMeta(meta, params);\r\n });\r\n};\r\n\r\nconst router = new VueRouter({\r\n mode: 'history',\r\n routes,\r\n});\r\n\r\nrouter.beforeEach(beforeRoute);\r\nrouter.afterEach(onRouteFinished);\r\n\r\nexport default router;\r\n","import Vue from 'vue';\r\nimport { translateModule } from '@/store/modules/translate';\r\n\r\nconst getTranslateValue = (translateKey, translateParams = null) => {\r\n if (translateKey.indexOf('.') > -1) {\r\n const [group, key] = translateKey.split('.');\r\n return translateModule.value(key, group, translateParams);\r\n }\r\n return translateModule.value(translateKey, null, translateParams);\r\n};\r\n\r\nconst translateDirective = {\r\n setAttribute(el: HTMLElement, binding: any) {\r\n const attribute = binding.arg ? binding.arg : 'innerHTML';\r\n const key = typeof binding.value === 'string' ? binding.value : binding.value.key;\r\n const params = binding.value && binding.value.params ? binding.value.params : {};\r\n el[attribute] = getTranslateValue(key, params);\r\n },\r\n setPlaceholder(el: HTMLInputElement, translateKey) {\r\n el.placeholder = getTranslateValue(translateKey);\r\n },\r\n};\r\n\r\nVue.directive('translate', {\r\n bind(el: HTMLElement, binding) {\r\n translateDirective.setAttribute(el, binding);\r\n },\r\n unbind(el, binding) {\r\n const attribute = binding.arg ? binding.arg : 'innerHTML';\r\n el[attribute] = '';\r\n },\r\n});\r\n\r\nVue.directive('translate-placeholder', {\r\n bind(el: HTMLInputElement, binding) {\r\n translateDirective.setAttribute(el, binding);\r\n },\r\n});\r\n\r\nVue.filter('translate', (translateKey: string) => {\r\n return getTranslateValue(translateKey);\r\n});\r\n","import Vue from 'vue';\r\nimport { Grid, GridToolbar, GridNoRecords } from '@progress/kendo-vue-grid';\r\nimport { Popup } from '@progress/kendo-vue-popup';\r\nimport { DropDownList } from '@progress/kendo-vue-dropdowns';\r\nimport DatePicker from 'vue2-datepicker';\r\nimport { tree } from 'vued3tree';\r\n\r\nimport vSelect from 'vue-regex-input';\r\nVue.component('vue-regex-input', vSelect);\r\n\r\nVue.component('date-picker', DatePicker);\r\nVue.component('tree-chart', tree);\r\nVue.component('prd-local-map', require('@/components/map/Map.vue').default);\r\nVue.component('svg-graph', require('@/components/graph/svg-graph.vue').default);\r\n\r\n// Components\r\nVue.component('grid', Grid);\r\nVue.component('prd-grid-wrapper', require('@/components/grid/grid-wrapper.vue').default);\r\nVue.component('grid-toolbar', GridToolbar);\r\nVue.component('grid-norecords', GridNoRecords);\r\n\r\nVue.component('kendo-popup', Popup);\r\nVue.component('kendo-dropdownlist', DropDownList);\r\n\r\nVue.component('navigation-bar', require('@/components/navigation/bar.vue').default);\r\nVue.component('navigation-breadcrumb', require('@/components/navigation/breadcrumb.vue').default);\r\nVue.component('navigation-profile', require('@/components/navigation/profile.vue').default);\r\nVue.component('navigation-team', require('@/components/navigation/team.vue').default);\r\nVue.component('spinner', require('@/components/spinner/spinner.vue').default);\r\n\r\nVue.component('grid-percentage', require('@/components/grid/grid-percentage.vue').default);\r\nVue.component('grid-popover-element', require('@/components/grid/grid-popover-element.vue').default);\r\nVue.component('grid-router-link', require('@/components/grid/grid-router-link.vue').default);\r\nVue.component('grid-actions', require('@/components/grid/grid-actions.vue').default);\r\nVue.component('grid-numeric-editor', require('@/components/grid/grid-numeric-editor.vue').default);\r\nVue.component('grid-amount-left-filter', require('@/components/grid/grid-amount-left-filter.vue').default);\r\nVue.component('grid-html-renderer', require('@/components/grid/grid-html-renderer.vue').default);\r\nVue.component('grid-period-range-filter', require('@/components/grid/grid-period-range-filter.vue').default);\r\nVue.component('grid-transfer-direction', require('@/components/grid/grid-transfer-direction.vue').default);\r\nVue.component('grid-relation-settings', require('@/components/grid/grid-relation-settings.vue').default);\r\n\r\nVue.component('grid-list', require('@/components/grid/grid-list.vue').default);\r\nVue.component('grid-label-value', require('@/components/grid/grid-label-value.vue').default);\r\n\r\nVue.component('number-formatter', require('@/components/formatting/number-formatter.vue').default);\r\nVue.component('distribution-tree-amount', require('@/components/distribution/distribution-tree-amount.vue').default);\r\n\r\nVue.component('member-name', require('@/components/member/member-name.vue').default);\r\nVue.component('member-name-native', require('@/components/member/member-name-native.vue').default);\r\nVue.component('members-component', require('@/components/member/members.vue').default);\r\nVue.component('memberships-component', require('@/components/member/memberships.vue').default);\r\nVue.component('register', require('@/components/account/register.vue').default);\r\nVue.component('period-filter', require('@/components/period filter/period-filter.vue').default);\r\n\r\nVue.component('me-directory-groups', require('@/pages/me/directory/components/groups.vue').default);\r\nVue.component('me-directory-members', require('@/pages/me/directory/components/members.vue').default);\r\n\r\nVue.component('team-directory-groups', require('@/pages/teams/directory/components/groups.vue').default);\r\nVue.component('team-directory-members', require('@/pages/teams/directory/components/members.vue').default);\r\nVue.component('team-directory-settings', require('@/pages/teams/directory/components/settings.vue').default);\r\n\r\nVue.component('group-directory-members', require('@/pages/groups/details/components/group-detail-members.vue').default);\r\nVue.component('group-directory-workspace', require('@/pages/groups/details/components/group-detail-workspace.vue').default);\r\nVue.component('group-finance-settings', require('@/pages/groups/details/components/group-detail-settings.vue').default);\r\nVue.component('group-directory-settings', require('@/pages/groups/details/components/group-detail-settings.vue').default);\r\nVue.component('group-finance-income', require('@/pages/groups/details/components/group-detail-income.vue').default);\r\nVue.component('group-finance-overview', require('@/pages/groups/details/components/group-detail-overview.vue').default);\r\nVue.component('group-finance-expense', require('@/pages/groups/details/components/group-detail-expense.vue').default);\r\nVue.component('group-finance-insights', require('@/pages/groups/details/components/group-detail-insights.vue').default);\r\nVue.component('group-finance-ambitions', require('@/pages/groups/details/components/group-detail-ambitions.vue').default);\r\nVue.component('group-finance-transfers', require('@/pages/groups/details/components/group-detail-transfers.vue').default);\r\n\r\nVue.component('team-finances-settings', require('@/pages/teams/finance/components/team-finance-settings.vue').default);\r\nVue.component('team-finances-group-overview', require('@/pages/teams/finance/components/team-finance-group-overview.vue').default);\r\nVue.component('team-finances-period', require('@/pages/teams/finance/components/team-finance-period.vue').default);\r\nVue.component('team-finances-member-overview', require('@/pages/teams/finance/components/team-finance-member-overview.vue').default);\r\nVue.component('team-finances-transfers', require('@/pages/teams/finance/components/team-finance-transfers.vue').default);\r\nVue.component('team-finances-invoices', require('@/pages/teams/finance/components/team-finance-invoices.vue').default);\r\nVue.component('team-finances-expenses', require('@/pages/teams/finance/components/team-finance-expenses.vue').default);\r\n\r\nVue.component('team-insights-member-results', require('@/pages/teams/insights/components/team-insights-member-results.vue').default);\r\nVue.component('team-insights-group-results', require('@/pages/teams/insights/components/team-insights-group-results.vue').default);\r\nVue.component('team-insights-payment-statusses', require('@/pages/teams/insights/components/team-insights-payment-statusses.vue').default);\r\n\r\nVue.component('ecosystem-directory-map', require('@/pages/ecosystem/directory/components/map.vue').default);\r\nVue.component('ecosystem-directory-people', require('@/pages/ecosystem/directory/components/people.vue').default);\r\nVue.component('ecosystem-directory-members', require('@/pages/ecosystem/directory/components/members.vue').default);\r\nVue.component('ecosystem-directory-groups', require('@/pages/ecosystem/directory/components/groups.vue').default);\r\nVue.component('ecosystem-directory-teams', require('@/pages/ecosystem/directory/components/teams.vue').default);\r\n\r\nVue.component('ecosystem-settings-ledger-accounts', require('@/pages/ecosystem/settings/components/ledger-accounts.vue').default);\r\nVue.component('ecosystem-settings-cross-legal-transactions', require('@/pages/ecosystem/settings/components/cross-legal-transactions.vue').default);\r\nVue.component('ecosystem-settings-relations', require('@/pages/ecosystem/settings/components/relations.vue').default);\r\nVue.component('ecosystem-settings-insight-views', require('@/pages/ecosystem/settings/components/insight-views.vue').default);\r\n\r\nVue.component('roles-settings', require('@/components/roles/roles-settings.vue').default);\r\n// Vue.component('release-notes' , require('@/components/release-notes/release-notes.vue').default);\r\n\r\nVue.component('amortize-modal', require('@/components/modals/amortize-modal.vue').default);\r\nVue.component('move-pl-modal', require('@/components/modals/move-pl-modal.vue').default);\r\nVue.component('move-to-account-modal', require('@/components/modals/move-to-account-modal.vue').default);\r\nVue.component('save-attributions-modal', require('@/components/modals/save-attributions-modal.vue').default);\r\nVue.component('import-modal', require('@/components/modals/import-modal.vue').default);\r\nVue.component('transfer-modal', require('@/components/modals/transfer-modal.vue').default);\r\nVue.component('transfer-request-modal', require('@/components/modals/transfer-request-modal.vue').default);\r\nVue.component('energy-dedication-modal', require('@/components/modals/energy-dedication-modal.vue').default);\r\nVue.component('ecosystem-switcher-modal', require('@/components/modals/ecosystem-switcher-modal.vue').default);\r\nVue.component('legal-entity-change-modal', require('@/components/modals/change-legal-entity-reference-modal.vue').default);\r\nVue.component('relation-settings-modal', require('@/components/modals/relation-settings-modal.vue').default);\r\nVue.component('create-ledger-account-modal', require('@/components/modals/create-ledger-account-modal.vue').default);\r\nVue.component('are-you-sure-modal', require('@/components/modals/are-you-sure-modal.vue').default);\r\nVue.component('generic-search', require('@/components/generic-search/generic-search.vue').default);\r\nVue.component('connectors', require('@/components/connectors/connectors.vue').default);\r\n\r\nVue.component('recurring-transfers-grid', require('@/components/transfer/recurring-transfers-grid.vue').default);\r\nVue.component(\r\n 'create-or-edit-template-side-action',\r\n require('@/components/side-actions/create-or-edit-template-action/create-or-edit-template-action.vue').default,\r\n);\r\n\r\nVue.component('create-or-edit-view-side-action', require('@/components/side-actions/views/create-or-edit-view-action.vue').default);\r\nVue.component('create-ecosystem-side-action', require('@/components/side-actions/ecosystem/create-ecosystem-action.vue').default);\r\n\r\n// Translate\r\nimport '@/components/translate/directive';\r\nVue.component('prd-translate-text', require('@/components/translate/text.vue').default);\r\nVue.component('prd-translate-text-inline', require('@/components/translate/text-inline.vue').default);\r\nVue.component('prd-translate-button', require('@/components/translate/button.vue').default);\r\n\r\n// notifications\r\nVue.component('bright-notifications', require('@/components/notification/notifications.vue').default);\r\n\r\n// Insights\r\nVue.component('ecosystem-finance-totals', require('@/components/insights/ecosystem-finance-totals.vue').default);\r\nVue.component('ecosystem-cash-totals', require('@/components/insights/ecosystem-cash-totals.vue').default);\r\nVue.component('ecosystem-fearless-totals', require('@/components/insights/ecosystem-fearless-totals.vue').default);\r\nVue.component('ecosystem-co2-totals', require('@/components/insights/ecosystem-co2-totals.vue').default);\r\n\r\nimport Multiselect from 'vue-multiselect';\r\nVue.component('multiselect', Multiselect);\r\n","export enum NetworkStatus {\r\n Unknown = 'Unknown',\r\n Offline = 'Offline',\r\n Online = 'Online',\r\n}\r\n","import axios, { AxiosRequestConfig, AxiosInstance } from 'axios';\r\nimport { loginService, ecosystemHelper } from '@/main';\r\nimport { NetworkStatus } from '../models/NetworkStatus';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\nexport class AxiosHelper {\r\n public axiosResponseInterceptor: number;\r\n private authAxiosInstance: AxiosInstance = {} as AxiosInstance;\r\n private publicAxiosInstance: AxiosInstance = {} as AxiosInstance;\r\n\r\n constructor(authConfig: AxiosRequestConfig, publicConfig: AxiosRequestConfig) {\r\n const self = this;\r\n\r\n this.authAxiosInstance = axios.create(authConfig);\r\n this.publicAxiosInstance = axios.create(publicConfig);\r\n\r\n this.authAxiosInstance.interceptors.request.use(\r\n async (config) => {\r\n if (!navigator.onLine) {\r\n return Promise.reject(NetworkStatus.Offline);\r\n }\r\n\r\n if (profileModule.isLoggedIn) {\r\n const user = profileModule.user;\r\n\r\n if (user && user.expired) {\r\n await loginService.refreshToken();\r\n }\r\n\r\n const jwt = user.access_token;\r\n self.setAuthHeder(jwt);\r\n config.headers.Authorization = `Bearer ${jwt}`;\r\n }\r\n\r\n if (typeof config.headers['x-period'] === 'undefined' && periodModule && periodModule.selectedPeriod && periodModule.setupIsDone) {\r\n config.headers['x-period'] = periodModule.selectedPeriod;\r\n }\r\n\r\n if (\r\n typeof config.headers['x-ecosystem'] === 'undefined' &&\r\n ecosystemHelper &&\r\n ecosystemHelper.currentEcosystem &&\r\n ecosystemHelper.setupIsDone\r\n ) {\r\n config.headers['x-ecosystem'] = ecosystemHelper.currentEcosystem.id;\r\n }\r\n return config;\r\n },\r\n (error) => {\r\n // Do something with request error\r\n console.error('Some error has occured with this request: ', error);\r\n return Promise.reject(error);\r\n },\r\n );\r\n }\r\n\r\n public getAuthAxiosInstance(): AxiosInstance {\r\n return this.authAxiosInstance;\r\n }\r\n\r\n public getPublicAxiosInstance(): AxiosInstance {\r\n return this.publicAxiosInstance;\r\n }\r\n\r\n public setAuthHeder(jwt: string): void {\r\n this.authAxiosInstance.defaults.headers.Authorization = 'Bearer ' + jwt;\r\n }\r\n\r\n public async setup() {\r\n const jwt = profileModule.access_token;\r\n if (profileModule.isLoggedIn) {\r\n this.setAuthHeder(jwt);\r\n }\r\n }\r\n}\r\n","import { LoginService } from '../services/loginService';\r\nimport { ecosystemHelper, meService } from '@/main';\r\nimport { profileModule } from '@/store/modules/profile';\r\n\r\nexport class LoginHelper {\r\n private loginService: LoginService;\r\n\r\n constructor(loginService: LoginService) {\r\n this.loginService = loginService;\r\n }\r\n\r\n public async logOut() {\r\n await this.loginService.logout();\r\n }\r\n\r\n public isLoggedIn() {\r\n return profileModule.isLoggedIn;\r\n }\r\n\r\n public getUser() {\r\n return profileModule.brightProfile;\r\n }\r\n\r\n public async reloadProfile() {\r\n return await meService.profile(ecosystemHelper.currentEcosystem.id);\r\n }\r\n}\r\n","import { AxiosInstance, AxiosPromise, AxiosRequestConfig } from 'axios';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport PageRender from '@/models/PageRender';\r\n\r\nexport abstract class BaseService extends PageRender {\r\n private authAxiosInstance: AxiosInstance;\r\n\r\n constructor(axiosHelper: AxiosHelper, auth: boolean = true) {\r\n super();\r\n this.authAxiosInstance = auth ? axiosHelper.getAuthAxiosInstance() : axiosHelper.getPublicAxiosInstance();\r\n }\r\n\r\n public get(url: string, parameters?: ReadonlyArray<[string, any]>, config?: AxiosRequestConfig): AxiosPromise {\r\n url = this.bindParameters(url, parameters);\r\n return this.authAxiosInstance.get(url, config);\r\n }\r\n\r\n public delete(url: string, parameters?: ReadonlyArray<[string, any]>, config?: AxiosRequestConfig): AxiosPromise {\r\n url = this.bindParameters(url, parameters);\r\n return this.authAxiosInstance.delete(url, config);\r\n }\r\n\r\n public head(url: string, parameters?: ReadonlyArray<[string, any]>, config?: AxiosRequestConfig): AxiosPromise {\r\n url = this.bindParameters(url, parameters);\r\n return this.authAxiosInstance.head(url, config);\r\n }\r\n\r\n public post(url: string, data?: any, parameters?: ReadonlyArray<[string, any]>, config?: AxiosRequestConfig): AxiosPromise {\r\n url = this.bindParameters(url, parameters);\r\n return this.authAxiosInstance.post(url, data, config);\r\n }\r\n\r\n public put(url: string, data?: any, parameters?: ReadonlyArray<[string, any]>, config?: AxiosRequestConfig): AxiosPromise {\r\n url = this.bindParameters(url, parameters);\r\n return this.authAxiosInstance.put(url, data, config);\r\n }\r\n\r\n public patch(url: string, data?: any, parameters?: ReadonlyArray<[string, any]>, config?: AxiosRequestConfig): AxiosPromise {\r\n url = this.bindParameters(url, parameters);\r\n return this.authAxiosInstance.patch(url, data, config);\r\n }\r\n\r\n private valueInvalid(value: any): boolean {\r\n return value === undefined || value == null;\r\n }\r\n\r\n private bindParameters(url: string, parameters?: ReadonlyArray<[string, any]>): string {\r\n const parametersMap = new Map(parameters);\r\n\r\n if (parametersMap === undefined || parametersMap == null) {\r\n return url;\r\n }\r\n\r\n const params = url.match(/:{1}(\\??([a-z|A-Z]+))/gm);\r\n if (!params || params.length === 0) {\r\n return url;\r\n }\r\n\r\n for (const p of params) {\r\n let key = p.slice(1);\r\n const isOptional = key.startsWith('?');\r\n\r\n if (isOptional) {\r\n key = key.slice(1);\r\n } else if (!parametersMap.has(key)) {\r\n throw new Error(`Required parameter with key ${key} is not in the parameters map.`);\r\n }\r\n\r\n const value = parametersMap.get(key);\r\n\r\n if (this.valueInvalid(value)) {\r\n if (isOptional) {\r\n url = url.replace(p, '');\r\n continue;\r\n } else {\r\n throw new Error(`Parameter with key ${key} is 'undefined' or 'null'.`);\r\n }\r\n }\r\n\r\n url = url.replace(p, value);\r\n }\r\n\r\n return url;\r\n }\r\n}\r\n","import Group from '../models/Group';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Transfer from '../models/Transfer';\r\nimport { AxiosPromise } from 'axios';\r\nimport Vue from 'vue';\r\nimport { loginService } from '@/main';\r\nimport { Member } from '@/models/Member';\r\nimport { Person } from '@/models/Person';\r\nimport EnergyDedication from '@/models/EnergyDedication';\r\nimport to from 'await-to-js';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\nexport class MeService extends BaseService {\r\n private endpoint = `${Vue.$env().directoryEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper, true);\r\n }\r\n\r\n public async profile(ecosystemId?: number): Promise {\r\n const config = { headers: {} };\r\n config.headers['x-period'] = periodModule.selectedPeriod;\r\n\r\n if (ecosystemId) {\r\n config.headers['x-ecosystem'] = ecosystemId;\r\n }\r\n\r\n if (ecosystemId) {\r\n const [profileErr, profileResponse] = await to(this.get(`${this.endpoint}me/profile`, null, config));\r\n if (profileErr) {\r\n this.clearAndShowError('Failed to load profile', profileErr);\r\n await loginService.logout();\r\n await this.$router.push({ name: 'login' });\r\n return new Person();\r\n }\r\n\r\n return new Person(profileResponse.data);\r\n }\r\n\r\n const [err, response] = await to(this.get(`${this.endpoint}me/profile`, null, config));\r\n if (err) {\r\n this.clearAndShowError('Failed to load profile', err);\r\n return new Person();\r\n }\r\n\r\n return new Person(response.data);\r\n }\r\n\r\n public updatePreferences(primaryEcosystem: number, primaryTeam: number): AxiosPromise {\r\n const period = periodModule.selectedPeriod;\r\n return this.put(`${this.endpoint}me/preferences?period=:period`, { primaryEcosystem, primaryTeam }, [\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public disableAccount(emailAddress: string) {\r\n return this.put(`${this.endpoint}me/disable?emailAddress=:emailAddress`, null, [['emailAddress', emailAddress]]);\r\n }\r\n\r\n public getGroups(team: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n return this.get(`${this.endpoint}me/groups?teamId=:team`, [['team', team]], config);\r\n }\r\n\r\n public getMembers(teamId: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.endpoint}me/team-members?teamId=:teamId`, [['teamId', teamId]], config);\r\n }\r\n\r\n public getEnergyDedications(teamId: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.endpoint}me/energy-dedication?teamId=:teamId`, [['teamId', teamId]], config);\r\n }\r\n\r\n public getTransfers(teamId: number, memberId: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(\r\n `${this.endpoint}transfers?teamId=:teamId&personId=:?personId`,\r\n [['teamId', teamId], ['personId', memberId], ['period', period]],\r\n config,\r\n );\r\n }\r\n}\r\n","import Group from '../models/Group';\r\nimport { Member } from '../models/Member';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport { loginHelper } from '@/main';\r\n\r\nexport class GroupService extends BaseService {\r\n private groupEndpoint = `${Vue.$env().directoryEndpoint}` + 'groups';\r\n private teamEndpoint = `${Vue.$env().directoryEndpoint}` + 'teams';\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public createGroup(model: any, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.post(`${this.groupEndpoint}`, model, null, config);\r\n }\r\n\r\n public getGroups(teamId: number, period?: string) {\r\n if (!period) {\r\n return this.get(`${this.teamEndpoint}/:teamId/groups`, [['teamId', teamId]]);\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.teamEndpoint}/:teamId/groups`, [['teamId', teamId]], config);\r\n }\r\n\r\n public getGroup(groupId: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.groupEndpoint}/:group`, [['group', groupId]], config);\r\n }\r\n\r\n public getMembers(group: number, teamId: number, period?: string) {\r\n if (!period) {\r\n return this.get(`${this.groupEndpoint}/:group/members?teamId=:teamId`, [['group', group], ['teamId', teamId]]);\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.groupEndpoint}/:group/members`, [['group', group]], config);\r\n }\r\n\r\n public enroll(group: number, teamId: number, period: string) {\r\n return this.addMember(loginHelper.getUser().personId, group, teamId, period);\r\n }\r\n\r\n public unenroll(group: number, teamId: number, period: string) {\r\n return this.kickMember(group, loginHelper.getUser().personId, teamId, period);\r\n }\r\n\r\n public getEnergyDedication(teamId: number, group: number, period: string) {\r\n return this.get(`${this.groupEndpoint}/:group/energy-dedication?teamId=:teamId&period=:period`, [\r\n ['group', group],\r\n ['teamId', teamId],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public updateEnergyDedication(teamId: number, group: number, energy: number, period: string) {\r\n return this.put(\r\n `${this.groupEndpoint}/:group/energy-dedication?teamId=:teamId&period=:period`,\r\n energy,\r\n [['group', group], ['teamId', teamId], ['period', period]],\r\n { headers: { 'Content-Type': 'application/json' } },\r\n );\r\n }\r\n\r\n public updateEnergyDedicationForMember(teamId: number, group: number, energy: number, period: string, memberId: number) {\r\n return this.put(\r\n `${this.groupEndpoint}/:group/members/:memberId/energy-dedication?teamId=:teamId&period=:period`,\r\n energy,\r\n [['group', group], ['teamId', teamId], ['period', period], ['memberId', memberId]],\r\n { headers: { 'Content-Type': 'application/json' } },\r\n );\r\n }\r\n\r\n public transferLeadership(teamId: number, group: number, model: any, period: string) {\r\n return this.post(`${this.groupEndpoint}/:group/leadership/transfer?teamId=:teamId&period=:period`, model, [\r\n ['group', group],\r\n ['teamId', teamId],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public addMember(memberId: number, group: number, teamId: number, period: string) {\r\n return this.post(\r\n `${this.groupEndpoint}/:group/members?teamId=:teamId&period=:period`,\r\n [{ PersonId: memberId }],\r\n [['group', group], ['teamId', teamId], ['period', period]],\r\n );\r\n }\r\n\r\n public addMembers(memberIds: number[], group: number, teamId: number, period) {\r\n const list = memberIds.map((x) => {\r\n return { PersonId: x };\r\n });\r\n\r\n if (!period) {\r\n return this.post(`${this.groupEndpoint}/:group/members?teamId=:teamId`, list, [['group', group], ['teamId', teamId]]);\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n return this.post(`${this.groupEndpoint}/:group/members?teamId=:teamId`, list, [['group', group], ['teamId', teamId]], config);\r\n }\r\n\r\n public deleteGroup(groupId: number, teamId: number, period: string) {\r\n return this.delete(`${this.groupEndpoint}/:group?teamId=:teamId&period=:period`, [\r\n ['group', groupId],\r\n ['teamId', teamId],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public kickMember(group: number, memberId: number, teamId: number, period: string) {\r\n return this.delete(`${this.groupEndpoint}/:group/members/:memberId?teamId=:teamId&period=:period`, [\r\n ['group', group],\r\n ['teamId', teamId],\r\n ['period', period],\r\n ['memberId', memberId],\r\n ]);\r\n }\r\n}\r\n","import { AxiosPromise } from 'axios';\r\nimport Group from '../models/Group';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport { Person } from '../models/Person';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport EnergyDedication from '@/models/EnergyDedication';\r\n\r\nexport class PersonService extends BaseService {\r\n private endpoint = `${Vue.$env().directoryEndpoint}persons`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public getPostModel(): AxiosPromise {\r\n return this.get(`${this.endpoint}/new`);\r\n }\r\n\r\n public createNewPerson(model: any) {\r\n return this.post(this.endpoint, model);\r\n }\r\n\r\n public async getPerson(id: number, period: string): Promise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n const [err, response] = await to(this.get(`${this.endpoint}/:id`, [['id', id]], config));\r\n if (err) {\r\n this.showFailedResponse('Failed to load person');\r\n return new Person();\r\n }\r\n\r\n return new Person(response.data);\r\n }\r\n\r\n public async getPersonByEmailaddress(emailaddress: string, period: string, showError: boolean = true): Promise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n const [err, response] = await to(this.get(`${this.endpoint}?searchText=:emailaddress`, [['emailaddress', emailaddress]], config));\r\n\r\n if (err) {\r\n if (showError) {\r\n this.showFailedResponse('Failed to load person');\r\n }\r\n return new Person();\r\n }\r\n\r\n return new Person(response.data);\r\n }\r\n\r\n public invitePerson(model: any, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.post(`${this.endpoint}/:personId/invite`, model, [['personId', model.personId]], config);\r\n }\r\n\r\n public downgrageAccount(personId: number): Promise {\r\n return this.post(`${this.endpoint}/:personId/disable`, null, [['personId', personId]]);\r\n }\r\n\r\n public async getEnergyDedication(personId: number, team: number, period: string) {\r\n const [err, response] = await to(\r\n this.get(`${this.endpoint}/:personId/energy-dedication?period=:period&teamId=:team`, [\r\n ['personId', personId],\r\n ['period', period],\r\n ['team', team],\r\n ]),\r\n );\r\n\r\n if (err) {\r\n this.showFailedResponse('Failed to load energy dedication');\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n}\r\n","import { AxiosInstance, AxiosPromise } from 'axios';\r\nimport { Person } from '../models/Person';\r\nimport Group from '../models/Group';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport InviteResponse from '../models/InviteResponse';\r\nimport TeamJoinRequest from '../models/TeamJoinRequest';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport Team from '@/models/Team';\r\nimport { axiosHelper, ecosystemHelper, teamHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport EnergyDedication from '@/models/EnergyDedication';\r\nimport { periodModule } from '@/store/modules/period';\r\nimport Register from '@/models/Register';\r\n\r\nexport class TeamService extends BaseService {\r\n public publicAxiosInstance: AxiosInstance;\r\n\r\n private endpoint = `${Vue.$env().directoryEndpoint}teams`;\r\n private ecosystemEndpoint = `${Vue.$env().directoryEndpoint}ecosystems`;\r\n\r\n constructor(axiossHelper: AxiosHelper) {\r\n super(axiossHelper);\r\n }\r\n\r\n public getGroups(team: number, period?: string) {\r\n if (!period) {\r\n return this.get(`${this.endpoint}/:team/groups`, [['team', team]]);\r\n }\r\n\r\n return this.get(`${this.endpoint}/:team/groups?period=:period`, [\r\n ['team', team],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public getTeam(team: number, period: string) {\r\n return this.get(`${this.endpoint}/:team?period=:period`, [\r\n ['team', team],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public async getTeams(ecosystem?: number, period?: string) {\r\n if (!ecosystem) {\r\n ecosystem = ecosystemHelper.currentEcosystem.id;\r\n }\r\n\r\n if (!period) {\r\n period = periodModule.selectedPeriod;\r\n }\r\n\r\n const [err, response] = await to(\r\n this.get(`${this.ecosystemEndpoint}/:ecosystem/teams?period=:period`, [\r\n ['ecosystem', ecosystem],\r\n ['period', period],\r\n ]),\r\n );\r\n if (err) {\r\n this.showFailedResponse('Failed to load teams', null);\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public createTeam(newTeam: any, ecosytemId?: number): AxiosPromise {\r\n let config = {};\r\n if (ecosytemId) {\r\n config = {\r\n headers: {\r\n 'x-ecosystem': ecosytemId,\r\n },\r\n };\r\n }\r\n\r\n return this.post(`${this.endpoint}`, newTeam, null, config);\r\n }\r\n\r\n public updateTeam(team: { teamId: number; name: string; legalEntityReference: string }): Promise {\r\n return this.put(`${this.endpoint}/:team`, team, [['team', team.teamId]]);\r\n }\r\n\r\n public async getMembers(teamId?: number, period?: string): Promise {\r\n let config = {};\r\n\r\n if (!teamId) {\r\n teamId = teamHelper.currentTeamId;\r\n }\r\n\r\n if (period) {\r\n config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n }\r\n\r\n const [err, response] = await to(this.get(`${this.endpoint}/:team/members`, [['team', teamId]], config));\r\n if (err) {\r\n this.showFailedResponse('Failed to load members', null);\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Person(x));\r\n }\r\n\r\n public async getMemberById(memberId: number, period: string) {\r\n const members = await this.getMembers(teamHelper.currentTeamId, period);\r\n\r\n return members.find((x) => x.personId === memberId);\r\n }\r\n\r\n public getInvite(inviteKey: string, teamId: number, period: string, ecosystem: any): AxiosPromise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n 'x-ecosystem': ecosystem,\r\n },\r\n };\r\n\r\n return this.get(\r\n `${this.endpoint}/:teamId/invite/:inviteKey`,\r\n [\r\n ['teamId', teamId],\r\n ['inviteKey', inviteKey],\r\n ],\r\n config,\r\n );\r\n }\r\n\r\n public acceptInvite(teamId: number, inviteCode: string, registerModel: Register): Promise {\r\n const model = {\r\n inviteCode,\r\n period: registerModel.period,\r\n teamId,\r\n personId: registerModel.person.personId,\r\n firstName: registerModel.person.firstName,\r\n insertion: registerModel.person.insertion,\r\n lastName: registerModel.person.lastName,\r\n emailAddress: registerModel.emailAddress,\r\n phoneNumber: registerModel.person.phoneNumber,\r\n password: registerModel.password,\r\n };\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': registerModel.period,\r\n },\r\n };\r\n\r\n this.publicAxiosInstance = axiosHelper.getAuthAxiosInstance();\r\n return this.publicAxiosInstance.post(`${this.endpoint}/${teamId}/invite/${inviteCode}`, model, config);\r\n }\r\n\r\n public getJoinRequest(id: number) {\r\n return this.get(`${this.endpoint}/joinrequest/:id`, [['id', id]]);\r\n }\r\n\r\n public addJoinRequest(personId: number, teams: string[]) {\r\n return this.post(`${this.endpoint}/joinrequest`, { personId, teams });\r\n }\r\n\r\n public updateJoinRequest(id: number, model: TeamJoinRequest) {\r\n return this.put(`${this.endpoint}/joinrequest/:id`, model, [['id', id]]);\r\n }\r\n\r\n public getEnergyDedication(teamId: number, period: string, personId?: number) {\r\n return this.get(`${this.endpoint}/:teamId/energy-dedication/?personId=:?personId&period=:period`, [\r\n ['teamId', teamId],\r\n ['personId', personId],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public addMember(person: Person, teamId: number, period: string) {\r\n if (!person.personId) {\r\n delete person.personId;\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.post(\r\n `${this.endpoint}/:teamId/members?period=:period`,\r\n person,\r\n [\r\n ['period', period],\r\n ['teamId', teamId],\r\n ],\r\n config,\r\n );\r\n }\r\n\r\n public unenroll(teamId: number, period: string) {\r\n return this.delete(`${this.endpoint}/:teamId/unenroll?period=:period`, [\r\n ['teamId', teamId],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public removeMemberFromTeam(memberId: number, teamId: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.delete(\r\n `${this.endpoint}/:teamId/members/:memberId`,\r\n [\r\n ['teamId', teamId],\r\n ['memberId', memberId],\r\n ],\r\n config,\r\n );\r\n }\r\n\r\n public updateEnergyDedicationsForMember(teamId: number, energyGroups: EnergyDedication[], period: string, memberId: number) {\r\n return this.put(\r\n `${this.endpoint}/:teamId/members/:memberId/energy-dedication?period=:period`,\r\n energyGroups,\r\n [\r\n ['teamId', teamId],\r\n ['period', period],\r\n ['memberId', memberId],\r\n ],\r\n { headers: { 'Content-Type': 'application/json' } },\r\n );\r\n }\r\n\r\n public async deleteTeam(teamId: number) {\r\n const [err, response] = await to(this.delete(`${this.endpoint}/:teamId`, [['teamId', teamId]]));\r\n\r\n if (err) {\r\n this.clearAndShowError('DELETE_TEAM_FAILED', response);\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public async transferTeamLeaderShip(teamLead: Person) {\r\n return this.patch(\r\n `${this.endpoint}/:teamId/leadership/transfer`,\r\n {\r\n newLeaderId: teamLead.personId,\r\n },\r\n [['teamId', teamHelper.currentTeamId]],\r\n );\r\n }\r\n}\r\n","import { Invoice } from '../Invoice';\r\nimport Team from '../Team';\r\nimport { RelationSettings } from './Relation';\r\n\r\nexport default class CrossLegalTransaction {\r\n public matchId: string = '';\r\n public dateHandled: string = '';\r\n public destinationLegalEntityReference: string = '';\r\n public destinationTeam: Team = null;\r\n public destinationTeamId: number = null;\r\n public invoice: Invoice = null;\r\n public originLegalEntityReference: string = '';\r\n public originTeam: Team = null;\r\n public originTeamId: number = null;\r\n public relationSettings: RelationSettings = null;\r\n public status: string = '';\r\n public amount: number = 0;\r\n\r\n /**\r\n *\r\n */\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n","import { AxiosPromise } from 'axios';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { InvoiceType } from '../models/InvoiceType';\r\nimport { BaseService } from './baseService';\r\nimport DistributedInvoice from '../models/DistributedInvoice';\r\nimport Vue from 'vue';\r\nimport TeamRevenueResult from '@/models/TeamRevenueResult';\r\nimport GroupAlias from '@/models/GroupAlias';\r\nimport to from 'await-to-js';\r\nimport { teamsModule } from '@/store/modules/teams';\r\nimport CrossLegalTransaction from '@/models/Finance/CrossLegalTransaction';\r\nimport { Invoice } from '@/models/Invoice';\r\n\r\nexport class FinanceService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public getExampleCsv(team: string) {\r\n const config = {\r\n headers: {\r\n 'Content-type': 'text/csv',\r\n // tslint:disable-next-line: object-literal-key-quotes\r\n Accept: 'text/csv',\r\n },\r\n };\r\n\r\n return this.get(`${this.endpoint}invoices/new?teamId=:team`, [['team', team]], config);\r\n }\r\n\r\n public importInvoice(file: DistributedInvoice[], team: number, group: number): AxiosPromise {\r\n file.forEach((x) => {\r\n x.invoice.amount = !isNaN(x.invoice.amount) ? parseFloat(x.invoice.amount.toString()) : x.invoice.amount;\r\n x.distributions.forEach((y) => (y.amount = !isNaN(y.amount) ? parseFloat(y.amount.toString()) : y.amount));\r\n });\r\n\r\n if (group) {\r\n return this.post(`${this.endpoint}invoices?teamId=:team&groupId=:?group`, file, [\r\n ['team', team],\r\n ['group', group],\r\n ]);\r\n }\r\n return this.post(`${this.endpoint}invoices?teamId=:team`, file, [['team', team]]);\r\n }\r\n\r\n public async getInvoices(\r\n teamId: number,\r\n groupId: number,\r\n type: InvoiceType = InvoiceType.Unknown,\r\n personId?: number,\r\n period: string = '',\r\n ): Promise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n if (groupId) {\r\n const [errWithGroup, responseWithGroup] = await to(\r\n this.get(\r\n `${this.endpoint}invoices?teamId=:team&groupId=:group&invoiceType=:invoiceType&personId=:?personId`,\r\n [\r\n ['team', teamId],\r\n ['group', groupId],\r\n ['invoiceType', type],\r\n ['personId', personId],\r\n ],\r\n config,\r\n ),\r\n );\r\n\r\n if (errWithGroup) {\r\n // console.error(errWithGroup);\r\n return [];\r\n }\r\n\r\n return responseWithGroup.data;\r\n }\r\n\r\n const [err, response] = await to(\r\n this.get(\r\n `${this.endpoint}invoices?teamId=:team&invoiceType=:invoiceType&personId=:?personId`,\r\n [\r\n ['team', teamId],\r\n ['invoiceType', type],\r\n ['personId', personId],\r\n ],\r\n config,\r\n ),\r\n );\r\n\r\n if (err) {\r\n // console.error(err);\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public getInvoice(invoiceId: number, groupId?: number): AxiosPromise {\r\n if (groupId) {\r\n return this.get(`${this.endpoint}invoices/${invoiceId}?groupId=:group`, [['group', groupId]]);\r\n }\r\n\r\n return this.get(`${this.endpoint}invoices/${invoiceId}`);\r\n }\r\n\r\n public getInvoiceDetails(invoiceId: number, groupId: number, accountId: number): AxiosPromise {\r\n return this.get(`${this.endpoint}invoices/${invoiceId}/details?group_id=:group&account_id=:accountId`, [\r\n ['group', groupId],\r\n ['accountId', accountId],\r\n ]);\r\n }\r\n\r\n public saveDistribution(distributedInvoice: DistributedInvoice, teamId: number, groupId?: number): AxiosPromise {\r\n return this.post(\r\n `${this.endpoint}invoices?teamId=:team&groupId=:?group`,\r\n [distributedInvoice],\r\n [\r\n ['team', teamId],\r\n ['group', groupId],\r\n ],\r\n );\r\n }\r\n\r\n public saveDistributions(distributedInvoices: DistributedInvoice[], teamId: number, groupId?: number): AxiosPromise {\r\n if (!groupId || groupId === 0) {\r\n return this.post(`${this.endpoint}invoices?teamId=:team`, distributedInvoices, [['team', teamId]]);\r\n }\r\n\r\n return this.post(`${this.endpoint}invoices?teamId=:team&groupId=:?group`, distributedInvoices, [\r\n ['team', teamId],\r\n ['group', groupId],\r\n ]);\r\n }\r\n\r\n public deleteInvoice(invoiceId: number): any {\r\n return this.delete(`${this.endpoint}invoices/:invoiceId`, [['invoiceId', invoiceId]]);\r\n }\r\n\r\n public setInvoicesNotRercurring(list: any) {\r\n return this.post(`${this.endpoint}/invoices/set-recurrence`, { invoiceStates: list });\r\n }\r\n\r\n public setInvoicesLegalEntityReference(list: any[]): Promise {\r\n return this.post(`${this.endpoint}/invoices/set-legal-entity-reference`, { teamId: teamsModule.current.teamId, invoiceStates: list });\r\n }\r\n\r\n public setInvoiceAmortization(invoiceId: number, accountId: number, amortizationAmount: string) {\r\n return this.post(`${this.endpoint}/invoices/:invoiceId/set-amortization`, { accountId, amortizationAmount }, [['invoiceId', invoiceId]]);\r\n }\r\n\r\n public getGroupFinancialActiviy(teamId: number, groupId: number, period: string) {\r\n return this.get(`${this.endpoint}financial-activity?teamId=:team&groupId=:group&period=:period`, [\r\n ['team', teamId],\r\n ['period', period],\r\n ['group', groupId],\r\n ]);\r\n }\r\n\r\n public getPersonFinancialActityInTeam(teamId: number, personId: number, period: string) {\r\n return this.get(`${this.endpoint}financial-activity?teamId=:team&personId=:person&period=:period`, [\r\n ['team', teamId],\r\n ['period', period],\r\n ['person', personId],\r\n ]);\r\n }\r\n\r\n public getPersonFinancialActiviy(teamId: number, groupId: number, personId: number, period: string) {\r\n return this.get(`${this.endpoint}financial-activity?teamId=:team&personId=:person&groupId=:group&period=:period`, [\r\n ['team', teamId],\r\n ['period', period],\r\n ['person', personId],\r\n ['group', groupId],\r\n ]);\r\n }\r\n\r\n public getMyFinancialActiviy(groupId: number, period: string) {\r\n return this.get(`${this.endpoint}me/financial-group-activity?teamId=:team&groupId=:group&period=:period`, [\r\n ['period', period],\r\n ['group', groupId],\r\n ]);\r\n }\r\n\r\n public getEcosystemRevenue(period: string): AxiosPromise {\r\n return this.get(`${this.endpoint}intra-revenue/teams?period=:period`, [['period', period]]);\r\n }\r\n\r\n public getTeamRevenue(period: string, team: number): AxiosPromise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(\r\n `${this.endpoint}intra-revenue/groups?teamId=:team`,\r\n [\r\n ['period', period],\r\n ['team', team],\r\n ],\r\n config,\r\n );\r\n }\r\n\r\n public upsertGroupAliases(groupId: number, aliases: GroupAlias) {\r\n return this.put(`${this.endpoint}group-aliases/:groupId`, aliases, [['groupId', groupId]]);\r\n }\r\n\r\n public saveCollaborationMode(groupId: number, type: string) {\r\n return this.post(`${this.endpoint}groups/:groupId/set-collaboration-mode`, { CollaborationMode: type }, [['groupId', groupId]]);\r\n }\r\n\r\n public getGroupAliases(groupId: number) {\r\n return this.get(`${this.endpoint}group-aliases/:groupId`, [['groupId', groupId]]);\r\n }\r\n\r\n public async getCrossLegalTransactions(matchId?: string): Promise {\r\n let url = `${this.endpoint}cross-legal-transactions`;\r\n\r\n if (matchId) {\r\n url = `${url}?matchId=${matchId}`;\r\n }\r\n\r\n const [err, response] = await to(this.get(url));\r\n if (err) {\r\n this.clearAndShowError('CROSS_LEGAL_TRANSACTIONS_FAILED', err);\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new CrossLegalTransaction(x));\r\n }\r\n\r\n public async searchInvoices(\r\n fromFilterMonth: any,\r\n toFilterMonth: any,\r\n teamId?: number,\r\n selectedLegalEntityRef?: string,\r\n invoiceType: InvoiceType = InvoiceType.Income,\r\n includeDistributions: boolean = false,\r\n ) {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': fromFilterMonth,\r\n 'x-endPeriod': toFilterMonth,\r\n },\r\n };\r\n\r\n let url = `${this.endpoint}invoices/search?invoice_type=${invoiceType}&include_distributions=${includeDistributions}`;\r\n\r\n if (teamId) {\r\n url = `${url}&team_id=${teamId}`;\r\n }\r\n\r\n if (selectedLegalEntityRef) {\r\n url = `${url}&legal_entity_reference=${selectedLegalEntityRef}`;\r\n }\r\n\r\n const [err, response] = await to(this.get(`${url}`, null, config));\r\n\r\n if (err) {\r\n // console.error(err);\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Invoice(x));\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { AccountType } from '../models/AccountType';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport AccountFunds from '@/models/Finance/Api/AccountFunds';\r\nimport Range from '@/models/Finance/Api/Range';\r\nimport { FinanceAccount } from '@/models/Interfaces';\r\n\r\nexport class FinanceAccountService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}accounts`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public getAccounts(type: AccountType, team: number, period?: string, group?: number, personId?: number) {\r\n if (!period) {\r\n return this.get(`${this.endpoint}/:type?teamId=:team&groupId=:?group&personId=:?person`, [\r\n ['type', type],\r\n ['team', team],\r\n ['group', group],\r\n ['person', personId],\r\n ]);\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(\r\n `${this.endpoint}/:type?teamId=:team&groupId=:?group&personId=:?person`,\r\n [['type', type], ['team', team], ['group', group], ['person', personId]],\r\n config,\r\n );\r\n }\r\n\r\n public async getTeamAccounts(type: AccountType, team: number, period: string): Promise {\r\n const [err, response] = await to(this.get(`${this.endpoint}/:type?teamId=:team`, [['type', type], ['team', team], ['period', period]]));\r\n if (err) {\r\n this.showFailedResponse('Failed to load accounts');\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async getBalance(accountId: number, period: string, team: number, type: AccountType, fromPeriod?: string): Promise> {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': fromPeriod ? fromPeriod : period,\r\n 'x-endPeriod': period,\r\n },\r\n };\r\n\r\n const [err, response] = await to(\r\n this.get(\r\n `${this.endpoint}/:type/:accountId/balance?teamId=:team`,\r\n [['accountId', accountId], ['period', period], ['team', team], ['type', type]],\r\n config,\r\n ),\r\n );\r\n\r\n if (err) {\r\n this.clearAndShowWarning(`Failed to load balance for account: ${accountId}`);\r\n return new Range();\r\n }\r\n\r\n return new Range(response.data);\r\n }\r\n\r\n public async getAccount(team: number, personId: number, period: string) {\r\n const accounts = (await this.getAccounts(AccountType.Person, team, period, null, personId)).data;\r\n\r\n return accounts.find((item) => {\r\n return item.relatedEntityId === personId;\r\n });\r\n }\r\n\r\n public async getGroupAccount(team: number, groupId: number, type: AccountType, period: string): Promise {\r\n const accounts = (await this.getAccounts(type, team, period)).data;\r\n return accounts.find((item) => {\r\n return item.relatedEntityId === groupId;\r\n });\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { AttributionType } from '../models/AttributionType';\r\nimport Attribution from '../models/Attribution';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport { PrivacyLevel } from '@/models/PrivacyLevel';\r\nimport to from 'await-to-js';\r\n\r\nexport class AttributionService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public getAttributions(type: AttributionType, teamId: number, period: string, groupId?: number) {\r\n return this.get(`${this.endpoint}attributions?attributionType=:type&teamId=:teamId&groupId=:?groupId&period=:period`, [\r\n ['type', type],\r\n ['teamId', teamId],\r\n ['groupId', groupId],\r\n ['period', period],\r\n ]);\r\n }\r\n\r\n public saveAttributions(model: any[], type: AttributionType, teamId: number, period: string, groupId?: number) {\r\n let config = {};\r\n if (period) {\r\n config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.post(\r\n `${this.endpoint}attributions?attributionType=:type&teamId=:teamId&groupId=:?groupId&period=:period`,\r\n model,\r\n [['type', type], ['teamId', teamId], ['groupId', groupId], ['period', period]],\r\n config,\r\n );\r\n }\r\n\r\n return this.post(\r\n `${this.endpoint}attributions?attributionType=:type&teamId=:teamId&groupId=:?groupId`,\r\n model,\r\n [['type', type], ['teamId', teamId], ['groupId', groupId]],\r\n {},\r\n );\r\n }\r\n\r\n public saveAttributionSetting(\r\n groupId: number,\r\n applyMissingAttributions: boolean,\r\n autoDistributeIncomeToSavings: boolean,\r\n autoDistributeExpensesToSavings: boolean,\r\n autoCompensateGroupMembers: boolean,\r\n privacyLevel: PrivacyLevel,\r\n ) {\r\n return this.post(\r\n `${this.endpoint}settings?groupId=:group`,\r\n {\r\n applyMissingAttributionsOnTransfer: applyMissingAttributions,\r\n autoDistributeIncomeToSavings,\r\n autoDistributeExpensesToSavings,\r\n autoCompensateGroupMembers,\r\n privacyLevel,\r\n },\r\n [['group', groupId]],\r\n );\r\n }\r\n\r\n public getAttributionSetting(groupId: number) {\r\n return this.get(`${this.endpoint}settings?groupId=:group`, [['group', groupId]]);\r\n }\r\n\r\n public async removeAttributionSources(teamId: number, groupId: number) {\r\n const model = {\r\n teamId,\r\n groupId,\r\n };\r\n\r\n const [err] = await to(this.post(`${this.endpoint}attributions/remove-attribution-sources`, model));\r\n if (err) {\r\n this.showFailedResponse('FAILED_TO_DELETE_ATTRIBUTION_SOURCES');\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport MemberResults from '@/models/Finance/Api/MemberResults';\r\nimport Range from '@/models/Finance/Api/Range';\r\nimport EcosystemResults from '@/models/Finance/Api/TeamResults';\r\nimport TeamResultItem from '@/models/Finance/Api/TeamResultItem';\r\n\r\nexport class ResultService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getEcosystemResults(starPeriod: string, endPeriod: string, teamIds: number[] = []): Promise {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': starPeriod,\r\n 'x-endPeriod': endPeriod,\r\n },\r\n };\r\n\r\n let teamQueryStringParam = '?';\r\n if (teamIds && teamIds.length > 0) {\r\n teamIds.forEach((x) => {\r\n teamQueryStringParam += `${!teamQueryStringParam.endsWith('?') ? '&' : ''}team_id=${x}`;\r\n });\r\n }\r\n\r\n const [err, response] = await to(this.get(`${this.endpoint}results/ecosystem${teamQueryStringParam}`, null, config));\r\n\r\n if (err) {\r\n this.clearAndShowWarning(`Failed to load ecosystem results from: ${starPeriod} to ${endPeriod}`);\r\n return new EcosystemResults();\r\n }\r\n return new EcosystemResults(response.data);\r\n }\r\n\r\n public async getGroupResults(teamId: number, starPeriod: string, endPeriod: string): Promise> {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': starPeriod,\r\n 'x-endPeriod': endPeriod,\r\n },\r\n };\r\n const [err, response] = await to(this.get(`${this.endpoint}results/team?teamId=:teamId`, [['teamId', teamId]], config));\r\n\r\n if (err) {\r\n this.clearAndShowWarning(`Failed to load group results for team: ${teamId} from: ${starPeriod} to ${endPeriod}`);\r\n return new Range();\r\n }\r\n\r\n return new Range(response.data);\r\n }\r\n\r\n public async getMemberResults(teamId: number, starPeriod: string, endPeriod: string): Promise> {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': starPeriod,\r\n 'x-endPeriod': endPeriod,\r\n },\r\n };\r\n const [err, response] = await to(this.get(`${this.endpoint}results/members?teamId=:teamId`, [['teamId', teamId]], config));\r\n\r\n if (err) {\r\n this.clearAndShowWarning(`Failed to load member results for team: ${teamId} from: ${starPeriod} to ${endPeriod}`);\r\n return new Range();\r\n }\r\n\r\n return new Range(response.data);\r\n }\r\n\r\n public async getMemberResultsNew(teamId: number, starPeriod: string, endPeriod: string): Promise> {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': starPeriod,\r\n 'x-endPeriod': endPeriod,\r\n },\r\n };\r\n const [err, response] = await to(this.get(`${this.endpoint}results/members-new?teamId=:teamId`, [['teamId', teamId]], config));\r\n\r\n if (err) {\r\n this.clearAndShowWarning(`Failed to load member results for team: ${teamId} from: ${starPeriod} to ${endPeriod}`);\r\n return new Range();\r\n }\r\n\r\n return new Range(response.data);\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\n\r\nexport class CompensationService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getCompensations(team: number, group: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(\r\n `${this.endpoint}compensations?teamId=:team&groupId=:group`,\r\n [['team', team], ['group', group]],\r\n config,\r\n );\r\n }\r\n}\r\n","import { BaseService } from './baseService';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { UserRoles } from '../models/UserRoles';\r\nimport Vue from 'vue';\r\n\r\nexport default class UserRoleService extends BaseService {\r\n private endpoint = `${Vue.$env().identityEndpoint}api/roles/`;\r\n private addDeleteEndpoint = `${this.endpoint}user/:externalIdentifier/role/:role`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public getUsersInRole(role: UserRoles) {\r\n return this.get(`${this.endpoint}:role/users`, [['role', role]]);\r\n }\r\n\r\n public makeAddDeleteData(externalIdentifier: string, role: UserRoles): ReadonlyArray<[string, any]> {\r\n return [\r\n ['externalIdentifier', externalIdentifier],\r\n ['role', role as string],\r\n ];\r\n }\r\n\r\n public setUserRole(externalIdentifier: string, role: UserRoles) {\r\n return this.post(this.addDeleteEndpoint, null, this.makeAddDeleteData(externalIdentifier, role));\r\n }\r\n\r\n public deleteUserRole(externalIdentifier: string, role: UserRoles) {\r\n return this.delete(this.addDeleteEndpoint, this.makeAddDeleteData(externalIdentifier, role));\r\n }\r\n}\r\n","export default class Period {\r\n public periodId?: number;\r\n public startDate: string = '';\r\n public endDate: string = '';\r\n public closed: boolean;\r\n public current: boolean;\r\n public status: string = '';\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport Period from '../models/Period';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport { $router } from '@/main';\r\n\r\nexport class PeriodService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getPeriods(team?: number) {\r\n const [err, response] = await to(this.get(`${this.endpoint}periods?teamId=:teamId`, [['teamId', team]]));\r\n if (err) {\r\n await $router.push({\r\n name: 'app-error',\r\n params: { message: `Failed to load periods.` },\r\n });\r\n\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Period(x));\r\n }\r\n\r\n public async getTeamPeriodStatusses() {\r\n const [err, response] = await to(this.get(`${this.endpoint}periods/status`));\r\n if (err) {\r\n await $router.push({\r\n name: 'app-error',\r\n params: { message: `Failed to load periods.` },\r\n });\r\n\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public closePeriod(period: number, team: number, soft: boolean = false) {\r\n return this.post(`${this.endpoint}periods/:period/close?teamId=:team&softClose=:soft`, null, [\r\n ['period', period],\r\n ['team', team],\r\n ['soft', soft],\r\n ]);\r\n }\r\n\r\n public openPeriod(period: number, team: number) {\r\n return this.post(`${this.endpoint}periods/:period/open?teamId=:team`, null, [['period', period], ['team', team]]);\r\n }\r\n\r\n public canClose(team: number, period: string) {\r\n return this.get(`${this.endpoint}periods/can-close?teamId=${team}`, null, { headers: { 'x-period': period } });\r\n }\r\n}\r\n","import VueRouter from 'vue-router';\r\n\r\nexport class ErrorHelper {\r\n private router: VueRouter;\r\n\r\n constructor(router: VueRouter) {\r\n this.router = router;\r\n }\r\n\r\n public throwError(message: string, returnUrl?: string) {\r\n let url = `/error?message=${message}`;\r\n if (returnUrl !== undefined) {\r\n url = `${url}&returnUrl=${returnUrl}`;\r\n }\r\n\r\n this.router.push(url);\r\n }\r\n}\r\n","import { UserRoles } from '../models/UserRoles';\r\nimport { loginHelper, loginService } from '@/main';\r\nimport Group from '@/models/Group';\r\nimport { PrivacyLevel } from '@/models/PrivacyLevel';\r\n\r\n/**\r\n * Helper function to assist in checking user roles.\r\n */\r\nexport class RoleHelper {\r\n /**\r\n * Checks if the user possess admin rights in a group.\r\n */\r\n public isAccountant(): boolean {\r\n return loginService.isInRole(UserRoles.Accountant);\r\n }\r\n\r\n /**\r\n * Check if the user possess full 'superuser' rights.\r\n */\r\n public isSiteAdmin(): boolean {\r\n return loginService.isInRole(UserRoles.SiteAdmin);\r\n }\r\n\r\n /**\r\n * Check if user possess admin rights in a team.\r\n */\r\n public isFinanceEmployee(): boolean {\r\n return loginService.isInRole(UserRoles.FinanceEmployee);\r\n }\r\n\r\n /**\r\n * Checks if the user possess admin rights in a group.\r\n */\r\n public isMember(): boolean {\r\n return loginService.isInRole(UserRoles.Member);\r\n }\r\n\r\n public isGroupLead(group: Group): boolean {\r\n if (!group.groupLead) {\r\n return false;\r\n }\r\n const user = loginHelper.getUser();\r\n return group.groupLead.memberId === user.personId;\r\n }\r\n\r\n public checkAccess(level: PrivacyLevel, group?: Group) {\r\n if (this.isAccountant()) {\r\n return true;\r\n }\r\n\r\n if (level === PrivacyLevel.SiteAdmin && this.isSiteAdmin()) {\r\n return true;\r\n }\r\n\r\n if (level === PrivacyLevel.FinanceEmployee && (this.isSiteAdmin() || this.isFinanceEmployee())) {\r\n return true;\r\n }\r\n\r\n if (level === PrivacyLevel.GroupLead && (this.isSiteAdmin() || this.isFinanceEmployee() || (group && this.isGroupLead(group)))) {\r\n return true;\r\n }\r\n\r\n if (level === PrivacyLevel.Member) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","import { ecosystemHelper, loginHelper, roleHelper } from '@/main';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { Membership } from '../models/Interfaces';\r\n\r\nexport class TeamHelper {\r\n public _currentTeam: Membership = null;\r\n\r\n public async setup() {\r\n let team = null;\r\n const urlSegments = window.location.pathname.split('/');\r\n if (typeof urlSegments === 'object' && urlSegments.length > 2) {\r\n team = parseInt(urlSegments[2].split('-')[0]);\r\n }\r\n\r\n this.setTeamByTeamId(team);\r\n }\r\n\r\n public getTeam(id?: number) {\r\n if (!id && this._currentTeam) {\r\n id = this._currentTeam.id;\r\n }\r\n const user = profileModule.brightProfile;\r\n let team = user.teamMemberships\r\n .filter((x) => x.ecosystem === ecosystemHelper.currentEcosystem.id)\r\n .find((membership) => {\r\n return membership.id === id;\r\n });\r\n\r\n if (team) {\r\n return team;\r\n }\r\n\r\n team = user.teamMemberships.filter((x) => x.ecosystem === ecosystemHelper.currentEcosystem.id).find((x) => x.id === user.primaryTeam);\r\n if (team) {\r\n return team;\r\n }\r\n\r\n team = user.teamMemberships.filter((x) => x.ecosystem === ecosystemHelper.currentEcosystem.id && (!x.accessUntil || roleHelper.isAccountant()))[0];\r\n if (team) {\r\n return team;\r\n }\r\n\r\n team = user.teamMemberships.filter((x) => x.ecosystem === ecosystemHelper.currentEcosystem.id)[0];\r\n\r\n if (team) {\r\n return team;\r\n }\r\n\r\n return user.teamMemberships[0];\r\n }\r\n\r\n public setTeamByTeamId(id: number) {\r\n this._currentTeam = this.getTeam(id);\r\n }\r\n\r\n public setTeam(team: Membership) {\r\n this.setTeamByTeamId(team.id);\r\n }\r\n\r\n public getTeamId(id?: number): any {\r\n const team = this.getTeam(id);\r\n return team.id;\r\n }\r\n\r\n public getTeamName(id: number): any {\r\n const user = loginHelper.getUser();\r\n const team = user.teamMemberships.find((membership) => {\r\n return membership.id === id;\r\n });\r\n\r\n if (team) {\r\n return team.name;\r\n }\r\n\r\n return user.teamMemberships[0].name;\r\n }\r\n\r\n public getTeamIdByKey(key?: string) {\r\n if (!key) {\r\n key = this._currentTeam.key;\r\n }\r\n\r\n const user = loginHelper.getUser();\r\n const team = user.teamMemberships.find((membership) => {\r\n return membership.key === key;\r\n });\r\n\r\n if (team) {\r\n return team;\r\n }\r\n return user.teamMemberships[0];\r\n }\r\n\r\n get currentTeam(): Membership {\r\n if (this._currentTeam === null) {\r\n const team = this.getTeam();\r\n this._currentTeam = team;\r\n }\r\n\r\n return this._currentTeam;\r\n }\r\n\r\n get currentTeamId(): number {\r\n return this._currentTeam.id;\r\n }\r\n\r\n get teamParam(): string {\r\n return `${this._currentTeam.id}-${this.currentTeam.key}`;\r\n }\r\n\r\n public getTeamByKey(key: string): Membership {\r\n const team = this.getTeamIdByKey(key);\r\n return team;\r\n }\r\n}\r\n","import Group from '../models/Group';\r\nimport { groupService, teamHelper } from '@/main';\r\nimport to from 'await-to-js';\r\nimport PageRender from '@/models/PageRender';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\nexport class GroupHelper extends PageRender {\r\n public groups: Group[] = null;\r\n\r\n public async getGroups() {\r\n const self = this;\r\n const [err, response] = await to(groupService.getGroups(teamHelper.currentTeamId, periodModule.selectedPeriod));\r\n if (err) {\r\n return (self.groups = null);\r\n }\r\n\r\n return (self.groups = response.data);\r\n }\r\n\r\n public async getGroup(groupId: number) {\r\n const [err, response] = await to(groupService.getGroup(groupId, periodModule.selectedPeriod));\r\n if (err) {\r\n this.showFailedResponse(`Failed to load group with groupId: ${groupId}`);\r\n return new Group();\r\n }\r\n\r\n return new Group(response.data);\r\n }\r\n\r\n public async createOrUpdateGroup(group: Group, periodString?: string): Promise {\r\n const postModel = {\r\n groupLead: typeof group.groupLead === 'object' ? group.groupLead.memberId : group.groupLead,\r\n name: group.name,\r\n purpose: group.purpose,\r\n teamId: teamHelper.currentTeam.id,\r\n connectorIds: group.connectors.map((x) => (typeof x === 'object' ? x.connectorId : x)),\r\n groupId: null,\r\n readMe: group.readMe,\r\n templateId: group.templateId ? group.templateId : group.baseTemplate ? group.baseTemplate : null,\r\n };\r\n\r\n if (group.groupId && group.groupId > 0) {\r\n postModel.groupId = group.groupId;\r\n } else {\r\n delete postModel.groupId;\r\n }\r\n\r\n const [err, response] = await to(groupService.createGroup(postModel, periodString ? periodString : periodModule.selectedPeriod));\r\n if (err) {\r\n this.clearAndShowError('Failed to create group', err);\r\n return new Group();\r\n }\r\n\r\n return response.data;\r\n }\r\n}\r\n","import { teamService } from '@/main';\r\nimport { Person } from '../models/Person';\r\n\r\nexport class MemberHelper {\r\n public members: Person[] = [];\r\n public interval: any;\r\n\r\n public async getMembers(force: boolean = false) {\r\n const self = this;\r\n self.members = [];\r\n\r\n if (self.members && self.members.length > 0 && !force) {\r\n return self.members;\r\n }\r\n\r\n self.members = await teamService.getMembers();\r\n\r\n return self.members;\r\n }\r\n}\r\n","import moment from 'moment';\r\nimport PageRender from '../models/PageRender';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\nexport class PeriodFilterHelper extends PageRender {\r\n public selectedPeriod() {\r\n return periodModule.selectedPeriod;\r\n }\r\n\r\n public selectedPeriodObject() {\r\n return periodModule.selectedPeriodObject;\r\n }\r\n\r\n public previousMonth(current = null, format = 'YYYY-MM'): string {\r\n const input = current ? current : periodModule.selectedPeriod;\r\n const now = moment(input, 'YYYY-MM');\r\n const previous = now.subtract(1, 'month');\r\n\r\n return previous.format(format);\r\n }\r\n\r\n public currentMonth(format = 'YYYY-MM'): string {\r\n const now = moment(periodModule.selectedPeriod, 'YYYY-MM');\r\n return now.format(format);\r\n }\r\n\r\n public getSelectedPeriodObject() {\r\n return periodModule.selectedPeriodObject;\r\n }\r\n\r\n public isCurrentPeriodClosed() {\r\n if (periodModule.selectedPeriodObject) {\r\n return periodModule.selectedPeriodObject.closed;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public areAllPreviousPeriodsClosed() {\r\n const currentPeriodIndex = periodModule.periods.findIndex((x) => x.periodId === periodModule.selectedPeriodObject.periodId);\r\n const periods = periodModule.periods.slice(currentPeriodIndex + 1);\r\n return periods.every((x) => x.closed);\r\n }\r\n\r\n public isValidPeriod(periodToCheck: string): boolean {\r\n return (\r\n periodModule.periods.find((period) => {\r\n return moment(period.startDate, 'YYYY-MM-DD').format('YYYY-MM') === periodToCheck;\r\n }) != null\r\n );\r\n }\r\n}\r\n","export default class NavigationHelper {\r\n public isNavVisible: boolean = false;\r\n public section: string = '';\r\n public scope: string = '';\r\n public isTeam: boolean = false;\r\n public isGroup: boolean = false;\r\n\r\n public toggleNavigation() {\r\n this.isNavVisible = !this.isNavVisible;\r\n }\r\n\r\n public hideNavigation() {\r\n this.isNavVisible = false;\r\n }\r\n\r\n public loadRouteMeta(meta, params) {\r\n this.section = (meta.section || 'directory');\r\n this.scope = (meta.scope || 'me');\r\n\r\n this.isTeam = this.scope.indexOf('team/') > -1;\r\n this.isGroup = params && params.groupKey && params.groupKey !== '';\r\n }\r\n}\r\n","import Vue from 'vue';\r\n\r\nexport class EventBus extends Vue {\r\n\r\n}\r\n","import { AxiosInstance } from 'axios';\r\nimport Vue from 'vue';\r\nimport { UserManager, WebStorageStateStore, User } from 'oidc-client';\r\nimport { profileModule } from '@/store/modules/profile';\r\n\r\nexport class LoginService {\r\n public publicAxiosInstance: AxiosInstance;\r\n public authAxiosInstance: AxiosInstance;\r\n private userManager: UserManager;\r\n\r\n constructor() {\r\n const STS_DOMAIN: string = `${Vue.$env().identityEndpoint}`;\r\n\r\n const settings: any = {\r\n userStore: new WebStorageStateStore({ store: window.localStorage }),\r\n authority: STS_DOMAIN,\r\n client_id: 'bright-ecology-systems',\r\n redirect_uri: `${Vue.$env().portalUrl}callback.html`,\r\n automaticSilentRenew: true,\r\n silent_redirect_uri: `${Vue.$env().portalUrl}silent-renew.html`,\r\n response_type: 'code',\r\n scope: 'openid roles profile directory.all finance.all common-notifications.api insights.all',\r\n post_logout_redirect_uri: `${Vue.$env().portalUrl}login`,\r\n filterProtocolClaims: true,\r\n };\r\n\r\n this.userManager = new UserManager(settings);\r\n\r\n this.userManager.events.addUserLoaded(async (user) => {\r\n profileModule.setUser(user);\r\n });\r\n\r\n this.userManager.events.addSilentRenewError((error) => {\r\n console.log(error);\r\n console.error('KAPOT');\r\n // custom logic here\r\n });\r\n }\r\n\r\n public async isLoggedIn(): Promise {\r\n const user = await this.getUser();\r\n const loggedIn = user != null && !user.expired;\r\n return loggedIn;\r\n }\r\n\r\n public async accessTokenExpired(): Promise {\r\n const user = await this.getUser();\r\n const accessTokenExpired = user != null && user.expired;\r\n return accessTokenExpired;\r\n }\r\n\r\n public async getUser(): Promise {\r\n return await this.userManager.getUser();\r\n }\r\n\r\n public async login() {\r\n // Removes stale state entries in storage for incomplete authorize requests\r\n await this.clearStaleState();\r\n\r\n await this.userManager.signinRedirect();\r\n }\r\n\r\n public async logout() {\r\n await this.userManager.signoutRedirect({ post_logout_redirect_uri: `${Vue.$env().portalUrl}login` });\r\n }\r\n\r\n public async refreshToken() {\r\n return await this.userManager\r\n .signinSilent()\r\n .catch((error) => {\r\n console.error(error);\r\n localStorage.removeItem(`oidc.user:${Vue.$env().identityEndpoint}:bright-ecology-systems`);\r\n window.location.href = '/';\r\n });\r\n }\r\n\r\n public async clearStaleState() {\r\n await this.userManager.clearStaleState();\r\n }\r\n\r\n public isInRole(role: string): boolean {\r\n return profileModule.getRoles().indexOf(role) > -1;\r\n }\r\n}\r\n","declare global {\r\n interface Number {\r\n /**\r\n * Returns the a rounded value of a number.\r\n */\r\n round(numberOfDecimals: number): string;\r\n }\r\n}\r\n\r\nNumber.prototype.round = function f(this: number, numberOfDecimals: number): string {\r\n // tslint:disable-next-line: restrict-plus-operands\r\n const formattedNumber = +(Math.round(((this + 'e+' + numberOfDecimals) as unknown) as number) + 'e-' + numberOfDecimals);\r\n\r\n return formattedNumber.toFixed(2);\r\n};\r\n\r\nexport {};\r\n","import Vue from 'vue';\r\nimport { BaseService } from './baseService';\r\nimport { AxiosHelper } from '@/helpers/axiosHelper';\r\nimport IMapSetting from '@/models/Map/IMapSettings';\r\nimport to from 'await-to-js';\r\n\r\nexport default class MapService extends BaseService {\r\n private endpoint = `${Vue.$env().directoryEndpoint}map/settings`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getSettings(team?: number): Promise {\r\n // tslint:disable-next-line: no-dead-store\r\n let [err, response] = [null, null];\r\n if (team) {\r\n [err, response] = await to(this.get(`${this.endpoint}?teamId=:team`, [['team', team]]));\r\n } else {\r\n [err, response] = await to(this.get(`${this.endpoint}`));\r\n }\r\n\r\n if (err) {\r\n return [];\r\n }\r\n\r\n return response.data as IMapSetting[];\r\n }\r\n\r\n public async saveSettings(settings: IMapSetting[]): Promise {\r\n settings.forEach((x) => (!isNaN(x.radius) ? (x.radius = parseInt(x.radius.toString())) : x.radius));\r\n\r\n const [err] = await to(this.post(`${this.endpoint}`, settings));\r\n\r\n if (err) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n","import Vue from 'vue';\r\nimport { BaseService } from './baseService';\r\nimport { AxiosHelper } from '@/helpers/axiosHelper';\r\nimport to from 'await-to-js';\r\nimport Connector from '@/models/Connectors/Connector';\r\n\r\nexport default class ConnectorService extends BaseService {\r\n private endpoint = `${Vue.$env().directoryEndpoint}connectors`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getConnectors(): Promise {\r\n const [err, response] = await to(this.get(`${this.endpoint}`));\r\n if (err) {\r\n return [];\r\n }\r\n\r\n return response.data as Connector[];\r\n }\r\n}\r\n","import Group from '../models/Group';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\n\r\nexport class FinanceGroupService extends BaseService {\r\n private financeGroupEndpoint = `${Vue.$env().financeEndpoint}` + 'groups';\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getGroups(team: number, period?: string) {\r\n if (!period) {\r\n const [errWPeriod, responseWPeriod] = await to(this.get(`${this.financeGroupEndpoint}?teamId=:team`, [['team', team]]));\r\n\r\n if (errWPeriod) {\r\n this.showFailedResponse(`Failed to load groups for team ${team}`, null);\r\n }\r\n\r\n return responseWPeriod.data;\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n const [err, response] = await to(this.get(`${this.financeGroupEndpoint}?teamId=:team`, [['team', team]], config));\r\n if (err) {\r\n this.showFailedResponse(`Failed to load groups for team ${team}`, null);\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public getGroup(group: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.financeGroupEndpoint}/:group`, [['group', group]], config);\r\n }\r\n\r\n public getGroupResults(group: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.get(`${this.financeGroupEndpoint}/:group/results`, [['group', group]], config);\r\n }\r\n\r\n public compenstateCosts(groupId: number, teamId: number): Promise {\r\n return this.post(`${this.financeGroupEndpoint}/:group/compensate-members?teamId=:teamId`, null, [['group', groupId], ['teamId', teamId]]);\r\n }\r\n}\r\n","import { AxiosPromise } from 'axios';\r\nimport { AxiosHelper } from '../helpers/axiosHelper';\r\nimport Transfer from '../models/Transfer';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport TransferRequest from '@/models/Finance/TransferRequest';\r\nimport IRecurringTransferRequest from '@/interfaces/IRecurringTransferRequest';\r\n\r\nexport class TransferService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getTransfersRequests(group: number): Promise {\r\n const [err, response] = await to(this.get(`${this.endpoint}transfer-requests?group=:groupId`, [['groupId', group]]));\r\n\r\n if (err) {\r\n this.showFailedResponse('Failed to load transfer requests', err);\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async createTransferRequest(model: any, amount: number, teamId: number, groupId?: number): Promise {\r\n let url = `${this.endpoint}transfer-requests?teamId=:team`;\r\n\r\n if (groupId) {\r\n url += '&groupId=:?group';\r\n }\r\n\r\n const requestModel = Object.assign({}, model);\r\n requestModel.transfer.amount = amount;\r\n\r\n const [err, response] = await to(this.post(url, requestModel, [['team', teamId], ['group', groupId]]));\r\n if (err) {\r\n this.showFailedResponse('UPDATE_TRANSFER_FAILED', err);\r\n return;\r\n }\r\n\r\n this.clearAndShowSuccess('UPDATE_TRANSFER_SUCCESS');\r\n return response.data;\r\n }\r\n\r\n public async updateTransferRequest(model: any, teamId: number, groupId?: number): Promise {\r\n this.showPending('UPDATE_TRANSFER_PENDING');\r\n\r\n let url = `${this.endpoint}transfer-requests/${model.transferRequestId}?teamId=:team`;\r\n\r\n if (groupId) {\r\n url += '&groupId=:?group';\r\n }\r\n const [err, response] = await to(this.put(url, model, [['team', teamId], ['group', groupId]]));\r\n if (err) {\r\n this.showFailedResponse('UPDATE_TRANSFER_FAILED', err);\r\n return;\r\n }\r\n\r\n this.clearAndShowSuccess('UPDATE_TRANSFER_SUCCESS');\r\n return response.data;\r\n }\r\n\r\n public async acceptTransferRequest(transferRequestId: number): Promise {\r\n this.showPending('ACCEPT_TRANSFER_PENDING');\r\n const [err] = await to(\r\n this.post(`${this.endpoint}transfer-requests/:id/accept`, { transferRequestId }, [['id', transferRequestId]]),\r\n );\r\n if (err) {\r\n const localErr = err as any;\r\n this.clearAndShowError(`ACCEPT_TRANSFER_FAILED`, localErr);\r\n return false;\r\n }\r\n\r\n this.clearAndShowSuccess('ACCEPT_TRANSFER_SUCCESS');\r\n return true;\r\n }\r\n\r\n public async withdrawRequest(transferRequestId: number): Promise {\r\n this.showPending('REJECT_TRANSFER_PENDING');\r\n\r\n const [err] = await to(\r\n this.post(`${this.endpoint}transfer-requests/:id/withdraw`, { transferRequestId }, [['id', transferRequestId]]),\r\n );\r\n if (err) {\r\n const localErr = err as any;\r\n this.clearAndShowError(`REJECT_TRANSFER_FAILED`, localErr);\r\n return false;\r\n }\r\n\r\n this.clearAndShowSuccess('REJECT_TRANSFER_SUCCESS');\r\n return true;\r\n }\r\n\r\n public async rejectTransferRequest(transferRequestId: number): Promise {\r\n this.showPending('REJECT_TRANSFER_PENDING');\r\n\r\n const [err] = await to(\r\n this.post(`${this.endpoint}transfer-requests/:id/reject`, { transferRequestId }, [['id', transferRequestId]]),\r\n );\r\n if (err) {\r\n const localErr = err as any;\r\n this.clearAndShowError(`REJECT_TRANSFER_FAILED`, localErr);\r\n return false;\r\n }\r\n\r\n this.clearAndShowSuccess('REJECT_TRANSFER_SUCCESS');\r\n return true;\r\n }\r\n\r\n public doTransfer(transfer: Transfer): AxiosPromise {\r\n const model = {\r\n group: transfer.group,\r\n initiator: transfer.initiator,\r\n reason: transfer.reason,\r\n sender: transfer.sender,\r\n receiver: transfer.receiver,\r\n senderTeam: transfer.senderTeam.teamId,\r\n receiverTeam: transfer.receiverTeam.teamId,\r\n amount: transfer.amount,\r\n invoiceType: transfer.invoiceType,\r\n };\r\n\r\n return this.post(`${this.endpoint}transfers`, model);\r\n }\r\n\r\n public updateTransfer(transfer: Transfer) {\r\n const model = {\r\n reason: transfer.reason,\r\n amount: transfer.amount,\r\n };\r\n\r\n return this.put(`${this.endpoint}transfers/${transfer.transferId}`, model);\r\n }\r\n\r\n public deleteTransfer(transferId: number): AxiosPromise {\r\n return this.delete(`${this.endpoint}transfers/${transferId}`);\r\n }\r\n\r\n public async getTransfers(team: number, group: number, personId: number, period: string): Promise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n const [err, response] = await to(\r\n this.get(\r\n `${this.endpoint}transfers?teamId=:team&groupId=:?group&personId=:?personId`,\r\n [['team', team], ['group', group], ['personId', personId]],\r\n config,\r\n ),\r\n );\r\n\r\n if (err) {\r\n this.clearAndShowError('Failed to load transfers', err);\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async getCrossTeamPersonTransfers(team: number, period: string, personId?: number): Promise {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n if (personId) {\r\n const [errPerson, responsePerson] = await to(\r\n this.get(\r\n `${this.endpoint}transferred-funds?teamId=:team&personId=:?personId`,\r\n [['team', team], ['personId', personId]],\r\n config,\r\n ),\r\n );\r\n\r\n if (errPerson) {\r\n // this.clearAndShowError('Failed to load transfer', errPerson);\r\n return [];\r\n }\r\n\r\n return responsePerson.data;\r\n }\r\n\r\n const [err, response] = await to(this.get(`${this.endpoint}transferred-funds?teamId=:team`, [['team', team]], config));\r\n if (err) {\r\n // this.clearAndShowError('Failed to load transfer', err);\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public createRecurringTransfer(transfer: IRecurringTransferRequest) {\r\n return this.post(`${this.endpoint}recurring-transfers`, transfer);\r\n }\r\n\r\n public stopRecurringTransfer(transferId: number, endPeriod: string) {\r\n return this.post(`${this.endpoint}recurring-transfers/${transferId}/stop`, { endPeriod }, null, {\r\n headers: { 'Content-Type': 'application/json' },\r\n });\r\n }\r\n\r\n public getReucrringTransfers(period: string, teamId: number, groupId?: number) {\r\n let url = `${this.endpoint}recurring-transfers?teamId=${teamId}`;\r\n if (groupId) {\r\n url += `&groupId=${groupId}`;\r\n }\r\n if (period) {\r\n const headers = { 'x-period': period };\r\n return this.get(url, null, { headers });\r\n } else {\r\n return this.get(url);\r\n }\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport TeamSettings from '@/models/TeamSettings';\r\n\r\nexport class SettingService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public saveTeamSettings(teamId: number, teamFinanceSettings: TeamSettings) {\r\n return this.post(\r\n `${this.endpoint}team-settings?teamId=:team`,\r\n {\r\n defaultGroupPrivacyLevel: teamFinanceSettings.defaultGroupPrivacyLevel,\r\n allExpensesPrivacyLevel: teamFinanceSettings.allExpensesPrivacyLevel,\r\n memberResultsPrivacyLevel: teamFinanceSettings.memberResultsPrivacyLevel,\r\n },\r\n [['team', teamId]],\r\n );\r\n }\r\n\r\n public getTeamSettings(teamId: number) {\r\n return this.get(`${this.endpoint}team-settings?teamId=:team`, [['team', teamId]]);\r\n }\r\n}\r\n","import { loginHelper } from '@/main';\r\nimport { profileModule } from '@/store/modules/profile';\r\nimport { Membership } from '../models/Interfaces';\r\n\r\nexport class EcosystemHelper {\r\n public _currentEcosystem: Membership = null;\r\n public setupIsDone: boolean = false;\r\n\r\n public async setup() {\r\n let ecosystemId = null;\r\n const urlSegments = window.location.pathname.split('/');\r\n\r\n if (typeof urlSegments === 'object' && urlSegments.length > 1) {\r\n ecosystemId = parseInt(urlSegments[1].split('-')[0]);\r\n }\r\n\r\n this.setEcosystemByEcosystemId(ecosystemId);\r\n this.setupIsDone = true;\r\n }\r\n\r\n public getEcosystem(id?: number) {\r\n if (!id && this._currentEcosystem) {\r\n id = this._currentEcosystem.id;\r\n }\r\n\r\n const user = profileModule.brightProfile;\r\n let ecosystem = user.ecosystemMemberships.find((x) => x.id === id);\r\n if (ecosystem) {\r\n return ecosystem;\r\n }\r\n\r\n ecosystem = user.ecosystemMemberships.find((x) => x.id === user.primaryEcosystem);\r\n if (ecosystem) {\r\n return ecosystem;\r\n }\r\n\r\n return user.ecosystemMemberships[0];\r\n }\r\n\r\n public setEcosystemByEcosystemId(id: number) {\r\n this._currentEcosystem = this.getEcosystem(id);\r\n }\r\n\r\n // public getEcosystemId(key?: string): any {\r\n // const ecosystem = this.getEcosystem(key);\r\n // return ecosystem.id;\r\n // }\r\n\r\n public getEcosystemName(id: number): any {\r\n const user = loginHelper.getUser();\r\n const team = user.ecosystemMemberships.find((membership) => {\r\n return membership.id === id;\r\n });\r\n\r\n if (team) {\r\n return team.name;\r\n }\r\n return user.ecosystemMemberships[0].name;\r\n }\r\n\r\n get currentEcosystem(): Membership {\r\n return this._currentEcosystem;\r\n }\r\n\r\n get ecosystemParam(): string {\r\n return `${this._currentEcosystem.id}-${this._currentEcosystem.key}`;\r\n }\r\n}\r\n","import Ledger from '@/models/Finance/Ledger';\r\nimport Vue from 'vue';\r\nimport { BaseService } from './baseService';\r\n\r\nexport default class LedgerService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}ledgers`;\r\n\r\n public getLedgers() {\r\n return this.get(this.endpoint);\r\n }\r\n\r\n public postLedgers(ledger: Ledger) {\r\n return this.post(this.endpoint, ledger);\r\n }\r\n\r\n public updateLedgers(ledger: Ledger) {\r\n return this.put(`${this.endpoint}/${ledger.ledgerId}`, ledger);\r\n }\r\n}\r\n","import Relation, { RelationSettings } from '@/models/Finance/Relation';\r\nimport to from 'await-to-js';\r\nimport Vue from 'vue';\r\nimport { BaseService } from './baseService';\r\n\r\nexport default class RelationService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}/relations`;\r\n\r\n public getRelationProperties() {\r\n return this.get(`${Vue.$env().financeEndpoint}relationship-properties`);\r\n }\r\n\r\n public async getRelations(includeDeleted: boolean, teamId?: number, groupId?: number): Promise {\r\n let url = `${this.endpoint}?includeDeleted=${includeDeleted}`;\r\n\r\n if (teamId) {\r\n url += `&teamId=${teamId}`;\r\n }\r\n\r\n if (groupId) {\r\n url += `&groupId=${groupId}`;\r\n }\r\n\r\n const [err, response] = await to(this.get(url));\r\n if (err) {\r\n this.clearAndShowError('FAILED_GETTING_RELATIONS', err);\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Relation(x));\r\n }\r\n\r\n public async deleteRelation(relation: number): Promise {\r\n const [err] = await to(this.delete(`${this.endpoint}/:relation`, [['relation', relation]]));\r\n return !err;\r\n }\r\n\r\n public createOrUpdateSettings(relation: number, settings: RelationSettings) {\r\n const model = {\r\n intellectualPropertyLimitation: settings.intellectualPropertyLimitation.intellectualPropertyLimitationId,\r\n salesLedger: settings.salesLedger.ledgerId,\r\n purchaseLedger: settings.purchaseLedger.ledgerId,\r\n taxRateId: settings.taxRateId,\r\n };\r\n\r\n return this.put(`${this.endpoint}/:relation/settings`, model, [['relation', relation]]);\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport Template from '@/models/Finance/Template';\r\nimport to from 'await-to-js';\r\n\r\nexport class TemplateService extends BaseService {\r\n private endpoint = `${Vue.$env().financeEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getTemplates(teamId: number) {\r\n const [err, response] = await to(this.get(`${this.endpoint}templates?team_id=:teamId`, [['teamId', teamId]]));\r\n\r\n if (err) {\r\n this.showError('LOADING_TEMPLATES_FAILED');\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Template(x));\r\n }\r\n\r\n public createTemplate(template: Template) {\r\n return this.post(`${this.endpoint}templates`, template);\r\n }\r\n\r\n public updateTemplate(template: Template) {\r\n return this.put(`${this.endpoint}templates/:templateId`, template, [['templateId', template.financeGroupTemplateId]]);\r\n }\r\n\r\n public deleteTemplate(template: Template) {\r\n return this.delete(`${this.endpoint}templates/:templateId`, [['templateId', template.financeGroupTemplateId]]);\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport Notification from '@/components/notification/models/Notification';\r\n\r\nexport class NotificationsService extends BaseService {\r\n private endpoint = `${Vue.$env().notificationsEndpoint}`;\r\n private application = 'bright';\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getNotifications() {\r\n const [err, response] = await to(this.get(`${this.endpoint}notifications?application=${this.application}`));\r\n\r\n if (err) {\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Notification(x));\r\n }\r\n\r\n public async markAsHandled(notification: Notification) {\r\n return this.post(`${this.endpoint}notifications/${notification.id}/handled?application=${this.application}`);\r\n }\r\n\r\n public async deleteNotification(notification: Notification) {\r\n return this.delete(`${this.endpoint}notifications/${notification.id}?application=${this.application}`);\r\n }\r\n}\r\n","import _Vue from 'vue';\r\nimport { events } from './sideActionsEvents';\r\n\r\n// export type PluginFunction = (Vue: typeof _Vue, options?: T) => void;\r\nexport default function SideActionsPlugin(vue: typeof _Vue, _?: any): void {\r\n vue.component('side-actions', require('./sideActionsComponent.vue').default);\r\n\r\n vue.prototype.$sideActions = {\r\n push(component: string, sideOptions: any, finishedHandler: () => void) {\r\n events.$emit('pushed', { component, sideOptions, finishedHandler });\r\n },\r\n };\r\n}\r\n","export default class Lens {\r\n public lensId: number;\r\n public name: string;\r\n public slug: string;\r\n\r\n constructor(init?: Partial) {\r\n Object.assign(this, init);\r\n }\r\n}\r\n","import { InvoiceType } from '../InvoiceType';\r\n\r\nexport default class PaymentStatus {\r\n public ecosystem: number = null;\r\n public invoiceId: number = null;\r\n public invoiceReference?: string = null;\r\n public invoiceDate: string = '';\r\n public externalIdentifier: string = '';\r\n public period: number = null;\r\n public periodMatched: number = null;\r\n public invoiceType: InvoiceType;\r\n public team: number = null;\r\n public invoiceAmount: number = null;\r\n public amountPaid: number = null;\r\n public paymentDate: string = '';\r\n\r\n constructor(init?: Partial) {\r\n Object.assign(this, init);\r\n }\r\n}\r\n","import Vue from 'vue';\r\nimport { BaseService } from './baseService';\r\nimport { AxiosHelper } from '@/helpers/axiosHelper';\r\nimport to from 'await-to-js';\r\nimport InsightView from '@/models/Insights/InsightView';\r\nimport { periodFilterHelper } from '@/main';\r\nimport Lens from '@/models/Insights/Lens';\r\nimport PaymentStatus from '@/models/Insights/PaymentStatus';\r\nimport PeriodRange from '@/models/PeriodRange';\r\n\r\nexport default class InsightsService extends BaseService {\r\n private endpoint = `${Vue.$env().insightsEndpoint}insight-views`;\r\n private lensEndpoint = `${Vue.$env().insightsEndpoint}lenses`;\r\n private cashLensEndpoint = `${Vue.$env().insightsEndpoint}cash-lens`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getViews(personal: boolean = false): Promise {\r\n const [err, response] = await to(this.get(`${this.endpoint}${personal ? '/personal' : ''}`));\r\n if (err) {\r\n this.clearAndShowError('LOAD_VIEWS_FAILED', err);\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new InsightView(x));\r\n }\r\n\r\n public async updateView(view: InsightView) {\r\n return this.put(`${this.endpoint}/${view.insightViewId}`, view);\r\n }\r\n\r\n public async createView(view) {\r\n return this.post(`${this.endpoint}`, view);\r\n }\r\n\r\n public async deleteView(view) {\r\n return this.delete(`${this.endpoint}/${view.insightViewId}`);\r\n }\r\n\r\n public async getLenses() {\r\n const [err, response] = await to(this.get(`${this.lensEndpoint}`));\r\n if (err) {\r\n this.clearAndShowError('LOAD_LENSES_FAILED', err);\r\n return [];\r\n }\r\n\r\n return response.data.map((x) => new Lens(x));\r\n }\r\n\r\n public async getLens(lens, view, dates: PeriodRange, paymentTerm: number = null) {\r\n const config = {\r\n headers: {\r\n 'x-startPeriod': dates && dates.fromFilterMonth ? dates.fromFilterMonth : periodFilterHelper.selectedPeriod(),\r\n 'x-endPeriod': dates && dates.toFilterMonth ? dates.toFilterMonth : periodFilterHelper.selectedPeriod(),\r\n },\r\n };\r\n\r\n return this.get(`${this.lensEndpoint}/${lens}?insight_view=${view}${paymentTerm ? `&payment_term=${paymentTerm}` : ''}`, null, config);\r\n }\r\n\r\n public async getPaymentStatusses(teamId): Promise {\r\n const [err, response] = await to(this.get(`${this.cashLensEndpoint}/payments?team_id=${teamId}`));\r\n if (err) {\r\n this.clearAndShowError('LOAD_PAYMENT_STATUSSES_FAILED', err);\r\n return [];\r\n }\r\n\r\n return response.data.map((x: Partial) => new PaymentStatus(x));\r\n }\r\n}\r\n","import { AxiosHelper } from '../helpers/axiosHelper';\r\nimport Attribution from '../models/Attribution';\r\nimport { BaseService } from './baseService';\r\nimport Vue from 'vue';\r\nimport to from 'await-to-js';\r\nimport { ecosystemHelper } from '@/main';\r\nimport { Member } from '@/models/Member';\r\n\r\nexport class EcosystemService extends BaseService {\r\n private endpoint = `${Vue.$env().directoryEndpoint}`;\r\n\r\n constructor(axiosHelper: AxiosHelper) {\r\n super(axiosHelper);\r\n }\r\n\r\n public async getSubscriptionInfo() {\r\n const [err, response] = await to(this.get(`${this.endpoint}subscription-data`));\r\n if (err) {\r\n return [];\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async createEcosytem(name: string) {\r\n const model = {\r\n name,\r\n };\r\n\r\n const [err, response] = await to(this.post(`${this.endpoint}ecosystems`, model, null));\r\n if (err) {\r\n this.clearAndShowWarning('FAILED_TO_CREATE_ECOSYSTEM');\r\n return null;\r\n }\r\n\r\n return response.data;\r\n }\r\n\r\n public async getMembers(): Promise {\r\n const ecosystemId = ecosystemHelper.currentEcosystem.id;\r\n const [err, response] = await to(this.get(`${this.endpoint}ecosystems/${ecosystemId}/members`));\r\n return err ? null : response.data;\r\n }\r\n\r\n public removeMember(memberId: number, ecosystemId: number, period: string) {\r\n const config = {\r\n headers: {\r\n 'x-period': period,\r\n },\r\n };\r\n\r\n return this.delete(`${this.endpoint}ecosystems/:ecosystemId/members/:memberId`, [['ecosystemId', ecosystemId], ['memberId', memberId]], config);\r\n }\r\n}\r\n","import Vue from 'vue';\r\nimport App from './App.vue';\r\nimport router from './router';\r\nimport VueAppInsights from 'vue-application-insights';\r\nimport Vuelidate from 'vuelidate';\r\n\r\nimport SharedUI from '@prd/shared-ui';\r\nimport './components/index';\r\nimport VueGoogleCharts from 'vue-google-charts';\r\n\r\nimport { AxiosHelper } from './helpers/axiosHelper';\r\nimport { LoginHelper } from './helpers/loginHelper';\r\nimport { MeService } from './services/meService';\r\nimport { GroupService } from './services/groupService';\r\nimport { PersonService } from './services/personService';\r\nimport { TeamService } from './services/teamService';\r\nimport { FinanceService } from './services/financeService';\r\nimport { FinanceAccountService } from './services/financeAccountService';\r\nimport { AttributionService } from './services/attributionService';\r\nimport { ResultService } from './services/resultService';\r\nimport { CompensationService } from './services/compensationService';\r\nimport UserRoleService from './services/userRoleService';\r\nimport { PeriodService } from './services/periodService';\r\nimport { ErrorHelper } from './helpers/errorHelper';\r\nimport { RoleHelper } from './helpers/roleHelper';\r\nimport { TeamHelper } from './helpers/teamHelper';\r\nimport { GroupHelper } from './helpers/GroupHelper';\r\nimport { MemberHelper } from './helpers/memberHelper';\r\nimport { PeriodFilterHelper } from './helpers/periodFilterHelper';\r\nimport NavigationHelper from './helpers/navigationHelper';\r\nimport { EventBus } from './events/EventBus';\r\nimport { LoginService } from './services/loginService';\r\nimport '@/extensions/numberExtensions';\r\nimport MapService from './services/mapService';\r\nimport store from '@/store/index';\r\nimport ConnectorService from './services/connectorsService';\r\nimport { FinanceGroupService } from './services/financeGroupService';\r\nimport { TransferService } from './services/transferService';\r\nimport { SettingService } from './services/settingService';\r\nimport { EcosystemHelper } from './helpers/ecosystemHelper';\r\nimport { translateModule } from './store/modules/translate';\r\nimport LedgerService from './services/LedgerService';\r\nimport RelationService from './services/RelationService';\r\nimport { TemplateService } from './services/templateService';\r\nimport { NotificationsService } from './services/notificationsService';\r\nimport SideActionsPlugin from './plugin/sideActions/sideActions';\r\nimport InsightsService from './services/insightViewService';\r\nimport { EcosystemService } from './services/ecosystemService';\r\nimport { numberFormat } from './filters';\r\n\r\nVue.use(SharedUI);\r\nVue.use(Vuelidate);\r\nVue.use(SideActionsPlugin);\r\nVue.use(VueGoogleCharts);\r\n\r\nif (Vue.$env().instrumentationKey) {\r\n Vue.use(VueAppInsights, {\r\n id: Vue.$env().instrumentationKey,\r\n router,\r\n });\r\n}\r\n\r\nexport const $router = router;\r\nexport const eventBus = new EventBus();\r\nexport const axiosHelper = new AxiosHelper({}, {});\r\nexport const loginService = new LoginService();\r\nexport const loginHelper = new LoginHelper(loginService);\r\nexport const meService = new MeService(axiosHelper);\r\nexport const groupService = new GroupService(axiosHelper);\r\nexport const personService = new PersonService(axiosHelper);\r\nexport const teamService = new TeamService(axiosHelper);\r\nexport const financeService = new FinanceService(axiosHelper);\r\nexport const transferService = new TransferService(axiosHelper);\r\nexport const financeAccountService = new FinanceAccountService(axiosHelper);\r\nexport const attributionService = new AttributionService(axiosHelper);\r\nexport const resultService = new ResultService(axiosHelper);\r\nexport const compensationService = new CompensationService(axiosHelper);\r\nexport const userRoleService = new UserRoleService(axiosHelper);\r\nexport const periodService = new PeriodService(axiosHelper);\r\nexport const mapService = new MapService(axiosHelper);\r\nexport const connectorService = new ConnectorService(axiosHelper);\r\nexport const financeGroupService = new FinanceGroupService(axiosHelper);\r\nexport const settingService = new SettingService(axiosHelper);\r\nexport const ledgerService = new LedgerService(axiosHelper);\r\nexport const relationService = new RelationService(axiosHelper);\r\nexport const templateService = new TemplateService(axiosHelper);\r\nexport const notificationsService = new NotificationsService(axiosHelper);\r\nexport const insightService = new InsightsService(axiosHelper);\r\nexport const ecosystemService = new EcosystemService(axiosHelper);\r\nexport const errorHelper = new ErrorHelper(router);\r\nexport const roleHelper = new RoleHelper();\r\nexport const teamHelper = new TeamHelper();\r\nexport const ecosystemHelper = new EcosystemHelper();\r\nexport const groupHelper = new GroupHelper();\r\nexport const memberHelper = new MemberHelper();\r\nexport const periodFilterHelper = new PeriodFilterHelper();\r\nexport const navigationHelper = new NavigationHelper();\r\n\r\nVue.config.productionTip = false;\r\n\r\nVue.filter('number-format', (n: number) => {\r\n if (!n || typeof n === 'undefined' || n == null) {\r\n return 0;\r\n }\r\n\r\n if (n > -1000 && n < 1000) {\r\n return n.round(2).replace('.', ',');\r\n }\r\n\r\n const parts = n.round(2).split('.');\r\n const chars = [];\r\n let i = 0;\r\n\r\n if (parts.length === 2) {\r\n chars.push(`,${parts[1]}`);\r\n }\r\n\r\n parts[0]\r\n .split('')\r\n .reverse()\r\n .forEach((c) => {\r\n chars.push(c);\r\n i++;\r\n if (i > 0 && i % 3 === 0) {\r\n chars.push(' ');\r\n }\r\n });\r\n\r\n return chars.reverse().join('');\r\n});\r\n\r\nVue.filter('numberFormat', numberFormat);\r\n\r\nnew Vue({\r\n store,\r\n data: {\r\n loginHelper,\r\n periodFilterHelper,\r\n teamHelper,\r\n ecosystemHelper,\r\n roleHelper,\r\n navigationHelper,\r\n },\r\n computed: {\r\n inEditMode() {\r\n return translateModule.inEditMode;\r\n },\r\n },\r\n router,\r\n render: (h) => h(App),\r\n}).$mount('#app');\r\n","export enum AccountType {\r\n Uknonwn = 'Unknown',\r\n Invoice = 'Invoice',\r\n Team = 'Team',\r\n GroupIncome = 'GroupIncome',\r\n Person = 'Person',\r\n GroupSavings = 'GroupSavings',\r\n GroupOverflow = 'GroupOverflow',\r\n}\r\n","import { AttributionInterface } from './Interfaces';\r\nimport Group from './Group';\r\nimport { AttributionType } from './AttributionType';\r\nimport Team from './Team';\r\n\r\nexport default class Attribution implements AttributionInterface {\r\n public attributionId: number;\r\n public group: number;\r\n public groups: Group[] = [];\r\n public groupModel: Group;\r\n public percentage: any;\r\n public attributionType: AttributionType;\r\n public targetGroup: number;\r\n public targetTeam: number;\r\n public targetGroupModel: Group;\r\n public targetTeamModel: Team = null;\r\n public targetAccount: number;\r\n public team: number;\r\n public name: string;\r\n\r\n constructor(percentage: any, name: string = '') {\r\n this.percentage = percentage;\r\n this.name = name;\r\n }\r\n}\r\n","export enum AttributionType {\r\n Unknown = 'Unknown',\r\n TeamAttribution = 'TeamAttribution',\r\n GroupRemittance = 'GroupRemittance',\r\n GroupAttribution = 'GroupAttribution',\r\n}\r\n","import Group from './Group';\r\nimport Vue from 'vue';\r\nimport { Person } from './Person';\r\n\r\nexport default class Compensation {\r\n public group: Group = null;\r\n public energyDedication: number = 0;\r\n public amounts: number[] = [];\r\n public costs: number = null;\r\n public member: Person = null;\r\n public compensation: number = 0;\r\n public attributions: number = 0;\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n\r\n public getTotalAmount = function(): number {\r\n let amount = 0;\r\n this.amounts.forEach((a: number) => {\r\n amount += a;\r\n });\r\n return amount;\r\n };\r\n\r\n public getTotalAmountString = function(): string {\r\n return Vue.filter('number-format')(this.getTotalAmount());\r\n };\r\n\r\n public calculateFinancialCompensation = function(): number {\r\n if (this.energyDedication === 0 || this.costs === 0) {\r\n return 0;\r\n }\r\n return (this.getTotalAmount() / (this.costs * (this.energyDedication / 100))) * 100;\r\n };\r\n\r\n public financialCompensation = function(): string {\r\n const self = this;\r\n return `${self.calculateFinancialCompensation().toFixed(1)}%`;\r\n };\r\n\r\n public setCosts(costs: number) {\r\n this.costs = costs;\r\n }\r\n}\r\n","import { Invoice } from './Invoice';\r\nimport { Distribution, DistributedInvoiceInterface } from './Interfaces';\r\nimport { AccountType } from './AccountType';\r\n\r\nexport default class DistributedInvoice implements DistributedInvoiceInterface {\r\n public invoice: Invoice;\r\n public distributions: Distribution[] = [];\r\n public amountDistributed: number;\r\n public selected: boolean = false;\r\n public amountLeft: number;\r\n public amountLeftFilter: number;\r\n\r\n constructor(item?: any) {\r\n if (item != null) {\r\n Object.assign(this, item);\r\n }\r\n }\r\n\r\n public getPersonDistributions = function(personId: number): Distribution[] {\r\n if (typeof personId === 'undefined' || personId === null) {\r\n console.error('Given personId is undefined or null. Please give a valid personId');\r\n }\r\n\r\n return this.distributions.filter((distribution: Distribution) => {\r\n if (distribution.account) {\r\n return distribution.account.relatedEntityId === personId && distribution.account.accountType === AccountType.Person;\r\n }\r\n });\r\n };\r\n\r\n public getDistributionsByType = function(type: AccountType): Distribution[] {\r\n if (typeof type === 'undefined' || type === null) {\r\n console.error('Given type is undefined or null. Please give a valid type');\r\n }\r\n\r\n return this.distributions.filter((distribution: Distribution) => {\r\n if (distribution.account) {\r\n return distribution.account.accountType === type;\r\n }\r\n });\r\n };\r\n public getGroupSavings = function(groupId: number): Distribution[] {\r\n if (typeof groupId === 'undefined' || groupId === null) {\r\n console.error('Given groupId is undefined or null. Please give a valid groupId');\r\n }\r\n\r\n return this.distributions.filter((distribution: Distribution) => {\r\n if (distribution.account) {\r\n return distribution.account.relatedEntityId === groupId && distribution.account.accountType === AccountType.GroupSavings;\r\n }\r\n });\r\n };\r\n\r\n public hasDistributions(entityId: number, type: AccountType) {\r\n if (this.distributions.length === 0) {\r\n return false;\r\n }\r\n\r\n const distributions = this.distributions.filter((distribution: Distribution) => {\r\n if (distribution.account) {\r\n return distribution.account.relatedEntityId === entityId && distribution.account.accountType === type;\r\n }\r\n });\r\n\r\n if (distributions.length < 1) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n","import { FinanceInterface, Distribution } from './Interfaces';\r\nimport DistributedInvoice from './DistributedInvoice';\r\nimport { AccountType } from './AccountType';\r\nimport { functions } from '@/helpers/functions';\r\nimport Vue from 'vue';\r\n\r\nexport default class FinanceBase implements FinanceInterface {\r\n public totalIncomes: string;\r\n public totalIncomesAmount: number;\r\n public totalExpenses: string;\r\n public totalExpensesAmount: number;\r\n public totalExtras: string;\r\n public totalCosts: string;\r\n public totalCostAmount: number;\r\n public totalResult: string = 'N/A';\r\n public totalResultAmount: number;\r\n public totalBudget: string = 'N/A';\r\n public totalTransfers: string;\r\n public totalTransfersAmount: number;\r\n public totalExternalTransfers: string;\r\n public totalExternalTransferAmount: number;\r\n\r\n public previousBalance: string = 'N/A';\r\n public currentBalance: string = 'N/A';\r\n public currentBalanceAmount: number;\r\n public ratio: any;\r\n\r\n public invoices: DistributedInvoice[] = [];\r\n public expenses: DistributedInvoice[] = [];\r\n public extras: DistributedInvoice[] = [];\r\n\r\n constructor(invoices, expenses) {\r\n this.invoices = this._initDistributedInvoices(invoices);\r\n this.expenses = this._initDistributedInvoices(expenses);\r\n }\r\n\r\n public _initDistributedInvoices(invoices): DistributedInvoice[] {\r\n const distributedInvoices = [];\r\n invoices.forEach((invoice) => {\r\n distributedInvoices.push(new DistributedInvoice(invoice));\r\n });\r\n return distributedInvoices;\r\n }\r\n\r\n public calculateTotalDistributions(invoices, type?: AccountType) {\r\n let total = 0;\r\n invoices.forEach((invoice: DistributedInvoice) => {\r\n if (type) {\r\n const distributions = invoice.getDistributionsByType(type);\r\n\r\n distributions.forEach((distribution) => {\r\n total += distribution.amount;\r\n });\r\n } else {\r\n total += invoice.amountDistributed;\r\n }\r\n });\r\n return total;\r\n }\r\n\r\n public calculatePersonIncome(personId: number, incomes): number {\r\n let income = 0;\r\n incomes.forEach((invoice: DistributedInvoice) => {\r\n const distributions = invoice.getPersonDistributions(personId);\r\n distributions.forEach((distribution) => {\r\n income += distribution.amount;\r\n });\r\n });\r\n return income;\r\n }\r\n\r\n public calculatePersonExpenses(personId: number, expenses): number {\r\n let total = 0;\r\n expenses\r\n .filter((expense: DistributedInvoice) => expense.invoice.isRecurring)\r\n .forEach((expense: DistributedInvoice) => {\r\n const distributions = functions.getPersonDistributions(personId, expense.distributions);\r\n distributions.forEach((distribution: Distribution) => {\r\n total += distribution.amount;\r\n });\r\n });\r\n return total;\r\n }\r\n\r\n public calculatePersonExtras(personId: number, expenses): number {\r\n let total = 0;\r\n expenses\r\n .filter((expense: DistributedInvoice) => !expense.invoice.isRecurring)\r\n .forEach((expense: DistributedInvoice) => {\r\n const distributions = functions.getPersonDistributions(personId, expense.distributions);\r\n distributions.forEach((distribution: Distribution) => {\r\n total += distribution.amount;\r\n });\r\n });\r\n return total;\r\n }\r\n\r\n public filterEmptyInvoices(invoices) {\r\n const distributedInvoices = [];\r\n invoices.forEach((invoice) => {\r\n const distributedInvoice = new DistributedInvoice(invoice);\r\n if (distributedInvoice.distributions.length > 0 && distributedInvoice.amountDistributed !== 0) {\r\n distributedInvoices.push(distributedInvoice);\r\n }\r\n });\r\n return distributedInvoices;\r\n }\r\n\r\n public filterEntityDistributions(invoices, entityId: number, type: AccountType) {\r\n return invoices.filter((invoice: DistributedInvoice) => {\r\n return invoice.hasDistributions(entityId, type);\r\n });\r\n }\r\n\r\n public setTotals(incomes, expenses, costs, result, previousBalance, currentBalanceAmount, transfers) {\r\n this.totalIncomes = `(${Vue.filter('number-format')(incomes)})`;\r\n this.totalExpenses = `(${Vue.filter('number-format')(expenses)})`;\r\n this.totalCosts = `(${Vue.filter('number-format')(costs)})`;\r\n this.totalTransfers = `(${Vue.filter('number-format')(transfers)})`;\r\n\r\n if (previousBalance && currentBalanceAmount) {\r\n this.totalResult = `(${Vue.filter('number-format')(result)})`;\r\n this.previousBalance = `(${Vue.filter('number-format')(previousBalance)})`;\r\n this.currentBalance = `(${Vue.filter('number-format')(currentBalanceAmount)})`;\r\n this.totalBudget = `(${Vue.filter('number-format')(currentBalanceAmount)})`;\r\n }\r\n }\r\n}\r\n","import FinanceBase from './FinanceBase';\r\nimport DistributedInvoice from './DistributedInvoice';\r\nimport { Distribution } from './Interfaces';\r\nimport Group from './Group';\r\nimport { transferService } from '@/main';\r\nimport Transfer from './Transfer';\r\nimport { InvoiceType } from './InvoiceType';\r\nimport Vue from 'vue';\r\nimport AccountFunds from './Finance/Api/AccountFunds';\r\nimport Range from './Finance/Api/Range';\r\nimport { AccountType } from './AccountType';\r\n\r\nexport default class FinanceGroup extends FinanceBase {\r\n public compensations: any[];\r\n public attributions: any[];\r\n public transfers: Transfer[];\r\n public account: any;\r\n public group: Group;\r\n public teamId: number;\r\n public totalCompensations: any;\r\n public avarageEnergyDedication: any = 'N/A';\r\n\r\n constructor(\r\n teamId = 0,\r\n group = {} as Group,\r\n invoices = [],\r\n expenses = [],\r\n transfers = [],\r\n compensations = [],\r\n attributions = [],\r\n currentBalance: Range = new Range(),\r\n ) {\r\n super(invoices, expenses);\r\n\r\n this.group = group;\r\n this.teamId = teamId;\r\n this.expenses = this.filterEmptyInvoices(expenses);\r\n this.transfers = transfers;\r\n this.compensations = compensations;\r\n this.attributions = attributions;\r\n this.currentBalanceAmount =\r\n currentBalance && currentBalance.items.length > 0 ? currentBalance.items[currentBalance.items.length - 1].item.balance : 0;\r\n const previousBalance =\r\n currentBalance && currentBalance.items.length > 1 ? currentBalance.items[currentBalance.items.length - 2].item.balance : 0;\r\n\r\n this.totalIncomesAmount = this.calculateGroupIncome();\r\n this.totalExpensesAmount = this.calculateTotalDistributions(this.expenses, AccountType.GroupSavings);\r\n this.totalExternalTransferAmount = this.calculateTotalTranfers(\r\n this.transfers.filter((transfer: Transfer) => {\r\n return transfer.transferType.toString() === 'GroupToGroup';\r\n }),\r\n );\r\n this.calculateCosts();\r\n this.calculateResults();\r\n this.calculateCompensations();\r\n\r\n this.setTotals(\r\n this.totalIncomesAmount,\r\n this.totalExpensesAmount,\r\n this.totalCostAmount,\r\n this.totalResultAmount,\r\n previousBalance,\r\n this.currentBalanceAmount,\r\n this.totalExternalTransferAmount,\r\n );\r\n }\r\n\r\n public calculateCosts() {\r\n this.totalCostAmount = this.calculateGroupCosts();\r\n this.totalCosts = Vue.filter('number-format')(this.totalCostAmount);\r\n }\r\n\r\n public calculateResults() {\r\n this.totalResultAmount = this.totalIncomesAmount - this.totalCostAmount;\r\n this.totalResult = Vue.filter('number-format')(this.totalResultAmount);\r\n }\r\n\r\n public async recalculateTotals() {\r\n this.calculateCompensations();\r\n this.calculateCosts();\r\n this.calculateResults();\r\n }\r\n\r\n public setCompensations(compensations) {\r\n this.compensations = compensations;\r\n }\r\n\r\n public calculateGroupSavings() {\r\n let total = 0;\r\n this.invoices.forEach((invoice: DistributedInvoice) => {\r\n invoice.getGroupSavings(this.group.groupId).forEach((distribution: Distribution) => {\r\n total += distribution.amount;\r\n });\r\n });\r\n return total;\r\n }\r\n\r\n public calculateCompensations() {\r\n let compensations = 0;\r\n this.compensations.forEach((compensation: any) => {\r\n compensations += compensation.compensation;\r\n compensations += compensation.invoiceIncome;\r\n });\r\n\r\n this.totalCompensations = Vue.filter('number-format')(compensations);\r\n\r\n return compensations;\r\n }\r\n\r\n public calculateGroupIncome() {\r\n let attributions = 0;\r\n let totalAttributedDistributions = 0;\r\n let totalNonAttributedDistributions = 0;\r\n let totalAttributions = 0;\r\n\r\n this.attributions.forEach((attribution: any) => {\r\n attributions += attribution.percentage;\r\n });\r\n\r\n totalAttributedDistributions = this.calculateTotalDistributions(\r\n this.invoices.filter((distributedInvoice: DistributedInvoice) => {\r\n return distributedInvoice.invoice.invoiceType !== InvoiceType.InternalIncome;\r\n }),\r\n );\r\n\r\n totalNonAttributedDistributions = this.calculateTotalDistributions(\r\n this.invoices.filter((distributedInvoice: DistributedInvoice) => {\r\n return distributedInvoice.invoice.invoiceType === InvoiceType.InternalIncome;\r\n }),\r\n );\r\n\r\n totalAttributions = (totalAttributedDistributions * attributions) / 100;\r\n\r\n // client income (-group attributions) + group savings\r\n return totalAttributedDistributions + totalNonAttributedDistributions - totalAttributions;\r\n }\r\n\r\n public calculateGroupCosts() {\r\n // compensations - expenses\r\n return (\r\n this.calculateCompensations() +\r\n this.calculateTotalDistributions(this.expenses, AccountType.GroupSavings) +\r\n this.totalExternalTransferAmount\r\n );\r\n }\r\n\r\n public calculateTotalTranfers(transfers: Transfer[]) {\r\n let transferTotal = 0;\r\n\r\n transfers.forEach((transfer: any) => {\r\n transferTotal += transfer.amount;\r\n });\r\n return transferTotal;\r\n }\r\n\r\n public async reloadTransfers(team, groupKey, period) {\r\n return await transferService.getTransfers(team, groupKey, null, period);\r\n }\r\n}\r\n","import FinanceBase from './FinanceBase';\r\nimport Compensation from './Compensation';\r\nimport DistributedInvoice from './DistributedInvoice';\r\nimport Transfer from './Transfer';\r\nimport { Distribution } from './Interfaces';\r\nimport { AccountType } from './AccountType';\r\nimport { teamHelper } from '@/main';\r\nimport Vue from 'vue';\r\nimport Range from './Finance/Api/Range';\r\nimport AccountFunds from './Finance/Api/AccountFunds';\r\n\r\nexport default class FinanceMe extends FinanceBase {\r\n public transfers: any;\r\n public personTransfers: any;\r\n public groups: any;\r\n public memberName: string;\r\n public personId: number;\r\n public compensations: any;\r\n public previousInvoices: any;\r\n public previousExpenses: any;\r\n public previousExtras: any;\r\n public totalPreviousIncomes: string;\r\n public totalPreviousExpenses: string;\r\n public totalPreviousExtras: string;\r\n public totalPreviousExternalTransfers: string;\r\n public totalPreviousResult: string;\r\n public totalPreviousBudget: string;\r\n\r\n constructor(\r\n personId: number,\r\n invoices,\r\n previousInvoices,\r\n expenses,\r\n previousExpenses,\r\n balance: Range,\r\n externalTransfers,\r\n prevExternalTransfers,\r\n ) {\r\n super(invoices, expenses);\r\n\r\n this.personId = personId;\r\n this.invoices = this.filterEmptyInvoices(invoices);\r\n this.expenses = this.filterEmptyInvoices(expenses);\r\n this.personTransfers = externalTransfers;\r\n\r\n const recurringExpenses = this.expenses.filter((invoice) => {\r\n return invoice.invoice.isRecurring;\r\n });\r\n this.extras = this.expenses.filter((invoice) => {\r\n return !invoice.invoice.isRecurring;\r\n });\r\n this.expenses = recurringExpenses;\r\n\r\n this.previousInvoices = this.filterEmptyInvoices(previousInvoices);\r\n this.previousExpenses = this.filterEmptyInvoices(previousExpenses);\r\n\r\n const previousRecurringExpenses = this.previousExpenses.filter((invoice) => {\r\n return invoice.invoice.isRecurring;\r\n });\r\n this.previousExtras = this.previousExpenses.filter((invoice) => {\r\n return !invoice.invoice.isRecurring;\r\n });\r\n this.previousExpenses = previousRecurringExpenses;\r\n\r\n const totalIncomes = this.calculatePersonIncome(this.personId, this.invoices);\r\n const totalPreviousIncomes = this.calculatePersonIncome(this.personId, this.previousInvoices);\r\n const totalExpenses = this.calculatePersonExpenses(this.personId, this.expenses);\r\n const totalPreviousExpenses = this.calculatePersonExpenses(this.personId, this.previousExpenses);\r\n const totalExtras = this.calculatePersonExtras(this.personId, this.extras);\r\n const totalPreviousExtras = this.calculatePersonExtras(this.personId, this.previousExtras);\r\n const totalTransfers = this.calculateExternalTransferAmount(externalTransfers);\r\n const totalPrevTransfers = this.calculateExternalTransferAmount(prevExternalTransfers);\r\n\r\n this.setMeFinanceTotals(\r\n totalIncomes,\r\n totalPreviousIncomes,\r\n totalExpenses,\r\n totalPreviousExpenses,\r\n balance,\r\n totalExtras,\r\n totalPreviousExtras,\r\n totalTransfers,\r\n totalPrevTransfers,\r\n );\r\n }\r\n\r\n public loadCompensations(groups, transfers) {\r\n const compensations = [];\r\n this.invoices.forEach((invoice: DistributedInvoice) => {\r\n if (!invoice.invoice.group) {\r\n const transfer = transfers.find((t: Transfer) => {\r\n return t.invoice === invoice.invoice.invoiceId;\r\n });\r\n if (transfer) {\r\n invoice.invoice.group = transfer.group;\r\n }\r\n }\r\n });\r\n\r\n for (let i = 0; i < groups.length; i++) {\r\n const compensation = new Compensation();\r\n compensation.costs = this.calculatePersonExpenses(this.personId, this.expenses);\r\n compensation.group = groups[i];\r\n compensation.energyDedication = parseInt(groups[i].energyDedication);\r\n\r\n // select all group income invoices\r\n const groupInvoices = this.invoices.filter((invoice: DistributedInvoice) => {\r\n const groupIncomeAccount = invoice.distributions.find((distribution: Distribution) => {\r\n if (distribution.account) {\r\n return (\r\n distribution.account.relatedEntityId === groups[i].groupId && distribution.account.accountType === AccountType.GroupIncome\r\n );\r\n }\r\n });\r\n return invoice.invoice.group === groups[i].groupId || groupIncomeAccount;\r\n });\r\n\r\n groupInvoices.forEach((invoice) => {\r\n invoice.distributions.forEach((distribution: Distribution) => {\r\n compensation.amounts.push(distribution.amount);\r\n });\r\n });\r\n\r\n if ((compensation.amounts && compensation.amounts.length) || compensation.group.energyDedication > 0) {\r\n compensations.push(compensation);\r\n }\r\n }\r\n\r\n this.compensations = compensations;\r\n }\r\n\r\n public calculateExternalTransferAmount(transfers: any) {\r\n let amount = 0;\r\n const team = teamHelper.currentTeamId;\r\n const teamId = teamHelper.getTeamId(team);\r\n\r\n transfers.forEach((transfer) => {\r\n if (transfer.senderTeam.teamId === teamId) {\r\n amount += -1 * transfer.amount;\r\n } else {\r\n amount += transfer.amount;\r\n }\r\n });\r\n\r\n return amount;\r\n }\r\n\r\n public setMeFinanceTotals(\r\n incomes,\r\n previousIncomes,\r\n expenses,\r\n previousExpenses,\r\n balance: Range,\r\n extras,\r\n previousExtras,\r\n transfers,\r\n prevTransfers,\r\n ) {\r\n this.totalIncomes = Vue.filter('number-format')(incomes);\r\n this.totalPreviousIncomes = Vue.filter('number-format')(previousIncomes);\r\n this.totalExpenses = Vue.filter('number-format')(expenses);\r\n this.totalPreviousExpenses = Vue.filter('number-format')(previousExpenses);\r\n this.totalExtras = Vue.filter('number-format')(extras);\r\n this.totalPreviousExtras = Vue.filter('number-format')(previousExtras);\r\n this.totalExternalTransfers = Vue.filter('number-format')(transfers);\r\n this.totalPreviousExternalTransfers = Vue.filter('number-format')(prevTransfers);\r\n\r\n if (balance) {\r\n let currentBalance = 0;\r\n let previousBalance = 0;\r\n if (balance.items.length === 1) {\r\n currentBalance = balance.items[balance.items.length - 1].item.balance;\r\n } else if (balance.items.length > 1) {\r\n currentBalance = balance.items[balance.items.length - 1].item.balance;\r\n previousBalance = balance.items[balance.items.length - 2].item.balance;\r\n }\r\n\r\n this.previousBalance = Vue.filter('number-format')(previousBalance);\r\n this.currentBalance = Vue.filter('number-format')(currentBalance);\r\n this.totalResult = Vue.filter('number-format')(currentBalance - previousBalance);\r\n this.totalPreviousResult = Vue.filter('number-format')(previousIncomes - previousExpenses - previousExtras);\r\n this.totalBudget = Vue.filter('number-format')(currentBalance);\r\n this.totalPreviousBudget = Vue.filter('number-format')(previousBalance);\r\n }\r\n }\r\n}\r\n","import { Person } from './Person';\r\nimport FinanceMe from './FinanceMe';\r\nimport FinanceGroup from './FinanceGroup';\r\nimport FinanceBase from './FinanceBase';\r\nimport { AccountType } from './AccountType';\r\nimport { teamHelper } from '@/main';\r\nimport { Member } from './Member';\r\n\r\nexport default class FinanceTeam extends FinanceBase {\r\n public members: any = [];\r\n public groups: any = [];\r\n public memberOverview: any = [];\r\n public groupOverview: any = [];\r\n public energyDedications: any;\r\n\r\n constructor(invoices, expenses, members, groups, energyDedications) {\r\n super(invoices, expenses);\r\n\r\n this.invoices = this.filterEmptyInvoices(invoices);\r\n this.expenses = this.filterEmptyInvoices(expenses);\r\n this.memberOverview = [];\r\n this.energyDedications = energyDedications;\r\n\r\n this._prepareMembers(members);\r\n this._prepareGroups(groups);\r\n }\r\n\r\n public _prepareMembers(members) {\r\n this.members = [];\r\n members.forEach((memberData) => {\r\n const member = new Member(memberData);\r\n const memberInvoices = this.filterEntityDistributions(this.invoices, member.memberId, AccountType.Person);\r\n const memberExpenses = this.filterEntityDistributions(this.expenses, member.memberId, AccountType.Person);\r\n\r\n const memberFinance = new FinanceMe(member.memberId, memberInvoices, [], memberExpenses, [], memberData.balance, null, null);\r\n memberFinance.memberName = member.getFullName();\r\n\r\n this.members.push(member);\r\n this.memberOverview.push(memberFinance);\r\n });\r\n }\r\n\r\n public _prepareGroups(groups) {\r\n this.groups = groups;\r\n groups.forEach((group: any) => {\r\n const groupInvoices = this.invoices.filter((invoice) => {\r\n return invoice.invoice.group === group.groupId;\r\n });\r\n\r\n const groupExpenses = this.expenses.filter((invoice) => {\r\n return invoice.invoice.group === group.groupId;\r\n });\r\n\r\n const finance = new FinanceGroup(teamHelper.getTeamId(), group, groupInvoices, groupExpenses, [], [], [], group.balance);\r\n finance.group = group;\r\n this.groupOverview.push(finance);\r\n });\r\n }\r\n\r\n public _getGroupMembersOfGroup(groupId) {\r\n this.members.filter((member: Person) => {\r\n const exists = member.groupMemberships.find((group) => {\r\n return group.id === groupId;\r\n });\r\n\r\n if (exists) {\r\n return member;\r\n }\r\n });\r\n }\r\n}\r\n","import { FinanceTotalInterface, FinanceAccount } from './Interfaces';\r\nimport Group from './Group';\r\nimport { financeService, meService, financeAccountService, groupHelper, memberHelper, compensationService, teamHelper, transferService } from '@/main';\r\nimport { InvoiceType } from './InvoiceType';\r\nimport FinanceMe from './FinanceMe';\r\nimport FinanceGroup from './FinanceGroup';\r\nimport FinanceTeam from './FinanceTeam';\r\nimport { AccountType } from './AccountType';\r\nimport { Member } from './Member';\r\nimport { periodModule } from '@/store/modules/period';\r\n\r\nexport default class FinanceTotal implements FinanceTotalInterface {\r\n public team: string;\r\n public teamId: number;\r\n\r\n constructor(team: number) {\r\n this.teamId = team;\r\n this.team = teamHelper.getTeam(team).key;\r\n }\r\n\r\n public async getMeFinance(personId: number, accountId: number, period: string, previousPeriod: string) {\r\n let expenses: any;\r\n let previousExpenses: any;\r\n let invoices: any;\r\n let previousInvoices: any;\r\n let transfers: any;\r\n let personTransfers: any;\r\n let personPrevTransfers: any;\r\n let groups: any;\r\n let energyDedications: any;\r\n let finance: any;\r\n\r\n groups = await groupHelper.getGroups();\r\n\r\n const [\r\n expensesResult,\r\n previousExpensesResult,\r\n invoicesResult,\r\n previousInvoiceResult,\r\n transfersResult,\r\n personTransfersResult,\r\n personPrevTransfersResult,\r\n energyResult,\r\n balance,\r\n ] = await Promise.all([\r\n financeService.getInvoices(this.teamId, null, InvoiceType.Expenses, personId, period),\r\n financeService.getInvoices(this.teamId, null, InvoiceType.Expenses, personId, previousPeriod),\r\n financeService.getInvoices(this.teamId, null, InvoiceType.Income, personId, period),\r\n financeService.getInvoices(this.teamId, null, InvoiceType.Income, personId, previousPeriod),\r\n transferService.getTransfers(this.teamId, null, personId, period),\r\n transferService.getCrossTeamPersonTransfers(this.teamId, period, personId),\r\n transferService.getCrossTeamPersonTransfers(this.teamId, previousPeriod, personId),\r\n meService.getEnergyDedications(this.teamId, period),\r\n financeAccountService.getBalance(accountId, period, this.teamId, AccountType.Person, previousPeriod),\r\n ]);\r\n\r\n expenses = expensesResult;\r\n previousExpenses = previousExpensesResult;\r\n invoices = invoicesResult;\r\n previousInvoices = previousInvoiceResult;\r\n transfers = transfersResult;\r\n energyDedications = energyResult.data;\r\n personTransfers = personTransfersResult;\r\n personPrevTransfers = personPrevTransfersResult;\r\n\r\n groups.forEach((group: Group) => {\r\n const energy = energyDedications.find((item) => {\r\n return item.groupKey.toLowerCase() === group.groupKey;\r\n });\r\n group.energyDedication = energy ? energy.amount : 0;\r\n });\r\n\r\n finance = new FinanceMe(personId, invoices, previousInvoices, expenses, previousExpenses, balance, personTransfers, personPrevTransfers);\r\n finance.loadCompensations(groups, transfers);\r\n finance.transfers = transfers;\r\n\r\n return finance;\r\n }\r\n\r\n public async getGroupFinance(group: Group, period: string) {\r\n let transfers: any;\r\n let compensations: any;\r\n let financeAccount: any;\r\n let finance: any;\r\n\r\n financeAccount = group.account;\r\n\r\n const [transfersResult, compensationsResult] = await Promise.all([\r\n transferService.getTransfers(this.teamId, group.groupId, null, period),\r\n compensationService.getCompensations(this.teamId, group.groupId, periodModule.selectedPeriod),\r\n ]);\r\n\r\n transfers = transfersResult;\r\n compensations = compensationsResult.data;\r\n\r\n finance = new FinanceGroup(this.teamId, group, [], [], transfers, compensations.memberCompensations, [], null);\r\n finance.account = financeAccount;\r\n return finance;\r\n }\r\n\r\n public async getTeamFinance(period) {\r\n let expenses: any;\r\n const invoices: any = [];\r\n let members: any;\r\n let energyDedications: any;\r\n let groups: any;\r\n let finance: any;\r\n\r\n expenses = await financeService.getInvoices(this.teamId, null, InvoiceType.Expenses, null, period);\r\n groups = await groupHelper.getGroups();\r\n members = await memberHelper.getMembers();\r\n energyDedications = []; // (await teamService.getEnergyDedication(this.team)).data;\r\n\r\n const groupsSavingsAccountIds = (await financeAccountService.getAccounts(AccountType.GroupSavings, this.teamId, periodModule.selectedPeriod))\r\n .data;\r\n groups.map((item: Group) => {\r\n return (item.account = groupsSavingsAccountIds.filter((account) => {\r\n return account.relatedEntityId === item.groupId;\r\n })[0] as FinanceAccount);\r\n });\r\n\r\n const groupsIcomeAccountIds = (await financeAccountService.getAccounts(AccountType.GroupIncome, this.teamId, periodModule.selectedPeriod))\r\n .data;\r\n groups.map((item: Group) => {\r\n return (item.accountIncome = groupsIcomeAccountIds.filter((account) => {\r\n return account.relatedEntityId === item.groupId;\r\n })[0] as FinanceAccount);\r\n });\r\n\r\n const memberAccountIds = (await financeAccountService.getAccounts(AccountType.Person, this.teamId, periodModule.selectedPeriod)).data;\r\n members.map((item: Member) => {\r\n return (item.account = memberAccountIds.find((account) => {\r\n return account.relatedEntityId === item.memberId;\r\n }) as FinanceAccount);\r\n });\r\n\r\n for (let i = 0; i < groups.length; i++) {\r\n if (groups[i].account && groups[i].account.accountId) {\r\n groups[i].balance = await financeAccountService.getBalance(\r\n groups[i].account.accountId,\r\n period,\r\n this.teamId,\r\n groups[i].account.AccountType,\r\n );\r\n }\r\n }\r\n\r\n for (let i = 0; i < members.length; i++) {\r\n if (members[i].account && members[i].account.accountId) {\r\n members[i].balance = await financeAccountService.getBalance(\r\n members[i].account.accountId,\r\n period,\r\n this.teamId,\r\n members[i].account.AccountType,\r\n );\r\n }\r\n }\r\n\r\n finance = new FinanceTeam(invoices, expenses, members, groups, energyDedications);\r\n // finance.transfers = transfers;\r\n return finance;\r\n }\r\n}\r\n","import RangeItem from './RangeItem';\r\n\r\nexport default class Range {\r\n public items: RangeItem[] = [];\r\n\r\n constructor(obj?: Partial>) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n","import GroupResultItem from './GroupResultItem';\r\nimport MemberResultItem from './MemberResultItem';\r\n\r\nexport default class TeamResultItem {\r\n public groupResults: GroupResultItem[] = [];\r\n public memberResults: MemberResultItem[] = [];\r\n\r\n public openExpenseAmount: number = 0;\r\n public openInvoiceAmount: number = 0;\r\n public teamKey: string = '';\r\n public teamId: number = 0;\r\n public teamName: string = '';\r\n public dropDeadRatio: number = 0;\r\n public name: string;\r\n public expenses: number = 0;\r\n public extras: number = 0;\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n","import TeamResultItem from './TeamResultItem';\r\n\r\nexport default class TeamResults {\r\n public balance: number = 0;\r\n public result: number = 0;\r\n public extras: number = 0;\r\n public expenses: number = 0;\r\n public externalRevenue: number = 0;\r\n\r\n public teamResults: TeamResultItem[] = [];\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n\r\n this.teamResults = [];\r\n\r\n for (const result of obj.teamResults) {\r\n this.teamResults.push(new TeamResultItem(result));\r\n }\r\n }\r\n }\r\n}\r\n","export default class AttributionPercentages {\r\n public groupAttributionsPercentage: number = null;\r\n public groupRemittancePercentage: number = null;\r\n public teamAttributionsPercentage: number = null;\r\n public groupId: number = null;\r\n\r\n /**\r\n * Constructor with initial values\r\n */\r\n constructor(teamAttributionsPercentage?: number, groupRemittancePercentage?: number, groupAttributionsPercentage?: number) {\r\n if (groupAttributionsPercentage) {\r\n this.groupAttributionsPercentage = groupAttributionsPercentage;\r\n }\r\n if (teamAttributionsPercentage) {\r\n this.teamAttributionsPercentage = teamAttributionsPercentage;\r\n }\r\n if (groupRemittancePercentage) {\r\n this.groupRemittancePercentage = groupRemittancePercentage;\r\n }\r\n }\r\n\r\n public hasValues() {\r\n return this.groupAttributionsPercentage !== null || this.groupRemittancePercentage !== null || this.teamAttributionsPercentage !== null;\r\n }\r\n}\r\n","export default class Ledger {\r\n public ledgerId: number = null;\r\n public name: string = '';\r\n public value: string = '';\r\n public description: string = '';\r\n}\r\n","import Group from '../Group';\r\nimport Team from '../Team';\r\nimport Ledger from './Ledger';\r\n\r\nexport class IntellectualPropertyLimitation {\r\n public intellectualPropertyLimitationId: number = null;\r\n public name: string = '';\r\n}\r\n\r\n// tslint:disable max-classes-per-file\r\nexport class RelationSettings {\r\n public current: boolean = false;\r\n public intellectualPropertyLimitation: any = new IntellectualPropertyLimitation();\r\n public salesLedger: Ledger = new Ledger();\r\n public purchaseLedger: Ledger = new Ledger();\r\n public taxRateId: string = null;\r\n\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n\r\n// tslint:disable max-classes-per-file\r\nexport default class Relation {\r\n public relationId: number = null;\r\n\r\n public originLegalEntityReference: string = null;\r\n public originTeam: Team;\r\n public originGroup: Group;\r\n\r\n public destinationLegalEntityReference: string = null;\r\n public destinationTeam: Team;\r\n public destinationGroup: Group;\r\n\r\n public intellectualPropertyLimitation: number;\r\n public salesLedger: number;\r\n public purchaseLedger: number;\r\n\r\n public relationSettings: RelationSettings[] = [];\r\n\r\n /**\r\n *\r\n */\r\n constructor(obj?: Partial) {\r\n if (obj) {\r\n Object.assign(this, obj);\r\n }\r\n }\r\n}\r\n\r\nexport class TaxRate {\r\n public taxRateId: string = null;\r\n public description: string = '';\r\n}","import Attribution from '../Attribution';\r\nimport { PrivacyLevel } from '../PrivacyLevel';\r\n\r\nexport default class Template {\r\n public financeGroupTemplateId: number = 0;\r\n\r\n public teamId: number = 0;\r\n public name: string = '';\r\n public description: string = '';\r\n public applyMissingAttributionsOnTransfer: boolean = true;\r\n public autoDistributeIncomeToSavings: boolean = true;\r\n public autoDistributeExpensesToSavings: boolean = true;\r\n public autoCompensateGroupMembers: boolean = true;\r\n public privacyLevel: PrivacyLevel = PrivacyLevel.Unknown;\r\n public attributions: Attribution[] = [];\r\n\r\n constructor(obj?: Partial