{"version":3,"sources":["webpack:///./src/services/Net20DropDowns.ts","webpack:///./src/services/DropDownItem.ts"],"names":["SOURCE","MainVar_1","require","General_1","axios_1","tslib_1","__importDefault","ContractConfiguration_1","exports","TYPE_OF_PROPOSAL_LIST","DISTRIBUTOR_LIST","WORKSHOP_AREA_LIST","TRAFFIC_FLOW_LIST","WORKSHOP_VISIBILITY_LIST","WORKSHOP_APPEARANCE_LIST","TRAINING_TYPE_LIST","TRAINING_PERYEAR_LIST","CONSUMER_REVIEW_LIST","SERVICE_LIST","FINANCIAL_RISK_LIST","SIGN_CUSTOMIZATION_LIST","SIGN_TYPE_LIST","SIGN_SIZE_LIST","SIGN_BRAND_CUSTOMIZATION_LIST","SIGN_HIGH_TRAFFIC_STREET_LIST","SIGN_REPLACEMENT_TYPE_LIST","WELCOME_KIT_SIZE_LIST","DD_SIGN_REPLACEMENT_MODULES_PANELS","DD_SIGN_REPLACEMENT_MODULES_PLEXIGLASS","EXCLUDED_TYPE_OF_PROPOSAL_OPTIONS","POTENTIAL_VOLUME_LIMIT_OPTIONS","SUPPLIER_REQUEST_EXCLUSIONS","EXCLUDED_CONTRACT_STEPS","PLANNED_SIGN_INSTALLATION_DEFAULTS","CONTRACT_CONFIGURATIONS","FIELD_CONFIGURATIONS","DISTRICTS","mainVar","ForceAllDropDownList","General","GetDropDownItemList","TYPE_OF_PROPOSAL","_context","sent","next","DISTRIBUTOR","WORKSHOP_AREA","TRAFFIC_FLOW","WORKSHOP_VISIBILITY","WORKSHOP_APPEARANCE","TRAINING_TYPE","TRAINING_PERYEAR","CONSUMER_REVIEW","SERVICE","FINANCIAL_RISK","SIGN_CUSTOMIZATION","SIGN_TYPE","SIGN_SIZE","SIGN_BRAND_CUSTOMIZATION","SIGN_HIGH_TRAFFIC_STREET","SIGN_REPLACEMENT_TYPE","WELCOME_KIT_SIZE","SIGN_REPLACEMENT_MODULES_PANELS","SIGN_REPLACEMENT_MODULES_PLEXIGLASS","GetExcludedTypeOfProposalOptions","GetPotentialVolumeLimitOptions","GetSupplierRequestExclusions","InitExcludedContractSteps","InitPlannedSignInstallationDefaults","InitContractConfigurations","InitFieldConfiguration","InitDistricts","stop","_callee","GetDropDownChildReplacementSign","idDropDownFather","mergedArray","_context2","SyncNet20Dropdowns","concat","abrupt","SetOptionsDropDown","filter","x","_callee2","firstLoad","_context3","MainVar","GetAsync","previousMainVar","dropDownListLastUpdate","translationsLastUpdate","net20PotentialVolumeLimitsLastUpdate","net20SupplierRequestExclusionsLastUpdate","net20ExcludedContractStepsUpdate","net20FieldConfigurationsUpdate","net20PlannedSignInstallationDefaultsUpdate","lastEndpointCheck","IsRecent","_callee3","excludedOptions","Array","_context4","prev","default","get","GetApiUrl","responseType","withCredentials","response","data","t0","HandleError","this","_callee4","potentialVolumeLimits","_context5","_callee5","supplierRequestExclusions","_context6","_callee6","FilterExcludedTypeOfProposalOptions","selectedOptions","idCountry","arguments","length","undefined","idChannel","filteredOptions","d","s","findIndex","e","typeOfProposal","value","GetDropDownListBySource","source","selectedValue","selectOptions","_context7","deletionDate","idDropDownItem","_callee7","IsPotentialVolumeCompliant","potentialVolume","_context8","limit","find","l","minVolume","_callee8","IsExcludedSupplierRequest","_context9","_callee9","GetExcludedContractSteps","excludedContractStep","_context10","_callee10","_context11","_callee11","GetPlannedSignInstallationDefaults","plannedSignInstallationDefault","arrayDefaults","index","plannedSignInstallation","_context12","_callee12","plannedSignInstallationDefaults","_context13","_callee13","GetFieldConfigurations","fieldConfigurations","_context14","_callee14","IsMandatoryField","field","check","fieldConfigurationFiltered","entityProperty","toLowerCase","fieldConfiguration","mandatory","GetDistricts","districts","dropDownItems","countryDivision","sort","a","b","regionCompare","name","localeCompare","forEach","element","dropDownItem","id","text","code","identifyCode","push","_context15","_callee15","GetContractConfiguration","contractConfigurations","ContractConfiguration","_context16","_callee16","_context17","_callee17","_context18","_callee18","_context19","_callee19","DropDownItem","_createClass","itemText","codDropDownSource","_classCallCheck"],"mappings":"yRAaYA,E,YAbZC,EAAA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,yBAAAQ,EAAA3I,UAAA4I,EAAA,kBA/cjC5M,EAAA8B,uBAmCA9B,EAAAkE,kCAUAlE,EAAAsE,qBAkGAtE,EAAA+H,0BAoFA/H,EAAAuI,6BAkBAvI,EAAA+I,4BAmBA/I,EAAAkJ,2BA6BAlJ,EAAAwJ,qCAsDAxJ,EAAAkK,yBAUAlK,EAAAsK,oBAgBAtK,EAAA8K,gBA0BA9K,EAAAkM,6B,mICrdaW,EAAYC,GACrB,SAAAD,EAAYxE,EAAuB0E,EAAiBC,EAA0B7I,EAAyB2H,EAAsB1D,GAAkB6E,EAAA,KAAAJ,GACxHpG,KAAK4B,eAAvBA,GAA+E,KAC1D5B,KAAKuG,kBAA1BA,GAA2F,KAC/EvG,KAAKsG,SAAjBA,GAAuD,KACnCtG,KAAKtC,iBAAzBA,GAAuF,KACvEsC,KAAKqF,aAArBA,GAAuE,KACvErF,KAAK2B,aAAgB3B,KAAK2B,aAAeA,EAAe3B,KAAK2B,aAAe,QAPrFpI,EAAA6M","file":"js/chunk-22d85136.a9a1c8a9.js","sourcesContent":["import { MainVar } from \"@/entity/MainVar\";\r\nimport { General } from \"./General\";\r\nimport { DropDownItem, SelectDropDownItem } from \"./DropDownItem\";\r\nimport { ExcludedTypeOfProposalOption } from '@/entity/Net20/ExcludedTypeOfProposalOption';\r\nimport axios from 'axios';\r\nimport { PotentialVolumeLimitOption } from '@/entity/Net20/PotentialVolumeLimitOption';\r\nimport { SupplierRequestExclusion } from '@/entity/Net20/SupplierRequestExclusion';\r\nimport { ExcludedContractStep } from \"@/entity/Net20/ExcludedContractStep\";\r\nimport { PlannedSignInstallationDefault } from \"@/entity/Net20/PlannedSignInstallationDefault\";\r\nimport { FieldConfiguration } from \"@/entity/Net20/FieldConfiguration\";\r\nimport { District } from \"@/entity/District\";\r\nimport { ContractConfiguration } from \"@/entity/Net20/ContractConfiguration\";\r\n\r\nexport enum SOURCE {\r\n TYPE_OF_PROPOSAL = \"TYPE_OF_PROPOSAL\",\r\n DISTRIBUTOR = \"DISTRIBUTOR\",\r\n WORKSHOP_AREA = \"WORKSHOP_AREA\",\r\n TRAFFIC_FLOW = \"TRAFFIC_FLOW\", \r\n WORKSHOP_VISIBILITY = \"WORKSHOP_VISIBILITY\",\r\n WORKSHOP_APPEARANCE = \"WORKSHOP_APPEARANCE\",\r\n TRAINING_TYPE = \"TRAINING_TYPE\",\r\n TRAINING_PERYEAR = \"TRAINING_YEAR\",\r\n CONSUMER_REVIEW = \"CONSUMER_REVIEW\",\r\n SERVICE = \"CUSTOMER_SERVICE\",\r\n FINANCIAL_RISK = \"FINANCIAL_RISK\",\r\n SIGN_CUSTOMIZATION = \"SIGN_CUSTOMIZATION\",\r\n SIGN_TYPE = \"SIGN_TYPE\",\r\n SIGN_SIZE = \"SIGN_SIZE\",\r\n SIGN_BRAND_CUSTOMIZATION = \"SIGN_BRAND_CUSTOMIZATION\",\r\n SIGN_HIGH_TRAFFIC_STREET = \"SIGN_HIGH_TRAFFIC_STREET\",\r\n SIGN_REPLACEMENT_TYPE = \"SIGN_REPLACEMENT_TYPE\",\r\n SIGN_REPLACEMENT_MODULES_PANELS = \"SIGN_REPLACEMENT_MODULES_PANELS\",\r\n SIGN_REPLACEMENT_MODULES_PLEXIGLASS = \"SIGN_REPLACEMENT_MODULES_PLEXIGLASS\",\r\n WELCOME_KIT_SIZE = \"WELCOME_KIT_SIZE\"\r\n}\r\n\r\nlet TYPE_OF_PROPOSAL_LIST: Array = [];\r\nlet DISTRIBUTOR_LIST: Array = [];\r\nlet WORKSHOP_AREA_LIST: Array = [];\r\nlet TRAFFIC_FLOW_LIST: Array = [];\r\nlet WORKSHOP_VISIBILITY_LIST: Array = [];\r\nlet WORKSHOP_APPEARANCE_LIST: Array = [];\r\nlet TRAINING_TYPE_LIST: Array = [];\r\nlet TRAINING_PERYEAR_LIST: Array = [];\r\nlet CONSUMER_REVIEW_LIST: Array = [];\r\nlet SERVICE_LIST: Array = [];\r\nlet FINANCIAL_RISK_LIST: Array = [];\r\nlet SIGN_CUSTOMIZATION_LIST: Array = [];\r\nlet SIGN_TYPE_LIST: Array = [];\r\nlet SIGN_SIZE_LIST: Array = [];\r\nlet SIGN_BRAND_CUSTOMIZATION_LIST: Array = [];\r\nlet SIGN_HIGH_TRAFFIC_STREET_LIST: Array = [];\r\nlet SIGN_REPLACEMENT_TYPE_LIST: Array = [];\r\nlet WELCOME_KIT_SIZE_LIST: Array = [];\r\n\r\nlet DD_SIGN_REPLACEMENT_MODULES_PANELS: Array = [];\r\nlet DD_SIGN_REPLACEMENT_MODULES_PLEXIGLASS: Array = [];\r\n\r\nlet EXCLUDED_TYPE_OF_PROPOSAL_OPTIONS: Array = [];\r\nlet POTENTIAL_VOLUME_LIMIT_OPTIONS: Array = [];\r\nlet SUPPLIER_REQUEST_EXCLUSIONS: Array = [];\r\nlet EXCLUDED_CONTRACT_STEPS: Array = [];\r\nlet PLANNED_SIGN_INSTALLATION_DEFAULTS: Array = [];\r\nlet CONTRACT_CONFIGURATIONS:Array = [];\r\n\r\nlet FIELD_CONFIGURATIONS: Array = [];\r\nlet DISTRICTS: Array = [];\r\n\r\nlet mainVar: MainVar = null;\r\n\r\nexport async function ForceAllDropDownList() {\r\n TYPE_OF_PROPOSAL_LIST = await General.GetDropDownItemList(SOURCE.TYPE_OF_PROPOSAL);\r\n DISTRIBUTOR_LIST = await General.GetDropDownItemList(SOURCE.DISTRIBUTOR);\r\n WORKSHOP_AREA_LIST = await General.GetDropDownItemList(SOURCE.WORKSHOP_AREA);\r\n TRAFFIC_FLOW_LIST = await General.GetDropDownItemList(SOURCE.TRAFFIC_FLOW);\r\n WORKSHOP_VISIBILITY_LIST = await General.GetDropDownItemList(SOURCE.WORKSHOP_VISIBILITY);\r\n WORKSHOP_APPEARANCE_LIST = await General.GetDropDownItemList(SOURCE.WORKSHOP_APPEARANCE);\r\n TRAINING_TYPE_LIST = await General.GetDropDownItemList(SOURCE.TRAINING_TYPE);\r\n TRAINING_PERYEAR_LIST = await General.GetDropDownItemList(SOURCE.TRAINING_PERYEAR);\r\n CONSUMER_REVIEW_LIST = await General.GetDropDownItemList(SOURCE.CONSUMER_REVIEW);\r\n SERVICE_LIST = await General.GetDropDownItemList(SOURCE.SERVICE);\r\n FINANCIAL_RISK_LIST = await General.GetDropDownItemList(SOURCE.FINANCIAL_RISK);\r\n SIGN_CUSTOMIZATION_LIST = await General.GetDropDownItemList(SOURCE.SIGN_CUSTOMIZATION);\r\n SIGN_TYPE_LIST = await General.GetDropDownItemList(SOURCE.SIGN_TYPE);\r\n SIGN_SIZE_LIST = await General.GetDropDownItemList(SOURCE.SIGN_SIZE);\r\n SIGN_BRAND_CUSTOMIZATION_LIST = await General.GetDropDownItemList(SOURCE.SIGN_BRAND_CUSTOMIZATION);\r\n SIGN_HIGH_TRAFFIC_STREET_LIST = await General.GetDropDownItemList(SOURCE.SIGN_HIGH_TRAFFIC_STREET);\r\n SIGN_REPLACEMENT_TYPE_LIST = await General.GetDropDownItemList(SOURCE.SIGN_REPLACEMENT_TYPE);\r\n WELCOME_KIT_SIZE_LIST = await General.GetDropDownItemList(SOURCE.WELCOME_KIT_SIZE);\r\n\r\n DD_SIGN_REPLACEMENT_MODULES_PANELS = await General.GetDropDownItemList(SOURCE.SIGN_REPLACEMENT_MODULES_PANELS);\r\n DD_SIGN_REPLACEMENT_MODULES_PLEXIGLASS = await General.GetDropDownItemList(SOURCE.SIGN_REPLACEMENT_MODULES_PLEXIGLASS);\r\n\r\n EXCLUDED_TYPE_OF_PROPOSAL_OPTIONS = await GetExcludedTypeOfProposalOptions();\r\n POTENTIAL_VOLUME_LIMIT_OPTIONS = await GetPotentialVolumeLimitOptions();\r\n SUPPLIER_REQUEST_EXCLUSIONS = await GetSupplierRequestExclusions();\r\n EXCLUDED_CONTRACT_STEPS = await InitExcludedContractSteps();\r\n PLANNED_SIGN_INSTALLATION_DEFAULTS = await InitPlannedSignInstallationDefaults();\r\n CONTRACT_CONFIGURATIONS = await InitContractConfigurations();\r\n\r\n FIELD_CONFIGURATIONS = await InitFieldConfiguration();\r\n\r\n DISTRICTS = await InitDistricts();\r\n}\r\n\r\nexport async function GetDropDownChildReplacementSign(idDropDownFather: string) {\r\n let mergedArray: Array = [];\r\n\r\n await SyncNet20Dropdowns();\r\n\r\n mergedArray = DD_SIGN_REPLACEMENT_MODULES_PANELS.concat(DD_SIGN_REPLACEMENT_MODULES_PLEXIGLASS);\r\n\r\n return General.SetOptionsDropDown(mergedArray.filter(x => x.idDropDownFather === idDropDownFather), false);\r\n}\r\n\r\nexport async function SyncNet20Dropdowns() { \r\n let firstLoad: boolean = false;\r\n if(mainVar == null) {\r\n mainVar = new MainVar();\r\n await mainVar.GetAsync();\r\n firstLoad = true;\r\n }\r\n \r\n if(firstLoad) {\r\n await ForceAllDropDownList();\r\n } else {\r\n let previousMainVar = new MainVar();\r\n previousMainVar.dropDownListLastUpdate = mainVar.dropDownListLastUpdate;\r\n previousMainVar.translationsLastUpdate = mainVar.translationsLastUpdate;\r\n previousMainVar.net20PotentialVolumeLimitsLastUpdate = mainVar.net20PotentialVolumeLimitsLastUpdate;\r\n previousMainVar.net20SupplierRequestExclusionsLastUpdate = mainVar.net20SupplierRequestExclusionsLastUpdate;\r\n previousMainVar.net20ExcludedContractStepsUpdate = mainVar.net20ExcludedContractStepsUpdate;\r\n previousMainVar.net20ExcludedContractStepsUpdate = mainVar.net20ExcludedContractStepsUpdate;\r\n previousMainVar.net20FieldConfigurationsUpdate = mainVar.net20FieldConfigurationsUpdate;\r\n previousMainVar.net20PlannedSignInstallationDefaultsUpdate = mainVar.net20PlannedSignInstallationDefaultsUpdate;\r\n previousMainVar.lastEndpointCheck = mainVar.lastEndpointCheck;\r\n\r\n await mainVar.GetAsync();\r\n if(mainVar.IsRecent(previousMainVar)) { \r\n await ForceAllDropDownList();\r\n }\r\n }\r\n}\r\n\r\nasync function GetExcludedTypeOfProposalOptions(): Promise {\r\n let excludedOptions = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetExcludedTypeOfProposalOptions'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n excludedOptions = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return excludedOptions;\r\n}\r\n\r\nasync function GetPotentialVolumeLimitOptions(): Promise {\r\n let potentialVolumeLimits = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetPotentialVolumeLimitOptions'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n potentialVolumeLimits = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return potentialVolumeLimits;\r\n}\r\n\r\nasync function GetSupplierRequestExclusions(): Promise {\r\n let supplierRequestExclusions = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetSupplierRequestExclusions'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n supplierRequestExclusions = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return supplierRequestExclusions;\r\n}\r\n\r\nfunction FilterExcludedTypeOfProposalOptions(selectedOptions: Array, idCountry: string = null, idChannel: number = null): Array {\r\n let filteredOptions: Array = [];\r\n if(EXCLUDED_TYPE_OF_PROPOSAL_OPTIONS != null) {\r\n let excludedOptions = EXCLUDED_TYPE_OF_PROPOSAL_OPTIONS.filter(d => d.idCountry === idCountry && d.idChannel == idChannel);\r\n filteredOptions = selectedOptions.filter(s => excludedOptions.findIndex(e => e.typeOfProposal === s.value) == -1);\r\n\r\n return filteredOptions;\r\n } else {\r\n return selectedOptions;\r\n }\r\n}\r\n\r\nexport async function GetDropDownListBySource(source:string, selectedValue: string = null, idCountry: string = null, idChannel: number = null): Promise {\r\n let selectOptions: Array = [];\r\n\r\n await SyncNet20Dropdowns();\r\n\r\n switch(source) {\r\n case SOURCE.TYPE_OF_PROPOSAL: {\r\n selectOptions = General.SetOptionsDropDown(TYPE_OF_PROPOSAL_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n selectOptions = FilterExcludedTypeOfProposalOptions(selectOptions, idCountry, idChannel);\r\n break;\r\n }\r\n case SOURCE.DISTRIBUTOR: {\r\n selectOptions = General.SetOptionsDropDown(DISTRIBUTOR_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.WORKSHOP_AREA: {\r\n selectOptions = General.SetOptionsDropDown(WORKSHOP_AREA_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.TRAFFIC_FLOW: {\r\n selectOptions = General.SetOptionsDropDown(TRAFFIC_FLOW_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.WORKSHOP_VISIBILITY: {\r\n selectOptions = General.SetOptionsDropDown(WORKSHOP_VISIBILITY_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)))\r\n break;\r\n }\r\n case SOURCE.WORKSHOP_APPEARANCE: {\r\n selectOptions = General.SetOptionsDropDown(WORKSHOP_APPEARANCE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.TRAINING_TYPE: {\r\n selectOptions = General.SetOptionsDropDown(TRAINING_TYPE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.TRAINING_PERYEAR: {\r\n selectOptions = General.SetOptionsDropDown(TRAINING_PERYEAR_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.CONSUMER_REVIEW: {\r\n selectOptions = General.SetOptionsDropDown(CONSUMER_REVIEW_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SERVICE: {\r\n selectOptions = General.SetOptionsDropDown(SERVICE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.FINANCIAL_RISK: {\r\n selectOptions = General.SetOptionsDropDown(FINANCIAL_RISK_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SIGN_CUSTOMIZATION: {\r\n selectOptions = General.SetOptionsDropDown(SIGN_CUSTOMIZATION_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SIGN_TYPE: {\r\n selectOptions = General.SetOptionsDropDown(SIGN_TYPE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SIGN_SIZE: {\r\n selectOptions = General.SetOptionsDropDown(SIGN_SIZE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SIGN_BRAND_CUSTOMIZATION: {\r\n selectOptions = General.SetOptionsDropDown(SIGN_BRAND_CUSTOMIZATION_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SIGN_HIGH_TRAFFIC_STREET: {\r\n selectOptions = General.SetOptionsDropDown(SIGN_HIGH_TRAFFIC_STREET_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.SIGN_REPLACEMENT_TYPE: {\r\n selectOptions = General.SetOptionsDropDown(SIGN_REPLACEMENT_TYPE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n case SOURCE.WELCOME_KIT_SIZE: {\r\n selectOptions = General.SetOptionsDropDown(WELCOME_KIT_SIZE_LIST.filter(d => d.deletionDate == null || (d.deletionDate != null && d.idDropDownItem === selectedValue)));\r\n break;\r\n }\r\n }\r\n\r\n return selectOptions;\r\n}\r\n\r\nexport async function IsPotentialVolumeCompliant(idCountry: string, idChannel: number, typeOfProposal: string, potentialVolume: number): Promise {\r\n await SyncNet20Dropdowns();\r\n \r\n if(POTENTIAL_VOLUME_LIMIT_OPTIONS != null) {\r\n let limit = POTENTIAL_VOLUME_LIMIT_OPTIONS.find(l => l.idCountry === idCountry\r\n && l.idChannel == idChannel\r\n && l.typeOfProposal === typeOfProposal)\r\n\r\n if(limit == null) {\r\n return true;\r\n } else {\r\n return potentialVolume >= limit.minVolume;\r\n } \r\n } else {\r\n return true;\r\n } \r\n}\r\n\r\nexport async function IsExcludedSupplierRequest(idCountry: string, idChannel: number, typeOfProposal: string): Promise {\r\n await SyncNet20Dropdowns();\r\n\r\n if(SUPPLIER_REQUEST_EXCLUSIONS != null) {\r\n if(SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal === typeOfProposal && s.idCountry == null && s.idChannel == null) >= 0\r\n || SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal == null && s.idCountry === idCountry && s.idChannel == null) >= 0\r\n || SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal == null && s.idCountry == null && s.idChannel == idChannel) >= 0\r\n || SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal === typeOfProposal && s.idCountry === idCountry && s.idChannel == null) >= 0\r\n || SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal === typeOfProposal && s.idCountry == null && s.idChannel == idChannel) >= 0\r\n || SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal == null && s.idCountry === idCountry && s.idChannel == idChannel) >= 0\r\n || SUPPLIER_REQUEST_EXCLUSIONS.findIndex(s => s.typeOfProposal === typeOfProposal && s.idCountry === idCountry && s.idChannel == idChannel) >= 0) \r\n return true;\r\n \r\n return false;\r\n }\r\n\r\n return false;\r\n} \r\n\r\nexport async function GetExcludedContractSteps(idCountry = null) : Promise {\r\n await SyncNet20Dropdowns();\r\n let excludedContractStep = new Array();\r\n\r\n if(EXCLUDED_CONTRACT_STEPS != null) {\r\n excludedContractStep = EXCLUDED_CONTRACT_STEPS.filter(x => idCountry == null || x.idCountry === idCountry);\r\n }\r\n return excludedContractStep;\r\n}\r\n\r\nasync function InitExcludedContractSteps(): Promise {\r\n let excludedOptions = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetExcludedContractSteps'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n excludedOptions = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return excludedOptions;\r\n} \r\n\r\nexport async function GetPlannedSignInstallationDefaults(idCountry: string = null, idChannel: number = null, typeOfProposal: string = null) : Promise {\r\n await SyncNet20Dropdowns();\r\n let plannedSignInstallationDefault = null;\r\n let arrayDefaults = Array();\r\n\r\n if(PLANNED_SIGN_INSTALLATION_DEFAULTS != null) {\r\n arrayDefaults = PLANNED_SIGN_INSTALLATION_DEFAULTS.filter(x => (x.idCountry == null || (x.idCountry != null && x.idCountry === idCountry))\r\n && (x.idChannel == null || (x.idChannel != null && x.idChannel == idChannel))\r\n && (x.typeOfProposal == null || x.typeOfProposal != null && x.typeOfProposal === typeOfProposal));\r\n if(arrayDefaults != null && arrayDefaults.length > 0) {\r\n let index = arrayDefaults.findIndex( x => x. idCountry != null && x.idChannel == null && x.typeOfProposal == null);\r\n if(index < 0) {\r\n index = arrayDefaults.findIndex( x => x. idCountry == null && x.idChannel != null && x.typeOfProposal == null);\r\n if(index < 0) {\r\n index = arrayDefaults.findIndex( x => x. idCountry == null && x.idChannel == null && x.typeOfProposal != null);\r\n if(index < 0) {\r\n index = arrayDefaults.findIndex( x => x. idCountry != null && x.idChannel != null && x.typeOfProposal == null);\r\n if(index < 0) {\r\n index = arrayDefaults.findIndex( x => x. idCountry == null && x.idChannel != null && x.typeOfProposal != null);\r\n if(index < 0) {\r\n index = arrayDefaults.findIndex( x => x. idCountry != null && x.idChannel == null && x.typeOfProposal != null);\r\n if(index < 0) {\r\n index = arrayDefaults.findIndex( x => x. idCountry != null && x.idChannel != null && x.typeOfProposal != null);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n plannedSignInstallationDefault = arrayDefaults[index].plannedSignInstallation;\r\n }\r\n }\r\n return plannedSignInstallationDefault;\r\n}\r\n\r\nasync function InitPlannedSignInstallationDefaults(): Promise {\r\n let plannedSignInstallationDefaults = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetPlannedSignInstallationDefaults'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n plannedSignInstallationDefaults = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return plannedSignInstallationDefaults;\r\n}\r\n\r\nexport async function GetFieldConfigurations(idCountry = null) : Promise {\r\n await SyncNet20Dropdowns();\r\n let fieldConfigurations = new Array();\r\n\r\n if(FIELD_CONFIGURATIONS != null) {\r\n fieldConfigurations = FIELD_CONFIGURATIONS.filter(x => x.idCountry == null || (x.idCountry != null && x.idCountry === idCountry));\r\n }\r\n return fieldConfigurations;\r\n}\r\n\r\nexport function IsMandatoryField(fieldConfigurations: Array, field: string, idCountry: string = null) {\r\n var check = true;\r\n if(fieldConfigurations != null && fieldConfigurations.length > 0 && field != null) {\r\n var fieldConfigurationFiltered = fieldConfigurations.filter(x => x.entityProperty.toLowerCase() === field.toLowerCase());\r\n var fieldConfiguration = fieldConfigurationFiltered.find(x => x.idCountry == null);\r\n\r\n if(fieldConfiguration == null)\r\n fieldConfiguration = fieldConfigurationFiltered.find(x => x.idCountry != null && idCountry != null && x.idCountry === idCountry);\r\n\r\n if(fieldConfiguration != null && !fieldConfiguration.mandatory)\r\n check = false;\r\n }\r\n\r\n return check;\r\n}\r\n\r\nexport async function GetDistricts(idCountry) : Promise {\r\n await SyncNet20Dropdowns();\r\n let districts = new Array();\r\n let dropDownItems = new Array();\r\n\r\n if(DISTRICTS != null) {\r\n districts = DISTRICTS.filter(x => x.countryDivision.idCountry === idCountry).sort((a, b) => {\r\n const regionCompare = a.countryDivision.name.localeCompare(b.countryDivision.name)\r\n if(regionCompare !== 0)\r\n return regionCompare;\r\n return a.name.localeCompare(b.name);\r\n });\r\n districts.forEach(element => {\r\n let dropDownItem: SelectDropDownItem = {\r\n value: element.id,\r\n text:`${element.countryDivision.name} - ${element.name} (${element.code})`,\r\n identifyCode: null,\r\n deletionDate: null\r\n };\r\n\r\n dropDownItems.push(dropDownItem);\r\n });\r\n }\r\n return dropDownItems;\r\n}\r\n\r\nexport async function GetContractConfiguration(idCountry: string) {\r\n await SyncNet20Dropdowns();\r\n let contractConfigurations = new ContractConfiguration();\r\n\r\n if(CONTRACT_CONFIGURATIONS != null)\r\n contractConfigurations = CONTRACT_CONFIGURATIONS.filter(x => x.idCountry === idCountry)[0];\r\n\r\n return contractConfigurations;\r\n}\r\n\r\nasync function InitFieldConfiguration(): Promise {\r\n let fieldConfigurations = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetFieldConfigurations'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n fieldConfigurations = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return fieldConfigurations;\r\n}\r\n\r\nasync function InitDistricts(): Promise {\r\n let districts = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetDistricts'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n districts = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return districts;\r\n}\r\n\r\nasync function InitContractConfigurations(): Promise {\r\n let contractConfigurations = new Array();\r\n\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetContractConfigurations'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n contractConfigurations = response.data;\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n\r\n return contractConfigurations;\r\n}\r\n\r\n","export class DropDownItem {\r\n constructor(idDropDownItem?:string,itemText?:string,codDropDownSource?:string,idDropDownFather?:string,identifyCode?:string, deletionDate?:Date){\r\n (idDropDownItem) ? this.idDropDownItem = idDropDownItem : this.idDropDownItem = null;\r\n (codDropDownSource) ? this.codDropDownSource = codDropDownSource : this.codDropDownSource = null;\r\n (itemText) ? this.itemText = itemText : this.itemText = null;\r\n (idDropDownFather) ? this.idDropDownFather = idDropDownFather : this.idDropDownFather = null;\r\n (identifyCode) ? this.identifyCode = identifyCode : this.identifyCode = null;\r\n (this.deletionDate) ? this.deletionDate = deletionDate : this.deletionDate = null;\r\n }\r\n public idDropDownItem:string;\r\n public itemText:string;\r\n public codDropDownSource:string;\r\n public idDropDownFather:string;\r\n public identifyCode:string;\r\n public deletionDate:Date;\r\n}\r\n\r\nexport interface SelectDropDownItem {\r\n value: string;\r\n text: string;\r\n identifyCode: string;\r\n deletionDate: Date;\r\n}"],"sourceRoot":""}