{"version":3,"sources":["webpack:///./src/components/Utilities/StepProgressCustom.vue","webpack:///./src/components/Utilities/StepProgressCustom.vue?9c8c","webpack:///./src/components/Utilities/StepProgressCustom.vue?7fb0","webpack:///./src/components/Utilities/StepProgressCustom.vue?ebaf","webpack:///./src/components/Utilities/StepProgressCustom.vue?1694","webpack:///./src/components/Utilities/StepProgressCustom.vue?335f"],"names":["component","vue_property_decorator_1","require","ContractStep_1","moment_1","tslib_1","__importDefault","i18n_setup_1","Enums_1","StepProgressCustom","_vue_property_decorat","_this","_classCallCheck","loaded","STEP_ENUM_LIST","STEP_ENUM","latestStepInfos","lastStep","isRejected","isContractStepBack","moment","default","_inherits","_createClass","key","value","this","initStepInfo","newValue","oldValue","getLatestStepInfos","getLatestStep","setIsRejected","setIsContractStepBack","_this2","contractSteps","map","cs","idStep","filter","index","self","indexOf","forEach","x","undefined","note","i18n","t","push","sort","a","b","dataStep","_this3","rejectableLastStep","SIGNAGE_ORDER","APPROVAL","closestLesserStep","findClosestLesserStep","steps","currentStep","stepInfo","REFUSED","lastStepBeforeRefuse","CLOSED","Math","max","apply","_toConsumableArray","ContractStep","findClosestGreaterStep","INSTALLED_SIGNAGE","greaterStep","length","reduce","prev","curr","abs","lesserStep","step","check","contractType","NET20_CONTRACT_TYPE","RENEWAL","get","_this4","findIndex","Vue","__decorate","Prop","type","Array","Number","String","Watch","Component","render","_vm","_h","$createElement","_c","_self","staticClass","style","passiveColor","height","lineThickness","_l","class","isPopoverNotesVisibile","activeColor","activeThickness","passiveThickness","attrs","_v","_s","descriptionShort","iconClass","descriptionLong","scopedSlots","_u","fn","getStepInfoByIdStep","usernameStep","format","proxy","_e","transform","scaleX","staticRenderFns"],"mappings":"kHAAA,8IAQIA,EAAY,eACd,aACA,OACA,QACA,EACA,KACA,KACA,MAIa,aAAAA,E,gTCuBfC,EAAAC,EAAA,QAGAC,EAAAD,EAAA,QACAE,EAAAC,EAAAC,gBAAAJ,EAAA,SACAK,EAAAL,EAAA,QACAM,E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?vue&type=template&id=1b70d028\"\nimport script from \"./StepProgressCustom.vue?vue&type=script&lang=ts\"\nexport * from \"./StepProgressCustom.vue?vue&type=script&lang=ts\"\nimport style0 from \"./StepProgressCustom.vue?vue&type=style&index=0&id=1b70d028&prod&lang=sass\"\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","\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\n\n\n\n\n\n\n\n\n\n\n\n\n// Versione custom del componente https://github.com/bastidest/vue-step-progress/\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\nimport Step from '@/interfaces/IStep';\nimport { PropType } from 'vue';\nimport { ContractStep, STEP_ENUM } from '@/entity/Net20/ContractStep';\nimport moment from 'moment';\nimport { i18n } from '@/i18n/i18n-setup';\nimport { NET20_CONTRACT_TYPE } from '@/services/Enums';\n\n@Component\nexport default class StepProgressCustom extends Vue {\n @Prop({\n type: Array as PropType>,\n default: []\n })\n steps: Step[];\n\n @Prop({\n type: Array as PropType>,\n default: []\n })\n contractSteps: ContractStep[];\n\n @Prop({\n type: Number,\n default: 0\n })\n contractType: number;\n\n @Prop({\n type: Number,\n default: 0\n })\n currentStep: number;\n\n @Prop({\n type: Number,\n default: 0\n })\n lastStepBeforeRefuse: number;\n\n @Prop({\n type: String,\n default: 'fa fa-check'\n })\n iconClass: String;\n\n @Prop({\n type: String,\n default: 'red'\n })\n activeColor: String;\n\n @Prop({\n type: String,\n default: 'gray'\n })\n passiveColor: String;\n\n @Prop({\n type: Number,\n default: 5\n })\n activeThickness: Number;\n\n @Prop({\n type: Number,\n default: 5\n })\n passiveThickness: Number;\n\n @Prop({\n type: Number,\n default: 12\n })\n lineThickness: Number;\n\n loaded: boolean = false;\n STEP_ENUM_LIST = STEP_ENUM;\n latestStepInfos: Array = [];\n lastStep: ContractStep = null;\n isRejected: boolean = false;\n isContractStepBack = false;\n moment = moment;\n\n mounted() {\n this.initStepInfo();\n }\n\n @Watch('contractSteps')\n onChangeContractSteps(newValue, oldValue) {\n if(newValue != oldValue)\n this.initStepInfo()\n }\n\n initStepInfo() {\n this.getLatestStepInfos();\n this.getLatestStep();\n this.setIsRejected();\n this.setIsContractStepBack();\n this.loaded = true;\n }\n\n getLatestStepInfos() {\n let lastStep: ContractStep;\n this.latestStepInfos = [];\n this.contractSteps.map(cs => cs.idStep).filter((value, index, self) => self.indexOf(value) === index).forEach(x => {\n \n lastStep = this.contractSteps.filter(cs => cs.idStep == x)[0];\n if(lastStep !== undefined && (lastStep.note == null || lastStep.note === ''))\n lastStep.note = i18n.t(\"NET20.NO_NOTES_STEP\") as string;\n this.latestStepInfos.push(lastStep);\n });\n }\n\n getLatestStep() {\n this.lastStep = this.contractSteps.sort((a, b) => (b.dataStep > a.dataStep ? 1 : -1))[0];\n }\n\n setIsRejected() {\n //i due step da cui e' possibile effettuare il reject\n let rejectableLastStep = this.latestStepInfos.filter(x => x.idStep != this.lastStep.idStep).sort((a, b) => (b.dataStep > a.dataStep ? 1 : -1))[0];\n if(rejectableLastStep != null && (rejectableLastStep.idStep == STEP_ENUM.SIGNAGE_ORDER ||rejectableLastStep.idStep == STEP_ENUM.APPROVAL)) {\n let closestLesserStep = this.findClosestLesserStep(this.steps, rejectableLastStep.idStep);\n if(closestLesserStep != null && this.lastStep.idStep == this.currentStep && this.currentStep == closestLesserStep.idStep)\n this.isRejected = true;\n }\n }\n\n setIsContractStepBack() {\n if(this.lastStep != null && this.lastStep.idStep > this.currentStep)\n this.isContractStepBack = true;\n }\n\n getStepInfoByIdStep(idStep: number): ContractStep {\n let stepInfo;\n if(!this.isRejected && this.currentStep != STEP_ENUM.REFUSED) {\n if(idStep == STEP_ENUM.INSTALLED_SIGNAGE) {\n stepInfo = this.latestStepInfos.filter(x => x.idStep == STEP_ENUM.CLOSED)[0];\n } else if (idStep == STEP_ENUM.CLOSED) {\n stepInfo = new ContractStep();\n } else {\n stepInfo = this.findClosestGreaterStep(this.latestStepInfos, idStep);\n }\n } else if(this.isRejected) {\n stepInfo = this.latestStepInfos.filter(x => x.idStep == idStep)[0];\n } else if(this.currentStep == STEP_ENUM.REFUSED) {\n if(idStep == STEP_ENUM.REFUSED)\n stepInfo = this.latestStepInfos.filter(x => x.idStep == STEP_ENUM.REFUSED)[0];\n else if(this.lastStepBeforeRefuse == STEP_ENUM.CLOSED && idStep == Math.max(...this.latestStepInfos.filter(x => x.idStep != STEP_ENUM.REFUSED && x.idStep != STEP_ENUM.CLOSED).map(x => x.idStep)))\n stepInfo = this.latestStepInfos.filter(x => x.idStep == STEP_ENUM.CLOSED)[0];\n else if(idStep == this.lastStepBeforeRefuse)\n stepInfo = new ContractStep();\n else\n stepInfo = this.findClosestGreaterStep(this.latestStepInfos, idStep);\n }\n return stepInfo;\n }\n\n findClosestGreaterStep(steps: Array, idStep: number) {\n const greaterStep = steps.filter(x => x.idStep > idStep);\n return greaterStep.length > 0 ? greaterStep.reduce((prev, curr) => Math.abs(curr.idStep - idStep) < Math.abs(prev.idStep - idStep) ? curr : prev) : new ContractStep();\n }\n\n findClosestLesserStep(steps: Array, idStep: number) {\n const lesserStep = steps.filter(x => x.idStep < idStep);\n return lesserStep.length > 0 ? lesserStep.reduce((prev, curr) => Math.abs(curr.idStep - idStep) < Math.abs(prev.idStep - idStep) ? curr : prev) : null;\n }\n\n isPopoverNotesVisibile(step: Step) {\n let check = false;\n if(this.contractType != NET20_CONTRACT_TYPE.RENEWAL) {\n if(this.currentStep == step.idStep) {\n if(this.isRejected || this.currentStep == STEP_ENUM.REFUSED) \n check = true;\n } else if(step.idStep < this.currentStep) {\n if(this.currentStep == STEP_ENUM.REFUSED && step.idStep < this.lastStepBeforeRefuse)\n check = true;\n else if(this.currentStep != STEP_ENUM.REFUSED)\n check = true;\n } \n }\n return check;\n } \n\n checkContractStepBack() {\n var check = false;\n if(this.lastStep != null && this.lastStep.idStep > this.currentStep)\n check = true;\n return check\n }\n\n get scaleX(){\n let step = this.steps.findIndex(x => x.idStep == this.currentStep) + 1;\n if(step < 0) {\n step = 0;\n } else if (step >= this.steps.length) {\n step = this.steps.length - 1;\n }\n return step / ((this.steps.length) - 1);\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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepProgressCustom.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepProgressCustom.vue?vue&type=script&lang=ts\"","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/lib/loaders/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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepProgressCustom.vue?vue&type=style&index=0&id=1b70d028&prod&lang=sass\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.loaded)?_c('div',{staticClass:\"step-progress__wrapper\"},[_c('div',{staticClass:\"step-progress__wrapper-before\",style:({\"background-color\": _vm.passiveColor, height: _vm.lineThickness + \"px\" })}),_c('div',{staticClass:\"step-progress__bar\"},[_vm._l((_vm.steps),function(step,index){return _c('div',{key:index,staticClass:\"step-progress__step\",class:{\n \"step-progress__step--active\": step.idStep == _vm.currentStep && _vm.currentStep != _vm.STEP_ENUM_LIST.REFUSED && _vm.currentStep != _vm.STEP_ENUM_LIST.CLOSED\n ,\"step-progress__step--valid\": _vm.currentStep == _vm.STEP_ENUM_LIST.CLOSED || (step.idStep < _vm.currentStep && (_vm.lastStepBeforeRefuse == 0 || step.idStep < _vm.lastStepBeforeRefuse))\n ,\"step-progress__step--refused\": (step.idStep == _vm.currentStep && _vm.currentStep == _vm.STEP_ENUM_LIST.REFUSED)\n ,\"clickable\": _vm.isPopoverNotesVisibile(step)},style:({\n \"--activeColor\" : _vm.activeColor,\n \"--passiveColor\" : _vm.passiveColor,\n \"--refusedColor\" : \"red\",\n \"--activeBorder\" : _vm.activeThickness + \"px\",\n \"--passiveBorder\" : _vm.passiveThickness + \"px\"\n }),attrs:{\"id\":'step'+index}},[_c('span',[_vm._v(_vm._s(step.descriptionShort))]),_c('div',{class:'step-progress__step-icon '+_vm.iconClass}),_c('div',{staticClass:\"step-progress__step-iconRefused fa fa-times\"}),_c('div',{staticClass:\"step-progress__step-label\"},[_vm._v(_vm._s(step.descriptionLong))]),(_vm.isPopoverNotesVisibile(step))?[_c('b-popover',{attrs:{\"target\":'step'+index,\"triggers\":\"hover\",\"placement\":\"top\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('u',[_vm._v(_vm._s(step.descriptionLong))]),_c('br'),_vm._v(\" \"+_vm._s(_vm.getStepInfoByIdStep(step.idStep).usernameStep + \" (\" + _vm.moment(_vm.getStepInfoByIdStep(step.idStep).dataStep).format('MM/DD/YYYY') + \") \")+\" \")]},proxy:true}],null,true)},[_vm._v(\" \"+_vm._s(_vm.getStepInfoByIdStep(step.idStep).note)+\" \")])]:_vm._e()],2)}),_c('div',{staticClass:\"step-progress__wrapper-after\",style:({\n transform: \"scaleX(\" + _vm.scaleX + \") translateY(-50%) perspective(1000px)\",\n \"background-color\": _vm.lastStepBeforeRefuse > 0 ? \"red\" : _vm.activeColor,\n height: _vm.lineThickness + \"px\"})})],2)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepProgressCustom.vue?vue&type=template&id=1b70d028\""],"sourceRoot":""}