{"version":3,"sources":["webpack:///./node_modules/quasar/src/components/form/QForm.js","webpack:///./src/views/Settings/roles-modify.vue","webpack:///./src/components/contents/SettingsLinks/roles-modify.vue","webpack:///./src/components/contents/SettingsLinks/roles-modify.vue?6c5f","webpack:///./src/views/Settings/roles-modify.vue?8abd","webpack:///./src/components/base/AppTextarea/Textarea.vue","webpack:///./src/components/base/AppTextarea/Textarea.vue?a3c9","webpack:///./src/services/teams.http.js","webpack:///./src/components/reusables/titleHead.vue?61fc","webpack:///./src/helpers/permissions.js","webpack:///./src/components/base/AppInput/Input.vue","webpack:///./node_modules/quasar/src/components/popup-proxy/QPopupProxy.js","webpack:///./src/components/base/AppInput/Input.vue?1d4f","webpack:///./src/components/reusables/RoleCategory.vue","webpack:///./src/components/reusables/RoleCategory.vue?b54d","webpack:///./src/components/contents/SettingsLinks/roles-modify.vue?970d","webpack:///./src/components/reusables/titleHead.vue","webpack:///./src/components/reusables/titleHead.vue?2d26","webpack:///./src/helpers/utils.js","webpack:///./src/components/reusables/RoleCategory.vue?4b13","webpack:///./src/services/permissions.http.js"],"names":["defineComponent","name","props","autofocus","Boolean","noErrorFocus","noResetFocus","greedy","onSubmit","Function","emits","setup","slots","emit","vm","getCurrentInstance","rootRef","ref","validateIndex","registeredComponents","validate","shouldFocus","promises","focus","emitEvent","res","i","length","comp","valid","then","push","error","Promise","resolve","index","all","errors","filter","r","resetValidation","forEach","submit","evt","stopAndPrevent","val","target","reset","nextTick","addFocusFn","value","querySelector","Array","prototype","find","call","querySelectorAll","el","tabIndex","provide","formKey","bindComponent","vmProxy","unbindComponent","indexOf","splice","onMounted","Object","assign","proxy","getValidationComponents","h","class","onReset","hSlot","default","_createElementBlock","_createVNode","_component_SettingsLinks","id","align","_hoisted_1","$data","loading","_createBlock","_component_q_btn","onClick","_cache","$event","$router","back","no-caps","textColor","flat","_createElementVNode","src","alt","_hoisted_2","_component_q_spinner","size","color","_component_q_form","$options","_component_TitleHeader","title","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_component_AppInput","roleName","label","placelabel","rules","_ctx","required","_hoisted_7","_component_AppTextarea","roleDescription","_hoisted_8","_hoisted_9","_hoisted_10","_component_RoleCategory","category","all-active-permissions","rolePermission","editable","allPermissions","permissions","_hoisted_11","allActivePermissions","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_component_AppButton","isSubmitting","type","width","components","TitleHeader","AppInput","AppTextarea","AppButton","RoleCategory","mixins","authRulesMixin","data","role","PERMISSIONS_FORMAT","computed","business","this","$store","getters","methods","response","teamService","fetchPermissions","fetchRole","$route","params","featureLists","permissionIds","map","item","updateRole","businessId","description","showMessage","message","err","window","scrollTo","cleanTitle","str","snakeCaseToTitle","init","created","TeamService","$api1","$api2","__exports__","QBtn","QSpinner","QForm","SettingsLinks","render","_toDisplayString","$props","_component_q_input","_mergeProps","placeholder","outlined","input-class","$attrs","String","Number","content","handleInput","event","$emit","inputListeners","$listeners","input","QInput","eams","constructor","api","api2","http","http2","defaults","headers","common","localStorage","getItem","get","fetchRoles","roleId","storeRole","payload","post","put","deleteRole","delete","fetchTeamMembers","fetchTeamMember","memberId","storeTeamMember","updateTeamMember","deleteMember","PERMISSION_GROUPS","TRANSACTION_MANAGEMENT","CUSTOMER_MANAGEMENT","ORDER_MANAGEMENT","GENERAL_SETTINGS","ROLES","VIEW_WALLET","VIEW_TRANSACTION","UPDATE_BUSINESS_DETAILS","VIEW_PERFORMANCE_METRICS","VIEW_PENDING_BALANCE","VIEW_OVERVIEW","VIEW_CONNECTED_ACCOUNTS","VIEW_ORDERS","VIEW_CUSTOMERS","VIEW_PAYMENT_LINKS","VIEW_BUSINESS_DETAILS","VIEW_API_KEYS_AND_WEBHOOKS","VIEW_INVITED_USERS","MAKE_CARD_FUNDING","EXPORT_TRANSACTION","UPDATE_BLACKLIST","MAKE_BLACKLIST","MAKE_REFUND","UPDATE_REFUND","EXPORT_ORDERS","EXPORT_CUSTOMERS","ACTIVATE_PAYMENT_LINKS","DEACTIVATE_PAYMENT_LINKS","UPDATE_MERCHANT_TAG","ADD_BUSINESS_ADDRESS","DELETE_BUSINESS_ADDRESS","ADMIN","UPDATE_API_KEYS_AND_WEBHOOKS","MAKE_WALLET_TRANSFER","MAKE_BANK_TRANSFER","SEND_USER_INVITES","UPDATE_INVITED_USERS","group","key","dependencies","requirements","disable","bg-color","backgroundColor","model-value","modelValue","_createSlots","_","phone","selectedCountry","icon","code","_component_q_menu","_Fragment","_renderList","countries","country","_component_q_list","style","_component_q_item","clickable","prepend","_renderSlot","$slots","appendAction","verifyCode","password","showPassword","_normalizeClass","date","unelevated","ripple","_component_q_popup_proxy","cover","transition-show","transition-hide","_component_q_date","countryCode","autoSuggest","showSomething","useAnchorProps","breakpoint","attrs","$q","showing","popupRef","parseInt","canShow","useAnchor","getType","screen","height","onShow","onHide","watch","show","hide","toggle","def","popupProps","includes","maxHeight","component","QDialog","QMenu","contextMenu","noParentEvent","separateClosePopup","QList","QItem","QPopupProxy","QDate","ClosePopup","replace","permission","_component_q_checkbox","active","updatePermissions","inactivePermission","BEpermissions","categoryTitle","formatedBEPermissions","p","permissionName","groupKey","toUpperCase","permissionService","getFeatures","groups","preparePermissions","permissionKeys","keys","isAdmin","_this$formatedBEPermi","element","activePermissions","selectedPermission","roles","roleKey","alreadySelected","attachedPermission","getGroupsAndFeatures","PermissionService","QCheckbox","subtitle","groupBy","xs","reduce","rv","x","split","word","slice","toLowerCase","join","purposeCase","capitalizeFirstLetter","string","charAt","formatDate","_date","format","subtotal","items","total","quantity","price","calculateDiscount","discount_selected","discount","_subtotal","grandTotal","details","shipping_fee","vat","discountAmount","truncateLengthyText","text","maxLength","substring","Permissions","BASE_URL","process","VUE_APP_STAGING_BASE_URL","getPermissions","getRoles","createRole","getRole","getMembers","addMember","getMember","updateMember"],"mappings":"gNAOeA,oCAAgB,CAC7BC,KAAM,QAENC,MAAO,CACLC,UAAWC,QACXC,aAAcD,QACdE,aAAcF,QACdG,OAAQH,QAERI,SAAUC,UAGZC,M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ponent, ref, onMounted, getCurrentInstance, nextTick, provide } from 'vue'\n\nimport { stopAndPrevent } from '../../utils/event.js'\nimport { addFocusFn } from '../../utils/private/focus-manager.js'\nimport { hSlot } from '../../utils/private/render.js'\nimport { formKey } from '../../utils/private/symbols.js'\n\nexport default defineComponent({\n name: 'QForm',\n\n props: {\n autofocus: Boolean,\n noErrorFocus: Boolean,\n noResetFocus: Boolean,\n greedy: Boolean,\n\n onSubmit: Function\n },\n\n emits: [ 'reset', 'validation-success', 'validation-error' ],\n\n setup (props, { slots, emit }) {\n const vm = getCurrentInstance()\n const rootRef = ref(null)\n\n let validateIndex = 0\n const registeredComponents = []\n\n function validate (shouldFocus) {\n const promises = []\n const focus = typeof shouldFocus === 'boolean'\n ? shouldFocus\n : props.noErrorFocus !== true\n\n validateIndex++\n\n const emitEvent = (res, ref) => {\n emit('validation-' + (res === true ? 'success' : 'error'), ref)\n }\n\n for (let i = 0; i < registeredComponents.length; i++) {\n const comp = registeredComponents[ i ]\n const valid = comp.validate()\n\n if (typeof valid.then === 'function') {\n promises.push(\n valid.then(\n valid => ({ valid, comp }),\n error => ({ valid: false, comp, error })\n )\n )\n }\n else if (valid !== true) {\n if (props.greedy === false) {\n emitEvent(false, comp)\n\n if (focus === true && typeof comp.focus === 'function') {\n comp.focus()\n }\n\n return Promise.resolve(false)\n }\n\n promises.push({ valid: false, comp })\n }\n }\n\n if (promises.length === 0) {\n emitEvent(true)\n return Promise.resolve(true)\n }\n\n const index = validateIndex\n\n return Promise.all(promises).then(\n res => {\n if (index === validateIndex) {\n const errors = res.filter(r => r.valid !== true)\n\n if (errors.length === 0) {\n emitEvent(true)\n return true\n }\n\n const { valid, comp } = errors[ 0 ]\n\n emitEvent(false, comp)\n\n if (\n focus === true\n && valid !== true\n && typeof comp.focus === 'function'\n ) {\n comp.focus()\n }\n\n return false\n }\n }\n )\n }\n\n function resetValidation () {\n validateIndex++\n\n registeredComponents.forEach(comp => {\n typeof comp.resetValidation === 'function' && comp.resetValidation()\n })\n }\n\n function submit (evt) {\n evt !== void 0 && stopAndPrevent(evt)\n\n validate().then(val => {\n if (val === true) {\n if (props.onSubmit !== void 0) {\n emit('submit', evt)\n }\n else if (evt !== void 0 && evt.target !== void 0 && typeof evt.target.submit === 'function') {\n evt.target.submit()\n }\n }\n })\n }\n\n function reset (evt) {\n evt !== void 0 && stopAndPrevent(evt)\n\n emit('reset')\n\n nextTick(() => { // allow userland to reset values before\n resetValidation()\n if (props.autofocus === true && props.noResetFocus !== true) {\n focus()\n }\n })\n }\n\n function focus () {\n addFocusFn(() => {\n if (rootRef.value === null) { return }\n\n const target = rootRef.value.querySelector('[autofocus], [data-autofocus]')\n || Array.prototype.find.call(rootRef.value.querySelectorAll('[tabindex]'), el => el.tabIndex > -1)\n\n target !== null && target !== void 0 && target.focus()\n })\n }\n\n provide(formKey, {\n bindComponent (vmProxy) {\n registeredComponents.push(vmProxy)\n },\n\n unbindComponent (vmProxy) {\n const index = registeredComponents.indexOf(vmProxy)\n if (index > -1) {\n registeredComponents.splice(index, 1)\n }\n }\n })\n\n onMounted(() => {\n props.autofocus === true && focus()\n })\n\n // expose public methods\n Object.assign(vm.proxy, {\n validate,\n resetValidation,\n submit,\n reset,\n focus,\n getValidationComponents: () => registeredComponents\n })\n\n return () => h('form', {\n class: 'q-form',\n ref: rootRef,\n onSubmit: submit,\n onReset: reset\n }, hSlot(slots.default))\n }\n})\n","\n\n\n ","\n\n\n\n\n","import { render } from \"./roles-modify.vue?vue&type=template&id=b629bd1e&scoped=true\"\nimport script from \"./roles-modify.vue?vue&type=script&lang=js\"\nexport * from \"./roles-modify.vue?vue&type=script&lang=js\"\n\nimport \"./roles-modify.vue?vue&type=style&index=0&id=b629bd1e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b629bd1e\"]])\n\nexport default __exports__\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport QSpinner from 'quasar/src/components/spinner/QSpinner.js';\nimport QForm from 'quasar/src/components/form/QForm.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QBtn,QSpinner,QForm});\n","import { render } from \"./roles-modify.vue?vue&type=template&id=8bca773a\"\nimport script from \"./roles-modify.vue?vue&type=script&lang=js\"\nexport * from \"./roles-modify.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./Textarea.vue?vue&type=template&id=20e44f48\"\nimport script from \"./Textarea.vue?vue&type=script&lang=js\"\nexport * from \"./Textarea.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__\nimport QInput from 'quasar/src/components/input/QInput.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QInput});\n","export default class eams {\n /**\n * @constructor\n */\n constructor(api, api2) {\n this.http = api;\n this.http2 = api2\n\n this.http.defaults.headers.common[\"Authorization\"] = localStorage.getItem('token');\n this.http2.defaults.headers.common[\"Authorization\"] = localStorage.getItem('token');\n }\n\n fetchPermissions(businessId) {\n return this.http2.get(`/v1/business/teams/permissions?businessId=${businessId}`);\n }\n \n fetchRoles(businessId) {\n return this.http2.get(`/v1/business/teams/roles?businessId=${businessId}`);\n }\n \n fetchRole(businessId, roleId) {\n return this.http2.get(`/v1/business/teams/roles/${roleId}?businessId=${businessId}`);\n }\n \n storeRole(payload) {\n return this.http2.post(`/v1/business/teams/roles`, payload);\n }\n\n updateRole(roleId, payload) {\n return this.http2.put(`/v1/business/teams/roles/${roleId}`, payload);\n }\n\n deleteRole(roleId, payload) {\n return this.http2.delete(`/v1/business/teams/roles/${roleId}`, { data : payload});\n }\n\n\n fetchTeamMembers(params) {\n return this.http2.get(`/v1/business/teams/members`, {\n params\n });\n }\n \n fetchTeamMember(businessId, memberId) {\n return this.http2.get(`/v1/business/teams/members/${memberId}?businessId=${businessId}`);\n }\n\n storeTeamMember(payload) {\n return this.http2.post(`/v1/business/teams/members`, payload);\n }\n\n updateTeamMember(memberId, payload) {\n return this.http2.put(`/v1/business/teams/members/${memberId}`, payload);\n }\n\n deleteMember(memberId, payload) {\n return this.http2.delete(`/v1/business/teams/members/${memberId}`, { data: payload });\n }\n\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./titleHead.vue?vue&type=style&index=0&id=0adbdf40&scoped=true&lang=css\"","export const PERMISSION_GROUPS = {\n TRANSACTION_MANAGEMENT: \"Transaction Management\",\n CUSTOMER_MANAGEMENT: \"Customer Management\",\n ORDER_MANAGEMENT: \"Order Management\",\n GENERAL_SETTINGS: \"General Settings\",\n};\n\nexport const ROLES = {\n VIEW_WALLET: \"VIEW_WALLET\",\n VIEW_TRANSACTION: \"VIEW_TRANSACTION\",\n UPDATE_BUSINESS_DETAILS: \"UPDATE_BUSINESS_DETAILS\",\n VIEW_PERFORMANCE_METRICS: \"VIEW_PERFORMANCE_METRICS\",\n VIEW_PENDING_BALANCE: \"VIEW_PENDING_BALANCE\",\n VIEW_OVERVIEW: \"VIEW_OVERVIEW\",\n VIEW_CONNECTED_ACCOUNTS: \"VIEW_CONNECTED_ACCOUNTS\",\n VIEW_ORDERS: \"VIEW_ORDERS\",\n VIEW_CUSTOMERS: \"VIEW_CUSTOMERS\",\n VIEW_PAYMENT_LINKS: \"VIEW_PAYMENT_LINKS\",\n VIEW_BUSINESS_DETAILS: \"VIEW_BUSINESS_DETAILS\",\n VIEW_API_KEYS_AND_WEBHOOKS: \"VIEW_API_KEYS_AND_WEBHOOKS\",\n VIEW_INVITED_USERS: \"VIEW_INVITED_USERS\",\n MAKE_CARD_FUNDING: \"MAKE_CARD_FUNDING\",\n EXPORT_TRANSACTION: \"EXPORT_TRANSACTION\",\n UPDATE_BLACKLIST: \"UPDATE_BLACKLIST\",\n MAKE_BLACKLIST: \"MAKE_BLACKLIST\",\n MAKE_REFUND: \"MAKE_REFUND\",\n UPDATE_REFUND: \"UPDATE_REFUND\",\n EXPORT_ORDERS: \"EXPORT_ORDERS\",\n EXPORT_CUSTOMERS: \"EXPORT_CUSTOMERS\",\n ACTIVATE_PAYMENT_LINKS: \"ACTIVATE_PAYMENT_LINKS\",\n DEACTIVATE_PAYMENT_LINKS: \"DEACTIVATE_PAYMENT_LINKS\",\n UPDATE_MERCHANT_TAG: \"UPDATE_MERCHANT_TAG\",\n ADD_BUSINESS_ADDRESS: \"ADD_BUSINESS_ADDRESS\",\n DELETE_BUSINESS_ADDRESS: \"DELETE_BUSINESS_ADDRESS\",\n ADMIN: \"ADMIN\",\n UPDATE_API_KEYS_AND_WEBHOOKS: \"UPDATE_API_KEYS_AND_WEBHOOKS\",\n MAKE_WALLET_TRANSFER: \"MAKE_WALLET_TRANSFER\",\n MAKE_BANK_TRANSFER: \"MAKE_BANK_TRANSFER\",\n SEND_USER_INVITES: \"SEND_USER_INVITES\",\n UPDATE_INVITED_USERS: \"UPDATE_INVITED_USERS\",\n};\n\n/**\n * Requirements array:\n * - a role will automatically activitate/check all the roles in its requirements array\n * once it is checked\n *\n * Dependencies array:\n * - if a role is deselected, the roles in its dependencies will be unselected\n */\n\nexport const PERMISSIONS_FORMAT = {\n VIEW_WALLET: {\n name: \"Can View Available Balance\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"VIEW_WALLET\",\n },\n VIEW_CONNECTED_ACCOUNTS: {\n name: \"Can View Connected Accounts\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"VIEW_CONNECTED_ACCOUNTS\",\n },\n VIEW_TRANSACTION: {\n name: \"Can View Transactions\",\n group: \"TRANSACTION_MANAGEMENT\", \n key: \"VIEW_TRANSACTION\",\n dependencies: [\"EXPORT_TRANSACTION\"],\n },\n UPDATE_BUSINESS_DETAILS: {\n name: \"Can Update Business Settings\",\n group: \"GENERAL_SETTINGS\",\n key: \"UPDATE_BUSINESS_DETAILS\",\n requirements: [\"VIEW_BUSINESS_DETAILS\"],\n },\n VIEW_PERFORMANCE_METRICS: {\n name: \"Can View Performance Metrics\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"VIEW_PERFORMANCE_METRICS\",\n },\n VIEW_PENDING_BALANCE: {\n name: \"Can View Pending Balance\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"VIEW_PENDING_BALANCE\",\n },\n VIEW_ORDERS: {\n name: \"Can View Orders\",\n group: \"ORDER_MANAGEMENT\",\n key: \"VIEW_ORDERS\",\n dependencies: [\"EXPORT_ORDERS\"],\n },\n VIEW_CUSTOMERS: {\n name: \"Can View Customers\",\n group: \"CUSTOMER_MANAGEMENT\",\n key: \"VIEW_CUSTOMERS\",\n dependencies: [\"EXPORT_CUSTOMERS\"],\n },\n // VIEW_PAYMENT_LINKS: {\n // name: 'Can View Payment Links',\n // group: 'TRANSACTION_MANAGEMENT',\n // key: 'VIEW_PAYMENT_LINKS',\n // },\n VIEW_BUSINESS_DETAILS: {\n name: \"Can View Business Settings\",\n group: \"GENERAL_SETTINGS\",\n key: \"VIEW_BUSINESS_DETAILS\",\n dependencies: [\"UPDATE_BUSINESS_DETAILS\"],\n },\n // VIEW_API_KEYS_AND_WEBHOOKS: {\n // name: \"Can View API Keys & Webhooks\",\n // group: \"GENERAL_SETTINGS\",\n // key: \"VIEW_API_KEYS_AND_WEBHOOKS\",\n // dependencies: [\"UPDATE_API_KEYS_AND_WEBHOOKS\"],\n // },\n VIEW_INVITED_USERS: {\n name: \"Can View Invited Users\",\n group: \"GENERAL_SETTINGS\",\n key: \"VIEW_INVITED_USERS\",\n dependencies: [\"UPDATE_INVITED_USERS\", \"SEND_USER_INVITES\"],\n },\n MAKE_CARD_FUNDING: {\n name: \"Can Fund Wallet\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"MAKE_CARD_FUNDING\",\n },\n EXPORT_TRANSACTION: {\n name: \"Can Export Transactions\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"EXPORT_TRANSACTION\",\n requirements: [\"VIEW_TRANSACTION\"],\n },\n UPDATE_BLACKLIST: {\n name: \"Can Whitelist\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"UPDATE_BLACKLIST\",\n },\n MAKE_BLACKLIST: {\n name: \"Can Blacklist\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"MAKE_BLACKLIST\",\n },\n MAKE_REFUND: {\n name: \"Can Refund\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"MAKE_REFUND\",\n },\n UPDATE_REFUND: {\n name: \"Can Update Refund\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"UPDATE_REFUND\",\n },\n EXPORT_ORDERS: {\n name: \"Can Export Orders\",\n group: \"ORDER_MANAGEMENT\",\n key: \"EXPORT_ORDERS\",\n requirements: [\"VIEW_ORDERS\"],\n },\n EXPORT_CUSTOMERS: {\n name: \"Can Export Customers\",\n group: \"CUSTOMER_MANAGEMENT\",\n key: \"EXPORT_CUSTOMERS\",\n requirements: [\"VIEW_CUSTOMERS\"],\n },\n // ACTIVATE_PAYMENT_LINKS: {\n // name: 'Can Activate Payment Links',\n // group: 'TRANSACTION_MANAGEMENT',\n // key: 'ACTIVATE_PAYMENT_LINKS',\n // },\n // DEACTIVATE_PAYMENT_LINKS: {\n // name: 'Can Deactivate Payment Links',\n // group: 'TRANSACTION_MANAGEMENT',\n // key: 'DEACTIVATE_PAYMENT_LINKS',\n // },\n UPDATE_MERCHANT_TAG: {\n name: \"Can Edit Merchant Tag\",\n group: \"GENERAL_SETTINGS\",\n key: \"UPDATE_MERCHANT_TAG\",\n },\n ADD_BUSINESS_ADDRESS: {\n name: \"Can Add Business Address\",\n group: \"GENERAL_SETTINGS\",\n key: \"ADD_BUSINESS_ADDRESS\",\n dependencies: [\"DELETE_BUSINESS_ADDRESS\"],\n },\n DELETE_BUSINESS_ADDRESS: {\n name: \"Can Delete Business Address\",\n group: \"GENERAL_SETTINGS\",\n key: \"DELETE_BUSINESS_ADDRESS\",\n requirements: [\"ADD_BUSINESS_ADDRESS\"],\n },\n ADMIN: {\n name: \"Admin\",\n group: \"ADMIN\",\n key: \"ADMIN\",\n },\n // UPDATE_API_KEYS_AND_WEBHOOKS: {\n // name: \"Can Generate API Keys & Webhooks\",\n // group: \"GENERAL_SETTINGS\",\n // key: \"UPDATE_API_KEYS_AND_WEBHOOKS\",\n // requirements: [\"VIEW_API_KEYS_AND_WEBHOOKS\"],\n // },\n MAKE_WALLET_TRANSFER: {\n name: \"Can Make Wallet Transfer\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"MAKE_WALLET_TRANSFER\",\n },\n MAKE_BANK_TRANSFER: {\n name: \"Can Make Bank Transfer\",\n group: \"TRANSACTION_MANAGEMENT\",\n key: \"MAKE_BANK_TRANSFER\",\n },\n SEND_USER_INVITES: {\n name: \"Can Send User Invites\",\n group: \"GENERAL_SETTINGS\",\n key: \"SEND_USER_INVITES\",\n requirements: [\"VIEW_INVITED_USERS\"],\n },\n UPDATE_INVITED_USERS: {\n name: \"Can Update Invited Users\",\n group: \"GENERAL_SETTINGS\",\n key: \"UPDATE_INVITED_USERS\",\n requirements: [\"VIEW_INVITED_USERS\", \"SEND_USER_INVITES\"],\n },\n};\n","\n\n\n","import { h, defineComponent, ref, computed, watch, getCurrentInstance } from 'vue'\n\nimport QDialog from '../dialog/QDialog.js'\nimport QMenu from '../menu/QMenu.js'\n\nimport useAnchor, { useAnchorProps } from '../../composables/private/use-anchor.js'\nimport { hSlot } from '../../utils/private/render.js'\n\nexport default defineComponent({\n name: 'QPopupProxy',\n\n props: {\n ...useAnchorProps,\n\n breakpoint: {\n type: [ String, Number ],\n default: 450\n }\n },\n\n emits: [ 'show', 'hide' ],\n\n setup (props, { slots, emit, attrs }) {\n const { proxy } = getCurrentInstance()\n const { $q } = proxy\n\n const showing = ref(false)\n const popupRef = ref(null)\n const breakpoint = computed(() => parseInt(props.breakpoint, 10))\n\n const { canShow } = useAnchor({ showing })\n\n function getType () {\n return $q.screen.width < breakpoint.value || $q.screen.height < breakpoint.value\n ? 'dialog'\n : 'menu'\n }\n\n const type = ref(getType())\n\n watch(() => getType(), val => {\n if (showing.value !== true) {\n type.value = val\n }\n })\n\n // expose public methods\n Object.assign(proxy, {\n show (evt) { canShow(evt) === true && popupRef.value.show(evt) },\n hide (evt) { popupRef.value.hide(evt) },\n toggle (evt) { popupRef.value.toggle(evt) }\n })\n\n function onShow (evt) {\n showing.value = true\n emit('show', evt)\n }\n\n function onHide (evt) {\n showing.value = false\n type.value = getType()\n emit('hide', evt)\n }\n\n return () => {\n const def = hSlot(slots.default)\n\n const popupProps = (\n type.value === 'menu'\n && def !== void 0\n && def[ 0 ] !== void 0\n && def[ 0 ].type !== void 0\n && [ 'QDate', 'QTime', 'QCarousel', 'QColor' ].includes(\n def[ 0 ].type.name\n )\n ) ? { cover: true, maxHeight: '99vh' } : {}\n\n const data = {\n ref: popupRef,\n ...popupProps,\n ...attrs,\n onShow,\n onHide\n }\n\n let component\n\n if (type.value === 'dialog') {\n component = QDialog\n }\n else {\n component = QMenu\n Object.assign(data, {\n target: props.target,\n contextMenu: props.contextMenu,\n noParentEvent: true,\n separateClosePopup: true\n })\n }\n\n return h(component, data, () => def)\n }\n }\n})\n","import { render } from \"./Input.vue?vue&type=template&id=32e746b9\"\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__\nimport QInput from 'quasar/src/components/input/QInput.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport QMenu from 'quasar/src/components/menu/QMenu.js';\nimport QList from 'quasar/src/components/item/QList.js';\nimport QItem from 'quasar/src/components/item/QItem.js';\nimport QPopupProxy from 'quasar/src/components/popup-proxy/QPopupProxy.js';\nimport QDate from 'quasar/src/components/date/QDate.js';import ClosePopup from 'quasar/src/directives/ClosePopup.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QInput,QBtn,QMenu,QList,QItem,QPopupProxy,QDate});qInstall(script, 'directives', {ClosePopup});\n","\n\n\n\n\n","import { render } from \"./RoleCategory.vue?vue&type=template&id=47d1add8&scoped=true\"\nimport script from \"./RoleCategory.vue?vue&type=script&lang=js\"\nexport * from \"./RoleCategory.vue?vue&type=script&lang=js\"\n\nimport \"./RoleCategory.vue?vue&type=style&index=0&id=47d1add8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-47d1add8\"]])\n\nexport default __exports__\nimport QCheckbox from 'quasar/src/components/checkbox/QCheckbox.js';\nimport qInstall from \"../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QCheckbox});\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./roles-modify.vue?vue&type=style&index=0&id=b629bd1e&lang=scss&scoped=true\"","\n\n\n\n","import { render } from \"./titleHead.vue?vue&type=template&id=0adbdf40&scoped=true\"\nimport script from \"./titleHead.vue?vue&type=script&lang=js\"\nexport * from \"./titleHead.vue?vue&type=script&lang=js\"\n\nimport \"./titleHead.vue?vue&type=style&index=0&id=0adbdf40&scoped=true&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0adbdf40\"]])\n\nexport default __exports__","import date from 'quasar/src/utils/date.js';;\n/**\n * @param {Array} xs\n * @param {number | string} key\n * @returns any\n */\nexport const groupBy = function (xs, key) {\n return xs.reduce(function (rv, x) {\n (rv[x[key]] = rv[x[key]] || []).push(x);\n return rv;\n }, {});\n};\n\n/**\n * @param {String} str\n * @returns String\n */\nexport const snakeCaseToTitle = function (str) {\n return str\n .replace(\"_\", \" \")\n .split(\" \")\n .map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const purposeCase = (value) => {\n switch (value) {\n case \"bank_transfer\":\n return \"Bank_transfer_outward\";\n case \"bill_payment\":\n return \"Bill_payment\";\n case \"card_funding\":\n return \"Card_funding\";\n case \"commission_feecase\":\n return \"Commission_fee\";\n case \"delivery_fee\":\n return \"Delivery_fee\";\n case \"item_purchase\":\n return \"Item_purchase\";\n case \"Lien_Credit\":\n return \"Lien_credit\";\n case \"payment_link\":\n return \"Payment_link\";\n case \"pos_funding\":\n return \"POS_terminal\";\n case \"product_sale\":\n return \"Product_sale\";\n case \"qr_code\":\n return \"QR_payment\";\n case \"reserved_bank_account_funding\":\n return \"Bank_transfer_inward\";\n case \"reversal\":\n return \"Reversal\";\n case \"stamp_duty_fee\":\n return \"Stamp_duty\";\n case \"transaction_fee\":\n return \"Transaction_fee\";\n case \"transaction_fee_bank_transfer\":\n return \"Transaction_fee_bank_transfer\";\n case \"transaction_fee_checkout\":\n return \"Transaction_fee_checkout\";\n case \"transaction_fee_payment_link\":\n return \"Transaction_fee_payment_link\";\n case \"transaction_fee_pos_funding\":\n return \"Transaction_fee_POS_terminal\";\n case \"transaction_fee_qr_code\":\n return \"Transaction_fee_QR_payment\";\n case \"transaction_fee_reserved_account\":\n return \"Transaction_fee_bank_transfer_inward\";\n case \"wallet_transfer\":\n return \"Wallet_transfer\";\n case \"Cash_offline\":\n return \"Cash_offline\";\n\n default:\n return value.replace(\"_\", \" \");\n }\n};\n\n/**\n *\n * @param {string} string\n * @returns string\n */\nexport const capitalizeFirstLetter = (string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\n/**\n *\n * @param {*} _date\n * @returns string\n */\nexport const formatDate = (_date, format = \"MMM DD, YYYY hh:mm A\") => {\n return date.formatDate(_date, format);\n};\n\n/**\n *\n * @param {string} string\n * @returns string\n */\nexport const createHash = async (string) => {\n const utf8 = new TextEncoder().encode(string);\n const hashBuffer = await crypto.subtle.digest(\"SHA-256\", utf8);\n const hashArray = Array.from(new Uint8Array(hashBuffer));\n const hashHex = hashArray\n .map((bytes) => bytes.toString(16).padStart(2, \"0\"))\n .join(\"\");\n return hashHex;\n};\n\n/**\n * @param {Array} items\n * @returns string || Number\n */\nexport const subtotal = (items) => {\n let total = 0;\n items.forEach((item) => {\n total += item.quantity * item.price;\n });\n\n return total;\n};\n\n/**\n * calculate discount\n * @param {Object} data\n * @return {Number}\n */\n\nexport const calculateDiscount = (data) => {\n const { discount_selected, discount, _subtotal } = data;\n let subtotal = _subtotal;\n return discount_selected === \"Fixed\"\n ? parseInt(discount)\n : parseInt(subtotal) * (parseInt(discount) / 100);\n};\n\n/**\n * @param {Object} details\n * @returns string || Number\n */\nexport const grandTotal = (details) => {\n const { shipping_fee, vat, discount, discount_selected, items } = details;\n let _subtotal = subtotal(items);\n let discountAmount = calculateDiscount({\n discount_selected: discount_selected,\n discount: discount,\n _subtotal: _subtotal,\n });\n return _subtotal + parseInt(shipping_fee) + parseInt(vat) - discountAmount;\n};\n\n/**\n * Truncate lenghty text.\n *\n * @param {string} text The text\n * @param {number} business_name The max length\n * @returns {string}\n */\nexport const truncateLengthyText = (text, maxLength) => {\n if (text?.length > maxLength) {\n return `${text?.substring(0, maxLength)}...`;\n } else return text;\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./RoleCategory.vue?vue&type=style&index=0&id=47d1add8&lang=scss&scoped=true\"","export default class Permissions {\n /**\n * @constructor\n */\n constructor(api, api2) {\n this.http = api;\n this.http2 = api2;\n this.BASE_URL = process.env.VUE_APP_STAGING_BASE_URL;\n }\n\n getPermissions() {\n return this.http2.get(\n `/v1/business/teams/permissions`\n );\n }\n\n getFeatures() {\n return this.http2.get(\n `/v1/business/system-permissions`\n );\n }\n\n getRoles(businessId) {\n return this.http2.get(\n `/v1/business/teams/roles?businessId=${businessId}`\n );\n }\n\n createRole(payload) {\n return this.http2.post(\n `/v1/business/teams/roles`, payload\n ); \n }\n\n getRole(roleId, businessId) {\n return this.http2.get(\n `/v1/business/teams/roles/${roleId}?businessId=${businessId}`\n );\n }\n\n updateRole(roleId, payload) {\n return this.http2.put(\n `/v1/business/teams/roles/${roleId}`, payload\n );\n }\n\n deleteRole(roleId) {\n return this.http2.delete(\n `/v1/business/teams/roles/${roleId}`\n );\n }\n\n\n getMembers(businessId) {\n return this.http2.get(\n `/v1/business/teams/members?businessId=${businessId}`\n );\n }\n\n addMember(payload) {\n return this.http2.post(\n `/v1/business/teams/members`, payload\n );\n }\n\n getMember(memberId, businessId) {\n return this.http2.get(\n `/v1/business/teams/members/${memberId}?businessId=${businessId}`\n );\n }\n\n updateMember(memberId, payload) {\n return this.http2.put(\n `/v1/business/teams/members/${memberId}`, payload\n );\n }\n deleteMember(memberId) {\n return this.http2.delete(\n `/v1/business/teams/members/${memberId}`\n )\n }\n \n}"],"sourceRoot":""}