PageSourceSearch

https://cdn.foreverliving.com/portals/titan-ecommerce/template1/scripts/B.4887/838.aafe35472713faa8.js

js foreverliving.com collected 2026-10-09 22:37:22 UTC 316,196 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkTitan_eCommerce=self.webpackChunkTitan_eCommerce||[]).push([[838],{94252:(oe,Y,p)=>{p.d(Y,{b:()=>C});let C=(()=>{class t{static{this.indiaCountryCode="ind"}static{this.uploadFrontSideImgText="Upload Document Front Side"}static{this.uploadBackSideIMgText="Upload Document Back Side"}static{this.uploadPanText="Upload Scanned Pan Card"}static{this.pdfType="application/pdf"}static{this.statusCode=157}static{this.displayNone="none"}static{this.displayBlock="block"}static{this.allowedFileFormat=["jpg","jpeg","png","PNG","JPG","JPEG","pdf","PDF"]}static{this.distributorMemeberType="Distributor"}static{this.pdf="pdf"}static{this.pdfExtension="pdf.ico"}static{this.bonus="bonus"}static{this.pan="pan"}static{this.signedUrl="secure"}static{this.pngImageType="image/png"}static{this.panMaxLength=10}static{this.validFileNamePattern=/^[a-zA-Z0-9!@()._'[\]~ /-]+$/u}static{this.documentUploadRetryCount=2}static{this.documentUploadRetryDelay=2e3}static{this.accountNumber="accountNumber"}static{this.accountReferenceNumber="accountReferenceNumber"}static{this.bankRoutingNumber="bankRoutingNumber"}static{this.branchName="branchName"}static{this.bankName="bankName"}static{this.sortCode="sortCode"}static{this.PanCard=16}}return t})()},53147:(oe,Y,p)=>{p.d(Y,{HY:()=>ee,Hs:()=>M,UZ:()=>t,VC:()=>C,XI:()=>J});var C=function(I){return I[I.AddressProof=184]="AddressProof",I[I.AgeProof=185]="AgeProof",I[I.PanProof=260]="PanProof",I.Both="Both",I[I.bonusProof=271]="bonusProof",I}(C||{}),t=function(I){return I.Submitted="SUBMITTED",I.VerificationInProgress="VERIFICATION IN PROGRESS",I.KycNotSubmit="KYC NOT COMPLETED",I.Verified="VERIFIED",I.ContactNeeded="CONTACT NEEDED",I.Rejected="REJECTED",I.Pending="Pending",I.PartialSubmit="PARTIAL_SUBMIT",I.partiallyVerified="PARTIALLY_VERIFIED",I[I.rejectedId=267]="rejectedId",I[I.ApprovedId=266]="ApprovedId",I[I.submitted=264]="submitted",I[I.partialsubmit=265]="partialsubmit",I}(t||{}),J=function(I){return I.AddressFront="AddressFront",I.AddressBack="AddressBack",I.AgeFront="AgeFront",I.AgeBack="AgeBack",I}(J||{}),M=function(I){return I.CountryID="CountryID",I.PAN_CARD="PAN Card",I}(M||{}),ee=function(I){return I[I.Web=123]="Web",I[I.DataMigration=124]="DataMigration",I[I.TransactionApi=125]="TransactionApi",I}(ee||{})},57919:(oe,Y,p)=>{p.d(Y,{o:()=>h});var C=p(18810),t=p(99437),J=p(21626),M=p(40915),ee=p(71042),I=p(54438),y=p(35688);let h=(()=>{class u{constructor(x,_){this._http=x,this._cacheService=_,this.countryId=this._cacheService.getCookieValue(ee.w.CountryId)}ngOnInit(){}getDocumentType(){return this._http.get(M.B.accountApiUrl+"/"+this.countryId+"/document-types").pipe()}getMember(x){return this._http.get(M.B.accountApiUrl+"/member/"+x+"/documents").pipe()}uploadDocument(x,_){const U=x&&x.name&&_?_+"_"+x.name:x.name,d=new FormData,w=this._cacheService.getCookieValue(ee.w.countryCode),B=/iPhone|iPad|iPod/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;d.append("file",x,U),d.append("path",`Users/UserDocuments/${w.toLowerCase()}/`),d.append("fileName",U);const O=M.B.cmsApiUrl+"/upload-media?isPrivate=true";let e=new J.Lr;return e=B?e.set("no-content-type","").set("ngsw-bypass","true"):e.set("no-content-type","undefined; charset=utf-8"),this._http.post(O,d,{headers:e})}memberDocument(x){const _=M.B.manageAccountRoutedApiURL+"/member-documents";let U=new J.Lr;return U=U.set("no-content-type","undefined"),this._http.post(_,x,{headers:U}).pipe()}getMemberDocuments(x){return this._http.get(`${M.B.accountApiUrl}/members/${x}/member-kyc-data`).pipe((0,t.W)(this.handleErrorObservable))}generateProfileImageSignedCDNURL(x){return this._http.get(M.B.cmsApiUrl+"/generate-signed-urls?path="+x).pipe((0,t.W)(this.handleErrorObservable))}handleErrorObservable(x){return(0,C.$)(()=>x)}static{this.\u0275fac=function(_){return new(_||u)(I.KVO(J.Qq),I.KVO(y._))}}static{this.\u0275prov=I.jDH({token:u,factory:u.\u0275fac})}}return u})()},29668:(oe,Y,p)=>{p.d(Y,{H:()=>ee});var C=p(45312),t=p(64572),J=p(54438),M=p(48431);let ee=(()=>{class I{constructor(h){this.portalSettingsService=h}getSettings(h,u){let b;switch(h.toUpperCase()){case"USA":b=this.loadUSASettings(u);break;case"CAN":b=this.loadCANSettings(u);break;
1case"GBR":b=this.loadGBRSettings(u);break;case"IRL":b=this.loadIRLSettings(u);break;case"ILN":b=this.loadILNSettings(u);break;case"ARE":b=this.loadARESettings(u);break;case"SAU":b=this.loadSAUSettings(u);break;case"QAT":b=this.loadQATSettings(u);break;case"KWT":case"KWT":b=this.loadKWTSettings(u);break;case"BHR":b=this.loadBHRSettings(u);break;case"SWE":b=this.loadSWESettings(u);break;case"DNK":b=this.loadDNKSettings(u);break;case"GRL":b=this.loadGRLSettings(u);break;case"FRO":b=this.loadFROSettings(u);break;case"FIN":b=this.loadFINSettings(u);break;case"ALA":b=this.loadALASettings(u);break;case"NOR":b=this.loadNORSettings(u);break;case"SJM":b=this.loadSJMSettings(u);break;case"OMN":b=this.loadOMNSettings(u);break;case"AUS":b=this.loadAUSSettings(u);break;case"BEL":b=this.loadBELSettings(u);break;case"LUX":b=this.loadLUXSettings(u);break;case"NLD":b=this.loadNLDSettings(u);break;case"NZL":b=this.loadNZLSettings(u);break;case"POL":b=this.loadPOLSettings(u);break;case"DEU":b=this.loadDEUSettings(u);break;case"AUT":b=this.loadAUTSettings(u);break;case"IND":b=this.loadINDSettings(u);break;case"BGR":b=this.loadBGRSettings(u);break;case"MKD":b=this.loadMKDSettings(u);break;case"CHE":b=this.loadCHESettings(u);break;case"NGA":b=this.loadNGASettings(u);break;case"ZAF":b=this.loadZAFSettings(u);break;case"SEN":b=this.loadSENSettings(u);break;case"ISL":b=this.loadISLSettings(u);break;case"TZA":b=this.loadTZASettings(u);break;case"COD":b=this.loadCODSettings(u);break;case"COG":b=this.loadCOGSettings(u);break;case"TWN":b=this.loadTWNSettings(u);break;case"ROM":b=this.loadROMSettings(u);break;case"MDA":b=this.loadMDASettings(u);break;case"HUN":b=this.loadHUNSettings(u);break;case"HRV":b=this.loadHRVSettings(u);break;case"SCG":b=this.loadSCGSettings(u);break;case"CRG":b=this.loadCRGSettings(u);break;case"SVN":b=this.loadSVNSettings(u);break;case"CMR":b=this.loadCMRSettings(u);break;case"GAB":b=this.loadGABSettings(u);break;case"RWA":b=this.loadRWASettings(u);break;default:b=this.portalSettingsService.getPortalSettingsByCategory(h,t.d.MY_ACCOUNT_CONFIG,u),b||(b=this.loadUSASettings(u))}return b}loadUSASettings(h){return{disableStateCity:!1,countryCode:"USA",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,disableFboUpgradePopup:!!this.updateFboUpgradeSetting("USA")}}loadCANSettings(h){return{disableStateCity:!1,countryCode:"CAN",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displaySystemOrderNumber:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}
1loadGBRSettings(h){return{disableStateCity:!1,countryCode:"GBR",showStateCode:!1,displaySearchAddressSection:!0,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,vatInPersonalInfo:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadIRLSettings(h){return{disableStateCity:!1,countryCode:"IRL",showStateCode:!0,displaySearchAddressSection:!0,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,hideGovernmentId:!0,findStateByStateName:!0,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!0,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!0,saveBonusInfoButton:!1,vatInPersonalInfo:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadILNSettings(h){return{disableStateCity:!1,countryCode:"ILN",showStateCode:!1,displaySearchAddressSection:!0,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!0,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,vatInPersonalInfo:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadARESettings(h){return{disableStateCity:!1,countryCode:"ARE",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,enableBonusInfoAndAuthorizedPersonSection:!0,enableMobileUniqueCheck:!0,countryBasedOnlyMobileUniqueCheck:!0}}loadSAUSettings(h){return{disableStateCity:!1,countryCode:"SAU",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,enableBonusInfoAndAuthorizedPersonSection:!0,enableMobileUniqueCheck:!0,countryBasedOnlyMobileUniqueCheck:!0}}loadQATSettings(h){return{disableStateCity:!1,countryCode:"QAT",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,enableBonusInfoAndAuthorizedPersonSection:!0}
1}loadKWTSettings(h){return{disableStateCity:!1,countryCode:"KWT",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadSWESettings(h){return{disableStateCity:!1,countryCode:"SWE",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!this.isGrossTaxEnabled("SWE"),loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadDNKSettings(h){return{disableStateCity:!1,countryCode:"DNK",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!this.isGrossTaxEnabled("DNK"),loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadGRLSettings(h){return{disableStateCity:!1,countryCode:"GRL",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadFROSettings(h){return{disableStateCity:!1,countryCode:"FRO",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadFINSettings(h){return{disableStateCity:!1,countryCode:"FIN",
1showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!this.isGrossTaxEnabled("FIN"),loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadALASettings(h){return{disableStateCity:!1,countryCode:"ALA",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadNORSettings(h){return{disableStateCity:!1,countryCode:"NOR",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!this.isGrossTaxEnabled("NOR"),loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadSJMSettings(h){return{disableStateCity:!1,countryCode:"SJM",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadBHRSettings(h){return{disableStateCity:!1,countryCode:"BHR",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadOMNSettings(h){return{disableStateCity:!1,countryCode:"OMN",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadAUSSettings(h){return{disableStateCity:!1,countryCode:"AUS",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!0,bonusInfoPaymentOptions:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadNLDSettings(h){return{disableStateCity:!1,countryCode:"NLD",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!(!h||!h.vatRegistered),loadAssociatedCountries:!0,hideGovernmentId:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!0,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!0,showBusinessInfoSection:!1,calTotalTaxForVatNLDUser:!0,useContactTypeAsPhone:!0,enableVatItemizationForNonVatUser:!0,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!0,saveBonusInfoButton:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadBELSettings(h){return{disableStateCity:!1,countryCode:"BEL",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!0,displayBusinessEntity:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,calculateTaxExclusivePrice:!(!h||!h.vatRegistered),catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!0,disableBonusInfoDeleteOption:!0,showBonusInfoDocuments:!0,showBusinessInfoSection:!1,useContactTypeAsPhone:!0,enableVatItemizationForNonVatUser:!0,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,showBonusInfoForFPC:!1,enableSingleAndDirectDebit:!1,isEuropeanAddressFormat:!0}}loadLUXSettings(h){return{disableStateCity:!1,countryCode:"LUX",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!(!h||!h.vatRegistered),loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!0,disableBonusInfoDeleteOption:!0,showBonusInfoDocuments:!0,showBusinessInfoSection:!1,useContactTypeAsPhone:!0,enableVatItemizationForNonVatUser:!0,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadNZLSettings(h){return{disableStateCity:!1,countryCode:"NZL",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,bonusInfoPaymentOptions:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1}}loadPOLSettings(h){return{disableStateCity:!1,countryCode:"POL",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:C.c.enableBonusInfoSection,displayBusinessEntity:!0,calculateTaxExclusivePrice:!this.isGrossTaxEnabled("POL"),loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!0,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadDEUSettings(h){return{disableStateCity:!1,countryCode:"DEU",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!0,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!0,isEuropeanAddressFormat:!0,preSelectedDocuments:!0}}loadAUTSettings(h){return{disableStateCity:!1,countryCode:"AUT",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!0,isApplyMaskFormat:!1,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,preSelectedDocuments:!0}}loadINDSettings(h){return{disableStateCity:!0,countryCode:"IND",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!0,showKycModal:!0,isEuropeanAddressFormat:!1,showOtpVerifyPopUp:!0,enableAlternatePhoneNumber:!0,displayContactCustomerSupport:!0,showDisplayNameAndDob:!0,hideLevel:!1,displayPan:!0,show
1Flp360Fpc:!0,displayPanAndSpouse:!0,showRecognitionPage:!0,showKycVerificationStatus:!0,hideoptin:!0,enableMobileUniqueCheck:!0,enableAltMobileUniqueCheck:!0,displayBonusPage:!0,enableEmailUniqueCheck:!0,showTdsCertificatePage:!0,displayTitle:!0,removeDontRemaindCheck:!0,checkMemberInAs400:!0,changeSponsorElgibility:!0,enableDuplicatePanNumberCheck:!0,restrictUpdateForUnchangedProfile:!0,checkValidSponsor:!0,imageArchieveCheck:!0}}loadBGRSettings(h){return{disableStateCity:!1,countryCode:"BGR",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!0,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0,hideBusinessEntityFormLink:!0}}loadMKDSettings(h){return{disableStateCity:!1,countryCode:"MKD",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!0,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0,hideBusinessEntityFormLink:!0}}loadCHESettings(h){return{disableStateCity:!1,countryCode:"CHE",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!0,isApplyMaskFormat:!1,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,preSelectedDocuments:!0}}loadROMSettings(h){return{disableStateCity:!1,countryCode:"ROM",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!0,isApplyMaskFormat:!1,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!1,displayBWPStatus:!1,isEuropeanAddressFormat:!0,preSelectedDocuments:!0,showGovernmentIdField:!0}}loadMDASettings(h){return{disableStateCity:!1,countryCode:"MDA",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!0,isApplyMaskFormat:!1,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!1,displayBWPStatus:!1,isEuropeanAddressFormat:!0,preSelectedDocuments:!0,showGovernmentIdField:!0}}loadNGASettings(h){return{disableStateCity:!1,countryCode:"NGA",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!0}}loadZAFSettings(h){return{disableStateCity:!1,countryCode:"ZAF",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!1,disableBonusInfoFPCInBusinessOpp:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!0,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!0,enableDuplicatePanNumberCheck:!0}}loadSENSettings(h){return{disableStateCity:!1,countryCode:"SEN",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!1,displayWavePaymentInOrderHistory:!0}}loadISLSettings(h){return{disableStateCity:!1,countryCode:"ISL",showStateCode:!0,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!0,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,hideGovernmentId:!0,findStateByStateName:!0,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!0,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!0,saveBonusInfoButton:!1,vatInPersonalInfo:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0}}loadRWASettings(h){return{disableStateCity:!1,countryCode:"RWA",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!1,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!1}}loadTZASettings(h){return{disableStateCity:!1,countryCode:"TZA",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!1,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!1,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!1}}loadCODSettings(h){return{disableStateCity:!1,countryCode:"COD",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!0}}loadCOGSettings(h){return{disableStateCity:!1,countryCode:"COG",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!0}}loadTWNSettings(h){return{disableStateCity:!1,countryCode:"TWN",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!0,loadParticipatingCountries:!1,displayVatId:!1,showBonusInfoSection:!0,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!1,changeSchemaFormOnCountryChange:!1,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!0,disableBonusInfoInUpgradeFlow:!0}}loadHUNSettings(h){return{disableStateCity:!1,countryCode:"HUN",showStateCode:!1,displaySearchAddressSection:!0,skipAddressVerification:!0,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,vatInPersonalInfo:!0,preSelectedDocuments:!0,enabledAut
1oAddressInDropship:!0}}loadHRVSettings(h){return{disableStateCity:!1,countryCode:"HRV",showStateCode:!1,displaySearchAddressSection:!0,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,vatInPersonalInfo:!0,preSelectedDocuments:!0}}loadSVNSettings(h){return{disableStateCity:!1,countryCode:"SVN",showStateCode:!1,displaySearchAddressSection:!0,skipAddressVerification:!0,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,vatInPersonalInfo:!0,preSelectedDocuments:!0}}loadCMRSettings(h){return{disableStateCity:!1,countryCode:"CMR",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!0}}loadGABSettings(h){return{disableStateCity:!1,countryCode:"GAB",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!0,loadParticipatingCountries:!0,displayVatId:!1,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!0,loadAssociatedCountries:!1,findStateByStateName:!1,catalogPriceAsTaxablePrice:!1,selectCountryByMailingAddress:!0,changeSchemaFormOnCountryChange:!0,displayGovernmentidFPCToFBOUpgrade:!0,showParticipatingCountrySchemaForm:!0,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!1,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!1,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,bonusInfoDynamicValidation:!0,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!1,displayIBAN:!1,hideEmailFromSchema:!1,enableSingleAndDirectDebit:!1,showBonusInfoForFPC:!1,isEuropeanAddressFormat:!1,hideBusinessEntityFormLink:!0}}loadSCGSettings(h){return{disableStateCity:!1,countryCode:"SCG",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!1,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,vatInPersonalInfo:!0,preSelectedDocuments:!0}}loadCRGSettings(h){return{disableStateCity:!1,countryCode:"CRG",showStateCode:!1,displaySearchAddressSection:!1,skipAddressVerification:!0,displayDeliveryDateSection:!1,loadParticipatingCountries:!0,displayVatId:!0,showBonusInfoSection:!1,displayBusinessEntity:!0,calculateTaxExclusivePrice:!1,loadAssociatedCountries:!0,hideGovernmentId:!0,findStateByStateName:!1,catalogPriceAsTaxablePrice:!0,selectCountryByMailingAddress:!1,bonusInfoDynamicValidation:!0,changeSchemaFormOnCountryChange:!1,hideBusinessEntityFormLink:!0,displayVATIdForBusinessEntity:!0,hideVatIdPopover:!0,displayGovernmentidFPCToFBOUpgrade:!1,showParticipatingCountrySchemaForm:!1,calculateTaxTotalPrice:!1,showBonusInfoDocuments:!0,disableBonusInfoDeleteOption:!1,showBusinessInfoSection:!1,useContactTypeAsPhone:!1,enableVatItemizationForNonVatUser:!1,applicablePriceAsTaxablePrice:!0,hideSearchAddressLink:!1,displyGovId:!1,saveBonusInfoButton:!1,removeVatId:!1,isApplyMaskFormat:!0,displayBonusInfoLabel:!0,displayIBAN:!0,enableSingleAndDirectDebit:!0,showBonusInfoForFPC:!0,displayBWPStatus:!1,isEuropeanAddressFormat:!0,vatInPersonalInfo:!0,preSelectedDocuments:!0}}isGrossTaxEnabled(h){let u=!1;return h&&C.c.grossTaxEnabledCountries&&(u=C.c.grossTaxEnabledCountries.split(",").includes(h)),u}updateFboUpgradeSetting(h){let u=!1;
1return h&&C.c.disableFboUpgradePopup&&(u=C.c.disableFboUpgradePopup.split(",").includes(h)),u}static{this.\u0275fac=function(u){return new(u||I)(J.KVO(M.R))}}static{this.\u0275prov=J.jDH({token:I,factory:I.\u0275fac})}}return I})()},4449:(oe,Y,p)=>{p.d(Y,{h:()=>C});let C=(()=>{class t{static{this.googleClientId="googleClientId"}static{this.googleApiKey="googleApiKey"}static{this.oneDriveClientId="oneDriveClientId"}static{this.dropBoxApiKey="dropBoxApiKey"}}return t})()},46080:(oe,Y,p)=>{p.d(Y,{I:()=>C});var C=function(t){return t[t.BUSINESS_ENTITY_FORMS=1]="BUSINESS_ENTITY_FORMS",t[t.SPONSOR_CHANGE_FORM=5]="SPONSOR_CHANGE_FORM",t[t.BONDED_WAREHOUSE_PROJECT=9]="BONDED_WAREHOUSE_PROJECT",t[t.SMS_OPT_IN_FORMS=13]="SMS_OPT_IN_FORMS",t}(C||{})},53096:(oe,Y,p)=>{p.d(Y,{u:()=>C});var C=function(t){return t.SWE="SWE",t.GBR="GBR",t.IRL="IRL",t.ILN="ILN",t.DNK="DNK",t.NOR="NOR",t.FIN="FIN",t.DEU="DEU",t.AUT="AUT",t.CHE="CHE",t.AUS="AUS",t.NZL="NZL",t.HUN="HUN",t.HRV="HRV",t.SVN="SVN",t.ROM="ROM",t.MDA="MDA",t.SCG="SCG",t.CRG="CRG",t}(C||{})},92379:(oe,Y,p)=>{p.d(Y,{i:()=>I});var C=p(54843),t=p(99437),J=p(40915),M=p(54438),ee=p(21626);let I=(()=>{class y{constructor(u){this.http=u}getCloudAuth(u){return(0,C._)(this.http.get(`${J.B.configurationApiUrl}/cloud/get/${u}`,{responseType:"text"}).pipe((0,t.W)(x=>(console.warn(`Failed to fetch cloud key "${u}":`,x),[""]))))}static{this.\u0275fac=function(b){return new(b||y)(M.KVO(ee.Qq))}}static{this.\u0275prov=M.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},752:(oe,Y,p)=>{p.d(Y,{n:()=>C});let C=(()=>{class t{static{this.VALUE=1e3}}return t})()},3053:(oe,Y,p)=>{p.d(Y,{N:()=>C});let C=(()=>{class t{static{this.allowedExtensions=["jpg","jpeg","png","PNG","JPG","JPEG","pdf","PDF"]}static{this.ageBackSideNotRequired=["School Leaving Certificate","PAN Card","Birth Certificate"]}static{this.addressBackSideNotRequired=["School Leaving Certificate","Bank Passbook","Rent Agreement","School Leaving"]}static{this.proofBackSideNotRequired=["Bank Passbook","Rent Agreement","School Leaving Certificate","PAN Card","Birth Certificate"]}static{this.Address="Address"}static{this.Age="Age"}static{this.AddressFront="AddressFront"}static{this.AddressBack="AddressBack"}static{this.AgeFront="AgeFront"}static{this.AgeBack="AgeBack"}static{this.Pan="Pan"}static{this.PanCard="PAN Card"}static{this.PanHolderStatus="P"}static{this.DISABLED="DISABLED"}static{this.PanLength=10}static{this.CountryIdLength=15}}return t})()},50049:(oe,Y,p)=>{p.d(Y,{u:()=>Ao});var C=p(10467),t=p(89417),J=p(54843),M=p(41584),ee=p(18810),I=p(11966),y=p(31397),h=p(99437),u=p(45312),b=p(94252),x=p(43962),_=p(71042),U=p(3053),d=p(53147),w=p(18091),B=p(59580),O=p(4449),e=p(54438),j=p(32266),te=p(57919),V=p(10902),X=p(55875),H=p(5373),q=p(35688),z=p(66172),Q=p(67493),ie=p(15235),re=p(29668),ue=p(66178),pe=p(23616),he=p(71302),be=p(88821),Ie=p(35605),ve=p(93314),Se=p(68018),Be=p(92379),ge=p(60177),Ce=p(12700),Ae=p(86109),De=p(70814),Me=p(85188),Te=p(1571);const xe=["panImageRef"],Ee=["AgeBack"],Ne=["AgeFront"],Ve=["AddressBack"],we=["addressFrontImage"],Re=["uploadOptionsModalButton"],Oe=["AddressFront"],Fe=["cameraModalButton"],Ue=["cameraErrorDetailModal"],je=["deleteConfirmationModal"],Ge=["invalidDataModal"],Le=["openSubmitKycModal"],$e=["openSubmitedKycModal"],Ke=["limitDocModal"],ze=["deleteCopyModal"],Ye=["withoutImgLimitDocModal"],Je=s=>({"invalid-field":s}),me=()=>({ignoreBackdropClick:!0});function Xe(s,v){1&s&&(e.j41(0,"div",27)(1,"div",28)(2,"div",29),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",30),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"p"),e.EFF(12),e.nI1(13,"translate"),e.k0s()()()),2&s&&(e.R7$(3),e.SpI(" ",e.bMT(4,4,"account.kycdocument.KYC Upload- Title - KYC Title Label")," "),e.R7$(3),e.SpI(" ",e.bMT(7,6,"account.kycdocument.KYC Upload Description - Label")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"account.kycdocument.KYC or \u2018Know Your Customer\u2019 is a mandatory verification procedure in India carried out by financial institutions with the goal of minimizing illegal activities. It usually consists of verifying information about user identity, address and financial history from user provided documents. KYC verification and approval is a required step to become a Sponsor and receive commission.")," "),e.R7$(3),e.JRh(e.bMT(13,10,"account.kycdocument.Examples of correctly and incorrectly uploaded documents")))}function We(s,v){if(1&s&&(e.j41(0,"div",36),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"span",37),e.EFF(4),e.k0s()()),2&s){const o=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,3,"account.kycdocument.KYC Verification Status"),": "),e.R7$(2),e.Y8G("ngClass",(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.VerificationInProgress?"text-primary":(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.Verified?"text-success":(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.KycNotSubmit?"kycPending":"text-danger"),e.R7$(),e.SpI(" ",null==o.userInfo?null:o.userInfo.kycStatus,"")}}function Ze(s,v){1&s&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI("",e.bMT(2,3,"account.kycdocument.Your KYC Documents are currently being verified")," "),e.R7$(3),e.JRh(e.bMT(5,5,"account.kycdocument.It usually takes upto 5 business days")),e.R7$(2),e.SpI(" ",e.bMT(7,7,"account.kycdocument.Contact Customer Support")," "))}function He(s,v){1&s&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&s&&(e.R7$(),e.SpI("",e.bMT(2,2,"account.kycdocument.If you want to make any changes please")," "),e.R7$(3),e.SpI("",e.bMT(5,4,"corporate.header.Contact Us"),":"))}function Qe(s,v){1&s&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.You have not completed uploading or you did not submit your KYC documents.Make sure all the required documents are uploaded and then click Submit button")," "))}function qe(s,v){1&s&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,2,"account.kycdocument.There is a problem with your documents")," "),e.R7$(3),e.SpI("",e.bMT(5,4,"corporate.header.Contact Us"),":"))}function et(s,v){if(1&s&&(e.j41(0,"div",31)(1,"div",32)(2,"div",33),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,We,5,5,"div",34)(6,Ze,8,9,"div",35)(7,He,6,6,"div",35)(8,Qe,3,3,"div",35)(9,qe,6,6,"div",35),e.k0s()()),2&s){const o=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,6,"account.kycdocument.KYC Upload- Title - KYC Title Label")," "),e.R7$(2),e.Y8G("ngIf",o.showSubmitButtons&&o.kycVerificationStatus),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.VerificationInProgress),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.Verified),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.KycNotSubmit),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.userInfo?null:o.userInfo.kycStatus)===o.kycStatusCheck.ContactNeeded)}}function tt(s,v){if(1&s&&(e.j41(0,"div",37)(1,"div",38)(2,"div",39),e.nrm(3,"img",40)(4,"i",41),e.k0s()(),e.j41(5,"div",42)(6,"div",43),e.nrm(7,"img",44)(8,"i",45),e.k0s()()()),2&s){const o=e.XpG(2);e.Y8G("ngClass",o.showAccountKyc?"rows pl-0 d-lg-flex d-md-inline-block":"row p-lg-4 pl-1 pr-3 "),e.R7$(3),e.FS9("src",o.correctImageUrl,e.B4B),e.R7$(4),e.FS9("src",o.incorrectImageUrl,e.B4B)}}function ot(s,v){if(1&s&&(e.j41(0,"div")(1,"div",58),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",59),e.EFF(5),e.k0s()()),2&s){const o=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"account.kycdocument.Address document rejected")),e.R7$(3),e.JRh(o.remarkAddressProof)}}function it(s,v){if(1&s&&(e.j41(0,"option",63),e.EFF(1),e.k0s()),2&s){const o=v.$implicit;e.Y8G("value",o.name),e.R7$(),e.JRh(o.name)}}function nt(s,v){if(1&s&&(e.j41(0,"select",60)(1,"option",61),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,it,2,2,"option",62),e.k0s()),2&s){const o=e.XpG(3);e.R7$(2),e.SpI(" ",e.bMT(3,3,"account.kycdocument.Select Address Proof Document*"),""),e.R7$(2),e.Y8G("ngForOf",o.addressProofList[0].documentName)("ngForTrackBy",o.trackByFn)}}function at(s,v){1&s&&(e.j41(0,"span",67),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.(required)")," "))}function st(s,v){if(1&s){const o=e.RV6();e.j41(0,"span",64),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.uploadDocumentImage("AddressFront",!0))}),e.j41(1,"span",65),e.EFF(2),e.k0s(),e.DNE(3,at,3,3,"span",66),e.k0s()}if(2&s){const o=e.XpG(3);e.Y8G("ngClass",o.addressFrontSideProofImg?"disable":""),e.R7$(2),e.JRh(o.uploadFrontImgText),e.R7$(),e.Y8G("ngIf",!(o.addressFrontSideProofImg||o.disableText))}}function rt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function ct(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document is empty")," "))}function lt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid Format")," "))}function dt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function ft(s,v){if(1&s){const o=e.RV6();e.j41(0,"span")(1,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.uploadDocumentImage("AddressFront",!1))}),e.nrm(2,"i",72),e.k0s(),e.j41(3,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.showConfirmationModal("Address",!0))}),e.nrm(4,"i",73),e.k0s()()}}function ut(s,v){if(1&s&&(e.j41(0,"span",69)(1,"div",70),e.EFF(2),e.k0s(),e.DNE(3,ft,5,0,"span",35),e.k0s()),2&s){const o=e.XpG(3);e.R7$(2),e.SpI(" ",o.addressFrontSideProofName," "),e.R7$(),e.Y8G("ngIf",!o.submitKycDocInfo&&o.editAddressProof)}}function mt(s,v){1&s&&(e.j41(0,"span",74),e.nrm(1,"i",75),e.k0s())}function pt(s,v){if(1&s){const o=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.uploadDocumentImage("AddressBack",!0))}),e.EFF(1),e.k0s()}if(2&s){const o=e.XpG(4);e.Y8G("ngClass",o.addressBackSideProofImg?"disable":""),e.R7$(),e.SpI(" ",o.uploadBackImgText," ")}}function ht(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function gt(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document is empty")," "))}function _t(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid Format")," "))}function bt(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function It(s,v){if(1&s){const o=e.RV6();e.j41(0,"span")(1,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.uploadDocumentImage("AddressBack",!1))}),e.nrm(2,"i",72),e.k0s(),e.j41(3,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.showConfirmationModal("Address",!1))}),e.nrm(4,"i",73),e.k0s()()}}function vt(s,v){if(1&s&&(e.j41(0,"span",69)(1,"div",70),e.EFF(2),e.nI1(3,"sanitize"),e.k0s(),e.DNE(4,It,5,0,"span",35),e.k0s()),2&s){const o=e.XpG(4);e.R7$(2),e.SpI(" ",e.bMT(3,2,o.addressBackSideProofName)," "),e.R7$(2),e.Y8G("ngIf",o.editAddressProof)}}function Ct(s,v){1&s&&(e.j41(0,"span",74),e.nrm(1,"i",75),e.k0s())}function yt(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",37)(1,"div",49)(2,"div",50)(3,"div",37)(4,"div",51)(5,"img",76),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.uploadDocumentImage("AddressBack",!0))})("load",function(){e.eBV(o);const i=e.XpG(3);return e.Njj((null==i.userInfo?null:i.userInfo.kycStatus)!=i.kycStatusCheck.Rejected?i.listenverificationFormChanges():"")})("error",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.showArchivedImg("addressBack"))}),e.k0s()(),e.DNE(6,pt,2,2,"span",77)(7,ht,3,3,"span",78)(8,gt,3,3,"span",78)(9,_t,3,3,"span",78)(10,bt,3,3,"span",78)(11,vt,5,4,"span",55),e.k0s(),e.j41(12,"input",79,1),e.bIt("change",function(i){e.eBV(o);const c=e.XpG(3);return e.Njj(c.uploadAddressProof(i,!1))}),e.k0s(),e.DNE(14,Ct,2,0,"span",57),e.k0s()()()}if(2&s){const o=e.XpG(3);e.Y8G("ngClass",o.showAccountKyc?"col-12 pl-0":"col-lg-9 col-12 pl-0"),e.R7$(3),e.Y8G("ngClass",o.verificationForm.controls.addressDocument.value?"":"disable"),e.R7$(2),e.Y8G("ngClass",o.addressBackSideProofImg?"disable center"
1:"w-100")("src",o.addressBackSideProofImg?o.addressBackSideProofImg:o.defaultImgUrl,e.B4B),e.R7$(),e.Y8G("ngIf",!(o.addressBackSideProofImg||o.disableText)),e.R7$(),e.Y8G("ngIf",o.uploadAddressBackFileExceed),e.R7$(),e.Y8G("ngIf",o.isAddressBackFileSizeZero),e.R7$(),e.Y8G("ngIf",!o.invalidAddressBackImageName&&o.invalidBackAddressFileFormat),e.R7$(),e.Y8G("ngIf",o.invalidAddressBackImageName),e.R7$(),e.Y8G("ngIf",o.addressBackSideProofImg),e.R7$(3),e.Y8G("ngIf",o.addressBackImg)}}function Pt(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",27)(1,"div",37),e.DNE(2,ot,6,4,"div",35),e.j41(3,"div",46)(4,"label",47),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.DNE(7,nt,5,5,"select",48),e.k0s()(),e.j41(8,"div",37)(9,"div",49)(10,"div",50)(11,"div",37)(12,"div",51)(13,"img",52),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.uploadDocumentImage("AddressFront",!0))})("load",function(){e.eBV(o);const i=e.XpG(2);return e.Njj((null==i.userInfo?null:i.userInfo.kycStatus)!=i.kycStatusCheck.Rejected?i.listenverificationFormChanges():"")})("error",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.showArchivedImg("addressFront"))}),e.k0s()(),e.DNE(14,st,4,3,"span",53)(15,rt,3,3,"span",54)(16,ct,3,3,"span",54)(17,lt,3,3,"span",54)(18,dt,3,3,"span",54)(19,ut,4,2,"span",55),e.k0s(),e.j41(20,"input",56,0),e.bIt("change",function(i){e.eBV(o);const c=e.XpG(2);return e.Njj(c.uploadAddressProof(i,!0))}),e.k0s(),e.DNE(22,mt,2,0,"span",57),e.k0s()()(),e.DNE(23,yt,15,11,"div",25),e.k0s()}if(2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngClass",o.showAccountKyc?"col-12 pl-0":"col-lg-9 col-12 pl-0"),e.R7$(),e.Y8G("ngIf",o.remarkAddressProof),e.R7$(3),e.SpI(" ",e.bMT(6,16,"account.kycdocument.Address Proof")," "),e.R7$(2),e.Y8G("ngIf",!o.submitKycDocInfo&&o.editAddressProof),e.R7$(),e.Y8G("ngClass",o.showAccountKyc?"col-12 pl-0":"col-lg-9 col-12 pl-0"),e.R7$(3),e.Y8G("ngClass",o.verificationForm.controls.addressDocument.value?"":"disable"),e.R7$(2),e.Y8G("ngClass",o.addressFrontSideProofImg?"disable center":"w-100")("src",o.addressFrontSideProofImg?o.addressFrontSideProofImg:o.defaultImgUrl,e.B4B),e.R7$(),e.Y8G("ngIf",!(o.addressFrontSideProofImg||o.disableText)),e.R7$(),e.Y8G("ngIf",o.uploadAddressFrontFileExceed),e.R7$(),e.Y8G("ngIf",o.isAddressFrontFileSizeZero),e.R7$(),e.Y8G("ngIf",!o.invalidAddressFrontImageName&&o.invalidFrontAddressFileFormat),e.R7$(),e.Y8G("ngIf",o.invalidAddressFrontImageName),e.R7$(),e.Y8G("ngIf",o.addressFrontSideProofImg),e.R7$(3),e.Y8G("ngIf",o.addressFrontImg),e.R7$(),e.Y8G("ngIf",o.isAddressBackSideRequired)}}function St(s,v){if(1&s&&(e.j41(0,"div",82),e.nrm(1,"hr",37),e.k0s()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngClass",o.showAccountKyc?"col-11":"col-9")}}function Ft(s,v){if(1&s&&(e.j41(0,"div")(1,"div",58),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",59),e.EFF(5),e.k0s()()),2&s){const o=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"account.kycdocument.Age document rejected")),e.R7$(3),e.JRh(o.remarkAgeProof)}}function kt(s,v){if(1&s&&(e.j41(0,"option",63),e.EFF(1),e.k0s()),2&s){const o=v.$implicit;e.Y8G("value",o.name),e.R7$(),e.JRh(o.name)}}function Bt(s,v){if(1&s&&(e.j41(0,"select",90)(1,"option",91),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,kt,2,2,"option",62),e.k0s()),2&s){const o=e.XpG(3);e.R7$(2),e.SpI("",e.bMT(3,3,"account.kycdocument.Select Age Proof Document*")," "),e.R7$(2),e.Y8G("ngForOf",o.ageProofList[0].documentName)("ngForTrackBy",o.trackByFn)}}function At(s,v){1&s&&(e.j41(0,"span",67),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.(required)")," "))}function Dt(s,v){if(1&s){const o=e.RV6();e.j41(0,"span",64),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.uploadDocumentImage("AgeFront",!0))}),e.j41(1,"span",65),e.EFF(2),e.k0s(),e.DNE(3,At,3,3,"span",66),e.k0s()}if(2&s){const o=e.XpG(3);e.Y8G("ngClass",o.ageFrontSideProofImg?"disable":""),e.R7$(2),e.JRh(o.uploadFrontImgText),e.R7$(),e.Y8G("ngIf",!(o.ageFrontSideProofImg||o.disableText))}}function Mt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function Tt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document is empty")," "))}function xt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid Format")," "))}function Et(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function Nt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Upload Missing document")," "))}function Vt(s,v){1&s&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Upload Missing document")," "))}function wt(s,v){if(1&s){const o=e.RV6();e.j41(0,"span")(1,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.uploadDocumentImage("AgeFront",!1))}),e.nrm(2,"i",72),e.k0s(),e.j41(3,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.showConfirmationModal("Age",!0))}),e.nrm(4,"i",73),e.k0s()()}}function Rt(s,v){if(1&s&&(e.j41(0,"span",69)(1,"div",92),e.EFF(2),e.k0s(),e.DNE(3,wt,5,0,"span",35),e.k0s()),2&s){const o=e.XpG(3);e.R7$(2),e.SpI(" ",o.ageFrontSideProofName," "),e.R7$(),e.Y8G("ngIf",!o.submitKycDocInfo&&(o.verificationForm.controls.ageDocument.value!=o.verificationConstants.PanCard||!o.disableEdit)&&o.editAgeProof)}}function Ot(s,v){if(1&s){const o=e.RV6();e.j41(0,"input",93),e.nI1(1,"translate"),e.mxI("ngModelChange",function(i){e.eBV(o);const c=e.XpG(3);return e.DH7(c.verificationForm.controls.panNumber.value,i)||(c.verificationForm.controls.panNumber.value=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(o);const c=e.XpG(3);return e.Njj(c.verificationForm.controls.panNumber.value=null==i?null:i.toUpperCase())})("focus",function(){e.eBV(o);const i=e.XpG(3);return i.showPanError=!1,e.Njj(i.duplicatePanNumber=!1)})("blur",function(i){e.eBV(o);const c=e.XpG(3);return c.showPanError=!0,e.Njj(c.trimPanNumber(i))}),e.k0s()}if(2&s){const o=e.XpG(3);e.FS9("placeholder",e.bMT(1,3,"join.kycDocument.Enter pan number")),e.R50("ngModel",o.verificationForm.controls.panNumber.value),e.BMQ("maxlength",o.panList[0].documentName[0].name===o.documentName.CountryID?o.verificationConstants.CountryIdLength:o.verificationConstants.PanLength)}}
1function Ut(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Invalid Pan number")," "))}function jt(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Missing number")," "))}function m(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Duplicate PAN Number")," "))}function N(s,v){if(1&s&&(e.j41(0,"span",94),e.DNE(1,Ut,3,3,"span",95)(2,jt,3,3,"span",95)(3,m,3,3,"span",95),e.k0s()),2&s){const o=e.XpG(3);e.R7$(),e.Y8G("ngIf",o.showPanError&&(null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.invalidPan)&&(o.verificationForm.controls.panNumber.touched||!o.isFormValid)),e.R7$(),e.Y8G("ngIf",o.showPanError&&(!o.isFormValid||o.showAccountKyc||o.verificationForm.controls.panNumber.touched)&&(null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.required)),e.R7$(),e.Y8G("ngIf",o.showPanError&&o.duplicatePanNumber&&o.enableDuplicatePanNumberCheck)}}function n(s,v){1&s&&(e.j41(0,"span",74),e.nrm(1,"i",75),e.k0s())}function r(s,v){1&s&&(e.j41(0,"div",97),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.JRh(e.bMT(2,1,"join.kycDocument.This document can be only edited by Customer Support. Contact us")))}function l(s,v){if(1&s){const o=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.uploadDocumentImage("AgeBack",!0))}),e.EFF(1),e.k0s()}if(2&s){const o=e.XpG(4);e.Y8G("ngClass",o.ageBackSideProofImg?"disable":""),e.R7$(),e.SpI(" ",o.uploadBackImgText," ")}}function f(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function P(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document is empty")," "))}function A(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid Format")," "))}function k(s,v){1&s&&(e.j41(0,"span",81),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function T(s,v){if(1&s&&(e.j41(0,"div",70),e.EFF(1),e.nI1(2,"sanitize"),e.k0s()),2&s){const o=e.XpG(5);e.R7$(),e.SpI(" ",e.bMT(2,1,o.ageBackSideProofName)," ")}}function K(s,v){if(1&s){const o=e.RV6();e.j41(0,"span")(1,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.uploadDocumentImage("AgeBack",!1))}),e.nrm(2,"i",72),e.k0s(),e.j41(3,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.showConfirmationModal("Age",!1))}),e.nrm(4,"i",73),e.k0s()()}}function W(s,v){if(1&s&&(e.j41(0,"span",69),e.DNE(1,T,3,3,"div",100)(2,K,5,0,"span",35),e.k0s()),2&s){const o=e.XpG(4);e.R7$(),e.Y8G("ngIf",o.ageBackSideProofName),e.R7$(),e.Y8G("ngIf",o.editAgeProof)}}function ce(s,v){1&s&&(e.j41(0,"span",74),e.nrm(1,"i",75),e.k0s())}function se(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",37)(1,"div",49)(2,"div",50)(3,"div",37)(4,"div",51)(5,"img",98),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.uploadDocumentImage("AgeBack",!0))})("load",function(){e.eBV(o);const i=e.XpG(3);return e.Njj((null==i.userInfo?null:i.userInfo.kycStatus)!=i.kycStatusCheck.Rejected?i.listenverificationFormChanges():"")})("error",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.showArchivedImg("ageBack"))}),e.k0s()(),e.DNE(6,l,2,2,"span",77)(7,f,3,3,"span",78)(8,P,3,3,"span",78)(9,A,3,3,"span",78)(10,k,3,3,"span",78)(11,W,3,2,"span",55),e.k0s(),e.j41(12,"input",99,3),e.bIt("change",function(i){e.eBV(o);const c=e.XpG(3);return e.Njj(c.uploadAgeProof(i,!1))}),e.k0s(),e.DNE(14,ce,2,0,"span",57),e.k0s()()()}if(2&s){const o=e.XpG(3);e.Y8G("ngClass",o.showAccountKyc?"col-12 pl-0":"col-lg-9 col-12 pl-0"),e.R7$(3),e.Y8G("ngClass",o.verificationForm.controls.ageDocument.value?"":"disable"),e.R7$(2),e.Y8G("ngClass",o.ageBackSideProofImg?"disable center"
1:"w-100")("src",o.ageBackSideProofImg?o.ageBackSideProofImg:o.defaultImgUrl,e.B4B),e.R7$(),e.Y8G("ngIf",!(o.ageBackSideProofImg||o.disableText)),e.R7$(),e.Y8G("ngIf",o.uploadAgeBackFileExceed),e.R7$(),e.Y8G("ngIf",o.isAgeBackFileSizeZero),e.R7$(),e.Y8G("ngIf",!o.invalidAgeBackImageName&&o.invalidBackAgeFileFormat),e.R7$(),e.Y8G("ngIf",o.invalidAgeBackImageName),e.R7$(),e.Y8G("ngIf",o.ageBackSideProofImg),e.R7$(3),e.Y8G("ngIf",o.ageBackImg)}}function Gt(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",27)(1,"div",37),e.DNE(2,Ft,6,4,"div",35),e.j41(3,"div",46)(4,"label",83),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.DNE(7,Bt,5,5,"select",84),e.k0s()(),e.j41(8,"div",37)(9,"div",49)(10,"div",50)(11,"div",37)(12,"div",51)(13,"img",85),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.uploadDocumentImage("AgeFront",!0))})("load",function(){e.eBV(o);const i=e.XpG(2);return e.Njj((null==i.userInfo?null:i.userInfo.kycStatus)!=i.kycStatusCheck.Rejected?i.listenverificationFormChanges():"")})("error",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.showArchivedImg("ageFront"))}),e.k0s()(),e.DNE(14,Dt,4,3,"span",53)(15,Mt,3,3,"span",54)(16,Tt,3,3,"span",54)(17,xt,3,3,"span",54)(18,Et,3,3,"span",54)(19,Nt,3,3,"span",54)(20,Vt,3,3,"span",54)(21,Rt,4,2,"span",55)(22,Ot,2,5,"input",86)(23,N,4,3,"span",87),e.k0s(),e.j41(24,"input",88,2),e.bIt("change",function(i){e.eBV(o);const c=e.XpG(2);return e.Njj(c.uploadAgeProof(i,!0))}),e.k0s(),e.DNE(26,n,2,0,"span",57),e.k0s()()(),e.DNE(27,r,3,3,"div",89)(28,se,15,11,"div",25),e.k0s()}if(2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngClass",o.showAccountKyc?"col-12 pl-0":"col-lg-9 col-12 pl-0"),e.R7$(),e.Y8G("ngIf",o.remarkAgeProof),e.R7$(3),e.SpI(" ",e.bMT(6,21,"account.kycdocument.Age Proof")," "),e.R7$(2),e.Y8G("ngIf",!o.submitKycDocInfo&&o.editAgeProof),e.R7$(),e.Y8G("ngClass",o.showAccountKyc?"col-12 pl-0":"col-lg-9 col-12 pl-0"),e.R7$(3),e.Y8G("ngClass",o.verificationForm.controls.ageDocument.value?"":"disable"),e.R7$(2),e.Y8G("ngClass",o.ageFrontSideProofImg?"disable center":"w-100")("src",o.ageFrontSideProofImg?o.ageFrontSideProofImg:o.defaultImgUrl,e.B4B),e.R7$(),e.Y8G("ngIf",!(o.ageFrontSideProofImg||o.disableText)),e.R7$(),e.Y8G("ngIf",o.uploadAgeFrontFileExceed),e.R7$(),e.Y8G("ngIf",o.isAgeFrontFileSizeZero),e.R7$(),e.Y8G("ngIf",!o.invalidAgeFrontImageName&&o.invalidFrontAgeFileFormat),e.R7$(),e.Y8G("ngIf",o.invalidAgeFrontImageName),e.R7$(),e.Y8G("ngIf",!o.isFormValid&&(null==o.verificationForm.controls.panNumber?null:o.verificationForm.controls.panNumber.value)&&!o.panImage&&!o.showAccountKyc&&o.displayPanSection),e.R7$(),e.Y8G("ngIf",o.showAccountKyc&&o.verificationForm.controls.ageDocument.hasError("imageRequired")),e.R7$(),e.Y8G("ngIf",o.ageFrontSideProofImg),e.R7$(),e.Y8G("ngIf",o.displayPanSection),e.R7$(),e.Y8G("ngIf",o.displayPanSection),e.R7$(3),e.Y8G("ngIf",o.ageFrontImg),e.R7$(),e.Y8G("ngIf",o.displayPanSection&&o.showAccountKyc&&o.submitKycDocInfo),e.R7$(),e.Y8G("ngIf",o.isAgeBackSideRequired)}}function Lt(s,v){1&s&&(e.j41(0,"div",82),e.nrm(1,"hr",101),e.k0s())}function $t(s,v){if(1&s&&(e.j41(0,"option",63),e.EFF(1),e.k0s()),2&s){const o=v.$implicit;e.Y8G("value",o.isocodeThree),e.R7$(),e.JRh(o.name)}}function Kt(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",103)(1,"label",112),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",113),e.bIt("change",function(i){e.eBV(o);const c=e.XpG(3);return e.Njj(c.onOriginCountryChange(i))}),e.j41(5,"option",91),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,$t,2,2,"option",114),e.k0s()()}if(2&s){const o=e.XpG(3);e.R7$(2),e.SpI(" ",e.bMT(3,3,"account.kycdocument.Origin Country")," "),e.R7$(4),e.SpI("",e.bMT(7,5,"account.kycdocument.Select Origin Country")," "),e.R7$(2),e.Y8G("ngForOf",o.participatingCountries)}}function zt(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Invalid Pan number")," "))}function Yt(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Missing number")," "))}
1function Jt(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Maximum Length")," "))}function Xt(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Country Id should be digits")," "))}function Wt(s,v){1&s&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Duplicate PAN Number")," "))}function Zt(s,v){if(1&s){const o=e.RV6();e.j41(0,"span",115),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.uploadDocumentImage("panImageRef"))}),e.EFF(1),e.k0s()}if(2&s){const o=e.XpG(3);e.Y8G("ngClass",o.panImage?"disable":""),e.R7$(),e.SpI(" ",o.uploadFrontImgText," ")}}function Ht(s,v){1&s&&(e.j41(0,"span",116),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Upload Missing document")," "))}function Qt(s,v){1&s&&(e.j41(0,"span",116),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function qt(s,v){1&s&&(e.j41(0,"span",116),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"join.kycDocument.Document is empty")," "))}function le(s,v){1&s&&(e.j41(0,"span",116),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid Format")," "))}function _e(s,v){1&s&&(e.j41(0,"span",116),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function oo(s,v){if(1&s){const o=e.RV6();e.j41(0,"span",69)(1,"div",70),e.EFF(2),e.k0s(),e.j41(3,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.uploadDocumentImage("panImageRef"))}),e.nrm(4,"i",72),e.k0s(),e.j41(5,"button",71),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.showConfirmationModal("Pan",!0))}),e.nrm(6,"i",73),e.k0s()()}if(2&s){const o=e.XpG(3);e.R7$(2),e.SpI(" ",o.panName," ")}}function no(s,v){1&s&&(e.j41(0,"span",74),e.nrm(1,"i",75),e.k0s())}function ao(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",27),e.DNE(1,Kt,9,7,"div",102),e.j41(2,"div",103)(3,"div",30),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",104)(9,"input",105),e.nI1(10,"translate"),e.mxI("ngModelChange",function(i){e.eBV(o);const c=e.XpG(2);return e.DH7(c.verificationForm.controls.panNumber.value,i)||(c.verificationForm.controls.panNumber.value=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(o);const c=e.XpG(2);return e.Njj(c.verificationForm.controls.panNumber.value=null==i?null:i.toUpperCase())})("focus",function(){e.eBV(o);const i=e.XpG(2);return i.showPanError=!1,e.Njj(i.duplicatePanNumber=!1)})("blur",function(i){e.eBV(o);const c=e.XpG(2);return c.showPanError=!0,e.Njj(c.trimPanNumber(i))}),e.k0s(),e.j41(11,"div",106),e.DNE(12,zt,3,3,"span",95)(13,Yt,3,3,"span",95)(14,Jt,3,3,"span",95)(15,Xt,3,3,"span",95)(16,Wt,3,3,"span",95),e.k0s()(),e.j41(17,"div",103)(18,"div",50)(19,"div",107)(20,"div",51)(21,"img",108),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.uploadDocumentImage("panImageRef"))})("load",function(){e.eBV(o);const i=e.XpG(2);return e.Njj((null==i.userInfo?null:i.userInfo.kycStatus)!=i.kycStatusCheck.Rejected?i.listenverificationFormChanges():"")})("error",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.showArchivedImg("panFront"))}),e.k0s()(),e.DNE(22,Zt,2,2,"span",109)(23,Ht,3,3,"span",110)(24,Qt,3,3,"span",110)(25,qt,3,3,"span",110)(26,le,3,3,"span",110)(27,_e,3,3,"span",110)(28,oo,7,1,"span",55),e.k0s(),e.j41(29,"input",111,4),e.bIt("change",function(i){e.eBV(o);const c=e.XpG(2);return e.Njj(c.uploadPanProof(i))}),e.k0s(),e.DNE(31,no,2,0,"span",57),e.k0s()()()}if(2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.participatingCountries),e.R7$(3),e.JRh(e.bMT(5,24,"join.kycDocument.PAN Card")),e.R7$(2),e.SpI(" ",e.bMT(7,26,"join.kycDocument.Pan Label")," "),e.R7$(3),e.Mz_("placeholder","",e.bMT(10,28,"join.kycDocument.Enter pan number")," "),e.R50("ngModel",o.verificationForm.controls.panNumber.value),e.Y8G("mask",o.maskFormat?o.maskFormat:"")("ngClass",e.eq3(30,Je,o.showPanError&&(null==o.verificationForm||null==o.verificationForm.controls||null==o.verificationForm.controls.panNumber?null:o.verificationForm.controls.panNumber.errors)&&((null==o.verificationForm||null==o.verificationForm.controls?null:o.verificationForm.controls.panNumber.touched)||
1!o.isFormValid))),e.BMQ("maxlength",o.panList[0].documentName[0].name===o.documentName.CountryID?o.verificationConstants.CountryIdLength:o.verificationConstants.PanLength),e.R7$(3),e.Y8G("ngIf",o.showPanError&&(null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.invalidPan)&&(o.verificationForm.controls.panNumber.touched||!o.isFormValid)),e.R7$(),e.Y8G("ngIf",o.showPanError&&(null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.required)&&(o.verificationForm.controls.panNumber.touched||!o.isFormValid)),e.R7$(),e.Y8G("ngIf",o.showPanError&&(null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.maxlength)),e.R7$(),e.Y8G("ngIf",o.showPanError&&((null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.pattern)||(null==o.verificationForm.controls.panNumber||null==o.verificationForm.controls.panNumber.errors?null:o.verificationForm.controls.panNumber.errors.minlength))),e.R7$(),e.Y8G("ngIf",o.showPanError&&o.duplicatePanNumber&&o.enableDuplicatePanNumberCheck),e.R7$(5),e.Y8G("ngClass",o.panImage?"disable center":"w-100")("src",o.panImage?o.panImage:o.defaultImgUrl,e.B4B),e.R7$(),e.Y8G("ngIf",!o.panImage),e.R7$(),e.Y8G("ngIf",!o.isFormValid&&!o.isOptionalKYC&&(null==o.verificationForm.controls.panNumber?null:o.verificationForm.controls.panNumber.value)&&!o.panImage),e.R7$(),e.Y8G("ngIf",o.uploadPanSizeExceed),e.R7$(),e.Y8G("ngIf",o.isPanFileSizeZero),e.R7$(),e.Y8G("ngIf",!o.invalidPanFileName&&o.invalidPanFileFormat),e.R7$(),e.Y8G("ngIf",o.invalidPanFileName),e.R7$(),e.Y8G("ngIf",o.panImage),e.R7$(3),e.Y8G("ngIf",o.panImg)}}function so(s,v){1&s&&(e.j41(0,"div",119)(1,"button",120),e.nI1(2,"translate"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&s&&(e.R7$(),e.BMQ("aria-label",e.bMT(2,2,"corporate.cookieBanner.Continue")),e.R7$(2),e.JRh(e.bMT(4,4,"corporate.cookieBanner.Continue")))}function ro(s,v){if(1&s&&(e.j41(0,"div",121)(1,"button",122),e.nI1(2,"translate"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&s){const o=e.XpG(3);e.R7$(),e.Y8G("disabled",!o.enableSubmitButton),e.BMQ("aria-label",e.bMT(2,3,"account.kycdocument.Save and Submit")),e.R7$(2),e.JRh(e.bMT(4,5,"account.kycdocument.Save and Submit"))}}function co(s,v){if(1&s&&(e.j41(0,"div",27),e.DNE(1,so,5,6,"div",117)(2,ro,5,7,"div",118),e.k0s()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",!o.showAccountKyc),e.R7$(),e.Y8G("ngIf",o.showAccountKyc&&o.submitKycDoc)}}function lo(s,v){if(1&s){const o=e.RV6();e.j41(0,"form",22),e.bIt("ngSubmit",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.onSubmit())}),e.DNE(1,Xe,14,12,"div",23)(2,et,10,8,"div",24)(3,tt,9,3,"div",25)(4,Pt,24,18,"div",23)(5,St,2,1,"div",26)(6,Gt,29,23,"div",23)(7,Lt,2,0,"div",26)(8,ao,32,32,"div",23)(9,co,3,2,"div",23),e.k0s()}if(2&s){const o=e.XpG();e.Y8G("formGroup",o.verificationForm),e.R7$(),e.Y8G("ngIf",!o.showAccountKyc),e.R7$(),e.Y8G("ngIf",o.showAccountKyc),e.R7$(),e.Y8G("ngIf",!o.submitKycDocInfo&&o.showSubmitButtons),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.addressProofList?null:o.addressProofList.length)&&!o.disableFields),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&!o.disableFields),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.ageProofList?null:o.ageProofList.length)&&!o.disableFields),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&!o.showAccountKyc),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons&&(null==o.panList?null:o.panList.length)&&!o.showAccountKyc),e.R7$(),e.Y8G("ngIf",o.showSubmitButtons)}}function fo(s,v){1&s&&(e.j41(0,"div",123)(1,"section")(2,"div",124),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",125)(6,"h6"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&s&&(e.R7$(3),e.SpI(" ",e.bMT(4,2,"account.kycdocument.KYC Upload- Title - KYC Title Label")," "),e.R7$(4),e.SpI(" ",e.bMT(8,4,"account.kycdocument.*KYC Documents page is only available for users registered in India.")," "))}function uo(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",126,5)(2,"div",127)(3,"div",128)(4,"div",129)(5,"p",130),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",131)(9,"button",132),e.nI1(10,"translate"),e.bIt("keyup.enter",function(){e.eBV(o);const i=e.sdS(1);return e.XpG().deleteProof(),e.Njj(i.hide())})("click",function(){e.eBV(o);const i=e.sdS(1);return e.XpG().deleteProof(),e.Njj(i.hide())}),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"button",133),e.nI1(14,"translate"),e.bIt("keyup.enter",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.closeDeleteModal())})("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.closeDeleteModal())}),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()}2&s&&(e.Y8G("config",e.lJ4(16,me)),e.R7$(6),e.SpI(" ",e.bMT(7,6,"join.kycDocument.Are you sure you want to remove this document"),"?"),e.R7$(3),e.BMQ("aria-label",e.bMT(10,8,"corporate.common.Yes")),e.R7$(2),e.JRh(e.bMT(12,10,"corporate.common.Yes")),e.R7$(2),e.BMQ("aria-label",e.bMT(14,12,"corporate.common.No")),e.R7$(2),e.JRh(e.bMT(16,14,"corporate.common.No")))}function mo(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",126,6)(2,"div",127)(3,"div",128)(4,"div",134),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",134),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"div",135)(11,"button",136),e.nI1(12,"translate"),e.bIt("click",function(){e.eBV(o);const i=e.sdS(1);return e.Njj(i.hide())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()()}2&s&&(e.Y8G("config",e.lJ4(13,me)),e.R7$(5),e.JRh(e.bMT(6,5,"join.kycDocument.Some information related to PAN Card is still missing")),e.R7$(3),e.SpI(" ",e.bMT(9,7,"join.kycDocument.If you prefer to complete KYC later ,remove all the details from the page and Continue")," "),e.R7$(3),e.BMQ("aria-label",e.bMT(12,9,"corporate.header.Ok")),e.R7$(2),e.JRh(e.bMT(14,11,"corporate.header.Ok")))}function po(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",126,7)(2,"div",127)(3,"div",128)(4,"div",134),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",137),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"div",131)(11,"button",138),e.nI1(12,"translate"),e.bIt("click",function(){e.eBV(o);const i=e.sdS(1);return e.XpG().copyProof(),e.Njj(i.hide())}),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",139),e.nI1(16,"translate"),e.bIt("click",function(){e.eBV(o);const i=e.sdS(1),c=e.XpG();return i.hide(),e.Njj(c.uploadNewProof())}),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()()()}2&s&&(e.Y8G("config",e.lJ4(19,me)),e.R7$(5),e.SpI(" ",e.bMT(6,7,"join.kycDocument.The document you selected was already uploaded for a different KYC verification"),"."),e.R7$(3),e.SpI(" ",e.bMT(9,9,"join.kycDocument.Do you want to load existing copy"),"? "),e.R7$(3),e.BMQ("aria-label",e.bMT(12,11,"Yes. Load existing copy")),e.R7$(2),e.SpI(" ",e.bMT(14,13,"join.kycDocument.Yes. Load existing copy")," "),e.R7$(2),e.BMQ("aria-label",e.bMT(16,15,"No. Upload a new version")),e.R7$(2),e.SpI(" ",e.bMT(18,17,"join.kycDocument.No. Upload a new version")," "))}function ho(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",126,8)(2,"div",127)(3,"div",128)(4,"div",134),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",131)(8,"button",140),e.nI1(9,"translate"),e.bIt("click",function(){e.eBV(o);const i=e.sdS(1);return e.XpG().copyProof(),e.Njj(i.hide())}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",141),e.nI1(13,"translate"),e.bIt("click",function(){e.eBV(o);const i=e.sdS(1),c=e.XpG();return i.hide(),e.Njj(c.uploadNewProof())}),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()()()}2&s&&(e.Y8G("config",e.lJ4(16,me)),e.R7$(5),e.SpI(" ",e.bMT(6,6,"join.kycDocument.By Selecting Yes the uploaded document will be inserted in both the proof"),"."),e.R7$(3),e.BMQ("aria-label",e.bMT(9,8,"corporate.common.Yes")),e.R7$(2),e.SpI(" ",e.bMT(11,10,"corporate.common.Yes")," "),e.R7$(2),e.BMQ("aria-label",e.bMT(13,12,"corporate.common.No")),e.R7$(2),e.SpI(" ",e.bMT(15,14,"reports.common.Cancel")," "))}function go(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",126,9)(2,"div",127)(3,"div",128)(4,"div",129)(5,"p",130),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",131)(9,"button",142),e.bIt("keyup.enter",function(){e.eBV(o);const i=e.sdS(1),c=e.XpG();return i.hide(),e.Njj(c.showSaveAsDraftBtn=!0)})("click",function(){e.eBV(o);const i=e.sdS(1),c=e.XpG();return i.hide(),e.Njj(c.showSaveAsDraftBtn=!0)}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",143),e.bIt("keyup.enter",function(){e.eBV(o);const i=e.sdS(1);return e.Njj(i.hide())})("click",function(){e.eBV(o);const i=e.sdS(1),c=e.XpG();return c.submitKycSuccessful(),i.hide(),e.Njj(c.showSubmitPopup=!1)}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()()}2&s&&(e.Y8G("config",e.lJ4(10,me)),e.R7$(6),e.SpI(" ",e.bMT(7,4,"account.kycdocument.Are you sure you want to submit your KYC"),"?"),e.R7$(4),e.JRh(e.bMT(11,6,"reports.common.Cancel")),e.R7$(3),e.JRh(e.bMT(14,8,"account.countrySplash.SUBMIT")))}function _o(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",126,10)(2,"div",127)(3,"div",128)(4,"div",129)(5,"p",130),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",131)(9,"button",143),e.bIt("keyup.enter",function(){e.eBV(o);const i=e.sdS(1);return e.Njj(i.hide())})("click",function(){e.eBV(o);const i=e.sdS(1);return e.XpG().reloadCurrentRoute(),e.Njj(i.hide())}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()()}2&s&&(e.Y8G("config",e.lJ4(7,me)),e.R7$(6),e.SpI(" ",e.bMT(7,3,"account.kycdocument.Your KYC documents have been submitted"),""),e.R7$(4),e.JRh(e.bMT(11,5,"corporate.header.Ok")))}function bo(s,v){1&s&&e.nrm(0,"button",144,11)}function Io(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",164),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.switchCamera())}),e.qSk(),e.j41(1,"svg",165),e.nrm(2,"path",166),e.k0s()()}}function vo(s,v){if(1&s&&(e.j41(0,"span"),e.DNE(1,Io,3,0,"div",163),e.k0s()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",""==o.previewUrl)}}function Co(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",145)(1,"div",27)(2,"div",146)(3,"div",147)(4,"div",148)(5,"div",149)(6,"span",150)(7,"button",151),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.cancel())}),e.nrm(8,"i",152),e.k0s()(),e.nrm(9,"video",153)(10,"img",154)(11,"canvas",155),e.j41(12,"div",156)(13,"span")(14,"button",157),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.capture())}),e.nrm(15,"i",158),e.k0s()(),e.DNE(16,vo,2,1,"span",35),e.k0s(),e.j41(17,"div",156)(18,"span")(19,"button",159),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.reTake())}),e.nrm(20,"i",160),e.k0s()(),e.j41(21,"span")(22,"button",161),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.submit())}),e.nrm(23,"i",162),e.k0s()()()()()()()()()}if(2&s){const o=e.XpG();e.R7$(9),e.Y8G("hidden",""!=o.previewUrl),e.R7$(),e.xc7("height",o.capturedImageHeight),e.Y8G("src",o.previewUrl,e.B4B)("hidden",""==o.previewUrl),e.R7$(),e.Y8G("hidden",!0),e.R7$(3),e.Y8G("hidden",""!=o.previewUrl),e.R7$(2),e.Y8G("ngIf",!o.isDesktop),e.R7$(3),e.Y8G("hidden",""==o.previewUrl),e.R7$(3),e.Y8G("hidden",""==o.previewUrl)}}function yo(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",167,12)(2,"div",127)(3,"div",128)(4,"div",129)(5,"p",130),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",131)(9,"button",132),e.nI1(10,"translate"),e.bIt("keyup.enter",function(){e.eBV(o);const i=e.sdS(1);return e.Njj(i.hide())})("click",function(){e.eBV(o);const i=e.sdS(1);return e.Njj(i.hide())}),e.EFF(11),e.nI1(12,"translate"),e.k0s()()()()()}if(2&s){const o=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,3,"join.kycDocument."+o.cameraErrorMessage),""),e.R7$(3),e.BMQ("aria-label",e.bMT(10,5,"corporate.common.Yes")),e.R7$(2),e.JRh(e.bMT(12,7,"corporate.header.Ok"))}}function Po(s,v){1&s&&(e.j41(0,"button",168,13),e.nI1(2,"translate"),e.EFF(3),e.nI1(4,"translate"),e.k0s()),2&s&&(e.BMQ("aria-label",e.bMT(2,2,"join.kycDocument.Upload")),e.R7$(3),e.JRh(e.bMT(4,4,"join.kycDocument.Upload")))}function So(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",176)(1,"div",177),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.gisLoad())}),e.nrm(2,"img",178),e.j41(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()}if(2&s){const o=e.XpG(2);e.R7$(2),e.Y8G("src",o.uploadOptionsImageUrl+"/drive.png",e.B4B),e.R7$(2),e.JRh(e.bMT(5,2,"join.kycDocument.Google Drive"))}}function Fo(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",176)(1,"div",177),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.openDropboxChoose())}),e.nrm(2,"img",178),e.j41(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()}if(2&s){const o=e.XpG(2);e.R7$(2),e.Y8G("src",o.uploadOptionsImageUrl+"/dropbox.png",e.B4B),e.R7$(2),e.JRh(e.bMT(5,2,"join.kycDocument.Dropbox"))}}function ko(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",176)(1,"div",177),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.launchOneDrivePicker())}),e.nrm(2,"img",178),e.j41(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()}if(2&s){const o=e.XpG(2);e.R7$(2),e.Y8G("src",o.uploadOptionsImageUrl+"/one-drive.png",e.B4B),e.R7$(2),e.JRh(e.bMT(5,2,"join.kycDocument.Microsoft OneDrive"))}}function Bo(s,v){if(1&s){const o=e.RV6();e.j41(0,"div",169)(1,"div",170)(2,"div",171)(3,"div",149)(4,"div",172)(5,"h4",173),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"button",174),e.EFF(9,"\xd7"),e.k0s()(),e.j41(10,"div",129)(11,"div",169)(12,"div",175)(13,"div",176)(14,"div",177),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.uploadFromLocal())}),e.nrm(15,"img",178),e.j41(16,"p"),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.DNE(19,So,6,4,"div",179)(20,Fo,6,4,"div",179)(21,ko,6,4,"div",179),e.j41(22,"div",176)(23,"div",177),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.isCameraOn?"":i.clickCamrea())}),e.nrm(24,"img",178),e.j41(25,"p"),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()()()()()()()()}if(2&s){const o=e.XpG();e.R7$(6),e.JRh(e.bMT(7,8,"join.kycDocument.File upload")),e.R7$(9),e.Y8G("src",o.uploadOptionsImageUrl+"/folder.png",e.B4B),e.R7$(2),e.JRh(e.bMT(18,10,"join.kycDocument.Local Storage")),e.R7$(2),e.Y8G("ngIf",o.enableGoogleDrive),e.R7$(),e.Y8G("ngIf",o.enableDropB
1ox),e.R7$(),e.Y8G("ngIf",o.enableOneDrive),e.R7$(3),e.Y8G("src",o.uploadOptionsImageUrl+"/camera-icon.png",e.B4B),e.R7$(2),e.JRh(e.bMT(27,12,"join.kycDocument.Camera"))}}let Ao=(()=>{class s{constructor(o,a,i,c,g,S,F,R,D,E,Z,ne,ae,G,io,eo,L,de,ke,to){var Pe,ye=this;this.deviceService=o,this.documentKycService=a,this.fb=i,this.loaderService=c,this.appMessageService=g,this.notificationService=S,this.cacheService=F,this.router=R,this.appConfigService=D,this.joinCommonService=E,this.cdf=Z,this.myAccountConfigService=ne,this.myAccountService=ae,this.appStartupConfigService=G,this.imageCompress=io,this.checkoutConfigService=eo,this.commonService=L,this.checkoutService=de,this.translateService=ke,this.cloudAuthService=to,this.uploadOptionsImageUrl=u.c.cdnURL+"/portals/titan-ecommerce/template1/assets/images",this.isCountryID=!1,this.defaultImgUrl="",this.pickerApiLoad=!1,this.uploadFrontImgText=b.b.uploadFrontSideImgText,this.uploadBackImgText=b.b.uploadBackSideIMgText,this.isAddressBackSideRequired=!0,this.isAgeBackSideRequired=!0,this.uploadAgeBackFileExceed=!1,this.uploadAgeFrontFileExceed=!1,this.uploadAddressFrontFileExceed=!1,this.uploadAddressBackFileExceed=!1,this.uploadPanSizeExceed=!1,this.invalidBackAgeFileFormat=!1,this.invalidPanFileFormat=!1,this.isFormValid=!0,this.proofList=[],this.missingDocErr=!1,this.sizeExceedErr=!1,this.formatErr=!1,this.proofArray=[],this.showAccountKyc=window.location.href.includes("account"),this.constraints={video:{facingMode:{ideal:"environment"}}},this.mediaStream=null,this.previewUrl="",this.imageType="",this.isCameraOn=!1,this.addressFrontImg=!1,this.addressBackImg=!1,this.ageFrontImg=!1,this.ageBackImg=!1,this.panImg=!1,this.showPanError=!1,this.showJoinpanError=!1,this.verificationConstants=U.N,this.validFileNamePattern=b.b.validFileNamePattern,this.invalidAddressFrontImageName=!1,this.invalidAddressBackImageName=!1,this.showSubmitPopup=!0,this.enableSubmitButton=!1,this.isAddressFrontFileSizeZero=!1,this.isAddressBackFileSizeZero=!1,this.isAgeFrontFileSizeZero=!1,this.isAgeBackFileSizeZero=!1,this.isPanFileSizeZero=!1,this.odOptions={clientId:"",action:"query",multiSelect:!1,openInNewWindow:!1,advanced:{queryParameters:"select=id,name,size,file,folder,photo,@microsoft.graph.downloadUrl",filter:".png,.jpg,.jpeg,.pdf",scopes:"Files.Read",accountSwitchEnabled:!0,navigation:{sourceTypes:["OneDrive","Recent","Sites"]}},success:(Pe=(0,C.A)(function*(fe){ye.driveCallBack(fe,fe.value[0]["@microsoft.graph.downloadUrl"],fe.value[0].name)}),function(Do){return Pe.apply(this,arguments)}),cancel:function(){},error:Pe=>{console.log(Pe)}},this.options={success:function(){var Pe=(0,C.A)(function*(fe){ye.driveCallBack(fe,fe[0].link,fe[0].name)});return function(Do){return Pe.apply(this,arguments)}}(),cancel:function(){},appKey:"",linkType:"direct",multiselect:!1,extensions:[".jpeg",".jpg",".png",".pdf"],folderselect:!1},this.correctImageUrl="",this.incorrectImageUrl="",this.submitKycDoc=!0,this.kycVerificationStatus=!1,this.submitKycDocInfo=!1,this.fileSavedDraft=!1,this.saveDraft=!1,this.kycStatusCheck=d.UZ,this.deleteImage=!0,this.isAssignProof=!1,this.displayPanSection=!1,this.disableEdit=!1,this.isEditBothImg=!1,this.proofToCopy="",this.documentName=d.Hs,this.disableText=!1,this.disableFields=!1,this.remarkAgeProof="",this.remarkAddressProof="",this.editAgeProof=!0,this.editAddressProof=!0,this.showSubmitButtons=!0,this.assignAddress=!1,this.memberDocumentsList=!1,this.enableOneDrive=u.c.enableOneDrive,this.enableGoogleDrive=u.c.enableGoogleDrive,this.enableDropBox=u.c.enableDropBox,this.duplicatePanNumber=!1,this.showSaveAsDraftBtn=!0,this.maskFormat="",this.isOptionalKYC=!1,this.invalidAgeFrontImageName=!1,this.invalidAgeBackImageName=!1,this.invalidPanFileName=!1}ngOnInit(){this.userInfo=this.cacheService.get(_.w.MemberDocuments);let o=this.cacheService.get(_.w.LoginedUserInfo),a=u.c.kycEnableCountries;if(a.indexOf(",")>-1){let i=u.c.kycEnableCountries.split(",");this.showKycInAccount=i.indexOf(JSON.stringify(o?.address?.countryId))>-1}else this.showKycInAccount=o&&o?.address?.countryId===JSON.parse(a);if((this.showKycInAccount||!this.showAccountKyc)&&(this.buildForm(),this.getDocumentType(),this.getMemberDetails()),this.checkoutConfig?.isKYCMandatory){const i=this.cacheService.get(_.w.ParticipatingCountries);i?.length&&(this.participatingCountries=i),this.getFormValidationsJSON()}}loadDefaultSettings(){const o=this.cacheService.getCookieValue(_.w.countryCode);this.accountConfig=this.myAccountConfigService.getSettings(o,this.userInfo),this.kycVerificationStatus=this.accountConfig&&this.accountConfig.showKycVerificationStatus,this.enableDuplicatePanNumberCheck=this.accountConfig&&this.accountConfig?.enableDuplicatePanNumberCheck,this.listenFormValueChanges(),this.getDocumentType(),this.getBasicInfo(),this.setDefaultImage(),this.listenverificationFormChanges(),this.isAssignProof=this.cacheService.get(_.w.isAssignProof),this.checkoutConfig=this.checkoutConfigService.getSettings(o),this.joinFpcFlowType=this.cacheService.get(_.w.JoinFlowType),this.isOptionalKYC=this.checkoutConfig?.isKYCoptionalOnlyForFPC&&this.joinFpcFlowType===B.B.FP
1C,this.checkFormValid(),setTimeout(()=>{this.memberDocumentsList=!0,this.checkImageArchived()},250)}listenFormValueChanges(){this.listenaddressDocumentChanges(),this.listenageDocumentChanges(),this.listenpanDocumentChanges(),this.listenpanProofImageChanges()}getMemberDetails(){const o=this.cacheService.get(_.w.UserInfo);this.showAccountKyc?this.documentKycService.getMemberDocuments(o.memberId).subscribe({next:a=>{this.userInfo=a,this.cacheService.set(_.w.MemberDocuments,a),this.loadDefaultSettings()}}):this.loadDefaultSettings()}getBasicInfo(){if(this.showAccountKyc){const o=this.cacheService.get(_.w.UserInfo);this.commonService.getMemberBasicInfoById(o.memberId).subscribe({next:a=>{this.sourceId=a.sourceId,this.disbleFieldForMigratedUser()}})}}disbleFieldForMigratedUser(){const o=this.cacheService.get(_.w.MemberDocuments);if(o?.kycStatus===d.UZ.VerificationInProgress||o?.kycStatus===d.UZ.Verified){this.disableText=!0;const a=o.memberDocuments.filter(i=>{if((i.frontSideURL||i.backSideURL)&&(i.proofTypeID===d.VC.AddressProof||i.proofTypeID===d.VC.AgeProof))return i});this.disableFields=this.sourceId===d.HY.DataMigration&&!a.length}}setDefaultImage(){const o=this.cacheService.getCookieValue(_.w.countryCode);this.correctImageUrl=`${u.c.cdnURL}/flpi/images/${o.toLowerCase()}-default-correct-img.png`,this.incorrectImageUrl=`${u.c.cdnURL}/flpi/images/${o.toLowerCase()}-default-incorrect-img.png`,this.defaultImgUrl=`${u.c.cdnURL}/portals/titan-ecommerce/template1/assets/images/${o.toLowerCase()}_default_image.png`}setProofImage(o,a,i){var c=this;return(0,C.A)(function*(){if(i?.split(".")?.pop()?.toLowerCase()===b.b.pdf)return c.checkImageAccessibility(i,o),u.c.uiTemplateBaseUrl+"/images/pdf.ico";if(i){const g=new URL(i).pathname.slice(1),F=yield(yield(0,J._)(c.documentKycService.generateProfileImageSignedCDNURL(decodeURIComponent(g)))).data[decodeURIComponent(g)];return c.cacheService.get(_.w.MemberDocuments)?.kycStatus===d.UZ.partiallyVerified&&c.docsChanged(d.UZ.partiallyVerified),F}})()}checkImageAccessibility(o,a){var i=this;return(0,C.A)(function*(){const c=new URL(o).pathname.slice(1),S=yield(yield(0,J._)(i.documentKycService.generateProfileImageSignedCDNURL(decodeURIComponent(c)))).data[decodeURIComponent(c)];fetch(S,{method:"GET"}).then(F=>{F.ok?console.log("Image is accessible."):i.showArchivedImg(a)}).catch(F=>{console.error("Error checking image accessibility:",F)})})()}patchAddressInfo(){const o=this.cacheService.get(_.w.MemberDocuments);if(o?.memberDocuments?.length>0){const a=this.getDocName(this.addressProofList[0]?.documentName,this.verificationForm.controls.addressDocument.value),i=o.memberDocuments.filter(g=>{if(g.proofTypeID===d.VC.AddressProof)return g}),c=i[i.length-1];this.addressFrontSideProofName=decodeURIComponent(c?.frontSideURL)?.split("/").pop()?.split("?")[0].split(/_(.*)/s)[1],this.addressBackSideProofName=decodeURIComponent(c?.backSideURL)?.split("/").pop()?.split("?")[0].split(/_(.*)/s)[1],this.setProofImage("addressFront",this.addressFrontSideProofName,c?.frontSideURL).then(g=>this.addressFrontSideProofImg=g),this.setProofImage("addressBack",this.addressBackSideProofName,c?.backSideURL).then(g=>this.addressBackSideProofImg=g),this.verificationForm.controls.addressDocument.value=a||(c?.documentName?c.documentName:""),this.isAddressBackSideRequired=this.getPageConfig(this.addressProofList[0]?.documentName,this.verificationForm.controls.addressDocument.value)===d.VC.Both}}patchAgeInfo(){const o=this.cacheService.get(_.w.MemberDocuments);if(o?.memberDocuments?.length>0){const a=o.memberDocuments.filter(g=>{if(g.proofTypeID===d.VC.AgeProof)return g}),i=a[a.length-1],c=this.getDocName(this.ageProofList[0]?.documentName,this.verificationForm.controls.ageDocument.value);this.ageFrontSideProofName=decodeURIComponent(i?.frontSideURL)?.split("/").pop()?.split("?")[0].split(/_(.*)/s)[1],this.ageBackSideProofName=decodeURIComponent(i?.backSideURL)?.split("/").pop()?.split("?")[0].split(/_(.*)/s)[1],this.setProofImage("ageFront",this.ageFrontSideProofName,i?.frontSideURL).then(g=>this.ageFrontSideProofImg=g),this.setProofImage("ageBack",this.ageBackSideProofName,i?.backSideURL).then(g=>this.ageBackSideProofImg=g),this.verificationForm.controls.ageDocument.value=c||(i?.documentName?i.documentName:""),this.isAgeBackSideRequired=this.getPageConfig(this.ageProofList[0]?.documentName,this.verificationForm.controls.ageDocument.value)===d.VC.Both,this.checkPanAndAge()&&this.setIdentificationId()}}patchCheckoutInfo(){const o=this.cacheService.get(_.w.CheckoutInformation),a=this.cacheService.get(_.w.MemberDocuments);if(o?.kycInformation?.length&&!this.showAccountKyc&&(this.setAddress(o),this.setAge(o),this.setPan(o),this.isAgeBackSideRequired=this.getPageConfig(this.ageProofList?.[0].documentName,this.verificationForm.controls.ageDocument.value)===d.VC.Both,this.isAddressBackSideRequired=this.getPageConfig(this.addressProofList?.[0].documentName,this.verificationForm.controls.addressDocument.value)===d.VC.Both),a?.memberDocuments?.length>0&&this.showAccountKyc&&(this.patchAddressInfo(),this.patchAgeInfo(),a?.kycStatus===d.UZ.VerificationInProgress&&(this.submitKycDocInfo=!0)),this.checkPanAndAge()&&(this.displayPanSection=!0,this.showAccountKyc?this.patchPanDetails():this.assignProof(!1,!1,!0)),this.showAccountKyc){this.listenverificationFormChanges();const i=a?.memberDocuments.filter(g=>g.proofTypeID===d.VC.AgeProof),c=a?.memberDocuments.filter(g=>g.proofTypeID===d.VC.AddressProof);i?.[0]?.status===d.UZ.rejectedId?(this.remarkAgeProof=i[0].rejectionRemark,this.disableEdit=!1,this.verificationForm.controls.panNumber.enable(),this.editAgeProof=!0):a?.kycStatus.toUpperCase()!==d.UZ.KycNotSubmit&&a?.kycStatus.toUpperCase()!==d.UZ.PartialSubmit&&a?.kycStatus.toUpperCase()!==d.UZ.Pending&&i?.[0]?.status===d.UZ.submitted||i?.[0]?.status===d.UZ.ApprovedId?(this.editAgeProof=!1,this.remarkAgeProof=""):this.remarkAgeProof="",c?.[0]?.status===d.UZ.rejectedId?(this.remarkAddressProof=c[0].rejectionRemark,this.editAddressProof=!0):a?.kycStatus.toUpperCase()!==d.UZ.KycNotSubmit&&a?.kycStatus.toUpperCase()!==d.UZ.PartialSubmit&&a?.kycStatus.toUpperCase()!==d.UZ.Pending&&c?.[0]?.status===d.UZ.submitted||c?.[0]?.status===d.UZ.ApprovedId?(this.editAddressProof=!1,this.remarkAddressProof=""):this.remarkAddressProof=""}}patchPanDetails(){const o=this.cacheService.get(_.w.MemberDocuments),a=o?.memberDocuments?.filter(F=>
1{if(F.proofTypeID===d.VC.PanProof)return F}),i=a[a.length-1];this.initialPanNumber=i?.value;const c=o?.memberDocuments?.filter(F=>{if(F.proofTypeID===d.VC.AgeProof&&F.documentName===U.N.PanCard)return F}),g=c[c.length-1],S=o?.memberDocuments?.filter(F=>{if(F.proofTypeID===d.VC.AgeProof)return F});i&&!g&&i?.status!==d.UZ.rejectedId?(this.verificationForm.controls.panNumber.patchValue(i?.value),(i?.status!==d.UZ.rejectedId||S?.[0]?.status===d.UZ.submitted&&o.kycStatus.toUpperCase()===d.UZ.Submitted)&&(this.verificationForm.controls.panNumber.disable(),this.disableEdit=!0),this.initialPanNumber=this.verificationForm.controls.panNumber.value):g&&(this.verificationForm.controls.panNumber.patchValue(g?.value),this.verificationForm.controls.panNumber.enable(),this.disableEdit=!1,(S?.[0]?.status===d.UZ.ApprovedId||o.kycStatus===d.UZ.VerificationInProgress||S?.[0]?.status===d.UZ.submitted&&o.kycStatus===d.UZ.Submitted)&&(this.disableEdit=!0,this.verificationForm.controls.panNumber.disable()),this.initialPanNumber=this.verificationForm.controls.panNumber.value)}setAddress(o){const a=this.getIndes(d.VC.AddressProof,o);this.addressFrontSideProofImg=o.kycInformation[a]?.frontimagebase64,this.addressBackSideProofImg=o.kycInformation[a]?.backimagebase64,this.addressFrontSideProofName=o.kycInformation[a]?.frontimagetitle,this.addressBackSideProofName=o.kycInformation[a]?.backimagetitle,this.addressFrontSideProofImgBase64=o.kycInformation[a]?.addressFrontSideProofImgBase64,this.addressBackSideProofImgBase64=o.kycInformation[a]?.addressBackSideProofImgBase64,this.verificationForm.controls.addressDocument.value=o?.kycInformation[a]?.selectedOption?o?.kycInformation[a]?.selectedOption:"",this.addressFrontSideProof=this.addressFrontSideProofImg?.includes(b.b.pdf)?"":this.dataURLtoFile(this.addressFrontSideProofImgBase64?this.addressFrontSideProofImgBase64:this.addressFrontSideProofImg,this.addressFrontSideProofName),this.addressBackSideProof=this.addressBackSideProofImg?.includes(b.b.pdf)?"":this.dataURLtoFile(this.addressBackSideProofImgBase64?this.addressBackSideProofImgBase64:this.addressBackSideProofImg,this.addressBackSideProofName)}setAge(o){const a=this.getIndes(d.VC.AgeProof,o);this.ageFrontSideProofImg=o.kycInformation[a]?.frontimagebase64,this.ageBackSideProofImg=o.kycInformation[a]?.backimagebase64,this.ageFrontSideProofName=o.kycInformation[a]?.frontimagetitle,this.ageFrontSideProofImgBase64=o.kycInformation[a]?.ageFrontSideProofImgBase64,this.ageBackSideProofImgBase64=o.kycInformation[a]?.ageBackSideProofImgBase64,this.ageBackSideProofName=o.kycInformation[a]?.backimagetitle,this.verificationForm.controls.ageDocument.value=o?.kycInformation[a]?.selectedOption?o?.kycInformation[a]?.selectedOption:"",this.ageFrontSideProof=this.ageFrontSideProofImg?.includes(b.b.pdf)?"":this.dataURLtoFile(this.ageFrontSideProofImgBase64?this.ageFrontSideProofImgBase64:this.ageFrontSideProofImg,this.ageFrontSideProofName),this.ageBackSideProof=this.ageBackSideProofImg?.includes(b.b.pdf)?"":this.dataURLtoFile(this.ageBackSideProofImgBase64?this.ageBackSideProofImgBase64:this.ageBackSideProofImg,this.ageBackSideProofName)}setPan(o){const a=this.getIndes(d.VC.PanProof,o);this.panName=o.kycInformation[a]?.frontimagetitle,this.panImage=o.kycInformation[a]?.frontimagebase64,this.panImagebase64=o.kycInformation[a]?.panImagebase64,this.verificationForm.controls.panNumber.value=o?.kycInformation[a]?.docTypeValue,this.verificationForm.controls.originCountries.value=o?.kycInformation[a]?.originCountries,this.verificationForm.controls.panProofImage.value=o?.kycInformation[a]?.frontsideurl,this.panFile=this.panImage?.includes(b.b.pdf)?"":this.dataURLtoFile(this.panImagebase64?this.panImagebase64:this.panImage,this.panName),this.panFile||this.panImage?this.addPanValidation(o?.kycInformation[a]?.originCountries):this.removePanNumberValidations()}getIndes(o,a){const i=a?.kycInformation?.findIndex(c=>c?.proofTypeID===o);return-1!==i?i:null}buildForm(){this.verificationForm=this.fb.group({addressDocument:[""],ageDocument:[""],panNumber:[""],panProofImage:[""],originCountries:[""]}),this.addressDocumentSubscription=this.verificationForm.controls.addressDocument.valueChanges,this.ageDocumentSubscription=this.verificationForm.controls.ageDocument.valueChanges,this.panDocumentFormSubscription=this.verificationForm.controls.panNumber.valueChanges,this.panProofImageSubscription=this.verificationForm.controls.panProofImage.valueChanges}addValidation(){const o=this.getPanNumberValidations();this.verificationForm.controls.panNumber.addValidators(o),this.verificationForm.controls.panNumber.updateValueAndValidity({onlySelf:!1,emitEvent:!1})}getPanNumberValidations(){const o=this.panList[0].documentName[0].name,a=[],i=this.cacheService.get(_.w.JoinFlowType);return o!==d.Hs.CountryID||!this.checkoutConfig.isKYCMandatory&&i!=B.B.FP
1C?o===d.Hs.PAN_CARD?a.push(w.i):o===d.Hs.CountryID&&a.push(t.k0.maxLength(15),t.k0.pattern("^[0-9]*$")):a.push(t.k0.required,t.k0.maxLength(15),t.k0.pattern("^[0-9]*$")),a}listenverificationFormChanges(){const o=this.cacheService.get(_.w.MemberDocuments);this.showAccountKyc&&(this.addressFrontSideProofImg&&this.ageFrontSideProofImg?(this.enableSubmitButton=!0,this.userInfo?.kycStatus===d.UZ.Rejected&&(this.enableSubmitButton=!0),this.submitKycDoc=this.userInfo.kycStatus!==d.UZ.VerificationInProgress&&this.userInfo.kycStatus!==d.UZ.Verified):this.enableSubmitButton=!1,this.showAccountKyc&&this.userInfo?(o?.kycStatus===d.UZ.Submitted?this.userInfo.kycStatus=d.UZ.VerificationInProgress:o?.kycStatus===d.UZ.Rejected||o?.kycStatus===d.UZ.partiallyVerified?this.userInfo.kycStatus=d.UZ.Rejected:(null==o?.kycStatus||o?.kycStatus==d.UZ.Pending||o?.kycStatus===d.UZ.PartialSubmit)&&(this.userInfo.kycStatus=d.UZ.KycNotSubmit),this.submitKycDocInfo=!(this.userInfo?.kycStatus===d.UZ.KycNotSubmit||this.userInfo?.kycStatus===d.UZ.Rejected),(this.userInfo.kycStatus===d.UZ.VerificationInProgress||this.userInfo.kycStatus===d.UZ.Verified)&&this.docsChanged(),o?.kycStatus===d.UZ.partiallyVerified&&this.docsChanged(d.UZ.partiallyVerified),this.disbleFieldForMigratedUser()):this.submitKycDocInfo=!1)}listenageDocumentChanges(){const o=this.cacheService.get(_.w.MemberDocuments);this.ageDocumentSubscription.subscribe({next:a=>{this.ageFrontSideProofImg="",this.ageBackSideProofImg="",this.ageFrontSideProofName="",this.ageBackSideProofName="",this.saveDraft=!0,this.isAgeBackSideRequired=this.getPageConfig(this.ageProofList[0].documentName,this.verificationForm.controls.ageDocument.value)===d.VC.Both,this.isFormValid=!0,this.uploadAgeFrontFileExceed=!1,this.uploadAgeBackFileExceed=!1,this.invalidFrontAgeFileFormat=!1,this.invalidFrontAgeFileFormat=!1,this.isAgeBackFileSizeZero=!1,this.isAgeFrontFileSizeZero=!1,this.ageFrontSideProof="",this.ageBackSideProof="",this.isEditBothImg=!1;const c=o?.memberDocuments?.filter(g=>{if(g.proofTypeID===d.VC.AgeProof)return g})?.[0]?.documentName;if(this.showAccountKyc){if(c===a){const g=this.cacheService.get(_.w.UserInfo);this.documentKycService.getMemberDocuments(g.memberId).subscribe({next:S=>{const F=this.cacheService.get(_.w.MemberDocuments),R=S.memberDocuments.filter(E=>E.proofTypeID===d.VC.AgeProof),D=F.memberDocuments.findIndex(E=>E.proofTypeID===d.VC.AgeProof);F.memberDocuments[D]=R?.[0],this.cacheService.set(_.w.MemberDocuments,F),this.patchAgeInfo()}})}else a&&this.verificationForm.controls.addressDocument.value===a&&!this.addressFrontSideProofImg&&!this.addressBackSideProofImg&&(this.selectedProofID=d.VC.AgeProof,this.withoutImgLimitDocModal.show());this.checkPanAndAge()&&(this.patchPanDetails(),this.isFormValid=this.checkFormValid(),this.cacheService.get(_.w.IdentificationDetail)?.length||this.setIdentificationId())}a||this.removeAgeProof(),this.isAssignProof=!1,this.verificationForm.controls.addressDocument.value===a&&(this.addressFrontSideProofImg||this.addressBackSideProofImg)?(this.selectedProofID=d.VC.AgeProof,c===a||this.limitDocModal.show()):a&&this.verificationForm.controls.addressDocument.value===a&&!this.showAccountKyc?(this.selectedProofID=d.VC.AgeProof,this.withoutImgLimitDocModal.show()):this.setCheckoutInfo(null,!0),this.checkPanAndAge()?(this.displayPanSection=!0,this.showAccountKyc?this.assignPanToAge():this.assignProof(!1,!1,!1,!0)):this.displayPanSection=!1,this.listenverificationFormChanges(),this.invalidAgeFrontImageName=!1,this.invalidAgeBackImageName=!1}})}assignPanToAge(){const o=this.cacheService.get(_.w.MemberDocuments),a=o.memberDocuments.filter(g=>g.proofTypeID===d.VC.PanProof),i=o.memberDocuments.filter(g=>{if(g.proofTypeID===d.VC.AgeProof&&g.documentName===U.N.PanCard)return g});o.memberDocuments.filter(g=>{if(g.proofTypeID===d.VC.AgeProof)return g}),a.length&&!i.length&&a?.[0]?.status!==d.UZ.rejectedId?(this.setProofImage("ageFront",this.ageFrontSideProofName,a?.[0]?.frontSideURL).then(g=>{this.ageFrontSideProofImg=g,this.listenverificationFormChanges(),this.saveDraft=!!this.checkFormValid()}),this.ageFrontSideProofName=a?.[0]?.frontSideURL?.split(/_(.*)/s)[1],this.verificationForm.controls.panNumber.patchValue(a[0].value),a?.[0]?.status!=d.UZ.rejectedId&&(this.disableEdit=!0,this.verificationForm.controls.panNumber.disable())):i.length?(this.setProofImage("ageFront",this.ageFrontSideProofName,i?.[0]?.frontSideURL).then(g=>{this.ageFrontSideProofImg=g,this.listenverificationFormChanges(),this.saveDraft=!!this.checkFormValid()}),this.ageFrontSideProofName=i[0]?.frontSideURL?.split(/_(.*)/s)[1],this.verificationForm.controls.panNumber.patchValue(i[0]?.value),this.verificationForm.controls.panNumber.enable(),this.disableEdit=!1,(i?.[0]?.status===d.UZ.ApprovedId||i?.[0]?.status===d.UZ.submitted&&o.kycStatus===d.UZ.Submitted)&&(this.disableEdit=!0,this.verificationForm.controls.panNumber.disable())):(this.verificationForm.controls.panNumber.enable(),this.disableEdit=!1)}checkPanAndAge(){return this.verificationForm.controls.ageDocument.value===this.panList?.[0]?.documentName[0].name}listenaddressDocumentChanges(){const o=this.cacheService.get(_.w.MemberDocuments);this.addressDocumentSubscription.subscribe({next:a=>{this.addressFrontSideProofImg="",this.addressBackSideProofImg="",this.addressFrontSideProofName="",this.addressBackSideProofName="",this.saveDraft=!0,this.isAddressBackSideRequired=this.getPageConfig(this.addressProofList[0].documentName,this.verificationForm.controls.addressDocument.value)==d.VC.Both,this.isFormValid=!0,this.uploadAddressFrontFileExceed=!1,this.uploadAddressBackFileExceed=!1,this.isAddressFrontFileSizeZero=!1,this.isAddressBackFileSizeZero=!1,this.invalidFrontAddressFileFormat=!1,this.invalidBackAddressFileFormat=!1,this.addressFrontSideProof="",this.addressBackSideProof="",this.isEditBothImg=!1;const c=o?.memberDocuments?.filter(g=>
1{if(g.proofTypeID===d.VC.AddressProof)return g})?.[0]?.documentName;if(this.showAccountKyc)if(c===a){const g=this.cacheService.get(_.w.UserInfo);this.documentKycService.getMemberDocuments(g.memberId).subscribe({next:S=>{const F=this.cacheService.get(_.w.MemberDocuments),R=S.memberDocuments.filter(E=>E.proofTypeID===d.VC.AddressProof),D=F.memberDocuments.findIndex(E=>E.proofTypeID===d.VC.AddressProof);F.memberDocuments[D]=R?.[0],this.cacheService.set(_.w.MemberDocuments,F),this.patchAddressInfo()}})}else a&&this.verificationForm.controls.ageDocument.value===a&&!(this.ageFrontSideProofImg||this.ageBackSideProofImg||this.ageBackSideProofImg)&&(this.selectedProofID=d.VC.AddressProof,this.withoutImgLimitDocModal.show());this.listenverificationFormChanges(),a||this.removeAddressProof(),this.isAssignProof=!1,this.verificationForm.controls.ageDocument.value===a&&(this.ageFrontSideProofImg||this.ageBackSideProofImg||this.ageBackSideProofImg)?(this.selectedProofID=d.VC.AddressProof,c===a||this.limitDocModal.show()):a&&this.verificationForm.controls.ageDocument.value===a&&!this.showAccountKyc?(this.selectedProofID=d.VC.AddressProof,this.withoutImgLimitDocModal.show()):this.setCheckoutInfo(),this.invalidAddressFrontImageName=!1,this.invalidAddressBackImageName=!1}})}removeAddressProof(){const o=this.cacheService.get(_.w.CheckoutInformation);if(o?.kycInformation){const a=this.getIndes(d.VC.AddressProof,o);o.kycInformation[a]=null}this.cacheService.set(_.w.CheckoutInformation,o),this.addressFrontSideProofName="",this.addressFrontSideProofImgBase64="",this.addressBackSideProofName="",this.addressBackSideProofImgBase64=""}removeAgeProof(){const o=this.cacheService.get(_.w.CheckoutInformation);if(o?.kycInformation){const a=this.getIndes(d.VC.AddressProof,o);o.kycInformation[a]=null}this.cacheService.set(_.w.CheckoutInformation,o),this.ageFrontSideProofName="",this.ageFrontSideProofImgBase64="",this.ageBackSideProofName="",this.ageBackSideProofImgBase64=""}listenpanDocumentChanges(){this.panDocumentFormSubscription.subscribe({next:o=>{o?(this.verificationForm.controls.panProofImage.addValidators([t.k0.required]),this.verificationForm.controls.panProofImage.updateValueAndValidity({onlySelf:!1,emitEvent:!1}),this.saveDraft=!0,this.cacheService.get(_.w.MemberDocuments)?.memberDocuments?.filter(c=>{if(c.documentName===U.N.PanCard)return c})?.forEach(c=>{c.value&&c.value!=o&&this.listenverificationFormChanges()})):(this.verificationForm.controls.panProofImage.removeValidators([t.k0.required]),this.verificationForm.controls.panProofImage.updateValueAndValidity({onlySelf:!1,emitEvent:!1})),this.checkPanAndAge()&&this.verificationForm.controls.ageDocument.setErrors(null)}})}listenpanProofImageChanges(){this.panProofImageSubscription.subscribe({next:o=>{o?this.addPanValidation():this.removePanNumberValidations(),this.isFormValid=!0,this.invalidPanFileName=!1}})}addPanValidation(o){this.verificationForm.controls.panNumber.addValidators([t.k0.required]),this.verificationForm.controls.panNumber.updateValueAndValidity(),this.checkoutConfig.isKYCMandatory&&o&&this.updateValidations(o)}getDocumentType(){this.documentKycService.getDocumentType().subscribe({next:o=>{let a=o?.documentTypes;this.proofList=a,this.addressProofList=a?.filter(i=>i?.proofTypeID===d.VC.AddressProof),this.ageProofList=a?.filter(i=>i?.proofTypeID===d.VC.AgeProof),this.panList=a?.filter(i=>i?.proofTypeID===d.VC.PanProof),this.addValidation(),this.patchCheckoutInfo()}})}readFileAsync(o,a){return new Promise((i,c)=>{let g=new FileReader;const S=u.c.uiTemplateBaseUrl+"/images/pdf.ico";g.readAsDataURL(o),g.onload=()=>{i(a==b.b.pdfType?{img:S,base64:g.result}:g.result)},g.onerror=c})}uploadAddressProof(o,a){var i=this;return(0,C.A)(function*(){const c=o.target.files[0],{size:g,name:S,type:F}=c,R=g/Math.pow(1024,2),[D,E]=i.isAllowedFileExtension(o,U.N.allowedExtensions),Z=i.cacheService.get(_.w.MemberDocuments),ne=Z?.memberDocuments?.filter(G=>{if(G.proofTypeID===d.VC.AddressProof)return G}),ae=ne?ne[ne?.length-1]:"";if(R>0&&R<=2&&E&&D){if(a){i.invalidAddressFrontImageName=!1,i.uploadAddressFrontFileExceed=i.invalidFrontAddressFileFormat=i.isAddressFrontFileSizeZero=!1;const G=yield i.readFileAsync(c,F);i.addressFrontSideProofImg=G.img?G.img:G,i.addressFrontSideProofImgBase64=G.base64?G.base64:G,
1i.addressFrontSideProofName=S,i.addressFrontSideProof=c}else{i.invalidAddressBackImageName=!1,i.uploadAddressBackFileExceed=i.invalidBackAddressFileFormat=i.isAddressBackFileSizeZero=!1;const G=yield i.readFileAsync(c,F);i.addressBackSideProofImg=G.img?G.img:G,i.addressBackSideProofImgBase64=G.base64?G.base64:G,i.addressBackSideProofName=S,i.addressBackSideProof=c}i.saveDraft=!0,i.isAssignProof&&i.isEditBothImg&&(!i.ageFrontSideProofImg&&a?i.uploadAgeFrontFileExceed=i.invalidFrontAgeFileFormat=i.isAgeFrontFileSizeZero=!1:!(i.ageBackSideProofImg||i.ageBackSideProofImg)&&!a&&(i.uploadAgeBackFileExceed=i.invalidBackAgeFileFormat=i.isAgeBackFileSizeZero=!1)),i.setKycFormValid(!1)}else if(E&&D)a?(i.isAssignProof&&i.isEditBothImg&&(i.ageFrontSideProofImg||(i.invalidFrontAgeFileFormat=!1)),i.invalidAddressFrontImageName=!1,0===R?(i.isAddressFrontFileSizeZero=!0,i.uploadAddressFrontFileExceed=!1):(i.uploadAddressFrontFileExceed=!0,i.isAddressFrontFileSizeZero=!1),i.invalidFrontAddressFileFormat=!1,i.addressFrontSideProofImg="",i.deleteAddressProofUrl(Z,ae)):(i.invalidAddressBackImageName=!1,i.isAssignProof&&i.isEditBothImg&&(i.ageBackSideProofImg||i.ageBackSideProofImg||(i.invalidBackAgeFileFormat=!1)),0===R?(i.isAddressBackFileSizeZero=!0,i.uploadAddressBackFileExceed=!1):(i.uploadAddressBackFileExceed=!0,i.isAddressBackFileSizeZero=!1),i.invalidBackAddressFileFormat=!1,i.addressBackSideProofImg="",i.deleteAddressProofUrl(Z,ae)),i.saveDraft=!0;else{const G=!D;a?(i.isAssignProof&&i.isEditBothImg&&(i.ageFrontSideProofImg||(i.invalidFrontAgeFileFormat=!0,i.uploadAgeFrontFileExceed=!1,i.isAgeFrontFileSizeZero=!1)),i.invalidAddressFrontImageName=G,i.invalidFrontAddressFileFormat=!0,i.uploadAddressFrontFileExceed=!1,i.isAddressFrontFileSizeZero=!1,i.addressFrontSideProofImg="",i.deleteAddressProofUrl(Z,ae)):(i.isAssignProof&&i.isEditBothImg&&(i.ageBackSideProofImg||i.ageBackSideProofImg||(i.invalidBackAgeFileFormat=!0,i.uploadAgeBackFileExceed=!1,i.isAgeBackFileSizeZero=!1)),i.invalidAddressBackImageName=G,i.invalidBackAddressFileFormat=!0,i.uploadAddressBackFileExceed=!1,i.isAddressBackFileSizeZero=!1,i.addressBackSideProofImg="",i.deleteAddressProofUrl(Z,ae)),i.saveDraft=!0}i.isAssignProof&&i.isEditBothImg&&(!i.ageFrontSideProofImg&&a?i.assignProof(!0,!0):!(i.ageBackSideProofImg||i.ageBackSideProofImg)&&!a&&i.assignProof(!0,!1)),c.type===b.b.pdfType&&!i.showAccountKyc&&i.uploadDocument(),i.cacheService.set(_.w.MemberDocuments,Z),i.setCheckoutInfo(),i.listenverificationFormChanges(),i.cacheService.remove(_.w.AssignAddress)})()}deleteAddressProofUrl(o,a){o?.memberDocuments?.length>0&&(a?.frontSideURL&&(a.frontSideURL=null),a?.backSideURL&&(a.backSideURL=null))}deleteAgeProofUrl(o,a){o?.memberDocuments?.length>0&&(a?.frontSideURL&&(a.frontSideURL=null),a?.backSideURL&&(a.backSideURL=null))}uploadAgeProof(o,a){var i=this;return(0,C.A)(function*(){const c=o.target.files[0],{size:g,name:S,type:F}=c,R=g/Math.pow(1024,2),[D,E]=i.isAllowedFileExtension(o,U.N.allowedExtensions),Z=i.cacheService.get(_.w.MemberDocuments),ne=Z?.memberDocuments?.filter(G=>{if(G.proofTypeID===d.VC.AgeProof)return G}),ae=ne?ne[ne?.length-1]:"";if(R>0&&R<=2&&E&&D){if(a){i.invalidAgeFrontImageName=!1,i.uploadAgeFrontFileExceed=i.invalidFrontAgeFileFormat=i.isAgeFrontFileSizeZero=!1,i.checkPanAndAge()&&(i.uploadPanSizeExceed=i.invalidPanFileFormat=i.isPanFileSizeZero=!1,i.invalidPanFileName=!1,i.verificationForm.controls.ageDocument.setErrors(null),i.addPanValidation());const G=yield i.readFileAsync(c,F);i.ageFrontSideProofImg=G.img?G.img:G,i.ageFrontSideProofImgBase64=G.base64?G.base64:G,i.ageFrontSideProofName=S,i.ageFrontSideProof=c}else{i.invalidAgeBackImageName=!1,i.uploadAgeBackFileExceed=i.invalidBackAgeFileFormat=i.isAgeBackFileSizeZero=!1;const G=yield i.readFileAsync(c,F);i.ageBackSideProofImg=G.img?G.img:G,i.ageBackSideProofImgBase64=G.base64?G.base64:G,i.ageBackSideProofName=S,i.ageBackSideProof=c}i.saveDraft=!0,i.checkPanAndAge()&&(i.saveDraft=!i.verificationForm.controls.panNumber.errors),i.isAssignProof&&i.isEditBothImg&&(!i.addressFrontSideProofImg&&a?i.uploadAddressFrontFileExceed=i.invalidFrontAddressFileFormat=i.isAddressFrontFileSizeZero=!1:!i.addressBackSideProofImg&&!a&&(i.uploadAddressBackFileExceed=i.invalidBackAddressFileFormat=i.isAddressBackFileSizeZero=!1)),i.setKycFormValid(!1)}else E&&D?(a?(i.invalidAgeFrontImageName=!1,i.isAssignProof&&i.isEditBothImg&&(i.addressFrontSideProofImg||(i.invalidFrontAddressFileFormat=!1)),i.checkPanAndAge()&&(i.invalidPanFileFormat=!1,i.invalidPanFileName=!1,0===R?(i.uploadPanSizeExceed=!1,i.isPanFileSizeZero=!0):(i.isPanFileSizeZero=!1,i.uploadPanSizeExceed=!0),i.isFormValid=!0,i.showAccountKyc&&i.removePanNumberValidations()),0===R?(i.isAgeFrontFileSizeZero=!0,i.uploadAgeFrontFileExceed=!1):(i.uploadAgeFrontFileExceed=!0,i.isAgeFrontFileSizeZero=!1),i.invalidFrontAgeFileFormat=!1,i.ageFrontSideProofImg="",i.deleteAgeProofUrl(Z,ae)):(i.invalidAgeBackImageName=!1,i.isAssignProof&&i.isEditBothImg&&(i.addressBackSideProofImg||(i.invalidBackAddressFileFormat=!1)),0===R?(i.isAgeBackFileSizeZero=!0,i.uploadAgeBackFileExceed=!1):(i.uploadAgeBackFileExceed=!0,i.isAgeBackFileSizeZero=!1),i.invalidBackAgeFileFormat=!1,i.ageBackSideProofImg="",i.deleteAgeProofUrl(Z,ae)),i.saveDraft=!0):(a?(i.invalidAgeFrontImageName=!D,i.isAssignProof&&i.isEditBothImg&&(i.addressFrontSideProofImg||(i.invalidFrontAddressFileFormat=!0,i.uploadAddressFrontFileExceed=!1,i.isAddressFrontFileSizeZero=!1)),i.checkPanAndAge()&&(i.invalidPanFileName=!D,i.invalidPanFileFormat=!0,i.uploadPanSizeExceed=!1,i.isPanFileSizeZero=!1,i.isFormValid=!0,i.showAccountKyc&&i.removePanNumberValidations()),i.invalidFrontAgeFileFormat=!0,i.uploadAgeFrontFileExceed=!1,i.isAgeFrontFileSizeZero=!1,i.ageFrontSideProofImg="",i.deleteAgeProofUrl(Z,ae)):(i.invalidAgeBackImageName=!D,i.isAssignProof&&i.isEditBothImg&&(i.addressBackSideProofImg||(i.invalidBackAddressFileFormat=!0,i.uploadAddressBackFileExceed=!1,i.isAddressBackFileSizeZero=!1)),i.invalidBackAgeFileFormat=!0,i.uploadAgeBackFileExceed=!1,i.isAgeBackFileSizeZero=!1,i.ageBackSideProofImg="",i.deleteAgeProofUrl(Z,ae)),i.saveDraft=!0);i.isAssignProof&&i.isEditBothImg&&(!i.addressFrontSideProofImg&&a?i.assignProof(!1,!0):!i.addressBackSideProofImg&&!a&&i.assignProof(!1,!1)),i.checkPanAndAge()&&i.assignProof(!1,!1,!0),c.type===b.b.pdfType&&!i.showAccountKyc&&i.uploadDocument(),i.showAccountKyc?i.cacheService.set(_.w.MemberDocuments,Z):i.setCheckoutInfo(),i.listenverificationFormChanges(),i.cacheService.remove(_.w.AssignAddress)})()}uploadPanProof(o){var a=this;return(0,C.A)(function*(){const i=o.target.files[0],{size:c,name:g,type:S}=i,F=c/Math.pow(1024,2),[R,D]=a.isAllowedFileExtension(o,U.N.allowedExtensions);if(F>0&&F<=2&&D&&R){a.invalidPanFileName=!1,a.uploadPanSizeExceed=a.invalidPanFileFormat=a.isPanFileSizeZero=!1,a.checkPanAndAge()&&(a.uploadAgeFrontFileExceed=a.invalidAgeFrontImageName=a.invalidFrontAgeFileFormat=a.isAgeFrontFileSizeZero=!1),a.panFile=o.target.files[0];const E=yield a.readFileAsync(i,S);a.panImage=E.img?E.img:E,a.panImagebase64=E.base64?E.base64:"",a.panName=g,D&&a.checkoutConfig?.storeImageUrl&&a.uploadDocument(),a.setKycFormValid(!1)}else D&&R?(a.invalidPanFileName=!1,a.checkPanAndAge()&&(a.invalidFrontAgeFileFormat=!1,0===F?(a.isAgeFrontFileSizeZero=!0,a.uploadAgeFrontFileExceed=!1):(a.isAgeFrontFileSizeZero=!1,a.uploadAgeFrontFileExceed=!0)),a.removePanNumberValidations(),0===F?(a.isPanFileSizeZero=!0,a.uploadPanSizeExceed=!1):(a.isPanFileSizeZero=!1,a.uploadPanSizeExceed=!0),a.invalidPanFileFormat=!1,a.panImage=""):(a.invalidPanFileName=!R,a.removePanNumberValidations(),a.checkPanAndAge()&&(a.invalidFrontAgeFileFormat=!0,a.invalidAgeFrontImageName=!R,a.uploadAgeFrontFileExceed=!1,a.isAgeFrontFileSizeZero=!1),a.invalidPanFileFormat=!0,a.uploadPanSizeExceed=!1,a.isPanFileSizeZero=!1,a.panImage="");a.checkPanAndAge()&&a.assignProof(!1,!1,!1,!0),i.type===b.b.pdfType&&!a.showAccountKyc&&a.uploadDocument(),a.setCheckoutInfo(),a.listenverificationFormChanges()})()}isAllowedFileExtension(o,a){const i=o.target.files[0].name,c=i.split(".").pop();return[this.validFileNamePattern.test(i),a.indexOf(c.toLowerCase())>-1]}showConfirmationModal(o,a){this.saveDraft=!0,this.proofToDelete=o,this.pageToDelete=a,this.deleteConfirmationModal.show()}closeDeleteModal(){this.proofToDelete="",this.pageToDelete=null,this.deleteConfirmationModal.hide()}deleteProof(){const o=this.cacheService.get(_.w.MemberDocuments);this.saveDraft=!0;let a=this.cacheService.get(_.w.CheckoutInformation)||{};if(this.checkPanAndAge()&&(this.proofToDelete===U.N.Age||this.proofToDelete===U.N.Pan))return this.deleteAgeProof(a,o),void this.deletePanProof(a,o);this.proofToDelete===U.N.Address?this.deleteAddressProof(a,o):this.proofToDelete===U.N.Age?this.deleteAgeProof(a,o):this.proofToDelete===U.N.Pan&&this.deletePanProof(a,o),this.listenverificationFormChanges()}deletePanProof(o,a){if(o?.kycInformation?.length&&!this.showAccountKyc){const i=o?.kycInformation?.findIndex(c=>c?.proofTypeID===d.VC.PanProof);this.panImage="",this.verificationForm.controls.panProofImage.value=null,o.kycInformation[i].frontimagebase64=null,o.kycInformation[i].panImagebase64=null,o.kycInformation[i].frontsideurl=null,o.kycInformation[i].frontimagetitle=null,this.panImagebase64="",this.panName="",this.panFile="",this.removePanNumberValidations()}this.setCache(o,a)}deleteAddressProof(o,a){const i=o?.kycInformation?.findIndex(c=>c?.proofTypeID===d.VC.AddressProof);if(this.pageToDelete){o?.kycInformation?.length&&o.kycInformation[0]&&!this.showAccountKyc&&(o.kycInformation[i].frontimagebase64=null,o.kycInformation[i].addressFrontSideProofImgBase64=null,o.kycInformation[i].frontsideurl=null,o.kycInformation[i].frontimagetitle=null,this.addressFrontSideProofName="",this.addressFrontSideProofImgBase64="",this.addressFrontSideProofImg="",this.addressFrontSideProof="");const c=a?.memberDocuments?.filter(S=>{if(S.proofTypeID===d.VC.AddressProof)return S}),g=c?c[c?.length-1]:"";a?.memberDocuments?.length>0&&g?.frontSideURL&&(g.frontSideURL=null),this.addressFrontSideProofImg&&(this.addressFrontSideProofName="",this.addressFrontSideProofImgBase64="",this.addressFrontSideProofImg="",this.addressFrontSideProof="")}else if(!1===this.pageToDelete){o?.kycInformation?.length&&o.kycInformation[0]&&!this.showAccountKyc&&(o.kycInformation[i].backimagebase64=null,o.kycInformation[i].addressBackSideProofImgBase64=null,o.kycInformation[i].backsideurl=null,o.kycInformation[i].backimagetitle=null,this.addressBackSideProofName="",this.addressBackSideProofImgBase64="",this.addressBackSideProofImg="",this.addressBackSideProof="");const c=a?.memberDocuments?.filter(S=>{if(S.proofTypeID===d.VC.AddressProof)return S}),g=c?c[c.length-1]:"";a?.memberDocuments?.length>0&&g?.backSideURL&&(g.backSideURL=null),this.addressBackSideProofImg&&(this.addressBackSideProofName="",this.addressBackSideProofImgBase64="",this.addressBackSideProofImg="",this.addressBackSideProof="")}this.setCache(o,a)}deleteAgeProof(o,a){const i=o?.kycInformation?.findIndex(c=>c?.proofTypeID===d.VC.AgeProof);if(this.pageToDelete){o?.kycInformation?.length&&o.kycInformation[i]&&!this.showAccountKyc&&(o.kycInformation[i].frontimagebase64=null,o.kycInformation[i].ageFrontSideProofImgBase64=null,o.kycInformation[i].frontsideurl=null,o.kycInformation[i].frontimagetitle=null,this.ageFrontSideProofName="",this.ageFrontSideProofImgBase64="",this.ageFrontSideProofImg="",this.ageFrontSideProof="");const c=a?.memberDocuments?.filter(S=>{if(S.proofTypeID===d.VC.AgeProof)return S}),g=c?c[c?.length-1]:"";a?.memberDocuments?.length>0&&g?.frontSideURL&&(g.frontSideURL=null),this.ageFrontSideProofName&&(this.ageFrontSideProofName="",this.ageFrontSideProofImgBase64="",this.ageFrontSideProofImg="",this.ageFrontSideProof="")}else if(!1===this.pageToDelete){o?.kycInformation?.length&&o.kycInformation[i]&&!this.showAccountKyc&&(o.kycInformation[i].backimagebase64=null,o.kycInformation[i].ageBackSideProofImgBase64=null,o.kycInformation[i].backsideurl=null,o.kycInformation[i].backimagetitle=null,this.ageBackSideProofName="",this.ageBackSideProofImgBase64="",this.ageBackSideProofImg="",this.ageBackSideProof="");const c=a?.memberDocuments?.filter(S=>{if(S.proofTypeID===d.VC.AgeProof)return S}),g=c?c[c?.length-1]:"";a?.memberDocuments?.length>0&&g?.backSideURL&&(g.backSideURL=null),this.ageBackSideProofImg&&(this.ageBackSideProofName="",this.ageBackSideProofImgBase64="",this.ageBackSideProofImg="",this.ageBackSideProof="")}this.showAccountKyc&&this.removePanNumberValidations(),this.setCache(o,a)}setCache(o,a){this.showAccountKyc?this.cacheService.set(_.w.MemberDocuments,a):(this.cacheService.set(_.w.CheckoutInformation,o),this.checkFormValid())}removePanNumberValidations(){this.verificationForm.controls.panNumber.removeValidators([t.k0.required]),this.verificationForm.controls.panNumber.updateValueAndValidity()}onSubmit(o){var a=this;return(0,C.A)(function*(){if(a.showSaveAsDraftBtn=!1,yield a.validatePanNumber(),a.showAccountKyc&&a.checkPanAndAge()&&(a.verificationForm.controls.panNumber.value||a.ageFrontSideProofImg)){if(a.ageFrontSideProofImg?a.addPanValidation():a.verificationForm.controls.panNumber.value&&a.verificationForm.controls.panNumber.valid&&a.verificationForm.controls.ageDocument.setErrors({imageRequired:!0}),!a.ageFrontSideProofImg||!a.verificationForm.controls.panNumber.valid&&a.verificationForm.controls.panNumber.status!==a.verificationConstants.DISABLED||a.duplicatePanNumber)return void(a.showSaveAsDraftBtn=!0)}else a.verificationForm.controls.ageDocument.setErrors(null);if(a.showAccountKyc)o?a.uploadDocument(!0):a.checkProntSideAvailable&&(a.fileSavedDraft&&o?a.openSubmitKycModal.hide():(a.fileSavedDraft=!1,a.openSubmitKycModal.show()));else{let i=a.checkFormValid();const c=a.cacheService.get(_.w.JoinFlowType);a.checkoutConfig.isKYCMandatory&&(!a.panImage||!a.verificationForm.controls.panNumber.value||a.verificationForm.controls.panNumber.errors||!a.verificationForm.controls.originCountries.value)&&(i=!1),a.checkoutConfig.isKYCMandatoryOnlyForFPC&&c==B.B.FP
1C&&(!a.panImage||!a.verificationForm.controls.panNumber.value||a.verificationForm.controls.panNumber.errors)&&(i=!1),!a.verificationForm.controls.panNumber.errors&&a.isOptionalKYC&&(i=!0),a.isFormValid=i,i?a.proceedWithoutValue()?a.navigateToNextPage():(a.joinCommonService.isKycFormValid=!0,a.setKycFormValid(!0),a.uploadDocument(!0)):(a.invalidDataModal.show(),a.uploadAddressFrontFileExceed=a.invalidFrontAddressFileFormat=a.isAddressFrontFileSizeZero=!1,a.uploadAddressBackFileExceed=a.invalidBackAddressFileFormat=a.isAddressBackFileSizeZero=!1,a.uploadAgeFrontFileExceed=a.invalidFrontAgeFileFormat=a.isAgeFrontFileSizeZero=!1,a.uploadAgeBackFileExceed=a.invalidBackAgeFileFormat=a.isAgeBackFileSizeZero=!1,a.uploadPanSizeExceed=a.invalidPanFileFormat=a.isPanFileSizeZero=!1,a.joinCommonService.isKycFormValid=!1,a.setKycFormValid(!1))}a.showJoinpanError=!0,a.showPanError=!0})()}get checkProntSideAvailable(){return!(!this.addressFrontSideProofImg||!this.ageFrontSideProofImg)}get checkAllDocAvailable(){return!(!this.addressFrontSideProofImg||!this.ageFrontSideProofImg||!this.addressBackSideProofImg&&this.isAddressBackSideRequired||!this.ageBackSideProofImg&&this.isAgeBackSideRequired)}proceedWithoutValue(){const o=!(this.addressBackSideProofImg||this.addressFrontSideProofImg||this.ageBackSideProofImg||this.ageFrontSideProofImg||this.panImage||this.verificationForm.controls.panNumber.value||this.verificationForm.controls.ageDocument.value||this.verificationForm.controls.addressDocument.value);return o&&(this.joinCommonService.isKycFormValid=!0,this.setKycFormValid(!0)),o}checkFormValid(){let o=!0;return this.panImage||this.verificationForm.controls.panNumber.value?o=!(!this.panImage||!this.verificationForm.controls.panNumber.value||this.verificationForm.controls.panNumber.errors):this.uploadPanSizeExceed=this.invalidPanFileFormat=this.isPanFileSizeZero=!1,this.showAccountKyc&&this.checkPanAndAge()&&(o=!(!this.ageFrontSideProofImg||!this.verificationForm.controls.panNumber.value||this.verificationForm.controls.panNumber.errors)),this.joinCommonService.isKycFormValid=!!o,!this.verificationForm.controls.panNumber.errors&&this.isOptionalKYC&&(o=!0),!!o}uploadDocument(o){var a=this;return(0,C.A)(function*(){a.showSaveAsDraftBtn=!1,a.loaderService.start();const i=[{name:"addressfront",randomNumber:"",value:a.addressFrontSideProof,res:""},{name:"addressBackSideProof",randomNumber:"",value:a.addressBackSideProof,res:""},{name:"ageFrontSideProof",randomNumber:"",value:a.ageFrontSideProof,res:""},{name:"ageBackSideProof",randomNumber:"",value:a.ageBackSideProof,res:""},{name:"panFile",randomNumber:"",value:a.panFile,res:""}],c=b.b.documentUploadRetryCount,g=b.b.documentUploadRetryDelay,S=i.map((F,R)=>{const D=Date.now().toString();if(i[R].randomNumber=D,F.value)return(0,J._)(a.documentKycService.uploadDocument(F.value,D).pipe((0,I.l)(E=>E.pipe((0,y.Z)((Z,ne)=>ne<c&&504===Z.status?(console.log(`Retrying after ${g} ms (Retry ${ne+1})`),(0,M.O)(g)):(0,ee.$)(()=>Z)))),(0,h.W)(E=>(console.error("API request failed:",E),(0,ee.$)(()=>E)))))});try{const F=yield Promise.all(S);a.showAccountKyc?a.uploadAccountKycDocuments(F):(yield a.setCheckoutInfo(F),o&&a.navigateToNextPage(),a.loaderService.stop())}catch{a.notificationService.createNotification("",a.translateService.instant("join.kycDocument.Documents are not sumbitted.Please contact CustomerCare"),x._.ERROR),a.loaderService.stop(),a.showSaveAsDraftBtn=!0}})()}clickCamrea(){this.loaderService.start(),this.isDesktop=this.deviceService.isDesktop(),this.isCameraOn=!0,this.video=document.getElementById("cam"),this.canvas=document.getElementById("canvas"),this.video.setAttribute("autoplay",""),this.video.setAttribute("muted",""),this.video.setAttribute("playsinline",""),navigator.mediaDevices.getUserMedia(this.constraints).then(o=>{this.mediaStream=o,this.video.srcObject=o,this.video.play();const a=$("#myModal").is(":visible");this.previewUrl="",a||this.cameraModalButton.nativeElement.click(),this.loaderService.stop()}).catch(o=>{this.loaderService.stop(),this.isCameraOn=!1,"NotFoundError"==o.name||"DevicesNotFoundError"==o.name?(this.cameraErrorMessage="Your device has no camera",this.cameraErrorDetailModal.show()):"NotReadableError"==o.name||"TrackStartError"==o.name?(this.cameraErrorMessage="Camera is already in use",this.cameraErrorDetailModal.show()):"NotAllowedError"==o.name||"PermissionDeniedError"==o.name?(this.cameraErrorMessage="allow camera access to take picture",this.cameraErrorDetailModal.show()):"OverconstrainedError"==o.name||"ConstraintNotSatisfiedError"==o.name?(this.cameraErrorMessage="Your device has no camera",this.cameraErrorDetailModal.show()):(this.cameraErrorMessage="something went wrong",this.cameraErrorDetailModal.show())})}capture(){const o=this.video.getBoundingClientRect();this.capturedImageHeight=o.height+"px",this.canvas.getContext("2d").drawImage(this.video,0,0,640,480),this.previewUrl=this.canvas.toDataURL("image/png")}reTake(){this.previewUrl=""}cancel(){this.stopVideoStream(),this.previewUrl="",this.isCameraOn=!1}switchCamera(){"user"==this.constraints.video.facingMode.ideal?(this.constraints.video.facingMode.ideal="environment",this.stopVideoStream(),this.clickCamrea()):(this.constraints.video.facingMode.ideal="user",this.stopVideoStream(),this.clickCamrea())}submit(o){let a;switch(o?a=this.documentKycService.imageType:(a=this.imageType,this.stopVideoStream(),this.blobFile=""),a){case"AddressFront":this.addressFrontSideProofImg=this.previewUrl,this.blobFile?(this.addressFrontSideProof=this.blobFile,this.addressFrontImg=!1,this.cdf.detectChanges(),this.blobFile.type===b.b.pdfType&&!this.showAccountKyc&&this.uploadDocument()):(this.uploadAddressFrontFileExceed=!1,this.invalidFrontAddressFileFormat=!1,this.invalidAddressFrontImageName=!1,this.isAddressFrontFileSizeZero=!1,this.addressFrontSideProofName=this.verificationForm.controls.addressDocument.value+" front side.png",this.addressFrontSideProof=this.dataURLtoFile(this.addressFrontSideProofImg,this.addressFrontSideProofName)),this.isAssignProof&&this.isEditBothImg&&(this.ageFrontSideProofImg||(this.assignProof(!0,!0),this.uploadAgeFrontFileExceed=this.invalidFrontAgeFileFormat=this.isAgeFrontFileSizeZero=!1)),this.setCheckoutInfo();break;case"AddressBack":this.addressBackSideProofImg=this.previewUrl,this.blobFile?(this.addressBackSideProof=this.blobFile,this.addressBackImg=!1,this.cdf.detectChanges(),this.blobFile.type===b.b.pdfType&&!this.showAccountKyc&&this.uploadDocument()):(this.uploadAddressBackFileExceed=!1,this.invalidBackAddressFileFormat=!1,this.invalidAddressBackImageName=!1,this.isAddressBackFileSizeZero=!1,this.addressBackSideProofName=this.verificationForm.controls.addressDocument.value+" back side.png",this.addressBackSideProof=this.dataURLtoFile(this.addressBackSideProofImg,this.addressBackSideProofName)),this.isAssignProof&&this.isEditBothImg&&(this.ageBackSideProofImg||this.ageBackSideProofImg||(this.assignProof(!0,!1),this.uploadAgeBackFileExceed=this.invalidBackAgeFileFormat=this.isAgeBackFileSizeZero=!1)),this.setCheckoutInfo();break;case"AgeFront":this.ageFrontSideProofImg=this.previewUrl,this.blobFile?(this.ageFrontSideProof=this.blobFile,this.ageFrontImg=!1,this.cdf.detectChanges(),this.blobFile.type===b.b.pdfType&&!this.showAccountKyc&&this.uploadDocument()):(this.uploadAgeFrontFileExceed=!1,this.invalidFrontAgeFileFormat=!1,this.invalidAgeFrontImageName=!1,this.isAgeFrontFileSizeZero=!1,this.ageFrontSideProofName=this.verificationForm.controls.ageDocument.value+" front side.png",this.ageFrontSideProof=this.dataURLtoFile(this.ageFrontSideProofImg,this.ageFrontSideProofName)),this.isAssignProof&&this.isEditBothImg&&(this.addressFrontSideProofImg||(this.assignProof(!1,!0),this.uploadAddressFrontFileExceed=this.invalidFrontAddressFileFormat=this.isAddressFrontFileSizeZero=!1)),this.checkPanAndAge()&&(this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,this.uploadPanSizeExceed=!1,this.isPanFileSizeZero=!1,this.assignProof(!1,!1,!0),this.verificationForm.controls.ageDocument.setErrors(null)),this.setCheckoutInfo();break;case"AgeBack":this.ageBackSideProofImg=this.previewUrl,this.blobFile?(this.ageBackSideProof=this.blobFile,this.ageBackImg=!1,this.cdf.detectChanges(),this.blobFile.type===b.b.pdfType&&!this.showAccountKyc&&this.uploadDocument()):(this.uploadAgeBackFileExceed=!1,this.invalidBackAgeFileFormat=!1,this.invalidAgeBackImageName=!1,this.isAgeBackFileSizeZero=!1,this.ageBackSideProofName=this.verificationForm.controls.ageDocument.value+" back side.png",this.ageBackSideProof=this.dataURLtoFile(this.ageBackSideProofImg,this.ageBackSideProofName)),this.isAssignProof&&this.isEditBothImg&&(this.addressBackSideProofImg||(this.assignProof(!1,!1),this.uploadAddressBackFileExceed=this.invalidBackAddressFileFormat=this.isAddressBackFileSizeZero=!1)),this.setCheckoutInfo();break;case"panImageRef":this.panImage=this.previewUrl,this.blobFile?(this.panFile=this.blobFile,this.panImg=!1,this.cdf.detectChanges(),this.blobFile.type===b.b.pdfType&&!this.showAccountKyc&&this.uploadDocument()):(this.uploadPanSizeExceed=!1,this.isPanFileSizeZero=!1,this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,this.checkPanAndAge()&&(this.uploadAgeFrontFileExceed=!1,this.isAgeFrontFileSizeZero=!1,this.invalidFrontAgeFileFormat=!1,this.invalidAddressFrontImageName=!1),this.panName="Pan card.png",this.panFile=this.dataURLtoFile(this.panImage,this.panName)),this.checkPanAndAge()&&this.assignProof(!1,!1,!1,!0),this.setCheckoutInfo(),this.addPanValidation()}this.saveDraft=!0,this.isCameraOn=!1,this.listenverificationFormChanges()}gisLoad(){var o=this;return(0,C.A)(function*(){const a=yield o.cloudAuthService.getCloudAuth(O.h.googleClientId);o.tokenClient=google.accounts.oauth2.initTokenClient({client_id:a,scope:u.c.googleScope,callback:()=>o.onPickerApiLoad()}),o.gapiLoad(),o.createPicker()})()}onPickerApiLoad(){this.pickerApiLoad=!0}gapiLoad(){gapi.load("client:picker",this.initializePicker)}initializePicker(){return(0,C.A)(function*(){yield gapi.client.load("https://www.googleapis.com/discovery/v1/apis/drive/v3/rest").then(o=>{})})()}createPicker(){var o=this;const a=()=>{let i=new google.picker.DocsView(google.picker.ViewId.DOCS);i.setMimeTypes("image/png,image/jpeg,image/jpg,application/pdf"),i.setMode(google.picker.DocsViewMode.GRID),(new google.picker.PickerBuilder).addView(i).setOAuthToken(this.accessToken).setDeveloperKey(this.cloudAuthService.getCloudAuth(O.h.googleApiKey)).setAppId(u.c.googleProjectId).setCallback(function(){var g=(0,C.A)(function*(S){if(S.action===google.picker.Action.PICKED){const F=S[google.picker.Response.DOCUMENTS][0],R=F[google.picker.Document.ID];o.documentKycService.imageType=o.imageType,o.imageSpinner(!0,o.documentKycService.imageType),o.cdf.detectChanges();try{let D=yield gapi.client.drive.files.get({fileId:R,alt:"media"});const E=`data:${D.headers["Content-Type"]};base64,${btoa(D.body)}`;F.mimeType!=b.b.pdfType&&o.selectedFileSize(E,F.name)?(o.previewUrl=E,o.submit(!0)):F.mimeType===b.b.pdfType&&o.selectedFileSize(E,F.name)?(o.previewUrl=u.c.uiTemplateBaseUrl+"/images/pdf.ico",o.submit(!0)):(o.imageSpinner(!1,o.documentKycService.imageType),o.cdf.detectChanges())}catch(D){console.log(D)}}});return function(S){return g.apply(this,arguments)}}()).build().setVisible(!0)};this.tokenClient.callback=function(){var i=(0,C.A)(function*(c){if(void 0!==c.error)throw c;o.accessToken=c.access_token,a()});return function(c){return i.apply(this,arguments)}}(),this.tokenClient.requestAccessToken(null===this.accessToken?{prompt:"consent"}:{prompt:""})}uploadFromLocal(){switch(this.imageType){case"AddressFront":this.AddressFront.nativeElement.click();break;case"AddressBack":this.AddressBack.nativeElement.click();break;case"AgeFront":this.AgeFront.nativeElement.click();break;case"AgeBack":this.AgeBack.nativeElement.click();break;case"panImageRef":this.panImageRef.nativeElement.click()}}
1stopVideoStream(){this.mediaStream.getTracks().forEach(o=>{o.stop()})}uploadDocumentImage(o,a){this.isEditBothImg=a,this.imageType=o,this.uploadOptionsModalButton.nativeElement.click()}setCheckoutInfo(o,a){var i=this;return(0,C.A)(function*(){if(!i.showAccountKyc){const c=i.cacheService.get(_.w.CheckoutInformation)||{},g=i.getIndes(d.VC.AddressProof,c),S=i.getIndes(d.VC.AgeProof,c),F=i.getIndes(d.VC.PanProof,c);let R={proofTypeID:i.ageProofList[0]?.proofTypeID?i.ageProofList[0].proofTypeID:"",docTypeId:i.getdocId(i.ageProofList[0]?.documentName,i.verificationForm.controls.ageDocument.value),pageConfig:i.getPageConfig(i.ageProofList[0]?.documentName,i.verificationForm.controls.ageDocument.value),selectedOption:i.ageFrontSideProofImg||i.ageBackSideProofImg?i.verificationForm.controls.ageDocument.value:"",frontimagebase64:yield i.compressFile(i.ageFrontSideProofImg),frontimagetitle:i.ageFrontSideProofName,backimagebase64:yield i.compressFile(i.ageBackSideProofImg),backimagetitle:i.ageBackSideProofName,docTypeValue:i.checkPanAndAge()?i.verificationForm.controls.panNumber.value:"",ageFrontSideProofImgBase64:yield i.compressFile(i.ageFrontSideProofImgBase64),ageBackSideProofImgBase64:yield i.compressFile(i.ageBackSideProofImgBase64),frontsideurl:o?o[2]?.url:c?.kycInformation&&c?.kycInformation[S]?.frontsideurl?c.kycInformation[S].frontsideurl:"",backsideurl:o?o[3]?.url:c?.kycInformation&&c?.kycInformation[S]?.backsideurl?c.kycInformation[S].backsideurl:""},D={proofTypeID:i.panList[0]?.proofTypeID,docTypeId:i.getdocId(i.panList[0]?.documentName,i.panList[0]?.documentName?.[0]?.name),pageConfig:i.getPageConfig(i.panList[0]?.documentName,i.panList[0]?.documentName?.[0]?.name),docTypeValue:i.verificationForm.controls.panNumber.value,originCountries:i.verificationForm.controls.originCountries.value,frontimagebase64:yield i.compressFile(i.panImage),frontimagetitle:i.panName,panImagebase64:yield i.compressFile(i.panImagebase64),frontsideurl:o?o[4]?.url:c?.kycInformation&&c?.kycInformation[F]?.frontsideurl?c.kycInformation[F].frontsideurl:""},E={proofTypeID:i.addressProofList[0]?.proofTypeID,docTypeId:i.getdocId(i.addressProofList[0]?.documentName,i.verificationForm.controls.addressDocument.value),pageConfig:i.getPageConfig(i.addressProofList[0]?.documentName,i.verificationForm.controls.addressDocument.value),selectedOption:i.addressFrontSideProofImg||i.addressBackSideProofImg?i.verificationForm.controls.addressDocument.value:"",frontimagebase64:yield i.compressFile(i.addressFrontSideProofImg),frontimagetitle:i.addressFrontSideProofName,backimagebase64:yield i.compressFile(i.addressBackSideProofImg),backimagetitle:i.addressBackSideProofName,addressFrontSideProofImgBase64:yield i.compressFile(i.addressFrontSideProofImgBase64),addressBackSideProofImgBase64:yield i.compressFile(i.addressBackSideProofImgBase64),frontsideurl:o?o[0]?.url:c?.kycInformation&&c?.kycInformation[g]?.frontsideurl?c?.kycInformation[g].frontsideurl:"",backsideurl:o?o[1]?.url:c?.kycInformation&&c?.kycInformation[g]?.backsideurl?c?.kycInformation[g].backsideurl:""};o?.[0]?.url||(E.frontsideurl=c?.kycInformation&&c?.kycInformation[g]?.frontsideurl?c?.kycInformation[g].frontsideurl:""),o?.[1]?.url||(E.backsideurl=c?.kycInformation&&c?.kycInformation[g]?.backsideurl?c?.kycInformation[g].backsideurl:""),o?.[2]?.url||(R.frontsideurl=c?.kycInformation&&c?.kycInformation[S]?.frontsideurl?c?.kycInformation[S].frontsideurl:""),o?.[3]?.url||(R.backsideurl=c?.kycInformation&&c?.kycInformation[S]?.backsideurl?c?.kycInformation[S].backsideurl:""),o?.[4]?.url||(D.frontsideurl=c?.kycInformation&&c?.kycInformation[F]?.frontsideurl?c?.kycInformation[F].frontsideurl:""),c.kycInformation=[],(E?.frontimagebase64||E?.backimagebase64||E?.addressFrontSideProofImgBase64||E?.addressBackSideProofImgBase64)&&c.kycInformation.push(E),(R?.frontimagebase64||R?.backimagebase64||R?.ageFrontSideProofImgBase64||R?.ageBackSideProofImgBase64)&&c.kycInformation.push(R),(D?.frontimagebase64||D?.panImagebase64)&&(c.kycInformation.push(D),c.personalInformation.governmentId=i.verificationForm.controls.panNumber.value),i.cacheService.set(_.w.CheckoutInformation,c),a&&i.checkPanAndAge()&&i.assignPanFromCac
1he()}localStorage.setItem("eCommerce.isAssignProof",""+i.isAssignProof)})()}getdocId(o,a){return o?.filter(i=>i.name===a)[0]?.id}getDocName(o,a){return o?.filter(i=>i.name===a)[0]?.name}compressFile(o){var a=this;return(0,C.A)(function*(){if("string"==typeof o&&o?.includes(u.c.cdnURL))return o;if(o)try{if(a.dataURLtoFile(o).size/Math.pow(1024,2)>.2){const c=yield a.imageCompress.compressFile(o,0,50,50);return yield a.imageCompress.compressFile(c,0,50,50)}return o}catch{return null}})()}getPageConfig(o,a){return a?o?.filter(i=>i.name===a)[0]?.pageConfig:d.VC.Both}navigateToNextPage(){if(this.checkoutConfig.checkCountryMisMatch){const R=this.cacheService.getCookieValue(_.w.EnrollCountryCode);if(-1===window.location.href.indexOf(R.toLowerCase()))return void this.appMessageService.setCountryMisMatch(!0)}const o=this.cacheService.getCookieValue(_.w.CountryCode),a=this.cacheService.getCookieValue(_.w.EnrollCountryCode),i=this.cacheService.getCookieValue(_.w.languageCode).toLowerCase(),c=this.cacheService.get(_.w.JoinFlowType),g=this.appConfigService.getSettings(o,c),S=this.cacheService.get(_.w.CheckoutInformation),F=this.cacheService.get(_.w.JoinCartSessionInfo);S?.personalInformation||S?.sponsorInformation?g.displayBonusInfoPage?(S.personalInformation.isNavigateTobonus=!0,this.cacheService.set(_.w.CheckoutInformation,S),this.router.navigate([`/join/${a}/${i}/bonus`])):F?.itemsCount>0?this.router.navigate([`/join/${a}/${i}/checkout/shipping`]):this.appMessageService.setPlaceOrder(!0):(this.notificationService.createNotification("","Something went wrong",x._.ERROR),this.commonService.isEnableNewJoinFlow(o)?this.router.navigate([`/join/${o}/${i}/fbo-enrollment`]):this.commonService.isEnableNewJoinPage(o)?this.router.navigate([`/join/${o}/${i}/join-forever`]):this.router.navigate([`/join/${o}/${i}/welcome`]))}dataURLtoFile(o,a){if(o){let i=o.split(","),c=i[0].match(/:(.*?);/)[1],g=atob(i[1]),S=g.length,F=new Uint8Array(S);for(;S--;)F[S]=g.charCodeAt(S);return new File([F],a,{type:c})}}openDropboxChoose(){var o=this;return(0,C.A)(function*(){if(!window.Dropbox)return void console.error("Dropbox SDK not loaded yet");const a=yield o.cloudAuthService.getCloudAuth(O.h.dropBoxApiKey);o.options.appKey=String(a),Dropbox.choose(o.options)})()}launchOneDrivePicker(){var o=this;return(0,C.A)(function*(){const a=yield o.cloudAuthService.getCloudAuth(O.h.oneDriveClientId);o.odOptions.clientId=String(a),OneDrive.open(o.odOptions)})()}dropBoxResponse(o,a){var i=this;return(0,C.A)(function*(){let c=yield fetch(a);return i.blobFile=yield c.blob(),new Promise((g,S)=>{let F=new FileReader;const R=u.c.uiTemplateBaseUrl+"/images/pdf.ico";F.addEventListener("load",()=>{g(i.blobFile.type==b.b.pdfType?{img:R,base64:F.result}:F.result)},!1),F.onerror=()=>S(i),F.readAsDataURL(i.blobFile)})})()}ngOnDestroy(){this.setCheckoutInfo(),this.addressDocumentSubscription&&this.addressDocumentSubscription.unsubscribe(),this.ageDocumentSubscription&&this.ageDocumentSubscription.unsubscribe(),this.panDocumentFormSubscription&&(this.panDocumentFormSubscription.unsubscribe(),this.panProofImageSubscription.unsubscribe())}selectedFileSize(o,a){const i=this.documentKycService.imageType;let c=this.appendFileExtension(o&&o.base64?o.base64:o,a);o&&o.base64?(this.blobFile=this.dataURLtoFile(o.base64,c),this.selectedFilesSize=this.blobFile.size):(this.blobFile=this.dataURLtoFile(o,c),this.selectedFilesSize=this.blobFile.size);const g=this.validFileNamePattern.test(a),S=this.selectedFilesSize/Math.pow(1024,2);if(S>0&&S<=2&&g)return i===U.N.AddressFront?(this.uploadAddressFrontFileExceed=this.invalidFrontAddressFileFormat=this.isAddressFrontFileSizeZero=!1,this.invalidAddressFrontImageName=!1,this.addressFrontSideProofName=c,this.addressFrontSideProof=this.blobFile):i===U.N.AddressBack?(this.uploadAddressBackFileExceed=this.invalidBackAddressFileFormat=this.isAddressBackFileSizeZero=!1,this.invalidAddressBackImageName=!1,this.addressBackSideProofName=c,this.addressBackSideProof=this.blobFile):i===U.N.AgeFront?(this.uploadAgeFrontFileExceed=this.invalidFrontAgeFileFormat=this.isAgeFrontFileSizeZero=!1,this.invalidAgeFrontImageName=!1,this.ageFrontSideProofName=c,this.ageFrontSideProof=this.blobFile):i===U.N.AgeBack?(this.uploadAgeBackFileExceed=this.invalidBackAgeFileFormat=this.isAgeBackFileSizeZero=!1,this.invalidAgeBackImageName=!1,this.ageBackSideProofName=c,this.ageBackSideProof=this.blobFile):(this.uploadPanSizeExceed=this.invalidPanFileFormat=this.isPanFileSizeZero=!1,this.invalidPanFileName=!1,this.panFile=this.blobFile,this.panName=c),!0;g?S>2?i===U.N.AddressFront?(this.uploadAddressFrontFileExceed=!0,this.addressFrontSideProofImg="",this.invalidFrontAddressFileFormat=!1,this.invalidAddressFrontImageName=!1,this.isAddressFrontFileSizeZero=!1):i===U.N.AddressBack?(this.uploadAddressBackFileExceed=!0,this.addressBackSideProofImg="",this.invalidBackAddressFileFormat=!1,this.invalidAddressBackImageName=!1,this.isAddressBackFileSizeZero=!1):i===U.N.AgeFront?(this.uploadAgeFrontFileExceed=!0,this.ageFrontSideProofImg="",this.invalidFrontAgeFileFormat=!1,this.invalidAgeFrontImageName=!1,this.isAgeFrontFileSizeZero=!1):i===U.N.AgeBack?(this.uploadAgeBackFileExceed=!0,this.ageBackSideProofImg="",this.invalidBackAgeFileFormat=!1,this.invalidAgeBackImageName=!1,this.isAgeBackFileSizeZero=!1):(this.uploadPanSizeExceed=!0,this.panImage="",this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,this.isPanFileSizeZero=!1):0===S&&(i===U.N.AddressFront?(this.uploadAddressFrontFileExceed=!1,this.addressFrontSideProofImg="",this.invalidFrontAddressFileFormat=!1,this.invalidAddressFrontImageName=!1,this.isAddressFrontFileSizeZero=!0):i===U.N.AddressBack?(this.uploadAddressBackFileExceed=!1,this.addressBackSideProofImg="",this.invalidBackAddressFileFormat=!1,this.invalidAddressBackImageName=!1,this.isAddressBackFileSizeZero=!0):i===U.N.AgeFront?(this.uploadAgeFrontFileExceed=!1,this.ageFrontSideProofImg="",this.invalidFrontAgeFileFormat=!1,this.invalidAgeFrontImageName=!1,this.isAgeFrontFileSizeZero=!0):i===U.N.AgeBack?(this.uploadAgeBackFileExceed=!1,this.ageBackSideProofImg="",this.invalidBackAgeFileFormat=!1,this.invalidAgeBackImageName=!1,this.isAgeBackFileSizeZero=!0):(this.uploadPanSizeExceed=!1,this.panImage="",this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,this.isPanFileSizeZero=!0)):i===U.N.AddressFront?(this.uploadAddressFrontFileExceed=this.invalidFrontAddressFileFormat=this.isAddressFrontFileSizeZero=!1,this.invalidAddressFrontImageName=!0,this.addressFrontSideProofImg=""):i===U.N.AddressBack?(this.uploadAddressBackFileExceed=this.invalidBackAddressFileFormat=this.isAddressBackFileSizeZero=!1,this.invalidAddressBackImageName=!0,this.addressBackSideProofImg=""):i===U.N.AgeFront?(this.uploadAgeFrontFileExceed=this.invalidFrontAgeFileFormat=this.isAgeFrontFileSizeZero=!1,this.invalidAgeFrontImageName=!0,this.ageFrontSideProofImg=""):i===U.N.AgeBack?(this.uploadAgeBackFileExceed=this.invalidBackAgeFileFormat=this.isAgeBackFileSizeZero=!1,this.invalidAgeBackImageName=!0,this.ageBackSideProofImg=""):(this.invalidPanFileName=!0,this.uploadPanSizeExceed=this.invalidPanFileFormat=this.isPanFileSizeZero=!1,this.panImage="")}imageSpinner(o,a){switch(a){case U.N.AddressFront:this.addressFrontImg=o;break;case U.N.AddressBack:this.addressBackImg=o;break;case U.N.AgeFront:this.ageFrontImg=o;break;case U.N.AgeBack:this.ageBackImg=o;break;default:this.panImg=o}}uploadAccountKycDocuments(o){const a=this.cacheService.get(_.w.UserInfo),i=this.cacheService.get(_.w.MemberDocuments),c=i.memberDocuments.filter(L=>{if(L.proofTypeID===d.VC.AddressProof)return L});let g=c[c.length-1];const S=i.memberDocuments.filter(L=>{if(L.proofTypeID===d.VC.AgeProof)return L});let F=i.memberDocuments.filter(L=>{if(L.proofTypeID===d.VC.AgeProof)return L});const R=i.memberDocuments.filter(L=>{if(L.proofTypeID===d.VC.PanProof)return L});this.checkPanAndAge()&&R.length&&!S.length&&R[0].status!==d.UZ.rejectedId&&(F=R);let D=F[F.length-1];this.checkPanAndAge()&&D&&(D.id=S[0]?.id),this.isAssignProof&&!this.proofToDelete&&this.verificationForm.controls.addressDocument.value===this.verificationForm.controls.ageDocument.value?(g?.frontSideURL||g?.backSideURL)&&"false"===this.cacheService.get(_.w.AssignAddress)?D=g:(D?.frontSideURL||D?.backSideURL)&&"true"===this.cacheService.get(_.w.AssignAddress)&&(g=D):this.isAssignProof&&this.proofToDelete&&this.verificationForm.controls.addressDocument.value===this.verificationForm.controls.ageDocument.value&&(!g?.frontSideURL&&!g?.backSideURL||D?(D?.frontSideURL||D?.backSideURL)&&!g&&(g={},this.addressFrontSideProofImg&&(g.frontSideURL=D.frontSideURL),this.addressBackSideProofImg&&(g.backSideURL=D.backSideURL),!this.addressFrontSideProofImg||!this.addressBackSideProofImg||(g.documentName=D.documentName)):(D={},this.ageFrontSideProofImg&&(D.frontSideURL=g.frontSideURL),this.ageBackSideProofImg&&(D.backSideURL=g.backSideURL),!this.ageFrontSideProofImg||!this.ageBackSideProofImg||(D.documentName=g.documentName))),D&&D.documentName!=this.verificationForm.controls.ageDocument.value&&(D.frontSideURL=D.backSideURL=null),g&&g.documentName!=this.verificationForm.controls.addressDocument.value&&(g.frontSideURL=g.backSideURL=null);let E={memberId:a.memberId,distributorId:a.distributorId,panSubmitted:null,kycSubmitted:!1,identifications:[],kycInfo:[]};const ne=i.memberDocuments.filter(L=>{if(!(L.status!==d.UZ.rejectedId&&L.status!==d.UZ.ApprovedId||L.proofTypeID!==d.VC.AgeProof&&L.proofTypeID!==d.VC.PanProof))return L}).length||R?.[0]?.status===d.UZ.submitted,ae={docTypeId:this.getdocId(this.ageProofList[0]?.documentName,this.verificationForm.controls.ageDocument.value),pageConfig:this.getPageConfig(this.ageProofList[0]?.documentName,this.verificationForm.controls.ageDocument.value),docTypeValue:this.checkPanAndAge()?this.verificationForm.controls.panNumber.value:"",id:S?.[0]?.id,frontsideurl:o&&o[2]?.url?o[2].url:D?.frontSideURL?D.frontSideURL:this.ageFrontSideProofImg?this.checkSignedUrl(this.ageFrontSideProofImg,d.VC.AgeProof,!0,d.VC.AddressProof):"",backsideurl:o&&o[3]?.url?o[3].url:D?.backSideURL?D.backSideURL:this.ageBackSideProofImg?this.checkSignedUrl(this.ageBackSideProofImg,d.VC.AgeProof,!1,d.VC.AddressProof):"",proofTypeID:this.ageProofList[0]?.proofTypeID,savePanCard:!(!this.checkPanAndAge()||!this.verificationForm.controls.panNumber.value||this.fileSavedDraft||ne),s3DeletionFrontUrl:"",s3DeletionBackUrl:""},G={docTypeId:this.getdocId(this.addressProofList[0]?.documentName,this.verificationForm.controls.addressDocument.value),pageConfig:this.getPageConfig(this.addressProofList[0]?.documentName,this.verificationForm.controls.addressDocument.value),docTypeValue:"",id:c?.[0]?.id,frontsideurl:o&&o[0]?.url?o[0]?.url:g?.frontSideURL?g.frontSideURL:this.addressFrontSideProofImg?this.checkSignedUrl(this.addressFrontSideProofImg,d.VC.AddressProof,!0,d.VC.AgeProof):"",backsideurl:o&&o[1]?.url?o[1]?.url:g?.backSideURL?g?.backSideURL:this.addressBackSideProofImg?this.checkSignedUrl(this.addressBackSideProofImg,d.VC.AddressProof,!1,d.VC.AgeProof):"",proofTypeID:this.addressProofList[0]?.proofTypeID,s3DeletionFrontUrl:"",s3DeletionBackUrl:""};c?.[0]?.status===d.UZ.ApprovedId||E.kycInfo.push(G),S?.[0]?.status===d.UZ.ApprovedId||E.kycInfo.push(ae);const eo=i.memberDocuments.filter(L=>{if(!(L.status!==d.UZ.rejectedId&&L.status!==d.UZ.ApprovedId||L.proofTypeID!==d.VC.AgeProof&&L.proofTypeID!==d.VC.PanProof))return L}).length||R?.[0]?.status===d.UZ.submitted;if(this.verificationForm.controls.ageDocument.value===U.N.PanCard&&!this.fileSavedDraft&&!eo){const de=this.cacheService.get(_.w.MemberDocuments).memberDocuments.filter(ye=>{if(ye.proofTypeID===d.VC.PanProof)return ye}),ke=this.cacheService.get(_.w.IdentificationDetail);E.identifications=[{identificationId:ke[0].identificationTypeID,identificationType:ke[0].identificationType,value:this.verificationForm.controls.panNumber.value}];const to={docTypeId:this.getdocId(this.panList[0]?.documentName,this.panList[0]?.documentName?.[0]?.name),pageConfig:this.getPageConfig(this.ageProofList[0]?.documentName,this.verificationForm.controls.ageDocument.value),docTypeValue:this.checkPanAndAge()?this.verificationForm.controls.panNumber.value:"",id:de?.[0]?.id,frontsideurl:o&&o[2]?.url?o[2].url:de[0]?.frontSideURL?de[0]?.frontSideURL:D?.frontSideURL,proofTypeID:this.panList[0]?.proofTypeID,savePanCard:!(!this.checkPanAndAge()||!this.verificationForm.controls.panNumber.value||this.fileSavedDraft)};E.kycInfo.push(to)}if(S.length){const L=E.kycInfo.findIndex(de=>de.proofTypeID===d.VC.AgeProof);S[0].frontSideURL&&E.kycInfo[L]&&S[0].frontSideURL!==E.kycInfo[L]?.frontsideurl&&(E.kycInfo[L].s3DeletionFrontUrl=S[0].frontSideURL),S[0].backSideURL&&E.kycInfo[L]&&S[0].backSideURL!==E.kycInfo[L]?.backsideurl&&(E.kycInfo[L].s3DeletionBackUrl=S[0].backSideURL)}if(g){const L=E.kycInfo.findIndex(de=>de.proofTypeID===d.VC.AddressProof);g.frontSideURL&&E.kycInfo[L]&&g.frontSideURL!==E.kycInfo[L]?.frontsideurl&&(E.kycInfo[L].s3DeletionFrontUrl=g.frontSideURL),g.backSideURL&&E.kycInfo[L]&&g.backSideURL!==E.kycInfo[L]?.backsideurl&&(E.kycInfo[L].s3DeletionBackUrl=g.backSideURL)}this.updateAccountKyc(E)}checkSignedUrl(o,a,i,c){const g=this.cacheService.get(_.w.MemberDocuments),S=g.memberDocuments.filter(F=>
1{if(F.proofTypeID===a)return F});if(!o?.includes(b.b.signedUrl)&&!o?.includes(u.c.cdnURL))return o;{const F=g.memberDocuments.filter(R=>{if(R.proofTypeID===d.VC.PanProof)return R});if(this.checkPanAndAge())return F?.[0]?.frontSideURL;if(i){if(S?.[0]?.frontSideURL)return S?.[0]?.frontSideURL;{const R=g.memberDocuments.filter(D=>{if(D.proofTypeID===c)return D});if(R?.[0]?.frontSideURL)return R?.[0]?.frontSideURL}}else{if(S?.[0]?.backSideURL)return S?.[0]?.backSideURL;{const R=g.memberDocuments.filter(D=>{if(D.proofTypeID===c)return D});if(R?.[0]?.backSideURL)return R?.[0]?.backSideURL}}}}submitKycSuccessful(){this.onSubmit(!0),this.deleteImage=!1}saveAsDraft(){var o=this;return(0,C.A)(function*(){if(o.showSaveAsDraftBtn=!1,yield o.validatePanNumber(),o.showAccountKyc&&o.checkPanAndAge()&&(o.verificationForm.controls.panNumber.value||o.ageFrontSideProofImg)){if(o.ageFrontSideProofImg?o.addPanValidation():o.verificationForm.controls.panNumber.value&&o.verificationForm.controls.panNumber.valid&&o.verificationForm.controls.ageDocument.setErrors({imageRequired:!0}),!o.ageFrontSideProofImg||o.verificationForm.controls.panNumber.errors||o.duplicatePanNumber)return void(o.showSaveAsDraftBtn=!0)}else o.verificationForm.controls.ageDocument.setErrors(null);o.fileSavedDraft=!0,o.submitKycSuccessful(),o.deleteImage=!1})()}reloadCurrentRoute(){let o=this.router.url;this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([o])})}assignProof(o,a,i,c){return o&&a&&([this.ageFrontSideProofImg,this.ageFrontSideProofName,this.ageFrontSideProof,this.ageFrontSideProofImgBase64]=[this.addressFrontSideProofImg,this.addressFrontSideProofName,this.addressFrontSideProof,this.addressFrontSideProofImgBase64]),o&&!a&&([this.ageBackSideProofName,this.ageBackSideProofImg,this.ageBackSideProof,this.ageBackSideProofImgBase64]=[this.addressBackSideProofName,this.addressBackSideProofImg,this.addressBackSideProof,this.addressBackSideProofImgBase64]),!o&&a&&([this.addressFrontSideProofImg,this.addressFrontSideProofName,this.addressFrontSideProof,this.addressFrontSideProofImgBase64]=[this.ageFrontSideProofImg,this.ageFrontSideProofName,this.ageFrontSideProof,this.ageFrontSideProofImgBase64]),i?([this.panImage,this.panName,this.panFile,this.panImagebase64]=[this.ageFrontSideProofImg,this.ageFrontSideProofName,this.ageFrontSideProof,this.ageFrontSideProofImgBase64],void this.addPanValidation()):c?([this.ageFrontSideProofImg,this.ageFrontSideProofName,this.ageFrontSideProof,this.ageFrontSideProofImgBase64]=[this.panImage,this.panName,this.panFile,this.panImagebase64],void this.addPanValidation()):void(!o&&!a&&([this.addressBackSideProofName,this.addressBackSideProofImg,this.addressBackSideProof,this.addressBackSideProofImgBase64]=[this.ageBackSideProofName,this.ageBackSideProofImg,this.ageBackSideProof,this.ageBackSideProofImgBase64]))}copyProof(){this.addressFrontSideProofImg&&this.selectedProofID===d.VC.AgeProof&&this.assignAddressFrontToAge(),this.addressBackSideProofImg&&this.selectedProofID===d.VC.AgeProof&&this.assignAddressBackToAge(),this.ageFrontSideProofImg&&this.selectedProofID===d.VC.AddressProof&&this.assignAgeFrontToAddress(),(this.ageBackSideProofImg||this.ageBackSideProofImg)&&this.selectedProofID===d.VC.AddressProof&&this.assignAgeBackToAddress(),this.isAssignProof=!0,this.listenverificationFormChanges(),this.setCheckoutInfo()}assignAgeFrontToAddress(){[this.addressFrontSideProofImg,this.addressFrontSideProofName,this.addressFrontSideProof,this.addressFrontSideProofImgBase64]=[this.ageFrontSideProofImg,this.ageFrontSideProofName,this.ageFrontSideProof,this.ageFrontSideProofImgBase64],this.assignAddress=!0,this.cacheService.set(_.w.AssignAddress,"true"),this.AssignProofInCache(!0)}AssignProofInCache(o){if(this.showAccountKyc){let a=this.cacheService.get(_.w.MemberDocuments),i=this.getMemberDocIndex(d.VC.AgeProof),c=this.getMemberDocIndex(d.VC.AddressProof);o?-1===c?(c=a.memberDocuments.length,a.memberDocuments[c]={frontSideURL:a.memberDocuments[i]?.frontSideURL,backSideURL:a.memberDocuments[i]?.backSideURL,proofTypeID:d.VC.AddressProof}):(a.memberDocuments[c].frontSideURL=a.memberDocuments[i]?.frontSideURL,a.memberDocuments[c].backSideURL=a.memberDocuments[i]?.backSideURL,a.memberDocuments[c].documentName=this.verificationForm.controls.ageDocument.value):-1===i?(i=a.memberDocuments.length,a.memberDocuments[i]={frontSideURL:a.memberDocuments[c]?.frontSideURL,backSideURL:a.memberDocuments[c]?.backSideURL,proofTypeID:d.VC.AgeProof}):(a.memberDocuments[i].frontSideURL=a.memberDocuments[c]?.frontSideURL,a.memberDocuments[i].backSideURL=a.memberDocuments[c]?.backSideURL,a.memberDocuments[i].documentName=this.verificationForm.controls.addressDocument.value),this.setCache(null,a)}else this.assignCheckoutInfo(o)}assignCheckoutInfo(o){let a=this.cacheService.get(_.w.CheckoutInformation)||{},i=this.getIndes(d.VC.AddressProof,a),c=this.getIndes(d.VC.AgeProof,a);o?null!==i?(a.kycInformation[i].backsideurl=a.kycInformation[c]?.backsideurl,a.kycInformation[i].frontsideurl=a.kycInformation[c]?.frontsideurl):(i=a.kycInformation.length,a.kycInformation[i]={frontsideurl:a.kycInformation[c]?.frontsideurl,backsideurl:a.kycInformation[c]?.backsideurl,proofTypeID:d.VC.AddressProof}):null!==c?(a.kycInformation[c].backsideurl=a.kycInformation[i]?.backsideurl,a.kycInformation[c].frontsideurl=a.kycInformation[i]?.frontsideurl):(c=a.kycInformation.length,a.kycInformation[c]={frontsideurl:a.kycInformation[i]?.frontsideurl,backsideurl:a.kycInformation[i]?.backsideurl,proofTypeID:d.VC.AgeProof}),this.cacheService.set(_.w.CheckoutInformation,a)}getMemberDocIndex(o){return this.cacheService.get(_.w.MemberDocuments).memberDocuments.findIndex(i=>i?.proofTypeID===o)}assignAddressFrontToAge(){[this.ageFrontSideProofImg,this.ageFrontSideProofName,this.ageFrontSideProof,this.ageFrontSideProofImgBase64]=[this.addressFrontSideProofImg,this.addressFrontSideProofName,this.addressFrontSideProof,this.addressFrontSideProofImgBase64],this.assignAddress=!1,this.cacheService.set(_.w.AssignAddress,"false"),this.AssignProofInCache(!1)}assignAgeBackToAddress(){[this.addressBackSideProofName,this.addressBackSideProofImg,this.addressBackSideProof,this.addressBackSideProofImgBase64]=[this.ageBackSideProofName,this.ageBackSideProofImg,this.ageBackSideProof,this.ageBackSideProofImgBase64],this.assignAddress=!0,this.cacheService.set(_.w.AssignAddress,"true"),this.AssignProofInCache(!0)}assignAddressBackToAge(){[this.ageBackSideProofName,this.ageBackSideProofImg,this.ageBackSideProof,this.ageBackSideProofImgBase64]=[this.addressBackSideProofName,this.addressBackSideProofImg,this.addressBackSideProof,this.addressBackSideProofImgBase64],this.assignAddress=!1,this.cacheService.set(_.w.AssignAddress,"false"),this.AssignProofInCache(!1)}driveCallBack(o,a,i){this.imageSpinner(!0,this.imageType),this.documentKycService.imageType=this.imageType,this.dropB
1oxResponse(o,a).then(c=>{this.selectedFileSize(c,i)?(this.previewUrl=c&&c.base64?c.img:c,this.submit(!0)):(this.imageSpinner(!1,this.documentKycService.imageType),this.cdf.detectChanges())}).catch(c=>{console.log(c)})}uploadNewProof(){this.isAssignProof=!1,this.isEditBothImg||this.selectedProofID!==d.VC.AddressProof||this.addressFrontSideProofImg?!this.isEditBothImg&&this.selectedProofID===d.VC.AgeProof&&!this.ageFrontSideProofImg&&this.uploadDocumentImage(d.XI.AgeFront,!1):this.uploadDocumentImage(d.XI.AddressFront,!1),this.setCheckoutInfo()}updateAccountKyc(o){const a=this.cacheService.get(_.w.UserInfo);this.fileSavedDraft||(o.kycSubmitted=!0),this.loaderService.start(),this.myAccountService.uploadAccountKycDocs(o).subscribe({next:i=>{i?(this.loaderService.stop(),this.documentKycService.getMemberDocuments(a.memberId).subscribe({next:c=>{this.fileSavedDraft?(c.kycStatus=d.UZ.KycNotSubmit,this.cacheService.set(_.w.MemberDocuments,c),this.reloadCurrentRoute()):c.kycStatus=d.UZ.VerificationInProgress,this.cacheService.set(_.w.MemberDocuments,c)}}),this.fileSavedDraft?this.openSubmitedKycModal.hide():this.openSubmitedKycModal.show()):(this.loaderService.stop(),this.fileSavedDraft=!1,this.saveDraft=!0,this.showSaveAsDraftBtn=!0,this.notificationService.createNotification("",this.translateService.instant("join.kycDocument.Documents are not sumbitted.Please contact CustomerCare"),x._.ERROR))}})}setIdentificationId(){this.checkoutService.getGovernmentIdentificationTypes().subscribe({next:o=>{const a=this.cacheService.get(_.w.StoreConfiguration),i=o?.filter(c=>c.countryID==a.countryId&&c.identificationType.toUpperCase()===U.N.Pan.toUpperCase());this.cacheService.set(_.w.IdentificationDetail,i)}})}appendFileExtension(o,a){const i=o.split(/[;\/]/)[1];return a.split(".").pop()!=i?a+"."+i:a}trackByFn(o,a){return a.name}trimPanNumber(o){var a=this;return(0,C.A)(function*(){a.checkoutConfig.trimPanNumber&&(a.setKycProof(o.target.value),a.verificationForm.controls.panNumber.setValue(a.verificationForm.controls.panNumber.value.slice(0,b.b.panMaxLength)?.toUpperCase()),yield a.validatePanNumber())})()}validatePanNumber(){var o=this;return(0,C.A)(function*(){if(o.enableDuplicatePanNumberCheck&&o.verificationForm.controls.panNumber.value&&o.verificationForm.controls.panNumber.valid&&(o.initialPanNumber!=o.verificationForm.controls.panNumber.value&&o.showAccountKyc||!o.showAccountKyc)){let a=o.cacheService.get(_.w.CheckoutInformation);(yield yield(0,J._)(o.myAccountService.validatePanNumber(o.verificationForm.controls.panNumber.value,a?.orderDetails?.memberId)))?(o.duplicatePanNumber=!1,o.verificationForm.controls.panNumber.setErrors(null)):(o.duplicatePanNumber=!0,o.verificationForm.controls.panNumber.setErrors({duplicatePanNumber:!0}))}})()}setKycProof(o){const a=this.cacheService.get(_.w.CheckoutInformation);a&&a.kycInformation&&a.kycInformation.forEach((i,c)=>{a.kycInformation[c].proofTypeID===d.VC.PanProof&&a.kycInformation[c].docTypeValue!=o&&this.setKycFormValid(!1)})}setKycFormValid(o){let a=this.cacheService.get(_.w.CheckoutInformation);a&&(a.isKycFormValid=o,this.joinCommonService.isKycFormValid=o,this.cacheService.set(_.w.CheckoutInformation,a))}assignPanFromCache(){let o=this.cacheService.get(_.w.CheckoutInformation)||{},a=this.getIndes(d.VC.PanProof,o),i=this.getIndes(d.VC.AgeProof,o);null!==i?(o.kycInformation[i].backsideurl=o.kycInformation[a]?.backsideurl,o.kycInformation[i].frontsideurl=o.kycInformation[a]?.frontsideurl):null!=a&&(i=o.kycInformation.length,o.kycInformation[i]={frontsideurl:o.kycInformation[a]?.frontsideurl,proofTypeID:d.VC.AgeProof}),this.cacheService.set(_.w.CheckoutInformation,o)}docsChanged(o){if(this.isAddressBackSideRequired=!(!this.addressBackSideProofImg&&!this.remarkAddressProof),this.isAgeBackSideRequired=!(!this.ageBackSideProofImg&&!this.remarkAgeProof),o===d.UZ.partiallyVerified){const a=this.cacheService.get(_.w.MemberDocuments),i=a?.memberDocuments.filter(F=>F.proofTypeID===d.VC.AgeProof),c=a?.memberDocuments.filter(F=>F.proofTypeID===d.VC.AddressProof),g=this.getPageConfig(this.ageProofList?.[0]?.documentName,this.verificationForm.controls.ageDocument.value)===d.VC.Both;this.getPageConfig(this.addressProofList?.[0]?.documentName,this.verificationForm.controls.addressDocument.value)===d.VC.Both&&c?.[0]?.status===d.UZ.rejectedId?this.isAddressBackSideRequired=!0:this.addressBackSideProofImg||(this.isAddressBackSideRequired=!1),g&&i?.[0]?.status===d.UZ.rejectedId?this.isAgeBackSideRequired=!0:this.ageBackSideProofImg||(this.isAgeBackSideRequired=!1)}}showArchivedImg(o){if(this.accountConfig.imageArchieveCheck){const a=document.getElementById(o);a?a.src="../../../assets/images/archive.png":setTimeout(()=>{this.showArchivedImg(o)},250)}}checkImageArchived(){const o=this.getArchivedElementIds();o.length&&o.map(a=>{this.showArchivedImg(a)})}getArchivedElementIds(){const o=[];return this.cacheService.get(_.w.MemberDocuments).memberDocuments.forEac
1h(i=>{i.proofTypeID===d.VC.AgeProof&&i.frontImageRetrieved&&o.push("ageFront"),i.proofTypeID===d.VC.AgeProof&&i.backImageRetrieved&&o.push("ageBack"),i.proofTypeID===d.VC.AddressProof&&i.frontImageRetrieved&&o.push("addressFront"),i.proofTypeID===d.VC.AddressProof&&i.backImageRetrieved&&o.push("addressBack"),i.proofTypeID===d.VC.PanProof&&i.frontImageRetrieved&&o.push("panFront")}),o}getFormValidationsJSON(){this.commonService.getFormValidationsJSON().subscribe({next:o=>{o&&(this.nationalIdValidation=o)}})}onOriginCountryChange(o){const a=o?.target?.value;if(a){const i=this.verificationForm?.controls?.panNumber;i?.setValue(""),i?.markAsUntouched(),i?.setErrors(null),this.updateValidations(a)}}updateValidations(o){const a=this.nationalIdValidation?.find(i=>i.countryCode===o);if(a?.validations?.nationalID){const i=a.validations.nationalID,c=this.verificationForm?.controls?.panNumber;c&&(c.clearValidators(),this.duplicatePanNumber=!1,i.maxLength&&(this.verificationConstants.CountryIdLength=i.maxLength),i.minLength&&(c.addValidators(t.k0.required),c.addValidators(t.k0.minLength(i.minLength))),i.pattern&&c.addValidators(t.k0.pattern(i.pattern)),this.maskFormat=i.maskFormat||"",c.updateValueAndValidity())}}static{this.\u0275fac=function(a){return new(a||s)(e.rXU(j.Kg),e.rXU(te.o),e.rXU(t.ok),e.rXU(V.Z),e.rXU(X.G),e.rXU(H.J),e.rXU(q._),e.rXU(z.Ix),e.rXU(Q.r),e.rXU(ie.H),e.rXU(e.gRc),e.rXU(re.H),e.rXU(ue.j),e.rXU(pe.I),e.rXU(he.ep),e.rXU(be.A),e.rXU(Ie.h),e.rXU(ve._),e.rXU(Se.c$),e.rXU(Be.i))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["app-document-verification"]],viewQuery:function(a,i){if(1&a&&(e.GBs(xe,5),e.GBs(Ee,5),e.GBs(Ne,5),e.GBs(Ve,5),e.GBs(we,5),e.GBs(Re,5),e.GBs(Oe,5),e.GBs(Fe,5),e.GBs(Ue,5),e.GBs(je,5),e.GBs(Ge,5),e.GBs(Le,5),e.GBs($e,5),e.GBs(Ke,5),e.GBs(ze,5),e.GBs(Ye,5)),2&a){let c;e.mGM(c=e.lsd())&&(i.panImageRef=c.first),e.mGM(c=e.lsd())&&(i.AgeBack=c.first),e.mGM(c=e.lsd())&&(i.AgeFront=c.first),e.mGM(c=e.lsd())&&(i.AddressBack=c.first),e.mGM(c=e.lsd())&&(i.addressFrontImage=c.first),e.mGM(c=e.lsd())&&(i.uploadOptionsModalButton=c.first),e.mGM(c=e.lsd())&&(i.AddressFront=c.first),e.mGM(c=e.lsd())&&(i.cameraModalButton=c.first),e.mGM(c=e.lsd())&&(i.cameraErrorDetailModal=c.first),e.mGM(c=e.lsd())&&(i.deleteConfirmationModal=c.first),e.mGM(c=e.lsd())&&(i.invalidDataModal=c.first),e.mGM(c=e.lsd())&&(i.openSubmitKycModal=c.first),e.mGM(c=e.lsd())&&(i.openSubmitedKycModal=c.first),e.mGM(c=e.lsd())&&(i.limitDocModal=c.first),e.mGM(c=e.lsd())&&(i.deleteCopyModal=c.first),e.mGM(c=e.lsd())&&(i.withoutImgLimitDocModal=c.first)}},decls:13,vars:13,consts:[["AddressFront",""],["AddressBack",""],["AgeFront",""],["AgeBack",""],["panImageRef",""],["deleteConfirmationModal","app-modal"],["invalidDataModal","app-modal"],["limitDocModal","app-modal"],["withoutImgLimitDocModal","app-modal"],["openSubmitKycModal","app-modal"],["openSubmitedKycModal","app-modal"],["cameraModalButton",""],["cameraErrorDetailModal","app-modal"],["uploadOptionsModalButton",""],[3,"formGroup","ngSubmit",4,"ngIf"],["class","template3",4,"ngIf"],["id","common-modal","bsModal","","class","modal fade bs-example modal--center",3,"config",4,"ngIf"],["hidden","","data-toggle","modal","data-target","#myModal","attr.aria-label","yes",4,"ngIf"],["class","container-fluid",4,"ngIf"],["id","common-modal","bsModal","","class","modal fade bs-example modal--center",4,"ngIf"],["hidden","","type","button","class","btn btn-info btn-lg","data-toggle","modal","data-target","#uploadModal",4,"ngIf"],["class","container",4,"ngIf"],[3,"ngSubmit","formGroup"],["class","row",4,"ngIf"],["class","rows",4,"ngIf"],[3,"ngClass",4,"ngIf"],["class","border-line",4,"ngIf"],[1,"row"],[1,"col-lg-9","col-12","p-lg-0","p-0"],[1,"header-title"],[1,"sub-title"],[1,"rows"],[1,"col-12","pl-0"],[1,"sub-title-text","mt-0","text-center"],["class","sub-title mt-2",4,"ngIf"],[4,"ngIf"],[1,"sub-title","mt-2"],[3,"ngClass"],[1,"col-11","col-md-4","p-2","p-lg-2","mr-0","mr-md-3","mr-lg-5"],[1,"h-100","correct-img","d-flex"],["alt","Correct Document",1,"img-fluid","img-thumbnail",3,"src"],[1,"fa","fa-check-circle"],[1,"col-11","col-md-4","p-2","p-lg-2","mr-2","mx-md-0","mx-lg-5"],[1,"incorrect-img","d-flex"],["alt","Incorrect Document",1,"img-fluid","img-thumbnail",3,"src"],[1,"fa","fa-exclamation-circle"],[1,"col-md-6","pl-0","col-lg-10"],["id","label-class","for","Address Proof",1,"sub-title","pl-0","col-lg-4","col-md-8"],["formControlName","addressDocument","class","col-lg-6 col-md-12 form-control d-inline-block","id","address_select","aria-required","true",4,"ngIf"],[1,"col-lg-10","pl-0","col-md-12","mt-4"],[1,"proof-section"],[1,"d-inline-block","p-2","col-7","col-lg-5","col-md-4","border","border-dark"],["id","addressFront",1,"p-1","img-fluid","photo-copy",3,"click","load","error","ngClass","src"],["class","","id","addFrontText",3,"ngClass","click",4,"ngIf"],["class","text-danger size-exceed mt-5 mt-sm-0",4,"ngIf"],["class","image-name col-lg-12 col-md-10 col-5 px-0",4,"ngIf"],["onclick","this.value = null","type","file","name","file","id","AddressFrontSide","accept",".png,.jpg,.pdf,.jpeg",1,"d-none",3,"change"],["class","image-loader sponsor-loader--btn",4,"ngIf"],[1,"rejection"],[1,"text-danger","pt-2","font-weight-bold"],["formControlName","addressDocument","id","address_select","aria-required","true",1,"col-lg-6","col-md-12","form-control","d-inline-block"],["value","","selected",""],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"],["id","addFrontText",1,"",3,"click","ngClass"],[1,"image-text","ml-0","col-6","col-sm-12"],["class","required-text mt-5 mt-sm-0",4,"ngIf"],[1,"required-text","mt-5","mt-sm-0"],[1,"text-danger","size-exceed","mt-5","mt-sm-0"],[1,"image-name","col-lg-12","col-md-10","col-5","px-0"],[1,"h6","pl-1"],["type","button",1,"btn-aria",3,"click"],[1,"fa","fa-pencil"],[1,"fa","fa-tras
1h"],[1,"image-loader","sponsor-loader--btn"],[1,"fa","fa-spinner",2,"font-size","50px"],["id","addressBack",1,"p-1","img-fluid","photo-copy",3,"click","load","error","ngClass","src"],["class","image-text ml-0 col-6 col-sm-12","id","addFrontText",3,"ngClass","click",4,"ngIf"],["class","text-danger size-exceed top-35 mt-3 mt-sm-0",4,"ngIf"],["onclick","this.value = null","type","file","name","file","id","AddressBackSide","accept",".png,.jpg,.pdf,.jpeg",1,"d-none",3,"change"],["id","addFrontText",1,"image-text","ml-0","col-6","col-sm-12",3,"click","ngClass"],[1,"text-danger","size-exceed","top-35","mt-3","mt-sm-0"],[1,"border-line"],["id","label-class","for","Age Proof",1,"sub-title","pl-0","col-lg-4","col-md-8"],["formControlName","ageDocument","class","col-lg-6 col-md-12 form-control d-inline-block","id","age_select","aria-required","true",4,"ngIf"],["id","ageFront",1,"p-1","img-fluid","photo-copy",3,"click","load","error","ngClass","src"],["class","h-42 col-lg-4 col-md-8 col-5 ml-3 position-absolute mb-sm-1 bot-1","appUppercase","","formControlName","panNumber","type","text",3,"ngModel","placeholder","ngModelChange","focus","blur",4,"ngIf"],["class","pt-1 ml-3 position-absolute bot-17",4,"ngIf"],["onclick","this.value = null","type","file","name","file","id","AgeFrontSide","accept",".png,.jpg,.pdf,.jpeg",1,"d-none",3,"change"],["class","position-relative top-20",4,"ngIf"],["formControlName","ageDocument","id","age_select","aria-required","true",1,"col-lg-6","col-md-12","form-control","d-inline-block"],["selected","","value",""],[1,"h6","pl-1","text-truncate-lines-3"],["appUppercase","","formControlName","panNumber","type","text",1,"h-42","col-lg-4","col-md-8","col-5","ml-3","position-absolute","mb-sm-1","bot-1",3,"ngModelChange","focus","blur","ngModel","placeholder"],[1,"pt-1","ml-3","position-absolute","bot-17"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"position-relative","top-20"],["id","ageBack",1,"p-1","img-fluid","photo-copy",3,"click","load","error","ngClass","src"],["onclick","this.value = null","type","file","name","file","id","AgeBackSide","accept",".png,.jpg,.pdf,.jpeg",1,"d-none",3,"change"],["class","h6 pl-1",4,"ngIf"],[1,"col-9"],["class","col-lg-9 col-12 pl-0",4,"ngIf"],[1,"col-lg-9","col-12","pl-0"],[1,"col-lg-9","col-12","my-3","pl-0"],["formControlName","panNumber","appUppercase","","type","text",1,"h-42","col-lg-4","col-md-4",3,"ngModelChange","focus","blur","ngModel","mask","ngClass","placeholder"],[1,"pt-1"],["id","frontImageText",1,"pt-3","pl-0","col-lg-10"],["id","panFront",1,"p-1","img-fluid","photo-copy",3,"click","load","error","ngClass","src"],["class","image-text ml-0 col-6 col-sm-12","id","addPanText",3,"ngClass","click",4,"ngIf"],["class","text-danger pan-size-exceed mt-3 mt-sm-0",4,"ngIf"],["onclick","this.value = null","formControlName","panProofImage","type","file","name","file","id","uploadPanImage","accept",".png,.jpg,.pdf,.jpeg","hidden","",1,"",3,"change"],["id","label-class","for","originCountries",1,"sub-title","pl-0","col-lg-4","col-md-8"],["formControlName","originCountries","id","originCountries","aria-required","true",1,"col-4","pl-0","form-control",3,"change"],[3,"value",4,"ngFor","ngForOf"],["id","addPanText",1,"image-text","ml-0","col-6","col-sm-12",3,"click","ngClass"],[1,"text-danger","pan-size-exceed","mt-3","mt-sm-0"],["class","col text-center",4,"ngIf"],["class","row col-lg-9 col-md-9 mt-3 mx-auto",4,"ngIf"],[1,"col","text-center"],[1,"h4","btn","btn-primary"],[1,"row","col-lg-9","col-md-9","mt-3","mx-auto"],["type","submit",1,"col-lg-4","col-md-5","col-5","h4","h-auto","btn","btn-primary","px-3",3,"disabled"],[1,"template3"],["id","account-page-title",1,"header-title"],[1,"col-12","col-sm-12","mt-4","border-block","kyc-document-min-height","pb-4"],["id","common-modal","bsModal","",1,"modal","fade","bs-example","modal--center",3,"config"],[1,"modal-dialog","confirm-dialog"],[1,"modal-content","p-2","text-center"],[1,"modal-body"],["tabindex","-1","role","heading","id","myModalLabel",1,"modal-title","modal
1-warn"],[1,"modal-footer","justify-content-center"],["role","button","type","button","tabindex","0","id","modaldelbtn-yes-js",1,"btn","btn-primary",3,"keyup.enter","click"],["role","button","tabindex","0","type","button","id","delAllModal-no-js",1,"btn","btn-secondary",3,"keyup.enter","click"],[1,"m-3"],[1,"d-grid","gap-2","col-6","mx-auto"],["type","button",1,"btn","btn-primary",3,"click"],[1,"m-3","font-weight-bold"],["role","button","type","button","tabindex","0","id","modaldelbtn-yes-js",1,"btn","btn-primary","p-2",3,"click"],["role","button","tabindex","0","type","button","id","delAllModal-no-js",1,"btn","btn-secondary","p-1",3,"click"],["role","button","type","button","tabindex","0","id","modaldelbtn-yes-js",1,"btn","btn-primary",3,"click"],["role","button","tabindex","0","type","button","id","delAllModal-no-js",1,"btn","btn-secondary",3,"click"],["role","button","type","button","tabindex","0","attr.aria-label","Cancel","id","modaldelbtn-yes-js",1,"btn","btn-secondary",3,"keyup.enter","click"],["role","button","tabindex","0","type","button","attr.aria-label","Submit","id","delAllModal-no-js",1,"btn","btn-primary",3,"keyup.enter","click"],["hidden","","data-toggle","modal","data-target","#myModal","attr.aria-label","yes"],[1,"container-fluid"],[1,"col-12"],["id","myModal","data-backdrop","static","data-keyboard","false",1,"modal"],[1,"modal-dialog","modal
1-lg"],[1,"modal-content"],["id","cancel"],["data-dismiss","modal","attr.aria-label","Close",3,"click"],[1,"fa","fa-close",2,"font-size","16px"],["id","cam","autoplay","",3,"hidden"],[1,"preview",3,"src","hidden"],["id","canvas","width","640","height","480",3,"hidden"],[1,"camera-buttons"],["attr.aria-label","capture",3,"click","hidden"],[1,"fa","fa-camera",2,"font-size","36px"],["attr.aria-label","Retake",3,"click","hidden"],[1,"fa","fa-repeat",2,"font-size","36px"],["data-dismiss","modal","attr.aria-label","Submit",3,"click","hidden"],[1,"fa","fa-check",2,"font-size","36px"],[3,"click",4,"ngIf"],[3,"click"],["id","cam-switch","viewBox","0 0 512 512"],["d","M126.9 142.9c62.2-62.2 162.7-62.5 225.3-1L311 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H447.5c0 0 0 0 0 0H456c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L397.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C57.2 122 39.6 150.7 28.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM0 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L169 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H32.4h-.7H24c-13.3 0-24 10.7-24 24z"],["id","common-modal","bsModal","",1,"modal","fade","bs-example","modal--center"],["hidden","","type","button","data-toggle","modal","data-target","#uploadModal",1,"btn","btn-info","btn-lg"],[1,"container"],["id","uploadModal","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal","fade","modal--center"],[1,"modal-dialog"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],[1,"row","justify-content-center"],[1,"col-sm-6"],["data-dismiss","modal",1,"card","upload-options",3,"click"],[3,"src"],["class","col-sm-6",4,"ngIf"]],template:function(a,i){1&a&&e.DNE(0,lo,10,10,"form",14)(1,fo,9,6,"div",15)(2,uo,17,17,"div",16)(3,mo,15,14,"div",16)(4,po,19,20,"div",16)(5,ho,16,17,"div",16)(6,go,15,11,"div",16)(7,_o,12,8,"div",16)(8,bo,2,0,"button",17)(9,Co,24,10,"div",18)(10,yo,13,9,"div",19)(11,Po,5,6,"button",20)(12,Bo,28,14,"div",21),2&a&&(e.Y8G("ngIf",i.memberDocumentsList),e.R7$(),e.Y8G("ngIf",!i.showKycInAccount&&i.showAccountKyc),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons&&!i.isOptionalKYC),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons&&i.showSubmitPopup),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons),e.R7$(),e.Y8G("ngIf",i.showSubmitButtons))},dependencies:[ge.YU,ge.Sq,ge.bT,t.qT,t.xH,t.y7,t.me,t.wz,t.BC,t.cb,t.j4,t.JD,Ce.eC,Ae.m,De.e,Me.I0,Se.D9,Te.a],styles:['.helvetica-light[_ngcontent-%COMP%]{font-family:var(--default-font-light)!important}.helvetica-light[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}body[_ngcontent-%COMP%]{font-family:var(--default-font-light)!important;font-size:.9rem;font-weight:400;line-height:1rem!important;color:#000;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;background-color:#fff!important;letter-spacing:1px;width:100%;height:100%}body[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.tk-scriptorama-tradeshow-jf[_ngcontent-%COMP%]{font-family:scriptorama-tradeshow-jf}html[_ngcontent-%COMP%]{font-size:16px!important}.helvetica-bold[_ngcontent-%COMP%]{font-family:var(--default-font-bold)!important}.helvetica-bold[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.helvetica-regular[_ngcontent-%COMP%]{font-family:var(--default-font-regular)}.helvetica-regular[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.btn[_ngcontent-%COMP%]{border-radius:0;display:inline-block;border-width:2px;border-style:solid;background-color:transparent;text-transform:uppercase;padding:9px 35px;cursor:pointer;min-height:40px;background-image:none;font-size:.8rem;font-family:var(--default-font-bold)!important;letter-spacing:1px;text-decoration:none;box-shadow:none;outline:none;transition:.3s ease}.btn[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.btn[_ngcontent-%COMP%]:focus{box-shadow:none!important}.btn.btn-primary[_ngcontent-%COMP%]{background-color:#ffc600;color:#000;border-color:#ffc600}body[_ngcontent-%COMP%]:not(.touch)   .btn.btn-primary[_ngcontent-%COMP%]:hover{background-color:#ffd544;border-color:#ffd544;color:#000}body[_ngcontent-%COMP%]:not(.touch)   .link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):hover{text-decoration:none}body[_ngcontent-%COMP%]:not(.touch)   .link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):active{text-decoration:underline!important}.btn.btn-primary[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active{background-color:#707070;border-color:#707070;color:#fff;transition-duration:0s}.btn.btn-secondary[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active{border-color:#000;background-color:transparent;color:#000;transition-duration:0s}.btn.btn-black[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active{border-color:#000;background-color:#000;color:#fff;transition-duration:0s}.product-breadcrumb-container[_ngcontent-%COMP%]   .col-12.col-sm-10[_ngcontent-%COMP%]{padding-right:0!important}.heart-wrapper[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:3;right:0;top:0}.heart-wrapper[_ngcontent-%COMP%]   .heart[_ngcontent-%COMP%]   i.fa.fa-heart-o[_ngcontent-%COMP%], .heart-wrapper[_ngcontent-%COMP%]   .heart[_ngcontent-%COMP%]   i.fa.fa-heart[_ngcontent-%COMP%]{font-size:1.875rem!important;height:24px!important}.btn.btn--sm[_ngcontent-%COMP%]{min-width:140px;padding:9px 15px}.btn.btn-secondary[_ngcontent-%COMP%]{border-color:#000;color:#000;background-color:transparent}.btn.btn-black[_ngcontent-%COMP%]{background-color:#000;color:#fff;border-color:#000}.btn.btn-black[_ngcontent-%COMP%]:hover{background-color:#707070;color:#fff;border-color:#707070}.btn.btn-secondary[_ngcontent-%COMP%]:hover{background-color:#000;color:#fff;border-color:#000}.btn-aria[_ngcontent-%COMP%]{border:none;background:none}.favorite--button[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#000;cursor:pointer}.popover--button[_ngcontent-%COMP%]{border:none;outline:none;background-color:#fff;cursor:pointer;text-decoration:underline;padding-left:1px;padding-right:1px;color:#000}.popover--button[_ngcontent-%COMP%]:hover{text-decoration:none}.no-padding[_ngcontent-%COMP%]{padding:0!important}.valign-center-text[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;text-align:center}.table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{padding:.5rem}.font-14[_ngcontent-%COMP%]{font-size:14px}.link--light[_ngcontent-%COMP%]{color:#000;cursor:pointer;text-decoration:underline}.link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):hover{text-decoration:none}.link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):active{text-decoration:underline!important}.font-13[_ngcontent-%COMP%]{font-size:13px}.font-15[_ngcontent-%COMP%]{font-size:15px}.font-16[_ngcontent-%COMP%]{font-size:16px}
1#header-countryname[_ngcontent-%COMP%]{font-size:14px}.backbtn[_ngcontent-%COMP%]{height:20px!important;color:#000!important;font-weight:100!important}*p[_ngcontent-%COMP%]{line-height:1.3rem}.pl-0[_ngcontent-%COMP%]{padding-left:0}.pr-0[_ngcontent-%COMP%]{padding-right:0}.pt-60[_ngcontent-%COMP%]{padding-top:60px}.pr-35[_ngcontent-%COMP%]{padding-right:35px!important}.mb-32[_ngcontent-%COMP%]{margin-bottom:32px}.my-32[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px}.ml-20[_ngcontent-%COMP%]{margin-left:20px}@keyframes _ngcontent-%COMP%_hover-on-mob--secondary{0%{background-color:#000;color:#fff}50%{background-color:#000;color:#fff}to{background:#fff;color:#000}}@keyframes _ngcontent-%COMP%_hover-on-mob--primary{0%{background-color:#ffc600}50%{background-color:#ffd544}to{background-color:#ffc600}}body.touch[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]:focus:not(:active){animation:_ngcontent-%COMP%_hover-on-mob--secondary 1.2s ease}body.touch[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:focus:not(:active){animation:_ngcontent-%COMP%_hover-on-mob--primary 1.2s ease}body.touch[_ngcontent-%COMP%]   .link--light[_ngcontent-%COMP%]:active{text-decoration:none!important}@media (min-width: 1600px){.col-hd-1[_ngcontent-%COMP%]{flex:0 0 8.333333%;max-width:8.333333%}.col-hd-2[_ngcontent-%COMP%]{flex:0 0 16.666667%;max-width:16.666667%}.col-hd-3[_ngcontent-%COMP%]{flex:0 0 25%;max-width:25%}.col-hd-4[_ngcontent-%COMP%]{flex:0 0 33.333333%;max-width:33.333333%}.col-hd-5[_ngcontent-%COMP%]{flex:0 0 41.666667%;max-width:41.666667%}.col-hd-6[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}.col-hd-7[_ngcontent-%COMP%]{flex:0 0 58.333333%;max-width:58.333333%}.col-hd-8[_ngcontent-%COMP%]{flex:0 0 66.666667%;max-width:66.666667%}.col-hd-9[_ngcontent-%COMP%]{flex:0 0 75%;max-width:75%}.col-hd-10[_ngcontent-%COMP%]{flex:0 0 83.333333%;max-width:83.333333%}.col-hd-11[_ngcontent-%COMP%]{flex:0 0 91.666667%;max-width:91.666667%}.col-hd-12[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}}.gap-5[_ngcontent-%COMP%]{gap:.5em}.product-limitation[_ngcontent-%COMP%]{line-height:1.2;font-weight:600}.limitation-content[_ngcontent-%COMP%]{max-height:110px!important;overflow-y:auto}.fw-600[_ngcontent-%COMP%]{font-weight:600}[_ngcontent-%COMP%]:root{--default-font-regular: helvetica-regular;--default-font-bold: helvetica-bold;--default-font-light: helvetica-light;--default-font-salina: "scriptorama-tradeshow-jf"}.enable-new-fonts[_ngcontent-%COMP%]{--default-font-regular: HelveticaNeueWorld-Roman, NotoSans-Regular;--default-font-bold: HelveticaNeueWorld-Bold, NotoSans-Bold;--default-font-light: HelveticaNeueWorld-Roman, NotoSans-Regular;--default-font-salina: Salina-Book}.header-title[_ngcontent-%COMP%]{text-align:center;color:#000;font-family:var(--default-font-bold)!important;font-size:36px;line-height:36px}.header-title[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.sub-title[_ngcontent-%COMP%]{font-family:var(--default-font-bold)!important;font-size:16px;margin-bottom:12px;margin-top:32px;line-height:1.5}.sub-title[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.correct-img[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:green;margin-left:10px;font-size:25px}.incorrect-img[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:red;margin-left:10px;font-size:25px}.h-42[_ngcontent-%COMP%]{height:42px}.photo-copy[_ngcontent-%COMP%]{height:160px!important;cursor:pointer}.image-text[_ngcontent-%COMP%]{color:#007bff;text-decoration:underline;position:absolute;cursor:pointer;width:max-content;margin-left:10px}.required-text[_ngcontent-%COMP%]{position:absolute;top:25px;padding-left:16px;font-style:italic;color:red}@media only screen and (min-width: 300px) and (max-width: 700px){.image-text[_ngcontent-%COMP%]{font-size:.8rem!important}}
1.image-name[_ngcontent-%COMP%]{position:absolute;width:max-content;margin-left:10px;word-wrap:break-word;overflow-wrap:break-word}.disable[_ngcontent-%COMP%]{pointer-events:none}.size-exceed[_ngcontent-%COMP%]{position:absolute;top:46px;padding-left:16px}.top-35[_ngcontent-%COMP%]{top:35px}.pan-size-exceed[_ngcontent-%COMP%]{position:absolute;top:40px;padding-left:16px}.fa[_ngcontent-%COMP%]{font-size:25px;margin:6px}.row[_ngcontent-%COMP%]{padding:.5rem;justify-content:center}[_ngcontent-%COMP%]::placeholder{font-size:14px}label[_ngcontent-%COMP%]{max-width:max-content}.camera-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around}#cancel[_ngcontent-%COMP%]{display:flex;justify-content:end}.camera-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #cancel[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background-color:#fff}@media (min-width: 992px){.modal-lg[_ngcontent-%COMP%]{width:50vw;height:60vh}}.upload-options[_ngcontent-%COMP%]{margin:3%}.upload-options[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#dedada}.upload-options[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;font-weight:700;color:#427df5;margin-top:1%}.upload-options[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:27%;height:27%;margin-top:3%}#cam-switch[_ngcontent-%COMP%]{width:36px;height:36px;margin-top:10%}.center[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:auto}.image-loader[_ngcontent-%COMP%]{top:26%;position:absolute;left:15%;cursor:pointer;border-radius:50%}.image-loader[_ngcontent-%COMP%]   .fa-spinner[_ngcontent-%COMP%]{animation:loading-bar-spinner 1.5s linear infinite}.confirm-dialog.modal-dialog[_ngcontent-%COMP%]{max-width:500px}.rows[_ngcontent-%COMP%]{padding:.5rem;justify-content:flex-start}.sub-title-text[_ngcontent-%COMP%]{font-family:var(--default-font-bold);font-size:36px;margin-bottom:12px;margin-top:32px;line-height:1.5}.sub-title-text[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.kycPending[_ngcontent-%COMP%]{color:orange}  .modal-open .modal{background-color:#00000075}  .width-max-content{width:max-content}.bot-1[_ngcontent-%COMP%]{bottom:1px}.bot-17[_ngcontent-%COMP%]{bottom:-17px;width:max-content}.bot-35[_ngcontent-%COMP%]{bottom:20px}.bot-16[_ngcontent-%COMP%]{bottom:16px}.top-20[_ngcontent-%COMP%]{top:20px}.border-line[_ngcontent-%COMP%]{padding-top:5px;margin-top:22px}.rejection[_ngcontent-%COMP%]{font-size:18px;font-family:var(--default-font-bold)}.rejection[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.text-truncate-lines-3[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.img-fluid[_ngcontent-%COMP%], .img-thumbnail[_ngcontent-%COMP%]{max-height:50vh}.template3[_ngcontent-%COMP%]   .kyc-document-min-height[_ngcontent-%COMP%]{min-height:200px;display:flex;justify-content:center;align-items:center}.border-block[_ngcontent-%COMP%]{padding:25px 29px;border:1px solid #D8D8D6;margin-bottom:32px}.disabled[_ngcontent-%COMP%]{pointer-events:none;background-color:#e9ecef}.invalid-field[_ngcontent-%COMP%]{border:1px solid red}']})}}return s})()},56721:(oe,Y,p)=>{p.r(Y),p.d(Y,{DocumentVerificationModule:()=>w});var C=p(60177),t=p(66172),J=p(50049),M=p(54438);const ee=[{path:"",component:J.u}];let I=(()=>{class B{static{this.\u0275fac=function(j){return new(j||B)}}static{this.\u0275mod=M.$C({type:B})}static{this.\u0275inj=M.G2t({imports:[t.iI.forChild(ee),t.iI]})}}return B})();var y=p(65311),h=p(89417),u=p(12700),b=p(86109),x=p(70814),_=p(71302),U=p(1571),d=p(85188);let w=(()=>{class B{static{this.\u0275fac=function(j){return new(j||B)}}static{this.\u0275mod=M.$C({type:B})}static{this.\u0275inj=M.G2t({providers:[_.ep],imports:[C.MD,I,y.H,h.X1.withConfig({callSetDisabledState:"whenDisabledForLegacyCode"}),u.yJ,b.l,x.S,U.E,d.mB]})}}return B})()},18091:(oe,Y,p)=>{p.d(Y,{i:()=>t});var C=p(3053);function t(J){const M=J.value?.toUpperCase();return/^([A-Z]){5}([0-9]){4}([A-Z]){1}?\S*$/.test(M)&&M.length===C.N.PanLength&&M?.split("")[3].toUpperCase()===C.N.PanHolderStatus?null:M?{invalidPan:!0}:null}},70814:(oe,Y,p)=>{p.d(Y,{S:()=>J,e:()=>t});
1var C=p(54438);let t=(()=>{class M{constructor(I){this.el=I}onInput(I){const y=I.target.selectionStart,h=I.target.selectionEnd,u=I.target.value.toUpperCase();this.el.nativeElement.value=u,I.target.setSelectionRange(y,h)}static{this.\u0275fac=function(y){return new(y||M)(C.rXU(C.aKT))}}static{this.\u0275dir=C.FsC({type:M,selectors:[["","appUppercase",""]],hostBindings:function(y,h){1&y&&C.bIt("input",function(b){return h.onInput(b)})}})}}return M})(),J=(()=>{class M{static{this.\u0275fac=function(y){return new(y||M)}}static{this.\u0275mod=C.$C({type:M})}static{this.\u0275inj=C.G2t({})}}return M})()},69811:(oe,Y,p)=>{p.d(Y,{V:()=>jt});var C=p(10467),t=p(54438),J=p(11796),M=p(22189),ee=p(54843),I=p(45312),y=p(71042),h=p(94252),u=p(3053),b=p(89417),x=p(53147),_=p(43962),U=p(18091),d=p(79419),w=p(85776),B=p(4449),O=p(59580),e=p(32266),j=p(64464),te=p(6120),V=p(72439),X=p(35605),H=p(68018),q=p(94175),z=p(85771),Q=p(35688),ie=p(55875),re=p(57919),ue=p(66178),pe=p(5373),he=p(66172),be=p(71302),Ie=p(93314),ve=p(88821),Se=p(10902),Be=p(92379),ge=p(60177),Ce=p(12700),Ae=p(86109),De=p(50779),Me=p(70814);const Te=["cameraErrorDetailModal"],xe=["cameraModalButton"],Ee=["VoidedCheck"],Ne=["deleteConfirmationModal"],Ve=["invalidDataModal"],we=["uploadOptionsModalButton"],Re=["panImageRef"],Oe=["deleteBonusProof"],Fe=()=>({ignoreBackdropClick:!0});function Ue(m,N){1&m&&(t.j41(0,"h3",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.bonusinfo.Bank Information")," "))}function je(m,N){1&m&&(t.j41(0,"p",28),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.bonusinfo.label1")," "))}function Ge(m,N){if(1&m){const n=t.RV6();t.j41(0,"div")(1,"json-schema-form",29),t.bIt("onChanges",function(l){t.eBV(n);const f=t.XpG(2);return t.Njj(f.onChanges(l))})("onSubmit",function(l){t.eBV(n);const f=t.XpG(2);return t.Njj(f.enableEmailCheckWhileEnroll?f.emailCheck(l):f.saveBonusInfo(l))})("valueChanges",function(l){t.eBV(n);const f=t.XpG(2);return t.Njj(f.changeInputValue(l))}),t.k0s()()}if(2&m){const n=t.XpG(2);t.AVh("hideValidation",n.bifComponentSettings.validationMessageInitialHide),t.R7$(),t.Y8G("widgets",n.bifComponentSettings.customWidgets)("framework",n.bifComponentSettings.selectedFrameWork)("form",n.bifComponentSettings.jsonFormObject)("options",n.bifComponentSettings.jsonFormOptions)}}function Le(m,N){if(1&m&&(t.j41(0,"div",30),t.nrm(1,"img",31),t.k0s()),2&m){const n=t.XpG(2);t.R7$(),t.FS9("src",n.sampleImage,t.B4B)}}function $e(m,N){1&m&&(t.j41(0,"h3",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.bonusinfo.Voided check/Passbook Page")," "))}function Ke(m,N){1&m&&(t.j41(0,"p",28),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.bonusinfo.label2")," "))}function ze(m,N){if(1&m){const n=t.RV6();t.j41(0,"button",47),t.bIt("click",function(){t.eBV(n);const l=t.XpG(4);return t.Njj(l.uploadDocumentImage("VoidedCheck"))}),t.k0s()}}function Ye(m,N){if(1&m){const n=t.RV6();t.j41(0,"button",48),t.bIt("click",function(){t.eBV(n);const l=t.XpG(4);return t.Njj(l.showConfirmationModal("VoidedCheck"))}),t.k0s()}}function Je(m,N){if(1&m&&(t.j41(0,"span",44)(1,"div"),t.EFF(2),t.k0s(),t.DNE(3,ze,1,0,"button",45)(4,Ye,1,0,"button",46),t.k0s()),2&m){const n=t.XpG(3);t.R7$(2),t.JRh(n.imageName),t.R7$(),t.Y8G("ngIf",n.condition),t.R7$(),t.Y8G("ngIf",n.condition)}}function me(m,N){if(1&m){const n=t.RV6();t.j41(0,"button",49),t.bIt("click",function(){t.eBV(n);const l=t.XpG(3);return t.Njj(l.uploadDocumentImage("VoidedCheck"))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"join.bonusinfo.Upload Document")))}function Xe(m,N){1&m&&(t.j41(0,"span",50),t.nrm(1,"i",51),t.k0s())}function We(m,N){1&m&&(t.j41(0,"span",52),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI("",t.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function Ze(m,N){1&m&&(t.j41(0,"span",52),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI("",t.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function He(m,N){1&m&&(t.j41(0,"span",53),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"join.kycDocument.Upload Missing document")))}function Qe(m,N){1&m&&(t.j41(0,"span",54),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"account.kycdocument.Invalid Format")))}function qe(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",32)(1,"div",33)(2,"span")(3,"div",34)(4,"img",35),t.bIt("error",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.showArchivedImg("void-image"))})("click",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.uploadDocumentImage("VoidedCheck"))}),t.k0s()(),t.DNE(5,Je,5,3,"span",36),t.nrm(6,"span",37),t.j41(7,"input",38,0),t.bIt("change",function(l){t.eBV(n);
1const f=t.XpG(2);return t.Njj(f.uploadVoidedCheck(l))})("change",function(l){t.eBV(n);const f=t.XpG(2);return t.Njj(f.onVoidImageChanges(l))}),t.k0s(),t.j41(9,"span"),t.DNE(10,me,3,3,"button",39),t.k0s(),t.DNE(11,Xe,2,0,"span",40)(12,We,3,3,"span",41)(13,Ze,3,3,"span",41)(14,He,3,3,"span",42)(15,Qe,3,3,"span",43),t.k0s()(),t.nrm(16,"br")(17,"br")(18,"br")(19,"br"),t.k0s()}if(2&m){const n=t.XpG(2);t.R7$(),t.Y8G("ngClass",n.isJoinPortal?"col-lg-10 col-md-11":"col-lg-12 col-md-11"),t.R7$(2),t.Y8G("ngClass",n.isJoinPortal?"col-lg-7":"col-lg-6"),t.R7$(),t.Y8G("ngClass",n.voidImage===n.defaultImgUrl?"w-100":"disable")("src",n.voidImage?n.voidImage:n.defaultImgUrl,t.B4B),t.R7$(),t.Y8G("ngIf",n.condition),t.R7$(5),t.Y8G("ngIf",!n.condition||!n.imageSizeCheck||!n.imageTypeCheck),t.R7$(),t.Y8G("ngIf",n.voidCheckImg),t.R7$(),t.Y8G("ngIf",!n.imageSizeCheck),t.R7$(),t.Y8G("ngIf",n.invalidVoidImageName),t.R7$(),t.Y8G("ngIf",n.imageMustUpload&&!n.isOptionalKYC),t.R7$(),t.Y8G("ngIf",!n.imageTypeCheck)}}function et(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",55,1)(2,"div",56)(3,"div",57)(4,"div",58)(5,"p",59),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",60)(9,"button",61),t.nI1(10,"translate"),t.bIt("keyup.enter",function(){t.eBV(n);const l=t.sdS(1);return t.XpG(2).deleteProof(),t.Njj(l.hide())})("click",function(){t.eBV(n);const l=t.sdS(1);return t.XpG(2).deleteProof(),t.Njj(l.hide())}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"button",62),t.nI1(14,"translate"),t.bIt("keyup.enter",function(){t.eBV(n);const l=t.sdS(1);return t.Njj(l.hide())})("click",function(){t.eBV(n);const l=t.sdS(1);return t.Njj(l.hide())}),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()()()}2&m&&(t.Y8G("config",t.lJ4(16,Fe)),t.R7$(6),t.SpI(" ",t.bMT(7,6,"corporate.header.Do you want to continue"),"?"),t.R7$(3),t.BMQ("aria-label",t.bMT(10,8,"corporate.common.Yes")),t.R7$(2),t.JRh(t.bMT(12,10,"corporate.common.Yes")),t.R7$(2),t.BMQ("aria-label",t.bMT(14,12,"corporate.common.No")),t.R7$(2),t.JRh(t.bMT(16,14,"corporate.common.No")))}function tt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",57)(1,"div",64),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",64),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"div",65)(8,"button",66),t.nI1(9,"translate"),t.bIt("click",function(){t.eBV(n),t.XpG();const l=t.sdS(1);return t.Njj(l.hide())}),t.EFF(10),t.nI1(11,"translate"),t.k0s()()()}2&m&&(t.R7$(2),t.JRh(t.bMT(3,4,"join.bonusinfo.Some informations are missing")),t.R7$(3),t.SpI(" ",t.bMT(6,6,"join.bonusinfo.If you want to submit,Please enter the missing informations")," "),t.R7$(3),t.BMQ("aria-label",t.bMT(9,8,"corporate.header.Ok")),t.R7$(2),t.JRh(t.bMT(11,10,"corporate.header.Ok")))}function ot(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",57)(1,"div",67)(2,"div",59),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",60)(9,"button",68),t.nI1(10,"translate"),t.bIt("click",function(){t.eBV(n),t.XpG();const l=t.sdS(1);return t.Njj(l.hide())}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"button",69),t.nI1(14,"translate"),t.bIt("click",function(){t.eBV(n),t.XpG();const l=t.sdS(1),f=t.XpG(2);return l.hide(),t.Njj(f.savePanProof())}),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()}2&m&&(t.R7$(3),t.JRh(t.bMT(4,6,"join.bonusinfo.Are you sure you want to submit your PAN Card?")),t.R7$(3),t.SpI(" ",t.bMT(7,8,"join.bonusinfo.You can only make any changes by contacting Customer Support")," "),t.R7$(3),t.BMQ("aria-label",t.bMT(10,10,"join.bonusinfo.cancel")),t.R7$(2),t.JRh(t.bMT(12,12,"join.bonusinfo.cancel")),t.R7$(2),t.BMQ("aria-label",t.bMT(14,14,"join.bonusinfo.save")),t.R7$(2),t.JRh(t.bMT(16,16,"join.bonusinfo.save")))}function it(m,N){if(1&m&&(t.j41(0,"div",55,2)(2,"div",56),t.DNE(3,tt,12,12,"div",63)(4,ot,17,18,"div",63),t.k0s()()),2&m){const n=t.XpG(2);t.Y8G("config",t.lJ4(3,Fe)),t.R7$(3),t.Y8G("ngIf",n.isJoinPortal||!n.panModal),t.R7$(),t.Y8G("ngIf",!n.isJoinPortal&&n.panModal)}}function nt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",70)(1,"div",71)(2,"button",72),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.submitBonusInfoForm())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&m){const n=t.XpG(2);t.R7$(2),t.Y8G("disabled",n.isDisableBonusSubmit),t.BMQ("aria-label",t.bMT(3,3,"account.countrySplash.SUBMIT")),t.R7$(2),t.SpI(" ",t.bMT(5,5,"account.countrySplash.SUBMIT")," ")}}function at(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",73)(1,"div",71)(2,"button",74),t.nI1(3,"translate"),t.bIt("mousedown",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.submitBonusInfoForm())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&m){const n=t.XpG(2);t.R7$(2),t.Y8G("disabled",n.disableBonusSave),t.BMQ("aria-label",t.bMT(3,3,"join.bonusinfo.save")),t.R7$(2),t.SpI(" ",t.bMT(5,5,"join.bonusinfo.save")," ")}}function st(m,N){if(1&m&&(t.j41(0,"div")(1,"div",15)(2,"div",16)(3,"div",17)(4,"div")(5,"h1",18),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.DNE(8,Ue,3,3,"h3",19)(9,je,3,3,"p",20),t.k0s(),t.nrm(10,"br")(11,"br"),t.DNE(12,Ge,2,6,"div",21),t.nrm(13,"br")(14,"br")(15,"br")(16,"br"),t.DNE(17,Le,2,1,"div",22),t.nrm(18,"br")(19,"br")(20,"br"),t.DNE(21,$e,3,3,"h3",19)(22,Ke,3,3,"p",20),t.k0s(),t.DNE(23,qe,20,11,"div",23)(24,et,17,17,"div",24),t.k0s()(),t.DNE(25,it,5,4,"div",24)(26,nt,6,7,"div",25)(27,at,6,7,"div",26),t.k0s()),2&m){const n=t.XpG();t.R7$(6),t.SpI(" ",t.bMT(7,12,"join.bonusinfo.Bonus Information")," "),t.R7$(2),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(3),t.Y8G("ngIf",n.bifComponentSettings.displayBonusInfoForm&&n.showSubmitButtons),t.R7$(5),t.Y8G("ngIf",n.showSubmitButtons&&n.checkoutConfig.showBonusSampleimage),t.R7$(4),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",n.isJoinPortal&&n.showSubmitButtons),t.R7$(),t.Y8G("ngIf",!n.isJoinPortal&&n.showSubmitButtons)}}function rt(m,N){if(1&m&&(t.j41(0,"div")(1,"div",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",87),t.EFF(5),t.k0s()()),2&m){const n=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,2,"account.kycdocument.Document rejected")),t.R7$(3),t.JRh(n.remarkPanProof)}
1}function ct(m,N){1&m&&(t.j41(0,"div",88)(1,"div",89),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",89),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&m&&(t.R7$(2),t.SpI(" ",t.bMT(3,2,"account.bonusinfo.There is a Problem with your PAN Card")," "),t.R7$(3),t.SpI(" ",t.bMT(6,4,"corporate.header.Contact Us")," "))}function lt(m,N){1&m&&(t.j41(0,"span",90),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Invalid Pan number")," "))}function dt(m,N){1&m&&(t.j41(0,"span",90),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Missing number")," "))}function ft(m,N){1&m&&(t.j41(0,"span",90),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Duplicate PAN Number")," "))}function ut(m,N){1&m&&(t.j41(0,"span",90),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Invalid Pan number")," "))}function mt(m,N){1&m&&(t.j41(0,"span",90),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Missing number")," "))}function pt(m,N){1&m&&(t.j41(0,"span",50),t.nrm(1,"i",51),t.k0s())}function ht(m,N){if(1&m){const n=t.RV6();t.j41(0,"span",101),t.bIt("click",function(){t.eBV(n);const l=t.XpG(4);return t.Njj(l.uploadDocumentImage("panImageRef"))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const n=t.XpG(4);t.Y8G("ngClass",n.panImage?"disable":""),t.R7$(),t.SpI(" ",t.bMT(2,2,"join.bonusinfo.upload Scanned Pan Card")," ")}}function gt(m,N){1&m&&(t.j41(0,"span",102),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Upload Missing document")," "))}function _t(m,N){1&m&&(t.j41(0,"span",103),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"join.kycDocument.Document upload size exceeded")," "))}function bt(m,N){1&m&&(t.j41(0,"span",104),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"account.kycdocument.Invalid Format")," "))}function It(m,N){1&m&&(t.j41(0,"span",104),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"account.kycdocument.Invalid File name")," "))}function vt(m,N){if(1&m){const n=t.RV6();t.j41(0,"button",107),t.bIt("click",function(){t.eBV(n);const l=t.XpG(5);return t.Njj(l.uploadDocumentImage("panImageRef"))}),t.nrm(1,"i",108),t.k0s()}}function Ct(m,N){if(1&m){const n=t.RV6();t.j41(0,"button",107),t.bIt("click",function(){t.eBV(n);const l=t.XpG(5);return t.Njj(l.showConfirmationModal("panImageRef"))}),t.nrm(1,"i",109),t.k0s()}}function yt(m,N){if(1&m&&(t.j41(0,"span",105)(1,"div"),t.EFF(2),t.k0s(),t.DNE(3,vt,2,0,"button",106)(4,Ct,2,0,"button",106),t.k0s()),2&m){const n=t.XpG(4);t.R7$(2),t.SpI(" ",n.panName," "),t.R7$(),t.Y8G("ngIf",!n.panSaved),t.R7$(),t.Y8G("ngIf",!n.panSaved)}}function Pt(m,N){1&m&&(t.j41(0,"span",50),t.nrm(1,"i",51),t.k0s())}function St(m,N){1&m&&(t.j41(0,"div")(1,"p",110),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&m&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"account.bonusinfo.Label4 To update PAN Card information ,contact Customer Support")," "))}function Ft(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",77)(1,"div",91)(2,"div",92)(3,"div",93)(4,"img",94),t.bIt("click",function(){t.eBV(n);const l=t.XpG(3);return t.Njj(l.uploadDocumentImage("panImageRef"))})("error",function(){t.eBV(n);const l=t.XpG(3);return t.Njj(l.showArchivedImg("panFrontImage"))}),t.k0s()(),t.DNE(5,pt,2,0,"span",40)(6,ht,3,4,"span",95)(7,gt,3,3,"span",96)(8,_t,3,3,"span",97)(9,bt,3,3,"span",98)(10,It,3,3,"span",98)(11,yt,5,3,"span",99),t.k0s(),t.j41(12,"input",100,3),t.bIt("change",function(l){t.eBV(n);const f=t.XpG(3);return t.Njj(f.uploadPanProof(l))}),t.k0s(),t.DNE(14,Pt,2,0,"span",40),t.k0s(),t.DNE(15,St,4,3,"div",7),t.nrm(16,"br")(17,"br")(18,"br")(19,"br"),t.k0s()}if(2&m){const n=t.XpG(3);t.R7$(4),t.Y8G("ngClass",n.panImage?"disable":"w-100")("src",n.panImage?n.panImage:n.defaultImgUrl,t.B4B),t.R7$(),t.Y8G("ngIf",n.panImageLoader),t.R7$(),t.Y8G("ngIf",!n.isPanImage),t.R7$(),t.Y8G("ngIf",!n.isFormValid&&!n.isOptionalKYC&&(null==n.verificationForm.controls.panNumber?null:n.verificationForm.controls.panNumber.value)&&!n.panImage&&!(n.uploadPanSizeExceed||n.invalidPanFileFormat||n.invalidPanFileName)),t.R7$(),t.Y8G("ngIf",n.uploadPanSizeExceed),t.R7$(),t.Y8G("ngIf",n.invalidPanFileFormat),t.R7$(),t.Y8G("ngIf",n.invalidPanFileName),t.R7$(),t.Y8G("ngIf",n.isPanImage),t.R7$(3),t.Y8G("ngIf",n.panImg),t.R7$(),t.Y8G("ngIf",n.panSaved)}}function kt(m,N){if(1&m&&(t.j41(0,"div",73)(1,"div",71)(2,"button",111),t.nI1(3,"translate"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()),2&m){const n=t.XpG(3);t.R7$(2),t.Y8G("disabled",!n.panValid||n.panSaved)("hidden",n.disablePanNumber||n.panSaved||!n.isPanImageShow),t.BMQ("aria-label",t.bMT(3,4,"join.bonusinfo.save")),t.R7$(2),t.SpI(" ",t.bMT(5,6,"join.bonusinfo.save")," ")}}function Bt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",76),t.nrm(1,"hr")(2,"br"),t.DNE(3,rt,6,4,"div",7),t.j41(4,"div",15)(5,"div",77)(6,"h3",27),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"div",28),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.DNE(12,ct,7,6,"div",78),t.j41(13,"div",79)(14,"div",80)(15,"input",81),t.nI1(16,"translate"),t.bIt("focus",function(){t.eBV(n);const l=t.XpG(2);return l.showPanError=!1,t.Njj(l.duplicatePanNumber=!1)})("blur",function(){t.eBV(n);const l=t.XpG(2);return l.showPanError=!0,t.Njj(l.trimPanNumber())}),t.k0s(),t.j41(17,"label",82),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"div",83),t.DNE(21,lt,3,3,"span",84)(22,dt,3,3,"span",84)(23,ft,3,3,"span",84),t.k0s(),t.j41(24,"div",83),t.DNE(25,ut,3,3,"span",84)(26,mt,3,3,"span",84),t.k0s()(),t.DNE(27,Ft,20,11,"div",85)(28,kt,6,8,"div",26),t.k0s()()}if(2&m){const n=t.XpG(2);t.R7$(3),t.Y8G("ngIf",n.remarkPanProof),t.R7$(4),t.JRh(t.bMT(8,15,"join.kycDocument.PAN Card")),t.R7$(3),t.SpI(" ",t.bMT(11,17,"join.kycDocument.Pan Label")," "),t.R7$(2),t.Y8G("ngIf",n.isPanRejected),t.R7$(3),t.Mz_("placeholder","",t.bMT(16,19,"join.kycDocument.Enter pan number")," "),t.Y8G("ngClass",n.disablePanNumber||n.panSaved?"disable-input"
1:""),t.R7$(3),t.JRh(t.bMT(19,21,"join.kycDocument.Enter pan number")),t.R7$(3),t.Y8G("ngIf",n.showPanError&&(null==n.verificationForm.controls.panNumber||null==n.verificationForm.controls.panNumber.errors?null:n.verificationForm.controls.panNumber.errors.invalidPan)&&n.verificationForm.controls.panNumber.touched),t.R7$(),t.Y8G("ngIf",n.showPanError&&!n.isFormValid&&(null==n.verificationForm.controls.panNumber||null==n.verificationForm.controls.panNumber.errors?null:n.verificationForm.controls.panNumber.errors.required)),t.R7$(),t.Y8G("ngIf",n.showPanError&&n.duplicatePanNumber),t.R7$(2),t.Y8G("ngIf",(null==n.verificationForm.controls.panNumber||null==n.verificationForm.controls.panNumber.errors?null:n.verificationForm.controls.panNumber.errors.pattern)&&n.verificationForm.controls.panNumber.touched),t.R7$(),t.Y8G("ngIf",!n.isFormValid&&(null==n.verificationForm.controls.panNumber||null==n.verificationForm.controls.panNumber.errors?null:n.verificationForm.controls.panNumber.errors.required)),t.R7$(),t.Y8G("ngIf",n.isPanImageShow),t.R7$(),t.Y8G("ngIf",!n.isJoinPortal)}}function At(m,N){if(1&m){const n=t.RV6();t.j41(0,"form",75),t.bIt("ngSubmit",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.onSave())}),t.DNE(1,Bt,29,23,"div",14),t.k0s()}if(2&m){const n=t.XpG();t.Y8G("formGroup",n.verificationForm),t.R7$(),t.Y8G("ngIf",!n.isJoinPortal&&n.isShowPan)}}function Dt(m,N){if(1&m&&(t.j41(0,"div",112)(1,"section")(2,"div",113),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",114)(6,"h6"),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()),2&m){const n=t.XpG();t.R7$(3),t.SpI(" ",t.bMT(4,3,"join.bonusinfo.Bonus Information")," "),t.R7$(4),t.Lme(" ",t.bMT(8,5,"join.bonusinfo.*Bonus Information can be configured only for the Home Country"),"(",null==n.userInfo?null:n.userInfo.homeCountryCode,") ")}}function Mt(m,N){1&m&&t.nrm(0,"button",115,4)}function Tt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",135),t.bIt("click",function(){t.eBV(n);const l=t.XpG(3);return t.Njj(l.switchCamera())}),t.qSk(),t.j41(1,"svg",136),t.nrm(2,"path",137),t.k0s()()}}function xt(m,N){if(1&m&&(t.j41(0,"span"),t.DNE(1,Tt,3,0,"div",134),t.k0s()),2&m){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",""==n.previewUrl)}}function Et(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",116)(1,"div",117)(2,"div",16)(3,"div",118)(4,"div",119)(5,"div",120)(6,"span",121)(7,"button",122),t.bIt("click",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.cancel())}),t.nrm(8,"i",123),t.k0s()(),t.nrm(9,"video",124)(10,"img",125)(11,"canvas",126),t.j41(12,"div",127)(13,"span")(14,"button",128),t.bIt("click",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.capture())}),t.nrm(15,"i",129),t.k0s()(),t.DNE(16,xt,2,1,"span",7),t.k0s(),t.j41(17,"div",127)(18,"span")(19,"button",130),t.bIt("click",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.reTake())}),t.nrm(20,"i",131),t.k0s()(),t.j41(21,"span")(22,"button",132),t.bIt("click",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.submit())}),t.nrm(23,"i",133),t.k0s()()()()()()()()()}if(2&m){const n=t.XpG();t.R7$(9),t.Y8G("hidden",""!=n.previewUrl),t.R7$(),t.xc7("height",n.capturedImageHeight),t.Y8G("src",n.previewUrl,t.B4B)("hidden",""==n.previewUrl),t.R7$(),t.Y8G("hidden",!0),t.R7$(3),t.Y8G("hidden",""!=n.previewUrl),t.R7$(2),t.Y8G("ngIf",!n.isDesktop),t.R7$(3),t.Y8G("hidden",""==n.previewUrl),t.R7$(3),t.Y8G("hidden",""==n.previewUrl)}}function Nt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",138,5)(2,"div",56)(3,"div",57)(4,"div",58)(5,"p",59),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",60)(9,"button",61),t.nI1(10,"translate"),t.bIt("keyup.enter",function(){t.eBV(n);const l=t.sdS(1);return t.Njj(l.hide())})("click",function(){t.eBV(n);const l=t.sdS(1);return t.Njj(l.hide())}),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()()()}if(2&m){const n=t.XpG();t.R7$(6),t.SpI(" ",t.bMT(7,3,"join.kycDocument."+n.cameraErrorMessage),""),t.R7$(3),t.BMQ("aria-label",t.bMT(10,5,"corporate.common.Yes")),t.R7$(2),t.JRh(t.bMT(12,7,"corporate.header.Ok"))}}function Vt(m,N){1&m&&(t.j41(0,"button",139,6),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&m&&(t.BMQ("aria-label",t.bMT(2,2,"join.kycDocument.Upload")),t.R7$(3),t.JRh(t.bMT(4,4,"join.kycDocument.Upload")))}function wt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",145)(1,"div",146),t.bIt("click",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.gisLoad())}),t.nrm(2,"img",147),t.j41(3,"p"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&m){const n=t.XpG(2);t.R7$(2),t.Y8G("src",n.uploadOptionsImageUrl+"/drive.png",t.B4B),t.R7$(2),t.JRh(t.bMT(5,2,"join.kycDocument.Google Drive"))}}function Rt(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",145)(1,"div",146),t.bIt("click",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.openDropboxChoose())}),t.nrm(2,"img",147),t.j41(3,"p"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&m){const n=t.XpG(2);t.R7$(2),t.Y8G("src",n.uploadOptionsImageUrl+"/dropbox.png",t.B4B),t.R7$(2),t.JRh(t.bMT(5,2,"join.kycDocument.Dropbox"))}}function Ot(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",145)(1,"div",146),t.bIt("click",function(){t.eBV(n);const l=t.XpG(2);return t.Njj(l.launchOneDrivePicker())}),t.nrm(2,"img",147),t.j41(3,"p"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&m){const n=t.XpG(2);t.R7$(2),t.Y8G("src",n.uploadOptionsImageUrl+"/one-drive.png",t.B4B),t.R7$(2),t.JRh(t.bMT(5,2,"join.kycDocument.Microsoft OneDrive"))}}function Ut(m,N){if(1&m){const n=t.RV6();t.j41(0,"div",76)(1,"div",140)(2,"div",141)(3,"div",120)(4,"div",142)(5,"h4",143),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"button",144),t.EFF(9,"\xd7"),t.k0s()(),t.j41(10,"div",58)(11,"div",76)(12,"div",15)(13,"div",145)(14,"div",146),t.bIt("click",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.uploadFromLocal())}),t.nrm(15,"img",147),t.j41(16,"p"),t.EFF(17),t.nI1(18,"translate"),t.k0s()()(),t.DNE(19,wt,6,4,"div",148)(20,Rt,6,4,"div",148)(21,Ot,6,4,"div",148),t.j41(22,"div",145)(23,"div",146),t.bIt("click",function(){t.eBV(n);const l=t.XpG();return t.Njj(l.isCameraOn?"":l.clickCamrea())}),t.nrm(24,"img",147),t.j41(25,"p"),t.EFF(26),t.nI1(27,"translate"),t.k0s()()()()()()()()()()}if(2&m){const n=t.XpG();t.R7$(6),t.JRh(t.bMT(7,8,"join.kycDocument.File upload")),t.R7$(9),t.Y8G("src",n.uploadOptionsImageUrl+"/folder.png",t.B4B),t.R7$(2),t.JRh(t.bMT(18,10,"join.kycDocument.Local Storage")),t.R7$(2),t.Y8G("ngIf",n.enableGoogleDrive),t.R7$(),t.Y8G("ngIf",n.enableDropB
1ox),t.R7$(),t.Y8G("ngIf",n.enableOneDrive),t.R7$(3),t.Y8G("src",n.uploadOptionsImageUrl+"/camera-icon.png",t.B4B),t.R7$(2),t.JRh(t.bMT(27,12,"join.kycDocument.Camera"))}}let jt=(()=>{class m{constructor(n,r,l,f,P,A,k,T,K,W,ce,se,Gt,Lt,$t,Kt,zt,Yt,Jt,Xt,Wt,Zt,Ht,Qt){var le,qt=this;this.deviceService=n,this._checkoutMessageService=r,this._configurationService=l,this._elementRef=f,this._addressService=P,this._renderer=A,this._chRef=k,this._commonService=T,this._translatePipe=K,this._personalInfoConfigService=W,this._translateKey=ce,this.cacheService=se,this.appMessageService=Gt,this.documentKycService=Lt,this.cdf=$t,this.fb=Kt,this._myAccountService=zt,this.notificationService=Yt,this.router=Jt,this.imageCompress=Xt,this.checkoutService=Wt,this.checkoutConfigService=Zt,this.loaderService=Ht,this.cloudAuthService=Qt,this.bifComponentSettings=new J.a,this.bonusInfoSubmit=new t.bkB,this.bonusInfoSubmitOnInputChange=new t.bkB,this.imageSizeCheck=!0,this.imageTypeCheck=!0,this.condition=!1,this.imageMustUpload=!1,this.image=!0,this.voidImage="",this.defaultImgUrl="",this.uploadOptionsImageUrl=I.c.cdnURL+"/portals/titan-ecommerce/template1/assets/images",this.constraints={video:{facingMode:{ideal:"environment"}}},this.mediaStream=null,this.previewUrl="",this.isCameraOn=!1,this.pickerApiLoad=!1,this.voidCheckImg=!1,this.isJoinPortal=window.location.href.includes("join"),this.imageType="",this.uploadPanSizeExceed=!1,this.invalidPanFileFormat=!1,this.isPanImage=!1,this.panImg=!1,this.uploadPanText=h.b.uploadPanText,this.isFormValid=!0,this.panSaved=!1,this.bonusSaved=!1,this.panValid=!1,this.panModal=!1,this.disableBonusSave=!0,this.isShowPan=!1,this.isPanRetain=!1,this.isPanRejected=!1,this.generateCdn=!1,this.showSubmitButtons=!0,this.isOptionalKYC=!1,this.showPanError=!1,this.pollCount=0,this.options={success:le=>{this.driveCallBack(le,le[0].link,le[0].name)},cancel:function(){},appKey:"",linkType:"direct",multiselect:!1,extensions:[".jpeg",".jpg",".png",".pdf"],folderselect:!1},this.odOptions={clientId:"",action:"query",multiSelect:!1,openInNewWindow:!1,advanced:{queryParameters:"select=id,name,size,file,folder,photo,@microsoft.graph.downloadUrl",filter:".png,.jpg,.jpeg,.pdf",navigation:{sourceTypes:["OneDrive","Recent","Sites"]}},success:(le=(0,C.A)(function*(_e){qt.driveCallBack(_e,_e.value[0]["@microsoft.graph.downloadUrl"],_e.value[0].name)}),function(oo){return le.apply(this,arguments)}),cancel:function(){},error:le=>{console.log(le)}},this.remarkPanProof="",this.isPanImageShow=!0,this.enableOneDrive=I.c.enableOneDrive,this.enableGoogleDrive=I.c.enableGoogleDrive,this.enableDropBox=I.c.enableDropBox,this.invalidVoidImageName=!1,this.invalidPanFileName=!1,this.validFileNamePattern=h.b.validFileNamePattern,this.duplicatePanNumber=!1,this.enableEmailCheckWhileEnroll=I.c.enableEmailCheckWhileEnroll,this.setDefaultImage()}ngOnInit(){const n=this.cacheService.get(y.w.JoinFlowType);this.joinFpcFlowType=n===O.B.FPC,this.userInfo=this.cacheService.get(y.w.UserInfo);let r=this.cacheService.get(y.w.LoginedUserInfo),l=I.c.kycEnableCountries;if(l.indexOf(",")>-1){let f=I.c.kycEnableCountries.split(",");this.showBonusInAccount=f.indexOf(JSON.stringify(r?.address?.countryId))>-1}else this.showBonusInAccount=r&&r?.address?.countryId===JSON.parse(l);window.location.href.includes("account")&&this.showBonusInAccount&&(this.getBasicInfo(),this.getBonusDetails()),(this.isJoinPortal||this.showBonusInAccount)&&(this.loadDefaultSettings(),this.buildForm(),this.getMemberDetails(),this.showBonusFieldRequired=this.appMessageService.getShowBonusFieldRequired().subscribe({next:f=>{(f.target.name===h.b.accountNumber||f.target.name===h.b.accountReferenceNumber||f.target.name===h.b.bankRoutingNumber||f.target.name===h.b.bankName||f.target.name===h.b.branchName||f.target.name===h.b.sortCode)&&this.reloadJsonObject()}}))}loadSettings(){this.patchInformation(),this.checkFormValid(),this.listenpanDocumentChanges(),this.listenpanProofImageChanges(),this.setSampleimage(),this.checkImageArchived()}getMemberDetails(){const n=this.cacheService.get(y.w.UserInfo);n?this.documentKycService.getMemberDocuments(n.memberId).subscribe({next:r=>{this.cacheService.set(y.w.MemberDocuments,r),this.loadSettings()}}):this.loadSettings()}loadDefaultSettings(){this.bifComponentSettings.isoCountryCode=this._configurationService.getCountryCode().toLocaleLowerCase(),this.personalInfoConfig=this._personalInfoConfigService.getSettings(this.bifComponentSettings.isoCountryCode),this.checkoutConfig=this.checkoutConfigService.getSettings(this.bifComponentSettings.isoCountryCode),this.isOptionalKYC=this.checkoutConfig?.isKYCoptionalOnlyForFPC&&this.joinFpcFlowType,this.isJoinPortal&&this.getBonusInfoJsonSchema()}setSampleimage(){this.cacheService.getCookieValue(y.w.countryCode),this.sampleImage=`${I.c.cdnURL}/portals/titan-ecommerce/template1/assets/images/cheque.jpg`}emailCheck(n){if(this.isJoinPortal&&this.checkoutConfig.enableEmailCheck){this.loaderService.start(),this.isDisableBonusSubmit=!0;let r=this.cacheService.get(y.w.CheckoutInformation);this.checkoutService.verifyEmailAccountExists(r?.personalInformation?.email,"verifyEmail").subscribe({next:l=>{l&&l.isSuccess?this.processEmailCheck(l,n):this.saveBonusInfo(n)},error:l=>{this.saveBonusInfo(n)}})}else this.saveBonusInfo(n)}processEmailCheck(n,r){(n.requestStatus===w.Gi.QUEUED||n.requestStatus===w.Gi.IN_PROGRESS)&&this.pollCount<I.c.longPollCount?(this.pollCount++,this.checkoutService.processPollRequest(n.location+"&searchCriteria=verifyEmail&ngsw-bypass=true").subscribe({next:l=>{this.processEmailCheck(l,r)},error:l=>{this.saveBonusInfo(r)}})):n.requestStatus===w.Gi.COMPLETED?n.memberId&&this.navigateToWelcome(n.memberId):(this.notificationService.createNotification("",this._translatePipe.instant("join.otpVerification.We are sorry. Something went wrong"),_._.ERROR),this.loaderService.stop(),this.isDisableBonusSubmit=!1)}navigateToWelcome(n){const r=this.cacheService.getCookieValue(y.w.countryCode),l=this.cacheService.getCookieValue(y.w.languageCode),f=`join/${r.toLowerCase()}/${l.toLowerCase()}/member/${n}`;this.router.navigate([f])}saveBonusInfo(n){this.isDisableBonusSubmit=!0,this.panModal=!1;let l=!1,f=this.cacheService.get(y.w.CheckoutInformation);l=!(n&&n.accountNumber&&n.accountReferenceNumber)||this.equalToValidator(n.accountNumber,n.accountReferenceNumber);const P=this.getParsedSchemaFormJson(this.bifComponentSettings.originalJsonFormObject),A=Object.keys(P.schema.properties),k=this.bifComponentSettings.liveFormData;if(this.voidImage==this.defaultImgUrl&&(A.forEach(T=>{P.schema.required.splice(T),P.schema.properties[T].placeholder?.endsWith("*")&&(P.schema.properties[T].placeholder=P.schema.properties[T].placeholder.slice(0,-1)),P.data=this.bifComponentSettings.liveFormData,this.bifComponentSettings.jsonFormObject=P}),"{}"!==JSON.stringify(k)&&!this.isOptionalKYC&&(this.imageMustUpload=!0,this.isDisableBonusSubmit=!1,this.loaderService.stop())),n&&l){if(0==this.bankCodes||!this.bankCodes){const T=this.cacheService?.getCookieValue(y.w.countryCode);this.checkoutConfigService?.getSettings(T)?.displayBankBranchCodeDetails&&this.getBankBranchCode()}if((0,d.Im)(n)||this.voidImage!=this.defaultImgUrl||this.isOptionalKYC)if(1==this.imageMustUpload)this.voidImage!=this.defaultImgUrl&&(this.imageMustUpload=!1);else{if(Date.now().toString(),!this.isJoinPortal){let K=this.cacheService.get(y.w.UserInfo);const W=this.cacheService.getCookieValue(y.w.countryCode);n.countryCode=W.toUpperCase();const ce=this.cacheService.get(y.w.StoreConfiguration);
1n.storeId=ce?.id,this._myAccountService.updateMemberBankDetails(K.memberId,n,null).subscribe({next:se=>{this.bifComponentSettings.liveFormData=se,this.bifComponentSettings.liveFormData.accountReferenceNumber=se.accountNumber,this.getBonusInfoJsonSchema()}}),this.notificationService.createNotification("",this._translatePipe.instant("account.bonusinfo.Bonus information updated successfully"),_._.SUCCESS),this.disableBonusSave=!0}this.saveDocument(h.b.bonus,n),this.voidImage!=this.defaultImgUrl||(this.isJoinPortal&&this.checkInfoAvailable(),this.setInformation())}else this.imageMustUpload=!0,this.imageSizeCheck=!0,this.imageTypeCheck=!0,this.invalidVoidImageName=!1,this.reloadJsonObject(),this.invalidDataModal.show();this.submitBonusInfo(n,!(!this.preloadBonusInformation||!this.preloadBonusInformation.isAutoPopulate)),this.submitBonusInfo(n,!1),this.hideErrorElement(!0)}else this.voidImage==this.defaultImgUrl&&(0,d.Im)(k)&&!this.checkoutConfig.isBonusMandatory?(this.submitBonusInfo(n,!1),this.hideErrorElement(!1),this.isJoinPortal&&this.checkInfoAvailable()):(this.reloadJsonObject(),this.hideErrorElement(!1),this.invalidDataModal.show(),this._commonService.scrollTo("bonus-info",1e3),this.isDisableBonusSubmit=!1,this.loaderService.stop());this.checkoutConfig?.isKYCMandatory&&!(0,d.Im)(k)&&(f.bonusInformation.accountName=k.accountName,f.bonusInformation.accountNumber=k.accountNumber,f.bonusInformation.accountType=k.accountType,f.bonusInformation.bankName=k.bankName,f.bonusInformation.branchName=k.branchName,f.bonusInformation.branchNumber=k.branchNumber,f.bonusInformation.payType=k.payType,f.bonusInformation.bankNumber=k.bankNumber,this.cacheService.set(y.w.CheckoutInformation,f))}getBankBranchCode(){this.bankCodes=[],this._commonService.getBankBranchCode().subscribe({next:n=>{this.bankCodes=n},error:n=>{console.error("Error fetching bank branch code",n)}})}checkInfoAvailable(){if(this.checkoutConfig.checkCountryMisMatch){const A=this.cacheService.getCookieValue(y.w.EnrollCountryCode);if(-1===window.location.href.indexOf(A.toLowerCase()))return void this.appMessageService.setCountryMisMatch(!0)}const n=this.cacheService.getCookieValue(y.w.CountryCode),r=this.cacheService.getCookieValue(y.w.EnrollCountryCode),l=this.cacheService.getCookieValue(y.w.languageCode).toLowerCase(),f=this.cacheService.get(y.w.CheckoutInformation);if(!f?.personalInformation&&!f?.sponsorInformation)return this.notificationService.createNotification("",this._translatePipe.instant("join.otpVerification.We are sorry. Something went wrong"),_._.ERROR),void(this._commonService.isEnableNewJoinFlow(n)?this.router.navigate([`/join/${n}/${l}/fbo-enrollment`]):this._commonService.isEnableNewJoinPage(n)?this.router.navigate([`/join/${n}/${l}/join-forever`]):this.router.navigate([`/join/${n}/${l}/welcome`]));const P=this.cacheService.get(y.w.JoinCartSessionInfo);this.checkoutConfig.navigateToShippingAfterKYC&&P&&P.items&&P.items.length>0?this.router.navigate([`/join/${r}/${l}/checkout/shipping`]):this.appMessageService.setPlaceOrder(!0)}submitBonusInfo(n,r){this.bifComponentSettings.bonusInfoFormValidated=r,n?this.bifComponentSettings.bonusInformation=this._commonService.trimObjectValues(n):this.hideErrorElement(!1),this.bonusInfoSubmit.emit(this.bifComponentSettings)}submitBonusInfoForm(){if(!this.bifComponentSettings.bonusInfoFormValidated){const n=this._elementRef.nativeElement.getElementsByClassName("bonus-info__btn");n&&n[0]&&n[0].click()}}getBonusInfoJsonSchema(){const r=this.cacheService.getCookieValue(y.w.countryCode).toLowerCase()+"-bonus-info-new.json";this._addressService.getJsonFormSchema(r).subscribe({next:l=>{this.bifComponentSettings.displayBonusInfoForm=!1,this.bifComponentSettings.jsonFormObject=this.getParsedSchemaFormJson(l),this.bifComponentSettings.jsonFormObject.data=this.bifComponentSettings?.liveFormData,this.bifComponentSettings.originalJsonFormObject=l,this.prePopulateUserInfoFields(this.bifComponentSettings.jsonFormObject),this.findErrorElement()}})}getParsedSchemaFormJson(n){let r=null;try{r=JSON.parse(n),r=this.getTranslatedSchemaData(r)}
1catch{try{r=null}catch{return}}return r}findErrorElement(){this.bifComponentSettings.interval=setInterval(()=>{document.getElementsByClassName("help-block").length>0&&this.hideErrorElement(!0)},100),setTimeout(()=>{this.bifComponentSettings.validationMessageInitialHide=!1},1e3)}hideErrorElement(n){const r=this._elementRef.nativeElement.getElementsByClassName("help-block");if(r){for(let l=0;l<r.length;l++)n?(this._renderer.addClass(r[l],"hide"),this._renderer.removeClass(r[l],"show")):(this._renderer.addClass(r[l],"show"),this._renderer.removeClass(r[l],"hide"));clearInterval(this.bifComponentSettings.interval)}}onChanges(n){("object"==typeof this.bifComponentSettings.liveFormData?0===Object.keys(this.bifComponentSettings.liveFormData).length:this.bifComponentSettings.liveFormData)&&(this.imageMustUpload=!1),this.activeEle=document.activeElement,this.bifComponentSettings.liveFormData=n,this.personalInfoConfig.bonusInfoDynamicValidation&&this.activeEle.name!=h.b.accountNumber&&this.activeEle.name!=h.b.accountReferenceNumber&&this.activeEle.name!=h.b.bankRoutingNumber&&this.activeEle.name!=h.b.bankName&&this.activeEle.name!=h.b.branchName&&this.activeEle.name!=h.b.sortCode&&this.reloadJsonObject(),this.activeEle.name!=h.b.accountNumber&&this.activeEle.name!=h.b.accountReferenceNumber&&this.activeEle.name!=h.b.bankRoutingNumber&&this.activeEle.name!=h.b.bankName&&this.activeEle.name!=h.b.branchName&&this.activeEle.name!=h.b.sortCode&&this.reloadJsonObject(),this.voidImage==this.defaultImgUrl&&(0,d.Im)(n)&&!this.isJoinPortal&&this.reloadJsonObject(),this.voidImage===this.defaultImgUrl&&(0,d.Im)(n)&&this.setInformation()}changeInputValue(n){this.bifComponentSettings.bonusInfoFormValidated=!1,this.bonusInfoSubmitOnInputChange.emit(this.bifComponentSettings),this.disableBonusSave=!1}prePopulateUserInfoFields(n){if(this.bifComponentSettings.jsonFormObject=n,this.preloadBonusInformation)this.bifComponentSettings.jsonFormObject.data=this.preloadBonusInformation;else{let r=this.cacheService.get(y.w.CheckoutInformation);r?.bonusInformation&&this.bifComponentSettings.jsonFormObject&&(this.bifComponentSettings.jsonFormObject.data=r.bonusInformation)}this.bifComponentSettings.jsonFormObject=this.getTranslatedSchemaData(this.bifComponentSettings.jsonFormObject)}getTranslatedSchemaData(n){if(n&&n.schema&&n.schema.properties){const r=Object.keys(n.schema.properties);r&&r.forEach(l=>{let f=n.schema.properties[l].placeholder||n.schema.properties[l].selectText;f.endsWith("*")&&(f=f.slice(0,-1));let P=this._translatePipe.instant("join.schemaform."+f);if(P=P||f,n.schema.required&&n.schema.required.indexOf(l)>-1&&(P+="*"),P=this._translateKey.transform(P,!1)||P,n.schema.properties[l].placeholder?n.schema.properties[l].placeholder=P:n.schema.properties[l].selectText&&(n.schema.properties[l].selectText=P),n.schema.properties[l].uniqueValidationMessage){const k=n.schema.properties[l].uniqueValidationMessage;let T=this._translatePipe.instant("join.schemaform."+k);T=T||k,T=this._translateKey.transform(T,!1)||T,n.schema.properties[l].uniqueValidationMessage=T}n.schema.properties[l].validationMessages&&Object.keys(n.schema.properties[l].validationMessages).forEach(T=>{if(T){const K=n.schema.properties[l].validationMessages[T];if(K){let W=this._translatePipe.instant("join.schemaform."+K);W=W||K,W=this._translateKey.transform(W,!1)||W,n.schema.properties[l].validationMessages[T]=W}}})})}if(n&&n.form){const r=n.form;for(let l=0;l<r.length;l++)r[l].items=this.searchButtonTitle(r[l].items)}return this.bifComponentSettings.displayBonusInfoForm=!0,n}reloadJsonObject(){const n=this.getParsedSchemaFormJson(this.bifComponentSettings.originalJsonFormObject),r=Object.keys(n.schema.properties),l=this.bifComponentSettings.liveFormData;r.forEach(f=>{this.voidImage!=this.defaultImgUrl||l?this.voidImage&&this.voidImage!=this.defaultImgUrl||"{}"!==JSON.stringify(l)||this.checkoutConfig.isBonusMandatory?(this.checkoutConfig.isKYCMandatory||f!==M.P.BANKROUTINGNUMBER&&(n.schema.required.push(f),n.schema.properties[f].placeholder=n.schema.properties[f].placeholder+"*",this.generateCdn=!0),n.data=this.bifComponentSettings.liveFormData,this.bifComponentSettings.jsonFormObject=n):(n.schema.required.splice(f),n.schema.properties[f].placeholder?.endsWith("*")&&(n.schema.properties[f].placeholder=n.schema.properties[f].placeholder.slice(0,-1)),n.data=this.bifComponentSettings.liveFormData,this.bifComponentSettings.jsonFormObject=n,this.disableBonusSave=!0):(n.data=this.bifComponentSettings.liveFormData,this.bifComponentSettings.jsonFormObject=n,this.disableBonusSave=!0)})}
1searchButtonTitle(n){return n&&n.forEach(r=>{if(r.title){let f=this._translatePipe.get("join.schemaform."+r.title).value;f=this._translateKey.transform(f,!1),r.title=f}r.items&&r.items instanceof Array&&this.searchButtonTitle(r.items)}),n}readFileAsync(n,r){return new Promise((l,f)=>{let P=new FileReader;const A=I.c.uiTemplateBaseUrl+"/images/pdf.ico";P.readAsDataURL(n),P.onload=()=>{l(r===h.b.pdfType?{img:A,base64:P.result}:P.result)},P.onerror=f})}uploadVoidedCheck(n){var r=this;return(0,C.A)(function*(){if(n.target.files){(new FileReader).readAsDataURL(n.target.files[0]),r.file=n.target.files[0];const f=n.target.files[0].size;r.fileType=n.target.files[0].type,r.bonusFileUrl=yield r.readFileAsync(r.file,r.fileType),r.imageName=n.target.files[0].name;const{name:P}=n.target.files[0];r.invalidVoidImageName=!1,"image/png"===r.fileType||"image/jpg"===r.fileType||"image/jpeg"===r.fileType||r.fileType===h.b.pdfType?r.validFileNamePattern.test(P)?f/1048576>2?(r.imageSizeCheck=!1,r.condition=!1,r.voidImage=r.defaultImgUrl,r.imageTypeCheck=!0,r.imageMustUpload=!1):r.fileType===h.b.pdfType?(r.voidImage=I.c.uiTemplateBaseUrl+"/images/pdf.ico",r.condition=!0,r.imageSizeCheck=!0,r.imageTypeCheck=!0,r.imageMustUpload=!1,r.disableBonusSave=!1,r.reloadJsonObject(),r.isJoinPortal&&r.uploadMedia(h.b.bonus,r.file)):(r.voidImage=r.bonusFileUrl,r.accountImage=r.voidImage,r.setInformation(),r.condition=!0,r.imageSizeCheck=!0,r.imageTypeCheck=!0,r.imageMustUpload=!1,r.disableBonusSave=!1,r.reloadJsonObject(),r.cdnUrl=""):(r.invalidVoidImageName=!0,r.imageTypeCheck=!0,r.imageMustUpload=!1,r.condition=!1,r.imageSizeCheck=!0,r.voidImage=r.defaultImgUrl):(r.imageTypeCheck=!1,r.condition=!1,r.voidImage=r.defaultImgUrl,r.imageSizeCheck=!0,r.imageMustUpload=!1)}})()}onVoidImageChanges(n){this.reloadJsonObject()}deleteVoidedCheck(){const n=this.cacheService.getCookieValue(y.w.countryCode);this.voidImage=`${I.c.cdnURL}/portals/titan-ecommerce/template1/assets/images/${n.toLowerCase()}_default_image.png`,this.imageName=null,this.condition=!1,this.disableBonusSave=!1,this.imageFile="",this.previewUrl="",this.hideErrorElement(!0),this.setInformation(),this.reloadJsonObject()}setInformation(n,r,l){var f=this;return(0,C.A)(function*(){if(r===h.b.pan?f.panCdnUrl=n||l:f.bonusCdnUrl=n||l,f.isJoinPortal){const P=f.bifComponentSettings.liveFormData;let A=f.cacheService.get(y.w.CheckoutInformation)||{};A.bonusInformation={image:yield f.compressFile(f.voidImage),name:f.imageName,accountName:P.accountName,bankName:P.bankName,accountType:P.accountType,payType:P.payType,branchName:P.branchName,branchNumber:P.branchNumber,accountNumber:P.accountNumber,accountNumberVerify:P.accountReferenceNumber,accountReferenceNumber:P.accountReferenceNumber,bankRoutingNumber:P.bankRoutingNumber,docTypeID:17,sortCode:P.sortCode,bonusFileUrl:yield f.compressFile(f.bonusFileUrl),panFileUrl:f.panFileUrl,panImage:yield f.compressFile(f.panImage),panName:f.panName,panImagebase64:f.panImagebase64,memberDocumentId:null,value:null,bonusCdnUrl:f.bonusCdnUrl||f.panCdnUrl,bankNumber:P.bankNumber};const k=f.cacheService?.getCookieValue(y.w.countryCode);(f.checkoutConfigService?.getSettings(k)).displayBankBranchCodeDetails&&(A.bonusInformation.branchNumber=f.bankCodes&&f.bankCodes.length>0?f.bankCodes?.find(K=>K.bankName===P.bankName)?.branchCode:null),f.cacheService.set(y.w.CheckoutInformation,A),f.isJoinPortal&&n&&f.checkInfoAvailable()}else{const P=f.cacheService.get(y.w.IdentificationDetail),A=f.bifComponentSettings.liveFormData;let k=f.cacheService.get(y.w.MemberDocuments)||{};k.accountInformation={image:yield f.compressFile(f.voidImage),name:f.imageName,bankName:A.bankName,branchName:A.branchName,accountNumber:A.accountNumber,accountNumberVerify:A.accountReferenceNumber,bankRoutingNumber:A.bankRoutingNumber,docTypeID:17,sortCode:A.sortCode,bonusFileUrl:yield f.compressFile(f.bonusFileUrl),panFileUrl:f.panFileUrl,panImage:yield f.compressFile(f.panImage),panName:f.panName,panImagebase64:f.panImagebase64,memberDocumentId:null,value:null,bonusCdnUrl:f.bonusCdnUrl||f.panCdnUrl,identificationId:P?.[0]?.identificationTypeID,identificationType:P?.[0]?.identificationType},f.cacheService.set(y.w.MemberDocuments,k)}})()}patchInformation(){if(this.isJoinPortal){const n=this.cacheService.get(y.w.CheckoutInformation);n?.bonusInformation&&(this.voidImage=n.bonusInformation?.image,this.imageName=n.bonusInformation?.name,this.panName=n.bonusInformation?.panName,this.panImagebase64=n.bonusInformation?.panImagebase64,this.verificationForm.controls.panNumber.value=n?.bonusInformation?.panValue,n.bonusInformation.image&&n.bonusInformation.image!=this.defaultImgUrl&&(this.condition=!0),this.panImage&&(this.isPanImage=!0))}}unSetImage(){if(this.isJoinPortal){const n=this.cacheService.get(y.w.CheckoutInformation);n?.bonusInformation?.image&&(n.bonusInformation.image=this.defaultImgUrl),this.cacheService.set(y.w.CheckoutInformation,n)}else{const n=this.cacheService.get(y.w.MemberDocuments);n?.accountInformation?.image&&(n.accountInformation.image=this.defaultImgUrl),this.cacheService.set(y.w.MemberDocuments,n)}}showConfirmationModal(n){this.deleteConfirmationModal.show(),this.proofType=n}deleteProof(){"VoidedCheck"==this.proofType?this.deleteVoidedCheck():this.deletePanImage()}dataURLtoFile(n,r){if(n&&n!==this.defaultImgUrl){if(n.includes(h.b.signedUrl))return n;let l=n.split(","),f=l[0].match(/:(.*?);/)[1],P=atob(l[1]),A=P.length,k=new Uint8Array(A);for(;A--;)k[A]=P.charCodeAt(A);return new File([k],r,{type:f})}}getBonusInformation(){return this.bifComponentSettings.liveFormData||null}uploadDocumentImage(n){this.imageType=n,this.uploadOptionsModalButton.nativeElement.click()}uploadFromLocal(){"panImageRef"==this.imageType?this.panImageRef.nativeElement.click():this.VoidedCheck.nativeElement.click()}clickCamrea(){this.loaderService.start(),this.previewUrl="",this.isDesktop=this.deviceService.isDesktop(),this.isCameraOn=!0,this.video=document.getElementById("cam"),this.canvas=document.getElementById("canvas"),this.video.setAttribute("autoplay",""),this.video.setAttribute("muted",""),this.video.setAttribute("playsinline",""),navigator.mediaDevices.getUserMedia(this.constraints).then(n=>{this.mediaStream=n,this.video.srcObject=n,this.video.play(),$("#myModal").is(":visible")||this.cameraModalButton.nativeElement.click(),this.loaderService.stop()}).catch(n=>{this.loaderService.stop(),this.isCameraOn=!1,"NotFoundError"==n.name||"DevicesNotFoundError"==n.name?(this.cameraErrorMessage="Your device has no camera",this.cameraErrorDetailModal.show()):"NotReadableError"==n.name||"TrackStartError"==n.name?(this.cameraErrorMessage="Camera is already in use",this.cameraErrorDetailModal.show()):"NotAllowedError"==n.name||"PermissionDeniedError"==n.name?(this.cameraErrorMessage="allow camera access to take picture",this.cameraErrorDetailModal.show()):"OverconstrainedError"==n.name||"ConstraintNotSatisfiedError"==n.name?(this.cameraErrorMessage="Your device has no camera",this.cameraErrorDetailModal.show()):(this.cameraErrorMessage="something went wrong",this.cameraErrorDetailModal.show())})}capture(){const n=this.video.getBoundingClientRect();this.capturedImageHeight=n.height+"px",this.canvas.getContext("2d").drawImage(this.video,0,0,640,480),this.previewUrl=this.canvas.toDataURL("image/png")}reTake(){this.previewUrl=""}cancel(){this.stopVideoStream(),this.previewUrl="",this.isCameraOn=!1}switchCamera(){"user"==this.constraints.video.facingMode.ideal?(this.constraints.video.facingMode.ideal="environment",this.stopVideoStream(),this.clickCamrea()):(this.constraints.video.facingMode.ideal="user",this.stopVideoStream(),this.clickCamrea())}submit(n){n?"VoidedCheck"===this.documentKycService.imageType?(this.voidImage=this.previewUrl,this.imageFile=this.blobFile,this.file=this.blobFile,this.fileType=this.blobFile.type,this.bonusFileUrl=this.fileUrl,this.voidCheckImg=!this.voidCheckImg,this.imageMustUpload=!1,this.invalidVoidImageName=!1,this.cdf.detectChanges(),this.blobFile.type===h.b.pdfType&&this.isJoinPortal&&this.uploadMedia(h.b.bonus,this.blobFile)):(this.panImage=this.previewUrl,this.imageFile=this.blobFile,this.panFile=this.blobFile,this.panFileType=this.blobFile.type,this.panFileUrl=this.fileUrl,(this.panImage||this.verificationForm.value.panNumber)&&(this.panValid=!(!this.panImage||!this.verificationForm.value.panNumber||this.verificationForm.controls.panNumber.errors)),this.panImageLoader=!this.panImageLoader,this.cdf.detectChanges(),this.isPanImage=!0,this.blobFile.type===h.b.pdfType&&this.isJoinPortal&&this.uploadMedia(h.b.bonus,this.blobFile)):this.isCameraOn&&("VoidedCheck"==this.imageType?(this.stopVideoStream(),this.imageName="Bonus Information Proof.png",this.isCameraOn=!1,this.voidImage=this.previewUrl,this.condition=!0,this.disableBonusSave=!1,this.imageFile=this.dataURLtoFile(this.voidImage,this.imageName),this.imageSizeCheck=!0,this.imageTypeCheck=!0,this.imageMustUpload=!1,this.invalidVoidImageName=!1,this.previewUrl.match(/^data:image\/(png);base64,/i)&&(this.fileType=h.b.pngImageType)):(this.stopVideoStream(),this.panName="Pan Proof.png",this.isCameraOn=!1,this.panImage=this.previewUrl,this.isPanImage=!0,this.imageFile=this.dataURLtoFile(this.panImage,this.imageName),this.uploadPanSizeExceed=!1,this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,(this.panImage||this.verificationForm.value.panNumber)&&(this.panValid=!(!this.panImage||!this.verificationForm.value.panNumber||this.verificationForm.controls.panNumber.errors)),this.previewUrl.match(/^data:image\/(png);base64,/i)&&(this.panFileType=h.b.pngImageType))),this.reloadJsonObject(),this.setInformation(),this.setIdentificationId()}gisLoad(){var n=this;return(0,C.A)(function*(){const r=yield n.cloudAuthService.getCloudAuth(B.h.googleClientId);n.tokenClient=google.accounts.oauth2.initTokenClient({client_id:r,scope:I.c.googleScope,callback:()=>n.onPickerApiLoad()}),n.gapiLoad(),n.createPicker()})()}onPickerApiLoad(){this.pickerApiLoad=!0}gapiLoad(){gapi.load("client:picker",this.initializePicker)}initializePicker(){return(0,C.A)(function*(){yield gapi.client.load("https://www.googleapis.com/discovery/v1/apis/drive/v3/rest").then(n=>{})})()}createPicker(){var n=this;const r=()=>{const l=new google.picker.DocsView(google.picker.ViewId.DOCS);l.setMimeTypes("image/png,image/jpeg,image/jpg,application/pdf"),l.setMode(google.picker.DocsViewMode.GRID),(new google.picker.PickerBuilder).addView(l).setOAuthToken(this.accessToken).setDeveloperKey(this.cloudAuthService.getCloudAuth(B.h.googleApiKey)).setAppId(I.c.googleProjectId).setCallback(function(){var P=(0,C.A)(function*(A){if(A.action===google.picker.Action.PICKED){n.spinnerSelector(!0,n.imageType),n.documentKycService.imageType=n.imageType;const k=A[google.picker.Response.DOCUMENTS][0],T=k[google.picker.Document.ID];try{let K=yield gapi.client.drive.files.get({fileId:T,alt:"media"});const W=`data:${K.headers["Content-Type"]};base64,${btoa(K.body)}`;k.mimeType!=h.b.pdfType&&n.selectedFileSize(W,k.name)?(n.previewUrl=W,n.fileUrl=W,n.submit(!0)):k.mimeType===h.b.pdfType&&n.selectedFileSize(W,k.name)?(n.previewUrl=I.c.uiTemplateBaseUrl+"/images/pdf.ico",n.fileUrl=W,n.submit(!0)):(n.panValid=!1,n.spinnerSelector(!1,n.documentKycService.imageType),n.cdf.detectChanges())}catch(K){console.log(K)}}});return function(A){return P.apply(this,arguments)}}()).build().setVisible(!0)};this.tokenClient.callback=function(){var l=(0,C.A)(function*(f){if(void 0!==f.error)throw f;n.accessToken=f.access_token,r()});return function(f){return l.apply(this,arguments)}}(),this.tokenClient.requestAccessToken(null===this.accessToken?{prompt:"consent"}:{prompt:""})}
1stopVideoStream(){this.mediaStream.getTracks().forEach(n=>{n.stop()})}openDropboxChoose(){var n=this;return(0,C.A)(function*(){const r=yield n.cloudAuthService.getCloudAuth(B.h.dropBoxApiKey);n.options.appKey=String(r),Dropbox.choose(n.options)})()}launchOneDrivePicker(){var n=this;return(0,C.A)(function*(){const r=yield n.cloudAuthService.getCloudAuth(B.h.oneDriveClientId);n.odOptions.clientId=String(r),OneDrive.open(n.odOptions)})()}dropBoxResponse(n,r){var l=this;return(0,C.A)(function*(){let f=yield fetch(r);return l.blobFile=yield f.blob(),new Promise((P,A)=>{let k=new FileReader;const T=I.c.uiTemplateBaseUrl+"/images/pdf.ico";k.addEventListener("load",()=>{P(l.blobFile.type==h.b.pdfType?{img:T,base64:k.result}:k.result)},!1),k.onerror=()=>A(l),k.readAsDataURL(l.blobFile)})})()}selectedFileSize(n,r){const l=this.documentKycService.imageType;let f=this.appendFileExtension(n&&n.base64?n.base64:n,r);n&&n.base64?(this.blobFile=this.dataURLtoFile(n.base64,f),this.selectedFilesSize=this.blobFile.size):(this.blobFile=this.dataURLtoFile(n,f),this.selectedFilesSize=this.blobFile.size);const P=this.selectedFilesSize/Math.pow(1024,2),A=this.validFileNamePattern.test(r);if(P<=2&&A)return"VoidedCheck"===l?(this.invalidVoidImageName=!1,this.condition=!0,this.imageName=f,this.imageSizeCheck=!0,this.imageTypeCheck=!0,this.imageMustUpload=!1,this.disableBonusSave=!1):(this.isPanImage=!0,this.panName=f,this.invalidPanFileFormat=this.uploadPanSizeExceed=!1,this.invalidPanFileName=!1),!0;A?P>2&&("VoidedCheck"===l?(this.condition=!1,this.imageSizeCheck=!1,this.imageTypeCheck=!0,this.imageMustUpload=!1,this.invalidVoidImageName=!1,this.voidImage=this.defaultImgUrl):(this.isPanImage=!1,this.uploadPanSizeExceed=!0,this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,this.panImage="")):"VoidedCheck"===l?(this.invalidVoidImageName=!0,this.imageTypeCheck=!0,this.imageMustUpload=!1,this.condition=!1,this.imageSizeCheck=!0,this.voidImage=this.defaultImgUrl):(this.isPanImage=!1,this.uploadPanSizeExceed=!1,this.invalidPanFileFormat=!1,this.invalidPanFileName=!0,this.panImage="")}onSave(){var n=this;return(0,C.A)(function*(){n.loaderService.start(),yield n.validatePanNumber(),setTimeout(()=>{if(n.verificationForm.controls.panNumber.errors)return void n.loaderService.stop();n.panModal=!0,n.loaderService.stop(),n.invalidDataModal.show();let r=n.checkFormValid();n.isFormValid=r,r||(n.uploadPanSizeExceed=n.invalidPanFileFormat=!1)},500)})()}savePanProof(){this.panValid&&(this.loaderService.start(),this.saveDocument(h.b.pan))}saveDocument(n,r){const f=this.cacheService.get(y.w.MemberDocuments)?.memberDocuments?.filter(T=>T?.proofTypeID==x.VC.PanProof),P=f?f[f?.length-1]?.frontSideURL:"",A=Date.now().toString(),k=this.cacheService.get(y.w.CheckoutInformation);this.cdnUrl=k?.bonusInformation?.bonusCdnUrl,(!this.panSaved||!this.bonusSaved)&&((this.bonusFileUrl||n===h.b.pan&&!P||this.panFile||this.isJoinPortal||this.previewUrl)&&!this.cdnUrl?(n===h.b.pan?this.uploadDocument(h.b.pan):this.voidImage!=this.defaultImgUrl&&this.uploadDocument(h.b.bonus),"object"==typeof this.imageFile||"string"==typeof this.imageFile&&!this.imageFile.includes(h.b.signedUrl)&&this.imageFile?this.documentKycService.uploadDocument(this.imageFile,A).subscribe({next:T=>{this.setInformation(T.url,n),n===h.b.pan?(this.panSaved=!0,this.panCdnUrl=T.url):(this.bonusCdnUrl=T.url,this.verificationForm.controls.panNumber.value=this.verificationForm.controls.panNumber.value?this.verificationForm.controls.panNumber.value:"",this.bonusFileUrl=""),this.isJoinPortal||this.updateDetails(n)}}):this.imageFile?.includes(h.b.signedUrl)&&(n===h.b.pan&&(this.panSaved=!0),this.isJoinPortal||this.updateDetails(n))):this.cdnUrl&&this.isJoinPortal?this.setInformation(this.cdnUrl,n):this.updateDetails(n))}getPageConfig(n,r){return n?.filter(l=>l.name===r)[0]?.pageConfig}setProofImage(n,r,l){var f=this;return(0,C.A)(function*(){if(l?.split(".")?.pop()?.toLowerCase()===h.b.pdf)return f.checkImageAccessibility(l,n),I.c.uiTemplateBaseUrl+"/images/pdf.ico";if(l){const P=new URL(l).pathname.slice(1);return yield(yield(0,ee._)(f.documentKycService.generateProfileImageSignedCDNURL(decodeURIComponent(P)))).data[decodeURIComponent(P)]}})()}checkImageAccessibility(n,r){var l=this;return(0,C.A)(function*(){const f=new URL(n).pathname.slice(1),A=yield(yield(0,ee._)(l.documentKycService.generateProfileImageSignedCDNURL(decodeURIComponent(f)))).data[decodeURIComponent(f)];fetch(A,{method:"GET"}).then(k=>{k.ok?console.log("Image is accessible."):l.showArchivedImg(r)}).catch(k=>{console.error("Error checking image accessibility:",k)})})()}
1showDetails(n){if(this.documentKycService.getDocumentType().subscribe({next:r=>{this.documentTypeRes=r?.documentTypes;var l=r?.documentTypes.filter(P=>P.proofTypeID==x.VC.PanProof),f=l?.length-1;l[f]?.proofTypeID==x.VC.PanProof&&(this.isShowPan=!0,this.documentTypeId=l[f]?.documentName[0].id,this.proofTypeId=l[f]?.proofTypeID,this.panList=this.documentTypeRes?.filter(P=>P?.proofTypeID===x.VC.PanProof))}}),!this.isJoinPortal){this.cacheService.get(y.w.MemberDocuments);const l=this.cacheService.get(y.w.UserInfo);this.documentKycService.getMemberDocuments(l.memberId).subscribe({next:f=>{this.cacheService.set(y.w.MemberDocuments,f);var A=f.memberDocuments?.filter(T=>T?.proofTypeID==x.VC.PanProof);A.length>0&&(this.initialPanValue=A[0].value);var P=f.memberDocuments?.filter(T=>T?.proofTypeID==x.VC.AgeProof);P.length>0&&P[0].documentName==x.Hs.PAN_CARD&&(this.initalAgePanValue=P[0].value);var k=A?.length-1;if((A[k]?.proofTypeID==x.VC.PanProof||A[k]?.proofTypeID==x.VC.AgeProof&&(A[k]?.status!=x.UZ.rejectedId||A[k]?.proofTypeID!=x.UZ.ApprovedId))&&n!=h.b.bonus&&(this.sourceId===x.HY.DataMigration&&A[k]?.value&&!A[k]?.frontSideURL&&(this.isPanImageShow=!1),this.panName=A[k]?.frontSideURL?.split("/").pop()?.split("?")[0].split(/_(.*)/s)[1],this.setProofImage("panFrontImage",this.panName,A[k]?.frontSideURL).then(T=>this.panImage=T),this.verificationForm.patchValue({panNumber:A[k]?.value}),this.isPanImage=!!A[k]?.value,this.isPanRetain=!!A[k]?.value,this.panSaved=!!A[k]?.value,this.verificationForm.value.panNumber&&(this.disablePanNumber=!0,267===f.memberDocuments.filter(K=>K.proofTypeID===x.VC.PanProof)[0]?.status?(this.panSaved=!1,this.disablePanNumber=!1):this.verificationForm.controls.panNumber.disable())),A=f.memberDocuments?.filter(T=>T?.proofTypeID==x.VC.bonusProof),k=A?.length-1,A[k]?.proofTypeID==x.VC.bonusProof&&n!=h.b.pan&&(this.imageName=A[k]?.frontSideURL.split("/").pop()?.split("?")[0].split(/_(.*)/s)[1],this.setProofImage("void-image",this.imageName,A[k]?.frontSideURL).then(T=>this.voidImage=T),this.condition=!0,this.disableBonusSave=!0,this.bonusCdnUrl=A[k]?.frontSideURL),f?.panStatus?.toUpperCase()===x.UZ.Rejected){const T=f.memberDocuments.filter(K=>K.proofTypeID===x.VC.PanProof);267===T[0].status&&(this.remarkPanProof=T[0].rejectionRemark),this.panSaved=!1,this.disablePanNumber=!1,this.isPanRejected=!0}else this.remarkPanProof=""}})}}isAllowedFileExtension(n,r){const l=n.target.files[0].name,f=l.split(".").pop();return[this.validFileNamePattern.test(l),r.indexOf(f.toLowerCase())>-1]}checkFormValid(){return this.panImage||this.verificationForm.value.panNumber?this.panValid=!(!this.panImage||!this.verificationForm.value.panNumber||this.verificationForm.controls.panNumber.errors):this.uploadPanSizeExceed=this.invalidPanFileFormat=!1,this.panValid}buildForm(){this.verificationForm=this.fb.group({panNumber:["",U.i],panProofImage:[""]}),this.panDocumentFormSubscription=this.verificationForm.controls.panNumber.valueChanges,this.panProofImageSubscription=this.verificationForm.controls.panNumber.valueChanges}listenpanDocumentChanges(){this.panDocumentFormSubscription.subscribe({next:n=>{n?(this.cacheService.get(y.w.IdentificationDetail)||this.setIdentificationId(),this.panFile&&this.setInformation(),this.verificationForm.controls.panProofImage.addValidators([b.k0.required]),this.verificationForm.controls.panProofImage.updateValueAndValidity({onlySelf:!1,emitEvent:!1}),this.checkFormValid()):(this.verificationForm.controls.panProofImage.removeValidators([b.k0.required]),this.verificationForm.controls.panProofImage.updateValueAndValidity({onlySelf:!1,emitEvent:!1}),this.setInformation()),this.uploadPanSizeExceed=!1,this.invalidPanFileFormat=!1,this.invalidPanFileName=!1,this.isFormValid=!0,this.panValid&&this.setInformation()}})}listenpanProofImageChanges(){this.panProofImageSubscription.subscribe({next:n=>{n?(this.cacheService.get(y.w.IdentificationDetail)||this.setIdentificationId(),this.addPanValidation()):this.removePanNumberValidations(),this.checkFormValid(),this.isFormValid=!0}})}addPanValidation(){this.verificationForm.controls.panNumber.addValidators([b.k0.required]),this.verificationForm.controls.panNumber.updateValueAndValidity({onlySelf:!1,emitEvent:!1})}removePanNumberValidations(){this.verificationForm.controls.panNumber.removeValidators([b.k0.required]),this.verificationForm.controls.panNumber.updateValueAndValidity({onlySelf:!1,emitEvent:!1})}uploadPanProof(n){var r=this;return(0,C.A)(function*(){r.panFile=n.target.files[0],r.panFileType=n.target.files[0].type;const{size:l,name:f,type:P}=r.panFile,A=l/Math.pow(1024,2),[k,T]=r.isAllowedFileExtension(n,u.N.allowedExtensions);
1if(r.invalidPanFileName=!1,A<=2&&T&&k){r.uploadPanSizeExceed=r.invalidPanFileFormat=!1,r.panFile=n.target.files[0];const W=yield r.readFileAsync(r.panFile,P);r.panFileUrl=W,r.panImage=W.img?W.img:W,r.panImagebase64=W.base64?W.base64:"",r.panName=f,r.setInformation(),r.isPanImage=!0,r.setIdentificationId()}else T&&k?(r.removePanNumberValidations(),r.uploadPanSizeExceed=!0,r.invalidPanFileFormat=!1,r.panValid=!1,r.panImage="",r.isPanImage=!1):(r.removePanNumberValidations(),r.invalidPanFileFormat=!T,r.invalidPanFileFormat=!0,r.panValid=!1,r.uploadPanSizeExceed=!1,r.panImage="",r.isPanImage=!1,r.invalidPanFileName=!k);n.target.files[0].type===h.b.pdfType&&T&&r.isJoinPortal&&r.uploadMedia(h.b.pan,r.panFile),(r.panImage||r.verificationForm.value.panNumber)&&(r.panValid=!(!r.panImage||!r.verificationForm.value.panNumber||r.verificationForm.controls.panNumber.errors))})()}spinnerSelector(n,r){"VoidedCheck"===r?this.voidCheckImg=!this.voidCheckImg:this.panImageLoader=!this.panImageLoader}deletePanImage(){this.panImage=null,this.panName=null,this.isPanImage=!1,this.setInformation(),this.panValid=!1}getBonusDetails(){const n=this.cacheService.get(y.w.StoreConfiguration),l={memberId:this.cacheService.get(y.w.UserInfo)?.memberId,operatingCompany:n?.homeIsocodeThree,storeCountryId:n?.id};this._myAccountService.getMemberBankDetails(l.memberId,l).subscribe({next:f=>{f&&(this.bifComponentSettings.liveFormData=f,this.bifComponentSettings.liveFormData.accountReferenceNumber=f.accountNumber),this.getBonusInfoJsonSchema()},error:f=>{this.getBonusInfoJsonSchema()}})}uploadDocument(n){this.imageFile="";const r=this.cacheService.get(y.w.CheckoutInformation),l=this.cacheService.get(y.w.MemberDocuments);return this.fileType===h.b.pngImageType&&n===h.b.bonus?(this.imageFile=this.dataURLtoFile(this.voidImage,r?.bonusInformation?.name?r?.bonusInformation?.name:this.imageName),this.imageFile):this.panFileType===h.b.pngImageType&&n===h.b.pan?(this.imageFile=this.dataURLtoFile(this.panImage,l?.accountInformation?.panName?l?.accountInformation?.panName:this.panName),this.imageFile):(this.isJoinPortal&&(r?.bonusInformation?.bonusFileUrl?.base64?(r?.bonusInformation?.bonusFileUrl?.base64?.includes(h.b.pdfType)&&(this.fileType=h.b.pdfType),n===h.b.bonus&&(this.file=r?.bonusInformation?.bonusFileUrl?.base64)):r?.bonusInformation?.bonusFileUrl?.includes(h.b.pdfType)&&(this.fileType=h.b.pdfType,n===h.b.bonus&&(this.file=r?.bonusInformation?.bonusFileUrl))),this.fileType!=h.b.pdfType&&!this.imageFile&&n===h.b.bonus&&(this.imageFile=this.dataURLtoFile(this.voidImage,r?.bonusInformation?.name?r?.bonusInformation?.name:this.imageName)),this.panFileType!=h.b.pdfType&&!this.imageFile&&n===h.b.pan&&(this.imageFile=this.dataURLtoFile(this.panImage,l?.accountInformation?.panName?l?.accountInformation?.panName:this.panName)),this.imageFile||(this.imageFile=n===h.b.bonus?this.file:this.panFile),this.imageFile)}driveCallBack(n,r,l){this.spinnerSelector(!0,this.imageType),this.documentKycService.imageType=this.imageType,this.dropBoxResponse(n,r).then(f=>{this.selectedFileSize(f,l)?(this.previewUrl=f&&f.base64?f.img:f,this.submit(!0)):(this.spinnerSelector(!1,this.documentKycService.imageType),this.cdf.detectChanges())}).catch(f=>{console.log(f)})}compressFile(n){var r=this;return(0,C.A)(function*(){if("string"==typeof n&&n?.includes(I.c.cdnURL)||n?.base64?.includes(h.b.pdfType))return n;if(n)try{if(r.dataURLtoFile(n.base64?n.base64:n).size/Math.pow(1024,2)>.2){const f=yield r.imageCompress.compressFile(n.base64?n.base64:n,0,50,50),P=yield r.imageCompress.compressFile(f,0,50,50);return n.base64?{img:n.img,base64:P}:P}return n}catch{return null}})()}setIdentificationId(){this.checkoutService.getGovernmentIdentificationTypes().subscribe({next:n=>{const r=this.cacheService.get(y.w.StoreConfiguration),l=n?.filter(f=>f.countryID==r.countryId&&f.identificationType.toUpperCase()===u.N.Pan.toUpperCase());this.cacheService.set(y.w.IdentificationDetail,l)}})}equalToValidator(n,r){return!(!n||!r)&&n===r}updateDetails(n){let r=this.cacheService.get(y.w.UserInfo),l=this.cacheService.get(y.w.MemberDocuments);const f=l?.accountInformation?.bonusCdnUrl;var P=l?.memberDocuments?.filter(K=>K.proofTypeID==x.VC.bonusProof);let A,k,T={memberId:r.memberId,distributorId:r.distributorId,kycSubmitted:!1,panSubmitted:!0};if(n===h.b.bonus)A={docTypeID:17,bonusCdnUrl:this.bonusCdnUrl||f,s3DeletionBonusCdnUrl:P[0]?.frontSideURL!=this.bonusCdnUrl?P[0]?.frontSideURL:"",value:0,memberDocumentId:P[0]?.id?P[0].id:null},T.bonusInfo=A,T.panSubmitted=!1,this._myAccountService.uploadAccountKycDocs(T).subscribe({next:K=>{this.notificationService.createNotification("",this._translatePipe.instant("account.bonusinfo.Bonus information updated successfully"),_._.SUCCESS),this.patchInformation(),this.showDetail
1s(n)},error:K=>this.notificationService.createNotification("",this._translatePipe.instant("account.bonuBonus Information Not Upated"),_._.ERROR)});else{const K=l.memberDocuments?.filter(se=>se.proofTypeID==x.VC.PanProof);let W;this.panImage.includes(h.b.signedUrl)&&267===K[0].status&&(W=K[0].frontSideURL),A={docTypeID:this.documentTypeId,bonusCdnUrl:this.panCdnUrl||f||W||K[K?.length-1]?.frontSideURL,s3DeletionBonusCdnUrl:K[0]?.frontSideURL!=this.panCdnUrl?K[0]?.frontSideURL:"",value:this.verificationForm.value.panNumber.toUpperCase(),memberDocumentId:K[0]?.id},T.bonusInfo=A,T.panSubmitted=!0;const ce=this.cacheService.get(y.w.IdentificationDetail);k=[{identificationId:ce?.[0]?.identificationTypeID,identificationType:ce?.[0]?.identificationType,value:this.verificationForm.value.panNumber.toUpperCase()}],T.identifications=k,this._myAccountService.uploadAccountKycDocs(T).subscribe({next:se=>{se?.documents[0]?.frontSideURL&&se?.documents[0]?.value&&(this.loaderService.stop(),this.notificationService.createNotification("",this._translatePipe.instant("account.bonusinfo.Pan Information Upated Successfully"),_._.SUCCESS),n===h.b.bonus?this.bonusSaved=!0:this.panSaved=!0),this.patchInformation(),this.showDetail
1s(n)},error:se=>this.notificationService.createNotification("",this._translatePipe.instant("account.bonusinfo.Pan Information Not Updated"),_._.ERROR)})}}uploadMedia(n,r){if("string"==typeof r&&!r.includes(h.b.signedUrl)||"object"==typeof r){const l=Date.now().toString();this.documentKycService.uploadDocument(r,l).subscribe({next:f=>{this.setInformation(null,n,f.url)},error:f=>{this.notificationService.createNotification("",this._translatePipe.instant("join.kycDocument.Documents are not sumbitted.Please contact CustomerCare"),_._.ERROR),this.isDisableBonusSubmit=!1,this.loaderService.stop()}})}}getBasicInfo(){if(!this.isJoinPortal){let n=this.cacheService.get(y.w.UserInfo);this._commonService.getMemberBasicInfoById(n?.memberId).subscribe({next:r=>{this.sourceId=r.sourceId,this.showDetails()}})}return null}ngOnDestroy(){this._chRef.detach(),this.customSelectSubscription&&this.customSelectSubscription.unsubscribe(),this.showBonusFieldRequired&&this.showBonusFieldRequired.unsubscribe(),this.loaderService.stop()}appendFileExtension(n,r){const l=n.split(/[;\/]/)[1];return r.split(".").pop()!=l?r+"."+l:r}setDefaultImage(){const n=this.cacheService.getCookieValue(y.w.countryCode);this.defaultImgUrl=`${I.c.cdnURL}/portals/titan-ecommerce/template1/assets/images/${n.toLowerCase()}_default_image.png`,this.voidImage=`${I.c.cdnURL}/portals/titan-ecommerce/template1/assets/images/${n.toLowerCase()}_default_image.png`}trimPanNumber(){var n=this;return(0,C.A)(function*(){const r=n.verificationForm.controls.panNumber.value;n.verificationForm.controls.panNumber.setValue(r.slice(0,h.b.panMaxLength)?.toUpperCase()),yield n.validatePanNumber()})()}validatePanNumber(){var n=this;return(0,C.A)(function*(){if(n.verificationForm.controls.panNumber.value&&n.verificationForm.controls.panNumber.valid&&n.initialPanValue!=n.verificationForm.controls.panNumber.value&&n.initalAgePanValue!=n.verificationForm.controls.panNumber.value){const r=n.cacheService.get(y.w.CheckoutInformation);(yield yield(0,ee._)(n._myAccountService.validatePanNumber(n.verificationForm.controls.panNumber.value,r?.orderDetails?.memberId)))?(n.duplicatePanNumber=!1,n.panValid=!0,n.verificationForm.controls.panNumber.setErrors(null)):(n.duplicatePanNumber=!0,n.panValid=!1,n.verificationForm.controls.panNumber.setErrors({duplicatePanNumber:!0}))}})()}showArchivedImg(n){if(this.checkoutConfig.imageArchieveCheck){const r=document.getElementById(n);r?r.src="../../../assets/images/archive.png":setTimeout(()=>{this.showArchivedImg(n)},250)}}checkImageArchived(){const n=this.getArchivedElementIds();n.length&&n.map(r=>{this.showArchivedImg(r)})}getArchivedElementIds(){const n=[];return this.cacheService.get(y.w.MemberDocuments).memberDocuments.forEach(l=>{l.proofTypeID===x.VC.PanProof&&l.frontImageRetrieved&&n.push("panFrontImage"),l.proofTypeID===x.VC.bonusProof&&l.frontImageRetrieved&&n.push("void-image")}),n}static{this.\u0275fac=function(r){return new(r||m)(t.rXU(e.Kg),t.rXU(j.N),t.rXU(te.s),t.rXU(t.aKT),t.rXU(V.E),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(X.h),t.rXU(H.c$),t.rXU(q.S),t.rXU(z.I),t.rXU(Q._),t.rXU(ie.G),t.rXU(re.o),t.rXU(t.gRc),t.rXU(b.ok),t.rXU(ue.j),t.rXU(pe.J),t.rXU(he.Ix),t.rXU(be.ep),t.rXU(Ie._),t.rXU(ve.A),t.rXU(Se.Z),t.rXU(Be.i))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["app-join-bonus-info-form"]],viewQuery:function(r,l){if(1&r&&(t.GBs(Te,5),t.GBs(xe,5),t.GBs(Ee,5),t.GBs(Ne,5),t.GBs(Ve,5),t.GBs(we,5),t.GBs(Re,5),t.GBs(Oe,5)),2&r){let f;t.mGM(f=t.lsd())&&(l.cameraErrorDetailModal=f.first),t.mGM(f=t.lsd())&&(l.cameraModalButton=f.first),t.mGM(f=t.lsd())&&(l.VoidedCheck=f.first),t.mGM(f=t.lsd())&&(l.deleteConfirmationModal=f.first),t.mGM(f=t.lsd())&&(l.invalidDataModal=f.first),t.mGM(f=t.lsd())&&(l.uploadOptionsModalButton=f.first),t.mGM(f=t.lsd())&&(l.panImageRef=f.first),t.mGM(f=t.lsd())&&(l.deleteBonusProof=f.first)}},inputs:{preloadBonusInformation:"preloadBonusInformation"},outputs:{bonusInfoSubmit:"bonusInfoSubmit",bonusInfoSubmitOnInputChange:"bonusInfoSubmitOnInputChange"},decls:12,vars:8,consts:[["VoidedCheck",""],["deleteConfirmationModal","app-modal"],["invali
1dDataModal","app-modal"],["panImageRef",""],["cameraModalButton",""],["cameraErrorDetailModal","app-modal"],["uploadOptionsModalButton",""],[4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],["class","template3",4,"ngIf"],["hidden","","data-toggle","modal","data-target","#myModal","aria-label","yes",4,"ngIf"],["class","container-fluid",4,"ngIf"],["id","common-modal","bsModal","","class","modal fade bs-example modal--center",4,"ngIf"],["hidden","","type","button","class","btn btn-info btn-lg","data-toggle","modal","data-target","#uploadModal",4,"ngIf"],["class","container",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-12"],["id","bonus-info",1,"template3","bonus-info"],[1,"title"],["class","sub-title",4,"ngIf"],["class","font-light",4,"ngIf"],[3,"hideValidation",4,"ngIf"],["class","cheque-image",4,"ngIf"],["class","voided-check col-lg-9 col-8 pl-0",4,"ngIf"],["id","common-modal","bsModal","","class","modal fade bs-example modal--center",3,"config",4,"ngIf"],["class","row justify-content-center submit",4,"ngIf"],["class","row justify-content-center save",4,"ngIf"],[1,"sub-title"],[1,"font-light"],[3,"onChanges","onSubmit","valueChanges","widgets","framework","form","options"],[1,"cheque-image"],["id","cheque-image",1,"cheque-image","col-md-8","col-lg-6",3,"src"],[1,"voided-check","col-lg-9","col-8","pl-0"],[1,"pl-0","mt-4",3,"ngClass"],[1,"d-inline-block","p-2","col-md-7","border","border-dark",3,"ngClass"],["id","void-image",1,"p-1","img-fluid","center","photo-copy",3,"error","click","ngClass","src"],["class"," col-8 pl-3 pr-0 image-name",4,"ngIf"],["id","image-error-message"],["onclick","this.value = null","type","file","accept",".png,.jpg,.pdf,.jpeg",1,"d-none",3,"change"],["type","button","class","image-text btn-aria",3,"click",4,"ngIf"],["class","image-loader sponsor-loader--btn",4,"ngIf"],["class","text-danger col-md-9 col-8 position-absolute mt-4",4,"ngIf"],["class","text-danger col-md-7 col-6 position-absolute mt-4",4,"ngIf"],["class","text-danger position-absolute col-12 mt-4 invalid",4,"ngIf"],[1,"col-8","pl-3","pr-0","image-name"],["type","button","class","fa fa-pencil icon btn-aria",3,"click",4,"ngIf"],["type","button","class","fa fa-trash icon btn-aria",3,"click",4,"ngIf"],["type","button",1,"fa","fa-pencil","icon","btn-aria",3,"click"],["type","button",1,"fa","fa-trash","icon","btn-aria",3,"click"],["type","button",1,"image-text","btn-aria",3,"click"],[1,"image-loader","sponsor-loader--btn"],[1,"fa","fa-spinner",2,"font-size","50px"],[1,"text-danger","col-md-9","col-8","position-absolute","mt-4"],[1,"text-danger","col-md-7","col-6","position-absolute","mt-4"],[1,"text-danger","position-absolute","col-12","mt-4","invalid"],["id","common-modal","bsModal","",1,"modal","fade","bs-example","modal--center",3,"config"],[1,"modal-dialog","confirm-dialog"],[1,"modal-content","p-2","text-center"],[1,"modal-body"],["tabindex","-1","role","heading","id","myModalLabel",1,"modal-title","modal
1-warn"],[1,"modal-footer","justify-content-center"],["role","button","type","button","tabindex","0","id","modaldelbtn-yes-js",1,"btn","btn-primary",3,"keyup.enter","click"],["role","button","tabindex","0","type","button","id","delAllModal-no-js",1,"btn","btn-secondary",3,"keyup.enter","click"],["class","modal-content p-2 text-center",4,"ngIf"],[1,"m-3"],[1,"d-grid","gap-2","col-6","mx-auto"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-body","my-1"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-primary","px-5",3,"click"],[1,"row","justify-content-center","submit"],[1,"text-center"],["id","submit","type","button",1,"btn","btn-primary","col","col-sm-auto","mb-4",3,"click","disabled"],[1,"row","justify-content-center","save"],["id","save","type","button",1,"btn","btn-primary","col","col-sm-auto","mb-4",3,"mousedown","disabled"],[3,"ngSubmit","formGroup"],[1,"container"],[1,"col-12","p-0"],["class","pl-0 col-12",4,"ngIf"],[1,"col-12","my-3","p-0"],["id","panField",1,"floatLabelContainer"],["float-label","","formControlName","panNumber","name","panNumber","id","panNumber","type","text","maxlength","10","appUppercase","",1,"h-42","col-lg-4","col-md-8","form-control",3,"focus","blur","ngClass","placeholder"],["for","panNumber","id","label-class",1,"float-label--class"],[1,"pt-1"],["class","text-danger",4,"ngIf"],["class","col-12 p-0",4,"ngIf"],[1,"rejection"],[1,"text-danger","pt-2","pb-4","font-weight-bold"],[1,"pl-0","col-12"],[1,"pan-status"],[1,"text-danger"],[1,"proof-section","col-lg-9","col-8","pl-0"],["id","panImage",1,"col-lg-12","pl-0","col-md-11","mt-4"],[1,"d-inline-block","p-2","col-lg-6","col-md-7","border","border-dark"],["id","panFrontImage","alt","pan Image",1,"p-1","img-fluid","center","photo-copy",3,"click","error","ngClass","src"],["class","image-text ml-0 col-9 col-sm-12","id","addPanText",3,"ngClass","click",4,"ngIf"],["class","text-danger col-6 position-absolute mt-4",4,"ngIf"],["class","text-danger col-9 position-absolute mt-lg-4 mt-md-4 mt-5",4,"ngIf"],["class","text-danger position-absolute col-12 mt-lg-4 mt-md-4 mt-5 invalid",4,"ngIf"],["class","col-8 pl-3 image-name",4,"ngIf"],["onclick","this.value = null","formControlName","panProofImage","type","file","name","file","id","uploadPanImage","accept",".png,.jpg,.pdf,.jpeg","hidden","",1,"",3,"change"],["id","addPanText",1,"image-text","ml-0","col-9","col-sm-12",3,"click","ngClass"],[1,"text-danger","col-6","position-absolute","mt-4"],[1,"text-danger","col-9","position-absolute","mt-lg-4","mt-md-4","mt-5"],[1,"text-danger","position-absolute","col-12","mt-lg-4","mt-md-4","mt-5","invalid"],[1,"col-8","pl-3","image-name"],["type","button","class","btn-aria",3,"click",4,"ngIf"],["type","button",1,"btn-aria",3,"click"],[1,"fa","fa-pencil"],[1,"fa","fa-trash"],[1,"mt-2"],["id","save","type","submit",1,"btn","btn-primary","col","col-sm-auto","mb-4",3,"disabled","hidden"],[1,"template3"],["id","account-page-title",1,"header-title"],[1,"col-12","col-sm-12","mt-4","border-block","bonus-info-min-height","pb-4"],["hidden","","data-toggle","modal","data-target","#myModal","aria-label","yes"],[1,"container-fluid"],[1,"row"],["
1id","myModal","data-backdrop","static","data-keyboard","false",1,"modal"],[1,"modal-dialog","modal-lg"],[1,"modal-content"],["id","cancel"],["data-dismiss","modal","aria-label","Close",3,"click"],[1,"fa","fa-close",2,"font-size","16px"],["id","cam","autoplay","",3,"hidden"],[1,"preview",3,"src","hidden"],["id","canvas","width","640","height","480",3,"hidden"],[1,"camera-buttons"],["aria-label","Capture",3,"click","hidden"],[1,"fa","fa-camera",2,"font-size","36px"],["attr.aria-label","Retake",3,"click","hidden"],[1,"fa","fa-repeat",2,"font-size","36px"],["data-dismiss","modal","attr.aria-label","submit",3,"click","hidden"],[1,"fa","fa-check",2,"font-size","36px"],[3,"click",4,"ngIf"],[3,"click"],["id","cam-switch","viewBox","0 0 512 512"],["d","M126.9 142.9c62.2-62.2 162.7-62.5 225.3-1L311 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H447.5c0 0 0 0 0 0H456c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L397.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C57.2 122 39.6 150.7 28.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM0 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L169 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H32.4h-.7H24c-13.3 0-24 10.7-24 24z"],["id","common-modal","bsModal","",1,"modal","fade","bs-example","modal--center"],["hidden","","type","button","data-toggle","modal","data-target","#uploadModal",1,"btn","btn-info","btn-lg"],["id","uploadModal","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal","fade","modal--center"],[1,"modal-dialog"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],[1,"col-sm-6"],["data-dismiss","modal",1,"card","upload-options",3,"click"],[3,"src"],["class","col-sm-6",4,"ngIf"]],template:function(r,l){1&r&&(t.DNE(0,st,28,14,"div",7),t.nrm(1,"br"),t.DNE(2,At,2,2,"form",8)(3,Dt,9,7,"div",9)(4,Mt,2,0,"button",10)(5,Et,24,10,"div",11)(6,Nt,13,9,"div",12)(7,Vt,5,6,"button",13)(8,Ut,28,14,"div",14),t.nrm(9,"br")(10,"br")(11,"br")),2&r&&(t.Y8G("ngIf",l.bifComponentSettings.jsonFormObject),t.R7$(2),t.Y8G("ngIf",l.showSubmitButtons&&l.showBonusInAccount),t.R7$(),t.Y8G("ngIf",!l.showBonusInAccount&&!l.isJoinPortal),t.R7$(),t.Y8G("ngIf",l.showSubmitButtons),t.R7$(),t.Y8G("ngIf",l.showSubmitButtons),t.R7$(),t.Y8G("ngIf",l.showSubmitButtons),t.R7$(),t.Y8G("ngIf",l.showSubmitButtons),t.R7$(),t.Y8G("ngIf",l.showSubmitButtons))},dependencies:[ge.YU,ge.bT,b.qT,b.me,b.BC,b.cb,b.tU,b.j4,b.JD,Ce.R8,Ce.UC,Ce.eC,Ae.m,De.hZ,Me.e,H.D9],styles:['.helvetica-light[_ngcontent-%COMP%]{font-family:var(--default-font-light)!important}.helvetica-light[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}body[_ngcontent-%COMP%]{font-family:var(--default-font-light)!important;font-size:.9rem;font-weight:400;line-height:1rem!important;color:#000;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;background-color:#fff!important;letter-spacing:1px;width:100%;height:100%}body[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.tk-scriptorama-tradeshow-jf[_ngcontent-%COMP%]{font-family:scriptorama-tradeshow-jf}html[_ngcontent-%COMP%]{font-size:16px!important}.helvetica-bold[_ngcontent-%COMP%]{font-family:var(--default-font-bold)!important}.helvetica-bold[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.helvetica-regular[_ngcontent-%COMP%]{font-family:var(--default-font-regular)}.helvetica-regular[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.btn[_ngcontent-%COMP%]{border-radius:0;display:inline-block;border-width:2px;border-style:solid;background-color:transparent;text-transform:uppercase;padding:9px 35px;cursor:pointer;min-height:40px;background-image:none;font-size:.8rem;font-family:var(--default-font-bold)!important;letter-spacing:1px;text-decoration:none;box-shadow:none;outline:none;transition:.3s ease}.btn[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.btn[_ngcontent-%COMP%]:focus{box-shadow:none!important}.btn.btn-primary[_ngcontent-%COMP%]{background-color:#ffc600;color:#000;border-color:#ffc600}body[_ngcontent-%COMP%]:not(.touch)   .btn.btn-primary[_ngcontent-%COMP%]:hover{background-color:#ffd544;border-color:#ffd544;color:#000}body[_ngcontent-%COMP%]:not(.touch)   .link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):hover{text-decoration:none}body[_ngcontent-%COMP%]:not(.touch)   .link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):active{text-decoration:underline!important}.btn.btn-primary[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active{background-color:#707070;border-color:#707070;color:#fff;transition-duration:0s}.btn.btn-secondary[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active{border-color:#000;background-color:transparent;color:#000;transition-duration:0s}.btn.btn-black[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active{border-color:#000;background-color:#000;color:#fff;transition-duration:0s}.product-breadcrumb-container[_ngcontent-%COMP%]   .col-12.col-sm-10[_ngcontent-%COMP%]{padding-right:0!important}.heart-wrapper[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:3;right:0;top:0}.heart-wrapper[_ngcontent-%COMP%]   .heart[_ngcontent-%COMP%]   i.fa.fa-heart-o[_ngcontent-%COMP%], .heart-wrapper[_ngcontent-%COMP%]   .heart[_ngcontent-%COMP%]   i.fa.fa-heart[_ngcontent-%COMP%]{font-size:1.875rem!important;height:24px!important}.btn.btn--sm[_ngcontent-%COMP%]{min-width:140px;padding:9px 15px}.btn.btn-secondary[_ngcontent-%COMP%]{border-color:#000;color:#000;background-color:transparent}.btn.btn-black[_ngcontent-%COMP%]{background-color:#000;color:#fff;border-color:#000}.btn.btn-black[_ngcontent-%COMP%]:hover{background-color:#707070;color:#fff;border-color:#707070}.btn.btn-secondary[_ngcontent-%COMP%]:hover{background-color:#000;color:#fff;border-color:#000}.btn-aria[_ngcontent-%COMP%]{border:none;background:none}.favorite--button[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#000;cursor:pointer}.popover--button[_ngcontent-%COMP%]{border:none;outline:none;background-color:#fff;cursor:pointer;text-decoration:underline;padding-left:1px;padding-right:1px;color:#000}.popover--button[_ngcontent-%COMP%]:hover{text-decoration:none}.no-padding[_ngcontent-%COMP%]{padding:0!important}.valign-center-text[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;text-align:center}.table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{padding:.5rem}.font-14[_ngcontent-%COMP%]{font-size:14px}.link--light[_ngcontent-%COMP%]{color:#000;cursor:pointer;text-decoration:underline}.link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):hover{text-decoration:none}.link--light[_ngcontent-%COMP%]:not(.disabled):not([disabled]):active{text-decoration:underline!important}.font-13[_ngcontent-%COMP%]{font-size:13px}.font-15[_ngcontent-%COMP%]{font-size:15px}.font-16[_ngcontent-%COMP%]{font-size:16px}
1#header-countryname[_ngcontent-%COMP%]{font-size:14px}.backbtn[_ngcontent-%COMP%]{height:20px!important;color:#000!important;font-weight:100!important}*p[_ngcontent-%COMP%]{line-height:1.3rem}.pl-0[_ngcontent-%COMP%]{padding-left:0}.pr-0[_ngcontent-%COMP%]{padding-right:0}.pt-60[_ngcontent-%COMP%]{padding-top:60px}.pr-35[_ngcontent-%COMP%]{padding-right:35px!important}.mb-32[_ngcontent-%COMP%]{margin-bottom:32px}.my-32[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px}.ml-20[_ngcontent-%COMP%]{margin-left:20px}@keyframes _ngcontent-%COMP%_hover-on-mob--secondary{0%{background-color:#000;color:#fff}50%{background-color:#000;color:#fff}to{background:#fff;color:#000}}@keyframes _ngcontent-%COMP%_hover-on-mob--primary{0%{background-color:#ffc600}50%{background-color:#ffd544}to{background-color:#ffc600}}body.touch[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]:focus:not(:active){animation:_ngcontent-%COMP%_hover-on-mob--secondary 1.2s ease}body.touch[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:focus:not(:active){animation:_ngcontent-%COMP%_hover-on-mob--primary 1.2s ease}body.touch[_ngcontent-%COMP%]   .link--light[_ngcontent-%COMP%]:active{text-decoration:none!important}@media (min-width: 1600px){.col-hd-1[_ngcontent-%COMP%]{flex:0 0 8.333333%;max-width:8.333333%}.col-hd-2[_ngcontent-%COMP%]{flex:0 0 16.666667%;max-width:16.666667%}.col-hd-3[_ngcontent-%COMP%]{flex:0 0 25%;max-width:25%}.col-hd-4[_ngcontent-%COMP%]{flex:0 0 33.333333%;max-width:33.333333%}.col-hd-5[_ngcontent-%COMP%]{flex:0 0 41.666667%;max-width:41.666667%}.col-hd-6[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}.col-hd-7[_ngcontent-%COMP%]{flex:0 0 58.333333%;max-width:58.333333%}.col-hd-8[_ngcontent-%COMP%]{flex:0 0 66.666667%;max-width:66.666667%}.col-hd-9[_ngcontent-%COMP%]{flex:0 0 75%;max-width:75%}.col-hd-10[_ngcontent-%COMP%]{flex:0 0 83.333333%;max-width:83.333333%}.col-hd-11[_ngcontent-%COMP%]{flex:0 0 91.666667%;max-width:91.666667%}.col-hd-12[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}}.gap-5[_ngcontent-%COMP%]{gap:.5em}.product-limitation[_ngcontent-%COMP%]{line-height:1.2;font-weight:600}.limitation-content[_ngcontent-%COMP%]{max-height:110px!important;overflow-y:auto}.fw-600[_ngcontent-%COMP%]{font-weight:600}[_ngcontent-%COMP%]:root{--default-font-regular: helvetica-regular;--default-font-bold: helvetica-bold;--default-font-light: helvetica-light;--default-font-salina: "scriptorama-tradeshow-jf"}.enable-new-fonts[_ngcontent-%COMP%]{--default-font-regular: HelveticaNeueWorld-Roman, NotoSans-Regular;--default-font-bold: HelveticaNeueWorld-Bold, NotoSans-Bold;--default-font-light: HelveticaNeueWorld-Roman, NotoSans-Regular;--default-font-salina: Salina-Book}.template3[_ngcontent-%COMP%]{font-family:var(--default-font-regular);margin-bottom:16px;margin-top:10px}.template3[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.template3[_ngcontent-%COMP%]     .schema-form-submit.form-group{margin-bottom:0}.template3[_ngcontent-%COMP%]     .schema-form-submit.form-group p{display:none!important}.template3[_ngcontent-%COMP%]     json-schema-form .form-group{margin-bottom:0}.template3[_ngcontent-%COMP%]     json-schema-form .schema-form-text.form-group, .template3[_ngcontent-%COMP%]     json-schema-form .schema-form-select.form-group, .template3[_ngcontent-%COMP%]     json-schema-form .schema-form-custom-select-widget.form-group, .template3[_ngcontent-%COMP%]     json-schema-form .schema-form-custom-input-widget.form-group, .template3[_ngcontent-%COMP%]     json-schema-form .schema-form-custom-password-widget, .template3[_ngcontent-%COMP%]     json-schema-form .schema-form-custom-mask-widget.form-group, .template3[_ngcontent-%COMP%]     json-schema-form .schema-form-custom-datepicker-widget.form-group{margin-bottom:1rem}@media (max-width: 767px){.template3[_ngcontent-%COMP%]     .popover-content.popover-body{right:0!important}.template3[_ngcontent-%COMP%]     popover-container.popover.top > .arrow:before{right:-42px!important;z-index:2000!important;height:15px!important;width:15px!important;top:-9px!important}.template3[_ngcontent-%COMP%]     .personal-info--bonus-info__popover{margin-left:-111px!important}.template3[_ngcontent-%COMP%]     .personal-info--bonus-info__popover .popover-content.popover-body{bottom:0!important}.template3[_ngcontent-%COMP%]     .personal-info--password-info__popover{margin-left:-111px!important}.template3[_ngcontent-%COMP%]     json-schema-form root-widget.form-flex-row{flex-direction:column!important}.template3[_ngcontent-%COMP%]     json-schema-form root-widget.form-flex-row .form-flex-item{padding:0}.template3[_ngcontent-%COMP%]     json-schema-form .contact-type-padding root-widget.form-flex-row{flex-direction:row!important}.template3[_ngcontent-%COMP%]     json-schema-form .contact-type-padding root-widget.form-flex-row > .form-flex-item:not(:last-child){padding-right:.5rem!important}}@media (min-width: 768px){.template3[_ngcontent-%COMP%]     json-schema-form root-widget.form-flex-row{margin-left:-15px;margin-right:-15px}.template3[_ngcontent-%COMP%]     json-schema-form root-widget.form-flex-row .form-flex-item{padding-left:15px;padding-right:15px}.template3[_ngcontent-%COMP%]     json-schema-form .contact-type-padding .form-flex-item:nth-child(1){padding-right:0!important}.template3[_ngcontent-%COMP%]     json-schema-form .contact-type-padding .form-flex-item:nth-child(2){padding-left:.5rem!important}}.template3.bonus-info[_ngcontent-%COMP%]     .personal-bonus-info{top:12px;position:absolute;font-size:24px;right:-22px;
1cursor:pointer}.template3.bonus-info[_ngcontent-%COMP%]     .personal-info--bonus-info__popover{margin-left:-50px;margin-top:-9px}.template3.bonus-info[_ngcontent-%COMP%]     .personal-info--bonus-info__popover .popover-arrow.arrow{right:24%!important;left:initial!important}.template3.bonus-info[_ngcontent-%COMP%]     .personal-info--bonus-info__popover .popover-arrow.arrow:before{right:7px;top:-16px}.template3.bonus-info[_ngcontent-%COMP%]     .personal-info--bonus-info__popover .popover-content.popover-body{bottom:5px}.title[_ngcontent-%COMP%]{text-align:center;font-size:36px}.image-text[_ngcontent-%COMP%]{color:#007bff;text-decoration:underline;position:absolute;margin-left:1rem;width:max-content}.fa[_ngcontent-%COMP%]{font-size:25px;margin:6px}.image-name[_ngcontent-%COMP%]{position:absolute;word-wrap:break-word;overflow-wrap:break-word}.photo-copy[_ngcontent-%COMP%]{height:160px!important;cursor:pointer}.image[_ngcontent-%COMP%]{padding-left:0 px}.cheque-image[_ngcontent-%COMP%]{text-align:center}.center[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:auto}a[_ngcontent-%COMP%]:hover{text-decoration:none}.camera-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around}#cancel[_ngcontent-%COMP%]{display:flex;justify-content:end}.camera-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #cancel[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background-color:#fff}@media (min-width: 992px){.modal-lg[_ngcontent-%COMP%]{width:50vw;height:60vh}}.upload-options[_ngcontent-%COMP%]{margin:3%}.upload-options[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#dedada}.upload-options[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;font-weight:700;color:#427df5;margin-top:1%}.upload-options[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:27%;height:27%;margin-top:3%}#cam-switch[_ngcontent-%COMP%]{width:36px;height:36px;margin-top:10%}.image-loader[_ngcontent-%COMP%]{top:26%;position:absolute;left:19%;cursor:pointer;border-radius:50%}.image-loader[_ngcontent-%COMP%]   .fa-spinner[_ngcontent-%COMP%]{animation:loading-bar-spinner 1.5s linear infinite}@media (max-width: 576px){.image-loader[_ngcontent-%COMP%]{left:28%}}.sub-title[_ngcontent-%COMP%]{font-size:18px;font-family:var(--default-font-bold)}.sub-title[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.pan-status[_ngcontent-%COMP%]{padding-bottom:10px}input[readonly][_ngcontent-%COMP%]{color:#ccc;cursor:default}.disable[_ngcontent-%COMP%]{pointer-events:none}.h-42[_ngcontent-%COMP%]{height:42px}.font-light[_ngcontent-%COMP%]{font-family:var(--default-font-light)}.font-light[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.confirm-dialog.modal-dialog[_ngcontent-%COMP%]{max-width:500px}  .modal-open .modal{background-color:#00000075}#panField[_ngcontent-%COMP%]{color:#000}#panField[_ngcontent-%COMP%]   .floatLabelContainer[_ngcontent-%COMP%]   [float-label][_ngcontent-%COMP%] + label#label-class[_ngcontent-%COMP%]{position:absolute;top:0;left:0;transform:translate(15px,15px);cursor:text;transition:all .3s;z-index:3;line-height:1;color:#958d8d;font-family:var(--default-font-regular);font-weight:400;font-size:12px}#panField[_ngcontent-%COMP%]   .floatLabelContainer[_ngcontent-%COMP%]   [float-label][_ngcontent-%COMP%] + label#label-class[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.disable-input[_ngcontent-%COMP%]{pointer-events:none;background-color:#e9ecef;opacity:1}.rejection[_ngcontent-%COMP%]{font-size:18px;font-family:var(--default-font-bold)}.rejection[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.template3[_ngcontent-%COMP%]   .bonus-info-min-height[_ngcontent-%COMP%]{min-height:200px;display:flex;justify-content:center;align-items:center;font-family:var(--default-font-light)}.template3[_ngcontent-%COMP%]   .bonus-info-min-height[_ngcontent-%COMP%]   .enable-new-fonts[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.5rem .75rem}.border-block[_ngcontent-%COMP%]{padding:25px 29px;border:1px solid #D8D8D6;margin-bottom:32px}']}
1)}}return m})()},64285:(oe,Y,p)=>{p.d(Y,{O:()=>J,e:()=>t});var C=p(54438);let t=(()=>{class M{transform(I){const y=Math.floor(I/60);return 60==Math.ceil(I-60*y)?("00"+(y+1)).slice(-2)+":00":("00"+y).slice(-2)+":"+("00"+Math.ceil(I-60*y)).slice(-2)}static{this.\u0275fac=function(y){return new(y||M)}}static{this.\u0275pipe=C.EJ8({name:"timer",type:M,pure:!0})}}return M})(),J=(()=>{class M{static{this.\u0275fac=function(y){return new(y||M)}}static{this.\u0275mod=C.$C({type:M})}static{this.\u0275inj=C.G2t({})}}return M})()},11966:(oe,Y,p)=>{p.d(Y,{l:()=>ee});var C=p(58750),t=p(21413),J=p(39974),M=p(54360);function ee(I){return(0,J.N)((y,h)=>{let u,x,b=!1;const _=()=>{u=y.subscribe((0,M._)(h,void 0,void 0,U=>{x||(x=new t.B,(0,C.Tg)(I(x)).subscribe((0,M._)(h,()=>u?_():b=!0))),x&&x.next(U)})),b&&(u.unsubscribe(),u=null,b=!1,_())};_()})}},71302:(oe,Y,p)=>{p.d(Y,{ep:()=>x});var C=p(10467),t=p(54438),u=function(d){return d[d.Up=1]="Up",d[d.Down=3]="Down",d[d.Right=6]="Right",d[d.Left=8]="Left",d[d.UpMirrored=2]="UpMirrored",d[d.DownMirrored=4]="DownMirrored",d[d.LeftMirrored=5]="LeftMirrored",d[d.RightMirrored=7]="RightMirrored",d[d.Default=0]="Default",d[d.NotJpeg=-1]="NotJpeg",d[d.NotDefined=-2]="NotDefined",d}(u||{});class b{constructor(){this.byteCount=w=>encodeURI(w).split(/%..|./).length-1}getOrientation(w){return new Promise((B,O)=>{try{const e=new FileReader;e.onload=()=>{const j=new DataView(e.result);if(!j.byteLength||65496!==j.getUint16(0,!1))return B(u.NotDefined);const te=j.byteLength;let V=2;for(;V<te;){const X=j.getUint16(V,!1);if(V+=2,65505===X){if(1165519206!==j.getUint32(V+=2,!1))return B(u.NotJpeg);const H=18761===j.getUint16(V+=6,!1);V+=j.getUint32(V+4,H);const q=j.getUint16(V,H);V+=2;for(let z=0;z<q;z++)if(274===j.getUint16(V+12*z,H))return B(j.getUint16(V+12*z+8,H))}else{if(65280&~X)break;V+=j.getUint16(V,!1)}}return B(u.NotJpeg)},e.readAsArrayBuffer(w)}catch{return O(u.Default)}})}uploadFile(w,B=!0,O=!1){return new Promise((e,j)=>{const te=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),V=/iPad|iPhone|iPod/i.test(navigator.userAgent);Promise.resolve(te||V).then(X=>X?this.generateUploadInputNative(window.document,B,O):this.generateUploadInputRenderer(w,B,O)).then(X=>{const H=X?Array.from(X):[],q=H.map(ie=>this.getOrientation(ie)),z=H.map(ie=>this.fileToDataURL(ie));let Q=[];Promise.all(q).then(ie=>(Q=ie,Promise.all(z))).then(ie=>{const re=ie.map((ue,pe)=>({image:ue.dataUrl,orientation:Q[pe],fileName:ue.fileName}));e(B?re:re[0])})}).catch(X=>j(X))})}fileToDataURL(w){return new Promise((B,O)=>{const e=new FileReader;e.onload=j=>{B({dataUrl:j.target.result,fileName:w.name})};try{e.readAsDataURL(w)}catch(j){O(`ngx-image-compress - probably no file have been selected: ${j}`)}})}generateUploadInputRenderer(w,B=!0,O=!1){let e=!1;return new Promise((j,te)=>{const V=w.createElement("input");w.setStyle(V,"display","none"),w.setProperty(V,"type","file"),w.setProperty(V,"accept","image/*, .heic"),B&&w.setProperty(V,"multiple","true"),w.listen(V,"click",X=>{X.target.value=""}),w.listen(V,"change",X=>{e=!0,j(X.target.files)}),O&&window.addEventListener("focus",()=>{setTimeout(()=>{e||te(new Error("file upload on blur - no file selected"))},300)},{once:!0}),V.click()})}generateUploadInputNative(w,B=!0,O=!1){let e=!1;return new Promise((j,te)=>{const V=w.createElement("input");V.id="upload-input"+new Date,V.style.display="none",V.setAttribute("type","file"),V.setAttribute("accept","image/*, .heic"),B&&V.setAttribute("multiple","true"),w.body.appendChild(V),V.addEventListener("change",()=>{e=!0,j(V.files),w.body.removeChild(w.getElementById(V.id))},{once:!0}),O&&window.addEventListener("focus",()=>{setTimeout(()=>{!e&&w.getElementById(V.id)&&(te(new Error("file upload on blur - no file selected")),w.body.removeChild(w.getElementById(V.id)))},300)},{once:!0}),V.click()})}compress(w,B,O,e=50,j=50,te=0,V=0){return new Promise(function(X,H){j/=100,e/=100;const q=new Image;q.onload=()=>{const z=O.createElement("canvas"),Q=z.getContext("2d");if(!Q)return H("No canvas context available");let ie=q.naturalWidth,re=q.naturalHeight;if(!CSS.supports("image-orientation","from-image")&&(B===u.Right||B===u.Left)){const ve=ie;ie=re,re=ve}e=Math.min(e,te?te/ie:1,V?V/re:1),z.width=ie*e,z.height=re*e;const he=Math.PI/180;CSS.supports("image-orientation","from-image")||B===u.Up?Q.drawImage(q,0,0,z.width,z.height):B===u.Right?(Q.save(),Q.rotate(90*he),Q.translate(0,-z.width),Q.drawImage(q,0,0,z.height,z.width),Q.restore(
1)):B===u.Left?(Q.save(),Q.rotate(-90*he),Q.translate(-z.width,0),Q.drawImage(q,0,0,z.height,z.width),Q.restore()):B===u.Down?(Q.save(),Q.rotate(180*he),Q.translate(-z.width,-z.height),Q.drawImage(q,0,0,z.width,z.height),Q.restore()):Q.drawImage(q,0,0,z.width,z.height);const be=w.substr(5,w.split(";")[0].length-5),Ie=z.toDataURL(be,j);X(Ie)},q.onerror=z=>H(z),q.src=w})}uploadGetImageMaxSize(w,B,O){var e=this;return(0,C.A)(function*(j,te,V,X=!1){te&&console.debug("Ngxthis - Opening upload window");const H=yield e.uploadFile(V,!1,X);return yield e.getImageMaxSize(H,j,te,V)}).apply(this,arguments)}getImageMaxSize(w,B,O,e){var j=this;return(0,C.A)(function*(){const V=H=>(H/1024/1024).toFixed(2);let X;O&&console.debug("Ngxthis - Opening upload window");for(let H=0;H<10;H++){const q=j.byteCount(w.image);X=yield j.compress(w.image,w.orientation,e,50,100);const z=j.byteCount(X);if(console.debug("Ngxthis -","Compression from",V(q),"MB to",V(z),"MB"),z>=q)throw 0===H?(O&&console.debug("Ngxthis -","File can't be reduced at all - returning the original",V(q),"MB large"),{...w,image:X}):(O&&console.debug("Ngxthis -","File can't be reduced more - returning the best we can, which is ",V(q),"MB large"),{...w,image:X});if(z<1024*B*1024)return O&&console.debug("Ngxthis -","Here your file",V(z),"MB large"),{...w,image:X};if(9===H)throw O&&console.debug("Ngxthis -","File can't reach the desired size after",10,"tries. Returning file ",V(q),"MB large"),{...w,image:X};O&&console.debug("Ngxthis -","Reached",V(z),"MB large. Trying another time after",H+1,"times"),w.image=X}throw O&&console.debug("Ngxthis - Unexpected error"),{}})()}}let x=(()=>{class d{constructor(B){this.DOC_ORIENTATION=u,this.render=B.createRenderer(null,null),this.imageCompress=new b}byteCount(B){return this.imageCompress.byteCount(B)}getOrientation(B){return this.imageCompress.getOrientation(B)}uploadFile(){return this.imageCompress.uploadFile(this.render,!1)}uploadMultipleFiles(){return this.imageCompress.uploadFile(this.render,!0)}uploadFileOrReject(){return this.imageCompress.uploadFile(this.render,!1,!0)}uploadMultipleFilesOrReject(){return this.imageCompress.uploadFile(this.render,!0,!0)}compressFile(B,O,e=50,j=50,te=0,V=0){return this.imageCompress.compress(B,O,this.render,e,j,te,V)}uploadAndGetImageWithMaxSize(B=1,O=!1,e=!1){return this.imageCompress.uploadGetImageMaxSize(B,O,this.render,e).then(j=>j.image).catch(j=>{throw j.image})}uploadAndGetImageWithMaxSizeAndMetas(B=1,O=!1,e=!1){return this.imageCompress.uploadGetImageMaxSize(B,O,this.render,e)}getImageWithMaxSizeAndMetas(B,O=1,e=!1){return this.imageCompress.getImageMaxSize(B,O,e,this.render)}static{this.\u0275fac=function(O){return new(O||d)(t.KVO(t._9s))}}static{this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.