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AG,EAAA,SAAAC,GAAA,eAAAA,EAAAC,GAAA,cAAAD,EAAAC,EAAA,EACAqB,IAAA,OAAApC,EAAA1E,sBAAAwF,EAAAe,EAAA,cAAAf,EAAAM,EAAA,KAAAR,EAAA,GADAH,EAEA,EACAzD,QAAA,CACA4F,sBAAA,WACA,KAAAF,WACAG,OAAAC,SAAAC,OAAA,GAAAhH,OAAAqD,+BAEAyD,OAAAC,SAAAC,OAAA,GAAAhH,OAAAqD,0BAAA,cAEA,EACA4D,cAAA,WACA,KAAAC,MAAA,iBACA,EACAC,mBAAA,SAAAtH,EAAAyD,GACA,YAAAL,OAAAC,QAAAiE,mBAAAtH,EAAAyD,EACA,IChE6L,ICQzL,GAAY,OACd,EACA1E,EACAY,GACA,EACA,KACA,WACA,MAIF,EAAe,E","sources":["webpack://company-webapp/./src/components/project/ui/menu/AppSidemenu.vue","webpack://company-webapp/./src/components/project/ui/menu/AppMenu.vue","webpack://company-webapp/src/components/project/ui/menu/AppMenu.vue","webpack://company-webapp/./src/components/project/ui/menu/AppMenu.vue?0c5c","webpack://company-webapp/./src/components/project/ui/menu/AppMenu.vue?f514","webpack://company-webapp/./src/vendor/experiment.vendor.js","webpack://company-webapp/./src/feature-flags/twilio-conversations.feature-flags.js","webpack://company-webapp/src/components/project/ui/menu/AppSidemenu.vue","webpack://company-webapp/./src/components/project/ui/menu/AppSidemenu.vue?9abe","webpack://company-webapp/./src/components/project/ui/menu/AppSidemenu.vue?7949"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"emd-sidemenu\",class:{ _open: _vm.isOpen }},[_c('div',{staticClass:\"emd-sidemenu__body\"},[_c('app-menu',{attrs:{\"simple\":\"\",\"merchantId\":_vm.merchantId}}),_c('div',{staticClass:\"chat-twilio-container\"},[(_vm.isTwilioConversations)?_c('chat-twilio-conversations'):_c('chat-twilio')],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('nav',{staticClass:\"emd-menu\",class:{ _simple: _vm.simple }},[_c('main',{staticClass:\"emd-menu__main\"},[_vm._l((_vm.menu),function(section,key){return [(section.showSection)?_c('router-link',{key:key,staticClass:\"emd-menu__section\",attrs:{\"active-class\":\"_active\",\"to\":`/${_vm.merchantId}/${key}`,\"id\":key}},[_c('section',{staticClass:\"emd-menu__section\"},[_c('a',{on:{\"click\":function($event){return _vm.sendAmplitudeEvent(key)}}},[_c('span',{staticClass:\"emd-menu__icon\"},[_c('i',{class:['uil', `uil-${section.icon}`]})]),_c('span',{staticClass:\"emd-menu__label titleCase\"},[_vm._v(_vm._s(_vm.$t(`ui.appMenu.${key}`)))]),(section.demo)?_c('span',{staticClass:\"emd-tag _color_info eu-ml_2 eu-display_none eu-display_inline_md\"},[_vm._v(\"Demo\")]):_vm._e()])])]):_vm._e()]})],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppMenu.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppMenu.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AppMenu.vue?vue&type=template&id=4220543e&scoped=true\"\nimport script from \"./AppMenu.vue?vue&type=script&lang=js\"\nexport * from \"./AppMenu.vue?vue&type=script&lang=js\"\nimport style0 from \"./AppMenu.vue?vue&type=style&index=0&id=4220543e&prod&scoped=true&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 \"4220543e\",\n null\n \n)\n\nexport default component.exports","import { Experiment } from '@stone-payments/experiment'\nimport { AmplitudeExperimentJS } from '@stone-payments/experiment/plugins/amplitude-experiment-js'\n\nclass ExperimentSingleton {\n constructor () {\n if (!ExperimentSingleton.instance) {\n this.experiment = new Experiment([\n new AmplitudeExperimentJS(process.env.VUE_APP_EXPERIMENT_KEY, {\n debug: process.env.VUE_APP_CORE_ENV !== 'production'\n })\n ])\n this._ready = null\n ExperimentSingleton.instance = this\n }\n return ExperimentSingleton.instance\n }\n\n /**\n * Initializes and starts the experiment client once (memoized), so that\n * flag evaluation is safe to call from anywhere without a login guard.\n * This app has no authenticated bootstrap, so we start anonymously.\n */\n ready ({ id, ...user } = {}) {\n if (!this._ready) {\n this._ready = (async () => {\n await this.experiment.init()\n await this.experiment.start({\n ...(id && { user_id: id }),\n user_properties: { ...user }\n })\n })()\n }\n return this._ready\n }\n\n getInstance () {\n return this.experiment\n }\n\n async isFlagActive (flagName) {\n try {\n await this.ready()\n const variant = await this.getInstance().variant(flagName)\n return variant.value === 'on'\n } catch (error) {\n return false\n }\n }\n}\n\nconst experimentSingleton = new ExperimentSingleton()\nexport default experimentSingleton\n","import experimentSingleton from '@/vendor/experiment.vendor.js'\n\nexport const TWILIO_CONVERSATIONS_FEATURE_FLAGS = {\n TwilioConversationsEnabled: 'cj-core-feature-twilio-conversations-company-3-x'\n}\n\nexport async function isTwilioConversationsEnabled () {\n return experimentSingleton.isFlagActive(\n TWILIO_CONVERSATIONS_FEATURE_FLAGS.TwilioConversationsEnabled\n )\n}\n","\n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppSidemenu.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppSidemenu.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AppSidemenu.vue?vue&type=template&id=c61876f8&scoped=true\"\nimport script from \"./AppSidemenu.vue?vue&type=script&lang=js\"\nexport * from \"./AppSidemenu.vue?vue&type=script&lang=js\"\nimport style0 from \"./AppSidemenu.vue?vue&type=style&index=0&id=c61876f8&prod&scoped=true&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 \"c61876f8\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","class","_open","isOpen","attrs","merchantId","isTwilioConversations","staticRenderFns","_simple","simple","_l","menu","section","key","showSection","concat","on","$event","sendAmplitudeEvent","icon","_v","_s","$t","demo","_e","name","props","type","Boolean","default","required","String","methods","menuItem","Amplitude","events","actions","menuItemClicked","computed","_objectSpread","mapGetters","insights","insightsMerchantEnabled","permissionIsEnabled","merchant","accounts","charges","chargeEnabled","myplan","admin","merchantAdminSearchEnabledAndIsNotStaff","staff","merchantStaffSearchEnabledAndIsNotStaff","configuration","SETTINGS_FUNCTIONALITIES_ACTIONS","view","SETTINGS_GENERAL_DATA_ACTIONS","SETTINGS_INFO_ACTIONS","get","MERCHANT_ALLOW_LIST","some","routeName","$route","statisticsAvailability","$store","getters","merchantDelinquent","urlFinance","process","component","ExperimentSingleton","_classCallCheck","instance","experiment","Experiment","AmplitudeExperimentJS","debug","_ready","_createClass","value","_this","_ref","arguments","length","undefined","id","user","_objectWithoutProperties","_excluded","_asyncToGenerator","_regenerator","m","_callee","w","_context","n","init","start","user_id","user_properties","a","_isFlagActive","_callee2","flagName","variant","_context2","p","ready","getInstance","v","isFlagActive","_x","apply","experimentSingleton","TWILIO_CONVERSATIONS_FEATURE_FLAGS","TwilioConversationsEnabled","isTwilioConversationsEnabled","_isTwilioConversationsEnabled","components","AppMenu","data","merchantActive","isEmployee","created","contextAnchorMerchant","window","location","assign","toggleAppMenu","$emit","componentIsEnabled"],"sourceRoot":""}