{"version":3,"sources":["webpack:///./src/views/campaign-labelling/kpi-target/Table.vue?a5d1","webpack:///./src/views/campaign-labelling/kpi-target/Index.vue?ec1f","webpack:///src/views/campaign-labelling/kpi-target/CreateKpi.vue","webpack:///./src/views/campaign-labelling/kpi-target/CreateKpi.vue?ef2d","webpack:///./src/views/campaign-labelling/kpi-target/CreateKpi.vue","webpack:///./src/views/campaign-labelling/kpi-target/CreateKpi.vue?f44c","webpack:///src/views/campaign-labelling/kpi-target/Table.vue","webpack:///./src/views/campaign-labelling/kpi-target/Table.vue?1f15","webpack:///./src/views/campaign-labelling/kpi-target/Table.vue","webpack:///./src/views/campaign-labelling/kpi-target/Table.vue?ce3b","webpack:///src/views/campaign-labelling/kpi-target/Index.vue","webpack:///./src/views/campaign-labelling/kpi-target/Index.vue?d328","webpack:///./src/views/campaign-labelling/kpi-target/Index.vue","webpack:///./src/views/campaign-labelling/kpi-target/Index.vue?fbd5"],"names":["components","VuePerfectScrollbar","noDataTemp","FiltersV2","BDropdown","BFormGroup","Loading","BButton","BModal","BFormCheckbox","BFormInput","KpiTable","BRow","BCol","data","kpiRows","loadingModal","recData","noData","isLoading","filterParams","editableIndex","selectedEvents","isPdfGenerating","currentKey","selectedYear","selectedQuarter","eventOptions","selectedKpi","backupSelectedEvents","brand","previousEditableIndex","warningMessage","isEditing","kpiResponse","isAddingKpi","emptyKpis","editableId","unsavedChanges","allKpiGroups","isCreateKpiModalOpen","isNewRowSaved","isOpeningPage","watch","newIndex","oldIndex","newName","oldName","handler","newVal","oldVal","forEach","kpi","index","name","$set","deep","getAllKpiGroups","getKpis","methods","params","$http","get","brand_id","value","year","month","then","catch","finally","kpiOptions","options","selected_events","event","kpi_group","push","events","available_events","undo","id","backup","find","splice","JSON","parse","stringify","error","_response$data","response","body","kpi_groups","Array","isArray","filter","item","map","group","newKpi","length","saveKpis","selectedEventIds","eventName","row","post","event_id","$bvToast","toast","title","variant","solid","checkEditableIndex","toggleModal","component","_vm","this","_h","$createElement","_c","_self","attrs","getMetrics","_e","directives","rawName","modifiers","staticClass","staticStyle","_v","on","_l","key","model","callback","$$v","expression","join","ref","refInFor","option","i","_s","$event","addKpiRow","kpi_data","BFormSelect","BPagination","BTable","CreateKpi","props","kpiTable","type","required","Object","fields","label","thStyle","width","perPage","currentPage","submitKpiData","kpiUpdates","target","kpi_updates","scopedSlots","_u","fn","proxy","NoDataTemp","FeatherIcon","kpiGroups","availableEvents","mounted","original_selected_events","isEditable","toggleEdit","cancelEdit","saveChanges","payload","$toast","ToastificationContent","icon","selectedEventsText","eventTexts","slice","getEventOptions","selectedOptions","nonSelectedOptions","e","addKpiGroup","staticRenderFns"],"mappings":"4GAAA,W,2CCAA,I,6PC6Je,GACfA,WAAA,CACAC,wBACAC,eACAC,cACAC,cACAC,eACAC,YACAC,YACAC,WACAC,kBACAC,eACAC,WACAC,SACAC,UAEAC,UACA,CACAC,QAAA,GACAC,gBACAC,QAAA,KACAC,UACAC,aACAC,aAAA,KACAC,cAAA,KACAC,eAAA,GACAC,mBACAC,WAAA,EACAC,aAAA,OACAC,gBAAA,EACAC,aAAA,GACAC,YAAA,GACAC,qBAAA,KACAC,MAAA,KACAC,sBAAA,KACAC,eAAA,GACAC,aACAC,YAAA,GACAC,eACAC,UAAA,GACAC,WAAA,KACAC,kBACAC,aAAA,GACAC,wBACAC,iBACAC,mBAIAC,MAAA,CACAtB,cAAAuB,EAAAC,GAEA,KAAAZ,UADA,OAAAW,GAMA,oBAAAE,EAAAC,GACA,KAAAzB,eAAAyB,KACA,KAAAzB,eAAAwB,GAAA,KAAAxB,eAAAyB,UACA,KAAAzB,eAAAyB,KAGAhC,QAAA,CACAiC,QAAAC,EAAAC,GACAD,EAAAE,SAAA,CAAAC,EAAAC,KACA,KAAA/B,eAAA8B,EAAAE,OACA,KAAAC,KAAA,KAAAjC,eAAA8B,EAAAE,KAAA,QAIAE,SAEA1B,MAAAmB,EAAAC,GACAD,IAAAC,IACA,KAAApB,MAAAmB,EACA,KAAAQ,qBA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D,WAAW9E,OAAYA,EAAgB,WAAEqB,EAAG,eAAe,CAACQ,YAAY,iBAAiBN,MAAM,CAAC,KAAO,KAAK,KAAO,mBAAmBS,GAAG,CAAC,MAAQ,SAASa,GAAQ,OAAO5B,EAAI8D,WAAW/E,EAAO3C,OAAW4D,EAAIQ,MAAM,IAAI,IAAI,EAAG,IAAEJ,EAAG,MAAM,CAACQ,YAAY,oBAAoB,CAACR,EAAG,WAAW,CAACE,MAAM,CAAC,QAAU,WAAWS,GAAG,CAAC,MAAQf,EAAI2E,cAAc,CAAC3E,EAAIc,GAAG,kBAAkB,IAAI,GAAGV,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,gBAAgBN,EAAI7F,aAAa,YAAY6F,EAAIhG,QAAQ8H,aAAa,IAAI,IAAI,IAAa,EAAE,GACltF,IWUpB8C,EAEA,KACA,KACA,OAIa,Y,2FCnBf","file":"js/chunk-2604d45f.a381e192.js","sourcesContent":["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/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Table.vue?vue&type=style&index=0&id=d27b6e28&prod&scoped=true&lang=css\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('filters-v2',{attrs:{\"get-metrics\":_vm.getMetrics,\"name\":\"kpiTargetPage\"}}),(_vm.isLoading)?_c('loading'):(_vm.noData && !_vm.isLoading)?_c('no-data-temp',{attrs:{\"text\":'Try different product, campaign, event or date range.'}}):(!_vm.noData && !_vm.isLoading && _vm.recData !== null)?_c('span',[_c('b-button',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.modal-center\",modifiers:{\"modal-center\":true}}],staticClass:\"ml-auto mr-2 mb-1\",staticStyle:{\"height\":\"38px\"},attrs:{\"variant\":\"primary\"}},[_vm._v(\" Create KPI \")]),_c('b-modal',{attrs:{\"id\":\"modal-center\",\"centered\":\"\",\"title\":'Goal Table',\"hide-footer\":\"\",\"size\":\"lg\"},on:{\"hide\":_vm.toggleModal,\"show\":_vm.toggleModal}},[_vm._l((_vm.kpiGroups),function(group,index){return _c('div',{key:index,staticClass:\"mb-3 p-3 border rounded\"},[_c('b-row',[_c('b-col',{attrs:{\"md\":\"3\"}},[_c('b-form-input',{attrs:{\"disabled\":!group.isEditable,\"placeholder\":\"Enter KPI Group Name\"},model:{value:(group.kpi_group),callback:function ($$v) {_vm.$set(group, \"kpi_group\", $$v)},expression:\"group.kpi_group\"}})],1),_c('b-col',{attrs:{\"md\":\"7\"}},[_c('b-dropdown',{staticClass:\"comparison-dropdown\",attrs:{\"variant\":\"outline-light\",\"block\":\"\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('div',{staticClass:\"selected-events-text\"},[_vm._v(\" \"+_vm._s(_vm.selectedEventsText(group))+\" \")])]},proxy:true}],null,true)},[_c('vue-perfect-scrollbar',{staticClass:\"checkist-scroll-area\",staticStyle:{\"max-height\":\"200px\"}},[_c('div',{staticClass:\"p-2\"},_vm._l((_vm.getEventOptions(group)),function(option,i){return _c('b-form-checkbox',{key:i,staticClass:\"mb-50\",attrs:{\"value\":option,\"disabled\":!group.isEditable},model:{value:(group.selected_events),callback:function ($$v) {_vm.$set(group, \"selected_events\", $$v)},expression:\"group.selected_events\"}},[_vm._v(\" \"+_vm._s(option.events)+\" \")])}),1)])],1)],1),_c('b-col',{staticClass:\"text-right d-flex justify-content-end align-items-center\",attrs:{\"md\":\"2\"}},[_c('feather-icon',{staticClass:\"cursor-pointer mr-2\",attrs:{\"size\":\"20\",\"icon\":group.isEditable ? 'SaveIcon' : 'EditIcon'},on:{\"click\":function($event){group.isEditable ? _vm.saveChanges(group) : _vm.toggleEdit(group)}}}),(group.isEditable)?_c('feather-icon',{staticClass:\"cursor-pointer\",attrs:{\"size\":\"20\",\"icon\":\"ChevronLeftIcon\"},on:{\"click\":function($event){return _vm.cancelEdit(group, index)}}}):_vm._e()],1)],1)],1)}),_c('div',{staticClass:\"text-center mt-3\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.addKpiGroup}},[_vm._v(\" + Add KPI \")])],1)],2),_c('b-row',[_c('b-col',[_c('kpi-table',{attrs:{\"filter-params\":_vm.filterParams,\"kpi-table\":_vm.recData.kpi_data}})],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n Create KPI\n \n\n \n \n \n \n \n \n \n \n \n {{ option }}\n \n \n \n \n \n \n \n \n \n {{ warningMessage }}\n \n \n\n \n \n \n Add KPI\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\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!./CreateKpi.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!./CreateKpi.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CreateKpi.vue?vue&type=template&id=6326885b\"\nimport script from \"./CreateKpi.vue?vue&type=script&lang=js\"\nexport * from \"./CreateKpi.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('filters-v2',{attrs:{\"get-metrics\":_vm.getMetrics,\"name\":\"kpiTargetPage\"}}),(_vm.isLoading)?_c('loading'):(_vm.noData && !_vm.isLoading)?_c('no-data-temp',{attrs:{\"text\":'Try different product, campaign, event or date range.'}}):(!_vm.noData && !_vm.isLoading && _vm.recData !== null)?_c('span',[_c('b-button',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.modal-center\",modifiers:{\"modal-center\":true}}],staticClass:\"ml-auto mr-2 mb-1\",staticStyle:{\"height\":\"38px\"},attrs:{\"variant\":\"primary\"}},[_vm._v(\" Create KPI \")]),_c('b-modal',{attrs:{\"id\":\"modal-center\",\"centered\":\"\",\"title\":\" Goal Table\",\"hide-footer\":\"\",\"size\":\"lg\"},on:{\"hide\":_vm.toggleModal,\"show\":_vm.toggleModal}},[(!_vm.loadingModal)?_c('div',[_vm._l((_vm.kpiRows),function(kpi,index){return _c('div',{key:index,staticClass:\"kpi-row mb-1\"},[_c('b-form-input',{staticClass:\"mr-2\",staticStyle:{\"width\":\"30%\",\"display\":\"inline-block\"},attrs:{\"disabled\":_vm.editableIndex !== index || _vm.editableId !== kpi.id,\"placeholder\":\"Enter KPI Name\"},model:{value:(kpi.name),callback:function ($$v) {_vm.$set(kpi, \"name\", $$v)},expression:\"kpi.name\"}}),_c('b-form-group',{staticStyle:{\"width\":\"59%\",\"display\":\"inline-block\"},attrs:{\"disabled\":_vm.editableIndex !== index}},[_c('b-dropdown',{staticClass:\"comparison-dropdown mb-lg-0\",attrs:{\"id\":\"dropdown-1\",\"text\":(Array.isArray(_vm.selectedEvents[kpi.name])\n ? _vm.selectedEvents[kpi.name]\n : [_vm.selectedEvents[kpi.name]]\n ).join(', '),\"variant\":\"outline-light\",\"block\":\"\",\"multiple\":\"\"}},[_c('vue-perfect-scrollbar',{ref:\"scrollbar\",refInFor:true,staticClass:\"checkist-scroll-area\",staticStyle:{\"max-height\":\"200px\"}},[_c('div',{staticClass:\"p-2\"},_vm._l((kpi.event),function(option,i){return _c('b-form-checkbox',{key:i,staticClass:\"mb-50\",attrs:{\"value\":option},model:{value:(_vm.selectedEvents[kpi.name]),callback:function ($$v) {_vm.$set(_vm.selectedEvents, kpi.name, $$v)},expression:\"selectedEvents[kpi.name]\"}},[_vm._v(\" \"+_vm._s(option)+\" \")])}),1)])],1)],1),(_vm.editableIndex === index)?_c('FeatherIcon',{staticStyle:{\"cursor\":\"pointer\",\"margin-top\":\"-3px\",\"margin-left\":\"1rem\"},attrs:{\"icon\":\"SaveIcon\",\"size\":\"20\"},on:{\"click\":function($event){return _vm.saveKpis(kpi)}}}):_c('FeatherIcon',{staticStyle:{\"cursor\":\"pointer\",\"margin-top\":\"-3px\",\"margin-left\":\"1rem\"},attrs:{\"icon\":\"EditIcon\",\"size\":\"20\"},on:{\"click\":function($event){return _vm.checkEditableIndex(index)}}}),(_vm.editableIndex === index)?_c('FeatherIcon',{staticStyle:{\"cursor\":\"pointer\",\"margin-top\":\"-3px\",\"margin-left\":\"1rem\"},attrs:{\"icon\":\"CornerDownLeftIcon\",\"size\":\"20\"},on:{\"click\":function($event){return _vm.undo(index)}}}):_vm._e(),(_vm.editableIndex === index && _vm.warningMessage)?_c('p',{staticClass:\"text-danger\"},[_vm._v(\" \"+_vm._s(_vm.warningMessage)+\" \")]):_vm._e()],1)}),_c('b-row',{staticClass:\"mt-2\"},[_c('b-col',{staticClass:\"text-left\"},[_c('b-button',{attrs:{\"disabled\":_vm.isAddingKpi || _vm.warningMessage !== '' || !_vm.isNewRowSaved,\"variant\":\"primary\"},on:{\"click\":_vm.addKpiRow}},[_vm._v(\" Add KPI \")])],1)],1)],2):_c('div',[_c('loading')],1)]),_c('b-row',[_c('b-col',[_c('kpi-table',{attrs:{\"filter-params\":_vm.filterParams,\"kpi-table\":_vm.recData.kpi_data}})],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Submit\n \n \n \n \n \n\n\n\n\n\n\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!./Table.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!./Table.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Table.vue?vue&type=template&id=d27b6e28&scoped=true\"\nimport script from \"./Table.vue?vue&type=script&lang=js\"\nexport * from \"./Table.vue?vue&type=script&lang=js\"\nimport style0 from \"./Table.vue?vue&type=style&index=0&id=d27b6e28&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 \"d27b6e28\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-row',[_c('b-modal',[_c('create-kpi')],1)],1),_c('b-row',[_c('b-col',[_c('b-table',{staticClass:\"compact-table\",attrs:{\"responsive\":\"\",\"striped\":\"\",\"fields\":_vm.fields,\"items\":_vm.kpiTable,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"small\":\"\"},scopedSlots:_vm._u([{key:\"cell(target)\",fn:function(data){return [_c('b-form-input',{staticClass:\"compact-input\",attrs:{\"placeholder\":\"Enter target value\"},model:{value:(data.item.target),callback:function ($$v) {_vm.$set(data.item, \"target\", $$v)},expression:\"data.item.target\"}})]}}])}),_c('div',[_c('b-pagination',{staticClass:\"mb-0\",attrs:{\"total-rows\":_vm.kpiTable.length,\"per-page\":_vm.perPage,\"first-number\":\"\",\"last-number\":\"\",\"prev-class\":\"prev-item\",\"next-class\":\"next-item\"},scopedSlots:_vm._u([{key:\"prev-text\",fn:function(){return [_c('feather-icon',{attrs:{\"icon\":\"ChevronLeftIcon\",\"size\":\"18\"}})]},proxy:true},{key:\"next-text\",fn:function(){return [_c('feather-icon',{attrs:{\"icon\":\"ChevronRightIcon\",\"size\":\"18\"}})]},proxy:true}]),model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1),_c('div',{staticClass:\"text-center mt-3\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.submitKpiData}},[_vm._v(\" Submit \")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n Create KPI\n \n\n \n \n \n \n \n \n \n \n \n \n {{ selectedEventsText(group) }}\n \n \n\n \n \n \n {{ option.events }}\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n + Add KPI\n \n \n \n\n \n \n \n \n \n \n \n\n\n\n\n\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!./Index.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!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=09a80cd2\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=09a80cd2&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","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/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=09a80cd2&prod&lang=css\""],"sourceRoot":""}
\n {{ warningMessage }}\n