{"version":3,"sources":["webpack:///./node_modules/quasar/src/components/form/QForm.js","webpack:///./src/components/base/AppTextarea/Textarea.vue","webpack:///./src/components/base/AppTextarea/Textarea.vue?a3c9","webpack:///./src/services/teams.http.js","webpack:///./src/components/contents/SettingsLinks/permissions.vue?df26","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/reusables/titleHead.vue","webpack:///./src/components/reusables/titleHead.vue?2d26","webpack:///./src/views/Settings/manage-member.vue","webpack:///./src/components/contents/SettingsLinks/permissions.vue","webpack:///./src/components/contents/SettingsLinks/permissions.vue?0ee3","webpack:///./src/views/Settings/manage-member.vue?4eed","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","_hoisted_1","_createElementVNode","_hoisted_2","_toDisplayString","$props","label","_createVNode","_component_q_input","_mergeProps","placeholder","placelabel","outlined","type","input-class","_ctx","$attrs","String","Number","data","content","this","methods","handleInput","event","$emit","computed","inputListeners","$listeners","input","__exports__","render","QInput","eams","constructor","api","api2","http","http2","defaults","headers","common","localStorage","getItem","fetchPermissions","businessId","get","fetchRoles","fetchRole","roleId","storeRole","payload","post","updateRole","put","deleteRole","delete","fetchTeamMembers","params","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","PERMISSIONS_FORMAT","group","key","dependencies","requirements","disable","bg-color","backgroundColor","model-value","modelValue","_cache","_createSlots","_","phone","_component_q_btn","flat","color","_hoisted_3","_hoisted_4","alt","src","$options","selectedCountry","icon","_hoisted_6","code","_component_q_menu","_Fragment","_renderList","$data","countries","country","_createBlock","_component_q_list","style","_component_q_item","clickable","onClick","$event","_hoisted_7","_hoisted_9","prepend","_renderSlot","$slots","appendAction","verifyCode","password","showPassword","_normalizeClass","date","size","unelevated","ripple","_component_q_popup_proxy","cover","transition-show","transition-hide","_component_q_date","_hoisted_10","countryCode","autoSuggest","showSomething","item","useAnchorProps","breakpoint","attrs","$q","showing","popupRef","parseInt","canShow","useAnchor","getType","screen","width","height","onShow","onHide","watch","show","hide","toggle","def","popupProps","includes","maxHeight","component","QDialog","QMenu","contextMenu","noParentEvent","separateClosePopup","QBtn","QList","QItem","QPopupProxy","QDate","ClosePopup","category","replace","permissions","permission","id","_component_q_checkbox","active","updatePermissions","editable","inactivePermission","allActivePermissions","allPermissions","BEpermissions","categoryTitle","formatedBEPermissions","p","permissionName","description","groupKey","toUpperCase","loading","message","response","permissionService","getFeatures","groups","err","preparePermissions","permissionKeys","keys","isAdmin","_this$formatedBEPermi","element","activePermissions","selectedPermission","roles","roleKey","alreadySelected","role","attachedPermission","getGroupsAndFeatures","created","PermissionService","$api1","$api2","QCheckbox","title","subtitle","_component_SettingsLinks","align","$router","back","no-caps","textColor","_component_q_spinner","_component_q_form","_component_TitleHeader","_hoisted_5","_component_AppInput","roleName","rules","required","_component_AppTextarea","roleDescription","_hoisted_8","_component_RoleCategory","all-active-permissions","rolePermission","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_component_AppButton","isSubmitting","disabled","saveNewRoleButtonState","components","TitleHeader","AppInput","AppTextarea","AppButton","RoleCategory","mixins","authRulesMixin","business","$store","getters","getGroupedPermissions","groupBy","form","values","some","x","teamService","permissionId","map","enabled","showMessage","_err$response","errMsg","window","scrollTo","TeamService","QSpinner","QForm","SettingsLinks","xs","reduce","rv","snakeCaseToTitle","str","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,S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AAWA,IAEb,OAAOA,EAAYhK,SAASmK,GAAgBnK,SAASoK,GAAOC,GAUjDC,EAAsBA,CAACC,EAAMC,KAChC,OAAJD,QAAI,IAAJA,OAAI,EAAJA,EAAMnY,QAASoY,GACH,OAAJD,QAAI,IAAJA,OAAI,EAAJA,EAAME,UAAU,EAAGD,IAAtB,MACKD,G,kCCpKhB,W,gFCAA,kCAAe,MAAMG,EAIjBnT,YAAYC,EAAKC,GACbf,KAAKgB,KAAOF,EACZd,KAAKiB,MAAQF,EACbf,KAAKiU,SAAWC,syCAAYC,yBAGhCC,iBACI,OAAOpU,KAAKiB,MAAMQ,IACd,kCAIRkL,cACI,OAAO3M,KAAKiB,MAAMQ,IACd,mCAIR4S,SAAS7S,GACL,OAAOxB,KAAKiB,MAAMQ,IACd,uCAAuCD,GAI/C8S,WAAWxS,GACP,OAAO9B,KAAKiB,MAAMc,KACd,2BAA4BD,GAIpCyS,QAAQ3S,EAAQJ,GACZ,OAAOxB,KAAKiB,MAAMQ,IACd,4BAA4BG,gBAAqBJ,KAIzDQ,WAAWJ,EAAQE,GACf,OAAO9B,KAAKiB,MAAMgB,IACd,4BAA4BL,EAAUE,GAI9CI,WAAWN,GACP,OAAO5B,KAAKiB,MAAMkB,OACd,4BAA4BP,GAKpC4S,WAAWhT,GACP,OAAOxB,KAAKiB,MAAMQ,IACd,yCAAyCD,GAIjDiT,UAAU3S,GACN,OAAO9B,KAAKiB,MAAMc,KACd,6BAA8BD,GAItC4S,UAAUnS,EAAUf,GAChB,OAAOxB,KAAKiB,MAAMQ,IACd,8BAA8Bc,gBAAuBf,KAI7DmT,aAAapS,EAAUT,GACnB,OAAO9B,KAAKiB,MAAMgB,IACd,8BAA8BM,EAAYT,GAGlDY,aAAaH,GACT,OAAOvC,KAAKiB,MAAMkB,OACd,8BAA8BI","file":"js/chunk-2e123efb.0e9e22e0.js","sourcesContent":["import { h, defineComponent, 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","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!./permissions.vue?vue&type=style&index=0&id=68266f23&scoped=true&lang=css\"","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","\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__","\n\n\n ","\n\n\n\n\n","import { render } from \"./permissions.vue?vue&type=template&id=68266f23&scoped=true\"\nimport script from \"./permissions.vue?vue&type=script&lang=js\"\nexport * from \"./permissions.vue?vue&type=script&lang=js\"\n\nimport \"./permissions.vue?vue&type=style&index=0&id=68266f23&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-68266f23\"]])\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 \"./manage-member.vue?vue&type=template&id=4393a07b\"\nimport script from \"./manage-member.vue?vue&type=script&lang=js\"\nexport * from \"./manage-member.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__","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":""}