{"version":3,"file":"useProspect.d2e3ad2d.js","sources":["../../../../components/core/Loader.vue","../../../../composables/useProspect.ts"],"sourcesContent":["\n\n\n\n","import { WritableComputedRef } from \"vue\";\nimport { useProspectStore } from \"~/store/prospect-store\";\nimport { EntityTypeEnum } from \"~~/enums/EntityType\";\nimport { ProspectPageEnum } from \"~~/enums/ProspectPage\";\nimport CurrentPage from \"~~/models/CurrentPage\";\nimport Discussions from \"~~/models/Discussions\";\nimport MessagesStatusModel from \"~~/models/MessagesStatusModel\";\nimport { useGtag } from \"vue-gtag-next\";\n\nexport const useProspect = () => {\n let prospectStore = useProspectStore();\n let helper = useHelper();\n const localePath = useLocalePath();\n const gtag = useGtag();\n\n const getProspect = async function (prospectId: string) {\n await prospectStore.loadProspect(prospectId);\n return prospectStore.getProspect;\n };\n\n const createProspect = async function (accountType: string, prospect: any) {\n if (accountType === \"individual\") {\n await prospectStore.addIndividual(prospect);\n } else {\n await prospectStore.addCorporate(prospect);\n }\n\n // Send Google Analytic event\n gtag.event(\"event\", {\n event_category: \"Account Opening\",\n event_label: \"Submit MyCIM Form \" + prospect.languageIsoCode,\n });\n };\n\n const editProspect = function (prospectId: string) {\n navigateTo(localePath(`/prospect/${prospectId}`) + \"/\");\n };\n\n const getProspectList = async function (): Promise<\n ComputedRef\n > {\n await prospectStore.loadProspectList();\n\n return computed(() => prospectStore.getProspectList);\n };\n\n const getProspectType = function (): EntityTypeEnum {\n return prospectStore.getProspectType;\n };\n\n const setProspectType = function (entityType: EntityTypeEnum) {\n return prospectStore.setProspectType(entityType);\n };\n\n const addAttachment = async function (\n file: File,\n successCallback: Function,\n failCallback: Function\n ) {\n try {\n await prospectStore.addAttachment(file);\n await successCallback(prospectStore.getAttachmentId);\n } catch (error) {\n await failCallback(error);\n }\n };\n\n const downloadAttachment = async function (\n attachmentId: string,\n fileName: string\n ) {\n await prospectStore.loadAttachment(attachmentId);\n let file = prospectStore.getAttachment;\n if (file) {\n helper.downloadFile(file, fileName, true);\n }\n };\n\n const getDiscussions = async function (\n prospectId: string\n ): Promise> {\n await prospectStore.loadDiscussions(prospectId);\n return computed({\n get: () => prospectStore.getProspectDiscussions,\n set: (value: Discussions | null) => (prospectStore.discussions = value),\n });\n };\n\n const getDiscussion = async function (\n discussionId?: string,\n prospectId?: string\n ) {\n await prospectStore.loadDiscussion(discussionId, prospectId);\n return prospectStore.getProspectDiscussion;\n };\n\n const addMessage = async function (\n prospectId: string,\n message: string,\n attachmentIds: Array\n ): Promise {\n return await prospectStore.addMessage(prospectId, message, attachmentIds);\n };\n\n const updateMessageStatus = async function (\n messageIds: Array\n ): Promise {\n return await prospectStore.updateMessageStatus(messageIds);\n };\n\n const getProspectCurrentPage = async function (\n prospectId: any\n ): Promise {\n return await prospectStore.getProspectCurrentPage(prospectId);\n };\n\n const getPageAccessForProspectId = async function (\n prospectId: any,\n currentPage: ProspectPageEnum\n ): Promise {\n const hasAccess = await prospectStore.getPageAccessForProspectId(\n prospectId,\n currentPage\n );\n return hasAccess;\n };\n\n // region Register Individual\n const saveIndividualLandingPage = async function (\n accountUsage: any,\n prospectId: any\n ) {\n const payload = {\n prospectId: prospectId,\n accountUsage: accountUsage,\n };\n const response = await prospectStore.saveIndividualLandingPage(payload);\n return response;\n };\n\n const saveIndividualRegistration = async function (\n prospectHolder: any,\n prospectId: any\n ) {\n const payload = {\n prospectId: prospectId,\n addressLine1: prospectHolder.mainAddress?.line1,\n zipCode: prospectHolder.mainAddress?.zipCode,\n city: prospectHolder.mainAddress?.city,\n addressLine2: prospectHolder.mainAddress?.line2,\n residenceCountryIsoCode: prospectHolder.mainAddress?.countryIsoCode,\n passportNumber: prospectHolder.identityDocuments[0].documentNumber,\n passportExpirationDate: prospectHolder.identityDocuments[0].expirationDate\n ? useHelper().convertDateToTechnicalString(\n new Date(prospectHolder.identityDocuments[0].expirationDate)\n )\n : null,\n taxationCountryIsoCode:\n prospectHolder.taxations?.length > 0\n ? prospectHolder.taxations[0].taxationCountryIsoCode\n : null,\n tinNumber:\n prospectHolder.taxations?.length > 0\n ? prospectHolder.taxations[0].tinNumber\n : null,\n hasTinNumber:\n prospectHolder.taxations?.length > 0\n ? prospectHolder.taxations[0].hasTinNumber\n : true,\n isLinkedToUnitedStates: !!prospectHolder.isLinkedToUnitedStates,\n hasUSPassportOrGreenCard: prospectHolder.hasUSPassportOrGreenCard,\n hasSpentSubstantialTimeInUS: prospectHolder.hasSpentSubstantialTimeInUS,\n isUSResidentForAnyOtherReason:\n prospectHolder.isUSResidentForAnyOtherReason,\n };\n\n const response = await prospectStore.saveIndividualRegistration(payload);\n return response;\n };\n\n const saveIndividualPreKyc = async function (\n prospectHolder: any,\n prospectId: any\n ) {\n const payload = {\n prospectId: prospectId,\n activityId: prospectHolder.activityId,\n workplaceCountryIsoCode: prospectHolder.workplaceCountryIsoCode,\n maritalStatus: prospectHolder.maritalStatus,\n needJointAccount: !!prospectHolder.needJointAccount,\n partner: prospectHolder.partner,\n children: prospectHolder.children.filter(\n (child) => child.lastName && child.firstName\n ),\n };\n const response = await prospectStore.saveIndividualPreKyc(payload);\n return response;\n };\n\n const SaveIndividualTermsAndConditions = async function (\n prospectHolder: any,\n prospectId: any\n ) {\n const payload = {\n prospectId: prospectId,\n hasReadAndAgreeWithContract: prospectHolder.hasReadAndAgreeWithContract,\n hasReadAndAgreeWithTermsAndConditions:\n prospectHolder.hasReadAndAgreeWithTermsAndConditions,\n hasReadAndAgreeWithFeesAndCommissions:\n prospectHolder.hasReadAndAgreeWithFeesAndCommissions,\n hasReadAndAgreeWithRisksInvolvedInTradingFinancialInstruments:\n prospectHolder.hasReadAndAgreeWithRisksInvolvedInTradingFinancialInstruments,\n };\n\n const response = await prospectStore.SaveIndividualTermsAndConditions(\n payload\n );\n return response;\n };\n\n const saveIndividualToInProgress = async function (prospectId: any) {\n const payload = {\n prospectId: prospectId,\n };\n const response = await prospectStore.saveIndividualToInProgress(payload);\n return response;\n };\n\n const saveIndividualDocuments = async function (\n certificateOfResidenceId: String,\n passportId: String,\n prospectId: String\n ) {\n const payload = {\n prospectId: prospectId,\n certificateOfResidenceId: certificateOfResidenceId,\n passportId: passportId,\n };\n\n const response = await prospectStore.saveIndividualDocuments(payload);\n return response;\n };\n\n const downloadOpeningSet = async function (\n prospectId: string,\n includesDefaults: boolean,\n isReadonly: boolean,\n isEsignature: boolean,\n languageIsoCode: string,\n templateSelectionList?: Array\n ) {\n await prospectStore.downloadOpeningSet(\n prospectId,\n includesDefaults,\n isReadonly,\n isEsignature,\n languageIsoCode,\n templateSelectionList\n );\n let fileData = prospectStore.getOpeningSet;\n\n if (fileData) {\n helper.downloadFile(fileData, `openingSet_${prospectId}.pdf`, true);\n }\n };\n\n // endregion\n\n // region Register Corporate\n const saveCorporateLandingPage = async function (\n accountUsage: any,\n prospectId: any\n ) {\n const payload = {\n prospectId: prospectId,\n accountUsage: accountUsage,\n };\n const response = await prospectStore.saveCorporateLandingPage(payload);\n return response;\n };\n\n const saveCorporateRegistration = async function (\n prospectHolder: any,\n prospectId: string\n ) {\n const payload = {\n prospectId: prospectId,\n addressLine1: prospectHolder.mainAddress?.line1,\n addressLine2: prospectHolder.mainAddress?.line2,\n zipCode: prospectHolder.mainAddress?.zipCode,\n residenceCountryIsoCode: prospectHolder.mainAddress?.countryIsoCode,\n city: prospectHolder.mainAddress?.city,\n incorporationCountryIsoCode: prospectHolder.incorporationCountryIsoCode,\n activityId: prospectHolder.activityId,\n activityRemark: prospectHolder.activityRemark,\n webSite: prospectHolder.webSite,\n shareCapital: prospectHolder.shareCapital,\n shareCapitalCurrencyIsoCode: prospectHolder.shareCapitalCurrencyIsoCode,\n dateOfIncorporation: prospectHolder.dateOfIncorporation\n ? useHelper().convertDateToTechnicalString(\n new Date(prospectHolder.dateOfIncorporation)\n )\n : null,\n officeCountryIsoCode: prospectHolder.officeCountryIsoCode,\n hasBalanceSheetFinancialStatement:\n prospectHolder.hasBalanceSheetFinancialStatement,\n hasExternalAccounting: prospectHolder.hasExternalAccounting,\n hasPhysicalOffice: prospectHolder.hasPhysicalOffice,\n hasDirectorInPlaceOfIncorporation:\n prospectHolder.hasDirectorInPlaceOfIncorporation,\n holdAnOperatingCompany: prospectHolder.holdAnOperatingCompany,\n hasEmployeesInPlaceOfIncorporation:\n prospectHolder.hasEmployeesInPlaceOfIncorporation,\n numberOfEmployees: prospectHolder.numberOfEmployees,\n hasReadAndAgreeWithFeesAndCommissions:\n prospectHolder.hasReadAndAgreeWithFeesAndCommissions,\n hasReadAndAgreeWithTermsAndConditions:\n prospectHolder.hasReadAndAgreeWithTermsAndConditions,\n hasReadAndAgreeWithRisksInvolvedInTradingFinancialInstruments:\n prospectHolder.hasReadAndAgreeWithRisksInvolvedInTradingFinancialInstruments,\n };\n\n const response = await prospectStore.saveCorporateRegistration(payload);\n return response;\n };\n\n const saveCorporateIndividual = async function (\n entity: any,\n prospectId: string\n ) {\n const payload = {\n prospectId: prospectId,\n personId: entity.id,\n\n addressLine1: entity.mainAddress?.line1,\n addressLine2: entity.mainAddress?.line2,\n zipCode: entity.mainAddress?.zipCode,\n city: entity.mainAddress?.city,\n residenceCountryIsoCode: entity.mainAddress?.countryIsoCode,\n\n gender: entity.gender,\n firstName: entity.firstName,\n lastName: entity.lastName,\n middleName: entity.middleName,\n email: entity.email,\n mobilePhoneNumber: entity.mobilePhoneNumber?.number,\n\n nationalityIsoCode: entity.nationalityIsoCode,\n isLinkedToUnitedStates: entity.isLinkedToUnitedStates,\n identityDocuments: entity.identityDocuments.map((d) => {\n var tmp = { ...d };\n tmp.expirationDate = tmp.expirationDate\n ? useHelper().convertDateToTechnicalString(\n new Date(tmp.expirationDate)\n )\n : null;\n return tmp;\n }),\n\n //passportNumber: entity.passportNumber,\n // passportExpirationDate: entity.passportExpirationDate\n // ? useHelper().convertDateToTechnicalString(\n // new Date(entity.passportExpirationDate)\n // )\n // : null,\n birthDate: entity.birthDate\n ? useHelper().convertDateToTechnicalString(new Date(entity.birthDate))\n : null,\n cityOfBirth: entity.cityOfBirth,\n countryOfBirthIsoCode: entity.countryOfBirthIsoCode,\n\n signatureType: entity.signatureType,\n role: entity.role,\n percentageOfOwnership: entity.percentageOfOwnership,\n activityId: entity.activityId,\n workplaceCountryIsoCode: entity.workplaceCountryIsoCode,\n hasSpentSubstantialTimeInUS: entity.hasSpentSubstantialTimeInUS,\n hasUSPassportOrGreenCard: entity.hasUSPassportOrGreenCard,\n taxationCountryIsoCode:\n entity.taxations?.length > 0\n ? entity.taxations[0].taxationCountryIsoCode\n : null,\n hasTinNumber:\n entity.taxations?.length > 0 ? entity.taxations[0].hasTinNumber : true,\n tinNumber:\n entity.taxations?.length > 0 ? entity.taxations[0].tinNumber : null,\n isUSResidentForAnyOtherReason: entity.isUSResidentForAnyOtherReason,\n isPoliticallyExposed: entity.isPoliticallyExposed,\n isDirector: entity.isDirector,\n };\n\n const response = await prospectStore.saveCorporateIndividual(payload);\n return response;\n };\n\n const saveCorporateTransaction = async function (\n currentKyc: any,\n prospectId: string\n ) {\n const payload = {\n prospectId: prospectId,\n averageAmountOfIncomingTransfer:\n currentKyc.averageAmountOfIncomingTransfer,\n averageAmountOfIncomingTransferCurrencyIsoCode:\n currentKyc.averageAmountOfIncomingTransferCurrencyIsoCode,\n averageAmountOfOutgoingTransfer:\n currentKyc.averageAmountOfOutgoingTransfer,\n averageAmountOfOutgoingTransferCurrencyIsoCode:\n currentKyc.averageAmountOfOutgoingTransferCurrencyIsoCode,\n numberOfIncomingTransferPerMonth:\n currentKyc.numberOfIncomingTransferPerMonth,\n numberOfOutgoingTransferPerMonth:\n currentKyc.numberOfOutgoingTransferPerMonth,\n };\n\n const response = await prospectStore.saveCorporateTransaction(payload);\n return response;\n };\n\n const saveProspectCounterparty = async function (prospect: any) {\n const response = await prospectStore.saveProspectCounterparty(prospect);\n return response;\n };\n\n const saveCorporateUnderReview = async function (prospectId: string) {\n const payload = {\n prospectId: prospectId,\n };\n\n const response = await prospectStore.saveCorporateUnderReview(payload);\n return response;\n };\n\n // endregion\n\n const getProspectManager = async function (prospect: any) {\n return await prospectStore.getProspectManager(prospect);\n };\n\n const getIsLoading = () => {\n return prospectStore.getIsLoading;\n };\n\n const getIsLoadingAttachment = () => {\n return prospectStore.isLoadingAttachment;\n };\n\n const getIsLoadingDiscussion = () => {\n return prospectStore.isLoadingDiscussion;\n };\n\n const deleteCorporateIndividual = async function (\n entity: any,\n prospectId: string\n ) {\n const payload = {\n PersonId: entity.id,\n ProspectId: prospectId,\n };\n await useProspectStore().deleteCorporateIndividual(payload);\n };\n\n const deleteProspectCounterparty = async function (\n counterpartyId: any,\n prospectId: any\n ) {\n const payload = {\n counterpartyId: counterpartyId,\n prospectId: prospectId,\n };\n await useProspectStore().deleteProspectCounterparty(payload);\n };\n\n const displayRegistrations = function () {\n useProspectStore().showRegistration();\n };\n\n const hideRegistrations = function () {\n useProspectStore().hideRegistration();\n };\n\n const getDisplayRegistrations = function () {\n return useProspectStore().getDisplayRegistrations;\n };\n\n return {\n getProspect,\n createProspect,\n editProspect,\n getProspectList,\n getProspectType,\n setProspectType,\n addAttachment,\n downloadAttachment,\n getDiscussions,\n getDiscussion,\n addMessage,\n updateMessageStatus,\n getProspectCurrentPage,\n getPageAccessForProspectId,\n\n // Individual Post-login\n saveIndividualLandingPage,\n saveIndividualRegistration,\n saveIndividualPreKyc,\n SaveIndividualTermsAndConditions,\n saveIndividualToInProgress,\n saveIndividualDocuments,\n downloadOpeningSet,\n\n // Corporate Post-login\n saveCorporateLandingPage,\n saveCorporateRegistration,\n saveCorporateIndividual,\n deleteCorporateIndividual,\n saveCorporateTransaction,\n saveProspectCounterparty,\n deleteProspectCounterparty,\n saveCorporateUnderReview,\n\n // Divers\n getProspectManager,\n getIsLoading,\n getIsLoadingAttachment,\n getIsLoadingDiscussion,\n\n hideRegistrations,\n displayRegistrations,\n getDisplayRegistrations,\n };\n};\n"],"names":["_sfc_main","_resolveComponent","_normalizeClass","$props","_createElementVNode","_createVNode","_component_v_progress_circular","useProspect","prospectStore","useProspectStore","helper","useHelper","localePath","useLocalePath","gtag","useGtag","prospectId","accountType","prospect","navigateTo","computed","entityType","file","successCallback","failCallback","error","attachmentId","fileName","value","discussionId","message","attachmentIds","messageIds","currentPage","accountUsage","payload","prospectHolder","_a","_b","_c","_d","_e","_f","_g","_h","child","certificateOfResidenceId","passportId","includesDefaults","isReadonly","isEsignature","languageIsoCode","templateSelectionList","fileData","entity","d","tmp","_i","currentKyc","counterpartyId"],"mappings":"8JACA,MAAeA,EAAA,CACb,KAAM,SACN,MAAO,CACL,QAAS,CACP,KAAM,QACN,QAAS,EACX,CACF,CACF,kCAGEC,EAYM,qBAAA,sBAXJ,MAUMC,EAAA,CAAA,iBAAA,CAAA,QAAAC,EAAA,OAAA,CAAA,CAAA,CAAA,EAAA,CADHC,EAAA,MAAA,KAAA,CANYA,EAAA,OAAA,KAAA,CACAC,EAAAC,EAAA,CACT,KAAK,GACL,MAAA,EACA,MAAA,UAAA,WAAA,+DCXHC,GAAA,IAAA,CACL,IAAAC,EAAAC,IACAC,EAAAC,IACA,MAAAC,EAAAC,IACAC,EAAAC,IAwdA,MAAA,CAAO,YAtdP,eAAAC,EAAA,CACE,aAAAR,EAAA,aAAAQ,CAAA,EACAR,EAAA,WAAqB,EAqdrB,eAldF,eAAAS,EAAAC,EAAA,CACED,IAAA,aACE,MAAAT,EAAA,cAAAU,CAAA,EAEA,MAAAV,EAAA,aAAAU,CAAA,EAIFJ,EAAA,MAAA,QAAA,CAAoB,eAAA,kBACF,YAAA,qBAAAI,EAAA,eAC6B,CAAA,CAC9C,EAwcD,aArcF,SAAAF,EAAA,CACEG,EAAAP,EAAA,aAAAI,GAAA,EAAA,GAAA,CAAsD,EAqctD,gBAlcF,gBAAA,CAGE,aAAAR,EAAA,mBAEAY,EAAA,IAAAZ,EAAA,eAAA,CAAmD,EA8bnD,gBA3bF,UAAA,CACE,OAAAA,EAAA,eAAqB,EA2brB,gBAxbF,SAAAa,EAAA,CACE,OAAAb,EAAA,gBAAAa,CAAA,CAA+C,EAwb/C,cArbF,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