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T,KAAK,+BAAgCC,MAAO,GAAG,CAAC9T,KAAK,kBAAoB6T,KAAK,sCAAuCC,MAAO,IAEpJC,KAAK,EACLC,GAAI,YACJC,EAAG,uBACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,oCAOAlB,EAF4B,+BACXQ,EAAQ,MAQzBR,EAF4B,sCACXQ,EAAQ,MAMjCW,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAatB,QAAO9S,EAAAA,EAAA,GACpBmU,OAAOC,aAAatB,SAAW,IAC/BD,EAAQC,SAGXqB,OAAOC,aAAarB,YAAW/S,EAAAA,EAAA,GAC5BmU,OAAOC,aAAarB,aAAe,IACnCF,EAAQE,aAEY,MAAMsB,EAAiB,GAC9BA,EAAe,yEAA2E,CAClGd,EAAGA,IAAMC,EAAQ,MACjBc,GAAI,4CAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAcrU,EAAAA,EAAA,GACPmU,OAAOC,aAAaC,gBAAkB,IACtCA,UC1F3BE,EAAOC,QAAUzT,cCAjBwT,EAAOC,QAAUC","sources":["webpack://sheikh-zayed-festival/./src/actions/get-crm-token.action.ts?4b61","webpack://sheikh-zayed-festival/./src/actions/get-existing-contact.action.ts?edd7","webpack://sheikh-zayed-festival/./src/actions/get-sharepoint-token.action.ts?52b8","webpack://sheikh-zayed-festival/./src/actions/post-business-op-case.action.ts?0df1","webpack://sheikh-zayed-festival/./src/actions/post-new-contact.action.ts?8117","webpack://sheikh-zayed-festival/./src/modules/szf-business-op-form/szf-business-op-form.tsx?c3c6","webpack://sheikh-zayed-festival/./src/modules/szf-business-op-form/szf-business-op-form.view.tsx?00f7","webpack://sheikh-zayed-festival/./src/utilities/szf-modal.component.tsx?92d6","webpack://sheikh-zayed-festival/./lib/szf-business-op-form/module-registration.js?68a1","webpack://sheikh-zayed-festival/external var \"React\"?0d3b","webpack://sheikh-zayed-festival/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport qs from 'querystring';\r\n/**\r\n * GetCrmToken Input Action\r\n */\r\n\r\n export interface IToken {\r\n token_type: string;\r\n expires_in: string;\r\n ext_expires_in: string;\r\n expires_on: string;\r\n not_before: string;\r\n resource: string;\r\n access_token: string;\r\n}\r\n\r\nexport class GetCrmTokenInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `CRMTOKEN`;\r\n public getCacheObjectType = () => 'CRMTOKEN';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IGetCrmTokenData {\r\n token: string;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetCrmTokenInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: GetCrmTokenInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n const { szfCRMDomain, szfCRMClientSecret} = ctx.requestContext.app.config;\r\n const data = qs.stringify({\r\n 'resource': `${szfCRMDomain}`,\r\n 'client_id': '1d4d5b5c-c710-472d-b8ac-104788da8da1',\r\n 'client_secret': `${szfCRMClientSecret}`,\r\n 'grant_type': 'client_credentials'\r\n });\r\n const response = await Msdyn365.sendRequest(\"https://login.microsoftonline.com/c03a7c9b-0691-48f2-a884-93fe49a74786/oauth2/token\", \"post\", data, {\r\n headers: {\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'Cookie': 'fpc=AopThjyphGZIqV8tMvZOskskZZdbAQAAAETfudgOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd'\r\n }\r\n });\r\n if(response && response.status===200){\r\n return {\r\n token : response.data.access_token\r\n };\r\n }else{\r\n return {token : ''};\r\n }\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // TODO: Give your data action a unique id\r\n id: 'GetCrmToken',\r\n input: createInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * GetExistingContact Input Action\r\n */\r\n\r\nexport class GetExistingContactInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n public token: string | undefined;\r\n public email: string | undefined;\r\n public phone: string | undefined;\r\n constructor(token : string | undefined, email: string | undefined,phone:string | undefined) {\r\n this.phone = phone;\r\n this.email = email;\r\n this.token = token;\r\n }\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `SZFEXISTINGCONTACT`;\r\n public getCacheObjectType = () => 'SZFEXISTINGCONTACT';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IGetExistingContactData {\r\n status: boolean;\r\n id: string | undefined;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createExistingContactInput = (args: Msdyn365.ICreateActionContext, token: string, email: string,phone: string): Msdyn365.IActionInput => {\r\n return new GetExistingContactInput(token, email,phone);\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function existingContactDataAction(input: GetExistingContactInput, ctx: Msdyn365.IActionContext): Promise {\r\n const token = input.token;\r\n const email = input.email;\r\n const phone = input.phone;\r\n const szfCRMDomain = ctx.requestContext.app.config.szfCRMDomain;\r\n const response = await Msdyn365.sendRequest(`${szfCRMDomain}/api/data/v9.2//contacts?$select=emailaddress1,firstname,lastname,mobilephone &$filter=emailaddress1 eq \\'${email}\\' or mobilephone eq \\'%2B${phone}\\'`, \"get\", {}, {\r\n headers: {\r\n 'Authorization':`Bearer ${token}`\r\n }\r\n });\r\n if(response && response.data && response.data.value && response.data.value.length > 0 && response.data.value[0].contactid){\r\n return {\r\n status: true,\r\n id: response.data.value[0].contactid\r\n };\r\n }else{\r\n return {\r\n status: false,\r\n id: undefined\r\n };\r\n }\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n // return { text: 'Static data from action' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >existingContactDataAction,\r\n // TODO: Give your data action a unique id\r\n id: 'GetExistingContact',\r\n input: createExistingContactInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from \"@msdyn365-commerce/core\";\r\nimport axios from \"axios\";\r\nimport querystring from 'querystring';\r\n// const querystring = require('querystring');\r\n\r\n/**\r\n * GetAtpToken Input Action\r\n */\r\n// interface IToken {\r\n// token_type: string;\r\n// expires_in: string;\r\n// ext_expires_in: string;\r\n// expires_on: string;\r\n// not_before: string;\r\n// resource: string;\r\n// access_token: string;\r\n// }\r\n\r\nexport class GetTokenInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n constructor() { }\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `GetSharePointToken`;\r\n public getCacheObjectType = () => \"GetSharePointToken\";\r\n public dataCacheType = (): Msdyn365.CacheType => \"none\";\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (\r\n args: Msdyn365.ICreateActionContext\r\n): Msdyn365.IActionInput => {\r\n return new GetTokenInput();\r\n};\r\n\r\nconst fetchResourceAndTenant = async (domain: any, siteName: any): Promise<{ tenatId: string , resource: string }> => {\r\n try {\r\n await axios(\r\n `https://${domain}.sharepoint.com/sites/${siteName}/_vti_bin/client.svc/`,\r\n {\r\n method: \"GET\",\r\n headers: {\r\n Authorization: `Bearer`,\r\n }\r\n }\r\n );\r\n } catch (error) {\r\n // @ts-ignore\r\n const response = error?.response?.headers?.[\"www-authenticate\"];\r\n const regex = /realm=\"([^\"]*)\".*client_id=\"([^\"]*)\"/;\r\n const matches = response.match(regex);\r\n const tenatId = matches[1];\r\n const resource = matches[2];\r\n return { tenatId, resource };\r\n }\r\n return { tenatId: '', resource: '' }; \r\n};\r\n\r\nconst fetchToken = async (tenatId: string | undefined, resource: string | undefined, clientId: string, secret: string, domain: string): Promise => {\r\n if (tenatId && resource) {\r\n\r\n\r\n const url = `https://accounts.accesscontrol.windows.net/${tenatId}/tokens/OAuth/2`;\r\n const headers = {\r\n Authorization: 'Bearer',\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n };\r\n\r\n const data = {\r\n grant_type: 'client_credentials',\r\n client_id: `${clientId}@${tenatId}`,\r\n client_secret: `${secret}`,\r\n resource: `${resource}/${domain}.sharepoint.com@${tenatId}`,\r\n };\r\n\r\n const requestBody = querystring.stringify(data);\r\n\r\n return axios.post(url, requestBody, { headers })\r\n .then((response) => {\r\n return response?.data?.access_token\r\n })\r\n .catch((error) => {\r\n console.error('Error getting token:', error);\r\n });\r\n }\r\n return undefined;\r\n};\r\n\r\n\r\nasync function getToken(ctx: Msdyn365.IRequestContext) {\r\n let token: string | undefined;\r\n\r\n /**\r\n * we need to create sharepoint site first \r\n * and then needs to generate client id and it's secret and give all permisions\r\n * Register Add-In using the AppRegNew form\r\n * try to get token SSR\r\n */\r\n if (process.env.CURRENT_ENVIRONMENT === \"node\") {\r\n // const siteName = \"SZF\";\r\n // const domain = \"visionetsys\";\r\n // const secret = \"gWq9FCsXH2VA06zh28N/2L9SeVw1qJTe1pwxTZHe/VU=\";\r\n // const clientId = '24c715c7-8a12-4dd6-80a6-902efba3667b';\r\n\r\n // const siteName = \"SZFEcommerce\";\r\n // const domain = \"zayedfestival\";\r\n // const secret = \"j/hcvlz0kWhvlVHhlDbGwSN/VdD855DPqeFN3CO6tNk=\";\r\n // const clientId = '6a1e8d91-af56-4d02-a7d1-b601df3cbb71';\r\n\r\n const siteName = \"SZF-Ecommerce\";\r\n const domain = \"zayedfestival\";\r\n const secret = \"UFvBGJ3TdJYQ8DmIlGEe9nxNmQJYZyw4LPsfTUYT4y4=\";\r\n const clientId = '95ba8411-3d62-4e2d-95c9-dcf08f6473f1';\r\n\r\n const { tenatId, resource } = await fetchResourceAndTenant(domain, siteName);\r\n token = await fetchToken(tenatId, resource, clientId, secret, domain);\r\n }\r\n\r\n return { token: token };\r\n}\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function getTokenAction(\r\n input: GetTokenInput,\r\n ctx: Msdyn365.IActionContext\r\n): Promise {\r\n const response = await getToken(ctx.requestContext);\r\n return response;\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >getTokenAction,\r\n // TODO: Give your data action a unique id\r\n id: \"GetToken\",\r\n input: createInput,\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport {IPostBOInput} from './../modules/szf-business-op-form/szf-business-op-form.view';\r\nimport axios from 'axios';\r\n/**\r\n * PostBusinessOpCase Input Action\r\n */\r\nexport interface IFile{\r\n fileData: File | undefined;\r\n base64: string | ArrayBuffer | null | undefined;\r\n}\r\nexport interface IBOCaseAPIPayLoad {\r\n szf_name: string;\r\n szf_organizationname: string;\r\n szf_email: string;\r\n szf_phoneno: string;\r\n szf_participatedwithszfpreviously: boolean;\r\n szf_typeofparticipation: string | null;\r\n szf_heardaboutus: string | null;\r\n szf_heardaboutusother: string | null;\r\n szf_categories: number;\r\n szf_countrypavilion: string | null;\r\n szf_productsshowcase: string | null;\r\n szf_type: string | null;\r\n szf_source: number;\r\n szf_kioskactivity: string | null;\r\n szf_serviceactivity: string | null;\r\n new_governmententities: string | null;\r\n new_sponsor: string | null;\r\n szf_description: string;\r\n szf_businessopportunity_Annotations?: {\r\n filename: string;\r\n isdocument: boolean;\r\n subject: string;\r\n documentbody: string;\r\n }[];\r\n \"szf_Customer_contact@odata.bind\": string;\r\n}\r\nexport class PostBusinessOpCaseInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n public szf_name: string;\r\n public szf_organizationname: string;\r\n public szf_email: string;\r\n public szf_phoneno: string;\r\n public szf_participatedwithszfpreviously: boolean;\r\n public szf_typeofparticipation: string;\r\n public szf_heardaboutus: string;\r\n public szf_heardaboutusother: string;\r\n public szf_categories: number;\r\n public szf_countrypavilion: string;\r\n public szf_productsshowcase: string;\r\n public szf_type: string;\r\n public szf_kioskactivity: string;\r\n public szf_serviceactivity: string;\r\n public new_governmententities: string;\r\n public new_sponsor: string;\r\n public szf_description: string;\r\n public tradeLicenseFile: IFile;\r\n public presentationFile: IFile;\r\n public CRMtoken: string | undefined;\r\n public contactID: string | undefined;\r\n // public termNcondition: boolean;\r\n // public updateNpromotion: boolean;\r\n constructor(data:IPostBOInput) {\r\n this.szf_name = data.fullName;\r\n this.szf_organizationname= data.organizationName;\r\n this.szf_email= data.email;\r\n this.szf_phoneno= `${data.countryCode}${data.phone}`;\r\n this.szf_participatedwithszfpreviously= data.previousParticipant ==='1' ? true: false;\r\n this.szf_typeofparticipation= data.previousParticipantType;\r\n this.szf_heardaboutus= data.hearAbout;\r\n this.szf_heardaboutusother= data.others;\r\n this.szf_categories= data.categories;\r\n this.szf_countrypavilion= data.listOfCountryPavilions.toString();\r\n this.szf_productsshowcase= data.typeOfProducts.toString();\r\n this.szf_type= data.typeOfRestaurantsCoffeeShops ? data.typeOfRestaurantsCoffeeShops : data.typeOfKiosksFoodTrucks;\r\n this.szf_kioskactivity= data.kioskActivity;\r\n this.szf_serviceactivity= data.serviceActivity;\r\n this.new_governmententities= data.listOfGovernmentEntities.toString();\r\n this.new_sponsor= data.typeOfSponsor;\r\n this.szf_description= data.description;\r\n this.CRMtoken= data.CRMtoken;\r\n this.contactID= data.contactID;\r\n this.tradeLicenseFile = {\r\n fileData: data.tradeLicenseFile,\r\n base64: data.tradeLicensefileBase64Code\r\n };\r\n this.presentationFile = {\r\n fileData: data.presentationFile,\r\n base64: data.presentationfileBase64Code\r\n };\r\n // this.termNcondition= data.termNcondition;\r\n // this.updateNpromotion= data.updateNpromotion;\r\n }\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `SZFBUSINESSOPPCASE`;\r\n public getCacheObjectType = () => 'SZFBUSINESSOPPCASE';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IPostBusinessOpCaseData {\r\n status: boolean;\r\n msg:string | undefined;\r\n id: string | undefined;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createBOCaseInput = (args: Msdyn365.ICreateActionContext,inputData:IPostBOInput): Msdyn365.IActionInput => {\r\n return new PostBusinessOpCaseInput(inputData);\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function BOCaseDataAction(input: PostBusinessOpCaseInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n const szfCRMDomain = ctx.requestContext.app.config.szfCRMDomain;\r\n let data: IBOCaseAPIPayLoad = {\r\n \"szf_name\": input.szf_name,\r\n \"szf_organizationname\": input.szf_organizationname,\r\n \"szf_email\": input.szf_email,\r\n \"szf_phoneno\": input.szf_phoneno,\r\n \"szf_participatedwithszfpreviously\": input.szf_participatedwithszfpreviously,\r\n \"szf_typeofparticipation\": input.szf_typeofparticipation ? input.szf_typeofparticipation : null,\r\n \"szf_heardaboutus\": input.szf_heardaboutus ? input.szf_heardaboutus : null,\r\n \"szf_heardaboutusother\": input.szf_heardaboutusother ? input.szf_heardaboutusother : null,\r\n \"szf_categories\": input.szf_categories,\r\n \"szf_countrypavilion\": input.szf_countrypavilion ? input.szf_countrypavilion : null,\r\n \"szf_productsshowcase\": input.szf_productsshowcase ? input.szf_productsshowcase : null,\r\n \"szf_type\": input.szf_type ? input.szf_type : null,\r\n \"szf_source\": 1,\r\n \"szf_kioskactivity\": input.szf_kioskactivity ? input.szf_kioskactivity : null,\r\n \"szf_serviceactivity\": input.szf_serviceactivity ? input.szf_serviceactivity : null,\r\n \"new_governmententities\": input.new_governmententities ? input.new_governmententities : null,\r\n \"new_sponsor\": input.new_sponsor ? input.new_sponsor : null,\r\n \"szf_description\": input.szf_description,\r\n \"szf_Customer_contact@odata.bind\": `/contacts(${input.contactID})` //test contact\r\n };\r\n if(input.tradeLicenseFile && input.tradeLicenseFile.fileData && input.tradeLicenseFile.fileData?.name){\r\n if(data.szf_businessopportunity_Annotations){\r\n data = {\r\n ...data,\r\n \"szf_businessopportunity_Annotations\": [\r\n ...data.szf_businessopportunity_Annotations,\r\n {\r\n \"filename\" :`${input.tradeLicenseFile.fileData?.name}`,\r\n \"isdocument\" : true,\r\n \"subject\":`Trade License`,\r\n \"documentbody\" : `${input.tradeLicenseFile.base64}`\r\n }\r\n ]\r\n }\r\n }else{\r\n data = {\r\n ...data,\r\n \"szf_businessopportunity_Annotations\": [\r\n {\r\n \"filename\" :`${input.tradeLicenseFile.fileData?.name}`,\r\n \"isdocument\" : true,\r\n \"subject\":`Trade License`,\r\n \"documentbody\" : `${input.tradeLicenseFile.base64}`\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n if(input.presentationFile && input.presentationFile.fileData && input.presentationFile.fileData?.name){\r\n if(data.szf_businessopportunity_Annotations){\r\n data = {\r\n ...data,\r\n \"szf_businessopportunity_Annotations\": [\r\n ...data.szf_businessopportunity_Annotations,\r\n {\r\n \"filename\" :`${input.presentationFile.fileData?.name}`,\r\n \"isdocument\" : true,\r\n \"subject\":`Presentation`,\r\n \"documentbody\" : `${input.presentationFile.base64}`\r\n }\r\n ]\r\n }\r\n }else{\r\n data = {\r\n ...data,\r\n \"szf_businessopportunity_Annotations\": [\r\n {\r\n \"filename\" :`${input.presentationFile.fileData?.name}`,\r\n \"isdocument\" : true,\r\n \"subject\":`Presentation`,\r\n \"documentbody\" : `${input.presentationFile.base64}`\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n const response = await axios.post(`${szfCRMDomain}/api/data/v9.2//szf_businessopportunities`,data,{\r\n headers: { \r\n 'Prefer': 'return=representation', \r\n 'Content-Type': 'application/json', \r\n 'Authorization': `Bearer ${input.CRMtoken}`,\r\n 'Cookie': 'ARRAffinity=a0cabaca1e89d18f0f4123d056dbb9e1cefb17d8da01b66962b2dc7ffb4a189deb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DB5EAB3C80FFDC613303632; ReqClientId=797635cc-3220-4d23-95ab-4c1fd0f38f88; orgId=df0699dc-bf43-4643-8928-2934590e2913'\r\n },\r\n timeout: 25000\r\n })\r\n\r\n // const response = await Msdyn365.sendRequest(`https://operations-szf-uat.crm15.dynamics.com/api/data/v9.2//szf_businessopportunities`, \"post\", data, {\r\n // headers: {\r\n // 'Prefer': 'return=representation',\r\n // 'Content-Type': 'application/json',\r\n // 'content-length': '999999999999',\r\n // 'Authorization': `Bearer ${input.CRMtoken}`,\r\n // 'Cookie': 'ARRAffinity=a0cabaca1e89d18f0f4123d056dbb9e1cefb17d8da01b66962b2dc7ffb4a189deb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DB5EAB3C80FFDC613303632; ReqClientId=797635cc-3220-4d23-95ab-4c1fd0f38f88; orgId=df0699dc-bf43-4643-8928-2934590e2913'\r\n // }\r\n // });\r\n if(response && response.data && response.data.szf_businessopportunityid){\r\n return {\r\n status: true,\r\n msg: 'success',\r\n id: response.data.szf_businessopportunityid\r\n };\r\n }else if (response && response.data && response.data.error){\r\n return {\r\n status: false,\r\n msg: response.data.error.message,\r\n id: undefined\r\n };\r\n }else{\r\n return {\r\n status: false,\r\n msg: undefined,\r\n id: undefined\r\n };\r\n }\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >BOCaseDataAction,\r\n // TODO: Give your data action a unique id\r\n id: 'PostBusinessOpCase',\r\n input: createBOCaseInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { INewContactCreation } from './../modules/szf-contact-us/szf-contact-us.view';\r\n/**\r\n * PostNewContact Input Action\r\n */\r\nexport class PostNewContactInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n public token: string;\r\n public firstName: string;\r\n public lastName: string;\r\n public email: string;\r\n public phone: string;\r\n public countryCode: string;\r\n public updateNpromotion: boolean;\r\n constructor(token:string,data:INewContactCreation) {\r\n this.token= token;\r\n this.email= data.email;\r\n this.firstName= data.firstName;\r\n this.lastName= data.lastName;\r\n this.phone= data.phone;\r\n this.countryCode= data.countryCode;\r\n this.updateNpromotion= data.updateNpromotion;\r\n }\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `SZFCREATECONTACT`;\r\n public getCacheObjectType = () => 'SZFCREATECONTACT';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IPostNewContactData {\r\n status: boolean;\r\n msg:string | undefined;\r\n id: string | undefined;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createNewContactInput = (args: Msdyn365.ICreateActionContext,token:string, inputData:INewContactCreation): Msdyn365.IActionInput => {\r\n return new PostNewContactInput(token, inputData);\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function createNewContactDataAction(input: PostNewContactInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n const token = input.token;\r\n const szfCRMDomain = ctx.requestContext.app.config.szfCRMDomain;\r\n const data = {\r\n \"firstname\": input.firstName,\r\n \"lastname\": input.lastName,\r\n \"emailaddress1\": input.email,\r\n \"szf_mblregion\": input.countryCode,\r\n \"szf_mbllocalnumber\": input.phone,\r\n \"donotsendmm\": !input.updateNpromotion\r\n };\r\n const response = await Msdyn365.sendRequest(`${szfCRMDomain}/api/data/v9.2//contacts`, \"post\", data, {\r\n headers: {\r\n 'Prefer': 'return=representation',\r\n 'MSCRM.SuppressDuplicateDetection': 'false',\r\n 'Authorization':`Bearer ${token}`,\r\n 'Content-Type': 'application/json'\r\n }\r\n });\r\n if(response && response.data && response.data.contactid){\r\n return {\r\n status: true,\r\n msg: 'success',\r\n id: response.data.contactid\r\n };\r\n }else if (response && response.data && response.data.error){\r\n return {\r\n status: false,\r\n msg: response.data.error.message,\r\n id: undefined\r\n };\r\n }else{\r\n return {\r\n status: false,\r\n msg: undefined,\r\n id: undefined\r\n };\r\n }\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n // return { text: 'Static data from action' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >createNewContactDataAction,\r\n // TODO: Give your data action a unique id\r\n id: 'PostNewContact',\r\n input: createNewContactInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\n\r\nimport { ISzfBusinessOpFormData } from './szf-business-op-form.data';\r\nimport { ISzfBusinessOpFormProps } from './szf-business-op-form.props.autogenerated';\r\n\r\nexport interface ISzfBusinessOpFormViewProps extends ISzfBusinessOpFormProps {}\r\n\r\n/**\r\n *\r\n * SzfBusinessOpForm component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass SzfBusinessOpForm extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default SzfBusinessOpForm;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport { Node } from '@msdyn365-commerce-modules/utilities';\r\nimport { ISzfBusinessOpFormViewProps } from './szf-business-op-form';\r\n// import { handleUpload } from './../../utilities/szf-utils';\r\nimport {\r\n Form,\r\n Input,\r\n FormGroup,\r\n Label,\r\n Button,\r\n // Spinner,\r\n FormFeedback,\r\n InputGroup,\r\n} from 'reactstrap';\r\nimport { MoonLoader } from 'react-spinners';\r\nimport PhoneInput from 'react-phone-input-2';\r\nimport arabicLocale from 'react-phone-input-2/lang/ar.json';\r\nimport { ISzfBOCategoriesData } from './szf-business-op-form.props.autogenerated';\r\nimport Multiselect from 'multiselect-react-dropdown';\r\n\r\nimport existingContactDataAction, { GetExistingContactInput } from './../../actions/get-existing-contact.action';\r\nimport createNewContactDataAction, { PostNewContactInput } from './../../actions/post-new-contact.action';\r\nimport BOCaseDataAction, { PostBusinessOpCaseInput } from './../../actions/post-business-op-case.action';\r\nimport { IcountryCodeInput, INewContactCreation } from './../szf-contact-us/szf-contact-us.view';\r\nimport SZFModal from '../../utilities/szf-modal.component';\r\nexport interface IPostContactUsFormInput {\r\n fullName: string;\r\n organizationName: string;\r\n email: string;\r\n countryCode: string;\r\n phone: string;\r\n previousParticipant: string;\r\n previousParticipantType: string;\r\n hearAbout: string;\r\n others: string;\r\n categories: number;\r\n\r\n enableFullNameError: boolean;\r\n enableOrganizationNameError: boolean;\r\n enableEmailError: boolean;\r\n enablePhoneError: boolean;\r\n enablePreviousParticipantError: boolean;\r\n enablePreviousParticipantTypeError: boolean;\r\n enableHearAboutError: boolean;\r\n enableOthersError: boolean;\r\n enableTradeLicenseFileError: boolean;\r\n enablePresentationFileError: boolean;\r\n enableCategoriesError: boolean;\r\n\r\n enablePavilionsFields: boolean;\r\n enableProductsFields: boolean;\r\n enableRestaurantsFields: boolean;\r\n enableKiosksFields: boolean;\r\n enableServiceFields: boolean;\r\n enableGovernmentEntities: boolean;\r\n enableSponsor: boolean;\r\n\r\n listOfCountryPavilions: string[];\r\n typeOfProducts: number[];\r\n listOfGovernmentEntities: string[];\r\n typeOfSponsor: string;\r\n typeOfRestaurantsCoffeeShops: string;\r\n typeOfKiosksFoodTrucks: string;\r\n kioskActivity: string;\r\n serviceActivity: string;\r\n\r\n enableGovernmentEntitiesError: boolean;\r\n enableSponsorError: boolean;\r\n enablePavilionsError: boolean;\r\n enableProductsError: boolean;\r\n enableRestaurantsError: boolean;\r\n enableKiosksError: boolean;\r\n enableKioskActivityError: boolean;\r\n enableServiceError: boolean;\r\n enableDescriptionError: boolean;\r\n description: string;\r\n updateNpromotion: boolean;\r\n}\r\nexport interface IPostBOInput extends IPostContactUsFormInput {\r\n tradeLicenseFile: File | undefined;\r\n presentationFile: File | undefined;\r\n tradeLicensefileBase64Code: string | ArrayBuffer | null | undefined;\r\n presentationfileBase64Code: string | ArrayBuffer | null | undefined;\r\n CRMtoken: string | undefined;\r\n contactID: string | undefined;\r\n}\r\nexport interface IPavilionsOptionType {\r\n value: number;\r\n name: string;\r\n id: string;\r\n}\r\nexport default (props: ISzfBusinessOpFormViewProps) => {\r\n const [isModalOpen, setIsModalOpen] = React.useState(false);\r\n const [loading, setLoading] = React.useState(false);\r\n const [state, setState] = React.useState({\r\n fullName: '',\r\n organizationName: '',\r\n email: '',\r\n countryCode: '',\r\n phone: '',\r\n previousParticipant: '',\r\n previousParticipantType: '',\r\n hearAbout: '',\r\n others: '',\r\n categories: 0,\r\n\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n listOfCountryPavilions: [],\r\n typeOfProducts: [],\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n listOfGovernmentEntities: [],\r\n typeOfSponsor: '',\r\n typeOfRestaurantsCoffeeShops: '',\r\n typeOfKiosksFoodTrucks: '',\r\n kioskActivity: '',\r\n serviceActivity: '',\r\n\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: false,\r\n enableDescriptionError: false,\r\n description: '',\r\n updateNpromotion: false,\r\n });\r\n const tradeLicenseFileRef = React.useRef(null);\r\n const presentationFileRef = React.useRef(null);\r\n const [tradeLicenseFile, settradeLicenseFile] = React.useState();\r\n const [presentationFile, setPresentationFile] = React.useState();\r\n const multiselectRef = React.useRef();\r\n const [BOError, setBOError] = React.useState('');\r\n const [BOInvalidOrEmptyError, setBOInvalidOrEmptyError] = React.useState('');\r\n const [tradeLicensefileBase64Code, setTradeLicenseFileBase64Code] = React.useState();\r\n const [presentationfileBase64Code, setPresentationFileBase64Code] = React.useState();\r\n // const termAndConditionCheckboxLabel = props.config.boTermAndConditionCheckboxLabel;\r\n const updateAndPromotionCheckboxLabel = props.config.boUpdateAndPromotionCheckboxLabel;\r\n const {\r\n boFullnameLabel,\r\n boOrganizationNameLabel,\r\n boPhoneLabel,\r\n boEmailLabel,\r\n boPreviousParticipationSelectLabel,\r\n boPreviousParticipationTypeLabel,\r\n boHearAboutSelectLabel,\r\n boOtherLabel,\r\n boTradeLicenseFileLabel,\r\n boPresentationFileLabel,\r\n boCategoriesSelectLabel,\r\n // boSubCategoriesSelectLabel,\r\n boDescriptionLabel,\r\n boSubmitButtonLabel,\r\n boOrganizeCountryPavilionsLabel,\r\n boShopCountryPavilionsLabel,\r\n boProductTypeLabel,\r\n boRestaurantShopTypeLabel,\r\n boKiosksTypeLabel,\r\n boKiosksActivityLabel,\r\n boServiceActivityLabel,\r\n governmentEntitiesLabel,\r\n sponsorLabel,\r\n } = props.config;\r\n const locale = props.context.request.locale;\r\n const fileSize = props.config.fileSize || 20;\r\n const fileSizeKB = fileSize * 1024;\r\n const szfBOCategories = props.config.szfBOCategories;\r\n const boPreviousParticipationOptions = props.config?.boPreviousParticipationOptions;\r\n const boHearAboutOptions = props.config?.boHearAboutOptions;\r\n const {\r\n boGenericErrorMessage,\r\n invalidOrEmptyFieldError,\r\n dropdownChooseOptionMessage,\r\n maxFileSize,\r\n fileInvalidMessage,\r\n szfSuccessModalHeading,\r\n szfFailModalHeading,\r\n szfSuccessModalMessage,\r\n descriptionInvalidMessage,\r\n multiSelectPlaceholder,\r\n } = props.resources;\r\n const handleUpdateAndPromotionLabelChange = (event: MsDyn365.ContentEditableEvent) =>\r\n (props.config.boUpdateAndPromotionCheckboxLabel = event.target.value);\r\n const updateAndPromotionLabel = updateAndPromotionCheckboxLabel && (\r\n \r\n );\r\n const successImageProps = {\r\n gridSettings: props.context.request.gridSettings ?? {},\r\n imageSettings: props.config.successModalImage?.imageSettings,\r\n };\r\n const failureImageProps = {\r\n gridSettings: props.context.request.gridSettings ?? {},\r\n imageSettings: props.config.failModalImage?.imageSettings,\r\n };\r\n const imageContainer = { className: 'ms-content-block__image' };\r\n const successImage = (\r\n \r\n \r\n \r\n );\r\n const failureImage = (\r\n \r\n \r\n \r\n );\r\n\r\n const onChangeHandler = (e: React.ChangeEvent) => {\r\n const name: string = e.target.name;\r\n const value = e.target.value;\r\n if (name === 'categories') {\r\n const IntValue = +value;\r\n if (multiselectRef && multiselectRef.current && multiselectRef.current.resetSelectedValues) {\r\n multiselectRef.current?.resetSelectedValues();\r\n }\r\n let obj = { ...state, [name]: IntValue, listOfCountryPavilions: [], listOfGovernmentEntities: [], typeOfSponsor: '' };\r\n switch (IntValue) {\r\n case 1:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: true,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n };\r\n break;\r\n case 2:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: true,\r\n enableProductsFields: true,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n };\r\n break;\r\n case 3:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: true,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n };\r\n break;\r\n case 4:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: true,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n };\r\n break;\r\n case 7:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: true,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n };\r\n break;\r\n case 9:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: true,\r\n enableSponsor: false,\r\n };\r\n break;\r\n case 10:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: true,\r\n };\r\n break;\r\n default:\r\n obj = {\r\n ...obj,\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n };\r\n break;\r\n }\r\n setBOInvalidOrEmptyError('');\r\n setState({...obj,enableCategoriesError: false});\r\n } else if (name === 'email') {\r\n const emailPattern: RegExp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i;\r\n if (emailPattern.test(value)) {\r\n const obj = { ...state, [name]: value, enableEmailError: false };\r\n setState(obj);\r\n setBOInvalidOrEmptyError('');\r\n } else {\r\n const obj = { ...state, [name]: value, enableEmailError: true };\r\n setState(obj);\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n }\r\n } else {\r\n if(name){\r\n const obj = { ...state, [name]: value, enableFullNameError: false };\r\n setState(obj);\r\n }else{\r\n const obj = { ...state, [name]: value, enableFullNameError: true };\r\n setState(obj);\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n }\r\n }\r\n };\r\n const getbase64 = (imagefile: File, type: string) => {\r\n const reader = new FileReader();\r\n reader.readAsDataURL(imagefile);\r\n reader.onload = () => {\r\n const result = reader.result;\r\n const base64 = result?.toString().split('base64,');\r\n if (type === 'trade') {\r\n setTradeLicenseFileBase64Code(base64 && base64[1]);\r\n } else {\r\n setPresentationFileBase64Code(base64 && base64[1]);\r\n }\r\n };\r\n };\r\n const handleFileChange = async (e: React.ChangeEvent) => {\r\n if (e.target.files) {\r\n if (e.target.name === 'tradeLicenseFile') {\r\n if (e.target.files[0] && e.target.files[0].size / 1024 > fileSizeKB) {\r\n resetTradeFileField()\r\n setState({ ...state, enableTradeLicenseFileError: true });\r\n } else {\r\n setState({ ...state, enableTradeLicenseFileError: false });\r\n const imagefile = e.target?.files[0];\r\n if (imagefile) {\r\n getbase64(imagefile, `trade`);\r\n settradeLicenseFile(imagefile);\r\n }\r\n }\r\n } else {\r\n if (e.target.files[0] && e.target.files[0].size / 1024 > fileSizeKB) {\r\n resetPresentationFileField()\r\n setState({ ...state, enablePresentationFileError: true });\r\n } else {\r\n setState({ ...state, enablePresentationFileError: false });\r\n const imagefile = e.target?.files[0];\r\n if (imagefile) {\r\n getbase64(imagefile, `presentation`);\r\n setPresentationFile(imagefile);\r\n }\r\n }\r\n }\r\n }\r\n };\r\n const handleCheckboxChange = (e: any) => {\r\n const name: string = e.target.name;\r\n setState({ ...state, [name]: !state.updateNpromotion });\r\n };\r\n const checkExistingContact = async (token: string, email: string, phone: string) => {\r\n const contactExistInput = new GetExistingContactInput(token, email, phone);\r\n const result = await existingContactDataAction(contactExistInput, props.context.actionContext);\r\n return result;\r\n };\r\n const toggleModal = () => {\r\n setIsModalOpen(!isModalOpen);\r\n };\r\n const resetTradeFileField = () => {\r\n setState({\r\n ...state,\r\n enableTradeLicenseFileError: false,\r\n });\r\n if (tradeLicenseFileRef.current && tradeLicenseFileRef.current.value) {\r\n tradeLicenseFileRef.current.value = '';\r\n }\r\n settradeLicenseFile(undefined);\r\n setTradeLicenseFileBase64Code(null);\r\n };\r\n const resetPresentationFileField = () => {\r\n setState({\r\n ...state,\r\n enablePresentationFileError: false,\r\n });\r\n if (presentationFileRef.current && presentationFileRef.current.value) {\r\n presentationFileRef.current.value = '';\r\n }\r\n setPresentationFile(undefined);\r\n setPresentationFileBase64Code(null);\r\n };\r\n const onSubmitForm = async (e: any): Promise => {\r\n e.preventDefault();\r\n const emailPattern: RegExp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i;\r\n if (state.fullName.length <= 0) {\r\n setState({ ...state, enableFullNameError: true });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('fullName')?.focus();\r\n return;\r\n }\r\n else if (state.email.length <= 0 || !emailPattern.test(state.email)) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('email')?.focus();\r\n return;\r\n } else if (!state.phone || state.phone.length < 4 || state.phone.length > 20) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('phone')?.focus();\r\n return;\r\n } else if (state.countryCode.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('phone')?.focus();\r\n return;\r\n } else if (state.previousParticipant.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('previousParticipant')?.focus();\r\n return;\r\n } else if (state.previousParticipant === `1` && state.previousParticipantType.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('previousParticipantType')?.focus();\r\n return;\r\n } else if (state.hearAbout.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('hearAbout')?.focus();\r\n return;\r\n } else if (state.hearAbout === '5' && state.others.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('others')?.focus();\r\n return;\r\n } \r\n else if (tradeLicenseFile && tradeLicenseFile?.size && tradeLicenseFile.size / 1024 > fileSizeKB) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n tradeLicenseFileRef?.current?.focus();\r\n return;\r\n } \r\n else if (presentationFile && presentationFile?.size && presentationFile.size / 1024 > fileSizeKB) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n presentationFileRef?.current?.focus();\r\n return;\r\n } else if (state.categories <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('categories')?.focus();\r\n return;\r\n } else if ((state.categories === 1 || state.categories === 2) && state.listOfCountryPavilions.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: true,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('listOfCountryPavilions')?.focus();\r\n return;\r\n } else if (state.categories === 2 && state.typeOfProducts.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: true,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('typeOfProducts')?.focus();\r\n return;\r\n } else if (state.categories === 3 && state.typeOfRestaurantsCoffeeShops.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: true,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('typeOfRestaurantsCoffeeShops')?.focus();\r\n return;\r\n } else if (state.categories === 4 && state.typeOfKiosksFoodTrucks.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: true,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('typeOfKiosksFoodTrucks')?.focus();\r\n return;\r\n } else if (state.categories === 4 && state.kioskActivity.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: true,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('kioskActivity')?.focus();\r\n return;\r\n } else if (state.categories === 7 && state.serviceActivity.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: true,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('serviceActivity')?.focus();\r\n return;\r\n } else if (state.categories === 9 && state.listOfGovernmentEntities.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: false,\r\n enableGovernmentEntitiesError: true,\r\n enableSponsorError: false\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n } else if (state.categories === 10 && state.typeOfSponsor.length <= 0) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: false,\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: true\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n return;\r\n } else if (state.description.length <= 0 || state.description.length >= 300) {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: false,\r\n enableDescriptionError: true,\r\n });\r\n setBOInvalidOrEmptyError(invalidOrEmptyFieldError);\r\n setLoading(false);\r\n document.getElementById('description')?.focus();\r\n return;\r\n } else {\r\n setState({\r\n ...state,\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: false,\r\n enableDescriptionError: false,\r\n });\r\n }\r\n try {\r\n const mergePhoneWithCountryCode = `${state.countryCode}${state.phone}`;\r\n const firstName = state.fullName.substring(0, state.fullName.indexOf(' '));\r\n const lastName = state.fullName.substring(state.fullName.indexOf(' ') + 1);\r\n const CRMtoken = (await props.data.crmToken)?.token || undefined;\r\n const isContactAlreadyExist = await checkExistingContact(CRMtoken, state.email, mergePhoneWithCountryCode);\r\n if (isContactAlreadyExist.status) {\r\n const input: IPostBOInput = {\r\n ...state,\r\n tradeLicenseFile,\r\n presentationFile,\r\n tradeLicensefileBase64Code,\r\n presentationfileBase64Code,\r\n CRMtoken,\r\n contactID: isContactAlreadyExist.id,\r\n };\r\n const createCaseInput = new PostBusinessOpCaseInput(input);\r\n const createCaseResponse = await BOCaseDataAction(createCaseInput, props.context.actionContext);\r\n if (createCaseResponse.status) {\r\n resetForm();\r\n setLoading(false);\r\n setIsModalOpen(true);\r\n } else {\r\n setBOError(boGenericErrorMessage);\r\n setLoading(false);\r\n setIsModalOpen(true);\r\n }\r\n } else {\r\n const createInputData: INewContactCreation = {\r\n firstName: firstName,\r\n lastName: lastName,\r\n email: state.email,\r\n phone: `${state.phone}`,\r\n countryCode: `${state.countryCode}`,\r\n updateNpromotion: state.updateNpromotion,\r\n };\r\n const createContactInput = new PostNewContactInput(CRMtoken, createInputData);\r\n const createNewContactResponse = await createNewContactDataAction(createContactInput, props.context.actionContext);\r\n if (createNewContactResponse.status) {\r\n const input: IPostBOInput = {\r\n ...state,\r\n tradeLicenseFile,\r\n presentationFile,\r\n tradeLicensefileBase64Code,\r\n presentationfileBase64Code,\r\n CRMtoken,\r\n contactID: createNewContactResponse.id,\r\n };\r\n const createCaseInput = new PostBusinessOpCaseInput(input);\r\n const createCaseResponse = await BOCaseDataAction(createCaseInput, props.context.actionContext);\r\n if (createCaseResponse.status) {\r\n resetForm();\r\n setLoading(false);\r\n setIsModalOpen(true);\r\n } else {\r\n setLoading(false);\r\n setBOError(boGenericErrorMessage);\r\n setIsModalOpen(true);\r\n }\r\n } else {\r\n setLoading(false);\r\n setBOError(createNewContactResponse.msg ? createNewContactResponse.msg : boGenericErrorMessage);\r\n setIsModalOpen(true);\r\n }\r\n }\r\n setLoading(false);\r\n } catch (error) {\r\n setBOError(boGenericErrorMessage);\r\n setLoading(false);\r\n setIsModalOpen(true);\r\n console.log('error', error);\r\n }\r\n };\r\n const resetForm = () => {\r\n setState({\r\n ...state,\r\n fullName: '',\r\n organizationName: '',\r\n email: '',\r\n countryCode: '971',\r\n phone: '',\r\n previousParticipant: '',\r\n previousParticipantType: '',\r\n hearAbout: '',\r\n others: '',\r\n categories: 0,\r\n\r\n enableFullNameError: false,\r\n enableOrganizationNameError: false,\r\n enableEmailError: false,\r\n enablePhoneError: false,\r\n enablePreviousParticipantError: false,\r\n enablePreviousParticipantTypeError: false,\r\n enableHearAboutError: false,\r\n enableOthersError: false,\r\n enableTradeLicenseFileError: false,\r\n enablePresentationFileError: false,\r\n enableCategoriesError: false,\r\n\r\n enablePavilionsFields: false,\r\n enableProductsFields: false,\r\n enableGovernmentEntities: false,\r\n enableSponsor: false,\r\n enableRestaurantsFields: false,\r\n enableKiosksFields: false,\r\n enableServiceFields: false,\r\n listOfCountryPavilions: [],\r\n typeOfProducts: [],\r\n listOfGovernmentEntities: [],\r\n typeOfSponsor: '',\r\n typeOfRestaurantsCoffeeShops: '',\r\n typeOfKiosksFoodTrucks: '',\r\n kioskActivity: '',\r\n serviceActivity: '',\r\n\r\n enableGovernmentEntitiesError: false,\r\n enableSponsorError: false,\r\n enablePavilionsError: false,\r\n enableProductsError: false,\r\n enableRestaurantsError: false,\r\n enableKiosksError: false,\r\n enableKioskActivityError: false,\r\n enableServiceError: false,\r\n enableDescriptionError: false,\r\n description: '',\r\n updateNpromotion: false,\r\n });\r\n if (tradeLicenseFileRef.current && tradeLicenseFileRef.current.value) {\r\n tradeLicenseFileRef.current.value = '';\r\n }\r\n if (presentationFileRef.current && presentationFileRef.current.value) {\r\n presentationFileRef.current.value = '';\r\n }\r\n settradeLicenseFile(undefined);\r\n setPresentationFile(undefined);\r\n setTradeLicenseFileBase64Code(null);\r\n setPresentationFileBase64Code(null);\r\n setBOError('');\r\n };\r\n const getSubCategories = (szfBOCategories: ISzfBOCategoriesData[] | undefined, categories: number, type: number) => {\r\n const foundCategory = szfBOCategories?.find((categoryItem) => categories === categoryItem.value);\r\n if (categories === 1 || categories === 2 || categories === 9 || categories === 10) {\r\n if (type === 1) {\r\n const subcategoryList = foundCategory?.subCategory1?.map((SCoptionItem, i) => {\r\n return {\r\n name: SCoptionItem.linkText,\r\n value: i + 1,\r\n id: `subcategory-${i}`,\r\n };\r\n });\r\n return subcategoryList;\r\n } else {\r\n const subcategoryList = foundCategory?.subCategory2?.map((SCoptionItem, i) => {\r\n return {\r\n name: SCoptionItem.linkText,\r\n value: SCoptionItem.value,\r\n id: `subcategory-${i}`,\r\n };\r\n });\r\n return subcategoryList;\r\n }\r\n } else {\r\n return [];\r\n }\r\n };\r\n const getRestaurantSubcategory = (szfBOCategories: ISzfBOCategoriesData[] | undefined, categories: number) => {\r\n const foundCategory = szfBOCategories?.find((categoryItem) => categories === categoryItem.value);\r\n const subcategoryList = foundCategory?.subCategory1?.map((SCoptionItem, i) => {\r\n return (\r\n \r\n );\r\n });\r\n return subcategoryList;\r\n };\r\n const getSponsorcategory = (szfBOCategories: ISzfBOCategoriesData[] | undefined, categories: number) => {\r\n const foundCategory = szfBOCategories?.find((categoryItem) => categories === categoryItem.value);\r\n const subcategoryList = foundCategory?.subCategory1?.map((SCoptionItem, i) => {\r\n return (\r\n \r\n );\r\n });\r\n return subcategoryList;\r\n };\r\n const SetPavilionState = (selectedList: IPavilionsOptionType[]) => {\r\n const filteredSelectedList = selectedList.map((selectedOption) => {\r\n return selectedOption.name;\r\n });\r\n setState({\r\n ...state,\r\n listOfCountryPavilions: filteredSelectedList,\r\n });\r\n };\r\n const SetProductsState = (selectedList: IPavilionsOptionType[]) => {\r\n const filteredSelectedList = selectedList.map((selectedOption) => {\r\n return selectedOption.value;\r\n });\r\n setState({\r\n ...state,\r\n typeOfProducts: filteredSelectedList,\r\n });\r\n };\r\n const SetGovernmentEntitiesState = (selectedList: IPavilionsOptionType[]) => {\r\n const filteredSelectedList = selectedList.map((selectedOption) => {\r\n return selectedOption.name;\r\n });\r\n setState({\r\n ...state,\r\n listOfGovernmentEntities: filteredSelectedList,\r\n });\r\n };\r\n const onSelect = (selectedList: IPavilionsOptionType[], selectedItem: IPavilionsOptionType) => {\r\n SetPavilionState(selectedList);\r\n };\r\n const onRemove = (selectedList: IPavilionsOptionType[], removedItem: IPavilionsOptionType) => {\r\n SetPavilionState(selectedList);\r\n };\r\n const onProductSelect = (selectedList: IPavilionsOptionType[], selectedItem: IPavilionsOptionType) => {\r\n SetProductsState(selectedList);\r\n };\r\n const onProductRemove = (selectedList: IPavilionsOptionType[], removedItem: IPavilionsOptionType) => {\r\n SetProductsState(selectedList);\r\n };\r\n const onGovernmentEntitiesSelect = (selectedList: IPavilionsOptionType[], selectedItem: IPavilionsOptionType) => {\r\n SetGovernmentEntitiesState(selectedList);\r\n };\r\n const onGovernmentEntitiesRemove = (selectedList: IPavilionsOptionType[], removedItem: IPavilionsOptionType) => {\r\n SetGovernmentEntitiesState(selectedList);\r\n };\r\n const renderInvalidOrEmptyMessage = (type?: string) => {\r\n if (type === 'custom') {\r\n return
{BOInvalidOrEmptyError && BOInvalidOrEmptyError}
;\r\n } else if (type === 'file') {\r\n return {fileInvalidMessage && fileInvalidMessage};\r\n } else if (type === 'description') {\r\n return {descriptionInvalidMessage && descriptionInvalidMessage};\r\n } else {\r\n return {BOInvalidOrEmptyError && BOInvalidOrEmptyError};\r\n }\r\n };\r\n const handlePhoneCountryCodeOnChange = (value: string, country: IcountryCodeInput) => {\r\n const countryCode = country.dialCode;\r\n const startsWithCountryCode = value.startsWith(countryCode);\r\n const newPhone = startsWithCountryCode ? value.slice(countryCode.length) : value;\r\n \r\n setState({\r\n ...state,\r\n phone: newPhone,\r\n countryCode: countryCode,\r\n });\r\n };\r\n const renderCountrySubCategoryField = () => {\r\n if (state.categories && state.categories > 0 && state.enablePavilionsFields) {\r\n return (\r\n
\r\n \r\n 0 ? '' : multiSelectPlaceholder}\r\n options={getSubCategories(szfBOCategories, state.categories, 1)} // Options to display in the dropdown\r\n // selectedValues={} // Preselected value to persist in dropdown\r\n onSelect={onSelect} // Function will trigger on select event\r\n onRemove={onRemove} // Function will trigger on remove event\r\n displayValue='name' // Property name to display in the dropdown options\r\n ref={multiselectRef}\r\n disable={loading}\r\n />\r\n {state.enablePavilionsError && renderInvalidOrEmptyMessage('custom')}\r\n
\r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n const renderProductSubCategoryField = () => {\r\n if (state.categories && state.categories > 0 && state.enableProductsFields) {\r\n return (\r\n
\r\n \r\n 0 ? '' : multiSelectPlaceholder}\r\n options={getSubCategories(szfBOCategories, state.categories, 2)} // Options to display in the dropdown\r\n // selectedValues={} // Preselected value to persist in dropdown\r\n onSelect={onProductSelect} // Function will trigger on select event\r\n onRemove={onProductRemove} // Function will trigger on remove event\r\n displayValue='name' // Property name to display in the dropdown options\r\n // ref={multiselectRef}\r\n disable={loading}\r\n />\r\n {state.enableProductsError && renderInvalidOrEmptyMessage('custom')}\r\n
\r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n const renderGovernmentEntitiesField = () => {\r\n if (state.categories && state.categories > 0 && state.enableGovernmentEntities) {\r\n return (\r\n
\r\n \r\n 0 ? '' : multiSelectPlaceholder}\r\n options={getSubCategories(szfBOCategories, state.categories, 1)} // Options to display in the dropdown\r\n // selectedValues={} // Preselected value to persist in dropdown\r\n onSelect={onGovernmentEntitiesSelect} // Function will trigger on select event\r\n onRemove={onGovernmentEntitiesRemove} // Function will trigger on remove event\r\n displayValue='name' // Property name to display in the dropdown options\r\n ref={multiselectRef}\r\n disable={loading}\r\n />\r\n {state.enableGovernmentEntitiesError && renderInvalidOrEmptyMessage('custom')}\r\n
\r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n const renderSponsorField = () => {\r\n if (state.categories && state.categories > 0 && state.enableSponsor) {\r\n return (\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableSponsorError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n >\r\n {`${dropdownChooseOptionMessage}`}\r\n {getSponsorcategory(szfBOCategories, state.categories)}\r\n \r\n \r\n {state.enableSponsorError && renderInvalidOrEmptyMessage()}\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n const renderRestaurantField = () => {\r\n if (state.categories && state.categories > 0 && state.enableRestaurantsFields) {\r\n return (\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableRestaurantsError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n >\r\n {`${dropdownChooseOptionMessage}`}\r\n {getRestaurantSubcategory(szfBOCategories, state.categories)}\r\n \r\n \r\n {state.enableRestaurantsError && renderInvalidOrEmptyMessage()}\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n const renderKiosksFields = () => {\r\n if (state.categories && state.categories > 0 && state.enableKiosksFields) {\r\n return (\r\n <>\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n invalid={state.enableKiosksError}\r\n required\r\n disabled={loading}\r\n >\r\n {`${dropdownChooseOptionMessage}`}\r\n {getRestaurantSubcategory(szfBOCategories, state.categories)}\r\n \r\n \r\n {state.enableKiosksError && renderInvalidOrEmptyMessage()}\r\n \r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableKioskActivityError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enableKioskActivityError && renderInvalidOrEmptyMessage()}\r\n \r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n const renderServiceField = () => {\r\n if (state.categories && state.categories > 0 && state.enableServiceFields) {\r\n return (\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableServiceError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enableServiceError && renderInvalidOrEmptyMessage()}\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n };\r\n return (\r\n <>\r\n
\r\n

{props.resources.bOParagraph}

\r\n \r\n

{BOError ? szfFailModalHeading : szfSuccessModalHeading}

\r\n \r\n \r\n }\r\n modalBody={\r\n isModalOpen ? (\r\n
\r\n {BOError ? failureImage : successImage}\r\n

{BOError ? BOError : szfSuccessModalMessage}

\r\n
\r\n ) : null\r\n }\r\n />\r\n
\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n invalid={state.enableFullNameError}\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enableFullNameError && renderInvalidOrEmptyMessage()}\r\n \r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n // invalid={state.enableOrganizationNameError}\r\n // required\r\n disabled={loading}\r\n />\r\n \r\n {/* {state.enableOrganizationNameError && renderInvalidOrEmptyMessage()} */}\r\n \r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n invalid={state.enableEmailError}\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enableEmailError && renderInvalidOrEmptyMessage()}\r\n \r\n
\r\n \r\n {locale.toLowerCase() === 'ar-ae' ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {state.enablePhoneError && renderInvalidOrEmptyMessage('custom')}\r\n
\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n invalid={state.enablePreviousParticipantError}\r\n required\r\n disabled={loading}\r\n >\r\n {`${dropdownChooseOptionMessage}`}\r\n {boPreviousParticipationOptions &&\r\n boPreviousParticipationOptions?.map((PPoptionItem, i) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n \r\n {state.enablePreviousParticipantError && renderInvalidOrEmptyMessage()}\r\n \r\n {state.previousParticipant && state.previousParticipant === `1` && (\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n invalid={state.enablePreviousParticipantTypeError}\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enablePreviousParticipantTypeError && renderInvalidOrEmptyMessage()}\r\n \r\n )}\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableHearAboutError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n >\r\n \r\n {boHearAboutOptions &&\r\n boHearAboutOptions?.map((HAoptionItem, i) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n \r\n {state.enableHearAboutError && renderInvalidOrEmptyMessage()}\r\n \r\n {state.hearAbout && state.hearAbout === '5' && (\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n className='form-control'\r\n invalid={state.enableOthersError}\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enableOthersError && renderInvalidOrEmptyMessage()}\r\n \r\n )}\r\n \r\n \r\n ) => {\r\n handleFileChange(event);\r\n }}\r\n className='form-control business-op-tradeLicenseFile'\r\n disabled={loading}\r\n />\r\n {\r\n resetTradeFileField();\r\n }}\r\n >\r\n x\r\n \r\n \r\n {maxFileSize && (\r\n
\r\n
\r\n \r\n
\r\n

{maxFileSize}

\r\n
\r\n )}\r\n {state.enableTradeLicenseFileError && renderInvalidOrEmptyMessage('file')}\r\n
\r\n
\r\n \r\n \r\n ) => {\r\n handleFileChange(event);\r\n }}\r\n className='form-control contact-us-file'\r\n disabled={loading}\r\n />\r\n {\r\n resetPresentationFileField();\r\n }}\r\n >\r\n x\r\n \r\n \r\n {maxFileSize && (\r\n
\r\n
\r\n \r\n
\r\n

{maxFileSize}

\r\n
\r\n )}\r\n {state.enablePresentationFileError && renderInvalidOrEmptyMessage('file')}\r\n
\r\n
\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableCategoriesError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n >\r\n \r\n {szfBOCategories &&\r\n szfBOCategories?.map((HAoptionItem, i) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n \r\n {state.enableCategoriesError && renderInvalidOrEmptyMessage()}\r\n \r\n {renderCountrySubCategoryField()}\r\n {renderProductSubCategoryField()}\r\n {renderGovernmentEntitiesField()}\r\n {renderSponsorField()}\r\n {renderRestaurantField()}\r\n {renderKiosksFields()}\r\n {renderServiceField()}\r\n \r\n ) => {\r\n onChangeHandler(event);\r\n }}\r\n invalid={state.enableDescriptionError}\r\n className='form-control'\r\n required\r\n disabled={loading}\r\n />\r\n \r\n {state.enableDescriptionError && renderInvalidOrEmptyMessage('description')}\r\n \r\n \r\n \r\n \r\n {\r\n setLoading(true);\r\n onSubmitForm(e);\r\n }}\r\n disabled={loading}\r\n >\r\n {loading && (\r\n <>\r\n \r\n \r\n )}\r\n {boSubmitButtonLabel && boSubmitButtonLabel}\r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n","import React from 'react';\r\nimport { Modal, ModalBody, ModalFooter, ModalHeader } from '@msdyn365-commerce-modules/utilities';\r\n\r\ninterface ISZFModalProps {\r\n isOpen: boolean;\r\n onModalToggle?: (e?: React.MouseEvent) => void;\r\n className: string;\r\n modalTitle?: React.ReactNode;\r\n modalBody?: React.ReactNode;\r\n modalFooter?: React.ReactNode;\r\n}\r\n\r\nexport default function SZFModal(props: ISZFModalProps) {\r\n const { isOpen, onModalToggle, className, modalTitle, modalBody, modalFooter } = props;\r\n\r\n return (\r\n \r\n {modalTitle && {modalTitle}}\r\n {modalBody && {modalBody}}\r\n {modalFooter && {modalFooter}}\r\n \r\n );\r\n}\r\n","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n (binding.modules['szf-business-op-form'] = {\n c: () => require('partner/modules/szf-business-op-form/szf-business-op-form.tsx'),\n $type: 'contentModule',\n da: [{name:'crmToken', path:'actions/get-crm-token.action', runOn: 0},{name:'sharepointToken', path:'actions/get-sharepoint-token.action', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'szf-business-op-form',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/szf-business-op-form'\n });\n \n\n {\n const sanitizedActionPath = 'actions/get-crm-token.action';\n let dataAction = require('partner/actions/get-crm-token.action');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = 'actions/get-sharepoint-token.action';\n let dataAction = require('partner/actions/get-sharepoint-token.action');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|szf-business-op-form|szf-business-op-form'] = {\n c: () => require('partner/modules/szf-business-op-form/szf-business-op-form.view.tsx'),\n cn: '__local__-__local__-szf-business-op-form'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["GetCrmTokenInput","constructor","getCacheKey","getCacheObjectType","dataCacheType","Msdyn365","action","async","input","ctx","szfCRMDomain","szfCRMClientSecret","requestContext","app","config","data","qs","response","headers","status","token","access_token","id","args","GetExistingContactInput","email","phone","this","value","length","contactid","undefined","createExistingContactInput","GetTokenInput","getToken","PostBusinessOpCaseInput","szf_name","fullName","szf_organizationname","organizationName","szf_email","szf_phoneno","countryCode","szf_participatedwithszfpreviously","previousParticipant","szf_typeofparticipation","previousParticipantType","szf_heardaboutus","hearAbout","szf_heardaboutusother","others","szf_categories","categories","szf_countrypavilion","listOfCountryPavilions","toString","szf_productsshowcase","typeOfProducts","szf_type","typeOfRestaurantsCoffeeShops","typeOfKiosksFoodTrucks","szf_kioskactivity","kioskActivity","szf_serviceactivity","serviceActivity","new_governmententities","listOfGovernmentEntities","new_sponsor","typeOfSponsor","szf_description","description","CRMtoken","contactID","tradeLicenseFile","fileData","base64","tradeLicensefileBase64Code","presentationFile","presentationfileBase64Code","_input$tradeLicenseFi","_input$presentationFi","_input$tradeLicenseFi2","_input$tradeLicenseFi3","_input$presentationFi2","_input$presentationFi3","name","szf_businessopportunity_Annotations","_objectSpread","axios","timeout","szf_businessopportunityid","msg","error","message","createBOCaseInput","inputData","PostNewContactInput","firstName","lastName","updateNpromotion","createNewContactInput","SzfBusinessOpForm","React","render","props","renderView","_props$config","_props$config2","_props$context$reques","_props$config$success","_props$context$reques2","_props$config$failMod","_props$config$success2","_props$config$failMod2","isModalOpen","setIsModalOpen","loading","setLoading","state","setState","enableFullNameError","enableOrganizationNameError","enableEmailError","enablePhoneError","enablePreviousParticipantError","enablePreviousParticipantTypeError","enableHearAboutError","enableOthersError","enableTradeLicenseFileError","enablePresentationFileError","enableCategoriesError","enablePavilionsFields","enableProductsFields","enableRestaurantsFields","enableKiosksFields","enableServiceFields","enableGovernmentEntities","enableSponsor","enableGovernmentEntitiesError","enableSponsorError","enablePavilionsError","enableProductsError","enableRestaurantsError","enableKiosksError","enableKioskActivityError","enableServiceError","enableDescriptionError","tradeLicenseFileRef","presentationFileRef","settradeLicenseFile","setPresentationFile","multiselectRef","BOError","setBOError","BOInvalidOrEmptyError","setBOInvalidOrEmptyError","setTradeLicenseFileBase64Code","setPresentationFileBase64Code","updateAndPromotionCheckboxLabel","boUpdateAndPromotionCheckboxLabel","boFullnameLabel","boOrganizationNameLabel","boPhoneLabel","boEmailLabel","boPreviousParticipationSelectLabel","boPreviousParticipationTypeLabel","boHearAboutSelectLabel","boOtherLabel","boTradeLicenseFileLabel","boPresentationFileLabel","boCategoriesSelectLabel","boDescriptionLabel","boSubmitButtonLabel","boOrganizeCountryPavilionsLabel","boShopCountryPavilionsLabel","boProductTypeLabel","boRestaurantShopTypeLabel","boKiosksTypeLabel","boKiosksActivityLabel","boServiceActivityLabel","governmentEntitiesLabel","sponsorLabel","locale","context","request","fileSizeKB","fileSize","szfBOCategories","boPreviousParticipationOptions","boHearAboutOptions","boGenericErrorMessage","invalidOrEmptyFieldError","dropdownChooseOptionMessage","maxFileSize","fileInvalidMessage","szfSuccessModalHeading","szfFailModalHeading","szfSuccessModalMessage","descriptionInvalidMessage","multiSelectPlaceholder","resources","updateAndPromotionLabel","MsDyn365","text","editProps","onEdit","event","target","successImageProps","gridSettings","imageSettings","successModalImage","failureImageProps","failModalImage","imageContainer","className","successImage","Node","Object","assign","preserveImageSpace","key","moduleType","typeName","imagePropertyName","moduleId","shouldSkipToMainImage","failureImage","onChangeHandler","e","IntValue","_multiselectRef$curre","current","resetSelectedValues","obj","test","getbase64","imagefile","type","reader","FileReader","readAsDataURL","onload","result","split","handleFileChange","files","size","resetTradeFileField","_e$target","resetPresentationFileField","_e$target2","toggleModal","onSubmitForm","preventDefault","_document$getElementB","_document$getElementB2","_document$getElementB3","_document$getElementB4","_document$getElementB5","_document$getElementB6","_document$getElementB7","_document$getElementB8","_tradeLicenseFileRef$","_presentationFileRef$","_document$getElementB9","_document$getElementB10","_document$getElementB11","_document$getElementB12","_document$getElementB13","_document$getElementB14","_document$getElementB15","document","getElementById","focus","_document$getElementB16","_await$props$data$crm","mergePhoneWithCountryCode","substring","indexOf","crmToken","isContactAlreadyExist","contactExistInput","existingContactDataAction","actionContext","checkExistingContact","createCaseInput","BOCaseDataAction","resetForm","createInputData","createContactInput","createNewContactResponse","createNewContactDataAction","console","log","getSubCategories","foundCategory","find","categoryItem","_foundCategory$subCat","subCategory1","map","SCoptionItem","i","linkText","_foundCategory$subCat2","subCategory2","getRestaurantSubcategory","_foundCategory$subCat3","SetPavilionState","selectedList","filteredSelectedList","selectedOption","SetProductsState","SetGovernmentEntitiesState","onSelect","selectedItem","onRemove","removedItem","onProductSelect","onProductRemove","onGovernmentEntitiesSelect","onGovernmentEntitiesRemove","renderInvalidOrEmptyMessage","FormFeedback","handlePhoneCountryCodeOnChange","country","dialCode","newPhone","startsWith","slice","bOParagraph","SZFModal","isOpen","onModalToggle","modalTitle","onClick","src","alt","modalBody","Form","onSubmit","FormGroup","floating","Input","placeholder","onChange","invalid","required","disabled","Label","for","toLowerCase","PhoneInput","inputProps","enableAreaCodes","localization","arabicLocale","inputClass","autoFormat","enableSearch","PPoptionItem","HAoptionItem","InputGroup","innerRef","Button","Multiselect","options","displayValue","ref","disable","getSponsorcategory","_foundCategory$subCat4","check","defaultChecked","checked","handleCheckboxChange","MoonLoader","color","modalFooter","Modal","zIndex","applicationNode","autoFocus","toggle","ModalHeader","ModalBody","ModalFooter","binding","modules","dataActions","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","c","require","$type","da","path","runOn","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}