{"version":3,"sources":["webpack:///./src/pagesMobile/Chargeability/Smus.vue","webpack:///src/pagesMobile/Chargeability/Smus.vue","webpack:///./src/pagesMobile/Chargeability/Smus.vue?af32","webpack:///./src/pagesMobile/Chargeability/Smus.vue?feaf","webpack:///./src/utils/TwelveMonthsChart.js","webpack:///./src/utils/RevenueDays.js"],"names":["render","_vm","this","_c","_self","staticClass","smuSelected","attrs","loadCategories","on","$event","_v","options","length","_l","el","index","key","class","getColor","_s","_e","categories","selectSMU","name","mtd","mtd_1","loadingsmu","_m","sl","setSL","smuElements","_f","ytd","ytd_1","staticRenderFns","props","data","smus","loadcat","methods","option","$emit","load","_this","axios","get","params","then","response","_this2","computed","TwelveMonthsChartCompare","TwelveMonthsChart","smu","state","globalParams","watch","n","o","mounted","component","numberOfSeries","arguments","undefined","withCats","series","cats","serieN","startMonth","moment","subtract","startOf","valueOf","serie","step","monthName","format","push","randomNumber","add","RevenueDays","revenue","periods","total","period","number","value","perc"],"mappings":"uIAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,cAAc,CAAGJ,EAAIK,YAAgiEH,EAAG,MAAM,CAACE,YAAY,mEAAmE,CAACF,EAAG,SAAS,CAACI,MAAM,CAAC,QAAUN,EAAIO,kBAAkBL,EAAG,MAAM,CAACE,YAAY,gDAAgD,CAACF,EAAG,MAAM,CAACE,YAAY,6DAA6DI,GAAG,CAAC,MAAQ,SAASC,GAAQT,EAAIK,aAAc,KAAS,CAACH,EAAG,IAAI,CAACE,YAAY,gDAAgDF,EAAG,OAAO,CAACE,YAAY,wCAAwC,CAACJ,EAAIU,GAAG,kBAAmBV,EAAIW,QAAQC,OAAS,EAAGV,EAAG,MAAM,CAACE,YAAY,qDAAqDJ,EAAIa,GAAIb,EAAIW,SAAS,SAASG,EAAGC,GAAO,OAAOb,EAAG,MAAM,CAACc,IAAID,EAAMX,YAAY,oEAAoE,CAACF,EAA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QAAAmD,IAAAD,UAAA,GAAAA,UAAA,GAAG,EAAGE,EAAQF,UAAAlD,OAAA,QAAAmD,IAAAD,UAAA,IAAAA,UAAA,GAE9DG,EAAU,GACVC,EAAO,GACFC,EAAS,EAAIA,EAASN,EAAgBM,IAAS,CACpD,IAAIC,EAAaC,MAASC,SAAS,GAAG,UACjCC,QAAQ,SACRC,UACDC,EAAQ,GACZ,GAAIT,EACA,IAAK,IAAIU,EAAO,EAAGA,EAAO,GAAIA,IAAQ,CAClC,GAAc,IAAXP,EAAa,CACZ,IAAIQ,EAAYN,IAAOD,GAAYQ,OAAO,OAC1CV,EAAKW,KAAKF,GAEdF,EAAMI,KAAKC,0BAAa,GAAG,MAC3BV,EAAaC,IAAOD,GAAYW,IAAI,EAAE,UAAUP,eAIpD,IAAK,IAAIE,EAAO,EAAGA,EAAO,GAAIA,IAC1BD,EAAMI,KAAK,CAACT,EAAWU,0BAAa,EAAG,KAAQ,KAC/CV,EAAaC,IAAOD,GAAYW,IAAI,EAAE,UAAUP,UAGxDP,EAAOY,KAAKJ,GAEhB,MAAO,CACHR,OAAOA,EACPC,KAAKA,GCnCE,SAASc,IACpB,IAAIC,EAAU,GACVC,EAAU,CAAC,MAAM,YAAY,YAAY,OACzCC,EAAQ,EACZ,IAAK,IAAIC,KAAUF,EAAS,CACxB,IAAIG,EAASP,0BAAa,IAAK,KAAQM,EAAS,IAChDD,GAASE,EACTJ,EAAQJ,KAAK,CACTO,OAAQF,EAAQE,GAChBE,MAAOD,EACPE,KAAM,IAGd,IAAK,IAAIH,KAAUH,EACfA,EAAQG,GAAQG,KAA+B,IAAxBN,EAAQG,GAAQE,MAAcH,EAAQL,0BAAa,EAAG,IAEjF,OAAOG","file":"js/chunk-071fb511.9bb1414d.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"h-auto p-2\"},[(!_vm.smuSelected)?_c('div',{staticClass:\"h-auto w-full rounded-lg module p-2 flex flex-col mt-2 relative\"},[_c('loader',{attrs:{\"loading\":_vm.loadingsmu}}),_vm._m(0),(_vm.sl)?_c('div',{staticClass:\"box flex flex-row justify-start items-center mb-2\"},[_c('span',{staticClass:\"text-font-gray font-semibold text-xs mr-auto\"},[_vm._v(\"SL: \"+_vm._s(_vm.sl))]),_c('div',{staticClass:\"h-4 w-4 rounded-full bg-body flex flex-col justify-center items-center\",on:{\"click\":function($event){return _vm.setSL(null)}}},[_c('i',{staticClass:\"mdi mdi-close text-xxs text-danger\"})])]):_vm._e(),(_vm.options.length > 0 && !_vm.sl)?_c('div',{staticClass:\"h-6 flex flex-row justify-start items-center px-2\"},_vm._l((_vm.options),function(el,index){return _c('div',{key:index,staticClass:\"h-full w-10 rounded-md flex flex-row justify-center items-center\"},[_c('span',{staticClass:\"text-purple text-xs\",class:_vm.getColor(el)},[_vm._v(_vm._s(el))])])}),0):_vm._e(),_c('div',{staticClass:\"h-auto\"},_vm._l((_vm.smuElements),function(el,index){return _c('div',{key:index,staticClass:\"h-32 box flex flex-row mb-2\",on:{\"click\":function($event){return _vm.selectSMU(el)}}},[_vm._m(1,true),_c('div',{staticClass:\"h-full flex-1 flex flex-col\"},[_c('div',{staticClass:\"h-6 flex flex-row justify-start items-center p-1\"},[_c('span',{staticClass:\"text-xs font-semibold text-font-gray\"},[_vm._v(_vm._s(el.name))])]),_c('div',{staticClass:\"h-6 flex flex-row justify-center items-center\"},[_c('div',{staticClass:\"h-2 w-2 rounded-full bg-purple mr-1\"}),_c('span',{staticClass:\"text-3xs mr-2\"},[_vm._v(\"Current Chargeability\")]),_c('span',{staticClass:\"text-3xs mr-2 font-semibold\"},[_vm._v(_vm._s(_vm._f(\"numberFormat\")(el.ytd,2))+\"%\")]),_c('div',{staticClass:\"h-2 w-2 rounded-full bg-green mr-1\"}),_c('span',{staticClass:\"text-3xs mr-2\"},[_vm._v(\"Y-1 Chargeability\")]),_c('span',{staticClass:\"text-3xs font-semibold\"},[_vm._v(_vm._s(_vm._f(\"numberFormat\")(el.ytd_1,2))+\"%\")])]),_c('div',{staticClass:\"flex-1 mt-2\"},[_c('ChartColCompareSmallMobile',{attrs:{\"chartId\":\"chart\",\"data\":[el.mtd, el.mtd_1]}})],1)])])}),0)],1):_c('div',{staticClass:\"h-auto w-full rounded-lg module p-2 flex flex-col mt-2 relative\"},[_c('loader',{attrs:{\"loadint\":_vm.loadCategories}}),_c('div',{staticClass:\"h-8 flex flex-row justify-start items-center\"},[_c('div',{staticClass:\"h-full mr-2 flex flex-col justify-center items-center px-1\",on:{\"click\":function($event){_vm.smuSelected = false}}},[_c('i',{staticClass:\"mdi mdi-arrow-left text-font-gray text-xs\"})]),_c('span',{staticClass:\"text-sm font-semibold text-font-gray\"},[_vm._v(\"Categories\")])]),(_vm.options.length > 0)?_c('div',{staticClass:\"h-6 flex flex-row justify-start items-center px-2\"},_vm._l((_vm.options),function(el,index){return _c('div',{key:index,staticClass:\"h-full w-10 rounded-md flex flex-row justify-center items-center\"},[_c('span',{staticClass:\"text-purple text-xs\",class:_vm.getColor(el)},[_vm._v(_vm._s(el))])])}),0):_vm._e(),_c('div',{staticClass:\"h-auto mt-2\"},_vm._l((_vm.categories),function(el,index){return _c('div',{key:index,staticClass:\"h-32 box flex flex-row mb-2\",on:{\"click\":function($event){return _vm.selectSMU(index)}}},[_c('div',{staticClass:\"h-full w-full flex flex-col\"},[_c('div',{staticClass:\"h-6 flex flex-row justify-start items-center p-1\"},[_c('span',{staticClass:\"text-xs font-semibold text-font-gray\"},[_vm._v(_vm._s(el.name))])]),_c('div',{staticClass:\"flex-1 mt-2\"},[_c('ChartAreaMobile',{attrs:{\"chartId\":\"chart\",\"data\":[el.mtd, el.mtd_1]}})],1)])])}),0)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"h-8 flex flex-row justify-start items-center\"},[_c('span',{staticClass:\"text-sm font-semibold text-font-gray\"},[_vm._v(\"SMU\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"h-full w-1 mr-1\"},[_c('div',{staticClass:\"h-full w-1 rounded-full bg-success\"})])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n SMU\r\n \r\n\r\n \r\n\r\n SL: {{sl}}\r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n 0 && !sl\" class=\"h-6 flex flex-row justify-start items-center px-2\">\r\n\r\n \r\n {{el}}\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n {{el.name}}\r\n\r\n \r\n\r\n \r\n \r\n Current Chargeability\r\n {{el.ytd | numberFormat(2)}}%\r\n \r\n Y-1 Chargeability\r\n {{el.ytd_1 | numberFormat(2)}}%\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n Categories\r\n\r\n \r\n\r\n 0\" class=\"h-6 flex flex-row justify-start items-center px-2\">\r\n\r\n \r\n {{el}}\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n {{el.name}}\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Smus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Smus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Smus.vue?vue&type=template&id=00065a46&\"\nimport script from \"./Smus.vue?vue&type=script&lang=js&\"\nexport * from \"./Smus.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","import moment from 'moment'\r\nimport { randomNumber } from '@/main.js'\r\n\r\n\r\n//let TwelveMonthsChart = [\r\n// startMonth, randomNumber(11,100)\r\n//]\r\n\r\nexport default function TwelveMonthsChart(numberOfSeries = 1, withCats = false) {\r\n \r\n let series = [];\r\n let cats = []\r\n for (let serieN = 0; serieN < numberOfSeries; serieN++){\r\n let startMonth = moment().subtract(12,'months')\r\n .startOf('month')\r\n .valueOf();\r\n let serie = []\r\n if (withCats) {\r\n for (let step = 0; step < 12; step++) {\r\n if(serieN === 0){\r\n let monthName = moment(startMonth).format('MMM')\r\n cats.push(monthName)\r\n }\r\n serie.push(randomNumber(20,190))\r\n startMonth = moment(startMonth).add(1,'months').valueOf()\r\n }\r\n }\r\n else {\r\n for (let step = 0; step < 12; step++) {\r\n serie.push([startMonth,randomNumber(0, 1000) / 10])\r\n startMonth = moment(startMonth).add(1,'months').valueOf()\r\n }\r\n }\r\n series.push(serie)\r\n }\r\n return {\r\n series:series,\r\n cats:cats\r\n }\r\n}","import { randomNumber } from '@/main.js'\r\n\r\nexport default function RevenueDays() {\r\n let revenue = []\r\n let periods = ['<30','30< & <60','60< & <90','90<']\r\n let total = 0\r\n for (let period in periods) {\r\n let number = randomNumber(100, 9000 * (period + 1))\r\n total += number\r\n revenue.push({\r\n period: periods[period],\r\n value: number,\r\n perc: 0\r\n })\r\n }\r\n for (let period in revenue) {\r\n revenue[period].perc = revenue[period].value * 100 / total + randomNumber(0, 30)\r\n } \r\n return revenue\r\n}"],"sourceRoot":""}