{"version":3,"sources":["webpack:///./src/components/MapViewer.vue?e1b0","webpack:///./src/components/MapViewer.vue?5a80","webpack:///./src/components/MapViewer.vue?c301","webpack:///./src/components/Net20/CustomerDetails.vue?1c27","webpack:///./src/components/MapViewer.vue?23c5","webpack:///./src/components/Net20/CustomerDetails.vue?4a79","webpack:///./src/components/Net20/CustomerDetails.vue?2baf","webpack:///./src/components/MapViewer.vue","webpack:///./src/components/Net20/CustomerDetails.vue?5eb3","webpack:///./src/components/Net20/CustomerDetails.vue?5512","webpack:///./src/components/Net20/CustomerDetails.vue?1dd7"],"names":["render","_vm","this","_h","$createElement","_c","_self","style","attrs","staticRenderFns","marker_png_1","tslib_1","__importDefault","require","vue_1","leafLet","__importStar","exports","default","extend","props","styleObject","type","Object","required","lat","Number","lng","data","initialMap","customIcon","marker","standardZoom","mounted","setMap","watch","methods","_this","Icon","iconUrl","iconSize","popupAnchor","map","setView","tileLayer","maxZoom","attribution","addTo","icon","setTimeout","_a","invalidateSize","refreshMap","updateMapPosition","setLatLng","disableMapInteractions","dragging","disable","scrollWheelZoom","touchZoom","doubleClickZoom","zoomControl","component","loading","staticClass","staticStyle","ref","stepsList","selectedContract","idStep","lastStepBeforeRefuse","steps","contractType","_e","_v","_s","$t","renewalsCounter","dropDownContractYears","on","$event","changeSelectedContract","selectedContractId","model","value","callback","$$v","expression","editMode","renewContractAllowed","openModalRenewContract","loadingScore","scopedSlots","_u","key","fn","proxy","customer","$set","changeTab","tabActivated","openModalEntityHistory","dropDownCountries","countryListData","isSaveClicked","customerDataEditable","contractInfoEditable","onCalculatingScore","onCountryChange","socials","id","services","forceTabContractUpdate","contractSignInfoEditable","idCountry","attachmentUpload","attachmentDeleteAllowed","excludedContractSteps","nextStepModalTitle","refuseContract","previousStep","nextStepEvent","renewContract","nextStep","nextStepAllowed","idCustomer","saveAsDraft","btnSaveLabel","vue_property_decorator_1","axios_1","General_1","Customer_1","CustomerData_vue_1","i18n_setup_1","ContractStep_1","StepProgressCustom_vue_1","Contract_1","CustomerSocials_vue_1","CustomerServices_vue_1","CustomerContracts_vue_1","ContractNextStep_vue_1","Enums_1","ContractRenewal_vue_1","EntityHistoryDetail_vue_1","DropDownItem_1","Net20DropDowns_1","Channel_1","ContractStepBack_vue_1","ClaimEnum_1","CustomerDetails","_vue_property_decorat","_classCallCheck","authorizedUser","parentMounted","Customer","Contract","Array","dropDownTypeOfProposal","dropDownChannel","isContractRefusable","refuseAllowed","previousStepAllowed","STEP_ENUM_LIST","STEP_ENUM","fieldConfigurations","isCountryWithDistricts","_inherits","_createClass","attachments","contractId","method","url","General","GetApiUrl","withCredentials","responseType","_context","stop","_callee","app","obj","$refs","forceRefresh","GetExcludedContractSteps","_context2","sent","getStepsDescription","_callee2","dropDownTypeOfProposalProp","_context3","next","GetDropdownList","SOURCE","TYPE_OF_PROPOSAL","dropDownChannelProp","GetDropDownChannels","getDropdownCountries","getCustomerById","setFormAuthorization","getLastStepBeforeRefuse","selectTabByContractStep","getRenewalsCounter","contracts","$emit","setBtnSaveLabel","_callee3","filter","x","NET20_CONTRACT_TYPE","RENEWAL","length","CONTRACT_UPLOAD","INSTALLED_SIGNAGE","asSalesmanOnly","country","DropDownItem","countryList","_context4","get","response","forEach","element","idDropDownItem","itemText","name","push","abrupt","SetOptionsDropDown","prev","t0","HandleError","_callee4","APPROVAL","i18n","t","SIGNAGE_ORDER","resetFormAuthorization","authorization","customerData","NET20_AUTHORIZATION","WRITE","contractInfo","contractSignInfo","lastStep","REFUSED","lastStepsBeforeRefuse","s","selectedId","arguments","undefined","selectContract","purgeNotUploadedAttachments","a","_this2","index","findIndex","c","sort","c1","c2","contractYear","_this3","contractTypeDefinition","GetContractTypeDefinition","text","condition","clickButton","converted","_context5","initDropDownContractYears","status","_callee5","confirm","__awaiter","_this4","_regeneratorRuntime","mark","_callee6","wrap","_context6","saveAsDraftDo","_context7","_callee7","_context8","isValidServicesData","isValidServiceData","showAlertDanger","isValidForm","showWarningLimits","checkBypassValidation","updateNet20Entities","vatNumberError","showAlertSuccess","closeDetailModal","numericId","insertCustomerDo","_callee8","isRefuse","_context9","openModalNextStep","isValidAttachmentData","_callee9","proceedToApproval","message","_this5","_callee10","_context10","insertCustomer","_context11","_callee11","IsPotentialVolumeCompliant","idChannel","typeOfProposal","potentialVolume","check","_context12","_callee12","_context13","post","getCustomerIdByNumericId","insertContract","uploadContractStep","EVALUATION_FORM","updateAttachments","toLowerCase","includes","finish","_callee13","_context14","endpointUrl","_callee14","$bvModal","show","hide","renewedContract","_context15","isValidCustomerContractData","closeModalRenewContract","_callee15","step","_this6","_callee16","_context16","closeModalNextStep","goToNextStep","_context17","_callee17","_context18","nextStepCascadingOperation","insertNextStep","_callee18","updateCustomer","_context19","isAdminNet20","CheckAuthorization","ClaimEnum","CanAdminNet20","updateContract","updateContractSignInstallationInfo","_callee19","currentVersion","_context20","_callee20","updateSignInfo","_context21","_callee21","_context22","_callee22","_context23","_callee23","_context24","_callee24","_context25","calculateScore","_callee25","customerToSend","assign","convertNotNullableValue","_context26","assessmentScore","_callee26","contract","isValidCustomerData","validCustomerData","_context27","validCustomerContractData","_callee27","GetDistricts","districts","_context28","_callee28","_context29","GetFieldConfigurations","checkCountryWithDistricts","isValid","CheckIsNullOrEmpty","workshopName","vatNumber","locationAddress","city","postCode","idDistrict","district","ownersName","email","telephone","mobile","welcomeKitSize","isMandatoryFieldNet20","idWorkshopArea","idTrafficFlow","workshopVisibility","idWorkshopAppearance","mqTotal","entrancesNumber","exFCAWorkshop","waitingRoom","workersNumber","carBrigdgeLifterNumber","increasingBridgeLifter","warehouse","signage","signHighTrafficStreet","trainingParticipation","toString","idTrainingType","trainingProvidedBy","idTrainingPerYear","consumerReview","advertInvestments","digitalPlatform","petronasDigitalPlatform","validateVatNumber","_callee29","isRenewal","actualVolume","signCustomization","signType","signSize","signNameText","silverTypeOfProposal","signBrandCustomization","signInstalled","_context30","_callee30","canAttachFile","toDelete","deltaFilesCounter","sessionId","filesUploadedInCurrentStep","isRedoingStep","counter","imported","regexPattern","getVatNumberRuleByCountry","regex","RegExp","test","find","vatNumberRule","field","IsMandatoryField","Vue","__decorate","Prop","Boolean","String","Component","components","CustomerData","StepProgressCustom","CustomerSocials","CustomerServices","CustomerContracts","ContractNextStep","ContractRenewal","EntityHistoryDetail","ContractStepBack"],"mappings":"kHAAA,iHAAmY,eAAG,G,oCCAtY,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,MAAON,EAAe,YAAEO,MAAM,CAAC,GAAK,YACpJC,EAAkB,GCDtB,qE,kCCAA,W,yHCOAC,EAAAC,EAAAC,gBAAAC,EAAA,SACAC,EAAAH,EAAAC,gBAAAC,EAAA,SACAE,EAAAJ,EAAAK,aAAAH,EAAA,SACAA,EAAA,QAEAI,EAAAC,QAAeJ,EAAAI,QAAIC,OAAO,CAExBC,MAAO,CACLC,YAAY,CACVC,KAAKC,OACLC,UAAS,GAEXC,IAAK,CACHH,KAAMI,OACNF,UAAU,EACVN,QAAS,SAEXS,IAAK,CACHL,KAAMI,OACNF,UAAU,EACVN,QAAS,UAGbU,KAAI,WACF,MAAO,CACLC,WAAY,KACZC,WAAY,KACZC,OAAO,KACPC,aAAc,KAGlBC,QAAO,WACL/B,KAAKgC,UAGPC,MAAO,CACLV,IAAK,oBACLE,IAAK,qBAEPS,QAAS,CACPF,OAAM,eAAAG,EAAA,KACHnC,KAAK4B,WAAa,IAAIf,EAAQuB,KAAK,CAClCC,QAAS7B,EAAAQ,QACTsB,SAAU,CAAC,GAAI,IACfC,YAAa,EAAE,GAAI,MAGrBvC,KAAK2B,WAAad,EAAQ2B,IAAI,OAAOC,QAAQ,CAACzC,KAAKuB,IAAKvB,KAAKyB,KAAMzB,KAAK8B,cAExEjB,EAAQ6B,UAAU,iDAAkD,CAClEC,QAAS,GACTC,YAAa,8EACZC,MAAM7C,KAAK2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,gBAAA7U,EAAA5H,QACA0c,oBAAA7U,EAAA7H,QACA2c,iBAAA1U,EAAAjI,YAGiBmI,G,UAAAA,G","file":"js/chunk-82c71bc4.76837476.js","sourcesContent":["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!./MapViewer.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!./MapViewer.vue?vue&type=script&lang=ts\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{style:(_vm.styleObject),attrs:{\"id\":\"map\"}})])}\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!./MapViewer.vue?vue&type=template&id=24b6315a\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CustomerDetails.vue?vue&type=style&index=0&id=396e9554&prod&lang=css\"","\n\n\n\n\n\n\r\nimport markerIcon from '@/assets/images/marker.png';\r\nimport Vue from 'vue';\r\nimport * as leafLet from 'leaflet';\r\nimport 'leaflet/dist/leaflet.css';\r\n\r\nexport default Vue.extend({\r\n \r\n props: {\r\n styleObject:{\r\n type:Object,\r\n required:true\r\n },\r\n lat: {\r\n type: Number,\r\n required: true,\r\n default: 41.9028 \r\n },\r\n lng: {\r\n type: Number,\r\n required: true,\r\n default: 12.4964 \r\n }\r\n },\r\n data() {\r\n return {\r\n initialMap: null as L.Map | null,\r\n customIcon: null,\r\n marker:null,\r\n standardZoom: 18 as Number,\r\n };\r\n },\r\n mounted() {\r\n this.setMap(); \r\n \r\n },\r\n watch: {\r\n lat: 'updateMapPosition',\r\n lng: 'updateMapPosition',\r\n },\r\n methods: {\r\n setMap() {\r\n this.customIcon = new leafLet.Icon({\r\n iconUrl: markerIcon,\r\n iconSize: [50, 50], \r\n popupAnchor: [-3, -76]\r\n }); \r\n \r\n this.initialMap = leafLet.map('map').setView([this.lat, this.lng], this.standardZoom);\r\n \r\n leafLet.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n maxZoom: 19,\r\n attribution: '© OpenStreetMap'\r\n }).addTo(this.initialMap);\r\n \r\n this.marker = leafLet.marker([this.lat, this.lng],{icon:this.customIcon}).addTo(this.initialMap);\r\n \r\n \r\n setTimeout(() => {\r\n this.initialMap?.invalidateSize();\r\n \r\n }, 500);\r\n \r\n },\r\n \r\n refreshMap() { \r\n this.initialMap?.invalidateSize();\r\n },\r\n\r\n updateMapPosition() {\r\n if (this.initialMap && this.marker) {\r\n \r\n this.initialMap.setView([this.lat, this.lng], this.standardZoom);\r\n\r\n this.marker.setLatLng([this.lat, this.lng]);\r\n\r\n }\r\n },\r\n disableMapInteractions() {\r\n this.initialMap.dragging.disable(); \r\n this.initialMap.scrollWheelZoom.disable(); \r\n this.initialMap.touchZoom.disable(); \r\n this.initialMap.doubleClickZoom.disable(); \r\n this.initialMap.zoomControl.disable(); \r\n }\r\n }\r\n\r\n});\r\n","import { render, staticRenderFns } from \"./CustomerDetails.vue?vue&type=template&id=396e9554\"\nimport script from \"./CustomerDetails.vue?vue&type=script&lang=ts\"\nexport * from \"./CustomerDetails.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CustomerDetails.vue?vue&type=style&index=0&id=396e9554&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","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!./CustomerDetails.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!./CustomerDetails.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./MapViewer.vue?vue&type=template&id=24b6315a\"\nimport script from \"./MapViewer.vue?vue&type=script&lang=ts\"\nexport * from \"./MapViewer.vue?vue&type=script&lang=ts\"\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('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[_c('div',{staticClass:\"sticky\",staticStyle:{\"margin-bottom\":\"15px\"},attrs:{\"id\":\"stickyDiv\"}},[_c('div',{staticClass:\"container\",staticStyle:{\"margin-bottom\":\"25px\"}},[(_vm.parentMounted)?_c('step-progress-custom',{ref:\"stepProgressBar\",attrs:{\"steps\":_vm.stepsList,\"current-step\":_vm.selectedContract.idStep,\"active-color\":\"#009994\",\"line-thickness\":3,\"active-thickness\":3,\"passive-thickness\":2,\"lastStepBeforeRefuse\":_vm.lastStepBeforeRefuse,\"contractSteps\":_vm.selectedContract.steps,\"contractType\":_vm.selectedContract.contractType,\"icon-class\":\"fa fa-check\"}}):_vm._e()],1),(_vm.parentMounted)?_c('b-container',[_c('b-row',[(_vm.editMode)?_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('b-form-group',{staticStyle:{\"font-size\":\"14px\"}},[_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('NET20.CONTRACT_YEAR'))+\" \"),(_vm.renewalsCounter > 0)?_c('b-badge',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"pill\":\"\",\"variant\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.$t('NET20.RENEWALS_COUNTER_LABEL'))+\" \"),_c('b-badge',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"variant\":\"light\"}},[_vm._v(_vm._s(_vm.renewalsCounter))])],1):_vm._e()],1),_c('b-form-select',{attrs:{\"id\":\"contractSelector\",\"size\":\"sm\",\"options\":_vm.dropDownContractYears},on:{\"change\":function($event){return _vm.changeSelectedContract(_vm.selectedContractId)}},model:{value:(_vm.selectedContractId),callback:function ($$v) {_vm.selectedContractId=$$v},expression:\"selectedContractId\"}})],1)],1):_vm._e(),_c('b-col',{attrs:{\"cols\":\"3\"}},[(_vm.editMode&&_vm.renewContractAllowed)?_c('b-button',{staticStyle:{\"margin-top\":\"25px\"},attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.openModalRenewContract()}}},[_c('span',{staticClass:\"fa fa-repeat\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" \"+_vm._s(_vm.$t('NET20.BUTTON_CONTRACT_RENEW'))+\" \")]):_vm._e()],1),_c('b-col',{staticClass:\"ml-auto\",attrs:{\"cols\":\"4\"}},[_c('b-input-group',{staticStyle:{\"margin-top\":\"10px\"},attrs:{\"prepend\":_vm.$t('NET20.ASSESSMENT_SCORE')}},[_c('b-skeleton-wrapper',{attrs:{\"loading\":_vm.loadingScore},scopedSlots:_vm._u([{key:\"loading\",fn:function(){return [_c('b-skeleton',{staticClass:\"form-control\",attrs:{\"type\":\"input\",\"width\":\"173px\",\"height\":\"52px\"}})]},proxy:true}],null,false,3156530613)},[_c('b-form-input',{staticClass:\"assesmentScoreInput\",attrs:{\"disabled\":\"\"},model:{value:(_vm.customer.assessmentScore),callback:function ($$v) {_vm.$set(_vm.customer, \"assessmentScore\", $$v)},expression:\"customer.assessmentScore\"}})],1)],1)],1)],1)],1):_vm._e()],1),_c('b-tabs',{on:{\"activate-tab\":function($event){return _vm.changeTab()}},model:{value:(_vm.tabActivated),callback:function ($$v) {_vm.tabActivated=$$v},expression:\"tabActivated\"}},[_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":_vm.$t('NET20.CUSTOMER')}},[(_vm.parentMounted)?_c('b-row',[_c('b-col',{attrs:{\"md\":\"4\",\"offset-md\":\"8\"}},[(_vm.editMode)?_c('b-button',{staticStyle:{\"margin-bottom\":\"15px\"},on:{\"click\":function($event){return _vm.openModalEntityHistory()}}},[_c('span',{staticClass:\"fa fa-history\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" \"+_vm._s(_vm.$t('NET20.VIEW_EDIT_HISTORY'))+\" \")]):_vm._e()],1)],1):_vm._e(),(_vm.parentMounted)?_c('CustomerData',{ref:\"customerDataObj\",attrs:{\"dropDownCountries\":_vm.dropDownCountries,\"customerProp\":_vm.customer,\"countryListProp\":_vm.countryListData,\"isSaveClicked\":_vm.isSaveClicked,\"editable\":_vm.customerDataEditable,\"selectedContractStep\":_vm.selectedContract.idStep,\"contractInfoEditable\":_vm.contractInfoEditable},on:{\"sync-score\":_vm.onCalculatingScore,\"on-country-change\":_vm.onCountryChange}}):_vm._e(),(_vm.parentMounted)?_c('CustomerSocials',{attrs:{\"customerSocialsProp\":_vm.customer.socials,\"customerId\":_vm.customer.id,\"editable\":_vm.customerDataEditable},on:{\"sync-score\":_vm.onCalculatingScore}}):_vm._e(),(_vm.parentMounted)?_c('CustomerServices',{attrs:{\"customerServicesProp\":_vm.customer.services,\"customerId\":_vm.customer.id,\"editable\":_vm.customerDataEditable},on:{\"sync-score\":_vm.onCalculatingScore}}):_vm._e()],1),_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":_vm.$t('NET20.CONTRACT_AND_SIGNAGE_TAB')}},[(_vm.parentMounted)?_c('CustomerContracts',{key:_vm.forceTabContractUpdate,attrs:{\"editMode\":_vm.editMode,\"editable\":_vm.contractInfoEditable,\"contractSignInfoEditable\":_vm.contractSignInfoEditable,\"customerCountry\":_vm.customer.idCountry,\"dropdownContries\":_vm.dropDownCountries,\"isSaveClicked\":_vm.isSaveClicked,\"lastContractProp\":_vm.selectedContract,\"attachmentUpload\":_vm.attachmentUpload,\"attachmentDeleteAllowed\":_vm.attachmentDeleteAllowed,\"lastStepBeforeRefuse\":_vm.lastStepBeforeRefuse,\"excludedContractSteps\":_vm.customer.excludedContractSteps},on:{\"sync-score\":_vm.onCalculatingScore}}):_vm._e()],1)],1),_c('b-modal',{attrs:{\"id\":\"contract-next-step\",\"title\":_vm.nextStepModalTitle,\"size\":\"lg\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('ContractNextStep',{attrs:{\"customerContractProp\":_vm.selectedContract,\"isRefusing\":_vm.refuseContract,\"previousStep\":_vm.previousStep,\"excludedContractSteps\":_vm.customer.excludedContractSteps},on:{\"next-step\":_vm.nextStepEvent}})],1),_c('b-modal',{attrs:{\"id\":\"contract-renewal\",\"title\":_vm.$t('NET20.CONTRACT_RENEWAL'),\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('contract-renewal',{attrs:{\"customerContractProp\":_vm.selectedContract,\"customerCountry\":_vm.customer.idCountry,\"dropdownCountries\":_vm.dropDownCountries},on:{\"renew-contract\":_vm.renewContract}})],1),_c('b-modal',{attrs:{\"id\":\"customerData-history\",\"title\":_vm.$t('NET20.CUSTOMER_DATA_HISTORY'),\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('entity-history-detail',{attrs:{\"entityId\":_vm.customer.id}})],1),(_vm.parentMounted)?_c('footer',{staticClass:\"modal-footer\"},[_c('b-container',{attrs:{\"fluid\":\"\"}},[_c('b-row',[_c('b-col',{attrs:{\"md\":\"2\"}},[(_vm.refuseAllowed)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.nextStep(true)}}},[_c('span',{staticClass:\"fa fa-ban\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" \"+_vm._s(_vm.$t('NET20.BUTTON_REFUSE'))+\" \")]):_vm._e()],1),_c('b-col',{attrs:{\"md\":\"3\"}},[(_vm.previousStepAllowed)?_c('b-button',{attrs:{\"variant\":\"warning\"},on:{\"click\":function($event){return _vm.nextStep(false, true)}}},[_c('span',{staticClass:\"fa fa-reply\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" \"+_vm._s(_vm.$t('NET20.BUTTON_REJECT_TO_SALESMAN'))+\" \")]):_vm._e()],1),_c('b-col',{attrs:{\"md\":\"2\",\"offset-md\":\"2\"}},[(_vm.nextStepAllowed||(_vm.customerDataEditable&&_vm.idCustomer != null))?_c('b-button',{attrs:{\"variant\":\"outline-primary\"},on:{\"click\":function($event){return _vm.saveAsDraft()}}},[_c('span',{staticClass:\"fa fa-floppy-o\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.SAVE'))+\" \")]):_vm._e()],1),_c('b-col',{staticClass:\"ml-auto\",attrs:{\"md\":\"3\"}},[(_vm.nextStepAllowed)?_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.nextStep()}}},[_c('span',{staticClass:\"fa fa-floppy-o\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" \"+_vm._s(_vm.btnSaveLabel)+\" \")]):_vm._e()],1)],1)],1)],1):_vm._e()],1)],1)}\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!./CustomerDetails.vue?vue&type=template&id=396e9554\"","\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\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\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\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\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\nimport axios from \"axios\";\nimport { General } from \"@/services/General\";\nimport { Customer } from \"@/entity/Net20/Customer\";\nimport CustomerData from \"./modules/CustomerData.vue\";\nimport { i18n } from \"@/i18n/i18n-setup\";\nimport { ContractStep, getStepsDescription, STEP_ENUM } from \"@/entity/Net20/ContractStep\";\nimport StepProgressCustom from '@/components/Utilities/StepProgressCustom.vue';\nimport Step from '@/interfaces/IStep';\nimport { Contract, GetContractTypeDefinition } from \"@/entity/Net20/Contract\";\nimport CustomerSocials from \"./modules/CustomerSocials.vue\";\nimport CustomerServices from \"./modules/CustomerServices.vue\";\nimport CustomerContracts from \"./modules/CustomerContracts.vue\";\nimport ContractNextStep from \"./modules/ContractNextStep.vue\";\nimport { NET20_AUTHORIZATION, NET20_CONTRACT_TYPE } from \"@/services/Enums\";\nimport ContractRenewal from \"./modules/ContractRenewal.vue\";\nimport { ContractAttachment } from \"@/entity/Net20/ContractAttachment\";\nimport EntityHistoryDetail from \"../EntityHistoryDetail.vue\";\nimport { DropDownItem } from \"@/services/DropDownItem\";\nimport { IsPotentialVolumeCompliant, SOURCE, GetExcludedContractSteps, GetFieldConfigurations, IsMandatoryField, GetDistricts } from \"@/services/Net20DropDowns\";\nimport { GetDropDownChannels } from \"@/entity/Net20/Channel\";\nimport ContractStepBack from \"./modules/ContractStepBack.vue\";\nimport { FieldConfiguration } from \"@/entity/Net20/FieldConfiguration\";\nimport { ClaimEnum } from \"@/services/ClaimEnum\";\n\n@Component({\n components: {\n CustomerData,\n StepProgressCustom,\n CustomerSocials,\n CustomerServices,\n CustomerContracts,\n ContractNextStep,\n ContractRenewal,\n EntityHistoryDetail,\n ContractStepBack\n }\n})\nexport default class CustomerDetails extends Vue {\n @Prop({ type: Boolean, required: false })\n editMode;\n @Prop({ type: String, required: false })\n contractId;\n @Prop({ type: String, required: false })\n idCustomer;\n @Prop({ type: Array, required: false })\n dropDownTypeOfProposalProp: Array;\n @Prop({ type: Array, required: false })\n dropDownChannelProp: Array;\n\n authorizedUser: boolean = true;\n parentMounted: boolean = false;\n loading: boolean = false;\n customer: Customer = new Customer();\n countryListData: Array = [];\n selectedContract: Contract = new Contract();\n selectedContractId: string = '';\n dropDownContractYears: Array = new Array();\n dropDownCountries: Array = [];\n dropDownTypeOfProposal: Array = [];\n dropDownChannel: Array = [];\n stepsList: Array = new Array();\n\n tabActivated: number = 0;\n isSaveClicked: boolean = false;\n loadingScore: boolean = false;\n btnSaveLabel: string = \"\";\n \n forceTabContractUpdate: number = 0;\n refuseContract: boolean = false;\n previousStep: boolean = false;\n lastStepBeforeRefuse: number = 0;\n isContractRefusable: boolean = false;\n\n customerDataEditable: boolean = false;\n contractInfoEditable: boolean = false;\n contractSignInfoEditable: boolean = false;\n attachmentUpload: boolean = false;\n attachmentDeleteAllowed: boolean = false;\n nextStepAllowed: boolean = false;\n refuseAllowed: boolean = false;\n previousStepAllowed: boolean = false;\n renewContractAllowed: boolean = false;\n renewalsCounter: number = 0;\n\n nextStepModalTitle: string = \"\";\n STEP_ENUM_LIST = STEP_ENUM;\n\n fieldConfigurations: Array = new Array();\n isCountryWithDistricts: boolean = null;\n\n async updateAttachments(attachments: ContractAttachment[], contractId: string) {\n await axios({\n method: \"post\",\n url: General.GetApiUrl(\"/api/net20/UpdateContractAttachments?contractId=\" + contractId),\n data: attachments,\n withCredentials: true,\n responseType: \"json\",\n });\n }\n\n // beforeDestroy() {\n // window.removeEventListener('scroll', this.handleScroll, true);\n // }\n\n // handleScroll(event){\n // let stickyDiv = document.getElementById(\"stickyDiv\")\n // if(event.target.scrollTop > 24) {\n // stickyDiv.classList.add(\"stickyScrolled\")\n // } else {\n // stickyDiv.classList.remove(\"stickyScrolled\")\n // }\n // }\n\n changeTab(){\n let app = this;\n setTimeout(()=>{\n let obj = app.$refs['customerDataObj'] as any;\n obj.forceRefresh();\n }\n ,200);\n \n }\n\n async onCountryChange(idCountry, fieldConfigurations, isCountryWithDistricts) {\n this.customer.excludedContractSteps = await GetExcludedContractSteps(idCountry);\n this.stepsList = getStepsDescription(0, this.customer.excludedContractSteps);\n\n this.fieldConfigurations = fieldConfigurations;\n this.isCountryWithDistricts = isCountryWithDistricts;\n }\n\n async mounted() {\n // window.addEventListener('scroll', this.handleScroll, true);\n\n this.loading = true;\n\n if(this.dropDownTypeOfProposalProp == null) {\n //Recupero la lista includendo i valori dismessi per la ricerca\n this.dropDownTypeOfProposal = await General.GetDropdownList(SOURCE.TYPE_OF_PROPOSAL); \n } else {\n this.dropDownTypeOfProposal = this.dropDownTypeOfProposalProp;\n }\n\n if(this.dropDownChannelProp == null) {\n this.dropDownChannel = await GetDropDownChannels();\n } else {\n this.dropDownChannel = this.dropDownChannelProp;\n }\n\n if(this.idCustomer != null) { \n this.dropDownCountries = await this.getDropdownCountries(false);\n await this.getCustomerById(this.idCustomer); \n if(this.authorizedUser) {\n this.setFormAuthorization();\n this.stepsList = getStepsDescription(this.selectedContract.idStep, this.customer.excludedContractSteps); \n this.lastStepBeforeRefuse = this.getLastStepBeforeRefuse();\n this.selectTabByContractStep();\n this.getRenewalsCounter();\n\n this.loading = false;\n this.parentMounted = true;\n }\n } else { \n this.dropDownCountries = await this.getDropdownCountries(true);\n this.customerDataEditable = true;\n this.contractInfoEditable = true;\n this.contractSignInfoEditable = true;\n this.attachmentUpload = true;\n this.nextStepAllowed = true;\n\n this.customer.services = [];\n this.customer.socials = [];\n this.customer.contracts = [];\n this.selectedContract.idStep = 1;\n this.selectedContract.attachments = [];\n this.selectedContract.steps = [];\n this.stepsList = getStepsDescription(0); \n this.$emit('onSelectingContract', this.selectedContract, false);\n\n this.loading = false; \n this.parentMounted = true; \n }\n\n this.setBtnSaveLabel(); \n }\n\n getRenewalsCounter() {\n this.renewalsCounter = this.customer.contracts.filter(x => x.contractType == NET20_CONTRACT_TYPE.RENEWAL).length;\n }\n\n selectTabByContractStep() {\n if(this.selectedContract.idStep >= STEP_ENUM.CONTRACT_UPLOAD && this.selectedContract.idStep <= STEP_ENUM.INSTALLED_SIGNAGE)\n this.tabActivated = 1;\n }\n\n async getDropdownCountries(asSalesmanOnly: boolean): Promise> {\n try{\n let country: DropDownItem = new DropDownItem();\n let countryList: DropDownItem[] = [];\n\n let response = await axios.get(\n General.GetApiUrl('/api/net20/GetCountriesForUser?asSalesmanOnly=' + asSalesmanOnly),{\n responseType: \"json\",\n withCredentials: true\n });\n this.countryListData = response.data;\n if(response.data) {\n response.data.forEach( element => {\n country = new DropDownItem();\n country.idDropDownItem = element.idCountry;\n country.itemText = element.name;\n\n countryList.push(country);\n });\n return General.SetOptionsDropDown(countryList);\n }\n } catch(ex) {\n General.HandleError(ex, this);\n return null;\n }\n }\n\n setBtnSaveLabel() {\n if(this.selectedContract.idStep == STEP_ENUM.APPROVAL) {\n this.btnSaveLabel = i18n.t(\"NET20.BUTTON_SAVE_AND_APPROVE\") as string;\n } else if(this.selectedContract.idStep == STEP_ENUM.SIGNAGE_ORDER) {\n this.btnSaveLabel = i18n.t(\"NET20.BUTTON_SAVE_AND_ORDER_SIGN\") as string;\n } else if(this.selectedContract.idStep == STEP_ENUM.INSTALLED_SIGNAGE) {\n this.btnSaveLabel = i18n.t(\"NET20.BUTTON_SAVE_AND_CLOSE\") as string;\n } else {\n this.btnSaveLabel = i18n.t(\"NET20.BUTTON_SAVE_PROCEED\") as string;\n }\n }\n\n setFormAuthorization() {\n this.resetFormAuthorization();\n if(this.selectedContract.authorization.customerData === NET20_AUTHORIZATION.WRITE) {\n this.customerDataEditable = true;\n }\n if(this.selectedContract.authorization.contractInfo === NET20_AUTHORIZATION.WRITE) {\n this.contractInfoEditable = true;\n }\n if(this.selectedContract.authorization.contractSignInfo === NET20_AUTHORIZATION.WRITE) {\n this.contractSignInfoEditable = true;\n }\n if(this.selectedContract.authorization.attachmentUpload === NET20_AUTHORIZATION.WRITE) {\n this.attachmentUpload = true;\n }\n this.nextStepAllowed = this.selectedContract.authorization.nextStepAllowed;\n this.refuseAllowed = this.selectedContract.authorization.refuseAllowed;\n this.previousStepAllowed = this.selectedContract.authorization.previousStepAllowed;\n this.renewContractAllowed = this.selectedContract.authorization.renewContractAllowed;\n this.attachmentDeleteAllowed = this.selectedContract.authorization.attachmentDeleteAllowed;\n }\n\n resetFormAuthorization() {\n this.customerDataEditable = false;\n this.contractInfoEditable = false;\n this.contractSignInfoEditable = false;\n this.attachmentUpload = false;\n this.nextStepAllowed = false;\n this.refuseAllowed = false;\n this.previousStepAllowed = false;\n this.attachmentDeleteAllowed = false;\n }\n\n getLastStepBeforeRefuse(): number {\n let lastStep = 0;\n if(this.selectedContract.steps.length > 0 && this.selectedContract.idStep == STEP_ENUM.REFUSED) {\n let lastStepsBeforeRefuse = this.selectedContract.steps.filter(s => s.idStep != STEP_ENUM.REFUSED).map(s => s.idStep);\n lastStep = lastStepsBeforeRefuse[0];\n }\n return lastStep;\n }\n\n changeSelectedContract(selectedId: string = \"\"){\n this.selectContract(selectedId);\n this.setFormAuthorization(); \n this.stepsList = getStepsDescription(this.selectedContract.idStep, this.customer.excludedContractSteps); \n this.lastStepBeforeRefuse = this.getLastStepBeforeRefuse(); \n this.purgeNotUploadedAttachments();\n this.selectTabByContractStep();\n this.forceTabContractUpdate = this.forceTabContractUpdate + 1;\n }\n\n purgeNotUploadedAttachments() {\n this.selectedContract.attachments = this.selectedContract.attachments.filter(a => a.id != null || a.id !== undefined);\n }\n\n selectContract(selectedId: string = \"\") {\n if(selectedId === \"\") {\n this.selectedContractId = this.contractId;\n } else {\n this.selectedContractId = selectedId;\n }\n\n let index = this.customer.contracts.findIndex(c => c.id === this.selectedContractId);\n if(index >= 0)\n this.selectedContract = this.customer.contracts[index];\n else\n this.selectedContract = this.customer.contracts[0];\n\n if(this.selectedContractId === undefined)\n this.selectedContractId = this.selectedContract.id;\n\n if(this.selectedContract.contractType == NET20_CONTRACT_TYPE.RENEWAL)\n this.$emit('onSelectingContract', this.selectedContract, true);\n else\n this.$emit('onSelectingContract', this.selectedContract, false);\n }\n\n getOrderedContractList() {\n return this.customer.contracts.sort((c1,c2) => {\n if (c1.contractYear < c2.contractYear)\n return 1;\n\n if (c1.contractYear > c2.contractYear)\n return -1;\n\n return 0;\n });\n }\n\n initDropDownContractYears(){\n this.customer.contracts.forEach(c => {\n let contractTypeDefinition = GetContractTypeDefinition(c);\n this.dropDownContractYears.push({ value: c.id, text: contractTypeDefinition });\n })\n }\n\n returnState(condition: boolean, clickButton: boolean): boolean {\n if (clickButton ) \n return condition;\n else \n return null;\n }\n\n toBool(a: any) {\n var converted = false;\n if(a === undefined || a === \"\" || a == null) {\n converted = false;\n }\n else {\n if(a === \"true\")\n converted = true;\n }\n return converted\n }\n\n async getCustomerById(idCustomer: string) {\n \n try {\n let response = await axios({\n method: \"get\",\n url: General.GetApiUrl(\"/api/net20/GetCustomerById?customerId=\" + this.idCustomer),\n withCredentials: true,\n responseType: \"json\",\n }); \n this.customer = response.data;\n\n this.initDropDownContractYears();\n this.selectContract();\n } catch (error) {\n if(error.response.status == 403) {\n this.parentMounted = false;\n this.authorizedUser = false;\n this.$emit(\"unauthorized\");\n } else {\n General.HandleError(error, this);\n this.parentMounted = false;\n }\n }\n }\n\n async saveAsDraft() {\n General.confirm(\n i18n.t('GENERIC.CONFIRM_MESSAGE') as string,\n this,\n async () => {\n await this.saveAsDraftDo();\n }\n );\n }\n\n async saveAsDraftDo() {\n this.isSaveClicked = true;\n let isValidServiceData = await this.isValidServicesData();\n\n if(!isValidServiceData) {\n this.tabActivated = 0;\n General.showAlertDanger(i18n.t('NET20.SERVICE_MANDATORY') as string, this);\n } else {\n let isValidForm = await this.isValidForm();\n if(isValidForm) {\n if(await this.showWarningLimits() && !this.checkBypassValidation()) {\n General.showAlertDanger(i18n.t('NET20.POTENTIAL_VOLUME_WARNING') as string, this);\n } else {\n if(this.customer.id != null) {\n this.loading = true;\n this.$emit(\"onExecutingAction\");\n\n let vatNumberError = await this.updateNet20Entities();\n if(!vatNumberError) {\n General.showAlertSuccess(i18n.t('GENERIC.SAVE_SUCCESSFUL') as string, this);\n this.closeDetailModal();\n this.$emit(\"customer-updated\", this.customer.numericId);\n } else {\n this.loading = false;\n }\n } else {\n await this.insertCustomerDo(false);\n }\n }\n } else {\n General.showAlertDanger(i18n.t('GENERIC.CHECK_MANDATORY_FIELDS') as string, this);\n }\n }\n }\n\n async nextStep(isRefuse: boolean = false, previousStep: boolean = false) {\n this.refuseContract = isRefuse;\n this.previousStep = previousStep;\n if(isRefuse) {\n this.nextStepModalTitle = i18n.t(\"NET20.CONTRACT_REFUSE\") as string;\n if(this.customer.id != null)\n this.openModalNextStep();\n } else {\n let isValidServiceData = await this.isValidServicesData();\n\n if(previousStep){\n this.nextStepModalTitle = i18n.t(\"NET20.CONTRACT_PREVIOUS_STEP\") as string;\n } else {\n this.nextStepModalTitle = i18n.t(\"NET20.CONTRACT_NEXT_STEP\") as string;\n }\n this.isSaveClicked = true;\n\n if(!isValidServiceData) {\n this.tabActivated = 0;\n General.showAlertDanger(i18n.t('NET20.SERVICE_MANDATORY') as string, this);\n }\n else if(!this.isValidAttachmentData(this.selectedContract, this.selectedContract.attachments, this.attachmentUpload, false)) {\n this.tabActivated = 1;\n General.showAlertDanger(i18n.t('NET20.ATTACHMENTS_MANDATORY') as string, this);\n }\n else {\n let isValidForm = await this.isValidForm();\n if(isValidForm) {\n if(await this.showWarningLimits() && !this.checkBypassValidation()) {\n General.showAlertDanger(i18n.t('NET20.POTENTIAL_VOLUME_WARNING') as string, this);\n } else {\n if(this.customer.id != null) {\n this.openModalNextStep();\n } else {\n await this.insertCustomerDo(true);\n }\n }\n } else {\n General.showAlertDanger(i18n.t('GENERIC.CHECK_MANDATORY_FIELDS') as string, this);\n }\n }\n }\n }\n\n async insertCustomerDo(proceedToApproval: boolean = false) {\n var message = proceedToApproval ? i18n.t('GENERIC.CONFIRM_MESSAGE') as string : i18n.t('NET20.MSG_CONFIRM_INSERT_CUSTOMER_DRAFT') as string;\n General.confirm(\n message,\n this,\n async () => {\n await this.insertCustomer(proceedToApproval);\n }\n );\n }\n\n async showWarningLimits() {\n let check = await IsPotentialVolumeCompliant(this.customer.idCountry, this.selectedContract.idChannel, this.selectedContract.typeOfProposal, this.selectedContract.potentialVolume)\n return !check;\n }\n\n async insertCustomer(proceedToApproval: boolean = false) {\n try {\n this.loading = true;\n this.$emit(\"onExecutingAction\");\n let response = await axios.post(General.GetApiUrl('/api/net20/CreateCustomer')\n ,this.customer\n ,{ withCredentials: true });\n if(response.data != null) {\n let numericId: string = response.data;\n this.selectedContract.idCustomer = await this.getCustomerIdByNumericId(numericId);\n this.selectedContract.id = await this.insertContract(proceedToApproval);\n if(this.selectedContract.id != null) {\n this.selectedContract.attachments.forEach(element => {\n element.uploadContractStep = STEP_ENUM.EVALUATION_FORM\n });\n await this.updateAttachments(this.selectedContract.attachments, this.selectedContract.id);\n }\n\n General.showAlertSuccess(i18n.t('NET20.CUSTOMER_CREATED') as string, this);\n this.isSaveClicked = false;\n this.closeDetailModal();\n this.$emit(\"customer-created\", numericId);\n }\n } catch (error) {\n if((error.response.data as string).toLowerCase().includes(\"vat number\")) {\n General.showAlertDanger(i18n.t('NET20.VAT_NUMBER_USED') as string, this);\n } else {\n General.HandleError(error, this);\n }\n } finally {\n this.loading = false;\n }\n }\n\n async insertContract(proceedToApproval: boolean = false) {\n if(this.selectedContract != null) {\n let endpointUrl = proceedToApproval ? \"/api/net20/CreateCustomerContract?proceedToNextStep=true\" : \"/api/net20/CreateCustomerContract\";\n let response = await axios({\n method: \"post\",\n url: General.GetApiUrl(endpointUrl),\n data: this.selectedContract,\n withCredentials: true,\n responseType: \"json\",\n });\n return response.data;\n }\n }\n\n openModalNextStep() {\n this.$bvModal.show('contract-next-step');\n }\n closeModalNextStep() {\n this.$bvModal.hide('contract-next-step');\n }\n\n openModalRenewContract() {\n this.$bvModal.show('contract-renewal');\n }\n closeModalRenewContract() {\n this.$bvModal.hide('contract-renewal');\n }\n\n openModalEntityHistory() {\n this.$bvModal.show('customerData-history');\n }\n\n async renewContract(renewedContract: Contract) {\n try {\n if(!this.isValidAttachmentData(renewedContract, renewedContract.attachments, true, true)) {\n General.showAlertDanger(i18n.t('NET20.ATTACHMENTS_MANDATORY') as string, this);\n } else {\n if(this.isValidCustomerContractData(renewedContract, true))\n {\n this.closeModalRenewContract();\n this.loading = true;\n this.$emit(\"onExecutingAction\");\n\n let response = await axios.post(General.GetApiUrl('/api/net20/RenewContract')\n ,renewedContract\n ,{ withCredentials: true });\n if(response.data != null) {\n await this.updateAttachments(renewedContract.attachments, response.data);\n General.showAlertSuccess(i18n.t('NET20.CONTRACT_RENEWAL_SUCCESS') as string, this);\n this.isSaveClicked = false;\n this.loading = false;\n this.closeDetailModal();\n this.$emit(\"customer-updated\", this.customer.numericId);\n }\n } else {\n General.showAlertDanger(i18n.t('GENERIC.CHECK_MANDATORY_FIELDS') as string, this);\n }\n }\n } catch (error) {\n if((error.response.data as string).toLowerCase().includes(\"active\")) {\n General.showAlertDanger(i18n.t('NET20.CONTRACT_YEAR_EXISTS') as string + renewedContract.contractYear, this);\n } else {\n General.HandleError(error, this);\n }\n } finally {\n this.loading = false;\n }\n }\n\n async nextStepEvent(step: ContractStep) {\n General.confirm(\n i18n.t('GENERIC.CONFIRM_MESSAGE') as string,\n this,\n async () => {\n this.closeModalNextStep();\n await this.goToNextStep(step);\n }\n );\n }\n\n async goToNextStep(step: ContractStep) {\n try {\n this.loading = true;\n this.$emit(\"onExecutingAction\");\n\n if(!this.refuseContract) {\n await this.updateNet20Entities();\n this.nextStepCascadingOperation(step);\n }\n\n await this.insertNextStep(step);\n\n General.showAlertSuccess(i18n.t('GENERIC.SAVE_SUCCESSFUL') as string, this);\n\n this.isSaveClicked = false;\n this.closeDetailModal();\n\n this.$emit(\"customer-updated\", this.customer.numericId);\n } catch (error) {\n General.HandleError(error, this);\n } finally {\n this.loading = false;\n }\n }\n\n async updateNet20Entities(): Promise {\n let vatNumberError = await this.updateCustomer();\n if(vatNumberError) {\n General.showAlertDanger(i18n.t('NET20.VAT_NUMBER_USED') as string, this);\n } else {\n let isAdminNet20 = General.CheckAuthorization(ClaimEnum.CanAdminNet20);\n if(isAdminNet20) {\n await this.updateContract();\n await this.updateAttachments(this.selectedContract.attachments, this.selectedContract.id);\n } else {\n if(this.selectedContract.idStep == STEP_ENUM.EVALUATION_FORM\n || this.selectedContract.idStep == STEP_ENUM.CONTRACT_UPLOAD) {\n await this.updateContract();\n await this.updateAttachments(this.selectedContract.attachments, this.selectedContract.id); \n } else if((this.selectedContract.idStep == STEP_ENUM.SIGNAGE_ORDER\n || this.selectedContract.idStep == STEP_ENUM.INSTALLED_SIGNAGE) && this.attachmentUpload) {\n await this.updateAttachments(this.selectedContract.attachments, this.selectedContract.id);\n if(this.selectedContract.idStep == STEP_ENUM.INSTALLED_SIGNAGE) \n await this.updateContractSignInstallationInfo();\n } else if(this.selectedContract.idStep == STEP_ENUM.SIGNAGE_ORDER) {\n if(this.contractInfoEditable)\n await this.updateContract();\n else if(this.contractSignInfoEditable)\n await this.updateContract(true);\n }\n }\n }\n return vatNumberError;\n }\n\n nextStepCascadingOperation(step: ContractStep) {\n step.currentVersion = this.selectedContract.currentVersion;\n }\n\n async updateCustomer() {\n let vatNumberError: boolean = false\n try {\n await axios.post(General.GetApiUrl('/api/net20/UpdateCustomer')\n ,this.customer\n ,{ withCredentials: true });\n } catch (error) {\n if((error.response.data as string).toLowerCase().includes(\"vat number\"))\n vatNumberError = true;\n }\n return vatNumberError;\n }\n\n async updateContract(updateSignInfo: boolean = false) {\n let endpointUrl = updateSignInfo ? \"/api/net20/UpdateCustomerContract?updateSignInfo=true\" : \"/api/net20/UpdateCustomerContract\";\n if(this.selectedContract != null) {\n let response = await axios({\n method: \"post\",\n url: General.GetApiUrl(endpointUrl),\n data: this.selectedContract,\n withCredentials: true,\n responseType: \"json\",\n });\n if(response.data)\n this.selectedContract.currentVersion = response.data;\n }\n }\n\n async updateContractSignInstallationInfo() {\n let endpointUrl = \"/api/net20/UpdateCustomerContractSignInstallationInfo\";\n if(this.selectedContract != null) {\n let response = await axios({\n method: \"post\",\n url: General.GetApiUrl(endpointUrl),\n data: this.selectedContract,\n withCredentials: true,\n responseType: \"json\",\n });\n if(response.data)\n this.selectedContract.currentVersion = response.data;\n }\n }\n\n async insertNextStep(step: ContractStep) {\n if(this.selectedContract != null) {\n await axios({\n method: \"post\",\n url: General.GetApiUrl(\"/api/net20/ChangeCustomerContractStep\"),\n data: step,\n withCredentials: true,\n responseType: \"json\",\n });\n }\n }\n\n async getCustomerIdByNumericId(numericId: string) {\n let idCustomer: string = null;\n\n try {\n let response = await axios({\n method: 'get',\n url: General.GetApiUrl('/api/net20/GetCustomerIdByNumericId?numericId=' + numericId),\n responseType: 'json',\n withCredentials: true\n });\n idCustomer = response.data;\n } catch (error) {\n General.HandleError(error, this);\n }\n return idCustomer;\n }\n\n closeDetailModal() {\n this.$bvModal.hide(\"customer-details-modal\");\n }\n\n async onCalculatingScore() {\n if(this.selectedContract.idStep == STEP_ENUM.EVALUATION_FORM\n || this.selectedContract.idStep == STEP_ENUM.SIGNAGE_ORDER)\n await this.calculateScore();\n }\n \n async calculateScore() {\n this.loadingScore = true;\n let customerToSend = {...this.customer};\n customerToSend.contracts = null;\n customerToSend.contracts = [{...this.selectedContract}]\n this.convertNotNullableValue(customerToSend.contracts[0]);\n let response = await axios.post(General.GetApiUrl('/api/net20/CalculateScore')\n ,customerToSend\n ,{ withCredentials: true });\n if(response.data != null) {\n this.customer.assessmentScore = response.data\n this.loadingScore = false;\n } \n }\n\n convertNotNullableValue(contract: Contract) {\n if(contract.idChannel == null)\n contract.idChannel = 0;\n }\n\n async isValidForm() {\n let validCustomerData = await this.isValidCustomerData();\n let validCustomerContractData = this.isValidCustomerContractData(this.selectedContract);\n if(!validCustomerData){\n this.tabActivated = 0;\n } else if(!validCustomerContractData){\n this.tabActivated = 1;\n }\n return validCustomerData && validCustomerContractData;\n }\n\n async checkCountryWithDistricts(idCountry: string) {\n var districts = await GetDistricts(idCountry);\n return districts.length > 0;\n }\n\n async isValidCustomerData() {\n if(this.fieldConfigurations == null || this.fieldConfigurations.length == 0)\n this.fieldConfigurations = await GetFieldConfigurations(this.customer.idCountry);\n \n if(this.isCountryWithDistricts == null)\n this.isCountryWithDistricts = await this.checkCountryWithDistricts(this.customer.idCountry);\n\n let isValid: boolean = true;\n if(!this.checkBypassValidation()) {\n if(this.CheckIsNullOrEmpty(this.customer.workshopName)\n || this.CheckIsNullOrEmpty(this.customer.vatNumber)\n || this.CheckIsNullOrEmpty(this.customer.locationAddress)\n || this.CheckIsNullOrEmpty(this.customer.idCountry)\n || this.CheckIsNullOrEmpty(this.customer.city)\n || this.CheckIsNullOrEmpty(this.customer.postCode)\n || (this.isCountryWithDistricts ? this.CheckIsNullOrEmpty(this.customer.idDistrict) : this.CheckIsNullOrEmpty(this.customer.district))\n || this.CheckIsNullOrEmpty(this.customer.ownersName)\n || this.CheckIsNullOrEmpty(this.customer.email)\n || (this.CheckIsNullOrEmpty(this.customer.telephone) && this.CheckIsNullOrEmpty(this.customer.mobile)\n || (this.CheckIsNullOrEmpty(this.customer.welcomeKitSize) && this.isMandatoryFieldNet20('welcomeKitSize'))\n //LOCATION SECTION\n || (this.CheckIsNullOrEmpty(this.customer.idWorkshopArea) && this.isMandatoryFieldNet20('idWorkshopArea'))\n || (this.CheckIsNullOrEmpty(this.customer.idTrafficFlow) && this.isMandatoryFieldNet20('idTrafficFlow'))\n || (this.CheckIsNullOrEmpty(this.customer.workshopVisibility) && this.isMandatoryFieldNet20('workshopVisibility'))\n || (this.CheckIsNullOrEmpty(this.customer.idWorkshopAppearance) && this.isMandatoryFieldNet20('idWorkshopAppearance'))\n || (this.CheckIsNullOrEmpty(this.customer.mqTotal) && this.isMandatoryFieldNet20('mqTotal'))\n || (this.CheckIsNullOrEmpty(this.customer.entrancesNumber) && this.isMandatoryFieldNet20('entrancesNumber'))\n || (this.CheckIsNullOrEmpty(this.customer.exFCAWorkshop) && this.isMandatoryFieldNet20('exFCAWorkshop'))\n || (this.CheckIsNullOrEmpty(this.customer.waitingRoom) && this.isMandatoryFieldNet20('waitingRoom'))\n || (this.CheckIsNullOrEmpty(this.customer.workersNumber) && this.isMandatoryFieldNet20('workersNumber'))\n || (this.CheckIsNullOrEmpty(this.customer.carBrigdgeLifterNumber) && this.isMandatoryFieldNet20('carBrigdgeLifterNumber'))\n || (this.CheckIsNullOrEmpty(this.customer.increasingBridgeLifter) && this.isMandatoryFieldNet20('increasingBridgeLifter'))\n || (this.CheckIsNullOrEmpty(this.customer.warehouse) && this.isMandatoryFieldNet20('warehouse'))\n || (this.CheckIsNullOrEmpty(this.customer.signage) && this.isMandatoryFieldNet20('signage'))\n || (this.CheckIsNullOrEmpty(this.customer.signHighTrafficStreet) && this.isMandatoryFieldNet20('signHighTrafficStreet'))\n \n //TRAINING SECTION\n || (this.CheckIsNullOrEmpty(this.customer.trainingParticipation) && this.isMandatoryFieldNet20('trainingParticipation'))\n || (this.customer.trainingParticipation != null && this.customer.trainingParticipation.toString() === 'true' && \n (this.CheckIsNullOrEmpty(this.customer.idTrainingType)\n || this.CheckIsNullOrEmpty(this.customer.trainingProvidedBy)\n || this.CheckIsNullOrEmpty(this.customer.idTrainingPerYear)))\n //OTHER INFO SECTION\n || (this.CheckIsNullOrEmpty(this.customer.consumerReview) && this.isMandatoryFieldNet20('consumerReview'))\n || (this.CheckIsNullOrEmpty(this.customer.advertInvestments) && this.isMandatoryFieldNet20('advertInvestments'))\n || (this.CheckIsNullOrEmpty(this.customer.digitalPlatform) && this.isMandatoryFieldNet20('digitalPlatform'))\n || (this.CheckIsNullOrEmpty(this.customer.petronasDigitalPlatform) && this.isMandatoryFieldNet20('petronasDigitalPlatform'))\n // VAT NUMBER VALIDATION\n || !this.validateVatNumber(this.customer.vatNumber, this.customer.idCountry)\n )\n ) {\n isValid = false;\n }\n }\n\n return isValid;\n }\n\n isValidCustomerContractData(contract: Contract, isRenewal: boolean = false) {\n let isValid: boolean = true;\n if(isRenewal && this.CheckIsNullOrEmpty(contract.contractYear)\n || this.CheckIsNullOrEmpty(contract.idChannel)\n || this.CheckIsNullOrEmpty(contract.typeOfProposal)\n || this.CheckIsNullOrEmpty(contract.potentialVolume)\n || this.CheckIsNullOrEmpty(contract.actualVolume)\n // || this.CheckIsNullOrEmpty(contract.actualSupplier)\n // || this.CheckIsNullOrEmpty(contract.financialRisk)\n || this.CheckIsNullOrEmpty(contract.signCustomization)\n || this.CheckIsNullOrEmpty(contract.signType)\n || this.CheckIsNullOrEmpty(contract.signSize)\n || (this.CheckIsNullOrEmpty(contract.signNameText) && !contract.silverTypeOfProposal)\n || this.CheckIsNullOrEmpty(contract.signBrandCustomization)\n || (contract.idStep == STEP_ENUM.INSTALLED_SIGNAGE && this.CheckIsNullOrEmpty(contract.signInstalled))\n ) {\n isValid = false;\n }\n\n return isValid;\n }\n\n async isValidServicesData() {\n if(this.fieldConfigurations == null || this.fieldConfigurations.length == 0)\n this.fieldConfigurations = await GetFieldConfigurations(this.customer.idCountry);\n \n let check: boolean = true;\n if(!this.checkBypassValidation() && this.isMandatoryFieldNet20('services')) {\n if(this.customer.services == undefined || this.customer.services.length == 0)\n check = false;\n }\n return check;\n }\n\n isValidAttachmentData(contract: Contract, attachments: Array, canAttachFile: boolean, isRenewal: boolean = false) {\n if(canAttachFile\n && (contract.idStep == STEP_ENUM.EVALUATION_FORM\n || contract.idStep == STEP_ENUM.CONTRACT_UPLOAD\n || contract.idStep == STEP_ENUM.INSTALLED_SIGNAGE))\n if(isRenewal) {\n return attachments != null && attachments.filter(a => !a.toDelete).length > 0;\n } else {\n let deltaFilesCounter = attachments.filter(x => !x.toDelete && (x.id === undefined || x.id == null) && x.sessionId != null).length;\n let filesUploadedInCurrentStep = attachments.filter(x => !x.toDelete && x.id != null && x.uploadContractStep == contract.idStep).length\n\n if(contract.idStep == STEP_ENUM.EVALUATION_FORM) {\n return attachments != null \n && (this.isRedoingStep(STEP_ENUM.EVALUATION_FORM) \n || (!this.isRedoingStep(STEP_ENUM.EVALUATION_FORM) && (deltaFilesCounter > 0 || filesUploadedInCurrentStep > 0)))\n && attachments.filter(a => !a.toDelete).length >= 1;\n } else if(contract.idStep == STEP_ENUM.CONTRACT_UPLOAD) {\n return attachments != null \n && (this.isRedoingStep(STEP_ENUM.CONTRACT_UPLOAD) \n || (!this.isRedoingStep(STEP_ENUM.CONTRACT_UPLOAD) && (deltaFilesCounter > 0 || filesUploadedInCurrentStep > 0)))\n && attachments.filter(a => !a.toDelete).length >= 2;\n } else if(contract.idStep == STEP_ENUM.INSTALLED_SIGNAGE) {\n return attachments != null \n && (this.isRedoingStep(STEP_ENUM.INSTALLED_SIGNAGE) \n || (!this.isRedoingStep(STEP_ENUM.INSTALLED_SIGNAGE) && (deltaFilesCounter > 0 || filesUploadedInCurrentStep > 0)))\n && ((this.customer.excludedContractSteps.map(x => x.idStep).includes(STEP_ENUM.CONTRACT_UPLOAD) && attachments.filter(a => !a.toDelete).length >= 2) || attachments.filter(a => !a.toDelete).length >= 3);\n }\n }\n else\n return true;\n }\n\n isRedoingStep(idStep: number) {\n let counter = this.selectedContract.steps.filter(x => x.idStep == idStep).length;\n if(counter > 1 && this.selectedContract.idStep == idStep)\n return true;\n else\n return false;\n }\n\n checkBypassValidation(): boolean {\n let check = false;\n if(this.customer.imported && this.selectedContract.idStep > STEP_ENUM.EVALUATION_FORM)\n check = true;\n return check;\n }\n\n CheckIsNullOrEmpty(text: any) {\n if (text == null) return true;\n if (text.toString() === '') return true;\n return false;\n }\n\n validateVatNumber(vatNumber: string, idCountry: string) {\n let check: boolean = true;\n let regexPattern = this.getVatNumberRuleByCountry(idCountry);\n if(regexPattern != null) {\n const regex = new RegExp(regexPattern);\n\n if (!regex.test(vatNumber)) {\n check = false;\n }\n }\n return check;\n }\n\n getVatNumberRuleByCountry(idCountry) {\n let regexPattern: string = null;\n if(idCountry != null) {\n let country = this.countryListData.find(c => c.idCountry == idCountry);\n\n if (country && country.vatNumberRule != null)\n regexPattern = country.vatNumberRule.regex;\n }\n return regexPattern;\n }\n\n isMandatoryFieldNet20(field: string) {\n return IsMandatoryField(this.fieldConfigurations, field, this.customer.idCountry);\n }\n}\n"],"sourceRoot":""}