{"version":3,"sources":["webpack:///./src/views/Components/User2/AddUser/Index.vue","webpack:///src/views/Components/User2/AddUser/Index.vue","webpack:///./src/views/Components/User2/AddUser/Index.vue?e8a7","webpack:///./src/views/Components/User2/AddUser/Index.vue?44a3","webpack:///./src/views/Components/User2/AddUser/Role.vue?ba91","webpack:///./src/views/Components/User2/AddUser/Role.vue","webpack:///./src/constants/rolesConstants.js","webpack:///src/views/Components/User2/AddUser/Role.vue","webpack:///./src/views/Components/User2/AddUser/Role.vue?a1c0","webpack:///./src/views/Components/User2/AddUser/Role.vue?7d84"],"names":["render","_vm","this","_c","_self","directives","name","rawName","value","showUserSttings","expression","staticClass","_v","_s","getAddUserTitle","attrs","model","innerName","callback","$$v","innerEmail","innerBcc","availableRoles","roles","innerRoles","isAdmin","on","_e","handleCancel","validationErrors","handleSubmit","staticRenderFns","components","Role","props","email","bcc","addUserTitle","type","String","required","default","isEdit","Boolean","created","$devLog","computed","_this$innerName","_this$innerEmail","trim","validateEmail","methods","_this$innerEmail2","$emit","event","stopPropagation","re","test","data","component","_l","filteredCategories","category","key","label","formattedRoles","ROLES","VIEW_PAYMENT_PLANS","VIEW_MEMBERSHIPS","MANAGE_SETTINGS","VIEW_PAYMENT_REQUESTS","VIEW_DASHBOARDCHART","SORT_IDS","TRANSACTIONS","PAYMENTS","PAYMENT_PLANS","MEMBERSHIPS","PAYMENT_REQUESTS","REIMBURSEMENTS","ADMINISTRATION","DASHBOARD","CATEGORIES","sortIds","conditionalRoles","_defineProperty","showIf","some","role","includes","sortId","Array","innerAvailableRoles","categories","filter","map","text","description","_objectSpread","disabled","emit","watch"],"mappings":"+KAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAIQ,kBAAmBC,WAAW,uBAAuB,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ACA,IAAAoB,EAAApB,EAAAoB,QAGA,YAAAS,oBACAE,QAAA,SAAAN,GAAA,OAAAL,EAAAM,SAAAD,EAAAE,WACAK,KAAA,SAAAP,GAAA,OAAAU,IAAA,GACAV,GAAA,IACAW,UAAA,QAGAC,KAAA,WACA,KAAA9C,MAAA,oBAAA7B,cAGA4E,MAAA,CACA5E,WAAA,WACA,KAAA2E,UC1E0X,I,wBCQtXxC,EAAY,eACd,EACA3D,EACA+B,GACA,EACA,KACA,KACA,MAIa,aAAA4B,E","file":"js/Components-User2-AddUser-Index-vue.1012bafd.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-row',[_c('b-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showUserSttings()),expression:\"showUserSttings()\"}]},[_c('div',{staticClass:\"card shadow-sm border card-body mb-0 d-flex h-100 user-profile\"},[_c('h2',{staticClass:\"pb-4\"},[_vm._v(_vm._s(_vm.getAddUserTitle))]),_c('base-input',{attrs:{\"name\":\"Name\",\"mode\":\"lazy\",\"rules\":\"required\",\"label\":\"Name\"},model:{value:(_vm.innerName),callback:function ($$v) {_vm.innerName=$$v},expression:\"innerName\"}}),_c('base-input',{attrs:{\"name\":\"E-Mail Address\",\"mode\":\"lazy\",\"rules\":\"required|email\",\"label\":\"Email Address\"},model:{value:(_vm.innerEmail),callback:function ($$v) {_vm.innerEmail=$$v},expression:\"innerEmail\"}}),_c('b-form-checkbox',{staticClass:\"mt-3 d-flex align-items-start\",attrs:{\"name\":\"check-button\"},model:{value:(_vm.innerBcc),callback:function ($$v) {_vm.innerBcc=$$v},expression:\"innerBcc\"}},[_c('div',[_c('span',{staticClass:\"h5\"},[_vm._v(\"Email Notifications\")]),_c('p',{staticClass:\"small text-gray mb-0\"},[_vm._v(\"\\n User will be copied on all notifications and receipts.\\n \")])])])],1)]),_c('b-col',[_c('div',{staticClass:\"card shadow-sm border card-body mb-0\"},[_c('h2',{staticClass:\"pb-4\"},[_vm._v(\"Permissions\")]),(_vm.availableRoles && _vm.roles)?_c('Role',{attrs:{\"availableRoles\":_vm.availableRoles,\"roles\":_vm.innerRoles,\"isAdmin\":_vm.isAdmin},on:{\"rolesUpdated\":(roles) => { _vm.innerRoles = roles; }}}):_vm._e()],1)])],1),_c('b-row',{staticClass:\"mt-4\"},[_c('b-col',{staticClass:\"d-flex justify-content-end\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"secondary\"},on:{\"click\":_vm.handleCancel}},[_vm._v(\"Cancel\")]),_c('b-button',{attrs:{\"variant\":\"primary\",\"disabled\":_vm.validationErrors},on:{\"click\":_vm.handleSubmit}},[_vm._v(\"Save\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n {{ getAddUserTitle }}\n \n \n \n \n Email Notifications\n \n User will be copied on all notifications and receipts.\n \n \n \n \n \n\n \n \n Permissions\n { innerRoles = roles; }\"\n :isAdmin=\"isAdmin\" v-if=\"availableRoles && roles\" />\n \n \n \n\n \n \n \n Cancel\n Save\n \n \n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=c3778db8\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Role.vue?vue&type=style&index=0&id=930691cc&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"perms\"},_vm._l((_vm.filteredCategories),function(category){return _c('div',{key:category.name,staticClass:\"mb-5\"},[_c('div',{staticClass:\"mb-3\"},[_c('b',[_vm._v(_vm._s(category.label))])]),_c('b-form-checkbox-group',{staticClass:\"perms-switch\",attrs:{\"options\":_vm.formattedRoles(category),\"stacked\":\"\",\"switches\":\"\",\"name\":\"options\"},model:{value:(_vm.innerRoles),callback:function ($$v) {_vm.innerRoles=$$v},expression:\"innerRoles\"}})],1)}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const ROLES = {\n VIEW_PAYMENT_PLANS: \"VIEWPAYMENTPLANS\",\n VIEW_MEMBERSHIPS: \"VIEWMEMBERSHIPS\",\n MANAGE_SETTINGS: \"MANAGESETTINGS\",\n VIEW_PAYMENT_REQUESTS: \"VIEWPAYMENTREQUESTS\",\n VIEW_DASHBOARDCHART: \"VIEWDASHBOARDCHART\"\n};\n\nexport const SORT_IDS = {\n TRANSACTIONS: 14,\n PAYMENTS: [2, 3],\n PAYMENT_PLANS: [4, 5, 6],\n MEMBERSHIPS: [7, 8, 9, 10],\n PAYMENT_REQUESTS: [11, 12, 13],\n REIMBURSEMENTS: [20, 21],\n ADMINISTRATION: [15, 16, 17],\n DASHBOARD: [0, 22]\n};\n\nexport const CATEGORIES = [\n {\n name: \"dashboard\",\n label: \"Dashboard\",\n sortIds: SORT_IDS.DASHBOARD,\n conditionalRoles: { [SORT_IDS.DASHBOARD[1]] : ROLES.VIEW_DASHBOARDCHART },\n },\n {\n name: \"transactions\",\n label: \"Transactions\",\n sortIds: [SORT_IDS.TRANSACTIONS],\n },\n { name: \"payments\", label: \"Payments\", sortIds: SORT_IDS.PAYMENTS },\n {\n name: \"paymentPlans\",\n label: \"Payment Plans\",\n sortIds: SORT_IDS.PAYMENT_PLANS,\n conditionalRoles: { [SORT_IDS.PAYMENT_PLANS[2]]: ROLES.VIEW_PAYMENT_PLANS },\n },\n {\n name: \"memberships\",\n label: \"Memberships\",\n sortIds: SORT_IDS.MEMBERSHIPS,\n conditionalRoles: { [SORT_IDS.MEMBERSHIPS[2]]: ROLES.VIEW_MEMBERSHIPS },\n },\n {\n name: \"paymentRequests\",\n label: \"Payment Requests\",\n sortIds: SORT_IDS.PAYMENT_REQUESTS,\n conditionalRoles: {\n [SORT_IDS.PAYMENT_REQUESTS[2]]: ROLES.VIEW_PAYMENT_REQUESTS,\n },\n },\n {\n name: \"reimbursements\",\n label: \"Reimbursements\",\n sortIds: SORT_IDS.REIMBURSEMENTS,\n showIf: (isAdmin, roles) =>\n isAdmin || roles.some((role) => SORT_IDS.REIMBURSEMENTS.includes(role.sortId)),\n },\n {\n name: \"administration\",\n label: \"Administration\",\n sortIds: SORT_IDS.ADMINISTRATION,\n conditionalRoles: { [SORT_IDS.ADMINISTRATION[1]]: ROLES.MANAGE_SETTINGS },\n },\n];\n","\n \n \n \n {{ category.label }}\n \n \n \n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Role.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Role.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Role.vue?vue&type=template&id=930691cc\"\nimport script from \"./Role.vue?vue&type=script&lang=js\"\nexport * from \"./Role.vue?vue&type=script&lang=js\"\nimport style0 from \"./Role.vue?vue&type=style&index=0&id=930691cc&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\n User will be copied on all notifications and receipts.\n