{"version":3,"sources":["webpack:///./src/entity/Net20/ContractConfiguration.ts","webpack:///./src/entity/Net20/SupplierRequestHistory.ts","webpack:///./src/entity/Net20/CustomerSocial.ts","webpack:///./src/entity/Net20/ContractAttachment.ts","webpack:///./src/entity/Net20/Customer.ts","webpack:///./src/entity/Net20/Contract.ts","webpack:///./src/entity/Net20/ContractStep.ts","webpack:///./src/entity/Net20/SignSelectOption.ts","webpack:///./src/entity/Net20/ReplacementModule.ts","webpack:///./src/entity/Net20/CustomerService.ts","webpack:///./src/entity/Net20/Channel.ts"],"names":["ContractConfiguration","_createClass","_classCallCheck","exports","SupplierRequestHistory","id","idContract","emails","dateRequest","signCustomization","signType","signSize","signBrandCustomization","signNameText","signTelephone","note","replacementType","supplier","this","key","value","customerContract","i18n_setup_1","require","CustomerSocial","SOCIAL_LIST","text","i18n","t","getDropDownSocialList","array","push","forEach","el","ContractAttachment","fileName","sessionId","processId","status","toDelete","uploadContractStep","Customer","ContractStep_1","Enums_1","Contract","contractYear","idStep","idCustomer","idChannel","idSalesman","potentialVolume","actualVolume","actualSupplier","actualAgreementSigned","actualAgreementExpireDate","financialRisk","typeOfProposal","signPlannedInstallation","signInstalled","signInstallationDate","contractType","currentVersion","contractYearTimespan","authorization","silverTypeOfProposal","signReplacementType","GetContractTypeDefinition","contract","definition","currentYear","Date","getFullYear","expirationYear","NET20_CONTRACT_TYPE","FIRST_CONTRACT","RENEWAL","concat","STEP_ENUM","REFUSED","ContractStep","usernameStep","userStep","dataStep","STEP_LIST","descriptionShort","descriptionLong","DROP_DOWN_STEP_LIST","TRANSLATED_STEP_LIST","getDropDownStepList","length","refusedStep","closingStep","getStepsDescription","lastStep","excludedSteps","arguments","undefined","Array","findIndex","x","step","General_1","MainVar_1","axios_1","tslib_1","__importDefault","SignSelectOption","mainVar","LEVEL","SIGN_SELECT_OPTIONS","SyncSignSelectOptions","firstLoad","_context","next","MainVar","GetAsync","getSignSelectOptions","previousMainVar","dropDownListLastUpdate","translationsLastUpdate","lastEndpointCheck","IsRecent","stop","_callee","default","get","General","GetApiUrl","responseType","withCredentials","response","_context2","sent","data","abrupt","_callee2","isDepractedSignCustomization","selectOption","check","_context3","counter","filter","s","idCountry","deletionDate","_callee3","getDropDownIdList","selectedValue","idList","filteredOptions","_context4","t0","level","SIGN_CUSTOMIZATION","SIGN_TYPE","SIGN_SIZE","SIGN_BRAND_CUSTOMIZATION","map","idDropDownItem","_callee4","ReplacementModule","idSupplierRequest","idReplacementModule","CustomerService","Channel","GetDropDownChannelsForUser","prev","setOptionsDropDownChannel","HandleError","GetDropDownChannels","channels","description","CHANNEL_DETAIL"],"mappings":"mNAAaA,EAAqBC,GAAA,SAAAD,IAAAE,EAAA,KAAAF,MAAlCG,EAAAH,yB,qICIaI,EAAsB,WAiB/B,SAAAA,EAAYC,EACEC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAAoBf,EAAA,KAAAE,GAC9Bc,KAAKb,GAAKA,EACVa,KAAKZ,WAAaA,EAClBY,KAAKX,OAASA,EACdW,KAAKV,YAAcA,EACnBU,KAAKT,kBAAoBA,EACzBS,KAAKR,SAAWA,EAChBQ,KAAKP,SAAWA,EAChBO,KAAKN,uBAAyBA,EAC9BM,KAAKL,aAAeA,EACpBK,KAAKJ,cAAgBA,EACrBI,KAAKH,KAAOA,EACZG,KAAKF,gBAAkBA,EACvBE,KAAKD,SAAWA,EACnB,OAAAhB,EAAAG,EAAA,EAAAe,IAAA,mBAAAC,MAED,SAAiBC,GACbH,KAAKZ,WAAae,EAAiBhB,GACnCa,KAAKT,kBAAoBY,EAAiBZ,kBAC1CS,KAAKR,SAAWW,EAAiBX,SACjCQ,KAAKP,SAAWU,EAAiBV,SACjCO,KAAKN,uBAAyBS,EAAiBT,uBAC/CM,KAAKL,aAAeQ,EAAiBR,aACrCK,KAAKJ,cAAgBO,EAAiBP,cACtCI,KAAKH,KAAOM,EAAiBN,SArDF,GAAnCZ,EAAAC,0B,6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KAAK,CAAEX,MAAO,KAAMM,KAAM,KAChCgJ,EAAS1I,SAAQ,SAAUC,GACvBH,EAAMC,KAAK,CAAEX,MAAOa,EAAG5B,GAAIqB,KAAMO,EAAG0I,iBAEjC7I,EApDX3B,EAAAiK,UAKA,SAAYQ,GACRA,IAAA,oBACAA,IAAA,gBACAA,IAAA,kBACAA,IAAA,kBAJJ,CAAYzK,EAAAyK,iBAAAzK,EAAAyK,eAAc,KAO1BzK,EAAAkK,6BAkBAlK,EAAAsK,sBAgBAtK,EAAAoK","file":"js/chunk-67454de0.b666acec.js","sourcesContent":["export class ContractConfiguration {\r\n public idCountry: string;\r\n public contractYearTimespan: number;\r\n public daysBeforeExpiration: number;\r\n}","import { Suppliers } from './Suppliers';\r\nimport { ReplacementModule } from \"./ReplacementModule\";\r\nimport { Contract } from \"@/entity/Net20/Contract\";\r\n\r\nexport class SupplierRequestHistory {\r\n public id: string;\r\n public idContract: string;\r\n public emails: string;\r\n public dateRequest: Date;\r\n public signCustomization: string;\r\n public signType: string;\r\n public signSize: string;\r\n public signBrandCustomization: string;\r\n public signNameText: string;\r\n public signTelephone: string;\r\n public note: string;\r\n public replacementType: string;\r\n public replacementModules: Array;\r\n public requestType: string;\r\n public supplier: Suppliers;\r\n\r\n constructor(id?: string\r\n , idContract?: string\r\n , emails?: string\r\n , dateRequest?: Date\r\n , signCustomization?: string\r\n , signType?: string\r\n , signSize?: string\r\n , signBrandCustomization?: string\r\n , signNameText?: string\r\n , signTelephone?: string\r\n , note?: string\r\n , replacementType?: string\r\n , supplier?: Suppliers) {\r\n this.id = id;\r\n this.idContract = idContract;\r\n this.emails = emails;\r\n this.dateRequest = dateRequest;\r\n this.signCustomization = signCustomization;\r\n this.signType = signType;\r\n this.signSize = signSize;\r\n this.signBrandCustomization = signBrandCustomization;\r\n this.signNameText = signNameText;\r\n this.signTelephone = signTelephone;\r\n this.note = note;\r\n this.replacementType = replacementType;\r\n this.supplier = supplier;\r\n }\r\n\r\n initFromContract(customerContract: Contract){\r\n this.idContract = customerContract.id;\r\n this.signCustomization = customerContract.signCustomization;\r\n this.signType = customerContract.signType;\r\n this.signSize = customerContract.signSize;\r\n this.signBrandCustomization = customerContract.signBrandCustomization;\r\n this.signNameText = customerContract.signNameText;\r\n this.signTelephone = customerContract.signTelephone;\r\n this.note = customerContract.note;\r\n }\r\n}","import { i18n } from \"@/i18n/i18n-setup\";\r\nexport class CustomerSocial {\r\n public socialName: string;\r\n public socialUrl: string;\r\n public idCustomer: string;\r\n}\r\n\r\nconst SOCIAL_LIST = [\r\n {text: 'YouTube', value: 'YouTube'},\r\n {text: 'Facebook', value: 'Facebook'},\r\n {text: 'Instagram', value: 'Instagram'},\r\n {text: 'Pinterest', value: 'Pinterest'},\r\n {text: 'Twitter', value: 'Twitter'},\r\n {text: 'LinkedIn', value: 'LinkedIn'},\r\n {text: 'TikTok', value: 'TikTok'},\r\n {text: 'SnapChat', value: 'SnapChat'},\r\n {text: i18n.t('GENERIC.OTHER') as string, value: 'Other'},\r\n];\r\n\r\nexport function getDropDownSocialList(): Array {\r\n let array: Array = []; \r\n array.push({ value: null, text: \"\" });\r\n\r\n SOCIAL_LIST.forEach(function (el) {\r\n array.push(el);\r\n });\r\n return array;\r\n}","import { IChunkAttachment } from \"@/interfaces/IChunkAttachment\";\r\n\r\nexport class ContractAttachment implements IChunkAttachment {\r\n public id: string;\r\n public fileName: string;\r\n public sessionId: string;\r\n public processId: string;\r\n public status: string;\r\n public toDelete: boolean;\r\n public uploadContractStep: number;\r\n\r\n constructor(\r\n id?: string,\r\n fileName?: string,\r\n sessionId?: string,\r\n processId?: string,\r\n status?: string,\r\n toDelete?: boolean,\r\n uploadContractStep?: number\r\n ) {\r\n this.id = id;\r\n this.fileName = fileName;\r\n this.sessionId = sessionId;\r\n this.processId = processId;\r\n this.status = status;\r\n this.toDelete = toDelete;\r\n this.uploadContractStep = uploadContractStep;\r\n }\r\n}","import { CustomerService } from \"./CustomerService\";\r\nimport { CustomerSocial } from \"./CustomerSocial\";\r\nimport { Contract } from \"./Contract\";\r\nimport { Country } from \"../Country\";\r\nimport { ExcludedContractStep } from './ExcludedContractStep';\r\n\r\nexport class Customer {\r\n public id: string;\r\n public numericId: number;\r\n public idCountry: string;\r\n public idDistributor: string;\r\n public workshopName: string;\r\n public locationAddress: string;\r\n public city: string;\r\n public postCode: string;\r\n public district: string;\r\n public customerId: string;\r\n public ownersName: string;\r\n public email: string;\r\n public website: string;\r\n public vatNumber: string;\r\n public telephone: string;\r\n public mobile: string;\r\n public idWorkshopArea: string;\r\n public idTrafficFlow: string;\r\n public workshopVisibility: string;\r\n public exFCAWorkshop: boolean;\r\n public mqTotal: number;\r\n public signage: boolean;\r\n public signageNote: string;\r\n public signHighTrafficStreet: string;\r\n public entrancesNumber: number;\r\n public workersNumber: number;\r\n public waitingRoom: boolean;\r\n public waitingRoomNote: string;\r\n public idWorkshopAppearance: string;\r\n public warehouse: boolean;\r\n public warehouseNote: string;\r\n public carBrigdgeLifterNumber: number;\r\n public increasingBridgeLifter: boolean;\r\n public consumerReview: string;\r\n public advertInvestments: boolean;\r\n public digitalPlatform: boolean;\r\n public petronasDigitalPlatform: boolean;\r\n public trainingParticipation: boolean;\r\n public idTrainingType: string;\r\n public trainingTypeNote: string;\r\n public trainingProvidedBy: string;\r\n public idTrainingPerYear: string;\r\n public assessmentScore: number;\r\n public currentVersion: [];\r\n public imported: boolean;\r\n public idDistrict: string;\r\n public lastContractSalesman: string;\r\n public lastContractTypeOfProposal: string;\r\n public lastContractYear: number;\r\n public lastContractId: string;\r\n public welcomeKitSize: string;\r\n public welcomeKitNotes: string;\r\n public latitude:Number;\r\n public longitude:Number;\r\n public excludedContractSteps: ExcludedContractStep[];\r\n\r\n public socials: Array;\r\n public services: Array;\r\n public contracts: Array;\r\n public country: Country;\r\n}\r\n","import { ContractAttachment } from \"./ContractAttachment\";\r\nimport { ContractAuthorization } from \"./ContractAuthorization\";\r\nimport { ContractStep, STEP_ENUM } from \"./ContractStep\";\r\nimport { i18n } from \"@/i18n/i18n-setup\";\r\nimport { NET20_CONTRACT_TYPE } from \"@/services/Enums\";\r\nimport { ReplacementModule } from \"./ReplacementModule\";\r\n\r\nexport class Contract {\r\n public id: string;\r\n public contractYear: number; \r\n public idStep: number;\r\n public idCustomer: string;\r\n public idChannel: number; \r\n public idSalesman: string;\r\n public potentialVolume: number; \r\n public actualVolume: number; \r\n public actualSupplier: number; \r\n public actualAgreementSigned: boolean; \r\n public actualAgreementExpireDate: Date; \r\n public financialRisk: string; \r\n public typeOfProposal: string; \r\n public signCustomization: string; \r\n public signType: string; \r\n public signSize: string; \r\n public signBrandCustomization: string; \r\n public signNameText: string; \r\n public signTelephone: string; \r\n public signPlannedInstallation: boolean;\r\n public signInstalled: boolean; \r\n public signInstallationDate: Date; \r\n public note: string; \r\n public contractType: number;\r\n public currentVersion: []; \r\n public contractYearTimespan: number;\r\n public authorization: ContractAuthorization; \r\n public silverTypeOfProposal: boolean = false;\r\n public signReplacementType: string;\r\n public signReplacementModules: Array;\r\n\r\n public steps: Array;\r\n public attachments: Array;\r\n \r\n constructor(\r\n id?: string,\r\n contractYear?: number, \r\n idStep?: number,\r\n idCustomer?: string,\r\n idChannel?: number, \r\n idSalesman?: string,\r\n potentialVolume?: number, \r\n actualVolume?: number, \r\n actualSupplier?: number, \r\n actualAgreementSigned?: boolean, \r\n actualAgreementExpireDate?: Date,\r\n financialRisk?: string, \r\n typeOfProposal?: string, \r\n signCustomization?: string, \r\n signType?: string, \r\n signSize?: string, \r\n signBrandCustomization?: string, \r\n signNameText?: string, \r\n signTelephone?: string, \r\n signPlannedInstallation?: boolean,\r\n signInstalled?: boolean, \r\n signInstallationDate?: Date, \r\n note?: string, \r\n contractType?: number,\r\n currentVersion?: [], \r\n contractYearTimespan?: number,\r\n authorization?: ContractAuthorization, \r\n silverTypeOfProposal?: boolean,\r\n signReplacementType?: string\r\n ) {\r\n this.id = id;\r\n this.contractYear = contractYear; \r\n this.idStep = idStep;\r\n this.idCustomer = idCustomer;\r\n this.idChannel = idChannel;\r\n this.idSalesman = idSalesman;\r\n this.potentialVolume = potentialVolume; \r\n this.actualVolume = actualVolume; \r\n this.actualSupplier = actualSupplier; \r\n this.actualAgreementSigned = actualAgreementSigned; \r\n this.actualAgreementExpireDate = actualAgreementExpireDate;\r\n this.financialRisk = financialRisk; \r\n this.typeOfProposal = typeOfProposal; \r\n this.signCustomization = signCustomization; \r\n this.signType = signType; \r\n this.signSize = signSize; \r\n this.signBrandCustomization = signBrandCustomization; \r\n this.signNameText = signNameText; \r\n this.signTelephone = signTelephone; \r\n this.signPlannedInstallation = signPlannedInstallation;\r\n this.signInstalled = signInstalled; \r\n this.signInstallationDate = signInstallationDate; \r\n this.note = note; \r\n this.contractType = contractType;\r\n this.currentVersion = currentVersion; \r\n this.contractYearTimespan = contractYearTimespan;\r\n this.authorization = authorization; \r\n this.silverTypeOfProposal = silverTypeOfProposal;\r\n this.signReplacementType = signReplacementType;\r\n }\r\n}\r\n\r\nexport function GetContractTypeDefinition(contract: Contract): string {\r\n let definition = \"\";\r\n let currentYear = new Date().getFullYear();\r\n let expirationYear = contract.contractYear + contract.contractYearTimespan;\r\n\r\n if(contract.contractType == NET20_CONTRACT_TYPE.FIRST_CONTRACT)\r\n definition = i18n.t(\"NET20.FIRST_CONTRACT\") as string;\r\n else if(contract.contractType == NET20_CONTRACT_TYPE.RENEWAL)\r\n definition = i18n.t(\"NET20.RENEWAL_CONTRACT\") as string;\r\n else\r\n definition = i18n.t(\"NET20.NEW_CONTRACT\") as string;\r\n\r\n if(currentYear >= expirationYear)\r\n definition = `${definition} ${contract.contractYear} (${i18n.t(\"NET20.CONTRACT_EXPIRED_IN\") as string} ${expirationYear})`;\r\n else\r\n definition = `${definition} ${contract.contractYear} (${i18n.t(\"NET20.CONTRACT_EXPIRES_IN\") as string} ${expirationYear})`;\r\n\r\n if(contract.idStep == STEP_ENUM.REFUSED) {\r\n definition = `${definition} [${i18n.t(\"NET20.CONTRACT_REFUSED\") as string}]`;\r\n }\r\n\r\n return definition;\r\n}\r\n","import { i18n } from \"@/i18n/i18n-setup\";\r\nimport Step from '@/interfaces/IStep';\r\nimport { ExcludedContractStep } from \"./ExcludedContractStep\";\r\n\r\nexport class ContractStep {\r\n public idContract: string;\r\n public idStep: number;\r\n public note: string;\r\n public currentVersion: [];\r\n public usernameStep: string;\r\n public userStep: string;\r\n public dataStep: Date;\r\n\r\n constructor(\r\n idContract?: string,\r\n idStep?: number,\r\n note?: string,\r\n currentVersion?: [],\r\n usernameStep?: string,\r\n userStep?: string,\r\n dataStep?: Date\r\n ) {\r\n this.idContract = idContract;\r\n this.idStep = idStep;\r\n this.note = note;\r\n this.currentVersion = currentVersion;\r\n this.usernameStep = usernameStep;\r\n this.userStep = userStep;\r\n this.dataStep = dataStep;\r\n }\r\n}\r\n\r\nexport enum STEP_ENUM {\r\n EVALUATION_FORM = 1,\r\n APPROVAL = 2,\r\n CONTRACT_UPLOAD = 3,\r\n SIGNAGE_ORDER = 4,\r\n INSTALLED_SIGNAGE = 5,\r\n REFUSED = 6,\r\n CLOSED = 7\r\n}\r\n\r\nconst STEP_LIST:Array = [\r\n {\r\n idStep: 1,\r\n descriptionShort: \"1\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_1',\r\n },\r\n {\r\n idStep: 2,\r\n descriptionShort: \"2\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_2',\r\n },\r\n {\r\n idStep: 3,\r\n descriptionShort: \"3\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_3',\r\n },\r\n {\r\n idStep: 4,\r\n descriptionShort: \"4\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_4',\r\n },\r\n {\r\n idStep: 5,\r\n descriptionShort: \"5\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_5',\r\n }\r\n // ,{\r\n // idStep: 6,\r\n // descriptionShort: \"6\",\r\n // descriptionLong: 'NET20.CONTRACT_STEP_6',\r\n // },\r\n // {\r\n // idStep: 7,\r\n // descriptionShort: \"7\",\r\n // descriptionLong: 'NET20.CONTRACT_STEP_7'\r\n // }\r\n];\r\n\r\nlet DROP_DOWN_STEP_LIST: Array = [];\r\nlet TRANSLATED_STEP_LIST: Array = [];\r\n\r\nexport function getDropDownStepList(): Array {\r\n if(DROP_DOWN_STEP_LIST.length == 0) {\r\n DROP_DOWN_STEP_LIST.push({ value: null, text: \"\" });\r\n\r\n STEP_LIST.forEach(function (el) {\r\n DROP_DOWN_STEP_LIST.push({ value: el.idStep, text: el.idStep + ' - ' + i18n.t(el.descriptionLong) as string});\r\n });\r\n\r\n let refusedStep: Step = {\r\n idStep: 6,\r\n descriptionShort: \"6\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_6'\r\n }\r\n DROP_DOWN_STEP_LIST.push({ value: refusedStep.idStep, text: refusedStep.idStep + ' - ' + i18n.t(refusedStep.descriptionLong) as string});\r\n\r\n let closingStep: Step = {\r\n idStep: 7,\r\n descriptionShort: \"7\",\r\n descriptionLong: 'NET20.CONTRACT_STEP_7'\r\n }\r\n DROP_DOWN_STEP_LIST.push({ value: closingStep.idStep, text: closingStep.idStep + ' - ' + i18n.t(closingStep.descriptionLong) as string});\r\n\r\n }\r\n return DROP_DOWN_STEP_LIST;\r\n}\r\n\r\nexport function getStepsDescription(lastStep: number, excludedSteps: Array = null): Array {\r\n TRANSLATED_STEP_LIST = new Array();\r\n if(excludedSteps != null && excludedSteps.length > 0) { \r\n STEP_LIST.forEach(function (el) {\r\n if(excludedSteps.findIndex( x=> x.idStep == el.idStep) < 0) {\r\n let step: Step = {\r\n idStep: el.idStep,\r\n descriptionShort: el.descriptionShort,\r\n descriptionLong: i18n.t(el.descriptionLong) as string\r\n }\r\n TRANSLATED_STEP_LIST.push(step);\r\n }\r\n });\r\n } else {\r\n STEP_LIST.forEach(function (el) {\r\n let step: Step = {\r\n idStep: el.idStep,\r\n descriptionShort: el.descriptionShort,\r\n descriptionLong: i18n.t(el.descriptionLong) as string\r\n }\r\n TRANSLATED_STEP_LIST.push(step);\r\n });\r\n }\r\n if(lastStep == STEP_ENUM.REFUSED) {\r\n let refusedStep: Step = {\r\n idStep: 6,\r\n descriptionShort: \"6\",\r\n descriptionLong: i18n.t('NET20.CONTRACT_STEP_6') as string\r\n }\r\n TRANSLATED_STEP_LIST.push(refusedStep);\r\n } else {\r\n let closingStep: Step = {\r\n idStep: 7,\r\n descriptionShort: \"7\",\r\n descriptionLong: i18n.t('NET20.CONTRACT_STEP_7') as string\r\n }\r\n TRANSLATED_STEP_LIST.push(closingStep);\r\n }\r\n return TRANSLATED_STEP_LIST;\r\n}","import { General } from \"@/services/General\";\r\nimport { MainVar } from \"@/entity/MainVar\";\r\nimport axios from \"axios\";\r\nimport { DropDownItem } from \"@/services/DropDownItem\";\r\n\r\nexport class SignSelectOption {\r\n public id: string;\r\n public idCountry: string;\r\n public idChannel: number;\r\n public level: number;\r\n public typeOfProposal: string;\r\n public signCustomization: string;\r\n public signType: string;\r\n public signSize: string;\r\n public signBrandCustomization: string;\r\n public deletionDate: Date;\r\n}\r\n\r\nlet SIGN_SELECT_OPTIONS: Array = [];\r\nlet mainVar: MainVar;\r\n\r\n\r\nasync function SyncSignSelectOptions() { \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 || SIGN_SELECT_OPTIONS.length == 0) {\r\n await getSignSelectOptions();\r\n } else {\r\n let previousMainVar = new MainVar();\r\n previousMainVar.dropDownListLastUpdate = mainVar.dropDownListLastUpdate;\r\n previousMainVar.translationsLastUpdate = mainVar.translationsLastUpdate;\r\n previousMainVar.lastEndpointCheck = mainVar.lastEndpointCheck;\r\n\r\n await mainVar.GetAsync();\r\n if(mainVar.IsRecent(previousMainVar)) { \r\n await getSignSelectOptions();\r\n }\r\n }\r\n}\r\n\r\nasync function getSignSelectOptions(): Promise {\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetSignSelectOptions'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n });\r\n if(response.data)\r\n SIGN_SELECT_OPTIONS = response.data;\r\n\r\n return SIGN_SELECT_OPTIONS;\r\n}\r\n\r\nexport enum LEVEL {\r\n SIGN_CUSTOMIZATION = 1,\r\n SIGN_TYPE = 2,\r\n SIGN_SIZE = 3,\r\n SIGN_BRAND_CUSTOMIZATION = 4,\r\n}\r\n\r\nexport async function isDepractedSignCustomization(selectOption: SignSelectOption): Promise {\r\n let check = false;\r\n await SyncSignSelectOptions();\r\n\r\n let counter = SIGN_SELECT_OPTIONS.filter(s => (s.idCountry == null || s.idCountry === selectOption.idCountry)\r\n && s.idChannel == selectOption.idChannel\r\n && s.typeOfProposal === selectOption.typeOfProposal\r\n && s.signCustomization === selectOption.signCustomization\r\n && s.signType === selectOption.signType\r\n && s.signSize === selectOption.signSize\r\n && s.signBrandCustomization === selectOption.signBrandCustomization\r\n && s.deletionDate != null).length;\r\n if(counter > 0)\r\n check = true;\r\n\r\n return check;\r\n}\r\n\r\nexport async function getDropDownIdList(selectOption: SignSelectOption, selectedValue: string): Promise> {\r\n await SyncSignSelectOptions();\r\n let idList: Array = new Array();\r\n let filteredOptions = SIGN_SELECT_OPTIONS.filter(s => (s.idCountry == null || s.idCountry === selectOption.idCountry)\r\n && s.idChannel == selectOption.idChannel\r\n && s.typeOfProposal === selectOption.typeOfProposal\r\n && (!selectOption.signCustomization || s.signCustomization === selectOption.signCustomization)\r\n && (!selectOption.signType || s.signType === selectOption.signType)\r\n && (!selectOption.signSize || s.signSize === selectOption.signSize)\r\n && (!selectOption.signBrandCustomization || s.signBrandCustomization === selectOption.signBrandCustomization));\r\n\r\n switch(selectOption.level) {\r\n case LEVEL.SIGN_CUSTOMIZATION: {\r\n idList = filteredOptions.filter(s => s.deletionDate == null || (s.deletionDate != null && s.signCustomization === selectedValue)).map(s => ({\r\n idDropDownItem: s.signCustomization,\r\n deletionDate: s.deletionDate\r\n }));\r\n break;\r\n }\r\n case LEVEL.SIGN_TYPE: {\r\n idList = filteredOptions.filter(s => s.deletionDate == null || (s.deletionDate != null && s.signType === selectedValue)).map(s => ({\r\n idDropDownItem: s.signType,\r\n deletionDate: s.deletionDate\r\n }));\r\n break;\r\n }\r\n case LEVEL.SIGN_SIZE: {\r\n idList = filteredOptions.filter(s => s.deletionDate == null || (s.deletionDate != null && s.signSize === selectedValue)).map(s => ({\r\n idDropDownItem: s.signSize,\r\n deletionDate: s.deletionDate\r\n }));\r\n break;\r\n }\r\n case LEVEL.SIGN_BRAND_CUSTOMIZATION: {\r\n idList = filteredOptions.filter(s => s.deletionDate == null || (s.deletionDate != null && s.signBrandCustomization === selectedValue)).map(s => ({\r\n idDropDownItem: s.signBrandCustomization,\r\n deletionDate: s.deletionDate\r\n }));\r\n break;\r\n }\r\n }\r\n \r\n return idList;\r\n}","export class ReplacementModule {\r\n public idSupplierRequest: string;\r\n public idReplacementModule: string;\r\n\r\n constructor(idSupplierRequest?: string\r\n , idReplacementModule?: string) {\r\n this.idSupplierRequest = idSupplierRequest;\r\n this.idReplacementModule = idReplacementModule;\r\n }\r\n}","export class CustomerService {\r\n public idService: string;\r\n public serviceName: string;\r\n public note: string;\r\n public idCustomer: string;\r\n}","import { General } from \"@/services/General\";\r\nimport axios from \"axios\";\r\n\r\nexport class Channel {\r\n public id: string;\r\n public description: string;\r\n}\r\n\r\nexport enum CHANNEL_DETAIL {\r\n TRUCK = 1,\r\n CAR = 2,\r\n AGRI = 3,\r\n MOTO = 4\r\n}\r\n\r\nexport async function GetDropDownChannelsForUser(idCountry: string): Promise {\r\n if(idCountry != null) {\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetChannelsForUser?idCountry=' + idCountry),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n });\r\n if(response.data) {\r\n return setOptionsDropDownChannel(response.data);\r\n }\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n }\r\n}\r\n\r\nexport async function GetDropDownChannels(): Promise {\r\n try{\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/net20/GetAllChannelsDetail'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n });\r\n if(response.data) {\r\n return setOptionsDropDownChannel(response.data);\r\n }\r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n}\r\n\r\nexport function setOptionsDropDownChannel(channels: Channel[]){\r\n let array: Array = [];\r\n array.push({ value: null, text: \"\" });\r\n channels.forEach(function (el) {\r\n array.push({ value: el.id, text: el.description });\r\n });\r\n return array;\r\n}"],"sourceRoot":""}