PageSourceSearch

https://portal.ipospays.com/main.cce9902a8eb4c3f5.js

js ipospays.com collected 2026-10-01 10:13:33 UTC 782,401 bytes, 2 lines download raw bytes

1(self.webpackChunknobleui_angular=self.webpackChunknobleui_angular||[]).push([[179],{54724:(Te,G,r)=>{"use strict";r.d(G,{D:()=>t});var i=r(92340),t={isoCodes:`${i.N.apiUrl}/isocodes`,securityCheck:`${i.N.apiUrl}/security-check`,deviceUrl:`${i.N.apiUrl}/tpns`,suggestHaciendaMid:`${i.N.apiUrl}/tpns/haciendaMid/suggest`,deviceNameUrl:`${i.N.apiUrl}/allTpns`,tapTpns:`${i.N.apiUrl}/allTapTpns`,templateJsonUrl:`${i.N.steamApiUrl}/getTemplateJson`,valueJsonUrl:`${i.N.steamApiUrl}/tpn-details`,ticketTxn:`${i.N.steamApiUrl}/additionalAuthTpnDetails`,receiptDetails:`${i.N.steamApiUrl}/receipt-details`,customerReceipt:`${i.N.steamApiUrl}/customer-receipt-details`,receiptAlterDetails:`${i.N.steamApiUrl}/alter-receipt-details`,customerAlterReceipt:`${i.N.steamApiUrl}/alter-customer-receipt-details`,txExtns:`${i.N.apiUrl}/txExtn`,txAltExtn:`${i.N.apiUrl}/tx-alter-extn`,latestBuilds:`${i.N.steamApiUrl}/latest-builds`,checkSum:`${i.N.steamApiUrl}/check-sum`,vtPosparam:`${i.N.steamApiUrl}/vtPosparam`,processTransaction:`${i.N.apiUrl}/validate-process-txn`,processTransactionTipAdjust:`${i.N.apiUrl}/validate-process-txn-tip-adjust`,registerDomains:`${i.N.paymentApiUrl}/registerOriginswithftd`,cardUpdater:`${i.N.apiUrl}/cardUpdater`,registerDomainUrls:`${i.N.apiUrl}/registerDomainUrls`,generateWoocomKey:`${i.N.apiUrl}/generateWoocomKey`,saveWoocomKey:`${i.N.apiUrl}/saveWoocomKey`,getWooConfig:`${i.N.apiUrl}/getWooConfig`,getIso3DSecureDetails:`${i.N.apiUrl}/getIso3DSecureDetails`,paymentForm:`${i.N.paymentApiUrl}/payment-form`,externalPaymentForm:`${i.N.paymentApiUrl}/external-payment-transaction`,internalPaymentForm:`${i.N.paymentApiUrl}/internal-payment-transaction`,getAllDomainNames:`${i.N.paymentApiUrl}/getAllOringins`,getAllOrigins:`${i.N.apiUrl}/getDomainUrls`,pockytRefund:`${i.N.pockytApiUrl}/refund-request`,sendEmailorSMS:`${i.N.apiUrl}/sendEmailorSMS`,openBatch:`${i.N.apiUrl}/open-batch-report`,getOpenBatchByStore:`${i.N.apiUrl}/get-open-batch-by-store`,getOpenBatchTpn:`${i.N.apiUrl}/get-open-batch-tpn`,adjustTip:`${i.N.apiUrl}/txn-details-portal`,batches:`${i.N.apiUrl}/batches`,posEntry:`${i.N.apiUrl}/posEntry`,posEntryTransaction:`${i.N.apiUrl}/posEntryTransaction`,allTansData:`${i.N.apiUrl}/transReport`,distCustomerDba:`${i.N.apiUrl}/customersDBA`,isvNames:`${i.N.steamApiUrl}/isvs/search`,tpnIds:`${i.N.apiUrl}/getAllTpnIds`,dbaBatches:`${i.N.apiUrl}/dba-batches`,dbaTotalBatches:`${i.N.apiUrl}/total-dba-batches`,allDBAsByUser:`${i.N.apiUrl}/getAllDbasByUser`,settleBatch:`${i.N.paymentApiUrl}/process-transaction`,saveAsTemplate:`${i.N.steamApiUrl}/pos-template`,templateNames:`${i.N.steamApiUrl}/pos-template-names`,applyTemplate:`${i.N.steamApiUrl}/apply-pos-template`,deleteTemplateParam:`${i.N.steamApiUrl}/delete-template-param`,txBaseExtnsId:`${i.N.apiUrl}/txBaseExtn`,pinpanTpnDevices:`${i.N.apiUrl}/pinpad-tpn-devices`,pinpadTpns:`${i.N.apiUrl}/pinpad-tpns`,editCards:`${i.N.apiUrl}/editConsumerCards`,createConsumerWithoutCard:`${i.N.apiUrl}/createConsumerWithoutCard`,updateConsumerWithoutCardApi:`${i.N.apiUrl}/updateConsumerWithoutCardApi`,createTpn:`${i.N.apiUrl}/tpns`,updateTip:`${i.N.apiUrl}/updateTipAdjust`,createInvoice:`${i.N.apiUrl}/createInvoice`,updateInvoiceDetails:`${i.N.apiUrl}/updateInvoiceDetails`,getInvoice:`${i.N.apiUrl}/getAllInvoice`,getInvoiceV2:`${i.N.apiUrl}/getAllInvoiceV2`,downloadInvoicesV2:`${i.N.apiUrl}/downloadInvoicesV2`,updateExpiryInvoice:`${i.N.apiUrl}/updateExpiryInvoice`,updateGhppTag:`${i.N.apiUrl}/updateGhppTag`,getAlltickets:`${i.N.apiUrl}/getAlltickets`,getSamelevelUsers:`${i.N.apiUrl}/get-samelevel-users`,updateTicketActions:`${i.N.apiUrl}/update-ticket-actions`,addComments:`${i.N.apiUrl}/add-comments`,getAllComments:`${i.N.apiUrl}/get-all-comments`,getHelpdeskEmails:`${i.N.apiUrl}/get-helpdesk-emails`,updateHelpdeskEmails:`${i.N.apiUrl}/update-helpdesk-emails`,uploadInvoice:`${i.N.apiUrl}/uploadInvoice`,uploadAsset:`${i.N.steamApiUrl}/uploadAsset`,exportFile:`${i.N.apiUrl}/exportFile`,updateCustomer:`${i.N.apiUrl}/editCustomer`,checkJobTitle:`${i.N.apiUrl}/checkJobTitle`,tpnBatches:`${i.N.apiUrl}/tpn-batches`,getAllUserCount:`${i.N.apiUrl}/usersCount`,storeDbas:`${i.N.apiUrl}/getAllStoreDbasByUser`,isoCheckOpenBatch:`${i.N.apiUrl}/isoCheckOpenBatch/`,getMerchantRoleFeature:`${i.N.apiUrl}/getMerchantRoleFeature/`,getMerchantRoleFeaturUser:`${i.N.apiUrl}/getMerchantRoleFeature-user/`,getStoreById:`${i.N.apiUrl}/stores`,getAllStoreById:`${i.N.apiUrl}/allStores`,getAuthKeys:`${i.N.apiUrl}/getApiKeySecretKey`,postAuthKeys:`${i.N.apiUrl}/generateApiKeySecretKey`,getIntegratorList:`${i.N.apiUrl}/getIntegratorList`,postFortellisList:`${i.N.apiUrl}/postFortellisList`,getFortellisList:`${i.N.apiUrl}/getFortellisList`,getPockytList:`${i.N.apiUrl}/getPockytList`,postPockytList:`${i.N.apiUrl}
1/postPockytList`,getFortellisDetails:`${i.N.paymentApiUrl}/externalIntegration`,getCloudPosConfig:`${i.N.apiUrl}/getCloudPosConfig`,getStoreType:`${i.N.apiUrl}/getStoreType`,pinpadTransaction:`${i.N.apiUrl}/pinpad-txn`,deleteTpn:`${i.N.apiUrl}/deleteTpn`,checkRecurringPaymentsTPNDeletion:`${i.N.apiUrl}/checkRecurringPaymentsTPNDeletion`,isoDeleteMerchant:`${i.N.apiUrl}/isoDeleteMerchant`,updateEnv:`${i.N.apiUrl}/updateHostedEnv`,getEnv:`${i.N.apiUrl}/getHostedEnv`,deleteStore:`${i.N.apiUrl}/deleteStore`,deviceModels:`${i.N.apiUrl}/device-models`,deactivatedMerchants:`${i.N.apiUrl}/deactivatedMerchants`,getNTTPNdetails:`${i.N.apiUrl}/getNTTPNdetails`,getManufacturer:`${i.N.apiUrl}/manufacturers`,updateDefaultLabel:`${i.N.apiUrl}/updateDefaultLabel`,getAllProfiles:`${i.N.apiUrl}/profiles`,getAllProcessors:`${i.N.apiUrl}/processors`,getIntegrationList:`${i.N.apiUrl}/getIntegrationList`,settlementEmailAlert:`${i.N.apiUrl}/settlementEmailAlertConfig`,recurringPaymentEmailAlertConfig:`${i.N.apiUrl}/recurringPaymentEmailAlertConfig`,cloudPosEmailOrPasswordConfig:`${i.N.apiUrl}/cloudPosEmailOrPasswordConfig`,sendEmailWhileSettlement:`${i.N.apiUrl}/sendEmailWhileSettlement`,getMerchantById:`${i.N.apiUrl}/merchant`,getMerchantLogo:`${i.N.apiUrl}/merchantLogo`,isRPFeeApplied:`${i.N.apiUrl}/isRPFeeApplied`,isRPForConsumer:`${i.N.apiUrl}/isRPForConsumer`,secureDownload:`${i.N.apiUrl}/secureDownload`,deleteMultipleTPN:`${i.N.apiUrl}/deleteMultipleTpn`,getCustomerById:`${i.N.apiUrl}/customer`,generateTpn:`${i.N.apiUrl}/generateTPN/`,getEmails:`${i.N.apiUrl}/secPass-users`,getDeviceEventTypes:`${i.N.steamApiUrl}/event-types`,generateToken:`${i.N.apiUrl}/generateToken`,generateGhppUrl:`${i.N.apiUrl}/generateGhppUrl`,generateTapToken:`${i.N.apiUrl}/generateTapToken`,verifyEmailOfMerchantAdmin:`${i.N.apiUrl}/verifyEmailOfMerchantAdmin`,spinRegister:`${i.N.steamApiUrl}/spinRegister`,latestBuildForBulkAssign:`${i.N.apiUrl}/checkBulkAssignBuild`,updateBulkAssign:`${i.N.apiUrl}/bulkAssignBuild`,buildForBulkEdit:`${i.N.apiUrl}/checkBulkEditParam`,getAllBillingInvoice:`${i.N.apiUrl}/billingInvoice`,getAllAuditLogs:`${i.N.apiUrl}/get-all-audit-logs`,getAllAuditLogsPagination:`${i.N.apiUrl}/get-all-audit-logs-pagination`,getSelectedTPNLog:`${i.N.apiUrl}/get-selected-tpn`,posParamsDisplayNames:`${i.N.steamApiUrl}/posParamDisplayNames`,createNote:`${i.N.apiUrl}/createNotes`,viewNotes:`${i.N.apiUrl}/listNotes`,processorBytxn:`${i.N.apiUrl}/getProcessorsByTxn`,getUserById:`${i.N.apiUrl}/users/`,getAllTpnIdsForProxyTest:`${i.N.apiUrl}/getAllTpnIdsForProxyTest`,spinInfo:`${i.N.steamApiUrl}/spinInfo`,regProxyTest:`${i.N.steamApiUrl}/spinRegProxyTest`,proxyGetSerialNumberTest:`${i.N.steamApiUrl}/spinTestSerialNumber`,clientEmailAlert:`${i.N.apiUrl}/client-email-alert`,getTemplateJson:`${i.N.steamApiUrl}/getTemplateJson`,bulkUpdateTemplateJson:`${i.N.apiUrl}/bulkUpdateParam`,commitInvoice:`${i.N.apiUrl}/commitInvoice`,updatePriorityId:`${i.N.apiUrl}/updatePriorityId`,downloadBillInvoicePDF:`${i.N.apiUrl}/downLoadInvoicePDF`,setupRecurringPayment:`${i.N.apiUrl}/addRecurringPayment`,setupAlternateRecurringPayment:`${i.N.apiUrl}/addAlternateRecurringPayment`,setupAlternateRecurringPaymentNonPaya:`${i.N.achApiUrl}/createAlternateRecurringPayment`,getRecurringPaymentsList:`${i.N.apiUrl}/getRecurringPaymentsList`,editRecurringPayment:`${i.N.apiUrl}/getRecurringPaymentDetails`,editAlternateRecurringPayment:`${i.N.apiUrl}/getAlternateRecurringPaymentDetails`,getExportsRecurringPaymentsList:`${i.N.apiUrl}/getExportsRecurringPaymentsList`,cancelRecurringPayments:`${i.N.apiUrl}/cancelRecurringPayment/`,getRecurringTransactions:`${i.N.apiUrl}/getRecurringTransactions/`,customersByApplication:`${i.N.steamApiUrl}/customers-application/`,updateCustomerToApp:`${i.N.steamApiUrl}/updateCustomerToApp/`,updateCustomerIdInApp:`${i.N.steamApiUrl}/updateCustomerIdInApp/`,openBatchWithreport:`${i.N.apiUrl}/open-batch-filter-portal`,batchDetailsFilterPortal:`${i.N.apiUrl}/batch-details-filter-portal`,transactions:`${i.N.apiUrl}/transactions`,exportDownloadLogs:`${i.N.steamApiUrl}/downloadDownloadLogsReport`,batchTippedReportPortal:`${i.N.apiUrl}/batch-tipped-report-portal`,getTotalBatchByCustomer:`${i.N.apiUrl}/getTotalBatchByCustomer`,getCustomerLogoByCustomerId:`${i.N.apiUrl}/getCustomerLogoByCustomerId`,editCustomerLogo:`${i.N.apiUrl}/editCustomerLogo`,countLogoImage:`${i.N.steamApiUrl}/countLogoImage`,templateTypes:`${i.N.steamApiUrl}/templateTypes`,spinProxyLogs:`${i.N.steamApiUrl}/spinProxyLogs`,viewSpinProxyReqRes:`${i.N.steamApiUrl}/viewSpinProxyReqRes`,getAllProxyLoginLogs:`${i.N.apiUrl}
1/proxyLoginLogs`,getSelectedProxyDetails:`${i.N.apiUrl}/selectedEmailProxyLogs`,setProxyLogOutTime:`${i.N.apiUrl}/updateProxyLoginLogout`,pagoReg:`${i.N.steamApiUrl}/pagoReg`,proxyEmailLoginAlertConfig:`${i.N.apiUrl}/proxyEmailLoginAlertConfig`,getProxyAlertDetails:`${i.N.apiUrl}/getProxyAlertDetails`,isEnableProxyEmailAlert:`${i.N.apiUrl}/isEnableProxyEmailAlert`,getStoreUsers:`${i.N.apiUrl}/getStoreUsers`,changeStore:`${i.N.apiUrl}/changeStore`,postFortellisListParams:`${i.N.apiUrl}/postFortellisListParams`,checkFortellisIntegration:`${i.N.apiUrl}/checkFortellisIntegration`,payaAchGetTerminalSettings:`${i.N.apiUrl}/GetCertificationTerminalSettings`,getWebhookUrl:`${i.N.apiUrl}/generateKey-webhook`,preAuthenticationUrl:`${i.N.apiUrl}/preAuthentication-webhook`,saveUrl:`${i.N.apiUrl}/saveFeed-webhook`,getwebhookData:`${i.N.apiUrl}/getfeedData`,updateFeedUrl:`${i.N.apiUrl}/updateFeed-webhook`,getAllPromotions:`${i.N.apiUrl}/promotions`,getSelectedPromotionDetails:`${i.N.apiUrl}/promotionDetails`,addPromotions:`${i.N.apiUrl}/promotions`,updatePromotions:`${i.N.apiUrl}/promotions`,deletePromotion:`${i.N.apiUrl}/promotions`,toggleStatus:`${i.N.apiUrl}/change-active-status`,getPromotionCustomerFilter:`${i.N.apiUrl}/customers-filter`,getPromotionMerchantFilter:`${i.N.apiUrl}/merchants-filter`,getPromotionTPNsFilter:`${i.N.apiUrl}/tpns-filter`,getApplyForFilter:`${i.N.apiUrl}/filterDetailsById`,generateApiKey:`${i.N.apiUrl}/generateApiKey`,inventoryItems:_=>`${i.N.apiUrl}/inventory/items/${_}`,l2l3Data:`${i.N.apiUrl}/l2l3`,getAchProcessorData:`${i.N.apiUrl}/getAllAchProcessor`,getAllAchProcessorData:`${i.N.apiUrl}/getAllAchProcessorIso`,createAchProcessorData:`${i.N.apiUrl}/createAchProcessor`,createAlternateProcessorIso:`${i.N.apiUrl}/createachProcessorIso`,processACHTx:`${i.N.apiUrl}/processACHTx`,processVoidACHTx:`${i.N.apiUrl}/processVoidACHTx`,getDeviceInfoByTpn:`${i.N.apiUrl}/getDeviceInfoByTpn`,getAllAlternateProcessorIso:`${i.N.apiUrl}/getAllAlternateProcessorIso`,getTerminalTypeHistoryTxn:`${i.N.apiUrl}/getTerminalTypeHistoryTxn`,getAllConsumers:`${i.N.apiUrl}/consumerByStore`,suggestConsumersV2:`${i.N.apiUrl}/consumerByStoreV2`,getConsumerPaymentOptionsV2:`${i.N.apiUrl}/getConsumersTokenV2`,getInvoiceById:`${i.N.apiUrl}/getInvoice`,updatedInvoiceById:`${i.N.apiUrl}/updateInvoiceById`,getAllIsoPreferences:`${i.N.apiUrl}/getIsoPreferences`,resendReceiptFromPortal:`${i.N.apiUrl}/resendReceiptFromPortal`,DeleteCustomer:`${i.N.apiUrl}/deleteConsumer`,deleteLogoFromTpns:`${i.N.steamApiUrl}/deleteLogo`,getOwnershipInfoByTpn:`${i.N.apiUrl}/getOwnershipInfoByTpn`,getAllAsset:`${i.N.steamApiUrl}/getAllAsset`,rentalReplacementAsset:`${i.N.steamApiUrl}/rentalReplacement`,stopRental:`${i.N.steamApiUrl}/stopRental`,commitRentalInvoice:`${i.N.apiUrl}/commitRentalInvoice`,getMerchantUsers:`${i.N.apiUrl}/getMerchantUsers`,getSystemUsers:`${i.N.apiUrl}/getSystemUsers`,zipCodes:`${i.N.apiUrl}/zipcodes`,replaceMerchantEmail:`${i.N.apiUrl}/replaceMerchantEmail`,replaceISOEmail:`${i.N.apiUrl}/isoEmailChange`,checkPendingInvoices:`${i.N.apiUrl}/checkPendingInvoices`,getTerminalTypeTxn:`${i.N.apiUrl}/getTerminalTypeTxn`,quickbooks:{auth:`${i.N.apiUrl}/externalServices/qb/auth`,isQBEnabled:`${i.N.apiUrl}/externalServices/qb/isQuickbooksEnabled`,getAllLineItems:`${i.N.apiUrl}/externalServices/qb/itemsAndAccounts`,submitLineItems:`${i.N.apiUrl}/externalServices/qb/salesReceipt`,submitInvoiceLineItems:`${i.N.apiUrl}/externalServices/qb/payment`,checkLineItems:`${i.N.apiUrl}/externalServices/qb/isQuickbooksEnabled`,qbUpdateOrDelete:`${i.N.apiUrl}/externalServices/qb/`,getAllCustomers:`${i.N.apiUrl}/externalServices/qb/customers?all=true`,getInvoiceById:`${i.N.apiUrl}/externalServices/qb/invoice`,getCustomerById:`${i.N.apiUrl}/externalServices/qb/customer`,refund:`${i.N.apiUrl}/externalServices/qb/refund`,voidQb:(_,g)=>`${i.N.apiUrl}/externalServices/qb/${_}/${g?"partial":"void"}`},PayaAch:{GetCertificationTerminalSettings:`${i.N.apiUrl}/GetCertificationTerminalSettings`,ProcessSingleCertificationCheck:`${i.N.apiUrl}/ProcessSingleCertificationCheckPortal`,ppdAndCcd:`${i.N.apiUrl}/ppdAndCcd`,addAch:`${i.N.apiUrl}/add-ach`,addAchCheck:`${i.N.apiUrl}/add-ach-check`,ProcessSingleCertificationCheckCloudPos:`${i.N.apiUrl}/ProcessSingleCertificationCheckCloudPos`},merchantSettings:{settings:`${i.N.apiUrl}/merchantNotifications`,getUniqueLabels:`${i.N.steamApiUrl}/uniqueTpnLabels`,uploadMerchantAndStoreLogos:`${i.N.apiUrl}/uploadMerchantAndStoreLogos`,getMerchantAndStoreLogos:`${i.N.apiUrl}/getMerchantAndStoreLogos`,getApplePayDomains:`${i.N.apiUrl}/wallet-registration/list`,addApplePayDomain:`${i.N.apiUrl}/addApplePayDomain`,sampleDomainFile:`${i.N.apiUrl}/domain-file`},report:{tip:`${i.N.apiUrl}/report`,tipTagValue:`${i.N.apiUrl}/report/tagValue`},getAllStoreByEmailId:`${i.N.apiUrl}/getStoresByEmail`,receipt:{card:`${i.N.steamApiUrl}/customer-receipt-details`,alternate:`${i.N.steamApiUrl}/alter-customer-receipt-details`,viewReceiptNoAuth:`${i.N.steamApiUrl}/receipt`,viewReceiptNoAuthBackend:`${i.N.apiUrl}/receipt`},updateRefundFlag:`${i.N.apiUrl}/updateRefundFlag`,generateOneTimePasscode:`${i.N.apiUrl}/generateOneTimePasscode`,getAllUniqueBuildFromApp:`${i.N.apiUrl}/getAllUniqueBuildFromApp`,getAllUniqueDeviceModelFromApp:`${i.N.apiUrl}/getAllUniqueDeviceModelFromApp`,getAllUniqueTemplateFromApp:`${i.N.apiUrl}/getAllUniqueTemplateFromApp`,getAllUniqueCustomersFromApp:`${i.N.apiUrl}/getAllUniqueCustomersFromApp`,advancedAssignBuild:`${i.N.apiUrl}/advancedAssignBuild`,getAllMerchants:`${i.N.apiUrl}/get-merchants`,getAllTpnIds:`${i.N.apiUrl}/getAllTpnIds`,riskRules:{risk:`${i.N.apiUrl}/riskRule`,activateTpn:`${i.N.apiUrl}/riskRule/activateTpn`,template:`${i.N.apiUrl}/riskRule/template`,bulkUpdate:`${i.N.apiUrl}/riskRule/bulkUpdate`},alterativePayments:`${i.N.apiUrl}/alternative-payments`,signUploadAlternativePayments:`${i.N.apiUrl}/tx-alter-extn-portal`,inventory:`${i.N.apiUrl}/inventory`,updateInventoryStatus:`${i.N.apiUrl}/inventory/update-inventory-status`,inventoryTransactions:`${i.N.apiUrl}/inventory/transactions`,inventoryReportDownload:`${i.N.apiUrl}/inventory/transactions/download`,publishedBuild:`${i.N.steamApiUrl}/publishedBuild`,getPayaStates:`${i.N.apiUrl}/payaStatesPortal`,getHsmToken:`${i.N.apiUrl}/getHsmToken`,checkIsPayaMerchant:`${i.N.apiUrl}/checkIsPayaMerchant`,saveEmailForReportDownload:`${i.N.apiUrl}/saveEmailForReportDownload`,alternateVoid:`${i.N.apiUrl}/alternate/void`,payaPayload:`${i.N.apiUrl}/payaPayload`,getExternalIntegrationList:`${i.N.apiUrl}/getExternalIntegrationList`,getAllFortellisTransactionIds:`${i.N.apiUrl}/getAllFortellisTransactionIds`,ppiPushApi:`${i.N.apiUrl}/ppiPushApi`,marketApp:{uploadMarket:`${i.N.steamApiUrl}/uploadMarketApp/`,editMarket:`${i.N.steamApiUrl}/editMarketApp/`,getAllApps:`${i.N.steamApiUrl}/getAllMarketApps/`,deleteMarket:`${i.N.steamApiUrl}/deleteMarketApp/`},appMasterList:`${i.N.steamApiUrl}/appMasterList/`,appMasterVersionList:`${i.N.steamApiUrl}/appMasterVersionList/`,updateAnchorAppByAssetId:`${i.N.steamApiUrl}/updateAnchorAppByAssetId/`,checkThirdPartyAppByCustomer:`${i.N.steamApiUrl}/checkThirdPartyAppByCustomer/`,getAllThirdPartyAppByTpn:`${i.N.steamApiUrl}/getAllThirdPartyAppByTpn/`,getAllThirdPartyAppByCustomer:`${i.N.steamApiUrl}/getAllThirdPartyAppByCustomer/`,getAllThirdPartyApp:`${i.N.apiUrl}/getAllThirdPartyApp/`,saveThirdPartyApp:`${i.N.steamApiUrl}/saveThirdPartyApp/`,ecomAuthToken:`${i.N.apiUrl}/extra/ecomAuthToken/`,createNonGatewayTPN:`${i.N.steamApiUrl}/non-gateway-web/tpn/`,updateNonGatewayTPN:`${i.N.steamApiUrl}/non-gateway-web/tpn/`,getAllNonGatewayTPN:`${i.N.steamApiUrl}/non-gateway-web/`,deleteNonGatewayTPN:`${i.N.steamApiUrl}/non-gateway-web`,mfa:{validate:`${i.N.apiUrl}/mfa/validateLogin`,resendOTP:`${i.N.apiUrl}/mfa/resendOTP`,verifyOTP:`${i.N.apiUrl}/mfa/verifyOTP`,updateStatus:`${i.N.apiUrl}/mfa/updateMfa`,userCreateOTPVerify:`${i.N.apiUrl}/mfa/userCreateOTPVerify`,userUpdateOTPVerify:`${i.N.apiUrl}/mfa/userUpdateOTPVerify`,pxyLoginOTPVerify:`${i.N.apiUrl}
1/mfa/pxyLoginOTPVerify`,resendOTPWithUiRefId:`${i.N.apiUrl}/mfa/resendOTPWithUiRefId`,processTxnOTPVerify:`${i.N.apiUrl}/mfa/processTxnOTPVerify`,totpVerify:`${i.N.apiUrl}/mfa/totp/verify`,totpVerifySetup:`${i.N.apiUrl}/mfa/totp/verify-setup`},validateUser:`${i.N.apiUrl}/validate-user`,validateUpdateUser:`${i.N.apiUrl}/validate-update-user`,validatePxyLogin:`${i.N.apiUrl}/validate-pxy-login`,fileDownload:_=>`${i.N.apiUrl}/download/file/${_}`,getUniqueCustomerId:`${i.N.apiUrl}/getUniqueCustomerId`,checkAssetProtection:`${i.N.steamApiUrl}/checkAssetProtection`,downloadAllAsset:`${i.N.steamApiUrl}/downloadAllAsset`,getSelectedAssetCount:`${i.N.steamApiUrl}/getSelectedAssetCount`,bulkFirmwareUpdate:`${i.N.steamApiUrl}/bulkFirmwareUpdate`,getWhitelabelInfo:`${i.N.apiUrl}/getWhitelabelInfo`,getIntegrationsUrl:`${i.N.apiUrl}/getMerchantIntegrationList`,cardinalMerchant:`${i.N.apiUrl}/cardinalMerchant`,extraThreeSixty:{deleteExtraTpn:`${i.N.apiUrl}/extra/deleteExtraTpn`,createExtra360Store:`${i.N.steamApiUrl}/extra/createUpdateExtraStore`,createExtra360Merchant:`${i.N.apiUrl}/extra/createUpdateExtraMerchant`,updateMerchantPreferenceMapping:`${i.N.apiUrl}/extra/updateMerchantPreferenceMapping`,checkStore360Integration:`${i.N.apiUrl}/extra/checkMerchantStoreIntegration`,deleteExtra360Merchant:`${i.N.apiUrl}/extra/deleteExtraMerchant`,deleteExtra360Store:`${i.N.apiUrl}/extra/deleteExtraStore`},sampleAssetUpload:`${i.N.apiUrl}/sample-upload-asset`,viewUploadedInvoice:`${i.N.apiUrl}/viewUploadedInvoice`,getAllDvStoreThirdPartyApp:`${i.N.steamApiUrl}/third-party-apps/all-apps`,getThirdPartyAppById:`${i.N.steamApiUrl}/third-party-apps/get-app`,thirdPartyAppsUpdateCheck:`${i.N.steamApiUrl}/third-party-apps/update-check`,getThirdPartyAppsByUser:`${i.N.apiUrl}/getThirdPartyAppsByUser`,assign:{checkDowngrade:`${i.N.apiUrl}/checkDowngradeBuild`},campaign:{url:`${i.N.apiUrl}/campaign`,ui:`${i.N.apiUrl}/campaign/ui`,assign:`${i.N.apiUrl}/campaign/assign`,upload:`${i.N.apiUrl}/campaign/signed-url`},communicationCenter:{getOptions:`${i.N.steamApiUrl}/communication/getCommunicationOptions`,triggerNotification:`${i.N.steamApiUrl}/communication/triggerNats`,getControlTemplate:`${i.N.cccApiUrl}/communication/getccctemplate`,emptyTemplate:`${i.N.steamApiUrl}/`,sendNatsMessage:`${i.N.cccApiUrl}/api/triggerNats`,triggerNats:`${i.N.cccApiUrl}/communication/triggerNats`},getENVConfig:`${i.N.apiUrl}/bigdata-search`,getTermsTemplate:`${i.N.apiUrl}/getTermsTemplate`,saveTermsAgreement:`${i.N.apiUrl}/saveTermsAgreement`,loadTermsPdf:`${i.N.apiUrl}/terms-pdf`,getSLNumberData:`${i.N.apiUrl}/assets_details/getserialNumber`,merchantBilling:{accountInfo:`${i.N.apiUrl}/billing-account-info`,getContract:`${i.N.apiUrl}/getMerchantContract`,saveSellingPrice:`${i.N.apiUrl}/save-selling-price`,billingStatus:`${i.N.apiUrl}/billing-status`,getBillingSummary:`${i.N.apiUrl}/billing-summary`,bulkEnable:`${i.N.apiUrl}/billing-bulk-enable`,paymentDetail:`${i.N.apiUrl}/payment-detail`,billingEnableById:`${i.N.apiUrl}/billingEnableById`,disableBilling:`${i.N.apiUrl}/billingDisableById`,enableBilling:`${i.N.apiUrl}/billingEnable`,consumerDetails:`${i.N.apiUrl}/consumer-detail`,getInvoicesMonthly:`${i.N.apiUrl}/merchant-billing-monthly-invoices`,getInvoiceIds:`${i.N.apiUrl}/merchant-billing-invoices-ids`,getInvoiceDetails:`${i.N.apiUrl}/merchant-billing-invoices-details`,invoiceDownload:`${i.N.apiUrl}/invoice-download`,s3Link:`${i.N.apiUrl}/get-s3-link`,getMerchant:`${i.N.apiUrl}/getMerchantById/`},fetchAndPay:{getIntegratorData:`${i.N.apiUrl}/fetch/getIntegratorData`,getIntegratorMappingData:`${i.N.apiUrl}/fetch/getIntegratorMappingData/`,saveIntegratorData:`${i.N.apiUrl}/fetch/saveIntegratorData`,getIntegratorConfig:`${i.N.apiUrl}/fetch/getIntegratorConfig`,saveIsoIntegratorMappings:`${i.N.apiUrl}/fetch/saveIsoIntegratorMappings`,disableMappings:`${i.N.apiUrl}/fetch/disableMappings`,enableMappings:`${i.N.apiUrl}/fetch/enableMappings`,updateTpnPosParams:`${i.N.steamApiUrl}/bulkUpdateTpnDetails`,getIntegratorDetails:`${i.N.apiUrl}/fetch/getIntergrator`,invoiceDetails:`${i.N.apiUrl}/invoiceDetails`,saveInvoiceData:`${i.N.apiUrl}/fetch/saveInvoiceData`},deleteInvoiceStatus:`${i.N.apiUrl}/deleteInvoiceStatus`,markUsPaid:`${i.N.apiUrl}/markUsPaid`,verifyMarkAsPaid:`${i.N.invoiceApiUrl}
1/invoice/verifyMarkAsPaid`,cancelPaymentLink:`${i.N.invoiceApiUrl}/invoice/cancellPaymentLink`,gw:{pockytRefund:`${i.N.apiUrl}/gw/pockyt-refund`},designerTool:{createTemplate:`${i.N.apiUrl}/designer-tool/create-templates`,getAllTemplate:`${i.N.apiUrl}/designer-tool/get-all-templates`,getTemplateById:`${i.N.apiUrl}/designer-tool/template`,deleteTemplateById:`${i.N.apiUrl}/designer-tool/template`},loyalty:{getLoyaltyData:`${i.N.apiUrl}/getLoyaltyData`,getLoyaltyProviderList:`${i.N.apiUrl}/getLoyaltyProviderList`,saveLoyaltyProvider:`${i.N.apiUrl}/saveLoyaltyProvider`,toggleLoyaltyProvider:`${i.N.apiUrl}/toggleLoyaltyProvider`,toggleLoyaltyConfiguration:`${i.N.apiUrl}/toggleLoyaltyConfiguration`,checkLoyaltyExists:`${i.N.apiUrl}/checkLoyaltyExists`,bulkUpdateEnpAddAuditLog:`${i.N.steamApiUrl}/bulkUpdateEnpAddAuditLog`,toggleTPNParams:`${i.N.steamApiUrl}/toggleTPNParams`},postLog:`${i.N.apiUrl}/postLog`,getStoreByUser:`${i.N.apiUrl}/stores-accessible`,newInvoice:{updateDraftedOrPendingInvoice:`${i.N.apiUrl}/updateDraftedOrPendingInvoice`,getInvoiceHistory:`${i.N.invoiceApiUrl}/invoice/getChildInvoiceList`},achnxapis:{commonTransactionApi:`${i.N.achApiUrl}/process-ach-payments`,commonAddBankApi:`${i.N.achApiUrl}/add-bank`,tokenizedTransaction:`${i.N.achApiUrl}/tokenized-transaction`},veriCheckAch:{checkPaymentStatus:`${i.N.achApiUrl}/vericheck/checkPaymentStatus`,checkRefundStatus:`${i.N.achApiUrl}/vericheck/checkRefundStatus`,void:`${i.N.achApiUrl}/alternateVoidTxn`,alternateVoidRefundTxn:`${i.N.achApiUrl}/alternateVoidRefundTxn`,refund:`${i.N.achApiUrl}/refund`}}},71183:(Te,G,r)=>{"use strict";r.d(G,{d:()=>t});var i=r(52678);let t=(()=>{class _{static PatternValidator(T,v){return I=>I.value?T.test(I.value)?null:v:null}static EnhancedPatternValidator(){return T=>{const v=T.value||"",I={};return v.length<12&&(I.minLengthError=!0),/[A-Z]/.test(v)||(I.missingUppercase=!0),/[a-z]/.test(v)||(I.missingLowercase=!0),/[0-9]/.test(v)||(I.missingNumber=!0),/[!@#\$%\^&\*]/.test(v)||(I.missingSpecialCharacter=!0),Object.keys(I).length?I:null}}static PassswordMatch(T){T.get("password").value!==T.get("cpassword").value&&T.get("cpassword").setErrors({NoPassswordMatch:!0})}static CompareTwoValues(T){return v=>{const w=v?.value?.length;return T.length===w?{compareTwoValues:!0}:null}}static minSelectedCheckboxes(){return v=>v.controls.map(w=>w.value).reduce((w,A)=>A?w+1:w,0)>=1?null:{notSelected:!0}}static unitCostValidator(T){return parseFloat(T.value)<i.BY.uCost.min?{decimalTo2Places:!0}:null}static taxRateValidator(T){const v=parseFloat(T.value);return v<i.BY.tRate.min||v>i.BY.tRate.max?{taxValidator:!0}:null}static discountRateValidator(T){const v=parseFloat(T.value);return v<i.BY.dRate.min||v>i.BY.dRate.max?{discountRate:!0}:null}static discountAmountValidator(T){return parseFloat(T.value)<i.BY.dAmount.min?{discountAmount:!0}:null}static valueInArrayCheck(T,v){return I=>{const w=I.value;return w?T?.some(b=>b[v]===w)?null:{valueInArrayCheck:!0}:null}}static applePayDomainValidator(){return T=>{const v=(T.value||"").trim();return v?/^[a-z][a-z0-9+\-.]*:\/\//i.test(v)?{invalidDomain:"Do not include protocol (e.g., http://, https://)"}:/^\d{1,3}(\.\d{1,3}){3}$/.test(v)?{invalidDomain:"IP addresses are not allowed"}:/^(localhost|127\.0\.0\.1|.*\.local|.*\.internal)$/i.test(v)?{invalidDomain:"Local/internal domains are not allowed"}:/[\/?#]/.test(v)?{invalidDomain:"Do not include path or parameters"}:/^(?!:\/\/)([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(v)?null:{invalidDomain:"Invalid domain format"}:null}}}return _.atLeastOneInputHasValue=()=>g=>Object.values(g.value).find(T=>Boolean(T))?null:{atLeastOneRequired:{text:"At least one control is required"}},_})()},49212:(Te,G,r)=>{"use strict";r.d(G,{V:()=>g});var i=r(2979),t=r(22560),_=r(2508);let g=(()=>{class T{constructor(I,w,A){this.el=I,this.ngControl=w,this.zipConfigService=A,this.format=i.z.ZIP_6_SPACED}ngOnInit(){this.format=this.zipFormatType??this.zipConfigService.getFormat(),this.el.nativeElement.maxLength=this.zipConfigService.getMaxLength()}onKeyDown(I){if(!(["Backspace","Tab","End","Home","ArrowLeft","ArrowRight","Delete"].includes(I.key)||I.ctrlKey||I.metaKey)){if(this.format===i.z.ZIP_6_SPACED)return void(/^[A-Za-z0-9\s]$/.test(I.key)||I.preventDefault());/^[A-Za-z0-9]$/.test(I.key)||I.preventDefault()}}onPaste(I){const w=this.ngControl?.control;if(null!=w?.value&&"object"==typeof w.value)return;I.preventDefault();const A=I.clipboardData?.getData("text")??"",b=this.zipConfigService.formatZipInput(A,this.format);this.el.nativeElement.value=b,w?.setValue(b,{emitEvent:!0})}onInput(){const I=this.ngControl?.control;if(null!=I?.value&&"object"==typeof I.value)return;const w=this.el.nativeElement.value??"",A=this.zipConfigService.formatZipInput(w,this.format);A!==w&&(this.el.nativeElement.value=A),I?.setValue(A,{emitEvent:!0})}onBlur(){const I=this.ngControl?.control;if(!I)return;const w=this.zipConfigService.extractZipValue(I.value);if(!w)return;const A=this.zipConfigService.formatZipInput(w,this.format);A!==w&&"object"!=typeof I.value&&I.setValue(A,{emitEvent:!0})}}return T.\u0275fac=function(I){return new(I||T)(t.Y36(t.SBq),t.Y36(_.a5,10),t.Y36(i.d))},T.\u0275dir=t.lG2({type:T,selectors:[["","appZipFormat",""]],hostBindings:function(I,w){1&I&&t.NdJ("keydown",function(b){return w.onKeyDown(b)})("paste",function(b){return w.onPaste(b)})("input",function(){return w.onInput()})("blur",function(){return w.onBlur()})},inputs:{zipFormatType:"zipFormatType"}}),T})()},65701:(Te,G,r)=>{"use strict";r.d(G,{R:()=>g});var i=r(61407),t=r.n(i),_=r(22560);let g=(()=>{class T{constructor(){}ngAfterViewInit(){t().replace()}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275dir=_.lG2({type:T,selectors:[["","appFeatherIcon",""]]}),T})()},39628:(Te,G,r)=>{"use strict";r.d(G,{M:()=>_});var i=r(94666),t=r(22560);let _=(()=>{class g{}return g.\u0275fac=function(v){return new(v||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[i.ez]}),g})()},41493:(Te,G,r)=>{"use strict";r.d(G,{R:()=>v});var i=r(92938),_=r(22560),g=r(19787),T=r(59462);let v=(()=>{class I{constructor(A,b){this.authService=A,this.router=b}canActivate(A,b){return!!this.isUserFeatureExist(this.authService.getUser.roleFeatures,A.data.module,A.data.privilege)||(this.router.navigate(["error"]),!1)}isUserFeatureExist(A,b,D){let e=this.authService.getPrivileges(b)?.features,n=A.some(f=>f.module===b);return n&&D?"string"==typeof D?e.indexOf(D)>-1:!(0,i.isEmpty)(e.filter(f=>D.includes(f))):n}}return I.\u0275fac=function(A){return new(A||I)(_.LFG(g.e),_.LFG(T.F0))},I.\u0275prov=_.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},18595:(Te,G,r)=>{"use strict";r.d(G,{LM:()=>i,df:()=>t,yg:()=>_});const i=(g,T="0")=>{if(!g)return T;let v="";const I=g.toString();if(I.includes(".")){const[w,A]=I.split(".");v=`${parseInt(w)?w:""}${A.length>1?A.substring(0,2):A+"0"}`}else v=0==I?T:`${I}00`;return parseFloat(v)<=0?T:v};var t=(()=>{return(g=t||(t={})).SEND_COMMAND="SEND_COMMAND",g.SEND_COMMUNICATION="SEND_COMMUNICATION",t;var g})();const _={"apple pay":"applepay","tap on phone":"tapOnphone"}},52678:(Te,G,r)=>{"use strict";r.d(G,{BY:()=>t,DY:()=>_,dp:()=>g,oA:()=>T});const t={pName:{min:3,max:40},pCode:{min:4,max:25},itemDesc:{min:3,max:100},tRate:{min:.1,max:22},dRate:{min:1,max:100}
1,uCost:{min:0},dAmount:{min:.1}},_={addSuccess:"Item added successfully",updateSuccess:"Item updated successfully",deleteSuccess:"Item deleted successfully",deleteError:"Error deleting item",noItems:"No items found"};var g=(()=>{return(v=g||(g={})).CASH="CASH",v.CARD="CARD",g;var v})();const T={State:"STATE",local:"LOCAL"}},58583:(Te,G,r)=>{"use strict";r.d(G,{k$:()=>g,ku:()=>I,lk:()=>w});var i=r(92938),_=r(18595);const g=A=>{const b=[];let D=1;for(let e=0;e<A.length;e++){const n={lineItemData:T(A[e]),details:`LI${D}`};n.lineItemData&&(D++,b.push(n))}return b},T=A=>{let b=A.item;return b.unitCost=A.item.unitCost,b.quantity=A.itemCount,b.totalAmount=A.totalAmount,b.description=(0,i.isEmpty)(A.description)?"NA":A.description,b.discountAmount=A.discountAmount,b.totalTax=A.taxAmount,b},I=A=>(A.totalAmount&&(A.totalAmount=(100*A.totalAmount).toString()),A.unitCost&&(A.unitCost=(100*A.unitCost).toString()),A.taxRate&&(A.taxRate=A.stateTaxRate.toString()||"0"),A.quantity&&(A.quantity=A.quantity.toString()),A.taxRate||(A.taxRate="0"),A.discountRate||(A.discountRate="0"),A.discountAmount=A.discountAmount?(100*A.discountAmount).toString():"0",A),w=A=>{let b=0,D=0,e=0,n=0;return{lineItemsArray:A.map((S,J)=>{const de=S.lineItemData;let z=de.quantity*+de.unitCost,Ee=z;n+=z;let Oe=0;return de.discountRate&&"0"!=de.discountRate?Oe=de.discountAmount:de.discountAmount&&(Oe=parseInt(de.discountAmount)),z-=Oe,e+=Oe,de.totalTax=(0,_.LM)(de.totalTax),b+=+de.totalTax,de.individualPrice=z,de.totalBaseAmountWithoutDiscount=Ee,D+=+de.totalAmount,de.code=J+1,de}),totalAmount:D,totalTax:b,totalDiscount:e,totalBaseAmount:n}}},39195:(Te,G,r)=>{"use strict";r.d(G,{Z:()=>i});var i=(()=>{return(t=i||(i={})).view="VIEW_BILLING",t.edit="EDIT_BILLING",t.merchantBilling="MERCHANT_BILLING",i;var t})()},22872:(Te,G,r)=>{"use strict";r.d(G,{j:()=>i});var i=(()=>{return(t=i||(i={})).DASHBOARD="DASHBOARD",t.USER="USER",t.TRANSACTION="TRANSACTION",t.STEAM="STEAM",t.COMMON="COMMON",t.CUSTOMER="CUSTOMER",t.DEVICE="DEVICE",t.MERCHANT="MERCHANT",t.BATCHES="BATCHES",t.ASSET="ASSET",t.PAYMENT="PAYMENT",t.MERCHANT_SETTINGS="MERCHANT_SETTINGS",t.CUSTOMERCONNECT="CUSTOMERCONNECT",t.TPN="TPN",t.SETTINGS="SETTINGS",t.MY_TICKETS="MY_TICKETS",t.ISO_SETTINGS="ISO_SETTINGS",t.CLOUD_POS="CLOUD_POS",t.CONSUMER="CONSUMER",t.AUDITLOGS="AUDITLOGS",t.NOTES="NOTES",t.TROUBLESHOOT="TROUBLESHOOT",t.BILLING="BILLING",t.DEVELOPER_CENTER="DEVELOPER_CENTER",t.PROMOTION="PROMOTION",t.INVENTORY="INVENTORY",t.RENTAL="RENTAL",t.REPORTS="REPORTS",t.CUSTOMER_SUPPORT_VIDEOS="CUSTOMER_SUPPORT_VIDEOS",t.ADVANCED="ADVANCED",t.RISK_MANAGEMENT="RISK_MANAGEMENT",t.DV_STORE="DV_STORE",t.CAMPAIGN="CAMPAIGN",t.MULTI_MID="MULTI_MID",t.BETA_SEARCH="BETA_SEARCH",t.COMMAND_CENTER="COMMAND_CENTER",t.COMMUNICATION_CENTER="COMMUNICATION_CENTER",t.CONTROL_CENTER="CONTROL_CENTER",t.MERCHANT_BILLING="MERCHANT_BILLING",t.DESIGNER_TOOL="DESIGNER_TOOL",t.RESOURCES="RESOURCES",t.INVOICE="INVOICE",t.DEJAUP="DEJA_UP",i;var t})()},33937:(Te,G,r)=>{"use strict";r.d(G,{R:()=>i});var i=(()=>{return(t=i||(i={})).VIEW_DASHBOARD="VIEW_DASHBOARD",t.CREATE="CREATE",t.READ="READ",t.UPDATE="UPDATE",t.DELETE="DELETE",t.PRINT="PRINT",t.EXPORT="EXPORT",t.ADD_USER="ADD_USER",t.EXPORT_USER="EXPORT_USER",t.VIEW_USER="VIEW_USER",t.EDIT_USER="EDIT_USER",t.RESENT_ACTIVATION_LINK="RESENT_ACTIVATION_LINK",t.RESET_PASSWORD="RESET_PASSWORD",t.PRINT_USER="PRINT_USER",t.DELET
1E_USER="DELETE_USER",t.VIEW_CUSTOMER="VIEW_CUSTOMER",t.ADD_ISO="ADD_ISO",t.ADD_SUB_ISO="ADD_SUB_ISO",t.EDIT_CUSTOMER="EDIT_CUSTOMER",t.DELETE_CUSTOMER="DELETE_CUSTOMER",t.EXPORT_CUSTOMER="EXPORT_CUSTOMER",t.PRINT_CUSTOMER="PRINT_CUSTOMER",t.VIEW_APPLICATION="VIEW_APPLICATION",t.ADD_APPLICATION="ADD_APPLICATION",t.VIEW_DEVICE="VIEW_DEVICE",t.ADD_ASSET="ADD_ASSET",t.EDIT_ASSET="EDIT_ASSET",t.VIEW_ASSET="VIEW_ASSET",t.DELETE_ASSET="DELETE_ASSET",t.VIEW_DOWNLOAD_LOG="VIEW_DOWNLOAD_LOG",t.VIEW_MERCHANT="VIEW_MERCHANT",t.PAYMENTS="PAYMENTS",t.VIEW_DEVICE_ALERT="VIEW_DEVICE_ALERT",t.ADD_MERCHANT="ADD_MERCHANT",t.ADD_PROMOTIONAL_SETTING="ADD_PROMOTIONAL_SETTING",t.EDIT_PROMOTIONAL_SETTING="EDIT_PROMOTIONAL_SETTING",t.VIEW_BATCHES="VIEW_BATCHES",t.MAKE_SETTLEMENT="MAKE_SETTLEMENT",t.ADD_TPN="ADD_TPN",t.HELP_DESK="HELP_DESK",t.VIEW_TICKET="VIEW_TICKET",t.EDIT_ACTIONS="EDIT_ACTIONS",t.DELETE_MERCHANT="DELETE_MERCHANT",t.ADD_CUSTOMER="ADD_CUSTOMER",t.ADD_STORE="ADD_STORE",t.EDIT_STORE="EDIT_STORE",t.EDIT_TPN="EDIT_TPN",t.EXPORT_MERCHANT="EXPORT_MERCHANT",t.PRINT_MERCHANT="PRINT_MERCHANT",t.EDIT_MERCHANT="EDIT_MERCHANT",t.DELETE_STORE="DELETE_STORE",t.DELETE_TPN="DELETE_TPN",t.ASSIGN_BUILD="ASSIGN_BUILD",t.EDIT_PARAM="EDIT_PARAM",t.VIEW_ASSETS="VIEW_ASSETS",t.EDIT_ASSETS="EDIT_ASSETS",t.DELETE_ASSETS="DELETE_ASSETS",t.ADD_ASSETS="ADD_ASSETS",t.ADD_DEVICE_MODELS="ADD_DEVICE_MODELS",t.EDIT_DEVICE_MODELS="EDIT_DEVICE_MODELS",t.DELETE_DEVICE_MODELS="DELETE_DEVICE_MODELS",t.VIEW_TRANSACTION="VIEW_TRANSACTION",t.VIEW_RECEIPT="VIEW_RECEIPT",t.REFUND_TRANSACTION="REFUND_TRANSACTION",t.VOID_TRANSACTION="VOID_TRANSACTION",t.TICKET_TRANSACTION="TICKET_TRANSACTION",t.EXPORT_TRANSACTION="EXPORT_TRANSACTION",t.SETTLE_BATCH="SETTLE_BATCH",t.EXPORT_BATCH="EXPORT_BATCH",t.TIP_ADJUST="TIP_ADJUST",t.INVOICE_LIST="INVOICE_LIST",t.UPLOAD_INVOICE="UPLOAD_INVOICE",t.SEND_PAYMENT_LINK="SEND_PAYMENT_LINK",t.PAY_NOW="PAY_NOW",t.EDIT_INVOICE="EDIT_INVOICE",t.VIEW_INVOICE_LIST="VIEW_INVOICE_LIST",t.VIEW_CONSUMER="VIEW_CONSUMER",t.RUN_A_SALE="RUN_A_SALE",t.ADD_CONSUMER="ADD_CONSUMER",t.EDIT_CONSUMER="EDIT_CONSUMER",t.DELETE_CONSUMER="DELETE_CONSUMER",t.ADD_CARD="ADD_CARD",t.EDIT_CARD="EDIT_CARD",t.DELETE_CARD="DELETE_CARD",t.EXPORT_CONSUMER="EXPORT_CONSUMER",t.SETTLE_EMAIL_ALERT="SETTLE_EMAIL_ALERT",t.DEVICE_TOKEN_TOP="DEVICE_TOKEN_TOP",t.UPDATE_GHPP_TAG="UPDATE_GHPP_TAG",t.MERCHANT_UPLOAD_LOGO="MERCHANT_UPLOAD_LOGO",t.VIEW_AUDITLOGS="VIEW_AUDITLOGS",t.VIEW_AUDIT_LOGS="VIEW_AUDIT_LOGS",t.ADD_NOTES="ADD_NOTES",t.VIEW_NOTES="VIEW_NOTES",t.SPIN_PROXY="SPIN_PROXY",t.ADD_CONTRACT="ADD_CONTRACT",t.EDIT_CONTRACT="EDIT_CONTRACT",t.VIEW_INVOICE="VIEW_INVOICE",t.GENERATE_BILLING="GENERATE_BILLING",t.VIEW_RECURRING_PAYMENT_LIST="VIEW_RECURRING_PAYMENT_LIST",t.RECURRING_PAYMENT_EMAIL_ALERT="RECURRING_PAYMENT_EMAIL_ALERT",t.DOWNLOAD_RECURRING_PAYMENTS_LIST="DOWNLOAD_RECURRING_PAYMENTS_LIST",t.SETUP_RECURRING_PAYMENT="SETUP_RECURRING_PAYMENT",t.CANCEL_RECURRING_PAYMENT="CANCEL_RECURRING_PAYMENT",t.EXTERNAL_HOST="EXTERNAL_HOST",t.DELETE_POS_PARAM="DELETE_POS_PARAM",t.VIEW_PROXY_LOGS="VIEW_PROXY_LOGS",t.EXTERNAL_DOCUMENT="EXTERNAL_DOCUMENT",t.ADD_PROMOTION="ADD_PROMOTION",t.EDIT_PROMOTION="EDIT_PROMOTION",t.DELET
1E_PROMOTION="DELETE_PROMOTION",t.API_KEY_GENERATION="API_KEY_GENERATION",t.VIEW_PROMOTION="VIEW_PROMOTION",t.VIEW_INVENTORY="VIEW_INVENTORY",t.ADD_INVENTORY="ADD_INVENTORY",t.EDIT_INVENTORY="EDIT_INVENTORY",t.DELETE_INVENTORY="DELETE_INVENTORY",t.STOP_RENTAL="STOP_RENTAL",t.RENTAL_REPLACEMENT="RENTAL_REPLACEMENT",t.VIEW_RENTAL="VIEW_RENTAL",t.EXTERNAL_MERCHANT_BOARDING="EXTERNAL_MERCHANT_BOARDING",t.PAYMENT_NOTIFICATIONS="PAYMENT_NOTIFICATIONS",t.PROCESS_REFUND="PROCESS_REFUND",t.REMOVE_FEE="REMOVE_FEE",t.EDIT_DEVICE_LABEL="EDIT_DEVICE_LABEL",t.ADDITIONAL_AUTH="ADDITIONAL_AUTH",t.VIEW_TIP_REPORT="VIEW_TIP_REPORT",t.VIEW_SETTLEMENT_REPORT="VIEW_SETTLEMENT_REPORT",t.VIEW_BATCH_REPORT="VIEW_BATCH_REPORT",t.VIEW_INVENTORY_REPORT="VIEW_INVENTORY_REPORT",t.VIEW_CUSTOMER_SUPPORT_VIDEOS="VIEW_CUSTOMER_SUPPORT_VIDEOS",t.MULTI_REFUND="MULTI_REFUND",t.STORE_CHANGE="STORE_CHANGE",t.PROXY_LOGIN="PROXY_LOGIN",t.BULK_ASSIGN="BULK_ASSIGN",t.VIEW_RISK_DETAILS="VIEW_RISK_DETAILS",t.EDIT_RISK_DETAILS="EDIT_RISK_DETAILS",t.ACTIVATE_TPN="ACTIVATE_TPN",t.VIEW_RISK_TEMPLATES="VIEW_RISK_TEMPLATES",t.EDIT_RISK_TEMPLATES="EDIT_RISK_TEMPLATES",t.DELETE_RISK_TEMPLATES="DELETE_RISK_TEMPLATES",t.EXPORT_TPN="EXPORT_TPN",t.VIEW_MARKET_APP="VIEW_MARKET_APP",t.EDIT_MARKET_APP="EDIT_MARKET_APP",t.DELETE_MARKET_APP="DELETE_MARKET_APP",t.ASSIGN_ANCHOR_APP="ASSIGN_ANCHOR_APP",t.VIEW_THIRDPARTY_APP="VIEW_THIRDPARTY_APP",t.ASSIGN_THIRDPARTY_APP="ASSIGN_THIRDPARTY_APP",t.ADD_NON_GATEWAY_TPN="ADD_NON_GATEWAY_TPN",t.EDIT_NON_GATEWAY_TPN="EDIT_NON_GATEWAY_TPN",t.DELETE_NON_GATEWAY_TPN="DELETE_NON_GATEWAY_TPN",t.VIEW_NON_GATEWAY_TPN="VIEW_NON_GATEWAY_TPN",t.EDIT_CUSTOMER_ASSET="EDIT_CUSTOMER_ASSET",t.EXPORT_ASSETS="EXPORT_ASSETS",t.FIRMWARE_BULK_UPDATE="FIRMWARE_BULK_UPDATE",t.ADD_VALUE_ADDED_APPS="ADD_VALUE_ADDED_APPS",t.MANAGE_DVSTORE="MANAGE_DVSTORE",t.VALUE_ADDED_APPS="VALUE_ADDED_APPS",t.BULK_ASSIGN_VALUE_ADDED_APP="BULK_ASSIGN_VALUE_ADDED_APP",t.ADD_CAMPAIGN="ADD_CAMPAIGN",t.DELETE_CAMPAIGN="DELETE_CAMPAIGN",t.VIEW_CAMPAIGN="VIEW_CAMPAIGN",t.VIEW_MULTI_MID="VIEW_MULTI_MID",t.CREATE_MULTI_MID="CREATE_MULTI_MID",t.EDIT_MULTI_MID="EDIT_MULTI_MID",t.DELETE_MULTI_MID="DELETE_MULTI_MID",t.VIEW_BETA_SEARCH="VIEW_BETA_SEARCH",t.DOWNGRADE_BUILD="DOWNGRADE_BUILD",t.COMMAND_CENTER="COMMAND_CENTER",t.CARD_UPDATER="CARD_UPDATER",t.ADD_BANK="ADD_BANK",t.SEND_COMMAND="SEND_COMMAND",t.SEND_COMMUNICATION="SEND_COMMUNICATION",t.VIEW_BILLING="VIEW_BILLING",t.EDIT_BILLING="EDIT_BILLING",t.PAYMENT_METHODS="PAYMENT_METHODS",t.ADD_DESIGNER_TOOL="ADD_DESIGNER_TOOL",t.VIEW_DESIGNER_TOOL="VIEW_DESIGNER_TOOL",t.DELETE_DESIGNER_TOOL="DELETE_DESIGNER_TOOL",t.API_DOCS="API_DOCS",t.KNOWLEDGE_BASE="KNOWLEDGE_BASE",t.RELEASE_NOTES="RELEASE_NOTES",t.CREATE_INVOICE="CREATE_INVOICE",t.VIEW_TERMINAL="VIEW_TERMINAL",t.EDIT_VENDING_CONFIGURATION="EDIT_VENDING_CONFIGURATION",t.EDIT_IPOSPAYS_CONFIGURATION="EDIT_IPOSPAYS_CONFIGURATION",t.REMOTE_COMMANDS="REMOTE_COMMANDS",t.VIEW_DISPENSER="VIEW_DISPENSER",t.VIEW_DEX_AUDIT="VIEW_DEX_AUDIT",t.VIEW_WEBHOOK_LOG="VIEW_WEBHOOK_LOG",t.VIEW_DEJAUP_TRANSACTION="VIEW_TRANSACTION",t.VIEW_WEBHOOK="VIEW_WEBHOOK",i;var t})()},20177:(Te,G,r)=>{"use strict";r.d(G,{BZ:()=>_,Bk:()=>g,Dp:()=>n,HN:()=>i,H_:()=>e,K_:()=>I,PN:()=>J,aL:()=>Ie,d8:()=>S,iU:()=>b,ks:()=>T,oA:()=>t,qe:()=>D,rP:()=>f,sX:()=>w,tK:()=>A,yV:()=>v});const i=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,15}))$/,t=/^[a-zA-Z0-9]*$/,_=/^.{10,18}$/,g=/^[ A-Za-z0-9_@./#&+-]*$/,T=/^[A-Za-z0-9 _$'.!%,@&-]{1,150}$/,v=new RegExp(/^(https:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[\w\-./]*)?$/),I=/^[A-Za-z0-9\-\\/! ]*$/,w=/^\d{4,6}$/,A=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)*$/,b=/^.{2,50}$/,D=/^.{2,50}$/,e=/^.{2,25}$/,n=/^[A-Za-z0-9]{1}[ A-Za-z0-9]{0,15}$/,f=/^(?!\s)[a-zA-Z0-9](?:[a-zA-Z0-9 \-_'])*$/,S=new RegExp("^(?:4[0-9]{15}|5[1-5][0-9]{14}|222[1-9][0-9]{12}|22[3-9][0-9]{13}|2[3-6][0-9]{14}|27[01][0-9]{13}|2720[0-9]{12}|6(?:011|5[0-9]{2}|4[4-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35[0-9]{3})[0-9]{11}|(62[0-9]{14,17})|(81[0-9]{14,17})|[*]{16})$"),J=/^[0-9]{3,4}$|[***]/,Ie=/^[a-zA-Z0-9.,\-#/'&\u2014\s]+$/},3497:(Te,G,r)=>{"use strict";r.d(G,{f:()=>t,i:()=>i});var i=(()=>((i||(i={})).check="CHECK",i))(),t=(()=>{return(_=t||(t={})).ACTIVE="ACTIVE",_.DEACTIVATED="DEACTIVATED",_.SUSPENDED="SUSPENDED",t;var _})()},11009:(Te,G,r)=>{"use strict";r.d(G,{F:()=>i});var i=(()=>{return(t=i||(i={})).SYSTEM="SYSTEM",t.ISO="ISO",t.ADMIN="ADMIN",t.SUB_ISO="SUB_ISO",t.AGENT_OFFICE="AGENT_OFFICE",t.MERCHANT="MERCHANT",i;var t})()},14470:(Te,G,r)=>{"use strict";r.d(G,{jj:()=>D});var i=r(92938);const t="ipp_portal_session_bridge_logout";var g=r(92340),T=r(22560);function w(e){if(!e?.trim())return null;try{return new URL(e.trim()).origin}catch{return null}}let D=(()=>{class e{constructor(){this.dejaUpWindows=new Set,this.onMessage=f=>this.replyToDejaupRegistration(f),this.onStorage=f=>this.onSiblingPortalTabBridgeStorage(f),typeof window<"u"&&(window.addEventListener("message",this.onMessage),window.addEventListener("storage",this.onStorage))}ngOnDestroy(){typeof window<"u"&&(window.removeEventListener("message",this.onMessage),window.removeEventListener("storage",this.onStorage))}registerDejaupWindow(f){typeof window>"u"||!f||f.closed||(this.pruneClosedDejaupWindows(),this.dejaUpWindows.add(f))}pruneClosedDejaupWindows(){for(const f of this.dejaUpWindows)f.closed&&this.dejaUpWindows.delete(f)}dejaupTargetOrigin(){return w(g.N.vipUrl)}onSiblingPortalTabBridgeStorage(f){f.storageArea===window.localStorage&&(f.key!==t||null==f.newValue||""===f.newValue||this.postLogoutToTrackedDejaupWindows())}postLogoutToTrackedDejaupWindows(){const f=this.dejaupTargetOrigin();if(!f)return;this.pruneClosedDejaupWindows();const S={type:"IPP_SSO_LOGOUT",source:"ipp-portal-parent",ts:Date.now()};for(const J of this.dejaUpWindows)if(!J.closed)try{J.postMessage(S,f)}catch{}}
1replyToDejaupRegistration(f){if("IPP_VMS_REGISTER"!==f.data?.type)return;const S=w(g.N.vipUrl);if(!S||f.origin!==S||!f.source)return;const J=function A(){const e=g.N,n=(e.whitelabelLogoPath||"").replace(/\/$/,""),f=(e.apiFullUrl||"").replace(/\/$/,""),S=(e.portalMerchantLogoPath||"").replace(/\/$/,"");try{const de=JSON.parse(localStorage.getItem("whitelabelResData")||"null")?.logo_dashboard;if(!(0,i.isEmpty)(de)){const Ie=String(de);if(/^https?:\/\//i.test(Ie))return Ie;if(n)return`${n}/${Ie}`}}catch{}try{const J=JSON.parse(localStorage.getItem("current_user")||"null"),de=J?.customerLogo;if(!(0,i.isEmpty)(de)&&f)return`${f}/assets/images/${de}`;const Ie=J?.merchantLogo;if(!(0,i.isEmpty)(Ie)&&S)return`${S}/${Ie}`}catch{}return e.defaultLogo||""}(),de=function b(){try{const n=JSON.parse(localStorage.getItem("current_user")||"null")?.accessToken;return"string"==typeof n&&n.length>0?n:null}catch{return null}}();if(J||de)try{const Ie={type:"IPP_PORTAL_SIDEBAR_LOGO",ts:Date.now()};J&&(Ie.sidebarLogoUrl=J),de&&(Ie.portalAccessToken=de),f.source.postMessage(Ie,f.origin)}catch{}}broadcastLogoutToVmsWindows(){this.postLogoutToTrackedDejaupWindows();try{localStorage.setItem(t,String(Date.now()))}catch{}}}return e.\u0275fac=function(f){return new(f||e)},e.\u0275prov=T.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},2979:(Te,G,r)=>{"use strict";r.d(G,{d:()=>v,z:()=>t});var i=r(22560),t=(()=>{return(I=t||(t={})).ZIP_5="ZIP_5",I.ZIP_6_SPACED="ZIP_6_SPACED",I.ZIP_9="ZIP_9",t;var I})();const _={US:t.ZIP_6_SPACED,CA:t.ZIP_6_SPACED},g=/[^A-Za-z0-9\s]/,T=/[^A-Za-z0-9]/g;let v=(()=>{class I{constructor(){this.config={format:t.ZIP_6_SPACED,countryCode:"US"}}getConfig(){return{...this.config}}getFormat(){return this.config.format}setFormat(A,b){this.config={format:A,countryCode:b??this.config.countryCode}}setFormatByCountry(A){const b=_[A.toUpperCase()]??t.ZIP_6_SPACED;this.config={format:b,countryCode:A.toUpperCase()}}getMaxLength(){return this.getMaxLengthForFormat(this.config.format)}getZipValidators(){return[this.createValidator(this.getConfig())]}extractZipValue(A){return null==A||""===A?"":"object"==typeof A&&null!==A&&"zip_code"in A?String(A.zip_code??"").trim():String(A).trim()}getAlphanumericOnly(A){return A.replace(T,"")}normalizeZipValue(A,b=this.config.format){return this.formatZipInput(A,b)}formatZipInput(A,b=this.config.format){const D=this.sanitizeZipInput(A,b);switch(b){case t.ZIP_5:return this.getAlphanumericOnly(D).slice(0,5);case t.ZIP_9:return this.getAlphanumericOnly(D).slice(0,9);case t.ZIP_6_SPACED:{const e=this.getAlphanumericOnly(D);return e.length>6?e.slice(0,9):6===e.length?`${e.slice(0,3)} ${e.slice(3)}`:e}default:return D}}createValidator(A){return b=>{const D=this.extractZipValue(b.value);if(!D)return null;const e=this.normalizeZipValue(D,A.format);return this.isValidZipValue(e,A.format)?null:{invalidZip:!0}}}sanitizeZipInput(A,b){return A.replace(b===t.ZIP_6_SPACED?/[^A-Za-z0-9\s]/g:T,"")}hasInvalidZipChars(A){return g.test(A)}getMaxLengthForFormat(A){return A===t.ZIP_5?5:9}isValidZipValue(A,b){if(!A)return!0;if(this.hasInvalidZipChars(A))return!1;const D=this.getAlphanumericOnly(A);switch(b){case t.ZIP_5:return 5===D.length&&/^[A-Za-z0-9]{5}$/.test(D);case t.ZIP_9:return 9===D.length&&!A.includes(" ")&&/^[A-Za-z0-9]{9}$/.test(D);case t.ZIP_6_SPACED:{const e=D.length;return 7!==e&&8!==e&&(5===e?!A.includes(" ")&&/^[A-Za-z0-9]{5}$/.test(D):6===e?!(A.includes(" ")&&!/^[A-Za-z0-9]{3}\s[A-Za-z0-9]{3}$/.test(A.trim()))&&/^[A-Za-z0-9]{6}$/.test(D):9===e&&!A.includes(" ")&&/^[A-Za-z0-9]{9}$/.test(D))}default:return!1}}}return I.\u0275fac=function(A){return new(A||I)},I.\u0275prov=i.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},81029:(Te,G,r)=>{"use strict";r.d(G,{$x:()=>T,Dv:()=>b,P$:()=>J,QR:()=>de,Vg:()=>w,Zy:()=>Ie,cn:()=>D,qJ:()=>n,ud:()=>f,xq:()=>v,zn:()=>e});var i=(()=>{return(z=i||(i={})).TPOS="POS Terminal",z.ECOM="E-Commerce",z.ITAP="TOP - iOS",z.TOPH="TOP - Android",i;var z})(),t=(()=>((t||(t={})).CLOUD_POS="Cloud POS",t))(),_=(()=>((_||(_={})).SPIN_CLOUD_VALUE="2",_))();class T{}T.sourceType=function g(){const z=Object.keys(i),Ee=Object.values(i);let Oe=[];return z.forEach((ee,Me)=>
1{Oe.push({displayName:Ee[Me],name:ee})}),Oe}(),T.EsourceType=i,T.DeviceModel=t,T.SteamParam=_;const v=[{displayName:"Today",name:"Today"},{displayName:"Yesterday",name:"Yesterday"},{displayName:"This Week",name:"Week"},{displayName:"Last 30 days",name:"Month"},{displayName:"Custom",name:"Custom"},{displayName:"None",name:"None"}],w={enabled:"1",disabled:"0"},b={message:"Extra 360 Integration is successful.",status:"Success"},D={message:"Unable to add Extra 360 Integration at this time. Please try again later by editing the merchant details",status:"Error"},e={message:"Edit Store Integration is successful.",status:"Success"},n={message:"Edit Store Integration is failed.",status:"Error"},f={message:"Extra 360 Integration removal is successful.",status:"Success"},J={PAYA:"PAYAACH",VERICHECK:"VERICHECKACH",ACH:"ACH"},de=[J.PAYA,J.VERICHECK],Ie=["CREATE_TEMPLATE","EDIT_TEMPLATE","DELETE_TEMPLATE","VIEW_BILLING","EDIT_BILLING"]},49532:(Te,G,r)=>{"use strict";r.d(G,{H7:()=>_,Ho:()=>t,SN:()=>g});var i=r(22560);let t=(()=>{class T{transform(I){if(!I)return"$ 0.00";let w;return"string"==typeof I?w=parseInt(I)/100:"number"==typeof I&&(w=I/100),w<0?"$ 0."+w:"$ "+w.toFixed(2)}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275pipe=i.Yjl({name:"toDollars",type:T,pure:!0}),T})(),_=(()=>{class T{transform(I,w=!1){let A="0.00";if(I){const b=I.toString().length,D=I.toString();b>2?A=`${D.substring(0,b-2)}.${D.substring(b-2,b)}`:2==b?A=`0.${D}`:1==b&&(A=`0.0${D}`)}return w?`$${A}`:A}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275pipe=i.Yjl({name:"toAmount",type:T,pure:!0}),T})(),g=(()=>{class T{transform(I,w=!1){const A=I.toString();let b="";if(A.includes(".")){const[D,e]=A.split(".");b=`${D}${e.length>1?e.substring(0,2):e+"0"}`}else b=`${A}00`;return b}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275pipe=i.Yjl({name:"dollarsToCents",type:T,pure:!0}),T})()},25421:(Te,G,r)=>{"use strict";r.d(G,{m:()=>_});var i=r(84505),t=r(22560);let _=(()=>{class g{constructor(){this.alert=new i.X(null)}showAlert(v){this.alert.next(v)}showPToast(v,I,w="success"){v.clear(),v.add({severity:w,summary:I.summary,detail:I.detail,sticky:I.sticky,key:"store-logo",life:7e3})}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},23933:(Te,G,r)=>{"use strict";r.d(G,{I:()=>A});var i=r(58987),t=r(86942),_=r(47418),g=r(92340),T=r(54724),v=r(22560),I=r(70866),w=r(19787);let A=(()=>{class b{constructor(e,n,f){this.handleError=e,this.httpClient=n,this.authService=f,this.getApplicationsUrl=`${g.N.steamApiUrl}/applications`,this.getApplicationSignUrl=`${g.N.apiUrl}/applicationSignature`,this.getDeviceModalsUrl=`${g.N.apiUrl}/device-models-by-manufacturer/`,this.getLatestBuildNumber=`${g.N.steamApiUrl}/getLatestBuildISO/`,this.getManufacturerUrl=`${g.N.apiUrl}/manufacturers`,this.postApplicationUrl=`${g.N.steamApiUrl}/applications`,this.getCustomerUrl=`${g.N.apiUrl}/getAllDenovoCustomers`}getAllData(e,n){return this.httpClient.get(void 0!==n?`${e}?isApplePay=${n}`:e).pipe((0,t.U)(S=>(console.log("Result Data: ",S.data),S.data)),(0,_.K)(this.handleError.handleError))}getLastBuildNum(e,n){return console.log(n),this.httpClient.get(e=e+n.manufacturerId+"/"+n.deviceModelId+"/"+n.applicationSignatureId).pipe((0,t.U)(f=>f.data),(0,_.K)(this.handleError.handleError))}getLastBuildNumISO(e,n,f){return this.httpClient.post(e=e+n.manufacturerId+"/"+n.deviceModelId+"/"+n.applicationSignatureId+(n?.applicationMasterId?"?applicationMasterId="+n?.applicationMasterId:""),f).pipe((0,t.U)(S=>S.data),(0,_.K)(this.handleError.handleError))}getVirtualTerminalParams(e){let n=new i.LE;return Object.keys(e).forEach(function(f){n=n.append(f,e[f])}),this.httpClient.get(`${T.D.vtPosparam}`,{params:n}).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}createApplication(e){return this.httpClient.post(this.postApplicationUrl,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getReadableBytes(e,n){let f=Math.floor(Math.log(e)/Math.log(1024)),S=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],J=S.indexOf(n);return-1==J?"Invalid size type":(e/Math.pow(1024,f)).toFixed(2)+" "+S[J]}getAllApplicationData(e){console.log("service",e);let n=new i.LE;return n=n.append("sort",'{"field": "updatedAt", "order": "DESC"}'),n=n.append("size","20"),Object.keys(e).forEach(function(f){n=n.append(f,e[f])}),this.httpClient.get(`${g.N.steamApiUrl}/applications`,{params:n}).pipe((0,t.U)(f=>
1(console.log("Result Data: ",f),f)),(0,_.K)(this.handleError.handleError))}getPGAPI(e,n,f=T.D.processTransaction){if(0==n){const S={headers:new i.WM({Authorization:`Bearer ${this.authService.getUser.pgAccessToken}`,withCredentials:"false"})};return this.httpClient.post(`${f}`,e,S).pipe((0,t.U)(J=>J),(0,_.K)(this.handleError.handleError))}{const S={headers:new i.WM({Authorization:`Bearer ${this.authService.getUser.pgAccessToken}`,withCredentials:"false",timeout:""+1e3*n})};return this.httpClient.post(`${f}`,e,S).pipe((0,t.U)(J=>J),(0,_.K)(J=>this.handleError.handleError(J)))}}getFortellisDetails(e,n,f){const S={headers:new i.WM({token:"token",integrationType:"1",processType:n,tpn:f})};return this.httpClient.post(`${T.D.getFortellisDetails}`,e,S).pipe((0,t.U)(J=>J),(0,_.K)(this.handleError.handleError))}createCardinalMerchant(e,n,f){const S={headers:new i.WM({token:"token",integrationType:"2",processType:n,tpn:f})};return this.httpClient.post(`${T.D.getFortellisDetails}`,e,S).pipe((0,t.U)(J=>J),(0,_.K)(this.handleError.handleError))}submitLineItems(e,n={}){return this.httpClient.post(`${T.D.quickbooks.submitLineItems}`,e,{params:n}).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}submitInvoiceLineItems(e,n={}){return this.httpClient.post(`${T.D.quickbooks.submitInvoiceLineItems}`,e,{params:n}).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getPaymentForm(e){const n={headers:new i.WM({token:`Bearer ${this.authService.getUser.pgAccessToken}`,withCredentials:"false"})};return this.httpClient.post(`${T.D.internalPaymentForm}`,e,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getGhppUrl(e){const n={headers:new i.WM({Authorization:"api-key cG9ydGFsLVRlbXA9VG9rZW4tcGhhc2UtMQ==",withCredentials:"false"})};return this.httpClient.post(`${T.D.generateGhppUrl}`,e,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}sendEmailorSMS(e){return this.httpClient.post(`${T.D.sendEmailorSMS}`,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}}return b.\u0275fac=function(e){return new(e||b)(v.LFG(I.q),v.LFG(i.eN),v.LFG(w.e))},b.\u0275prov=v.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},54697:(Te,G,r)=>{"use strict";r.d(G,{d:()=>A});var i=r(58987),t=r(86942),_=r(47418),g=r(92340),T=r(92938),I=r(22560),w=r(70866);let A=(()=>{class b{constructor(e,n){this.handleError=e,this.httpClient=n,this.postAssetsUrl=`${g.N.steamApiUrl}/createAsset`,this.editAssetsUrlByCustomer=`${g.N.steamApiUrl}/editAssetsByCustomer`,this.getDeviceModalsUrl=`${g.N.apiUrl}/device-models-by-manufacturer/`,this.getManufacturerUrl=`${g.N.apiUrl}/manufacturers`,this.getCustomerUrl=`${g.N.apiUrl}/customers-all`,this.getSerialNumber=`${g.N.steamApiUrl}/getSerialNumber/`}getAllData(e){return this.httpClient.get(e).pipe((0,t.U)(n=>n.data),(0,_.K)(this.handleError.handleError))}getSerialNum(e,n){return this.httpClient.get(e+=n.serialNumber).pipe((0,t.U)(f=>f.data),(0,_.K)(this.handleError.handleError))}createAsset(e){return this.httpClient.post(this.postAssetsUrl,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}editAssetByCustomer(e){let n=(0,T.get)(e,"additionalDetails.id"),f=(0,T.pick)(e,["soldToCustomerId","assetProtection"]);return this.httpClient.post(this.editAssetsUrlByCustomer,{...f,assetId:n}).pipe((0,t.U)(S=>S),(0,_.K)(this.handleError.handleError))}getAllAsset(e){let n=new i.LE;return n=n.append("sort",'{"field": "updatedAt", "order": "DESC"}'),n=n.append("size","20"),Object.keys(e).forEach(function(f){n=n.append(f,e[f])}),this.httpClient.get(`${g.N.steamApiUrl}/getAllAsset`,{params:n}).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}}return b.\u0275fac=function(e){return new(e||b)(I.LFG(w.q),I.LFG(i.eN))},b.\u0275prov=I.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},19787:(Te,G,r)=>{"use strict";r.d(G,{e:()=>Oe});var i=r(83918),t=r(84505),_=r(66587),g=r(92340),T=r(86942),v=r(36240),w=r(54724),A=r(92938),D=r(94666),e=r(91874),n=r(2508),f=r(78301),S=r(22560),J=r(59462),de=r(58987),Ie=r(40929),z=r(14470);const Ee=["theme-cyan-light","theme-bluegrey-light","theme-purple-light"];let Oe=(()=>{class ee{constructor(R,W,ie,ye,Ue){this.router=R,this.httpClient=W,this.document=ie,this.ngbModal=ye,this.subAppWindowBridge=Ue,this.currentUser=new t.X(null),this.logoutUrl=`${g.N.apiUrl}/user-logout`,this.userUrl=`${g.N.apiUrl}/users`,this.updateMfaStatus=ke=>this.httpClient.post(`${w.D.mfa.updateStatus}`,ke),this.showModal=ke=>{let Re=this.ngbModal.open(e.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});return Re.componentInstance.header=ke?.header||"",Re.componentInstance.body=ke?.message||"something went wrong !",Re.componentInstance.htmlContent=ke?.bodyData||"",Re.componentInstance.successFlag=!1,Re.componentInstance.okButton=!0,Re};const $e=localStorage.getItem("current_user");this.currentUser.next(JSON.parse($e))}get getUser(){return this.currentUser.value}setUser(R){try{const W=localStorage.getItem("current_user"),ie=W?JSON.parse(W):null;this.didPortalSessionIdentityChange(ie,R)&&this.notifyDejaupWindowsLogout()}catch{}return localStorage.setItem("current_user",JSON.stringify(R)),this.currentUser.next(R),R}clearPendingAuthUser(){localStorage.removeItem("current_user"),this.currentUser.next(null)}didPortalSessionIdentityChange(R,W){if(!W||!R?.accessToken)return!1;const ie=ye=>`${String(ye?.id??"")}|${String(ye?.email??"").toLowerCase()}`;return ie(R)!==ie(W)}goToForgotPassword(){this.router.navigate(["/auth/forgot-password"])}updateUser(R){let W={...this.getUser,...R};return localStorage.removeItem("current_user"),localStorage.setItem("current_user",JSON.stringify(W)),this.currentUser.next(W),W}notifyDejaupWindowsLogout(){this.subAppWindowBridge.broadcastLogoutToVmsWindows()}logout(R=""){this.notifyDejaupWindowsLogout();let W=JSON.parse(localStorage.getItem("current_user"))?.themeColor;localStorage.removeItem("logger_token"),localStorage.removeItem("current_user"),localStorage.setItem("ip",""),localStorage.setItem("port",""),localStorage.setItem("generatedTpn",""),localStorage.setItem("generatedToken",""),localStorage.setItem("generatedTapTpn",""),localStorage.setItem("generatedTapToken",""),this.currentUser.next(null),localStorage.setItem("defaultTheme",W),this.router.navigate(["/auth/login"],{queryParams:{message:R}})}logoutService(){var R=this;return(0,i.Z)(function*(){R.notifyDejaupWindowsLogout();const W=R.currentUser.value.proxyLogId;return W&&(yield R.httpClient.put(`${w.D.setProxyLogOutTime}?id=${W}`,{}).toPromise().then(ie=>{})),R.httpClient.delete(`${R.logoutUrl}`).pipe((0,T.U)(ie=>(R.logout(),ie)))})()}getModuleGroupMap(){const R={};for(const W of f.s)W.moduleGroup&&(R[W.moduleGroup]||(R[W.moduleGroup]=new Set),R[W.moduleGroup].add(W.module));return Object.entries(R).reduce((W,[ie,ye])=>(W[ie]=Array.from(ye),W),{})}getPrivileges(R){if(!this.getUser)return!1;const W=this.getUser.roleFeatures,ie=this.getModuleGroupMap(),ye=Object.keys(ie).find(F=>ie[F].includes(R));if(ye){const Q=ie[ye].flatMap(ge=>W.find(Se=>Se.module===ge)?.features||[]),ae=this.getUser?.excludeFeatures||[];return{module:ye,features:[...new Set(Q)].filter(ge=>!ae.includes(ge))}}const Ue=W.find(F=>F.module===R);if(!Ue)return!1;const $e=this.getUser?.excludeFeatures||[],Re=(Ue.features||[]).filter(F=>!$e.includes(F));return{...Ue,features:Re}}isFeatureEnabled(R,W){return!!this.getPrivileges(R)&&this.getPrivileges(R).features.indexOf(W)>-1}getUserType(){return this.getUser.userType}
1getCustomerID(){return this.getUser?.isoIdentified}getUserRoleType(){return{userType:this.getUserType(),userTypeRole:this.getUser?.userTypeRole}}get allowSpecialFeature(){return Boolean((0,A.get)(JSON.parse(localStorage.getItem("current_user")),"allowSpecialFeature"))}handleError(R){let W={};return R instanceof ErrorEvent?(W.status=R.error.status,W.message=R.error.message):(W.status=R.status,W.message=R.error),(0,_._)(W)}refreshToken(R){}encryptData(R){try{return v.AES.encrypt(JSON.stringify(R),g.N.secretKey).toString()}catch(W){console.log(W)}}decryptData(R){try{const W=v.AES.decrypt(R,g.N.secretKey);return W.toString()?JSON.parse(W.toString(v.enc.Utf8)):R}catch(W){console.log(W)}}subIsoToAgentOffice(R){return R?R.replace(/\b(?:Sub Iso|SUB_ISO)\b/gi,"Agent Office"):""}assignPrivileges(R,W){const ie=this.getPrivileges(R);if((0,A.isEmpty)(ie))return W;const ye=ie?.features;for(const Ue of Object.keys(W))ye.includes(Ue)&&(W[Ue]=!0);return W}getSecurityCheck(){return this.httpClient.get(`${w.D.securityCheck}`).pipe((0,T.U)(R=>(localStorage.setItem("terms_allow_user",JSON.stringify(R?.termsUser)),R?.data)))}setCaptchaValidators(R,W){W?(R.get("captchaToken").setValidators([n.kI.required]),R.get("captchaToken").updateValueAndValidity()):(R.get("captchaToken").setValidators(null),R.get("captchaToken").setValue(null),R.get("captchaToken").updateValueAndValidity())}defaultTheme(){this.applyPortalTheme(localStorage.getItem("defaultTheme"))}applyPortalTheme(R){const W=R?.trim()?R:localStorage.getItem("defaultTheme")||"theme-purple-light";localStorage.setItem("defaultTheme",W);const{body:ie}=this.document;return ie.classList.contains(W)||(Ee.forEach(ye=>ie.classList.remove(ye)),ie.classList.add(W)),W}resetCaptcha(R,W,ie){setTimeout(()=>{ie?(R.get("captchaToken").reset(),W?.reset()):console.log("reCAPTCHA not available")})}resolved(R,W){R.get("captchaToken").setValue(W)}}return ee.\u0275fac=function(R){return new(R||ee)(S.LFG(J.F0),S.LFG(de.eN),S.LFG(D.K0),S.LFG(Ie.FF),S.LFG(z.jj))},ee.\u0275prov=S.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})()},3554:(Te,G,r)=>{"use strict";r.d(G,{$:()=>I});var i=r(86942),t=r(47418),_=r(54724),g=r(58987),T=r(22560),v=r(70866);let I=(()=>{class w{constructor(b,D){this.httpClient=b,this.handleError=D,this.getOpenBatchByStore=e=>this.httpClient.post(_.D.getOpenBatchByStore,e).pipe((0,i.U)(n=>n),(0,t.K)(this.handleError.handleError))}getBatchDetails(b){let D=new g.LE;return D=D.append("size","10"),Object.keys(b).forEach(function(e){D=D.append(e,b[e])}),this.httpClient.get(_.D.batches,{params:D}).pipe((0,i.U)(e=>e),(0,t.K)(this.handleError.handleError))}getAllTpnIds(){return new g.LE,this.httpClient.get(_.D.tpnIds).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getAllDBAs(){return new g.LE,this.httpClient.get(_.D.allDBAsByUser).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getAllStores(b){let D=new g.LE;return D=D.append("size","10"),Object.keys(b).forEach(function(e){D=D.append(e,b[e])}),this.httpClient.get(_.D.dbaBatches,{params:D}).pipe((0,i.U)(e=>e),(0,t.K)(this.handleError.handleError))}getAllTotalStores(){return this.httpClient.get(_.D.dbaTotalBatches).pipe((0,i.U)(b=>b),(0,t.K)(this.handleError.handleError))}}return w.\u0275fac=function(b){return new(b||w)(T.LFG(g.eN),T.LFG(v.q))},w.\u0275prov=T.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},33507:(Te,G,r)=>{"use strict";r.d(G,{v:()=>$e});var i=r(83918),t=r(58987),_=r(86942),g=r(47418),T=r(92340),v=r(34498),w=r(65226),b=r(92469),e=r(92938),f=r(92218),S=r(84505),J=r(66587),de=r(64139),Ie=r(81029),z=r(2508),Ee=r(54724),Oe=r(18595),ee=r(22560),Me=r(43717),R=r(70866),W=r(25421),ie=r(46261),ye=r(33935);r(36240);let $e=(()=>{class ke{constructor(F,Q,ae,H,ge,Se){this.httpClient=F,this.responsive=Q,this.handleError=ae,this.alertService=H,this.messageService=ge,this.translate=Se,this.thumbs_up="assets/images/transaction/thumbs-up.png",this.thumbs_down="assets/images/transaction/thumbs-down.png",this.returnUrl="/",this.isMobileView=!1,this.$breakpoint=new f.xQ,this.paymentDetailsSubject=new S.X(null),this.sessionStorageKeys={runASale:"run_a_sale_data",itemizedBilling:"itemized_billing_customer_data",sendPayLink:"send_payment_link_data",createInvoiceJump:"create_invoice_jump"},this.months=b.monthsShort(),this.selectedTPNS=new S.X([]),this.resetSelected=new S.X(""),this.selectedTPNSObservable=this.selectedTPNS.asObservable(),this.resetSelectedObservables=this.resetSelected.asObservable(),this.fileSizeRestriction=100400,this.responsive.observe(["(max-width: 991px)"]).subscribe(Je=>{this.isMobileView=Je.matches,this.$breakpoint.next(this.isMobileView)})}setPaymentDetails(F){this.paymentDetailsSubject.next(F)}getCommonHttpClientParams(F){return this.httpClient.get(F).pipe((0,_.U)(Q=>Q),(0,g.K)(this.handleError.handleError))}getCommonFileDownload(F,Q={}){let ae=new t.LE;
1return Object.keys(Q).forEach(function(H){ae=ae.append(H,Q[H])}),this.httpClient.get(F,{responseType:"blob",params:ae}).pipe((0,_.U)(H=>H),(0,g.K)(this.handleError.handleError))}getCommonHttpClientQueryParams(F,Q){let ae=new t.LE;return Object.keys(Q).forEach(function(H){ae=ae.append(H,Q[H])}),this.httpClient.get(F,{params:ae}).pipe((0,_.U)(H=>H),(0,g.K)(this.handleError.handleError))}getCommonHttpTimeout(F,Q,ae){let H=new t.LE;return Object.keys(Q).forEach(function(ge){H=H.append(ge,Q[ge])}),this.httpClient.get(F,{headers:new t.WM({timeout:""+1e3*ae}),params:H}).pipe((0,_.U)(ge=>ge),(0,g.K)(ge=>(0,J._)(ge)))}getResponseDataForFilter(F,Q){let ae=new t.LE;return Object.keys(Q).forEach(function(H){ae=ae.append(H,Q[H])}),this.httpClient.get(F,{params:ae}).pipe((0,_.U)(H=>H.data&&H.data.items?H.data.items:H.data),(0,g.K)(this.handleError.handleError))}postCommonHttpClient(F,Q,ae={}){return this.httpClient.post(F,Q,ae).pipe((0,_.U)(H=>H),(0,g.K)(this.handleError.handleError))}postCommonHttpClientWithProgress(F,Q){return this.httpClient.post(F,Q,{reportProgress:!0,observe:"events"})}postCommonHttpClientWithParams(F,Q,ae){let H=new t.LE;return Object.keys(ae).forEach(function(ge){H=H.append(ge,ae[ge])}),this.httpClient.post(F,Q,{params:H}).pipe((0,_.U)(ge=>ge),(0,g.K)(this.handleError.handleError))}putCommonHttpClient(F,Q){return this.httpClient.put(F,Q).pipe((0,_.U)(ae=>ae),(0,g.K)(this.handleError.handleError))}putCommonHttpClientWithParams(F,Q,ae){let H=new t.LE;return Object.keys(ae).forEach(function(ge){H=H.append(ge,ae[ge])}),this.httpClient.put(F,Q,{params:H}).pipe((0,_.U)(ge=>ge),(0,g.K)(this.handleError.handleError))}deleteCommonHttpClient(F){return this.httpClient.delete(F).pipe((0,_.U)(Q=>Q),(0,g.K)(this.handleError.handleError))}deleteCommonHttpClientParams(F,Q,ae){let H=new t.LE;Object.keys(ae).forEach(function(Se){H=H.append(Se,ae[Se])});const ge={params:H};return Q&&(ge.body=Q),this.httpClient.delete(F,ge).pipe((0,_.U)(Se=>Se),(0,g.K)(this.handleError.handleError))}doubleExtensionCheck(F){return(0,i.Z)(function*(){let Q=["jpg","jpeg","png","svg","xls","xlsx","apk"],ae=F.split("."),H=0;return console.log(ae),ae.length>2&&(yield ae.forEach(function(){var ge=(0,i.Z)(function*(Se){H=Q.indexOf(Se)>-1?H+1:H});return function(Se){return ge.apply(this,arguments)}}()),console.log(H),H>1)})()}downloadAsExcel(F,Q=null){let H,ae=new v.Workbook;for(let ge=0;ge<F.worksheet.length;ge++){const Se=F.worksheet[ge];if(H=(0,e.has)(Se,"frozen")&&(0,e.get)(Se,"frozen")?ae.addWorksheet(Se.name,{views:[{state:"frozen",ySplit:1}]}):ae.addWorksheet(Se.name),H.columns=Se.columns,H.properties.defaultColWidth=18,1==Se.isRow?H.addRow(this.setFlattenData(Se.rows,(0,e.get)(Se,"isJSONKey"),(0,e.get)(Se,"flattenKeyname")),"n"):H.addRows(this.setFlattenData(Se.rows,(0,e.get)(Se,"isJSONKey"),(0,e.get)(Se,"flattenKeyname"))),"Details"===Se.name&&!(0,e.isEmpty)(Q)){const Je=Q.storeFeeData||(null!=Q.singleTpnFee?Q:null),We=Q.unattendedFeeData||null,et=H.getRow(1).getCell("fixedFee"),qe=[];(0,e.isEmpty)(Je)||qe.push({text:`Single TPN Fee: $${Number(Je.singleTpnFee||0).toFixed(2)}\n`},{text:`Dual TPN Fee: $${Number(Je.dualTpnFee||0).toFixed(2)}\n`},{text:`Triple TPN Fee: $${Number(Je.tripleTpnFee||0).toFixed(2)}\n`},{text:`Multiple TPN Fee: $${Number(Je.multipleTpnFee||0).toFixed(2)}`}),(0,e.isEmpty)(We)||(qe.length&&qe.push({text:"\n"}),qe.push({text:`Unattended Primary TPN Fee: $${Number(We.unattendedPrimaryTpnFee||0).toFixed(2)}\n`},{text:`Unattended Add-on TPN Fee: $${Number(We.unattendedAddOnTpnFee||0).toFixed(2)}`})),qe.length&&(et.note={texts:qe,margins:{insetmode:"auto",inset:[.25,.25,.35,.35]}})}}return ae.xlsx.writeBuffer().then(function(ge){var Se=new Blob([ge],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});w.saveAs(Se,F.fileName)})}setFlattenData(F,Q=!1,ae=""){return 1!=Q||(0,e.isEmpty)(ae)?F:F.map(H=>("string"==typeof H[ae]&&(H[ae]=JSON.parse(H[ae])),{...H,...H[ae]}))}estTimeConvert(F){return b.tz(F,"America/New_York").format("MM-DD-YYYY HH:mm")}getSessionData(F){return JSON.parse(sessionStorage.getItem(F))}setSessionData(F,Q){return sessionStorage.setItem(F,JSON.stringify(Q)),Q}getMonthName(F){return this.months[F-1]}getAccountPersonalData(F){let ae={pgPersonalKey:"portal-pg=Token-phase-1",secretKeyCryptoToken:"portal-Temp=Token-phase-1",pstwd:{dev:"Ll5IpPylxLY48YPnBkQyXPXwlnFEFbfatFzRDxmnOP0",uat:"COmyP3EdIch1bRE3G4G9We4BuZSGg8ThqFpuzR",qa:"A8xQ2LmZpR7vT4KtYw8HdNfJ3UcB5eG1oPiX0rVb",preprod:"Cr7xM2pQ5A9ZrL0YkV8F3d1sK6hT4BqWnEoXyGuT",prod:"PnBkQyXLl5IpPylxLY48YPXwlnFEFbfatFzRDxmnOP0"}[T.N?.environmentName]};return(0,e.has)(ae,F)?ae[F]:""}getPOSMode(F){return(0,e.has)(T.N.POSMode,F)?T.N.POSMode[F]:"N/A"}getChannel(F){return Ie.$x.EsourceType[F]?Ie.$x.EsourceType[F]:F}is3DSecure(F){let Q=F?.tsysRespData;if("string"==typeof Q)try{Q=JSON.parse(Q)}catch{Q={}}return"Y"===Q?.NSE?"Yes":"No"}getIdentifier(F){return(0,e.isEmpty)(F)?"":JSON.parse(F)?.identifier}getMinorChannel(F){try{const Q=F?.txbase_from_txextns?.customField,ae=F?.txalternate_from_txextns?.customField;let H=null;return Q?H=("string"==typeof Q?JSON.parse(Q):Q)?.additionalEntryMode??null:ae&&(H=("string"==typeof ae?JSON.parse(ae):ae)?.additionalEntryMode??null),null!=H&&T.N.minorChannel?.hasOwnProperty(H)?T.N.minorChannel[H]:"N/A"}catch{return"N/A"}}getPerformedBy(F){try{const Q=F?.txbase_from_txextns?.customField;if(Q)return("string"==typeof Q?JSON.parse(Q):Q)?.performedBy||"N/A";const ae=F?.txalternate_from_txextns?.customField;return("string"==typeof ae?JSON.parse(ae):ae)?.performedBy||"N/A"}catch{return"N/A"}}getCustomFieldValue(F,Q){try{const ae=F?.txbase_from_txextns?.customField??F?.customField;if(ae)return("string"==typeof ae?JSON.parse(ae):ae)?.[Q]||"N/A";const H=F?.txalternate_from_txextns?.customField;return("string"==typeof H?JSON.parse(H):H)?.[Q]||"N/A"}catch{return"N/A"}}getFeedBack(F){const ae=F?.txalternate_from_txextns?.customField,H=(F?.txbase_from_txextns?.customField??F?.customField)||ae;let ge=null;if(!H)return"N/A";try{ge=("string"==typeof H?JSON.parse(H):H)?.surveyAns||null}catch{return"N/A"}return"1"==ge?this.thumbs_up:"0"==ge?this.thumbs_down:"N/A"}markAllControlsAsDirty(F){F.forEach(Q=>{Q instanceof z.p4?Q.markAsDirty({onlySelf:!0}):Q instanceof z.nJ?this.markAllControlsAsDirty(Object.values(Q.controls)):Q instanceof z.vC&&this.markAllControlsAsDirty(Q.controls)})}getFormattedDateTime(){const F=new Date,Q=F.getFullYear(),ae=String(F.getMonth()+1).padStart(2,"0"),H=String(F.getDate()).padStart(2,"0"),ge=String(F.getHours()).padStart(2,"0"),Se=String(F.getMinutes()).padStart(2,"0"),Je=String(F.getSeconds()).padStart(2,"0");return{formattedDateTime:`${Q}-${ae}-${H} ${ge}:${Se}:${Je}`,formattedTime:`${ge}:${Se}:${Je}`}}
1customAdd(F,Q){return(F=isNaN(F)?0:F)+(isNaN(Q)?0:Q)}getBrowserName(){let Q,F=navigator.userAgent;return Q=F.includes("Opera")||F.includes("Opr")?"Opera":F.includes("Edg")?"Edge":F.includes("Chrome")?"Chrome":F.includes("Safari")?"Safari":F.includes("Firefox")?"Firefox":"unknown",Q}getMfaFingerPrint(){return{browserVersion:"123.0.0.0",browserName:this.getBrowserName(),plugIn:"Adobe Flash Player",userAgent:navigator.userAgent,timeZone:"UTC+02:00",screenResolution:`${window.innerWidth} x ${window.innerHeight}`,cookies:"true",longitude:"-73.9857",latitude:"40.7484"}}uploadToS3(F,Q){return this.httpClient.put(Q,F,{headers:new t.WM({"Content-Type":F.type}),reportProgress:!0,observe:"events"})}processNatsData(F,Q){if("setSelectedValues"===F&&this.selectedTPNS.next(Q||[]),"getTpns"===F)return this.selectedTPNS.getValue();"clearTpns"===F&&this.selectedTPNS.next([]),"restTpns"===F&&this.resetSelected.next("reset")}getCCCTemplate(F){return this.getCommonHttpClientQueryParams(Ee.D.communicationCenter.getControlTemplate,F)}getCommnCCCAPI(F,Q){if("/communication/timezones"===F){const H=b.tz.names().map(ge=>({name:ge}));return console.log(H),(0,de.of)({data:H})}return Q={...Q,templateName:"device_config_form"},this.getCommonHttpClientQueryParams(`${T.N.cccApiUrl}${F}`,Q)}triggerNats(F){return this.postCommonHttpClient(Ee.D.communicationCenter.triggerNats,F)}postCommonFileDownload(F,Q={},ae={}){let H=new t.LE;return Object.entries(ae).forEach(([ge,Se])=>{H=H.append(ge,Se)}),this.httpClient.post(F,Q,{params:H,responseType:"blob"})}zipCodeValidator(){const F=/^\d{5}$/,Q=/^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/i;return ae=>{let H=(("string"==typeof ae.value?ae.value:ae.value?.zip_code)||"").toString().trim();return H?(H=H.toUpperCase(),F.test(H)?/^0{5}$/.test(H)?{pattern:!0,reason:"US zip cannot be all zeros"}:null:Q.test(H)?null:{pattern:!0}):null}}isFileValidationsSuccess(F){var Q=this;return(0,i.Z)(function*(){if(0==F?.size)return{status:!1,message:"please select a image",url:null};if("image/png"!==F.type)return{status:!1,message:"Image type should be png",url:null};if(F.size>Q.fileSizeRestriction)return{status:!1,message:"Image size should be less than 100KB",url:null};if(!(yield Q.isValidPNGBySignature(F)))return{status:!1,message:"Image is not valid",url:null};try{return yield Q.checkFileDimenstions(F)}catch(H){return{status:!1,message:H?.message||"Image is not valid",url:null}}})()}checkFileDimenstions(F){var Q=this;return(0,i.Z)(function*(){const ae=new Image;return yield new Promise((He,et)=>{try{ae.src=URL.createObjectURL(F),ae.onload=qe=>{const{width:at,height:tt}=ae;if(at<=120&&at>=100&&tt<=100&&tt>=80)He({status:!0,message:"Image is valid",url:ae.src});else{const se="Image dimensions should be 100-120px (width) and 80-100px (height).\n  ";Q.showAlert("Image is not valid","Invalid Image","warn"),He({status:!1,message:se,url:null})}}}catch(qe){et({status:!1,message:qe?.message||"Image is not valid",url:null})}})})()}isValidPNGBySignature(F){return(0,i.Z)(function*(){const Q=new Uint8Array(yield F.slice(0,8).arrayBuffer());return[137,80,78,71,13,10,26,10].every((H,ge)=>Q[ge]===H)})()}showAlert(F,Q,ae){this.alertService.showPToast(this.messageService,{summary:Q,detail:F,sticky:!1,key:"store-logo"},ae)}postLog(F){this.postCommonHttpClient(Ee.D.postLog,{type:F.type||"ACTIVITY",apiName:F.apiName,message:F.message,info:F.info,log_data:F.log_data||{}}).subscribe(ae=>{console.log(ae)})}getUpdatedIdentifier(F,Q="NA"){if(null==F)return Q;const ae=String(F).trim().toLowerCase();if(!ae)return Q;const H=Oe.yg[ae];return H?this.translate.instant(`deviceModel.${H}`):F}postPockytList(F){return this.postCommonHttpClientWithParams(Ee.D.postPockytList,F,{})}}return ke.\u0275fac=function(F){return new(F||ke)(ee.LFG(t.eN),ee.LFG(Me.Yg),ee.LFG(R.q),ee.LFG(W.m),ee.LFG(ie.ez),ee.LFG(ye.sK))},ke.\u0275prov=ee.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})()},25379:(Te,G,r)=>{"use strict";r.d(G,{s:()=>I});var i=r(86942),t=r(47418),_=r(92340),g=r(22560),T=r(70866),v=r(58987);let I=(()=>{class w{constructor(b,D){this.handleError=b,this.httpClient=D}getAllConsumersList(b){return b.size=20,this.httpClient.post(`${_.N.apiUrl}/consumerByStore`,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}}return w.\u0275fac=function(b){return new(b||w)(g.LFG(T.q),g.LFG(v.eN))},w.\u0275prov=g.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},20311:(Te,G,r)=>{"use strict";r.d(G,{v:()=>b});var i=r(66587),t=r(86942),_=r(47418),g=r(92340),T=r(92938),I=r(22560),w=r(58987),A=r(19787);let b=(()=>{class D{constructor(n,f){this.httpClient=n,this.authService=f,this.getCurrentCustomerUrl=`${g.N.apiUrl}/get-customers`,this.downloadCustomersUrl=`${g.N.apiUrl}/download-customers`,this.createCustomerUrl=`${g.N.apiUrl}/iso`,this.createSubIsoCustomerUrl=`${g.N.apiUrl}/sub-iso`,this.getProcessorUrl=`${g.N.apiUrl}/processors`,this.getEmail=`${g.N.apiUrl}
1/getE/`,this.getIsoIdentifier=`${g.N.apiUrl}/getIsoIdentifier/`,this.customerById=`${g.N.apiUrl}/getCustomer/`,this.getCustomerInfo=`${g.N.apiUrl}/getCustomerInfo/`,this.getSideBarImage=`${g.N.apiUrl}/getSidebarImage/`,this.getContractTemplate=`${g.N.apiUrl}/getContract/`,this.getContractIso=`${g.N.apiUrl}/getContractMaster/`,this.addContract=`${g.N.apiUrl}/addContract/`,this.calculateISOMonthlyBillingSummary=`${g.N.apiUrl}/calculateISOMonthlyBillingSummary`,this.calculateAssetProtectionBilling=`${g.N.apiUrl}/calculateAssetProtectionBilling`,this.calculate3DSecureBilling=`${g.N.apiUrl}/calculate3DSecureBilling`,this.calculateRentalISOMonthlyBillingSummary=`${g.N.apiUrl}/generateRentalInvoice`,this.getselectedInvoiceIso=`${g.N.apiUrl}/getselectedInvoiceIso`,this.getSalesPeron=`${g.N.apiUrl}/customers/getSalesPersons`,this.isoPreferenceDataById=`${g.N.apiUrl}/getIsoPreferenceList/`}getAllData(n){return this.httpClient.get(n).pipe((0,t.U)(f=>f.data),(0,_.K)(this.handleError))}getSalesPersons(n){return this.httpClient.get(`${this.get
1SalesPeron}`,{params:{queryString:n}}).pipe((0,t.U)(f=>f.data),(0,_.K)(this.handleError))}getAllCustomersByCustomerId(n){return this.httpClient.post(this.getCurrentCustomerUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError))}downloadCustomers(n){return this.httpClient.post(this.downloadCustomersUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError))}createIsoCustomer(n){return this.httpClient.post(this.createCustomerUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError))}createSubIsoCustomer(n){return this.httpClient.post(this.createSubIsoCustomerUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError))}handleError(n){let f={};if(n.error instanceof ErrorEvent)f.message=n.error.message;else{if(n.error.errors instanceof Array)return(0,i._)({errors:n.error.errors});n.error.error.message.error?(f.status="Double Extensions",f.message="File has multiple Extensions Please Change File Name"):(f.status=n.status,f.message=n.error.message?n.error.message:n.message)}return(0,i._)(f)}get_Parameters(n,f){return(0,T.isUndefined)(f.isoIdentified)&&(n+=f.email),(0,T.isUndefined)(f.isoIdentified)||(n+=f.isoIdentified),this.httpClient.get(n).pipe((0,t.U)(S=>S.data),(0,_.K)(this.handleError))}getCustomerById(n,f){return this.httpClient.get(n+=f.customerId).pipe((0,t.U)(S=>S.data),(0,_.K)(this.handleError))}}return D.\u0275fac=function(n){return new(n||D)(I.LFG(w.eN),I.LFG(A.e))},D.\u0275prov=I.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},27138:(Te,G,r)=>{"use strict";r.d(G,{U:()=>A});var i=r(58987),t=r(86942),_=r(47418),g=r(54724),T=r(92938),I=r(22560),w=r(70866);let A=(()=>{class b{constructor(e,n){this.httpClient=e,this.handleError=n}getAllDevice(e){let n=new i.LE;return Object.keys(e).forEach(function(f){n=n.append(f,e[f])}),this.httpClient.get(g.D.deviceUrl,{params:n}).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getAllDeviceName(e={}){let n=new i.LE;return Object.keys(e).forEach(function(f){n=n.append(f,e[f])}),this.httpClient.get(g.D.deviceNameUrl,{params:n}).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getTemplateJson(){return{version:1,author:"Denovo",title:"Params Form",deviceId:"",Host_Config:{txn:["switch.denovosystem.tech","3001"],stream:["steam.denovosystem.tech","3002"],portal:["api.denovosystem.tech","3002"]},sections:[{name:"Receipt",id:"RECEIPT",description:"",panels:[{headerText:{text:"Header"},fields:[{label:"",inputType:"text",required:!0,validations:[{exp:"^[ A-Za-z0-9_@.,/#&+-]*$",errorMsg:"Header 1 can't contain !$%^*()=",name:"checkChar"},{exp:"^.{1,25}$",errorMsg:"Header 1 should not exceed the max length than 25",name:"checkLen"}],defaultValue:"Header1",placeholder:"Please Enter Header 1",visible:!0,posParam:"h1",editable:!0,width:"12",canShow:{userType:["SYSTEM"],customerIds:[]}},{label:"",inputType:"text",required:!0,validations:[{exp:"^[ A-Za-z0-9_@.,/#&+-]*$",errorMsg:"Header 2 must be Alphanumeric ",name:"checkChar"},{exp:"^.{1,25}$",errorMsg:"Header 2 should not exceed the max length than 25",name:"checkLen"}],defaultValue:"Header2",placeholder:"Please Enter Header 2",visible:!0,posParam:"h2",editable:!0,width:"12"},{label:"",inputType:"text",required:!0,validations:[{exp:"^[ A-Za-z0-9_@.,/#&+-]*$",errorMsg:"Header 3 must be Alphanumeric ",name:"checkChar"},{exp:"^.{1,25}$",errorMsg:"Header 3 should not exceed the max length than 25",name:"checkLen"}],defaultValue:"Header3",placeholder:"Please Enter Header 3",visible:!0,posParam:"h3",editable:!0,width:"12"},{label:"",inputType:"text",required:!0,validations:[{exp:"^[ A-Za-z0-9_@.,/#&+-]*$",errorMsg:"Header 4 must be Alphanumeric",name:"checkChar"},{exp:"^.{1,25}$",errorMsg:"Header 4 should not exceed the max length than 25",name:"checkLen"}],defaultValue:"Header4",placeholder:"Please Enter Header 4",visible:!0,posParam:"h4",editable:!0,width:"12"}],showHeader:!0,panelWidth:"6",panelMinHeight:""},{headerText:{text:"Print Choices"},fields:[{label:"Merchant Copy",inputType:"radio",required:!0,defaultValue:"2",visible:!0,options:[{value:"1",text:"Print"},{value:"2",text:"Don't Print (I will download from server)"}
1],posParam:"MR_C",editable:!0,tooltip:"Choose the any one from the options given below",width:"12"},{label:"Customer Copy",inputType:"checkbox",required:!0,defaultValue:["1","2"],visible:!0,options:[{value:"1",text:"SMS"},{value:"2",text:"Email"},{value:"3",text:"Paper"}],posParam:"CR_C",editable:!0,tooltip:"Choose the any option from the options given below",width:"12"}],showHeader:!0,panelWidth:"6",panelMinHeight:"268px"},{headerText:{text:"Disclaimer"},fields:[{label:"Disclaimer",inputType:"textarea",required:!0,validations:[{exp:"^[ A-Za-z0-9_@.,/#&+-]*$",errorMsg:"This field can't contain !$%^*()=",name:"checkChar"},{exp:"^.{0,255}$",errorMsg:"This field can't have more than 255 characters",name:"checkCharLen"}],defaultValue:"",placeholder:"Type here..",visible:!0,posParam:"DIS",editable:!0,width:"12",displayMode:"raw"}],showHeader:!1,panelWidth:"12"}]},{name:"Tip & Taxes",id:"TIP_TAX",panels:[{headerText:{text:"Tip"},fields:[{label:"Tip",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Enable"},{value:"0",text:"Disable"}],posParam:"TIP",editable:!0,width:"12"},{label:"Tip Suggestion on Paper",inputType:"switch",required:!0,defaultValue:"1",visible:!0,options:[{value:"1",text:"Enable"},{value:"0",text:"Disable"}],posParam:"TS_PAP",editable:!0,width:"6",showOnly:"{{TIP}}=='1'"},{label:"Tip Suggestion on POS",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Enable"},{value:"0",text:"Disable"}],posParam:"TS_POS",editable:!0,width:"6",showOnly:"{{TIP}}=='1'"},{label:"Suggestions",inputType:"number",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],defaultValue:"10",placeholder:"Please Enter Suggestion 1",visible:!0,posParam:"S1",editable:!0,width:"6",showOnly:"{{TIP}}=='1' && ({{TS_PAP}}=='1' || {{TS_POS}}=='1')",displayMode:"raw",inputSuffix:"%"},{label:"<hide>",inputType:"number",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],defaultValue:"20",placeholder:"Please Enter Suggestion 2",visible:!0,posParam:"S2",editable:!0,tooltip:"",width:"6",showOnly:"{{TIP}}=='1' && ({{TS_PAP}}=='1' || {{TS_POS}}=='1')",inputSuffix:"%"},{inputType:"number",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],defaultValue:"30",placeholder:"Please Enter Suggestion 3",visible:!0,posParam:"S3",editable:!0,tooltip:"",width:"6",showOnly:"{{TIP}}=='1' && ({{TS_PAP}}=='1' || {{TS_POS}}=='1')",inputSuffix:"%"},{inputType:"number",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],defaultValue:"40",placeholder:"Please Enter Suggestion 4",visible:!0,posParam:"S4",editable:!0,tooltip:"",width:"6",showOnly:"{{TIP}}=='1' && ({{TS_PAP}}=='1' || {{TS_POS}}=='1')",inputSuffix:"%"},{label:"<hide>",inputType:"group",width:"12",showOnly:"{{TIP}}=='1' && ({{TS_PAP}}=='1' || {{TS_POS}}=='1')",groupElements:[{label:"Max Tip allowed is",inputType:"null",showOnly:"{{TIP}}=='1'"},{label:"<hide>",inputType:"number",inputSuffix:"%",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],defaultValue:"",placeholder:"",visible:!0,posParam:"MAX_TP",editable:!0,tooltip:"",width:"4",showOnly:"{{TIP}}=='1'"},{label:" Or ",inputType:"null",showOnly:"{{TIP}}=='1'"},{label:"<hide>",inputType:"number",inputPrefix:"$",required:!0,defaultValue:"100",placeholder:"",visible:!0,posParam:"MAX_TA",editable:!0,width:"4",showOnly:"{{TIP}}=='1'"},{label:"whichever is higher.",inputType:"null",showOnly:"{{TIP}}=='1'"}]}],showHeader:!0,panelWidth:"8",panelMinHeight:""},{headerText:{text:"Taxes"},fields:[{label:"Tax",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Enable"},{value:"0",text:"Disable"}],posParam:"TAX",editable:!0,width:"12"},{label:"State Tax",inputType:"number",required:!0,validations:[{exp:"^(2[0-8]|1[0-9]|[1-9])$",errorMsg:"Max allowed Tax is 28%!",name:"checkTax"}],defaultValue:"10",placeholder:"Please Enter State Tax",visible:!0,posParam:"STAX",editable:!0,width:"6",showOnly:"{{TAX}}=='1'",inputSuffix:"%"},{label:"Local Tax",inputType:"number",required:!0,validations:[{exp:"^(2[0-8]|1[0-9]|[1-9])$",errorMsg:"Max allowed Tax is 28%!",name:"checkTax"}],defaultValue:"20",placeholder:"Please Enter Local Tax",visible:!0,posParam:"LTAX",editable:!0,width:"6",showOnly:"{{TAX}}=='1'",inputSuffix:"%"}],showHeader:!0,panelWidth:"4"}]},{name:"Transaction",id:"TRANSACTION",panels:[{headerText:{text:"Tx Type"},fields:[{label:"",inputType:"checkbox",required:!0,defaultValue:["1","2"],visible:!0,options:[{value:"1",text:"Sale"},{value:"2",text:"Void"},{value:"3",text:"Ticket"},{value:"4",text:"Refund"},{value:"5",text:"Auth"}],optionPerRow:"2",posParam:"TX_TYP",editable:!0,width:"12"}],showHeader:!0,panelWidth:"6"},{headerText:{text:"AVS"},fields:[{inputType:"radio",required:!0,defaultValue:"4",visible:!0,options:[{value:"1",text:"Zip Code"},{value:"2",text:"Street #"},{value:"3",text:"Both Zip & Street"},{value:"4",text:"None"}],optionPerRow:"2",posParam:"AVS",editable:!0,width:"12"}],showHeader:!0,panelWidth:"6",panelMinHeight:"107px"},{headerText:{text:"Card Type"},fields:[{inputType:"checkbox",required:!0,defaultValue:["1","2","3","4"],visible:!0,options:[{value:"1",text:"Credit"},{value:"2",text:"Debit"},{value:"3",text:"ebt"},{value:"4",text:"Gift"},{value:"5",text:"Cash"},{value:"6",text:"Prepaid"}],optionPerRow:"2",posParam:"CRD_TYP",editable:!0,width:"12"}],showHeader:!0,panelWidth:"6",panelMinHeight:""},{headerText:{text:"Card Schemes"},fields:[{inputType:"checkbox",required:!0,defaultValue:["1","2","3"],visible:!0,options:[{value:"1",text:"Visa"},{value:"2",text:"Master"},{value:"3",text:"Amex"},{value:"4",text:"Discover"},{value:"5",text:"Diner"},{value:"6",text:"JCB"}],optionPerRow:"2",posParam:"CRD_SCH",editable:!0,width:"12"}],showHeader:!0,panelWidth:"6",panelMinHeight:""},{headerText:{text:"Others"},fields:[{label:"Manual Key Entry",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"MKE",editable:!0,width:"6"},{label:"Mandatory CVV",inputType:"switch",required:!0,defaultValue:"0",placeholder:"",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"MCVV",editable:!0,width:"6",displayMode:"raw"},{label:"Signature Line",inputType:"radio",required:!0,defaultValue:"1",visible:!0,options:[{value:"1",text:"Based on CVM"},{value:"2",text:"For All Credit Tx"}
1],posParam:"SL",editable:!0,tooltip:"Choose the any one from the options given below",width:"12"}],showHeader:!0,panelWidth:"6"}]},{name:"Settlement",id:"SETL",panels:[{headerText:{text:"Settlement Options"},fields:[{label:"Settlement Mode",inputType:"radio",required:!0,defaultValue:"1",visible:!0,options:[{value:"1",text:"Manual"},{value:"2",text:"Automatic"}],posParam:"SM",editable:!0,width:"4"},{label:"Settlement Time",inputType:"time",required:!0,defaultValue:{hour:13,minute:30},visible:!0,posParam:"AU_ST",editable:!0,tooltip:"",width:"8",showOnly:"{{SM}}=='2'"},{label:"Print Report",inputType:"radio",required:!0,defaultValue:"1",visible:!0,options:[{value:"1",text:"Only Confirmation"},{value:"2",text:"Summary"},{value:"3",text:"Summary & Detail"}],posParam:"PR",editable:!0,tooltip:"Choose the any one from the options given below",width:"4",showOnly:"{{SM}}=='2'"},{inputType:"group",showOnly:"{{SM}}=='2'",groupElements:[{label:"Retry",inputType:"null",showOnly:"{{SM}}=='2'"},{label:"<hide>",inputType:"number",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],visible:!0,posParam:"RT",editable:!0,width:"4",showOnly:"{{SM}}=='2'"},{label:"Times after every",inputType:"null",showOnly:"{{SM}}=='2'"},{label:"<hide>",inputType:"number",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],visible:!0,posParam:"RM",editable:!0,width:"4",showOnly:"{{SM}}=='2'"},{label:"minutes.",inputType:"null",showOnly:"{{SM}}=='2'"}]}],showHeader:!0,panelWidth:"12"}]},{name:"Fee",id:"FEE",panels:[{headerText:{text:""},fields:[{inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Enable"},{value:"0",text:"Disable"}],posParam:"FEE",editable:!0,width:"4",label:"Fee"}],showHeader:!1,panelWidth:"12"},{headerText:{text:"Fee Type"},fields:[{inputType:"radio",required:!0,defaultValue:"",placeholder:"",visible:!0,options:[{value:"1",text:"Custom Fee"},{value:"2",text:"Surcharge"},{value:"3",text:"DTI"}],posParam:"F_TYP",editable:!0,width:"12"}],showHeader:!0,panelWidth:"3",showOnly:"{{FEE}}=='1'"},{headerText:{text:"Custom Fee"},fields:[{label:"<hide>",inputType:"group",groupElements:[{label:"Apply",inputType:"null"},{inputType:"select",required:!0,visible:!0,options:[{value:"1",text:"%"},{value:"2",text:"$"}],posParam:"CF_PER",editable:!0,width:"4",selectType:"single",defaultValue:"1"},{label:"<hide>",inputType:"number",validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax",showOnly:"{{CF_PER}}=='1'"}],required:!0,defaultValue:"100",visible:!0,posParam:"CF_AMT",editable:!0,width:"4"},{label:"Capped at",inputType:"null"},{label:"<hide>",inputType:"number",inputSuffix:"%",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax"}],visible:!0,posParam:"CF_TX_AMT",editable:!0,width:"4"},{label:"of Tx Amount",inputType:"null"}]},{label:"Display Label",inputType:"text",required:!0,placeholder:"Please Enter Display Name",visible:!0,posParam:"CF_DL",editable:!0,width:"8",displayMode:"raw"},{label:"Disclose Fee to Customer",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"CF_DFC",editable:!0,width:"6"},{label:"Apply Fee On Tip",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"CF_AFT",editable:!0,width:"6",displayMode:"raw"},{label:"Merchant Can Remove Fee",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"CF_MCR",editable:!0,width:"6"},{label:"Apply Fee On Debit Card",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"CF_AFD",editable:!0,width:"6"},{label:"Password Protect Remove Option",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"CF_PPR",editable:!0,width:"6"}],showHeader:!0,panelWidth:"9",showOnly:"{{F_TYP}}=='1'"},{headerText:{text:"Surcharge"},fields:[{label:"<hide>",inputType:"group",groupElements:[{label:"Apply",inputType:"null"},{inputType:"select",required:!0,visible:!0,options:[{value:"1",text:"%"},{value:"2",text:"$"}],posParam:"SR_PER_C",editable:!0,width:"4",selectType:"single",defaultValue:"1"},{label:"<hide>",inputType:"number",inputSuffix:"",selectType:"",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax",showOnly:"{{SR_PER_C}}=='1'"}],defaultValue:"100",placeholder:"",visible:!0,posParam:"SR_AMT_C",editable:!0,tooltip:"",width:"4",displayMode:"inline"},{label:"Whichever is higher",inputType:"null"},{label:"on Credit Card Tx Amount",inputType:"null"}]},{label:"Display Label for Credit Card",inputType:"text",required:!0,defaultValue:"",placeholder:"Please Enter Display Name",visible:!0,posParam:"SR_DL_C",editable:!0,width:"8",displayMode:"raw"},{label:"Disclose Fee to Customer",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"SR_DF_CUS",editable:!0,width:"6"},{label:"Apply Surcharge On Tip",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"SR_AS_T",editable:!0,width:"6"},{label:"Merchant Can Remove Fee",inputType:"switch",required:!0,defaultValue:"0",placeholder:"Please Enter Suggestion 1",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"SR_MCR",editable:!0,width:"6"},{label:"Password Protect Remove Option",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"SR_PPR",editable:!0,width:"6"},{label:"<hide>",inputType:"group",groupElements:[{label:"Apply",inputType:"null"},{inputType:"select",required:!0,visible:!0,options:[{value:"1",text:"%"},{value:"2",text:"$"}],posParam:"SR_PER_D",editable:!0,width:"4",selectType:"single",defaultValue:"1"},{label:"<hide>",inputType:"number",inputSuffix:"",selectType:"",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax",showOnly:"{{SR_PER_D}}=='1'"}],defaultValue:"100",placeholder:"",visible:!0,posParam:"SR_AMT_D",editable:!0,tooltip:"",width:"4",displayMode:"inline"},{label:"Whichever is higher",inputType:"null"},{label:"on Debit Card Tx Amount",inputType:"null"}]},{label:"Display Label for Debit Card",inputType:"text",required:!0,placeholder:"Please Enter Display Name",visible:!0,posParam:"SR_DL_D",editable:!0,width:"8"}],showHeader:!0,panelWidth:"9",showOnly:"{{F_TYP}}=='2'"},{headerText:{text:"DTI"},fields:[{label:"<hide>",inputType:"group",groupElements:[{label:"Apply",inputType:"null"},{inputType:"select",required:!0,visible:!0,options:[{value:"1",text:"%"},{value:"2",text:"$"}],posParam:"D_PER_CR",editable:!0,width:"4",selectType:"single",defaultValue:"1"},{label:"<hide>",inputType:"number",inputPrefix:"",inputSuffix:"",selectType:"",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax",showOnly:"{{D_PER_CR}}=='1'"}],defaultValue:"100",placeholder:"",visible:!0,posParam:"D_AMT_CR",editable:!0,tooltip:"",width:"4",displayMode:"inline"},{label:"for Credit and Debit Card",inputType:"null"}]},{label:"Display Label for FEE",inputType:"text",required:!0,defaultValue:"SVC",placeholder:"Please Enter Display Name",visible:!0,posParam:"D_DL_F",editable:!1,width:"8",displayMode:"raw"},{label:"Display Label for Discount",inputType:"text",required:!0,defaultValue:"DISC",placeholder:"Please Enter Display Name",visible:!0,posParam:"D_DL_D",editable:!1,width:"8",displayMode:"raw"},{label:"Apply SVC on Debit card",inputType:"switch",required:!0,defaultValue:"0",visible:!0,posParam:"SVC_DBT",editable:!0,width:"5",options:[{value:"1",text:"Yes"},{value:"0",text:"No"}]},{label:"Apply Fee On Tip",inputType:"switch",required:!0,defaultValue:"0",visible:!0,options:[{value:"1",text:"Yes"},{value:"0",text:"No"}],posParam:"D_AFT",editable:!0,width:"5",displayMode:"raw"},{label:"<hide>",inputType:"group",groupElements:[{label:"Apply Discount",inputType:"null"},{inputType:"select",required:!0,visible:!0,posParam:"D_PER_DDA",editable:!0,width:"4",selectType:"single",defaultValue:"1",options:[{value:"1",text:"%"},{value:"2",text:"$"}]},{label:"<hide>",inputType:"number",inputPrefix:"",inputSuffix:"",selectType:"",required:!0,validations:[{exp:"^0*(?:[1-9][0-9]?|100)$",errorMsg:"Invalid Input!",name:"checkMinMax",showOnly:"{{D_PER_DDA}}=='1'"}],defaultValue:"100",placeholder:"",visible:!0,posParam:"D_AMT_DDA",editable:!0,tooltip:"",width:"4",displayMode:"inline"},{label:"for Cash EBT",inputType:"null"}]}],showHeader:!0,panelWidth:"9",showOnly:"{{F_TYP}}=='3'"}]}]}}getTemplateJSON(e){return this.httpClient.get(`${g.D.templateJsonUrl}/${e}`).pipe((0,t.U)(n=>
1n),(0,_.K)(this.handleError.handleError))}getValueJSON(e){return this.httpClient.get(`${g.D.valueJsonUrl}/${e}`).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}saveTemplateJSON(e){return this.httpClient.post(g.D.valueJsonUrl,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}saveAsTemplate(e){return this.httpClient.post(g.D.saveAsTemplate,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getLastFourBuild(e){return this.httpClient.post(g.D.latestBuilds,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}assignBuild(e){return this.httpClient.post(g.D.checkSum,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getTemplateNames(e){return this.httpClient.post(g.D.templateNames,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}applyPosTemplate(e,n){return this.httpClient.post(`${g.D.applyTemplate}/${e}`,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}deleteTemplate(e){return this.httpClient.delete(`${g.D.deleteTemplateParam}/${e}`).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getPinPadDeviceModels(e){let n=[{identifier:"QD2",manufacturer_from_device_model:{name:"WizardPOS"}},{identifier:"QD3",manufacturer_from_device_model:{name:"WizardPOS"}},{identifier:"QD4",manufacturer_from_device_model:{name:"WizardPOS"}},{identifier:"QD5",manufacturer_from_device_model:{name:"WizardPOS"}},{identifier:"Q3Pro",manufacturer_from_device_model:{name:"WizardPOS"}},{identifier:"Q3mini",manufacturer_from_device_model:{name:"WizardPOS"}},{identifier:"P1",manufacturer_from_device_model:{name:"Kozen"}},{identifier:"P3",manufacturer_from_device_model:{name:"Kozen"}},{identifier:"P5",manufacturer_from_device_model:{name:"Kozen"}},{identifier:"P8",manufacturer_from_device_model:{name:"Kozen"}},{identifier:"P12",manufacturer_from_device_model:{name:"Kozen"}},{identifier:"P17",manufacturer_from_device_model:{name:"Kozen"}}];return e?(0,T.find)(n,["identifier",e]):n}savePinpadTpns(e){return this.httpClient.post(`${g.D.pinpadTpns}`,e).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}updatePinpadTpns(e,n){return this.httpClient.put(`${g.D.pinpadTpns}/${e}`,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}deletePinpadTpns(e){return this.httpClient.delete(`${g.D.pinpadTpns}/${e}`).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getTpnById(e){return this.httpClient.get(`${g.D.deviceUrl}/${e}`).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getPinpadTpns(e){return this.httpClient.get(`${g.D.pinpadTpns}/${e}`).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}}return b.\u0275fac=function(e){return new(e||b)(I.LFG(i.eN),I.LFG(w.q))},b.\u0275prov=I.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},19432:(Te,G,r)=>{"use strict";r.d(G,{y:()=>I});var i=r(58987),t=r(86942),_=r(47418),g=r(92340),T=r(22560),v=r(70866);let I=(()=>{class w{constructor(b,D){this.handleError=b,this.httpClient=D}getAllDeviceAlert(b){let D=new i.LE;return D=D.append("sort",'{"field": "updatedAt", "order":"DESC"}'),D=D.append("size","20"),Object.keys(b).forEach(function(e){D=D.append(e,b[e])}),this.httpClient.get(`${g.N.steamApiUrl}/device-alert`,{params:D}).pipe((0,t.U)(e=>e),(0,_.K)(this.handleError.handleError))}}return w.\u0275fac=function(b){return new(b||w)(T.LFG(v.q),T.LFG(i.eN))},w.\u0275prov=T.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},40297:(Te,G,r)=>{"use strict";r.d(G,{t:()=>I});var i=r(58987),t=r(86942),_=r(47418),g=r(92340),T=r(22560),v=r(70866);let I=(()=>{class w{constructor(b,D){this.handleError=b,this.httpClient=D,this.getMoreDownloadLogs=`${g.N.steamApiUrl}/getMoreDownloadLogs/`,this.downloadLogDetails=`${g.N.steamApiUrl}/getDownloadLogDetails/`}getAllDownloadLog(b){let D=new i.LE;return D=D.append("sort",'{"field": "updatedAt", "order":"DESC"}'),D=D.append("size","20"),Object.keys(b).forEach(function(e){D=D.append(e,b[e])}),this.httpClient.get(`${g.N.steamApiUrl}/getAllDownloadLogs`,{params:D}).pipe((0,t.U)(e=>e),(0,_.K)(this.handleError.handleError))}getMoreDownloadLog(b,D,e){let n=new i.LE;return b=b+D.manufacturerId+"/"+D.deviceModelId+"/"+D.tpn,Object.keys(e).forEach(function(f){n=n.append(f,e[f])}),this.httpClient.get(b,{params:n}).pipe((0,t.U)(f=>
1f.data),(0,_.K)(this.handleError.handleError))}}return w.\u0275fac=function(b){return new(b||w)(T.LFG(v.q),T.LFG(i.eN))},w.\u0275prov=T.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},70866:(Te,G,r)=>{"use strict";r.d(G,{L:()=>D,q:()=>b});var i=r(58987),t=r(66587),_=r(59151),g=r(86942),T=r(59462),I=(r(92340),r(92938)),A=r(22560);let b=(()=>{class e{constructor(){}handleError(f){console.log(f);let S={};if(f?.error?.bodyData&&(S.bodyData=f?.error?.bodyData),f?.error?.header&&(S.header=f?.error?.header),f.error instanceof ErrorEvent)S.message=f.error.message;else if(f?.error?.errors instanceof Array)S.status="Error!",S.message=f.error.errors[0].message;else if(f instanceof i.UA)switch(f.status){case 504:return S.status=f.status,S.message="Gateway timeout",(0,t._)(S);case 500:return S.status=f.status,S.message=f.error.message?f.error.message:f.status,S.isFeeError=f.error.isFeeError?f.error.isFeeError:"",S.error=f.error,(0,t._)(S);default:return S.status=f.status,console.log("\u{1f680} ~ ErrorHandlerService ~ handleError ~ error:",f),S.responseMessage=f?.error?.responseMessage,S.message=f.error.message?f.error.message:f.message?f.statusText:f,S.failedData=(0,I.get)(f,"error.failedData",null),S.type=(0,I.get)(f,"error.type",null),S.navigateToLogin=(0,I.get)(f,"error.navigateToLogin",!1),S.mfaErrorC
1ode=(0,I.get)(f,"error.mfaErrorCode",null),S.errorMessages=(0,I.get)(f,"error.errorMessages",null),S.isFeeError=f.error.isFeeError?f.error.isFeeError:"",S.dvStoreVersion=f.error.dvStoreVersion?f.error.dvStoreVersion:"",(0,t._)(S)}else S.status=f.status,S.message=f.error?.message?f.error.message:f.message,S.isFeeError=f.error?.isFeeError?f.error.isFeeError:"";return(0,t._)(S)}}return e.\u0275fac=function(f){return new(f||e)},e.\u0275prov=A.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),D=(()=>{class e{constructor(f,S,J){this.injector=f,this.httpClient=S,this.router=J,this.router.events.pipe((0,_.h)(de=>de instanceof T.m2)).subscribe(de=>{this.currentRoute=de.url})}handleError(f){console.log(f),/Loading chunk [\d]+ failed/.test(f.message)&&window.location.reload()}postCommonHttpClient(f,S){return this.httpClient.post(f,S).pipe((0,g.U)(J=>J)).subscribe(J=>{})}}return e.\u0275fac=function(f){return new(f||e)(A.LFG(A.zs3),A.LFG(i.eN),A.LFG(T.F0))},e.\u0275prov=A.Yz7({token:e,factory:e.\u0275fac}),e})()},18642:(Te,G,r)=>{"use strict";r.d(G,{c:()=>I});var i=r(86942),t=r(47418),_=r(92340),g=r(22560),T=r(70866),v=r(58987);let I=(()=>{class w{constructor(b,D){this.handleError=b,this.httpClient=D,this.getAllMerchantUrl=`${_.N.apiUrl}/get-merchants`,this.postMerchantUrl=`${_.N.apiUrl}/merchants`,this.getStoreUrl=`${_.N.apiUrl}/stores/:merchantId`,this.updateMerchantByIdUrl=`${_.N.apiUrl}/merchants/:merchantId`,this.deleteMerchantByIdUrl=`${_.N.apiUrl}/merchants/:merchantId`,this.getManufacturerUrl=`${_.N.apiUrl}/manufacturers`,this.getApplicationSignUrl=`${_.N.apiUrl}/applicationSignature`,this.getDeviceModalsUrl=`${_.N.apiUrl}/device-models-by-manufacturer/`,this.getEmail=`${_.N.apiUrl}/getE/`,this.getDBA=`${_.N.apiUrl}/getDba/`,this.getProcessorUrl=`${_.N.apiUrl}/processors`,this.getProfileUrl=`${_.N.apiUrl}/profiles`,this.postCreateDefaultParam=`${_.N.steamApiUrl}/create-default-param`,this.routingType="assets/data/routing_type.json",this.getMerchantById=`${_.N.apiUrl}/merchants/`,this.getMerchant=`${_.N.apiUrl}/getMerchantById/`,this.tpnById=`${_.N.apiUrl}/tpns/getTpn/`,this.getMerchantByTpnId=`${_.N.apiUrl}/merchants/getMerchant/`,this.updateTpnById=`${_.N.apiUrl}/tpns/:tpnId`,this.editTpnById=`${_.N.apiUrl}/editTPN`,this.isoDeleteMerchant=`${_.N.apiUrl}/isoDeleteMerchant`,this.merchantDataById=`${_.N.apiUrl}/getmerchant/`,this.editMerchantById=`${_.N.apiUrl}/editMerchant`,this.getStoreDataById=`${_.N.apiUrl}/getStoreById/`,this.editStoreById=`${_.N.apiUrl}/editStore`,this.addStoreById=`${_.N.apiUrl}/stores`,this.isoDeleteStore=`${_.N.apiUrl}/deleteStore`,this.getMerchantIdByTpn=`${_.N.apiUrl}/merchants/getMerchantDetails/`,this.getIntegrationsUrl=`${_.N.apiUrl}/getMerchantIntegrationList`,this.merchantIntegrationsDataById=`${_.N.apiUrl}/getMerchantIntegrationList/`,this.multiMidDevicesModels=`${_.N.apiUrl}/devices-models/`,this.multiMidTpns=`${_.N.apiUrl}/get-multi-mid/`,this.multiMidCreate=`${_.N.apiUrl}/config-multi-mid/`,this.multiMidUpdate=`${_.N.apiUrl}/update-multi-mid/`,this.multiMidGroup=`${_.N.apiUrl}/multi-mid-groups/`,this.multiMidLabelGenerate=`${_.N.apiUrl}/generate-mid-label/`,this.multiMidGroupDelete=`${_.N.apiUrl}/delete-multi-mid/`}getAllRoutingType(){return this.httpClient.get(this.routingType).pipe((0,i.U)(b=>b))}getAllData(b){return this.httpClient.get(b).pipe((0,i.U)(D=>D.data),(0,t.K)(this.handleError.handleError))}getAllMerchant(b){return b&&(b.size||(b.size=20)),this.httpClient.post(`${this.getAllMerchantUrl}`,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}get_Email(b,D){return this.httpClient.get(b+=D.email).pipe((0,i.U)(e=>e),(0,t.K)(this.handleError.handleError))}get_Dba(b,D){return this.httpClient.get(b+=D.dba).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}createMerchant(b){return this.httpClient.post(this.postMerchantUrl,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}create_default_param(b){return this.httpClient.post(this.postCreateDefaultParam,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}updateMerchantById(b,D){return this.httpClient.put(`${this.updateMerchantByIdUrl}/${b}`,D).pipe((0,i.U)(e=>e),(0,t.K)(this.handleError.handleError))}deleteMerchantById(b){return this.httpClient.post(`${this.deleteMerchantByIdUrl}`,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getStoreName(b,D){return this.httpClient.get(b+=D.merchantId).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}getById(b,D){return this.httpClient.get(b+=D.tpnId).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}getMerchantByTpn(b,D){return this.httpClient.get(b+=D.tpnId).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}updateTpnBy_Id(b,D){return this.httpClient.put(`${this.updateTpnById}/${b}`,D).pipe((0,i.U)(e=>e),(0,t.K)(this.handleError.handleError))}EditTpn(b){return this.httpClient.post(this.editTpnById,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}deleteMerchantIso(){return this.httpClient.get(this.isoDeleteMerchant).pipe((0,i.U)(b=>
1b),(0,t.K)(this.handleError.handleError))}merchantById(b,D){return this.httpClient.get(b+=D.merchantId).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}EditMerchant(b){return this.httpClient.post(this.editMerchantById,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getStoreData(b,D){return this.httpClient.get(b+=D.id).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}EditStore(b){return this.httpClient.post(this.editStoreById,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}AddStore(b){return this.httpClient.post(this.addStoreById,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getMerchantByTpnInfo(b,D){return this.httpClient.get(b+=D.tpnId).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}merchantPreferenceMappingById(b,D){return this.httpClient.get(b+=D.merchantId).pipe((0,i.U)(e=>e.data),(0,t.K)(this.handleError.handleError))}getMultiMidDeviceModel(){return this.httpClient.get(this.multiMidDevicesModels).pipe((0,i.U)(b=>b),(0,t.K)(this.handleError.handleError))}createMultiMid(b){return this.httpClient.post(this.multiMidCreate,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}updateMultiMid(b){return this.httpClient.put(this.multiMidUpdate,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getMultiMidGroup(b){return this.httpClient.get(`${this.multiMidGroup}${b}`).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}generateMidLabel(b){return this.httpClient.get(`${this.multiMidLabelGenerate}${b}`).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}deleteMultiMidGroup(b){return this.httpClient.delete(`${this.multiMidGroupDelete}${b}`).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}getMultiMidTpns(b){return this.httpClient.post(this.multiMidTpns,b).pipe((0,i.U)(D=>D),(0,t.K)(this.handleError.handleError))}}return w.\u0275fac=function(b){return new(b||w)(g.LFG(T.q),g.LFG(v.eN))},w.\u0275prov=g.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},53906:(Te,G,r)=>{"use strict";r.d(G,{k:()=>v});var i=r(22560),t=r(59462),_=r(19787),g=r(98660);const T="Password expired. Kindly change your password using forgot password o
1ptions.";let v=(()=>{class I{constructor(A,b,D){this.router=A,this.authService=b,this.totpFlow=D}routeAfterValidateLogin(A,b,D){return A?.totpEnrollmentRequired?(this.markLoginSessionActive(),this.totpFlow.begin(D),this.authService.applyPortalTheme(A?.themeColor),this.router.navigateByUrl("/auth/totp/setup"),!0):!!A?.totpVerificationRequired&&(this.markLoginSessionActive(),this.totpFlow.begin(D),this.authService.applyPortalTheme(A?.themeColor),this.router.navigateByUrl("/auth/totp/verify"),!0)}markLoginSessionActive(){localStorage.setItem("logger_token","multiLogin")}clearLoginSessionMarker(){localStorage.removeItem("logger_token")}returnToLoginAfterAbandon(){this.clearLoginSessionMarker(),this.totpFlow.clear(),this.authService.clearPendingAuthUser(),this.router.navigateByUrl("/auth/login",{replaceUrl:!0})}guardRedirect(A,b){return!(!A||!(A.totpVerificationRequired||A.totpEnrollmentRequired||A.totpEnrollmentPending)||(this.totpFlow.isActive?A.totpVerificationRequired?(this.router.navigate(["/auth/totp/verify"],{replaceUrl:!0}),0):!A.totpEnrollmentRequired&&!A.totpEnrollmentPending||(this.router.navigate(["/auth/totp/setup"],{replaceUrl:!0}),0):(this.authService.clearPendingAuthUser(),this.router.navigate(["/auth/login"]),0)))}navigateAfterLogin(A,b){if(this.totpFlow.clear(),localStorage.setItem("logger_token","multiLogin"),"MULTI_STORE_MANAGER"===A?.userType)return void this.navigateToReturnUrl(b||"/user-management/users");const e=A?.roleFeatures||[],n=(f,S)=>e.some(J=>J.module===f&&(J.features||[]).includes(S));(A?.excludeFeatures||[]).indexOf("VIEW_DASHBOARD")>-1?this.router.navigateByUrl(n("CLOUD_POS","PAYMENTS")?"/virtual-terminal/list":n("TRANSACTION","VIEW_TRANSACTION")?"/transaction-management/transactions":"/user-management/users"):this.navigateToReturnUrl(b||"/")}isPasswordExpiredError(A){const b=String(A?.message||"");return b===T||b.toLowerCase().includes("password expired")}shouldNavigateToLoginAfterError(A){if(!0===A?.navigateToLogin)return!0;if(this.isPasswordExpiredError(A))return!1;const b=String(A?.mfaErrorCode||"").toUpperCase();if("RATE_LIMIT_EXCEEDED"===b||"MFA_SETUP_EXPIRED"===b||"TOTP_SESSION_EXPIRED"===b||"ACCOUNT_LOCKED"===b||429===Number(A?.status))return!0;const D=String(A?.message||"").toLowerCase();return!!(D.includes("locked")||D.includes("account")&&D.includes("lock")||D.includes("too many setup"))||!!D.includes("expir")}returnToLoginAfterPasswordExpired(A){this.clearLoginSessionMarker(),this.totpFlow.endFlowKeepCredentials(),this.authService.clearPendingAuthUser(),this.totpFlow.setPendingLoginError({message:A?.message||T,type:A?.type}),this.router.navigateByUrl("/auth/login",{replaceUrl:!0})}navigateToReturnUrl(A){A&&(A.startsWith("http://")||A.startsWith("https://"))?window.location.href=A:this.router.navigateByUrl(A||"/")}}return I.\u0275fac=function(A){return new(A||I)(i.LFG(t.F0),i.LFG(_.e),i.LFG(g._))},I.\u0275prov=i.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},98660:(Te,G,r)=>{"use strict";r.d(G,{_:()=>t});var i=r(22560);let t=(()=>{class _{constructor(){this.active=!1,this.pendingCredentials=null,this.pendingLoginError=null}get isActive(){return this.active}begin(T){this.active=!0,null!=T?.email&&null!=T?.password&&(this.pendingCredentials={email:T.email,password:T.password})}endFlowKeepCredentials(){this.active=!1}clear(){this.active=!1,this.pendingCredentials=null,this.pendingLoginError=null}setPendingLoginError(T){this.pendingLoginError={message:T?.message||"",type:T?.type}}takePendingCredentials(){const T=this.pendingCredentials;return this.pendingCredentials=null,T}takePendingLoginError(){const T=this.pendingLoginError;return this.pendingLoginError=null,T}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275prov=i.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},91768:(Te,G,r)=>{"use strict";r.d(G,{p:()=>b});var i=r(58987),t=r(66587),_=r(86942),g=r(47418),T=r(92340),v=r(54724),I=r(3497),w=r(22560),A=r(19787);let b=(()=>{class D{constructor(n,f){this.httpClient=n,this.authService=f,this.getInvoice=`${T.N.steamApiUrl}/transaction-invoice`}getAllTransactions(n){let f=new i.LE;return f=f.append("sort",'{"field": "txDate", "order": "DESC"}
1'),f=f.append("size","20"),Object.keys(n).forEach(function(S){f=f.append(S,n[S])}),this.httpClient.get(`${T.N.apiUrl}/transactions?`,{params:f}).pipe((0,_.U)(S=>S),(0,g.K)(this.handleError))}getInvoiceNum(n,f){return this.httpClient.get(n=n+"/"+f.rrn+"/"+f.txName).pipe((0,_.U)(S=>S.data),(0,g.K)(this.handleError))}getReceiptDetails(n){return this.httpClient.get(`${v.D.receiptDetails}/${n}`).pipe((0,_.U)(f=>f),(0,g.K)(this.handleError))}getAlterReceiptDetails(n){return this.httpClient.get(`${v.D.receiptAlterDetails}/${n}`).pipe((0,_.U)(f=>f),(0,g.K)(this.handleError))}getCustomerReceiptDetails(n,f,S){let J="";const de=new i.LE({fromObject:f});return J=1==S?`${v.D.txExtns}/${n}`:`${v.D.txAltExtn}/${n}`,this.httpClient.get(J,{params:de}).pipe((0,_.U)(Ie=>Ie),(0,g.K)(this.handleError))}getCustomerReceipt(n){return this.httpClient.get(`${v.D.customerReceipt}/${n}`).pipe((0,_.U)(f=>f),(0,g.K)(this.handleError))}getAlterCustomerReceipt(n){return this.httpClient.get(`${v.D.customerAlterReceipt}/${n}`).pipe((0,_.U)(f=>f),(0,g.K)(this.handleError))}handleError(n){let f={};if(n.error instanceof ErrorEvent)f.message=n.error.message;else{if(n.error.errors instanceof Array)return(0,t._)({errors:n.error.errors});f.status=n.status,f.message=n.error.message?n.error.message:n.message}return(0,t._)(f)}isCheckTrans(n){return n?.transactionType===I.i.check&&n?.destType===I.i.check&&n?.sourceType===I.i.check}}return D.\u0275fac=function(n){return new(n||D)(w.LFG(i.eN),w.LFG(A.e))},D.\u0275prov=w.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},68375:(Te,G,r)=>{"use strict";r.d(G,{K:()=>b});var i=r(84505),t=r(86942),_=r(47418),g=r(92340),T=r(54724),v=r(22560),I=r(58987),w=r(19787),A=r(70866);let b=(()=>{class D{constructor(n,f,S){this.httpClient=n,this.authService=f,this.handleError=S,this.loginUrl=`${g.N.apiUrl}/user-login`,this.forgotPasswordUrl=`${g.N.apiUrl}/user-forgot-password`,this.resetForgotPasswordUrl=`${g.N.apiUrl}/user-reset-forgot-password`,this.createUserUrl=`${g.N.apiUrl}/users`,this.resetPasswordUrl=`${g.N.apiUrl}/user-verify`,this.resendResetLinkUrl=`${g.N.apiUrl}/user-reset-verify`,this.getCurrentUserUrl=`${g.N.apiUrl}/current-user-all`,this.getAllUsers=`${g.N.apiUrl}/users`,this.updateUserByIdUrl=`${g.N.apiUrl}/`,this.deleteUserByIdUrl=`${g.N.apiUrl}/`,this.deleteAllUserForUserIdUrl=`${g.N.apiUrl}/deleteUsers`,this.getAllUserTypesUrl=`${g.N.apiUrl}/user-types`,this.getAllUserRolesUrl=`${g.N.apiUrl}/user-type-roles`,this.getAllUserEmailsUrl=`${g.N.apiUrl}/user-emails`,this.getThemeColorById=`${g.N.apiUrl}/changetheme`,this.getUserById=`${g.N.apiUrl}/users/`,this.updateUser=`${g.N.apiUrl}/editUser`,this.getAllUserTypeId=`${g.N.apiUrl}/user-type-roles-byUserTypeId/`,this.userFavTheme=new i.X("theme-purple-light")}login(n){return this.httpClient.post(this.loginUrl,n).pipe((0,t.U)(f=>""!=f.accessToken&&null!=f.accessToken||f?.mfa?this.authService.setUser(f):null),(0,_.K)(this.handleError.handleError))}mfaValidateLogin(n){return this.httpClient.post(T.D.mfa.validate,n).pipe((0,t.U)(f=>{let S;return f?.isTermsCheck?""!=f.accessToken&&null!=f.accessToken||f?.mfa?(S=this.authService.setUser(f),S):null:(S=this.authService.setUser(f),S)}),(0,_.K)(f=>{throw f.error}))}forgotPassword(n){return this.httpClient.post(this.forgotPasswordUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}resetForgotPassword(n){return this.httpClient.post(this.resetForgotPasswordUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}createUser(n){return this.httpClient.post(this.createUserUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}resetPassword(n){return this.httpClient.post(this.resetPasswordUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}resendResetLink(n){return this.httpClient.post(this.resendResetLinkUrl,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getCurrentUser(){return this.httpClient.get(this.getCurrentUserUrl).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getAllUsersByUserId(n){return n.size=20,this.httpClient.post(`${this.getAllUsers}`,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getAllUserTypes(){return this.httpClient.get(this.getAllUserTypesUrl).pipe((0,t.U)(n=>
1n),(0,_.K)(this.handleError.handleError))}getAllUserRoles(){return this.httpClient.get(this.getAllUserRolesUrl).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}getAllUserEmails(){return this.httpClient.get(this.getAllUserEmailsUrl).pipe((0,t.U)(n=>n),(0,_.K)(this.handleError.handleError))}updateUserById(n,f){return this.httpClient.put(`${this.updateUserByIdUrl}/${n}`,f).pipe((0,t.U)(S=>S),(0,_.K)(this.handleError.handleError))}getTheme(n,f){return this.httpClient.get(n=n+"/"+f.themeColor).pipe((0,t.U)(S=>S.data),(0,_.K)(this.handleError.handleError))}getUser(n,f){return this.httpClient.post(n=n+"/"+f.id,{}).pipe((0,t.U)(S=>S.data),(0,_.K)(this.handleError.handleError))}deleteUserById(n){return this.httpClient.post(`${this.deleteAllUserForUserIdUrl}`,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}deleteAllUserForUserId(){}softDeleteSelectedUsers(n){return this.httpClient.post(`${this.deleteAllUserForUserIdUrl}`,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}update(n){return this.httpClient.post(this.updateUser,n).pipe((0,t.U)(f=>f),(0,_.K)(this.handleError.handleError))}getAllUserRolesByUserType(n,f){return this.httpClient.get(n+=f.userTypeId).pipe((0,t.U)(S=>S.data),(0,_.K)(this.handleError.handleError))}}return D.\u0275fac=function(n){return new(n||D)(v.LFG(I.eN),v.LFG(w.e),v.LFG(A.q))},D.\u0275prov=v.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},13472:(Te,G,r)=>{"use strict";r.d(G,{W:()=>D});var i=r(83918),t=r(22560),_=r(59462),g=r(19787),T=r(94666),v=r(40929);function I(e,n){if(1&e){const f=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(f);const J=t.oxw();return t.KtG(J.backToPreviousPage())}),t._UZ(1,"i",2),t.qZA()}if(2&e){const f=t.oxw();t.Q6J("ngbPopover",f.backbuttonPopoverText)}}var w=(()=>{return(e=w||(w={})).merchant="/merchant-management/list-merchant",e.transaction="/transaction-management/transactions",e.parameter="/steam-param/list-device",e.customers="/customer-management/customers",e.agentOffice="/customer-management/customers",e.myCustomer="/consumer-list/list",e.tpnSnapshot="/steam-param/tpn-snapshot",e.batches="batch-management/batches",e.editStore="merchant-management/merchant-create-management/edit-store",e.valueAddedList="/dv-store/list-apps",e.multiMid="/merchant-management/multi-mid",e.merchantInvoicing="/billing-invoice/m-b",w;var e})(),A=(()=>{return(e=A||(A={})).merchant="Back ( Merchants )",e.transaction="Back ( Transaction )",e.parameter="Back ( Edit Parameters )",e.customers="Back ( Customers )",e.agentOffice="Back ( Agent Office )",e.myCustomer="Back ( My Customers )",e.tpnSnapshot="Back ( About Device )",e.batches="Back ( Batches )",e.editStore="Back ( Edit Store )",e.valueAddedList="Back ( Value-Added Apps )",e.multiMid="Back ( Multi MID )",e.merchantInvoicing="Back ( Merchant Invoicing )",A;var e})();const b=["merchant","transaction","parameter","customers","agentOffice","myCustomer","tpnSnapshot","batches","editStore","valueAddedList","multiMid","m-b-s","merchantInvoicing"];let D=(()=>{class e{constructor(f,S,J){this.router=f,this.authService=S,this.route=J,this.paramDest=null,this.isAgentOffice=!1,this.isParamDestEnabled=!1,this.param={applyPreviousFilter:!0,keepViewMode:!0},this.backbuttonPopoverText="Back to previous page"}ngOnInit(){var f=this;this.route.queryParams.subscribe(function(){var J=(0,i.Z)(function*(de){f.billingRote=de.from,de.sendTpnInReturnUrl&&(f.tpnFromParam=de?.tpn,f.param.tpn=de?.tpn),"editStore"==de?.route&&(f.param.id=de?.storeId,f.param.type="edit_store",f.param.btn="1",f.param.gostep="1")});return function(de){return J.apply(this,arguments)}}());const S=this.authService.getUser;("SUB_ISO"==S.userType||"ISO"==S.userType)&&(this.isAgentOffice=!0),this.isAgentOffice&&"customers"==this.paramDest&&(this.paramDest="agentOffice"),this.paramDest&&(this.backbuttonPopoverText=A[this.paramDest],this.isParamDestEnabled=b.includes(this.paramDest))}backToPreviousPage(){if("multiMid"==this.paramDest||"m-b-s"==this.paramDest)return"m-b-s"!=this.paramDest||this.billingRote?void window.history.back():void this.router.navigate(["/billing-invoice/m-b-s"]);this.paramDest&&this.router.navigate([w[this.paramDest]],{queryParams:this.param})}}return e.\u0275fac=function(f){return new(f||e)(t.Y36(_.F0),t.Y36(g.e),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-back-button"]],inputs:{paramDest:"paramDest"},decls:1,vars:1,consts:[["type","button","triggers","hover","placement","auto","container","body","class","btn btn-outline-primary btn-circle mr-4",3,"ngbPopover","click",4,"ngIf"],["type","button","triggers","hover","placement","auto","container","body",1,"btn","btn-outline-primary","btn-circle","mr-4",3,"ngbPopover","click"],[1,"link-icon","feather","icon-arrow-left"]],template:function(f,S){1&f&&t.YNc(0,I,2,1,"button",0),2&f&&t.Q6J("ngIf",S.isParamDestEnabled)}
1,dependencies:[T.O5,v.o8],styles:[".btn-circle[_ngcontent-%COMP%]{width:30px;height:30px;padding:6px 0;border-radius:15px;text-align:center;font-size:12px;line-height:1.42857;box-shadow:0 2px 3px #0003}"]}),e})()},51005:(Te,G,r)=>{"use strict";r.d(G,{k:()=>w});var i=r(92938),_=r(92340),g=r(22560),T=r(94666);function v(A,b){if(1&A&&(g.ynx(0),g.TgZ(1,"p",10),g._uU(2,"Downloading "),g.TgZ(3,"b"),g._uU(4),g.qZA(),g._uU(5," records,"),g.qZA(),g.BQk()),2&A){const D=g.oxw(2);g.xp6(4),g.Oqu(null==D.timerData||null==D.timerData.totalNoOfRows?null:D.timerData.totalNoOfRows.toLocaleString())}}function I(A,b){if(1&A&&(g.TgZ(0,"div",1)(1,"div",2)(2,"h5",3),g._UZ(3,"span",4),g._uU(4,"Processing your request"),g.qZA()(),g.TgZ(5,"div",5)(6,"div",6)(7,"div"),g._UZ(8,"img",7),g.TgZ(9,"h5",8),g._uU(10),g.qZA(),g.YNc(11,v,6,1,"ng-container",9),g.qZA()()()()),2&A){const D=g.oxw();g.xp6(8),g.s9C("src",D.loader,g.LSH),g.xp6(2),g.Oqu(D.body),g.xp6(1),g.Q6J("ngIf",null==D.timerData?null:D.timerData.enableTimerContent)}}let w=(()=>{class A{constructor(){this.isLoading=!1,this.isShowTimerData=!0,this.display="00:00",this.imageUrl=_.N.whitelabelLogoPath}ngOnInit(){this.enableTimer(60*(0,i.get)(this.timerData,"downloadTimer",5),this.timerData);let D=JSON.parse(localStorage.getItem("whitelabelResData"));this.loader=D?`${this.imageUrl}/${D?.gifLoader}`:"/assets/gif/loader.gif"}enableTimer(D,e){var f,S,n=D;const J=this;this.intervalFunction=setInterval(function(){f=parseInt(""+n/60,10),S=parseInt(""+n%60,10),this.display=(f=f<10?"0"+f:f)+":"+(S=S<10?"0"+S:S),e?.totalNoOfRows?.toLocaleString();const Ie=document.getElementById("timerData");(J.isShowTimerData?Ie:Ie&&J.isShowTimerData)&&(Ie.classList.add("d-block"),Ie.innerHTML=`Downloading records, approximate download time <span class="p-1 mdi mdi-timer-sand mdi-spin font-weight-bold"> ${this.display}</span>`),--n<0&&(n=D)},1e3)}ngOnDestroy(){clearInterval(this.intervalFunction)}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275cmp=g.Xpm({type:A,selectors:[["app-downloader-loader"]],inputs:{body:"body",isLoading:"isLoading",timerData:"timerData",isShowTimerData:"isShowTimerData"},decls:1,vars:1,consts:[["class","card card-list-bg",4,"ngIf"],[1,"card","card-list-bg"],[1,"card-header","list-header","d-flex","justify-content-between"],[1,"loading"],["aria-hidden","",1,"mdi","mdi-download"],[1,"card-body"],[1,"text-center","m-5","p-5"],["alt","IPOSPAYS LOADER","width","120",3,"src"],[1,"mt-2"],[4,"ngIf"],["id","timerData",1,"mt-2","alert","alert-warning"]],template:function(D,e){1&D&&g.YNc(0,I,12,3,"div",0),2&D&&g.Q6J("ngIf",e.isLoading)},dependencies:[T.O5]}),A})()},73842:(Te,G,r)=>{"use strict";r.d(G,{u:()=>g});var i=r(22560),t=r(40929),_=r(59462);let g=(()=>{class T{constructor(I){this.activeModal=I,this.route="back",this.routeParam={},this.queryParam={}}ngOnInit(){this.queryParam={tpn:this.tpn,route:this.route,...this.routeParam}}}return T.\u0275fac=function(I){return new(I||T)(i.Y36(t.Kz))},T.\u0275cmp=i.Xpm({type:T,selectors:[["app-edit-tpn-open-batch-modal"]],inputs:{tpn:"tpn",route:"route",routeParam:"routeParam"},decls:15,vars:2,consts:[[1,"modal-header","d-flex","justify-content-between"],[1,"row","thumbs_icon"],[1,"ml-2"],["id","exampleModalLongTitle",1,"modal-title"],[1,"font-weight-bold","text_baseline"],[1,"modal-body","text-center","px-5","py-5"],[1,"text-center","mt-2","mb-2"],[1,"card-footer","pb-2"],[1,"text-right","m-1"],[1,"mt-2","text-right","btn","btn-danger","mr-2",3,"click"],[1,"mt-2","text-right","btn","btn-primary","mr-2",3,"routerLink","queryParams","click"]],template:function(I,w){1&I&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3)(4,"span",4),i._uU(5,"ALERT"),i.qZA()()()()(),i.TgZ(6,"div",5)(7,"h5",6),i._uU(8,"Please settle the batch to edit the TPN."),i.qZA()(),i.TgZ(9,"div",7)(10,"div",8)(11,"button",9),i.NdJ("click",function(){return w.activeModal.close("Close")}),i._uU(12,"Close"),i.qZA(),i.TgZ(13,"button",10),i.NdJ("click",function(){return w.activeModal.close("goToBatches")}),i._uU(14,"Go To Batches"),i.qZA()()()),2&I&&(i.xp6(13),i.Q6J("routerLink","/batch-management/batches")("queryParams",w.queryParam))},dependencies:[_.rH]}),T})()},46419:(Te,G,r)=>{"use strict";r.d(G,{w:()=>n});var i=r(22560),t=r(94666),_=r(46261),g=r(6458);function T(f,S){1&f&&i.GkF(0)}function v(f,S){if(1&f&&(i.ynx(0),i.YNc(1,T,1,0,"ng-container",5),i.BQk()),2&f){i.oxw();const J=i.MAs(5);i.xp6(1),i.Q6J("ngTemplateOutlet",J)}}function I(f,S){if(1&f&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&f){const J=i.oxw(3);i.xp6(1),i.hij(" ",J.text," ")}}function w(f,S){if(1&f&&(i.TgZ(0,"p-messages",6),i.YNc(1,I,2,1,"ng-template",7),i.qZA()),2&f){const J=i.oxw(2);i.Q6J("severity",J.severity)}}function A(f,S){1&f&&i.GkF(0)}function b(f,S){if(1&f&&(i.ynx(0),i.YNc(1,A,1,0,"ng-container",5),i.BQk()),2&f){i.oxw();const J=i.MAs(5);i.xp6(1),i.Q6J("ngTemplateOutlet",J)}}function D(f,S){if(1&f&&i._UZ(0,"img",9),2&f){const J=i.oxw(2);i.Q6J("src","/assets/illustrations/"+J.illustrationName,i.LSH)("height",J.height)}}function e(f,S){if(1&f&&(i.TgZ(0,"div",1),i.YNc(1,v,2,1,"ng-container",2),i.YNc(2,w,2,1,"p-messages",3),i.YNc(3,b,2,1,"ng-container",2),i.YNc(4,D,1,2,"ng-template",null,4,i.W1O),i.qZA()),2&f){const J=i.oxw();i.xp6(1),i.Q6J("ngIf",!J.showMsgOnTop),i.xp6(1),i.Q6J("ngIf",J.text),i.xp6(1),i.Q6J("ngIf",J.
1showMsgOnTop)}}let n=(()=>{class f{constructor(){this.text="",this.severity="normal",this.showMsgOnTop=!1,this.height="230"}ngOnInit(){}}return f.\u0275fac=function(J){return new(J||f)},f.\u0275cmp=i.Xpm({type:f,selectors:[["app-ilustration-with-message"]],inputs:{illustrationName:"illustrationName",text:"text",severity:"severity",showMsgOnTop:"showMsgOnTop",height:"height"},decls:1,vars:1,consts:[["class","d-flex justify-content-center flex-column align-items-center mt-5 p-3 gap-flex",4,"ngIf"],[1,"d-flex","justify-content-center","flex-column","align-items-center","mt-5","p-3","gap-flex"],[4,"ngIf"],[3,"severity",4,"ngIf"],["illustration",""],[4,"ngTemplateOutlet"],[3,"severity"],["pTemplate",""],[2,"font-weight","300"],["width","100%",3,"src","height"]],template:function(J,de){1&J&&i.YNc(0,e,6,3,"div",0),2&J&&i.Q6J("ngIf",de.illustrationName)},dependencies:[t.O5,t.tP,_.jx,g.V]}),f})()},91874:(Te,G,r)=>{"use strict";r.d(G,{s:()=>Ze});var i=r(22560),t=r(54724),_=r(46261),g=r(2508),T=r(71183),v=r(92938),w=r(20177),A=r(40929),b=r(33507),D=r(94666),e=r(59462),n=r(97212),f=r(12735),S=r(43041),J=r(28424),de=r(33935);function Ie(O,ce){1&O&&i._UZ(0,"p-toast",11)}const z=function(){return{width:"100%",right:"0",left:"0"}},Ee=function(O){return{"991px":O}};function Oe(O,ce){1&O&&i._UZ(0,"p-toast",12),2&O&&i.Q6J("breakpoints",i.VKq(2,Ee,i.DdM(1,z)))}function ee(O,ce){1&O&&(i.TgZ(0,"div"),i.O4$(),i.TgZ(1,"svg",20),i._UZ(2,"circle",21)(3,"polyline",22),i.qZA()())}function Me(O,ce){1&O&&(i.TgZ(0,"div"),i.O4$(),i.TgZ(1,"svg",20),i._UZ(2,"circle",23)(3,"line",24)(4,"line",25),i.qZA()())}function R(O,ce){if(1&O&&(i.ynx(0),i.TgZ(1,"li")(2,"h5",29)(3,"label"),i._uU(4),i.qZA()()(),i.BQk()),2&O){const C=ce.$implicit;i.xp6(4),i.Oqu(C)}}function W(O,ce){if(1&O&&(i.ynx(0),i.TgZ(1,"h5",26),i._uU(2,"Would you like to enable the following features?"),i.qZA(),i.TgZ(3,"ul",27),i.YNc(4,R,5,1,"ng-container",28),i.qZA(),i.BQk()),2&O){const C=i.oxw(2);i.xp6(4),i.Q6J("ngForOf",C.addOnFeatureList)}}function ie(O,ce){if(1&O&&(i.TgZ(0,"div",30),i._UZ(1,"p-message",31),i.TgZ(2,"div",32)(3,"textarea",33),i._uU(4," "),i.qZA()()()),2&O){const C=i.oxw(2);i.xp6(3),i.Q6J("value",C.tpnsListForDeletion.join(", "))}}function ye(O,ce){if(1&O&&(i.TgZ(0,"div")(1,"b"),i._uU(2,"Reason:"),i.qZA(),i.TgZ(3,"span")(4,"p",34),i._uU(5),i.qZA()()()),2&O){const C=i.oxw(2);i.xp6(5),i.Oqu(C.message)}}function Ue(O,ce){if(1&O&&i._UZ(0,"div",35),2&O){const C=i.oxw(2);i.Q6J("ngStyle",C.increaseBodyContentSize)("innerHTML",C.innerHtmlContent,i.oJD)}}function $e(O,ce){1&O&&(i.TgZ(0,"ngb-alert",42),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.hij(" ",i.lcZ(2,3,"errorMsg.serialNumberalphanumericRequired")," "))}function ke(O,ce){1&O&&(i.TgZ(0,"ngb-alert",42),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.hij(" ",i.lcZ(2,3,"errorMsg.priorityLength")," "))}const Re=function(){return["customerInfo","priorityId"]};function F(O,ce){if(1&O&&(i.TgZ(0,"div")(1,"form",36)(2,"div",37)(3,"div",38)(4,"label",39),i._uU(5),i.ALo(6,"translate"),i.qZA(),i._UZ(7,"input",40),i.qZA(),i.YNc(8,$e,3,5,"ngb-alert",41),i.YNc(9,ke,3,5,"ngb-alert",41),i.qZA()()()),2&O){const C=i.oxw(2);i.xp6(1),i.Q6J("formGroup",C.customerForm),i.xp6(4),i.hij(" ",i.lcZ(6,4,"htmlText.priorityId")," "),i.xp6(3),i.Q6J("ngIf",null==C.customerForm.get(i.DdM(6,Re)).errors?null:C.customerForm.get(i.DdM(7,Re)).errors.hasAlphaNumeric),i.xp6(1),i.Q6J("ngIf",(null==C.customerForm.get(i.DdM(8,Re)).errors?null:C.customerForm.get(i.DdM(9,Re)).errors.hasMaxpriorityLength)&&!(null!=C.customerForm.get(i.DdM(10,Re)).errors&&C.customerForm.get(i.DdM(11,Re)).errors.hasAlphaNumeric))}}function Q(O,ce){1&O&&(i.TgZ(0,"div",46),i._uU(1," Please enter a valid email "),i.qZA())}function ae(O,ce){if(1&O&&(i.TgZ(0,"div",43),i._UZ(1,"input",44),i.YNc(2,Q,2,0,"div",45),i.qZA()),2&O){const C=i.oxw(2);i.xp6(1),i.Q6J("formControl",C.emailControl),i.xp6(1),i.Q6J("ngIf",C.emailControl.invalid&&C.emailControl.touched)}}function H(O,ce){if(1&O&&(i.TgZ(0,"div",13),i.YNc(1,ee,4,0,"div",14),i.YNc(2,Me,5,0,"div",14),i.TgZ(3,"h5",15),i._uU(4),i._UZ(5,"div",16),i.qZA(),i.YNc(6,W,5,1,"ng-container",14),i.YNc(7,ie,5,1,"div",17),i.YNc(8,ye,6,1,"div",14),i.YNc(9,Ue,1,2,"div",18),i.YNc(10,F,10,12,"div",14),i.YNc(11,ae,3,2,"div",19),i.qZA()),2&O){const C=i.oxw();i.xp6(1),i.Q6J("ngIf",C.successFlag),i.xp6(1),i.Q6J("ngIf",C.negativeFlag),i.xp6(2),i.hij("",C.body," "),i.xp6(1),i.Q6J("innerHTML",C.htmlContent,i.oJD),i.xp6(1),i.Q6J("ngIf",C.isMerchantBilling),i.xp6(1),i.Q6J("ngIf",C.showWarning),i.xp6(1),i.Q6J("ngIf",C.negativeFlag),i.xp6(1),i.Q6J("ngIf",""!=C.innerHtmlContent),i.xp6(1),i.Q6J("ngIf",C.editPriorityId),i.xp6(1),i.Q6J("ngIf",C.showEmail)}}function ge(O,ce){1&O&&i._UZ(0,"app-loading",47),2&O&&i.Q6J("loaderHeight","medium")}function Se(O,ce){if(1&O){const C=i.EpF();
1i.TgZ(0,"div",48)(1,"button",49),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close("close"))}),i._uU(2,"OK"),i.qZA()()}}function Je(O,ce){1&O&&i._UZ(0,"span",53)}function We(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"div",48)(1,"button",50),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close())}),i._uU(2,"Cancel"),i.qZA(),i.TgZ(3,"button",51),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.commitInvoice())}),i.YNc(4,Je,1,0,"span",52),i._uU(5),i.qZA()()}if(2&O){const C=i.oxw();i.xp6(3),i.Q6J("disabled",C.spinLoader),i.xp6(1),i.Q6J("ngIf",C.spinLoader),i.xp6(1),i.Oqu(C.commitButtonText)}}function He(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"div",48)(1,"button",49),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close())}),i._uU(2,"OK"),i.qZA(),i.TgZ(3,"button",54),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close())}),i._uU(4),i.qZA()()}if(2&O){const C=i.oxw();i.xp6(3),i.Q6J("disabled",C.disableButton)("queryParams",C.goToQueryParams)("routerLink",C.goToRoute),i.xp6(1),i.hij("",C.buttonName," ")}}function et(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"button",58),i.NdJ("click",function(){i.CHM(C);const j=i.oxw(2);return i.KtG(j.modal.close("goToBatches"))}),i._uU(1,"Go To Batches"),i.qZA()}if(2&O){const C=i.oxw(2);i.Q6J("disabled",C.spinLoader)("routerLink","/batch-management/batches")("queryParams",C.queryParam)}}function qe(O,ce){1&O&&i._UZ(0,"span",53)}function at(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"button",59),i.NdJ("click",function(){i.CHM(C);const j=i.oxw(2);return i.KtG(j.deleteISOLogo())}),i.YNc(1,qe,1,0,"span",52),i._uU(2),i.qZA()}if(2&O){const C=i.oxw(2);i.Q6J("disabled",C.showEmail?C.isDisabled():C.spinLoader),i.xp6(1),i.Q6J("ngIf",C.spinLoader),i.xp6(1),i.hij(" ",C.buttonNameIso,"")}}function tt(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"div",48)(1,"button",55),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close("close"))})("mousedown",function(j){return j.preventDefault()}),i._uU(2,"Cancel"),i.qZA(),i.YNc(3,et,2,3,"button",56),i.YNc(4,at,3,3,"button",57),i.qZA()}if(2&O){const C=i.oxw();i.xp6(1),i.Q6J("disabled",C.spinLoader),i.xp6(2),i.Q6J("ngIf",C.enableRoutingButton),i.xp6(1),i.Q6J("ngIf",!C.onlyCancelButton)}}function se(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"div",48)(1,"button",60),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close("close"))}),i._uU(2),i.qZA(),i.TgZ(3,"button",61),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close("success"))}),i._uU(4),i.qZA()()}if(2&O){const C=i.oxw();i.xp6(2),i.Oqu(C.isMerchantBilling?"Skip":C.closeBtnName),i.xp6(2),i.hij(" ",C.isMerchantBilling?"Proceed":C.buttonName,"")}}function xe(O,ce){1&O&&i._UZ(0,"span",53)}function B(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"div",48)(1,"button",50),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close("close"))}),i._uU(2,"Cancel"),i.qZA(),i.TgZ(3,"button",51),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.proceedTest())}),i.YNc(4,xe,1,0,"span",52),i._uU(5),i.qZA()()}if(2&O){const C=i.oxw();i.xp6(3),i.Q6J("disabled",C.spinLoader),i.xp6(1),i.Q6J("ngIf",C.spinLoader),i.xp6(1),i.Oqu(C.btnNamePreceed)}}function $(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"div",48)(1,"button",60),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.modal.close("close"))}),i._uU(2),i.qZA(),i.TgZ(3,"button",59),i.NdJ("click",function(){i.CHM(C);const j=i.oxw();return i.KtG(j.closePriorityModal())}),i._uU(4),i.qZA()()}if(2&O){const C=i.oxw();i.xp6(2),i.Oqu(C.closeBtnName),i.xp6(1),i.Q6J("disabled",!C.customerForm.get(i.DdM(3,Re)).value||(null==C.customerForm.get(i.DdM(4,Re)).errors?null:C.customerForm.get(i.DdM(5,Re)).errors.hasMaxpriorityLength)||(null==C.customerForm.get(i.DdM(6,Re)).errors?null:C.customerForm.get(i.DdM(7,Re)).errors.hasAlphaNumeric)),i.xp6(1),i.hij(" ",C.buttonName," ")}}const be=function(O){return{"justify-content-center":O}};let Ze=(()=>{class O{constructor(C,M,j,X){this.modal=C,this.commonService=M,this.messageService=j,this.formBuilder=X,this.buttonName="Ok",this.buttonNameIso="Delete",this.btnNamePreceed="Proceed",this.innerHtmlContent="",this.showWarning=!1,this.tpnsListForDeletion=[],this.isLoading=!1,this.rentalInvoice=!1,this.enable2buttons=!1,this.closeBtnName="Change",this.deleteIsoLogo=new i.vpe,this.confirmTest=new i.vpe,this.enableRoutingButton=!1,this.queryParam={},this.increaseBodyContentSize="",this.htmlContent="",this.isMerchantBilling=!1,this.addOnFeatureList=["3D secure","Woocommerce","ACH Processor","Loyalty","Register Lite"],this.emailControl=new g.NI("",[g.kI.required,g.kI.pattern(w.HN)]),this.showEmail=!1}ngOnInit(){this.isMerchantBilling=this.queryParam.isMerchantBilling||!1,this.editPriorityId&&(this.customerForm=this.createCustomerForm())}createCustomerForm(){return this.formBuilder.group({customerInfo:this.customerInfoForm()})}customerInfoForm(){return this.formBuilder.group({priorityId:[this.priorityId||"",[T.d.PatternValidator(/^[a-zA-Z0-9]+$/,{hasAlphaNumeric:!0}),T.d.PatternValidator(/^.{4,15}$/,{hasMaxpriorityLength:!0})]]})}closePriorityModal(){const C=this.customerForm.get("customerInfo.priorityId")?.value;(0,v.isEmpty)(C)||this.modal.close(C)}commitInvoice(){this.spinLoader=!0;const{id:C}=this.invoiceData;this.commonService.getCommonHttpClientQueryParams(this.rentalInvoice?t.D.commitRentalInvoice:t.D.commitInvoice,{invoiceId:C,status:"APPROVE"==this.commitButtonText.toUpperCase()?"APPROVED":"COMMITTED"}).subscribe(j=>{this.modal.close("success"),this.spinLoader=!1},j=>(console.log("in err",j),this.showAlert(j,"error")))}showAlert(C,M){this.messageService.add({severity:M,summary:C.status,detail:C.message}),this.spinLoader=!1}deleteISOLogo(){this.showEmail&&this.emailControl.invalid?this.emailControl.markAsTouched():(this.spinLoader=!0,this.deleteIsoLogo.emit("success"))}proceedTest(){this.spinLoader=!0,this.confirmTest.emit("Success")}isDisabled(){return this.emailControl.invalid||this.spinLoader}}return O.\u0275fac=function(C){return new(C||O)(i.Y36(A.Kz),i.Y36(b.v),i.Y36(_.ez),i.Y36(g.QS))},O.\u0275cmp=i.Xpm({type:O,selectors:[["app-information-modal"]],inputs:{header:"header",body:"body",successFlag:"successFlag",negativeFlag:"negativeFlag",editPriorityId:"editPriorityId",priorityId:"priorityId",message:"message",okButton:"okButton",commitButton:"commitButton",commitButtonText:"commitButtonText",cancelButton:"cancelButton",proceedBtn:"proceedBtn",invoiceData:"invoiceData",invoiceId:"invoiceId",disableButton:"disableButton",goToQueryParams:"goToQueryParams",goToRoute:"goToRoute",buttonName:"buttonName",buttonNameIso:"buttonNameIso",btnNamePreceed:"btnNamePreceed",gotoButton:"gotoButton",enableISOLogo:"enableISOLogo",innerHtmlContent:"innerHtmlContent",onlyCancelButton:"onlyCancelButton",showWarning:"showWarning",tpnsListForDeletion:"tpnsListForDeletion",isLoading:"isLoading",rentalInvoice:"rentalInvoice",enable2buttons:"enable2buttons",closeBtnName:"closeBtnName",enableRoutingButton:"enableRoutingButton",queryParam:"queryParam",increaseBodyContentSize:"increaseBodyContentSize",htmlContent:"htmlContent",showEmail
1:"showEmail"},outputs:{deleteIsoLogo:"deleteIsoLogo",confirmTest:"confirmTest"},features:[i._Bn([_.ez])],decls:18,vars:15,consts:[["position","top-right",4,"ngIf"],["position","top-right",3,"breakpoints",4,"ngIf"],[1,"modal-header","d-flex",3,"ngClass"],[1,"row","thumbs_icon"],[1,"ml-2"],["id","exampleModalLongTitle",1,"modal-title"],[1,"font-weight-bold","text_baseline"],["class","modal-body text-center px-3 py-3",4,"ngIf"],[3,"loaderHeight",4,"ngIf"],[1,"modal-footer","pb-2"],["class","text-right m-1",4,"ngIf"],["position","top-right"],["position","top-right",3,"breakpoints"],[1,"modal-body","text-center","px-3","py-3"],[4,"ngIf"],[1,"mt-2","mb-1","text-center"],[1,"mt-2","mb-1","text-center",3,"innerHTML"],["class","mt-3 w-100",4,"ngIf"],[3,"ngStyle","innerHTML",4,"ngIf"],["class","form-group",4,"ngIf"],["version","1.1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 130.2 130.2",2,"width","100px","height","100px"],["fill","none","stroke","#10b759","stroke-width","6","stroke-miterlimit","10","cx","65.1","cy","65.1","r","62.1",1,"path","circle"],["fill","none","stroke","#10b759","stroke-width","6","stroke-linecap","round","stroke-miterlimit","10","points","100.2,40.2 51.5,88.8 29.8,67.5 ",1,"path","check"],["fill","none","stroke","#ff3366","stroke-width","6","stroke-miterlimit","10","cx","65.1","cy","65.1","r","62.1",1,"path","circle"],["fill","none","stroke","#ff3366","stroke-width","6","stroke-linecap","round","stroke-miterlimit","10","x1","34.4","y1","37.9","x2","95.8","y2","92.3",1,"path","line"],["fill","none","stroke","#ff3366","stroke-width","6","stroke-linecap","round","stroke-miterlimit","10","x1","95.8","y1","38","x2","34.4","y2","92.2",1,"path","line"],[1,"mt-2","mb-1","text-left","ml-4"],[1,"text-left"],[4,"ngFor","ngForOf"],[1,"mt-2","mb-1"],[1,"mt-3","w-100"],["severity","warn","text","Deleting will remove logos from all the assigned TPN(s)"],[1,"mt-3"],["rows","3","readonly","",1,"w-100","rounded","p-1","bg-light",3,"value"],[1,"text-center","mt-2","mb-1"],[3,"ngStyle","innerHTML"],["autocomplete","off",3,"formGroup"],["formGroupName","customerInfo",1,"container"],[1,"row"],["for","priorityId",1,"label_align"],["type","text","placeholder"," Enter Priority Id","formControlName","priorityId","trim","blur","maxlength","12",1,"form-control","floating-input"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],[1,"form-group"],["type","email","placeholder","Enter email","required","",1,"form-control",3,"formControl"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[3,"loaderHeight"],[1,"text-right","m-1"],[1,"mt-2","text-right","btn","btn-primary","mr-2",3,"click"],[1,"mt-2","text-right","btn","btn-danger","mr-2",3,"click"],[1,"mt-2","text-right","btn","btn-primary","mr-2",3,"disabled","click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"mt-2","text-right","btn","btn-primary","mr-2",3,"disabled","queryParams","routerLink","click"],[1,"text-right","btn","btn-danger","mr-2",3,"disabled","click","mousedown"],["class","text-right btn btn-secondary mr-2",3,"disabled","routerLink","queryParams","click",4,"ngIf"],["class","text-right btn btn-primary mr-2",3,"disabled","click",4,"ngIf"],[1,"text-right","btn","btn-secondary","mr-2",3,"disabled","routerLink","queryParams","click"],[1,"text-right","btn","btn-primary","mr-2",3,"disabled","click"],[1,"text-right","btn","btn-danger","mr-2",3,"click"],[1,"text-right","btn","btn-primary","mr-2",3,"click"]],template:function(C,M){1&C&&(i.YNc(0,Ie,1,0,"p-toast",0),i.YNc(1,Oe,1,4,"p-toast",1),i.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5",5)(6,"span",6),i._uU(7),i.qZA()()()()(),i.YNc(8,H,12,10,"div",7),i.YNc(9,ge,1,1,"app-loading",8),i.TgZ(10,"div",9),i.YNc(11,Se,3,0,"div",10),i.YNc(12,We,6,3,"div",10),i.YNc(13,He,5,4,"div",10),i.YNc(14,tt,5,3,"div",10),i.YNc(15,se,5,2,"div",10),i.YNc(16,B,6,3,"div",10),i.YNc(17,$,5,8,"div",10),i.qZA()),2&C&&(i.Q6J("ngIf",!M.commonService.isMobileView),i.xp6(1),i.Q6J("ngIf",M.commonService.isMobileView),i.xp6(1),i.Q6J("ngClass",i.VKq(13,be,M.isMerchantBilling)),i.xp6(5),i.Oqu(M.isMerchantBilling?"Add-on Features":M.header),i.xp6(1),i.Q6J("ngIf",!M.isLoading),i.xp6(1),i.Q6J("ngIf",M.isLoading),i.xp6(2),i.Q6J("ngIf",M.okButton),i.xp6(1),i.Q6J("ngIf",M.commitButton),i.xp6(1),i.Q6J("ngIf",M.gotoButton),i.xp6(1),i.Q6J("ngIf",M.enableISOLogo),i.xp6(1),i.Q6J("ngIf",M.enable2buttons),i.xp6(1),i.Q6J("ngIf",M.proceedBtn),i.xp6(1),i.Q6J("ngIf",M.editPriorityId))},dependencies:[D.mk,D.sg,D.O5,D.PC,e.rH,g._Y,g.Fj,g.JJ,g.JL,g.Q7,g.nD,g.oH,g.sg,g.u,g.x0,A.xm,n.FN,f.q,S.P,J.N,de.X$]}),O})()},28424:(Te,G,r)=>{"use strict";r.d(G,{N:()=>g});var i=r(92340),t=r(22560),_=r(94666);let g=(()=>{class T{constructor(){this.loaderHeight="default",this.imageUrl=i.N.whitelabelLogoPath}ngOnInit(){let I=JSON.parse(localStorage.getItem("whitelabelResData"));this.loader=I?`${this.imageUrl}/${I?.gifLoader}`:"/assets/gif/loader.gif"}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275cmp=t.Xpm({type:T,selectors:[["app-loading"]],inputs:{loaderHeight:"loaderHeight"},decls:2,vars:2,consts:[[1,"spinner-wrapper",3,"ngClass"],["alt","IPOSPAYS LOADER","width","120","height","120",3,"src"]],template:function(I,w){1&I&&(t.TgZ(0,"div",0),t._UZ(1,"img",1),t.qZA()),2&I&&(t.Q6J("ngClass",w.loaderHeight),t.xp6(1),t.s9C("src",w.loader,t.LSH))},dependencies:[_.mk],styles:[".small[_ngcontent-%COMP%]{height:120px}
1.medium[_ngcontent-%COMP%]{height:200px}img[_ngcontent-%COMP%]{color:transparent}"]}),T})()},30020:(Te,G,r)=>{"use strict";r.d(G,{P:()=>z});var i=r(83918),t=r(94666),_=r(54724),g=r(22560),T=r(19787),v=r(68375),I=r(25421),w=r(59462),A=r(40929),b=r(33507),D=r(28424),e=r(42201);function n(Ee,Oe){if(1&Ee&&(g.TgZ(0,"div",10)(1,"h5",11),g._uU(2),g.qZA()()),2&Ee){const ee=g.oxw(2);g.xp6(2),g.Oqu(ee.body)}}function f(Ee,Oe){1&Ee&&(g.TgZ(0,"div",12),g._UZ(1,"app-loading",13),g.qZA())}function S(Ee,Oe){1&Ee&&g._UZ(0,"span",18)}function J(Ee,Oe){if(1&Ee){const ee=g.EpF();g.TgZ(0,"div",14)(1,"button",15),g.NdJ("click",function(){g.CHM(ee);const R=g.oxw(2);return g.KtG(R.loginAs())}),g.YNc(2,S,1,0,"span",16),g._uU(3),g.qZA(),g.TgZ(4,"button",17),g.NdJ("click",function(){g.CHM(ee);const R=g.oxw(2);return g.KtG(R.activeModal.close())}),g._uU(5,"Cancel"),g.qZA()()}if(2&Ee){const ee=g.oxw(2);g.xp6(1),g.Q6J("disabled",ee.isLoggin),g.xp6(1),g.Q6J("ngIf",ee.isLoggin),g.xp6(1),g.Oqu(ee.confirmButton),g.xp6(1),g.Q6J("disabled",ee.isLoggin)}}function de(Ee,Oe){if(1&Ee&&(g.TgZ(0,"div"),g.YNc(1,n,3,1,"div",7),g.YNc(2,f,2,0,"ng-template",null,8,g.W1O),g.YNc(4,J,6,4,"div",9),g.qZA()),2&Ee){const ee=g.MAs(3),Me=g.oxw();g.xp6(1),g.Q6J("ngIf",!Me.isLoading)("ngIfElse",ee),g.xp6(3),g.Q6J("ngIf",!Me.isError&&!Me.isLoading)}}function Ie(Ee,Oe){if(1&Ee){const ee=g.EpF();g.TgZ(0,"app-multi-factor-auth",19),g.NdJ("afterSuccessVerifyOtp",function(R){g.CHM(ee);const W=g.oxw();return g.KtG(W.afterSuccessVerifyOtp(R))})("onError",function(R){g.CHM(ee);const W=g.oxw();return g.KtG(W.onError(R))})("onBack",function(R){g.CHM(ee);const W=g.oxw();return g.KtG(W.onBack(R))}),g.qZA()}if(2&Ee){const ee=g.oxw();g.Q6J("mfaData",ee.mfaData)("apiName",ee.apiName)("formData",ee.formData)("title",ee.mfaTitle)("content",ee.mfaContent)("showBackButton",!0)("isFullWidth",ee.isFullWidth)}}let z=(()=>{class Ee{constructor(ee,Me,R,W,ie,ye,Ue,$e){this.authService=ee,this.userService=Me,this.alertsService=R,this.router=W,this.route=ie,this.activeModal=ye,this.CommonService=Ue,this.document=$e,this.isLoading=!1,this.isError=!1,this.loginUser="",this.isEnableProxyEmail=!0,this.isLoggin=!1,this.mfaTitle="Multi-Factor Authentication (MFA)",this.mfaContent="To keep your account safe from unauthorized account creation, we have sent a Security Code to your email and phone.",this.mfaData={},this.isMfaEnabled=!1,this.apiName="",this.formData={},this.isFullWidth=!0}ngOnInit(){this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/"}loginAs(){var ee=this;return(0,i.Z)(function*(){ee.isLoggin=!0,localStorage.removeItem("logger_token");let Me={email:ee.email,isLoginAs:"true",sysUser:ee.systemUser,sysEmail:ee.systemEmail,subDomain:window.location.origin,..."Merchant"==ee.loginUser&&{isEnableProxyEmail:ee.isEnableProxyEmail?"true":"false"}};ee.validateUser(Me,_.D.mfa.pxyLoginOTPVerify,_.D.validatePxyLogin)})()}validateUser(ee,Me,R){var W=this;return(0,i.Z)(function*(){const ie={...ee,fingerPrintData:W.CommonService.getMfaFingerPrint()};try{const ye=yield W.CommonService.postCommonHttpClient(R,ie).toPromise();ye?.mfa?(W.isMfaEnabled=!0,W.mfaData={...ye},W.apiName=Me,W.formData={...ee,uiRefId:ye?.uiRefId}):W.loadLoggeinUserDashBoard(ye)}catch(ye){W.isLoggin=!1,console.log(ye),W.alertsService.showAlert({alertType:"error",status:ye.status,message:ye.message})}})()}afterSuccessVerifyOtp(ee){console.log(ee),this.loadLoggeinUserDashBoard(ee)}onError(ee){console.log(ee)}loadLoggeinUserDashBoard(ee){this.authService.setUser(ee),localStorage.setItem("logger_token","multiLogin");let R=ee.themeColor??"theme-purple-light";if(this.userService.userFavTheme.next(R),R&&(this.document.body.classList.remove("theme-cyan-light","theme-bluegrey-light","theme-purple-light"),this.document.body.classList.add(R)),(ee&&ee.excludeFeatures||[]).indexOf("VIEW_DASHBOARD")>-1){const{roleFeatures:ie}=ee,ye=(Ue,$e)=>ie.some(ke=>ke.module===Ue&&ke.features.includes($e));ye("CLOUD_POS","PAYMENTS")?window.open("/virtual-terminal/list","_self"):ye("TRANSACTION","VIEW_TRANSACTION")?window.open("/transaction-management/transactions","_self"):window.open("/user-management/users","_self")}else window.open("/dashboardv2","_self")}onBack(ee){this.activeModal.close()}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(g.Y36(T.e),g.Y36(v.K),g.Y36(I.m),g.Y36(w.F0),g.Y36(w.gz),g.Y36(A.Kz),g.Y36(b.v),g.Y36(t.K0))},Ee.\u0275cmp=g.Xpm({type:Ee,selectors:[["app-login-as-modal"]],inputs:{header:"header",body:"body",confirmButton:"confirmButton",email:"email",password:"password",systemUser:"systemUser",systemEmail:"systemEmail",isLoading:"isLoading",isError:"isError",loginUser:"loginUser",isEnableProxyEmail
1:"isEnableProxyEmail"},decls:8,vars:3,consts:[[1,"modal-header","d-flex","justify-content-between"],[1,"row","thumbs_icon"],[1,"ml-2"],["id","exampleModalLongTitle",1,"modal-title"],[1,"font-weight-bold","text_baseline"],[4,"ngIf"],["widthClass","col-md-12 col-xl-12","native","component",3,"mfaData","apiName","formData","title","content","showBackButton","isFullWidth","afterSuccessVerifyOtp","onError","onBack",4,"ngIf"],["class","modal-body text-center p-3",4,"ngIf","ngIfElse"],["loader",""],["class","card-footer pb-2 d-flex flex-row-reverse gap-flex",4,"ngIf"],[1,"modal-body","text-center","p-3"],[1,"text-center","mt-2","mb-2"],[1,"p-2"],["loaderHeight","small"],[1,"card-footer","pb-2","d-flex","flex-row-reverse","gap-flex"],[1,"btn","btn-primary","d-flex","align-items-center",3,"disabled","click"],["class","spinner-border spinner-border-sm mr-2","role","status","aria-hidden","true",4,"ngIf"],[1,"btn","btn-danger","float-right",3,"disabled","click"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-2"],["widthClass","col-md-12 col-xl-12","native","component",3,"mfaData","apiName","formData","title","content","showBackButton","isFullWidth","afterSuccessVerifyOtp","onError","onBack"]],template:function(ee,Me){1&ee&&(g.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3)(4,"span",4),g._uU(5),g.qZA()()()()(),g.YNc(6,de,5,3,"div",5),g.YNc(7,Ie,1,7,"app-multi-factor-auth",6)),2&ee&&(g.xp6(5),g.Oqu(Me.header),g.xp6(1),g.Q6J("ngIf",!Me.isMfaEnabled),g.xp6(1),g.Q6J("ngIf",Me.isMfaEnabled))},dependencies:[t.O5,D.N,e.X]}),Ee})()},39308:(Te,G,r)=>{"use strict";r.d(G,{X:()=>Me});var i=r(83918),t=r(22560),_=r(2508),g=r(54724),T=r(20177),v=r(40929),I=r(33507),w=r(94666),A=r(46261),b=r(99347),D=r(17615),e=r(6458);function n(R,W){if(1&R&&(t.TgZ(0,"h5",14),t._uU(1),t.qZA()),2&R){const ie=t.oxw(2);t.xp6(1),t.Oqu(ie.config.description)}}function f(R,W){if(1&R&&(t.TgZ(0,"span",17)(1,"p",18),t._uU(2,"NOTE:"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA()()),2&R){const ie=t.oxw(3);t.xp6(4),t.Oqu(ie.config.note)}}function S(R,W){1&R&&(t.ynx(0),t.TgZ(1,"p-messages",15),t.YNc(2,f,5,1,"ng-template",16),t.qZA(),t.BQk())}function J(R,W){1&R&&(t.TgZ(0,"div",22),t._uU(1," Please enter a valid email "),t.qZA())}function de(R,W){1&R&&(t.TgZ(0,"div",22),t._uU(1,"Email does not match with your current logged-in email."),t.qZA())}function Ie(R,W){if(1&R&&(t.TgZ(0,"div",19),t._UZ(1,"input",20),t.YNc(2,J,2,0,"div",21),t.YNc(3,de,2,0,"div",21),t.qZA()),2&R){const ie=t.oxw(2);t.xp6(1),t.Q6J("formControl",ie.emailControl),t.xp6(1),t.Q6J("ngIf",ie.emailControl.dirty&&(null==ie.emailControl.errors?null:ie.emailControl.errors.pattern)||ie.submissionError),t.xp6(1),t.Q6J("ngIf",ie.emailControl.dirty&&!(null!=ie.emailControl.errors&&ie.emailControl.errors.pattern)&&(null==ie.emailControl.errors?null:ie.emailControl.errors.emailMismatch))}}function z(R,W){if(1&R&&(t.TgZ(0,"div")(1,"h5",23),t._uU(2),t.qZA(),t._UZ(3,"p-progressBar",24),t.TgZ(4,"p",25),t._uU(5," Please do not close or refresh the page until the process is complete. "),t.qZA()()),2&R){const ie=t.oxw(2);t.xp6(2),t.Oqu(ie.getUploadMessage()),t.xp6(1),t.Q6J("value",ie.progress)("showValue",!0)}}function Ee(R,W){if(1&R&&(t.TgZ(0,"div",26),t._UZ(1,"p-checkbox",27),t.TgZ(2,"label",28),t._uU(3),t.qZA()()),2&R){const ie=t.oxw(2);t.xp6(1),t.Q6J("binary",!0)("formControl",ie.checkBoxControl),t.xp6(2),t.Oqu(ie.config.checkboxLabel)}}function Oe(R,W){1&R&&t._UZ(0,"span",29)}function ee(R,W){if(1&R){const ie=t.EpF();t.ynx(0),t.TgZ(1,"div",1)(2,"h5",2)(3,"span",3),t._uU(4),t.qZA()()(),t.TgZ(5,"div",4),t.YNc(6,n,2,1,"h5",5),t.YNc(7,S,3,0,"ng-container",0),t.YNc(8,Ie,4,3,"div",6),t.YNc(9,z,6,3,"div",0),t.qZA(),t.TgZ(10,"div",7)(11,"div",8)(12,"div"),t.YNc(13,Ee,4,3,"div",9),t.qZA(),t.TgZ(14,"div",10)(15,"button",11),t.NdJ("click",function(){t.CHM(ie);const Ue=t.oxw();return t.KtG(Ue.close())}),t._uU(16),t.qZA(),t.TgZ(17,"button",12),t.NdJ("click",function(){t.CHM(ie);const Ue=t.oxw();return t.KtG(Ue.submit())}),t._uU(18),t.YNc(19,Oe,1,0,"span",13),t.qZA()()()(),t.BQk()}if(2&R){const ie=t.oxw();
1t.xp6(4),t.Oqu(ie.config.title),t.xp6(2),t.Q6J("ngIf",!ie.showProgress),t.xp6(1),t.Q6J("ngIf",ie.config.note&&!ie.showProgress),t.xp6(1),t.Q6J("ngIf",ie.config.requireEmail&&!ie.showProgress||ie.submissionError),t.xp6(1),t.Q6J("ngIf",ie.config.showProgressBar&&ie.showProgress),t.xp6(4),t.Q6J("ngIf",ie.config.showCheckbox),t.xp6(2),t.Q6J("disabled",ie.isLoading),t.xp6(1),t.Oqu(ie.config.cancelLabel),t.xp6(1),t.Q6J("disabled",ie.isDisabled()),t.xp6(1),t.hij(" ",ie.config.confirmLabel," "),t.xp6(1),t.Q6J("ngIf",ie.isLoading)}}let Me=(()=>{class R{constructor(ie,ye){var Ue=this;this.activeModal=ie,this.common=ye,this.showProgress=!1,this.progress=0,this.checkBoxControl=new _.NI(!1),this.event=new t.vpe,this.isLoading=!1,this.customerInfo=localStorage.getItem("current_user")?JSON.parse(localStorage.getItem("current_user")):{},this.emailControl=new _.NI("",[_.kI.required,_.kI.pattern(T.HN),this.loggedInEmailValidator()]),this.diffEmail=!1,this.submissionError=!1,this.MODAL_CONFIGS=[],this.getBillingStatus=()=>{this.clearStatusInterval=setInterval((0,i.Z)(function*(){try{const $e=yield Ue.common.postCommonHttpClient(g.D.merchantBilling.billingStatus,{jobId:Ue.metaData.jobId}).toPromise();if($e.data.bulkUploadStatus){const ke=$e.data.bulkUploadStatus;Ue.progress=Math.floor(Number(ke.completed_count)/Number(ke.total_merchants)*100),100==Ue.progress&&clearInterval(Ue.clearStatusInterval)}}catch{clearInterval(Ue.clearStatusInterval)}}),3e3)}}ngOnInit(){this.MODAL_CONFIGS=[{key:"save_price_confirm",title:"Save Sell Rate",description:"This sell rate will be used as the default for Merchant Invoicing. You can set merchant-specific sell rates from the Merchant Configuration screen.",confirmLabel:"Confirm",cancelLabel:"Cancel"},{key:"bulk_enable",title:"Enable Merchant Invoicing",description:"Your merchants won't be invoiced unless Merchant Invoicing is enabled. Do you want to enable it for all your merchants at this selling price?",note:"The selling price can be edited for individual merchants later as well.",confirmLabel:"Bulk Enable",cancelLabel:"Do Later"},{key:"bulk_enable_confirm",title:"Enable Merchant Invoicing",description:`This action affects ${this.metaData?.pendingMerchants||"several"} merchant record${this.metaData?.pendingMerchants?this.metaData?.pendingMerchants>1?"s":"":"s"}. In order to prevent accidental clicks we ask you to confirm this operation by entering your email address.`,requireEmail:!0,confirmLabel:"Confirm",cancelLabel:"Cancel",showProgressBar:!0},{key:"bulk_update",title:"Bulk Update Selling Price",description:`Are you sure you want to bulk update? The highlighted value will be applied to ${this.metaData?.totalMerchants>1?`all ${this.metaData?.totalMerchants} merchants`:`${this.metaData?.totalMerchants} merchant`}.`,confirmLabel:"Update",cancelLabel:"Cancel",showCheckbox:!0,checkboxLabel:"Set this as the default price",showProgressBar:!0},{key:"update_sell_price_confirm",title:"Default Pricing",description:"This value will be set as the default for Merchant Invoicing and applied to all newly created merchants.",confirmLabel:"Save",cancelLabel:"Cancel"},{key:"bulk_update_failed_ask_bulk_enable",title:"Bulk Enable Merchant Invoicing",description:"Billing is currently not enabled for the merchants. To proceed with the bulk update, billing must be activated for each merchant. Would you like to enable billing for all merchants now?",confirmLabel:"Bulk Enable",cancelLabel:"Cancel"},{key:"remove_ach_processor",title:"Remove ACH",description:"All recurring ACH transactions will be canceled, and you will no longer be able to process ACH payments. If you wish to proceed, please enter your email below.",confirmLabel:"Confirm",cancelLabel:"Cancel",requireEmail:!0},{key:"disable_register_lite",title:"Disable Register Lite",description:"Register Lite will be disabled for this store. If you wish to proceed, please enter your email below.",confirmLabel:"Confirm",cancelLabel:"Cancel",requireEmail:!0},{key:"iso_contract_update",title:"Warning",description:"Changing an ISO\u2019s pricing will affect all of their merchant\u2019s pricing if they are using the merchant invoicing feature. The rates you set here for the ISO will override the rates for its merchants. Please consult with the ISO before making any changes.",requireEmail:!0,confirmLabel:"Proceed",cancelLabel:"Cancel",showProgressBar:!0}],this.config=this.MODAL_CONFIGS.find(ye=>ye.key===this.action)}isDisabled(){return this.config.requireEmail&&this.emailControl.invalid||this.isLoading}close(){this.activeModal.close(`${this.action}_close`)}submit(){if(this.config?.requireEmail){if(this.emailControl.invalid)return this.isLoading=!1,void(this.submissionError=!0);this.submissionError=!1}if(this.loader)return this.isLoading=!0,this.showProgress=this.config.showProgressBar,this.showProgress&&this.getBillingStatus(),void this.event.emit({action:"submit",checked:this.checkBoxControl.value,email:this.emailControl.valid});this.activeModal.close(`${this.action}_submit`)}getUploadMessage(){return this.progress<100?"Processing...":"Completed Successfully."}loggedInEmailValidator(){return ie=>{const ye=this.customerInfo?.email;return this.metaData?.validateCurrentEmail&&ye&&ie.value&&ie.value!==ye?{emailMismatch:!0}:null}}ngOnDestroy(){clearInterval(this.clearStatusInterval)}}return R.\u0275fac=function(ie){return new(ie||R)(t.Y36(v.Kz),t.Y36(I.v))},R.\u0275cmp=t.Xpm({type:R,selectors:[["app-merchant-billing-dialog"]],inputs:{metaData:"metaData",loader:"loader",showProgressBar:"showProgressBar",action:"action"},outputs:{event:"event"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"modal-header","d-flex","justify-content-center"],[1,"modal-title"],[1,"font-weight-bold","text_baseline"],[1,"modal-body","text-center","px-3","py-3"],["class","mt-2 mb-1",4,"ngIf"],["class","form-group",4,"ngIf"],[1,"modal-footer","pb-2"],[1,"d-flex","justify-content-between","w-100"],["class","d-flex align-items-center",4,"ngIf"],[1,"text-right","m-1"],[1,"btn","btn-danger","mr-2",3,"disabled","click"],[1,"btn","btn-primary","mr-2",3,"disabled","click"],["class","spinner-border spinner-border-sm ml-1","role","status","aria-hidden","true",4,"ngIf"],[1,"mt-2","mb-1"],["severity","warn"],["pTemplate",""],[1,"d-flex"],[1,"font-weight-bold","mx-2"],[1,"form-group"],["type","email","placeholder","Enter email","required","",1,"form-control",3,"formControl"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"mb-3","font-weight-semibold"],["styleClass","custom-progress-bar",3,"value","showValue"],[1,"mt-3","text-muted","small"],[1,"d-flex","align-items-center"],[3,"binary","formControl"],[1,"mb-0","ml-1"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","ml-1"]],template:function(ie,ye){1&ie&&t.YNc(0,ee,20,11,"ng-container",0),2&ie&&t.Q6J("ngIf",ye.config)},dependencies:[w.O5,_.Fj,_.JJ,_.Q7,_.oH,A.jx,b.XZ,D.k,e.V],styles:[".custom-progress-bar .ui-progressbar-value{background:linear-gradient(90deg,#007bff,#00c6ff);transition:width .3s ease-in-out}  .custom-progress-bar .ui-progressbar{border-radius:4px;
1height:22px}  .custom-progress-bar .ui-progressbar-label{font-size:.875rem;font-weight:500;color:#fff}"]}),R})()},23255:(Te,G,r)=>{"use strict";r.d(G,{z:()=>j});var i=r(22560),t=r(2508),_=r(80823),g=r(53298),T=r(88759),v=r(59095),I=r(47418),w=r(59151),A=r(86942),b=r(44661),D=r(84505),e=r(92218),n=r(64139),f=r(47283),S=r(54724),J=r(40929),de=r(92938),z=r(68375),Ee=r(27138),Oe=r(20311),ee=r(54697),Me=r(3554),R=r(23933),W=r(19432),ie=r(40297),ye=r(91768),Ue=r(25379),$e=r(33507),ke=r(18642),Re=r(94666),F=r(90413);const Q=["instance"];function ae(X,fe){if(1&X&&i._UZ(0,"input",8),2&X){const E=i.oxw(3);i.Q6J("formControl",E.searchFilter)("placeholder",E.placeholder)}}function H(X,fe){if(1&X&&i._UZ(0,"ngb-highlight",15),2&X){const K=fe.term;i.Q6J("result",fe.result.dba)("term",K)}}function ge(X,fe){if(1&X){const E=i.EpF();i.TgZ(0,"div",9)(1,"input",10),i.NdJ("selectItem",function(te){i.CHM(E);const Le=i.oxw(3);return i.KtG(Le.selectDba(te))})("ngModelChange",function(te){i.CHM(E);const Le=i.oxw(3);return i.KtG(Le.getSearchKey(te))})("focusout",function(){i.CHM(E);const te=i.oxw(3);return i.KtG(te.stopLoader())})("ngModelChange",function(te){i.CHM(E);const Le=i.oxw(3);return i.KtG(Le.searchByStoreModel=te)}),i.qZA(),i.YNc(2,H,1,2,"ng-template",null,11,i.W1O),i.TgZ(4,"div",12)(5,"div",13),i._UZ(6,"i",14),i.qZA()()()}if(2&X){const E=i.MAs(3),K=i.oxw(3);i.xp6(1),i.Q6J("ngModel",K.searchByStoreModel)("ngbTypeahead",K.searchStore)("resultFormatter",K.storeFormatter)("resultTemplate",E)}}function Se(X,fe){if(1&X&&(i.TgZ(0,"div",9),i._UZ(1,"input",16),i.TgZ(2,"div",12)(3,"div",13),i._UZ(4,"i",14),i.qZA()()()),2&X){const E=i.oxw(3);i.xp6(1),i.Q6J("formControl",E.searchBuildNumber)}}function Je(X,fe){if(1&X&&(i.TgZ(0,"div",5),i.YNc(1,ae,1,2,"input",6),i.YNc(2,ge,7,4,"div",7),i.YNc(3,Se,5,1,"div",7),i.qZA()),2&X){const E=i.oxw(2);i.xp6(1),i.Q6J("ngIf",null==E.customerView),i.xp6(1),i.Q6J("ngIf",1==E.customerView),i.xp6(1),i.Q6J("ngIf",0==E.customerView&&(null==E.queryParam?null:E.queryParam.enableBuildNumber))}}function We(X,fe){1&X&&(i.TgZ(0,"div",12)(1,"div",13),i._UZ(2,"i",14),i.qZA()())}function He(X,fe){if(1&X&&(i.TgZ(0,"div"),i.YNc(1,We,3,0,"div",17),i.qZA()),2&X){const E=i.oxw(2);i.xp6(1),i.Q6J("ngIf",null==E.customerView)}}function et(X,fe){if(1&X&&(i.TgZ(0,"div"),i._uU(1),i.qZA()),2&X){const E=fe.item;i.xp6(1),i.hij(" ",null!=E&&E.defaultLabel?(null==E?null:E.tpn)+" ("+(null==E?null:E.defaultLabel)+")":null==E?null:E.tpn," ")}}function qe(X,fe){if(1&X){const E=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(E);const te=i.oxw(4);return i.KtG(te.selectAll())}),i._uU(1,"Select all"),i.qZA(),i.TgZ(2,"button",23),i.NdJ("click",function(){i.CHM(E);const te=i.oxw(4);return i.KtG(te.unselectAll())}),i._uU(3,"Unselect all"),i.qZA()}if(2&X){const E=i.oxw(4);i.Q6J("disabled",E.isSelectAllTpn),i.xp6(2),i.Q6J("disabled",E.isSelectAllTpn)}}function at(X,fe){1&X&&i.YNc(0,qe,4,2,"ng-template",21)}function tt(X,fe){if(1&X&&(i.TgZ(0,"div",18)(1,"ng-select",19),i.ALo(2,"async"),i.YNc(3,et,2,1,"ng-template",20),i.YNc(4,at,1,0,null,0),i.qZA()()),2&X){const E=i.oxw(2);i.Q6J("ngClass",E.isStyleFlag&&!E.commonService.isMobileView?"tpn_default_label":""),i.xp6(1),i.Q6J("ngClass",E.isStyleFlag&&!E.commonService.isMobileView?"tpn_label":"")("items",i.lcZ(2,12,E.showDefaultLabel$))("multiple",!E.enableSingleSelect)("selectOnTab",!1)("hideSelected",E.hideSelected)("closeOnSelect",E.enableSingleSelect)("formControl",E.searchedTpn)("loading",E.tpnLoading)("placeholder",E.placeholder)("typeahead",E.inputTpn$),i.xp6(3),i.Q6J("ngIf",!E.enableSingleSelect)}}function se(X,fe){if(1&X&&(i.ynx(0),i.TgZ(1,"div",1)(2,"div",2),i.YNc(3,Je,4,3,"div",3),i.YNc(4,He,2,1,"div",0),i.qZA(),i.YNc(5,tt,5,14,"div",4),i.qZA(),i.BQk()),2&X){const E=i.oxw();i.xp6(2),i.Q6J("ngClass",E.isStyleFlag&&!E.commonService.isMobileView?"tpn_label":""),i.xp6(1),i.Q6J("ngIf",!E.isTpnLabel),i.xp6(1),i.Q6J("ngIf",!E.isTpnLabel),i.xp6(1),i.Q6J("ngIf",E.isTpnLabel)}}function xe(X,fe){if(1&X){const E=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(E);const te=i.oxw(3);return i.KtG(te.selectAllItems())}
1),i._uU(1," Select all "),i.qZA(),i.TgZ(2,"button",23),i.NdJ("click",function(){i.CHM(E);const te=i.oxw(3);return i.KtG(te.unselectAllitems())}),i._uU(3," Unselect all "),i.qZA()}if(2&X){const E=i.oxw(3);i.Q6J("disabled",E.state.selectLoading||E.state.isSelectAllItems),i.xp6(2),i.Q6J("disabled",E.state.selectLoading)}}function B(X,fe){1&X&&i.YNc(0,xe,4,2,"ng-template",21)}function $(X,fe){if(1&X){const E=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(E);const te=i.oxw(4);return i.KtG(te.loadAllSelectItems())}),i._uU(1," Load All "),i.qZA()}if(2&X){const E=i.oxw(4);i.Q6J("disabled",E.state.selectLoading)}}function be(X,fe){if(1&X&&(i.TgZ(0,"button",29),i._UZ(1,"i",30),i._uU(2," Loading... "),i.qZA()),2&X){const E=i.oxw(4);i.Q6J("disabled",E.state.selectLoading)}}function Ze(X,fe){if(1&X&&(i.TgZ(0,"div",26),i.YNc(1,$,2,1,"button",27),i.YNc(2,be,3,1,"button",28),i.qZA()),2&X){const E=i.oxw(3);i.xp6(1),i.Q6J("ngIf",E.state.currentSelectFilterType!==E.filterType.LOAD_ALL),i.xp6(1),i.Q6J("ngIf",E.state.selectLoading)}}function O(X,fe){1&X&&i.YNc(0,Ze,3,2,"ng-template",25)}function ce(X,fe){if(1&X){const E=i.EpF();i.ynx(0),i.TgZ(1,"ng-select",24),i.NdJ("clear",function(){i.CHM(E);const te=i.oxw();return i.KtG(te.onClearSelection())})("remove",function(){i.CHM(E);const te=i.oxw();return i.KtG(te.onAnyItemRemoved())})("scrollToEnd",function(){i.CHM(E);const te=i.oxw();return i.KtG(te.loadMoreItems())})("open",function(){i.CHM(E);const te=i.oxw();return i.KtG(te.onSelectBoxOpen())}),i.ALo(2,"async"),i.YNc(3,B,1,0,null,0),i.YNc(4,O,1,0,null,0),i.qZA(),i.BQk()}if(2&X){const E=i.oxw();i.xp6(1),i.Q6J("items",i.lcZ(2,17,E.selectList$))("multiple",!E.enableSingleSelect)("selectOnTab",!1)("hideSelected",E.hideSelected)("closeOnSelect",E.enableSingleSelect)("virtualScroll",E.enableVirtualScroll)("formControl",E.searchedselect)("notFoundText",E.notFoundText)("placeholder",E.placeholder)("typeToSearchText",E.typeToSearchText)("dropdownPosition",E.dropdownPosition)("typeahead",E.selectInput$)("loading",E.state.selectLoading)("bindLabel",E.bindLabel)("bindValue",E.bindValue),i.xp6(2),i.Q6J("ngIf",(null==E.state.selectListCache?null:E.state.selectListCache.length)>0),i.xp6(1),i.Q6J("ngIf",E.state.selectListCache.length<E.state.totalselectItemCount)}}var C=(()=>{return(X=C||(C={})).SEARCH="SEARCH",X.DEFAULT="DEFAULT",X.LOAD_ALL="LOAD_ALL",C;var X})(),M=(()=>{return(X=M||(M={})).LOAD_ALL="loadAllList",X.LOAD_PAGINATE="loadPaginateList",X.SEARCH="search",M;var X})();let j=(()=>{class X{constructor(E,K,te,Le,Z,pe,k,Fe,Qe,nt,gt,_t){this.userService=E,this.deviceService=K,this.customerService=te,this.assetService=Le,this.batchService=Z,this.applicationService=pe,this.devicealertService=k,this.downloadLogService=Fe,this.transactionService=Qe,this.consumerManagementService=nt,this.commonService=gt,this.merchantService=_t,this.value=null,this.isBackButton=!1,this.filteredData=new i.vpe,this.apiStatus=new i.vpe,this.stores=new i.vpe,this.tpnNumber=new i.vpe,this.checkSearchBarValue=new i.vpe,this.filteredTpn=new i.vpe,this.isTpnLabel=!1,this.isStyleFlag=!1,this.isDisableEmitTpn=!1,this.enableSingleSelect=!1,this.showDeletedTpns=!1,this.isShowSuspendedTpns=!1,this.filterByBuildNumber=!1,this.isNonGatewayTpn=!1,this.isLazySelectBox=!1,this.enableVirtualScroll=!0,this.dropdownPosition="bottom",this.filteredSelect=new i.vpe,this.pageSize=10,this.bindLabel="name",this.bindValue="id",this.selectList$=new D.X([]),this.selectInput$=new e.xQ,this.searchedselect=new t.p4,this.hasDefaultList=!1,this.localData=[],this.state={currentPage:1,totalselectItemCount:0,currentSelectFilterType:C.DEFAULT,selectListCache:[],selectLoading:!1,hasSelectBoxLoadedOnce:!1,previousPage:1,previousTotalCount:0,previousList:[],hasSearchSnapshot:!1,previousFilterType:C.DEFAULT,isLoadAllItems:!1,lastSearchTerm:"",isSelectAllItems:!1,showNotFound:!1,globalSelectedItems:[],visibleSelectList:[]},this.filterType=C,this.inputTpn$=new e.xQ,this.isSelectAllTpn=!1,this.enteredstoreDba="",this.model="",this.getSearchTerm=[],this.tpnResult=[],this.dbaResult=[],this.dbaList=[],this.tpnList=[],this.dbaWithStoreId=[],this.searchAboveFourInputs=["currentBuildNumber"],this.searchedStoreId=[],this.hideSelected=!0,this.isDisable=!1,this.useLocalDataOnly=!1,this.sendAPI={user:he=>this.userService.getAllUsersByUserId(he),device:he=>this.deviceService.getAllDevice(he),customer:he=>this.customerService.getAllCustomersByCustomerId(he),asset:he=>this.assetService.getAllAsset(he),application:he=>this.applicationService.getAllApplicationData(he),batches:he=>("close"==he.status&&(he.fromDate=this.initialDate,he.toDate=this.finalDate),this.batchService.getAllStores(he)),deviceAlert:he=>this.devicealertService.getAllDeviceAlert(he),downloadLog:he=>this.downloadLogService.getAllDownloadLog(he),transaction:he=>this.transactionService.getAllTransactions(he),consumer:he=>this.consumerManagementService.getAllConsumersList(he),invoice:he=>this.commonService.postCommonHttpClient(S.D.getInvoiceV2,he),merchant:he=>this.merchantService.getAllMerchant(he),tickets:he=>this.commonService.getCommonHttpClientQueryParams(S.D.getAlltickets,he),auditLogs:he=>this.commonService.getCommonHttpClientQueryParams(S.D.getAllAuditLogs,he),invoiceList:he=>this.commonService.getCommonHttpClientQueryParams(S.D.getAllBillingInvoice,he),recurringPayments:he=>this.commonService.postCommonHttpClient(S.D.getRecurringPaymentsList,he),proxyLoginLogs:he=>this.commonService.postCommonHttpClient(S.D.getAllProxyLoginLogs,he),promotions:he=>this.commonService.getCommonHttpClientQueryParams(S.D.getAllPromotions,he),inventory:he=>this.commonService.getCommonHttpClientQueryParams(S.D.inventoryItems(this.storeId),he),marketApp:he=>this.commonService.getCommonHttpClientQueryParams(S.D.marketApp.getAllApps,he),getAllValueAddedApps:he=>this.commonService.getCommonHttpClientQueryParams(S.D.getAllDvStoreThirdPartyApp,he),isvNames:he=>this.commonService.getCommonHttpClientQueryParams(S.D.isvNames,he)},this.searchFilter=new t.p4(this.value),this.searchBuildNumber=new t.p4,this.searchedTpn=new t.p4,this.formatter=he=>he.toUpperCase(),this.storeFormatter=he=>he.dba,this.tpnFormatter=he=>he.tpn,this.searchStore=he=>he.pipe((0,_.b)(300),(0,g.x)(),(0,T.b)(()=>this.searching=!0),(0,v.w)(je=>this.commonService.getResponseDataForFilter(S.D.storeDbas,{queryString:je,isFilter:!0,page:1,size:10,filterByBuildNumber:this.filterByBuildNumber}).pipe((0,T.b)(Dt=>{console.log(Dt),this.searchFailed=!1,this.searching=!1}),(0,I.K)(()=>(this.searching=!1,this.searchFailed=!0,(0,n.of)([]))))),(0,T.b)(()=>this.searching=!1)),this.searchTpn=he=>he.pipe((0,_.b)(300),(0,g.x)(),(0,T.b)(()=>this.searching=!0),(0,v.w)(je=>this.commonService.getResponseDataForFilter(S.D.tpnIds,{query:je,isFilter:!0,page:1,size:5,filterByBuildNumber:this.filterByBuildNumber}).pipe((0,T.b)(Dt=>{console.log(Dt),this.searching=!1,this.searchFailed=!1}),(0,I.K)(()=>(this.searching=!1,this.searchFailed=!0,(0,n.of)([]))))),(0,T.b)(()=>this.searching=!1))}isLocalOnly(){return"thirdPartyApps"===this.apiNameProperty}ngOnInit(E=!1){this.searchBuildNumber.valueChanges.pipe((0,w.h)(K=>(0,de.trim)(K).length>0||0==(0,de.trim)(K).length),(0,_.b)(500),(0,g.x)(),(0,v.w)(K=>{this.apiStatus.emit({isLoading:!0});let te=(0,de.trim)(K);console.log("queryParam buildnum string: ",this.queryParam),this.searchFilter.value&&(this.queryParam.queryString=this.searchFilter.value),this.queryParam.buildNum=te;let Z={isFilter:!0,page:1,size:"marketApp"==this.apiNameProperty?3:20,...this.queryParam,filterByBuildNumber:this.filterByBuildNumber};return this.sendAPI[this.apiNameProperty](Z)})).subscribe(K=>{if(console.log("searching finished"),this.apiStatus.emit({isLoading:!1}),console.log(K,this.searchFilter.value),!K)return console.log("empty"),!1;this.filteredData.emit({data:K,searchTerm:this.searchFilter.value,searchTermName:this.filterName?this.filterName:"queryString",...null!=this.searchBuildNumber.value&&{buildNum:this.searchBuildNumber.value}}),console.log("after emit")},K=>{this.apiStatus.emit({isLoading:!1})}),this.searchFilter.valueChanges.pipe((0,w.h)(K=>{let te=0;return-1!=this.searchAboveFourInputs.indexOf(this.filterName)&&(te=4),console.log((0,de.trim)(K).length),(0,de.trim)(K).length>te||0==(0,de.trim)(K).length}),(0,w.h)(K=>!this.isBackButton),(0,_.b)(500),(0,g.x)(),(0,v.w)(K=>{console.log("inside filter",K),this.apiStatus.emit({isLoading:!0});let te=(0,de.trim)(K);console.log("queryParam string: ",this.queryParam,this.searchFilter.value),this.filterName?this.queryParam[this.filterName]="amount"==this.filterName&&""!=te?Math.round(100*parseFloat(te)).toString():te:this.queryParam.queryString=te,this.queryParam?.enableBuildNumber&&1==this.queryParam?.enableBuildNumber&&this.searchBuildNumber.value&&(this.queryParam.buildNum=this.searchBuildNumber.value),this.queryParam.queryString=this.queryParam.queryString?encodeURIComponent(this.queryParam.queryString):this.queryParam.queryString;let Z={page:1,size:"marketApp"==this.apiNameProperty?3:20,...this.queryParam,filterByBuildNumber:this.filterByBuildNumber,isFilter:!0};return this.sendAPI[this.apiNameProperty](Z)})).subscribe(K=>{if(console.log("searching finished"),this.apiStatus.emit({isLoading:!1}),console.log(K,this.searchFilter.value),!K)return console.log("empty"),!1;this.filteredData.emit({data:K,searchTerm:this.searchFilter.value,searchTermName:this.filterName?this.filterName:"queryString",...null!=this.searchBuildNumber.value&&{buildNum:this.searchBuildNumber.value}})},K=>{this.apiStatus.emit({isLoading:!1})}),this.events&&(this.eventsSubscription=this.events.subscribe(()=>{this.state.lastSearchTerm="",this.state.currentSelectFilterType=C.DEFAULT,this.state.currentPage=1,this.state.totalselectItem
1Count=0,this.state.selectListCache=[],this.state.previousList=[],this.state.globalSelectedItems=[],this.state.previousPage=1,this.state.previousTotalCount=0,this.state.hasSearchSnapshot=!1,this.state.isLoadAllItems=!1,this.state.selectLoading=!1,this.state.isSelectAllItems=!1,this.state.hasSelectBoxLoadedOnce=!1,this.selectList$.next([]),this.searchFilter=new t.p4,this.searchBuildNumber=new t.p4,this.searchedTpn=new t.p4,this.searchedselect=new t.p4,this.ngOnInit(!0),this.eventsSubscription.unsubscribe()}),this.filteredData.emit({data:null,searchTerm:this.value?this.value:this.searchFilter.value,searchTermName:this.filterName?this.filterName:"queryString"})),this.storeDbaClearEvent&&(this.storeDbaClearSubscription=this.storeDbaClearEvent.subscribe(K=>{K&&(this.searchByStoreModel="")})),this.tpnClearEvent&&(this.tpnClearSubscription=this.tpnClearEvent.subscribe(K=>{K&&this.searchedTpn.setValue(null,{emitEvent:!1})})),this.enteredStoreValue&&(this.enteredStoreValuerSubscription=this.enteredStoreValue.subscribe(K=>{this.enteredstoreDba=K,console.log("this.enteredstoreDba-----\x3e",this.enteredstoreDba)})),this.loadTpnLabel(),this.searchedTpn.valueChanges.subscribe(K=>{this.filteredTpn.emit(K)}),this.searchedselect.valueChanges.subscribe(K=>{K&&this.filteredSelect.emit(K)}),this.isLazySelectBox&&!this.useLocalDataOnly&&this.initISearchListener(),this.useLocalDataOnly&&this.localData?.length&&this.initLocalOnlyMode(),E||(this.searchFilter.setValue(this.value,{emitEvent:!1}),this.searchedTpn.setValue(this.value,{emitEvent:!this.isDisableEmitTpn}),this.searchedselect.setValue(this.value,{emitEvent:!1}))}ngOnDestroy(){this.events&&this.eventsSubscription.unsubscribe(),this.storeDbaClearEvent&&this.storeDbaClearSubscription.unsubscribe(),this.tpnClearEvent&&this.tpnClearSubscription.unsubscribe(),this.enteredStoreValue&&this.enteredStoreValuerSubscription.unsubscribe(),this.selectSearchSub?.unsubscribe()}ngOnChanges(E){E.isDisable&&(this.isDisable?this.searchedTpn?.disable():this.searchedTpn?.enable()),this.useLocalDataOnly&&E.localData&&this.localData?.length&&(this.state.selectListCache=[...this.localData],this.selectList$.next([...this.localData]))}initLocalOnlyMode(){this.state.selectListCache=[...this.localData],this.state.visibleSelectList=[...this.localData],this.selectList$.next([...this.localData]),this.selectInput$.pipe((0,_.b)(300),(0,g.x)()).subscribe(E=>{this.filterLocalData(E)})}filterLocalData(E){if(!E)return this.state.visibleSelectList=[...this.state.selectListCache],void this.selectList$.next(this.state.visibleSelectList);const K=E.toLowerCase(),te=this.state.selectListCache.filter(Le=>String(Le[this.bindLabel]).toLowerCase().includes(K));this.state.visibleSelectList=te,this.selectList$.next(te)}selectDba(E){E.preventDefault(),this.searching=!1,this.searchByStoreModel=E.item.dba,this.stores.emit(E.item)}getSearchKey(E){this.searchValue=E,(0,de.isEmpty)(E)&&(this.searching=!1),this.checkSearchBarValue.emit(E)}stopLoader(){((0,de.isEmpty)(this.searchValue)||(0,de.isEmpty)(this.searchByStoreModel)||(0,de.isEmpty)(this.searchByTpnModel))&&(this.searching=!1)}loadTpnLabel(){const E=this.inputTpn$.pipe((0,_.b)(400),(0,T.b)(()=>this.tpnLoading=!0),(0,v.w)(K=>null==K||K.trim().length<3?(this.isSelectAllTpn=!0,this.tpnLoading=!1,(0,n.of)([])):this.getAllTpns(K.trim()).pipe((0,A.U)(te=>(this.isSelectAllTpn=!1,this.totalTpns=te.data,te.data)),(0,I.K)(()=>(0,n.of)([])),(0,T.b)(()=>this.tpnLoading=!1))));this.showDefaultLabel$=(0,f.z)((0,n.of)([]),E)}getAllTpns(E=""){return this.commonService.getCommonHttpClientQueryParams(this.isNonGatewayTpn?S.D.getAllNonGatewayTPN:S.D.tpnIds,{isFilter:!0,tpnDefaultLabel:E||"",storeDba:this.enteredstoreDba?this.enteredstoreDba:"",isShowDeactivedTpns:this.showDeletedTpns,isShowSuspendedTpns:this.isShowSuspendedTpns,searchedStore:this.searchedStoreId?this.searchedStoreId:"",filterByBuildNumber:this.filterByBuildNumber})}selectAll(){this.searchedTpn.patchValue(this.totalTpns.map(E=>E.tpn))}unselectAll(){this.searchedTpn.patchValue([])}selectAllItems(){const K=(this.state.visibleSelectList.length?this.state.visibleSelectList:this.state.selectListCache).map(Z=>this.getModelValue(Z)),te=this.state.globalSelectedItems.map(Z=>this.getModelValue(Z)),Le=[...new Set([...te,...K])];this.state.globalSelectedItems=Le,this.searchedselect.patchValue(this.enableSingleSelect?Le[0]||null:Le),this.state.isSelectAllItems=!0}unselectAllitems(){this.searchedselect.patchValue(this.enableSingleSelect?null:[]),this.state.globalSelectedItems=[],this.state.isSelectAllItems=!1}loadSelectItems(E){let K=this.buildPayload(E);this.state.selectLoading=!0,this.fetchRemoteData(K).subscribe(te=>{this.updateSelectList(te,E)})}
1getDynamicSearchKey(){return{isvNames:"isvName",asset:"serialSearchTerm"}[this.apiNameProperty]||"searchKey"}buildPayload(E=!1){const K=this.getDynamicSearchKey(),te={},Le=this.getPayloadAction();if("isvNames"===this.apiNameProperty)switch(Le){case M.LOAD_ALL:this.state.lastSearchTerm&&(te[K]=this.state.lastSearchTerm),te.loadAll=!0;break;case M.LOAD_PAGINATE:te.filterType=E?"PAGINATE":"DEFAULT",te.page=this.state.currentPage,te.size=this.pageSize;break;case M.SEARCH:te.filterType=E?"PAGINATE":"DEFAULT",this.state.lastSearchTerm&&(te[K]=this.state.lastSearchTerm),te.page=this.state.currentPage,te.size=this.pageSize}else"asset"===this.apiNameProperty&&(te.onlySerialNumbers=!0,this.state.lastSearchTerm&&(te[K]=this.state.lastSearchTerm));return te}getPayloadAction(){return this.state.currentSelectFilterType===C.LOAD_ALL?M.LOAD_ALL:this.state.currentSelectFilterType===C.SEARCH?M.SEARCH:M.LOAD_PAGINATE}getLocalFilteredData(E){const K=this.state.previousList.filter(te=>this.getSearchValue(te).toLowerCase().includes(E.toLowerCase()));return this.state.totalselectItemCount=K.length,this.state.selectLoading=!1,K.slice(0,this.pageSize)}updateSelectList(E,K){const te=this.enableSingleSelect?this.searchedselect.value?[this.searchedselect.value]:[]:this.searchedselect.value||[],Le=new Set(this.state.globalSelectedItems.length?this.state.globalSelectedItems:te);if(K){const pe=new Set(this.state.selectListCache.map(Fe=>this.getModelValue(Fe))),k=E.filter(Fe=>!pe.has(this.getModelValue(Fe)));this.state.selectListCache=[...this.state.selectListCache,...k]}else this.state.selectListCache=[...E];const Z=Array.from(Le).filter(pe=>!this.state.selectListCache.some(k=>this.getModelValue(k)===pe));if(Z.length){const pe=Z.map(k=>this.findItemByValue(k)).filter(k=>null!=k);this.state.selectListCache=[...pe,...this.state.selectListCache]}this.searchedselect.patchValue(this.enableSingleSelect?te[0]||null:te,{emitEvent:!1}),this.state.isSelectAllItems=this.state.selectListCache.length>0&&this.state.selectListCache.every(pe=>Le.has(this.getModelValue(pe))),this.state.visibleSelectList=[...this.state.selectListCache],this.selectList$.next(this.state.selectListCache),this.state.showNotFound=0===this.state.selectListCache.length&&0===this.state.globalSelectedItems.length}fetchRemoteData(E){return this.sendAPI[this.apiNameProperty](E).pipe((0,A.U)(K=>(this.state.totalselectItemCount=K?.total||0,(K?.data||[]).filter(Z=>null!=Z).map(Z=>this.normalizeItem(Z)))),(0,I.K)(()=>(0,n.of)([])),(0,b.x)(()=>this.state.selectLoading=!1))}getLocalPaginatedData(E){const K=this.state.previousList.filter(Z=>this.getSearchValue(Z).toLowerCase().includes(E.toLowerCase())),te=(this.state.currentPage-1)*this.pageSize,Le=K.slice(te,te+this.pageSize);return this.state.totalselectItemCount=K.length,this.state.selectLoading=!1,Le}initISearchListener(){this.selectSearchSub||(this.selectSearchSub=this.selectInput$.pipe((0,_.b)(400),(0,g.x)(),(0,T.b)(()=>{this.state.selectLoading=!0,this.state.currentPage=1}),(0,v.w)(E=>this.handleSearchTerm(E))).subscribe(E=>{this.updateSelectList(E,!1)}))}handleSearchTerm(E){const K=E?.trim()||"";if(this.isLocalOnly())return this.state.selectLoading=!1,(0,n.of)(K.length>=3?[...this.localData]:this.getLocalFilteredData(K));if(K.length>=3){if(this.state.hasSearchSnapshot||(this.state.previousList=[...this.state.selectListCache],this.state.previousPage=this.state.currentPage,this.state.previousTotalCount=this.state.totalselectItemCount,this.state.previousFilterType=this.state.currentSelectFilterType,this.state.hasSearchSnapshot=!0),this.state.lastSearchTerm=K,this.state.currentSelectFilterType=C.SEARCH,this.state.currentPage=1,!this.state.isLoadAllItems){const te=this.buildPayload();return this.fetchRemoteData(te)}return(0,n.of)(this.getLocalFilteredData(K))}return 0===K.length?(this.state.currentSelectFilterType=this.state.previousFilterType,this.state.lastSearchTerm="",this.state.currentPage=this.state.previousPage,this.state.totalselectItemCount=this.state.previousTotalCount,this.state.isLoadAllItems=this.state.previousFilterType===C.LOAD_ALL,this.state.hasSearchSnapshot=!1,this.state.selectLoading=!1,(0,n.of)(this.state.previousList)):K.length>0&&K.length<3?(this.state.selectLoading=!1,(0,n.of)(this.state.hasSearchSnapshot?[...this.state.previousList]:[...this.state.selectListCache])):void 0}loadAllSelectItems(){if(this.state.currentSelectFilterType=C.LOAD_ALL,this.state.lastSearchTerm&&!this.state.hasSearchSnapshot&&(this.state.previousList=[...this.state.selectListCache],this.state.previousPage=this.state.currentPage,this.state.previousTotalCount=this.state.totalselectItem
1Count,this.state.previousFilterType=C.LOAD_ALL,this.state.hasSearchSnapshot=!0),this.state.isLoadAllItems){const K=this.state.hasSearchSnapshot?this.state.previousList:this.state.selectListCache,te=this.state.lastSearchTerm?K.filter(Le=>this.getSearchValue(Le).toLowerCase().includes(this.state.lastSearchTerm.toLowerCase())):K;return this.updateSelectList(te,!1),this.state.isSelectAllItems=!1,void(this.state.isLoadAllItems=!0)}this.state.selectLoading=!0;const E=this.buildPayload();this.fetchRemoteData(E).subscribe(K=>{this.updateSelectList(K,!1),this.state.previousList=K,this.state.isSelectAllItems=!1,this.state.isLoadAllItems=!0})}loadMoreItems(){this.state.selectLoading||this.state.selectListCache.length>=this.state.totalselectItemCount||(this.state.currentPage++,this.state.currentSelectFilterType===C.SEARCH?this.loadMoreSearch():this.loadSelectItems(!0))}loadMoreSearch(){if(this.state.selectLoading=!0,!this.state.isLoadAllItems){const K=this.buildPayload(!0);return void this.fetchRemoteData(K).subscribe(te=>this.updateSelectList(te,!0))}const E=this.getLocalPaginatedData(this.state.lastSearchTerm);this.updateSelectList(E,!0)}onSelectBoxOpen(){this.state.hasSelectBoxLoadedOnce||(this.state.hasSelectBoxLoadedOnce=!0,this.hasDefaultList&&this.loadSelectItems(!1))}normalizeItem(E){return"string"==typeof E?{[this.bindValue]:E,[this.bindLabel]:E}:E}getSearchValue(E){if(null==E)return"";if("string"==typeof E)return E;const K=E[this.bindLabel];return null!=K?String(K):""}getModelValue(E){return null==E?null:"string"==typeof E?E:void 0!==E[this.bindValue]?E[this.bindValue]:E}onClearSelection(){this.state.globalSelectedItems=[],this.state.isSelectAllItems=!1,this.state.selectListCache=this.state.selectListCache.map(E=>({...E,selected:!1})),this.selectList$.next(this.state.selectListCache)}findItemByValue(E){const K=this.bindValue;return this.state.previousList.find(te=>te[K]===E)||this.state.selectListCache.find(te=>te[K]===E)||{[K]:E,[this.bindLabel]:E}}onAnyItemRemoved(){this.state.isSelectAllItems=!1}}return X.\u0275fac=function(E){return new(E||X)(i.Y36(z.K),i.Y36(Ee.U),i.Y36(Oe.v),i.Y36(ee.d),i.Y36(Me.$),i.Y36(R.I),i.Y36(W.y),i.Y36(ie.t),i.Y36(ye.p),i.Y36(Ue.s),i.Y36($e.v),i.Y36(ke.c))},X.\u0275cmp=i.Xpm({type:X,selectors:[["app-search-box-filter"]],viewQuery:function(E,K){if(1&E&&i.Gf(Q,7),2&E){let te;i.iGM(te=i.CRH())&&(K.instance=te.first)}},inputs:{apiNameProperty:"apiNameProperty",searchByTpnModel:"searchByTpnModel",searchByStoreModel:"searchByStoreModel",queryParam:"queryParam",placeholder:"placeholder",initialDate:"initialDate",finalDate:"finalDate",customerView:"customerView",filterName:"filterName",clear:"clear",value:"value",isBackButton:"isBackButton",isTpnLabel:"isTpnLabel",isStyleFlag:"isStyleFlag",isDisableEmitTpn:"isDisableEmitTpn",enableSingleSelect:"enableSingleSelect",showDeletedTpns:"showDeletedTpns",isShowSuspendedTpns:"isShowSuspendedTpns",filterByBuildNumber:"filterByBuildNumber",isNonGatewayTpn:"isNonGatewayTpn",isLazySelectBox:"isLazySelectBox",enableVirtualScroll:"enableVirtualScroll",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",dropdownPosition:"dropdownPosition",pageSize:"pageSize",bindLabel:"bindLabel",bindValue:"bindValue",hasDefaultList:"hasDefaultList",localData:"localData",events:"events",storeDbaClearEvent:"storeDbaClearEvent",tpnClearEvent:"tpnClearEvent",enteredStoreValue:"enteredStoreValue",searchedStoreId:"searchedStoreId",hideSelected:"hideSelected",storeId:"storeId",isDisable:"isDisable",useLocalDataOnly:"useLocalDataOnly"},outputs:{filteredData:"filteredData",apiStatus:"apiStatus",stores:"stores",tpnNumber:"tpnNumber",checkSearchBarValue:"checkSearchBarValue",filteredTpn:"filteredTpn",filteredSelect:"filteredSelect"},features:[i._Bn([J.A6]),i.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[1,"px-0","col-12"],[1,"input-group",3,"ngClass"],["class","col px-0",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"col","px-0"],["type","text","class","form-control",3,"formControl","placeholder",4,"ngIf"],["class","d-flex",4,"ngIf"],["type","text",1,"form-control",3,"formControl","placeholder"],[1,"d-flex"],["id","typeahead-focus-dba","placeholder","Search by Store","type","text",1,"form-control",3,"ngModel","ngbTypeahead","resultFormatter","resultTemplate","selectItem","ngModelChange","focusout"],["storeResult",""],[1,"input-group-prepend"],[1,"input-group-text"],[1,"feather","icon-search"],[3,"result","term"],["type","number","placeholder","Search by build #","maxlength","10",1,"form-control",3,"formControl"],["class","input-group-prepend",4,"ngIf"],[3,"ngClass"],["bindValue","tpn","bindLabel","tpn","notFoundText","No Tpn/DefaultLabels found","typeToSearchText","Please enter 3 or more characters",3,"ngClass","items","multiple","selectOnTab","hideSelected","closeOnSelect","formControl","loading","placeholder","typeahead"],["ng-option-tmp",""],["ng-header-tmp",""],[1,"btn","btn-sm","btn-secondary",3,"disabled","click"],[1,"ml-1","btn","btn-sm","btn-secondary",3,"disabled","click"],[3,"items","multiple","selectOnTab","hideSelected","closeOnSelect","virtualScroll","formControl","notFoundText","placeholder","typeToSearchText","dropdownPosition","typeahead","loading","bindLabel","bindValue","clear","remove","scrollToEnd","open"],["ng-footer-tmp",""],[1,"text-center"],["class","btn btn-sm btn-secondary",3,"disabled","click",4,"ngIf"],["class","ml-1 btn btn-sm btn-secondary",3,"disabled",4,"ngIf"],[1,"ml-1","btn","btn-sm","btn-secondary",3,"disabled"],[1,"fa","fa-spinner","fa-spin"]],template:function(E,K){1&E&&(i.YNc(0,se,6,4,"ng-container",0),i.YNc(1,ce,5,19,"ng-container",0)),2&E&&(i.Q6J("ngIf",!K.isLazySelectBox),i.xp6(1),i.Q6J("ngIf",K.isLazySelectBox))},dependencies:[Re.mk,Re.O5,t.Fj,t.wV,t.JJ,t.nD,t.On,t.oH,J.dR,J._h,F.w9,F.Z2,F.A3,F.x0,Re.Ov],styles:[".search_label[_ngcontent-%COMP%]{position:absolute;bottom:-15px}.spinner-border[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;margin-top:5px}.tpn_label[_ngcontent-%COMP%]{width:16rem}.tpn_default_label[_ngcontent-%COMP%]{display:flex;justify-content:end;padding-right:1rem}"]}),X})()},49319:(Te,G,r)=>{"use strict";r.d(G,{K:()=>_});var i=r(94666),t=r(22560);let _=(()=>{class g{static forRoot(){return{ngModule:g,providers:[]}}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[i.ez]}),g})()},32414:(Te,G,r)=>{"use strict";r.d(G,{SQ:()=>b,Xw:()=>A,hy:()=>I,vt:()=>w});var i=r(92340),t=r(56908),g=r(92938),v=r(22560);let I=(()=>{class D{transform(n){return(0,g.isEmpty)(n)?null:`${t.tz(n,i.N.displayTimeZone).format(i.N.dateFormat)} (EST)`}}return D.\u0275fac=function(n){return new(n||D)},D.\u0275pipe=v.Yjl({name:"datePipe",type:D,pure:!0}),D})(),w=(()=>{class D{transform(n,f="MM-DD-YYYY"){return(0,g.isEmpty)(n)?null:t(n).format(f)}}return D.\u0275fac=function(n){return new(n||D)},D.\u0275pipe=v.Yjl({name:"momentDate",type:D,pure:!0}),D})(),A=(()=>{class D{transform(n,f=null){if((0,g.isEmpty)(n))return null;if(f){const S=" (GMT"+t.tz(f).format("Z")+") ";return`${t.tz(n,f).format(i.N.dateTimeFormat)} ${S}`}return`${t.tz(n,i.N.displayTimeZone).format(i.N.dateTimeFormat)} (EST)`}}return D.\u0275fac=function(n){return new(n||D)},D.\u0275pipe=v.Yjl({name:"dateTimePipe",type:D,pure:!0}),D})(),b=(()=>
1{class D{transform(n,f="America/New_York",S="full"){if(!n)return"";const J=new Date(n),Ie=new Intl.DateTimeFormat("en-US",{timeZone:f,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(J),z={};Ie.forEach(ee=>z[ee.type]=ee.value);const Ee=`${z.month}-${z.day}-${z.year}`,Oe=`${z.hour}:${z.minute}:${z.second}`;return"date"===S?Ee:"time"===S?Oe:`${Ee} ${Oe}`}}return D.\u0275fac=function(n){return new(n||D)},D.\u0275pipe=v.Yjl({name:"UTCToEST",type:D,pure:!0}),D})()},4403:(Te,G,r)=>{"use strict";r.d(G,{m:()=>se});var i=r(94666),t=r(2508),_=r(71518),g=r(40929),T=r(59462),v=r(22560);const I=[];let w=(()=>{class xe{}return xe.\u0275fac=function($){return new($||xe)},xe.\u0275mod=v.oAB({type:xe}),xe.\u0275inj=v.cJS({imports:[T.Bz.forChild(I),T.Bz]}),xe})();var A=r(30705),b=r(97212),D=r(33935),e=r(90413),n=r(7038),f=r(92522),S=r(18161),J=r(92836),de=r(99347),Ie=r(42098),z=r(4524),Ee=r(64705),Oe=r(83880),ee=r(12735),Me=r(79114),R=r(39628),W=r(41205),ie=r(49319),ye=r(43648),Ue=r(17734),$e=r(72620),ke=r(43041),Re=r(47073),F=r(49023),Q=r(33142),ae=r(99581),H=r(51119),ge=r(46261),Se=r(86872),Je=r(56908),We=r(81029);const He=["calendarTemplate"];function et(xe,B){if(1&xe){const $=v.EpF();v.TgZ(0,"div",14)(1,"input",15,16),v.NdJ("ngModelChange",function(Ze){v.CHM($);const O=v.oxw(2);return v.KtG(O.fromDate=Ze)})("dateSelect",function(){v.CHM($);const Ze=v.oxw(2);return v.KtG(Ze.onDateSelect())}),v.qZA(),v.TgZ(3,"div",2)(4,"button",17),v.NdJ("click",function(){v.CHM($);const Ze=v.MAs(2);return v.KtG(Ze.toggle())}),v.qZA()(),v.TgZ(5,"input",18,19),v.NdJ("ngModelChange",function(Ze){v.CHM($);const O=v.oxw(2);return v.KtG(O.toDate=Ze)})("dateSelect",function(){v.CHM($);const Ze=v.oxw(2);return v.KtG(Ze.onDateSelect())}),v.qZA(),v.TgZ(7,"div",2)(8,"button",17),v.NdJ("click",function(){v.CHM($);const Ze=v.MAs(6);return v.KtG(Ze.toggle())}),v.qZA()()()}if(2&xe){const $=v.oxw(2);v.xp6(1),v.Q6J("ngModel",$.fromDate)("maxDate",$.today),v.xp6(4),v.Q6J("ngModel",$.toDate)("maxDate",$.today)("minDate",$.fromDate)("disabled",!$.fromDate)}}function qe(xe,B){if(1&xe){const $=v.EpF();v.TgZ(0,"div",5)(1,"h5",6),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",7),v.NdJ("click",function(){v.CHM($);const Ze=v.oxw();return v.KtG(Ze.closeModal())}),v.TgZ(5,"span",8),v._uU(6,"\xd7"),v.qZA()()(),v.TgZ(7,"div",9)(8,"ng-select",10),v.NdJ("ngModelChange",function(Ze){v.CHM($);const O=v.oxw();return v.KtG(O.selectedType=Ze)}),v.qZA(),v.YNc(9,et,9,6,"div",11),v.qZA(),v.TgZ(10,"div",12)(11,"button",13),v.NdJ("click",function(){v.CHM($);const Ze=v.oxw();return v.KtG(Ze.submit())}),v._uU(12),v.ALo(13,"translate"),v.qZA()()}if(2&xe){const $=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,7,"parameter.SelectTimePeriod")),v.xp6(6),v.Q6J("items",$.dateFilterList)("clearable",!1)("ngModel",$.selectedType),v.xp6(1),v.Q6J("ngIf","Custom"===$.selectedType),v.xp6(2),v.Q6J("disabled",!$.selectedType||"Custom"===$.selectedType&&(!$.fromDate||!$.toDate)),v.xp6(1),v.Oqu(v.lcZ(13,9,"Ok"))}}let at=(()=>{class xe{constructor($){this.modalService=$,this.selectedType="",this.today=this.toNgbDate(new Date),this.dateFilterList=We.xq,this.dateSelected=new v.vpe,this.dateControl=new t.NI("")}ngOnInit(){}openModal(){this.modalRef=this.modalService.open(this.calendarTemplate,{centered:!0,backdrop:"static",keyboard:!1})}closeModal(){this.modalRef?.close()}onDateSelect(){this.fromDate&&this.toDate&&this.compareDates(this.fromDate,this.toDate)>0&&(this.toDate=this.fromDate)}submit(){const $={type:this.selectedType,from:"",to:""};"Custom"===this.selectedType&&this.fromDate&&this.toDate&&($.from=this.formatDate(this.fromDate,!1),$.to=this.formatDate(this.toDate,!0)),this.dateSelected.emit($),this.dateControl.setValue("None"==this.selectedType?"":"Custom"===this.selectedType?`${Je($.from).format("MM-DD-YYYY")} - ${Je($.to).format("MM-DD-YYYY")}`:this.selectedType),this.closeModal()}formatDate($,be){const Ze=new Date($.year,$.month-1,$.day,be?23:0,be?59:0,be?59:0);return Je(Ze).format("YYYY-MM-DD HH:mm:ss")}toNgbDate($){return{year:$.getFullYear(),month:$.getMonth()+1,day:$.getDate()}}compareDates($,be){return new Date($.year,$.month-1,$.day).getTime()-new Date(be.year,be.month-1,be.day).getTime()}}return xe.\u0275fac=function($){return new($||xe)(v.Y36(g.FF))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-date-picker"]],viewQuery:function($,be){if(1&$&&v.Gf(He,5),2&$){let Ze;v.iGM(Ze=v.CRH())&&(be.calendarTemplate=Ze.first)}},inputs:{disable:"disable"},outputs:{dateSelected:"dateSelected"},decls:7,vars:2,consts:[[1,"input-group"],["type","text","placeholder","Date Selection","readonly","",1,"form-control","floating-input",3,"formControl"],[1,"input-group-append"],[1,"btn","btn-primary","mdi","mdi-calendar-month-outline",3,"disabled","click"],["calendarTemplate",""],[1,"modal-header"],[1,"modal-title","font-weight-bold"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["bindLabel","displayName","bindValue","name","placeholder","Date Selection",3,"items","clearable","ngModel","ngModelChange"],["class","input-group mt-3",4,"ngIf"],[1,"modal-footer"],[1,"btn","btn-primary",3,"disabled","click"],[1,"input-group","mt-3"],["placeholder","From","ngbDatepicker","","readonly","",1,"form-control",3,"ngModel","maxDate","ngModelChange","dateSelect"],["fromDp","ngbDatepicker"],["type","button",1,"btn","btn-outline-primary","mdi","mdi-calendar-blank-outline",3,"click"],["placeholder","To","ngbDatepicker","","readonly","",1,"form-control","ml-3",3,"ngModel","maxDate","minDate","disabled","ngModelChange","dateSelect"],["toDp","ngbDatepicker"]],template:function($,be){1&$&&(v.TgZ(0,"div")(1,"div",0),v._UZ(2,"input",1),v.TgZ(3,"div",2)(4,"button",3),v.NdJ("click",function(){return be.openModal()}),v.qZA()()()(),v.YNc(5,qe,14,11,"ng-template",null,4,v.W1O)),2&$&&(v.xp6(2),v.Q6J("formControl",be.dateControl),v.xp6(2),v.Q6J("disabled",be.disable))},dependencies:[i.O5,t.Fj,t.JJ,t.On,t.oH,g.J4,e.w9,D.X$]}),xe})();var tt=r(43423);let se=(()=>{class xe{}return xe.\u0275fac=function($){return new($||xe)},xe.\u0275mod=v.oAB({type:xe}),xe.\u0275inj=v.cJS({providers:[ge.ez,at],imports:[i.ez,w,t.u5,t.UX,g.ZS,_.x,A.L$,g.IJ,b.EV,D.aw,e.A0,n.yI,f.bB,S.Qy,J.j,de.nD,Ie.O,z.L,Ee.cc,Oe.Su,ee.O,ie.K,Me.kW,W.Xd,R.M,ye.ON,Ue.hJ,$e.U$,ke.F,Re.fx,ae.Js,Q.X,F.B,H.Gg,Se.Iu,J.
1j,tt.z,tt.z]}),xe})()},78301:(Te,G,r)=>{"use strict";r.d(G,{s:()=>T});var i=r(22872),t=r(33937),_=r(92340);function g(){try{return`${_.N.vipUrl.replace(/\/$/,"")}/terminals`}catch{return _.N.vipUrl}}const T=[{label:"Main",isTitle:!0,module:i.j.COMMON},{label:"Dashboard",icon:"grid",link:"/dashboardv2",module:i.j.DASHBOARD,privilege:t.R.VIEW_DASHBOARD,indexId:0,isMobileView:!0},{label:"UserManagement",icon:"users",link:"/user-management/users/",module:i.j.USER,privilege:t.R.VIEW_USER,indexId:1,isMobileView:!0},{label:"Customer",icon:"user-plus",link:"/customer-management/customers/",module:i.j.CUSTOMER,privilege:t.R.VIEW_CUSTOMER,indexId:2,isMobileView:!1},{label:"Merchants",icon:"users",link:"/merchant-management/list-merchant/",module:i.j.MERCHANT,privilege:t.R.VIEW_MERCHANT,indexId:3,isMobileView:!0},{label:"STEAM",icon:"smartphone",module:i.j.STEAM,link:"/application-management/list-device/",indexId:4,isMobileView:!0,subItems:[{label:"Application",privilege:t.R.VIEW_APPLICATION,link:"/application-management/list-application/",module:i.j.STEAM,isMobileView:!1},{label:"Edit Parameters",privilege:t.R.VIEW_DEVICE,link:"/steam-param/list-device/",module:i.j.STEAM,isMobileView:!0},{label:"Non-Gateway TPNs",privilege:t.R.VIEW_NON_GATEWAY_TPN,link:"/non-gateway-web/tpn/",module:i.j.STEAM,isMobileView:!1},{label:"Assets",privilege:t.R.VIEW_ASSETS,link:"/asset-management/list-asset/",module:i.j.STEAM,isMobileView:!1},{label:"Download Logs",privilege:t.R.VIEW_DOWNLOAD_LOG,link:"/downloadlog-management/list-downloadlog/",module:i.j.STEAM,isMobileView:!1},{label:"Device Alerts",module:i.j.STEAM,privilege:t.R.VIEW_DEVICE_ALERT,link:"device-alert-management/list-devicealert",isMobileView:!1},{label:"Audit Logs",module:i.j.STEAM,privilege:t.R.VIEW_AUDITLOGS,link:"app-auditlog-list/list-auditlog",isMobileView:!1},{label:"Proxy Login",module:i.j.STEAM,privilege:t.R.VIEW_PROXY_LOGS,link:"proxy-login-logs",isMobileView:!1},{label:"Bulk Assign Build",privilege:t.R.BULK_ASSIGN,link:"/advanced/bulk-assign",module:i.j.STEAM,isMobileView:!1}]},{label:"Control Center",icon:"sliders",link:"communication-center",module:i.j.COMMUNICATION_CENTER,privilege:t.R.SEND_COMMUNICATION,indexId:4.2,isMobileView:!1,moduleGroup:i.j.CONTROL_CENTER},{label:"Control Center",icon:"sliders",link:"communication-center",module:i.j.COMMAND_CENTER,privilege:t.R.SEND_COMMAND,indexId:4.1,isMobileView:!1,moduleGroup:i.j.CONTROL_CENTER},{label:"DvStore",icon:"shopping-cart",module:i.j.DV_STORE,link:"/application-management/list-device/",indexId:5,isMobileView:!0,subItems:[{label:"Manage DvStore",privilege:t.R.MANAGE_DVSTORE,link:"/manage-market-app/list-apps/",module:i.j.DV_STORE,isMobileView:!1},{label:"Value-Added Apps",privilege:t.R.VALUE_ADDED_APPS,link:"/dv-store/list-apps/",module:i.j.DV_STORE,isMobileView:!0}]},{label:"Transactions",icon:"layers",link:"/transaction-management/transactions/",module:i.j.TRANSACTION,privilege:t.R.VIEW_TRANSACTION,indexId:6,isMobileView:!0},{label:"CloudPOS",icon:"credit-card",module:i.j.CLOUD_POS,link:"/virtual-terminal/list",isMobileView:!0,indexId:7,subItems:[{label:"Payments",privilege:t.R.PAYMENTS,link:"/virtual-terminal/list",module:i.j.CLOUD_POS,isMobileView:!0},{label:"Invoices",privilege:t.R.VIEW_INVOICE_LIST,link:"/virtual-terminal/invoice-list",module:i.j.CLOUD_POS,isMobileView:!1},{label:"Recurring Payments",privilege:t.R.VIEW_RECURRING_PAYMENT_LIST,link:"/virtual-terminal/recurring-payment-list",module:i.j.CLOUD_POS,isMobileView:!1}]},{label:"My Customers",icon:"user",link:"consumer-list/list",module:i.j.CONSUMER,privilege:t.R.VIEW_CONSUMER,indexId:9,isMobileView:!1},{label:"Batches",icon:"file-minus",link:"/batch-management/batches",module:i.j.BATCHES,privilege:t.R.VIEW_BATCHES,indexId:8,isMobileView:!0},{label:"My Tickets",icon:"inbox",link:"/my-tickets/my-ticket-list",module:i.j.MY_TICKETS,privilege:t.R.VIEW_TICKET,indexId:10,isMobileView:!1},{label:"Settings",icon:"settings",module:i.j.MERCHANT_SETTINGS,privilege:t.R.ADD_PROMOTIONAL_SETTING,link:"/merchant-settings/settings",indexId:11,isMobileView:!1},{label:"Settings",icon:"settings",module:i.j.ISO_SETTINGS,privilege:t.R.HELP_DESK,link:"/customer-settings/sett
1ings",indexId:12,isMobileView:!1},{label:"Digital Ads",icon:"message-circle",privilege:t.R.VIEW_PROMOTION,module:i.j.PROMOTION,link:"/promotions",isMobileView:!1},{label:"Reports",icon:"message-circle",module:i.j.REPORTS,isMobileView:!1,subItems:[{label:"Tip Report",privilege:t.R.VIEW_TIP_REPORT,link:"/reports/tip-report",module:i.j.REPORTS,isMobileView:!1},{label:"Batch Report",privilege:t.R.VIEW_BATCH_REPORT,link:"/reports/settlement-report",module:i.j.REPORTS,isMobileView:!1},{label:"Register Lite Report",privilege:t.R.VIEW_BATCH_REPORT,link:"/reports/inventory-report",module:i.j.REPORTS,isMobileView:!1}]},{label:"Digital Ads",icon:"airplay",module:i.j.CAMPAIGN,isMobileView:!1,subItems:[{label:"Digital Ad On Screen",privilege:t.R.VIEW_CAMPAIGN,link:"/digital-ads-on-screen",module:i.j.CAMPAIGN,isMobileView:!1}]},{label:"iPOS S.A.F.E",icon:"shield",module:i.j.RISK_MANAGEMENT,indexId:13,isMobileView:!1,subItems:[{label:"Risk rules",privilege:t.R.VIEW_RISK_DETAILS,link:"/risk-management/list",module:i.j.RISK_MANAGEMENT,isMobileView:!1},{label:"Templates",privilege:t.R.VIEW_RISK_TEMPLATES,link:"/risk-management/templates",module:i.j.RISK_MANAGEMENT,isMobileView:!1}]},{icon:"file-text",label:"Register Lite",privilege:t.R.VIEW_INVENTORY,module:i.j.INVENTORY,link:"/inventory",isMobileView:!1},{label:"Troubleshooting",icon:"airplay",module:i.j.TROUBLESHOOT,link:"/spin-troubleshooting/spin-proxy",isMobileView:!1,indexId:14,subItems:[{label:"Spin Proxy",privilege:t.R.SPIN_PROXY,link:"/spin-troubleshooting/spin-proxy",module:i.j.TROUBLESHOOT,isMobileView:!1}]},{label:"Resources",icon:"package",module:i.j.RESOURCES,isMobileView:!1,indexId:15,subItems:[{label:"API Docs",privilege:t.R.API_DOCS,link:_.N.apiDocsLink,target:"_blank",isExternalURL:!0,module:i.j.RESOURCES,isMobileView:!1},{label:"Knowledge Base",privilege:t.R.KNOWLEDGE_BASE,link:_.N.knowledgeBaseLink,target:"_blank",isExternalURL:!0,module:i.j.RESOURCES,isMobileView:!1},{label:"Release Notes",privilege:t.R.RELEASE_NOTES,link:_.N.releaseNotesLink,target:"_blank",isExternalURL:!0,module:i.j.RESOURCES,isMobileView:!1}]},{label:"Invoices",icon:"file-text",privilege:t.R.VIEW_INVOICE,module:i.j.BILLING,isMobileView:!1,link:"/billing-invoice",subItems:[{label:"Transaction",privilege:t.R.VIEW_INVOICE,link:"/billing-invoice/TXN",module:i.j.BILLING,isMobileView:!1},{label:"Rental",privilege:t.R.VIEW_INVOICE,link:"/billing-invoice/RENTAL",module:i.j.BILLING,isMobileView:!1},{label:"Merchant Invoicing",privilege:t.R.VIEW_INVOICE,link:"/billing-invoice/m-b",module:i.j.BILLING,isMobileView:!1}]},{label:"some menu",icon:"users",subItems:[{isUsers:!0,label:"menu",link:"/user-management/users/"}]},{label:"Videos",icon:"video",module:i.j.CUSTOMER_SUPPORT_VIDEOS,indexId:16,subItems:[{label:"Training Videos",privilege:t.R.VIEW_CUSTOMER_SUPPORT_VIDEOS,link:"https://www.youtube.com/@Dejavoo2006/playlists",module:i.j.CUSTOMER_SUPPORT_VIDEOS,target:"_blank",isExternalURL:!0,isMobileView:!1}]},{label:"menuNames.dejaUp",icon:"briefcase",link:g(),module:i.j.DEJAUP,privilege:t.R.VIEW_TERMINAL,indexId:17.1,isMobileView:!1,target:"_blank",externalLinkRel:"opener",isExternalURL:!0},{label:"menuNames.dejaUp",icon:"briefcase",link:g(),module:i.j.DEJAUP,privilege:t.R.VIEW_DISPENSER,indexId:17.2,isMobileView:!1,target:"_blank",externalLinkRel:"opener",isExternalURL:!0},{label:"menuNames.dejaUp",icon:"briefcase",link:g(),module:i.j.DEJAUP,privilege:t.R.VIEW_DEX_AUDIT,indexId:17.3,isMobileView:!1,target:"_blank",externalLinkRel:"opener",isExternalURL:!0},{label:"menuNames.dejaUp",icon:"briefcase",link:g(),module:i.j.DEJAUP,privilege:t.R.VIEW_WEBHOOK_LOG,indexId:17.4,isMobileView:!1,target:"_blank",externalLinkRel:"opener",isExternalURL:!0},{label:"menuNames.dejaUp",icon:"briefcase",link:g(),module:i.j.DEJAUP,privilege:t.R.VIEW_WEBHOOK,indexId:17.5,isMobileView:!1,target:"_blank",externalLinkRel:"opener",isExternalURL:!0}]},92853:(Te,G,r)=>{"use strict";r.d(G,{P:()=>_});var i=r(92218),t=r(22560);let _=(()=>{class g{constructor(){this.toggleSidebarSubject=new i.xQ,this.toggleSidebar$=this.toggleSidebarSubject.asObservable(),this.previousSidebarState=null}toggleSidebar(){console.log("toggleSideBar entered in service"),this.toggleSidebarSubject.next()}saveSidebarState(v){this.previousSidebarState=v?"folded":"unfolded",console.log("Saved sidebar state:",this.previousSidebarState)}getPreviousSidebarState(){return this.previousSidebarState}clearSidebarState(){this.previousSidebarState=null}wasSidebarUnfolded(){return"unfolded"===this.previousSidebarState}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},42201:(Te,G,r)=>{"use strict";r.d(G,{X:()=>tt});var i=r(83918),t=r(22560),_=r(2508),g=r(92340),T=r(54724),v=r(94666),I=r
1(92938),A=r(19787),b=r(59462),D=r(33507),e=r(46261),n=r(40929),f=r(53906),S=r(98660),J=r(97212),de=r(33935);function Ie(se,xe){1&se&&t._UZ(0,"p-toast",5)}const z=function(){return{width:"100%",right:"0",left:"0"}},Ee=function(se){return{"991px":se}};function Oe(se,xe){1&se&&t._UZ(0,"p-toast",6),2&se&&t.Q6J("breakpoints",t.VKq(2,Ee,t.DdM(1,z)))}function ee(se,xe){1&se&&(t.TgZ(0,"div")(1,"ngb-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&se&&(t.xp6(1),t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.hij(" ",t.lcZ(3,3,"errorMsg.missingSecurityCode")," "))}function Me(se,xe){if(1&se&&(t.TgZ(0,"span"),t._uU(1," and phone "),t.TgZ(2,"b"),t._uU(3),t.qZA()()),2&se){const B=t.oxw(3);t.xp6(3),t.hij(" ",null==B.user?null:B.user.phoneNumber," ")}}function R(se,xe){if(1&se&&(t.TgZ(0,"p"),t._uU(1," Security code sent to "),t.TgZ(2,"b"),t._uU(3),t.qZA(),t.YNc(4,Me,4,1,"span",3),t.qZA()),2&se){const B=t.oxw(2);t.xp6(3),t.hij(" ",null==B.user?null:B.user.email," "),t.xp6(1),t.Q6J("ngIf",null==B.user?null:B.user.phoneNumber)}}function W(se,xe){if(1&se&&(t.TgZ(0,"span"),t._uU(1," and phone "),t.TgZ(2,"b"),t._uU(3),t.qZA()()),2&se){const B=t.oxw(3);t.xp6(3),t.hij(" ",null==B.mfaData?null:B.mfaData.phoneNumber," ")}}function ie(se,xe){if(1&se&&(t.TgZ(0,"p"),t._uU(1," Security code sent to "),t.TgZ(2,"b"),t._uU(3),t.qZA(),t.YNc(4,W,4,1,"span",3),t.qZA()),2&se){const B=t.oxw(2);t.xp6(3),t.hij(" ",null==B.mfaData?null:B.mfaData.email," "),t.xp6(1),t.Q6J("ngIf",null==B.mfaData?null:B.mfaData.phoneNumber)}}function ye(se,xe){if(1&se){const B=t.EpF();t.TgZ(0,"div",22)(1,"div",23),t._UZ(2,"input",24),t.TgZ(3,"label",25),t._uU(4," I agree to the "),t.TgZ(5,"a",26),t.NdJ("click",function(be){t.CHM(B);const Ze=t.oxw(2);return t.KtG(Ze.openTermsModal(be))}),t.TgZ(6,"span",27),t._uU(7,"Terms And Conditions"),t.qZA()()()()()}}function Ue(se,xe){if(1&se){const B=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(B);const be=t.oxw(2);return t.KtG(be.onCancel())}),t.TgZ(1,"span",27),t._uU(2,"Back"),t.qZA()()}if(2&se){const B=t.oxw(2);t.Q6J("disabled",B.loaders.logging)}}function $e(se,xe){if(1&se&&(t.TgZ(0,"div",29)(1,"span",30),t._uU(2),t.qZA()()),2&se){const B=t.oxw(2);t.xp6(2),t.hij(" ",B.timer,"")}}function ke(se,xe){if(1&se){const B=t.EpF();t.TgZ(0,"div",31)(1,"button",32),t.NdJ("click",function(){t.CHM(B);const be=t.oxw(2);return t.KtG(be.onResendCode())}),t.TgZ(2,"span",27),t._uU(3,"Resend code"),t.qZA()()()}if(2&se){const B=t.oxw(2);t.xp6(1),t.Q6J("disabled",B.loaders.timer)}}function Re(se,xe){1&se&&t._UZ(0,"span",33)}function F(se,xe){if(1&se){const B=t.EpF();t.TgZ(0,"form",7),t.NdJ("submit",function(be){t.CHM(B);const Ze=t.oxw();return t.KtG(Ze.onVerifyOtp(be))}),t.TgZ(1,"div",8)(2,"label",9),t._uU(3,"Security code"),t.qZA(),t._UZ(4,"input",10),t.YNc(5,ee,4,5,"div",3),t.qZA(),t.YNc(6,R,5,2,"p",3),t.YNc(7,ie,5,2,"p",3),t.YNc(8,ye,8,0,"div",11),t.TgZ(9,"div",12)(10,"div",13),t.YNc(11,Ue,3,1,"button",14),t.qZA(),t.YNc(12,$e,3,1,"div",15),t.YNc(13,ke,4,1,"div",16),t.qZA(),t.TgZ(14,"div",17)(15,"button",18),t.YNc(16,Re,1,0,"span",19),t.TgZ(17,"span",20),t._uU(18,"Verify"),t.qZA()()()()}if(2&se){const B=t.oxw();let $;t.ekj("ml-3",!B.embedded)("mr-3",!B.embedded),t.Q6J("formGroup",B.mfaForm),t.xp6(5),t.Q6J("ngIf",B.mfaForm.controls.otp.invalid&&B.mfaForm.controls.otp.dirty),t.xp6(1),t.Q6J("ngIf","auth"==B.native),t.xp6(1),t.Q6J("ngIf","auth"!=B.native),t.xp6(1),t.Q6J("ngIf",B.showTermsCheck),t.xp6(3),t.Q6J("ngIf","auth"==B.native||B.showBackButton),t.xp6(1),t.Q6J("ngIf",B.loaders.timer),t.xp6(1),t.Q6J("ngIf",!B.loaders.timer),t.xp6(2),t.Q6J("disabled",B.loaders.logging||B.showTermsCheck&&!(null!=($=B.mfaForm.get("agreed"))&&$.value)),t.xp6(1),t.Q6J("ngIf",B.loaders.logging)}}function Q(se,xe){1&se&&t.GkF(0)}function ae(se,xe){if(1&se&&(t.ynx(0),t.YNc(1,Q,1,0,"ng-container",34),t.BQk()),2&se){t.oxw();const B=t.MAs(3);t.xp6(1),t.Q6J("ngTemplateOutlet",B)}}function H(se,xe){1&se&&t._UZ(0,"div",41)}function ge(se,xe){1&se&&(t.TgZ(0,"div",42)(1,"h4"),t._uU(2,"Terms & Conditions"),t.qZA(),t.TgZ(3,"p",43),t._uU(4," Please review the T&C before proceeding. "),t.qZA()())}function Se(se,xe){1&se&&t.GkF(0)}function Je(se,xe){if(1&se&&(t.TgZ(0,"a",48),t._UZ(1,"img",49),t.qZA()),2&se){const B=t.oxw(3);t.xp6(1),t.s9C("src",null==B.environmentData?null:B.environmentData.defaultLogo,t.LSH)}}function We(se,xe){if(1&se&&(t.TgZ(0,"a",50),t._UZ(1,"img",51),t.qZA()),2&se){const B=t.oxw(3);t.xp6(1),t.s9C("src",B.loginLogo,t.LSH)}}function He(se,xe){1&se&&(t.TgZ(0,"p",52),t._uU(1,"It's "),t.TgZ(2,"span"),t._uU(3,"more"),t.qZA(),t._uU(4," than a transaction!"),t.qZA())}function et(se,xe){if(1&se&&(t.TgZ(0,"p",52),t._uU(1),t.qZA()),2&se){const B=t.oxw(3);t.xp6(1),t.Oqu(B.tagName)}}function qe(se,xe){if(1&se&&(t.TgZ(0,"footer",44),t.YNc(1,Je,2,1,"a",45),t.YNc(2,We,2,1,"a",46),t.YNc(3,He,5,0,"p",47),t.YNc(4,et,2,1,"p",47),t.qZA()),2&se){const B=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!B.loginLogo),t.xp6(1),t.Q6J("ngIf",B.loginLogo),t.xp6(1),t.Q6J("ngIf",!B.loginLogo),t.xp6(1),t.Q6J("ngIf",B.tagName)}}function at(se,xe){if(1&se&&(t.TgZ(0,"div")(1,"div")(2,"div")(3,"div",35)(4,"div"),t.YNc(5,H,1,0,"div",36),t.TgZ(6,"div",37)(7,"h4"),t._uU(8),t.qZA(),t.TgZ(9,"p",38),t._uU(10),t.qZA()(),t.YNc(11,ge,5,0,"div",39),t.qZA(),t.TgZ(12,"div")(13,"div"),t.YNc(14,Se,1,0,"ng-container",34),t.qZA(),t.YNc(15,qe,5,4,"footer",40),t.qZA()()()()()),2&se){const B=t.oxw(),$=t.MAs(3);t.Gre("row w-100 mx-0 ","auth"==B.native?"auth-page":""," "),t.xp6(1),t.Gre("",B.widthClass," mx-auto"),t.xp6(1),t.Gre("",B.isFullWidth?"bg-white":""," card cus-card login_card"),t.xp6(2),t.Gre("",B.isFullWidth?"col-md-12 pb-3 card-bg-small-size":"col-md-5 left-login-card"," pl-md-2 pr-md-2"),t.xp6(1),t.Q6J("ngIf",!B.isFullWidth),t.xp6(3),t.hij(" ",B.title,""),t.xp6(2),t.hij(" ",B.content," "),t.xp6(1),t.Q6J("ngIf",B.showTermsCheck),t.xp6(1),t.Gre("card login-div auth-right-panel ",B.isFullWidth?"col-md-12 mt-3":"col-md-7"," ml-0 mr-0 pl-0 pr-0"),t.xp6(1),t.Gre("",B.isFullWidth?"mt-2":"mt-5"," mb-2 ml-0 mr-0 pl-0 pr-0"),t.xp6(1),t.Q6J("ngTemplateOutlet",$),t.xp6(1),t.Q6J("ngIf","auth"==B.native)}}let tt=(()=>{class se{constructor(B,$,be,Ze,O,ce,C,M,j,X){this.fb=B,this.authService=$,this.router=be,this.route=Ze,this.commonService=O,this.messageService=ce,this.modalService=C,this.totpAuthRouting=M,this.totpFlow=j,this.document=X,this.widthClass="col-md-10 col-xl-6",this.native="auth",this.afterSuccessVerifyOtp=new t.vpe,this.onError=ne
1w t.vpe,this.onBack=new t.vpe,this.enrollmentEmailVerified=new t.vpe,this.title="Multi-Factor Auth",this.content="We've sent a verification code to your phone number or email. Enter the code to continue.",this.mfaData={},this.apiName="",this.httpOptions={},this.formData={},this.showBackButton=!1,this.isFullWidth=!1,this.embedded=!1,this.hideTermsCheck=!1,this.imageUrl=g.N.whitelabelLogoPath,this.environmentData=g.N,this.mfaForm=this.fb.group({otp:[null,[_.kI.required,_.kI.maxLength(6)]],agreed:[!1]}),this.checkAgreed=!1,this.loaders={logging:!1,timer:!1},this.TIMER=60,this.timer=this.TIMER,this.returnUrl="/",this.resendOTPPayload={},this.userId=null,this.showTermsModal=!1,this.showTermsCheck=!1,this.showBrandClass=!0,this.setTimer=()=>{this.intervalId=setInterval(()=>{this.timer>0&&(this.timer=this.timer-1)},1e3)}}ngOnInit(){let B=JSON.parse(localStorage.getItem("whitelabelResData"));if(this.termsAllowUsers=JSON.parse(localStorage.getItem("terms_allow_user")||"null"),(0,I.isEmpty)(B)||(this.loginLogo=`${this.imageUrl}/${B.logo_Login}`,this.tagName=B.tagName,B.logo_dashboard=`${this.imageUrl}/${B.logo_dashboard}`,this.showBrandClass=!1),this.mfaForm.get("agreed")?.valueChanges.subscribe(be=>{this.checkAgreed=be}),"auth"==this.native){if(this.user=this.authService.getUser,!this.embedded){const be=this.user?.themeColor||localStorage.getItem("defaultTheme")||"theme-purple-light";this.document.body.classList.remove("theme-cyan-light","theme-bluegrey-light","theme-purple-light"),this.document.body.classList.add(be)}this.apiName=T.D.mfa.verifyOTP,this.user?.id&&this.user?.email?(this.mfaData={email:this.user.email,id:this.user?.id,whitelabelData:B?.domainName==g.N?.portalUrl||"https://ipospays.tech"==B?.domainName?null:B},this.resendOTPApiName=T.D.mfa.resendOTP,this.resendOTPPayload=this.mfaData):this.router.navigate(["/auth/login"])}else this.mfaData?.uiRefId||this.onError.next({message:"Invalid Request !"}),this.resendOTPApiName=T.D.mfa.resendOTPWithUiRefId,this.resendOTPPayload={uiRefId:this.mfaData?.uiRefId,whitelabelData:B?.domainName==g.N?.portalUrl||"https://ipospays.tech"==B?.domainName?null:B};const $=localStorage.getItem("psi");this.addScriptElement($),this.showTermsCheck=!this.hideTermsCheck&&!!this.termsAllowUsers?.length&&this.termsAllowUsers.includes(this.user?.userType)&&!this.user?.isTermsCheck}onResendCode(){var B=this;return(0,i.Z)(function*(){if(B.loaders.timer=!B.loaders.timer,B.mfaData?.id||B.mfaData?.uiRefId)try{B.setTimer();const $=yield B.commonService.postCommonHttpClient(B.resendOTPApiName,B.resendOTPPayload).toPromise(),{message:be}=$;"MODAL"==$?.toaster_type&&be?B.authService.showModal({message:be,...$}):B.showSuccessToast(be),setTimeout(()=>{clearInterval(B.intervalId),B.loaders.timer=!B.loaders.timer,B.timer=B.TIMER},1e3*(B.TIMER-1))}catch($){clearInterval(B.intervalId),B.loaders.timer=!1,B.messageService.clear(),"MODAL"==$.type?B.authService.showModal($):B.showErrorToast($.message)}})()}onCancel(){var B=this;return(0,i.Z)(function*(){if("auth"==B.native)return B.embedded?void B.onBack.emit(!0):(window.open("/auth/login","_self"),void localStorage.removeItem("current_user"));B.onBack.next(!0)})()}onVerifyOtp(B){var $=this;return(0,i.Z)(function*(){const{otp:be}=$.mfaForm.value;if(be&&(!$.showTermsCheck||$.checkAgreed)){$.loaders.logging=!0;try{const O=yield $.commonService.postCommonHttpClient($.apiName,{..."auth"==$.native?$.mfaData:$.formData,otp:be,isTermsCheck:$.checkAgreed,UserRoleType:$.user?.userType},$.httpOptions).toPromise();if($.returnUrl=$.route.snapshot.queryParams.returnUrl||"/","auth"==$.native){if(O?.emailOtpVerified&&O?.totpEnrollmentPending)return $.loaders.logging=!1,$.messageService.clear(),$.authService.setUser({...$.authService.getUser,totpEnrollmentPending:!0,totpSetup:O?.totpSetup}),void $.enrollmentEmailVerified.emit(O);if(O?.accessToken)if($.authService.setUser(O),localStorage.setItem("logger_token","multiLogin"),"MULTI_STORE_MANAGER"==O?.userType)$.navigateToReturnUrl($.route.snapshot.queryParams.returnUrl||"/user-management/users");else if((O&&O.excludeFeatures||[]).indexOf("VIEW_DASHBOARD")>-1){const{roleFeatures:C}=O,M=(j,X)=>C.some(fe=>fe.module===j&&fe.features.includes(X));$.router.navigateByUrl(M("CLOUD_POS","PAYMENTS")?"/virtual-terminal/list":M("TRANSACTION","VIEW_TRANSACTION")?"/transaction-management/transactions":"/user-management/users")}else $.navigateToReturnUrl($.returnUrl);else $.loaders.logging=!1,$.messageService.clear(),$.showErrorToast("Something Happened , Please try again later!")}else $.afterSuccessVerifyOtp.next(O)}catch(O){if(console.log(O),$.messageService.clear(),"MODAL"==O.type){const ce=$.authService.showModal(O);$.totpAuthRouting.shouldNavigateToLoginAfterError(O)&&Promise.resolve(ce?.result).then(()=>$.goToLoginAfterUnrecoverableError(),()=>$.goToLoginAfterUnrecoverableError())}else $.showErrorToast(O.message);$.loaders.logging=!1}}})()}goToLoginAfterUnrecoverableError(){this.totpAuthRouting.returnToLoginAfterAbandon()}showErrorToast(B){this.messageService.clear();const $={severity:"error",summary:"Error",detail:B,sticky:!0};this.embedded||($.key="mfa-toast"),this.messageService.add($)}showSuccessToast(B){this.messageService.clear();
1const $={severity:"success",summary:"Success",detail:B,life:7e3};this.embedded||($.key="mfa-toast"),this.messageService.add($)}addScriptElement(B){if(!B)return;const $=document.createElement("script");$.id="mem-id",$.src=B,$.type="text/javascript",$.async=!0,$.defer=!0,$.referrerPolicy="strict-origin-when-cross-origin",document.getElementsByTagName("head")[0].appendChild($),document.getElementById("mem-id"),console.log("mem added")}ngOnDestroy(){const B=document.getElementById("mem-id");B&&B.remove(),console.log("mem removed:",B)}openTermsModal(B){B.preventDefault();const $=T.D?.loadTermsPdf;sessionStorage.setItem("termsPdfUrl",$),window.open("/terms-condition","_blank")}navigateToReturnUrl(B){B&&(B.startsWith("http://")||B.startsWith("https://"))?window.location.href=B:this.router.navigateByUrl(B||"/")}}return se.\u0275fac=function(B){return new(B||se)(t.Y36(_.qu),t.Y36(A.e),t.Y36(b.F0),t.Y36(b.gz),t.Y36(D.v),t.Y36(e.ez),t.Y36(n.FF),t.Y36(f.k),t.Y36(S._),t.Y36(v.K0))},se.\u0275cmp=t.Xpm({type:se,selectors:[["app-multi-factor-auth"]],inputs:{widthClass:"widthClass",native:"native",title:"title",content:"content",mfaData:"mfaData",apiName:"apiName",httpOptions:"httpOptions",formData:"formData",showBackButton:"showBackButton",isFullWidth:"isFullWidth",embedded:"embedded",hideTermsCheck:"hideTermsCheck"},outputs:{afterSuccessVerifyOtp:"afterSuccessVerifyOtp",onError:"onError",onBack:"onBack",enrollmentEmailVerified:"enrollmentEmailVerified"},decls:6,vars:4,consts:[["position","top-right","key","mfa-toast",4,"ngIf"],["position","top-right","key","mfa-toast",3,"breakpoints",4,"ngIf"],["mfaFormTemplate",""],[4,"ngIf"],[3,"class",4,"ngIf"],["position","top-right","key","mfa-toast"],["position","top-right","key","mfa-toast",3,"breakpoints"],["autocomplete","off",1,"forms-sample",3,"formGroup","submit"],[1,"form-group"],["for","exampleInputPassword1"],["autofocus","","placeholder","6 Digit code","inputmode","numeric","formControlName","otp","maxlength","6","required","",1,"form-control"],["class","check-box-card",4,"ngIf"],[1,"d-flex","justify-content-between","mt-3"],[1,"col-md-6","px-0"],["type","button","class","link-btn","tabindex","-1",3,"disabled","click",4,"ngIf"],["class","col-md-6 text-right",4,"ngIf"],["class","col-md-6 px-0 text-right","tabindex","-1",4,"ngIf"],[1,"mt-3"],["type","submit",1,"btn","btn-submit","btn-block",3,"disabled"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],[1,"loader_ml"],[3,"dismissible","type"],[1,"check-box-card"],[1,"form-check","align-items-center"],["type","checkbox","formControlName","agreed","id","agreeTerms",1,"form-check-input","form-check-box"],[1,"form-check-text"],[1,"terms-link","logo-tag-line1",3,"click"],[1,"log_forgot"],["type","button","tabindex","-1",1,"link-btn",3,"disabled","click"],[1,"col-md-6","text-right"],[1,"timer"],["tabindex","-1",1,"col-md-6","px-0","text-right"],["type","button",1,"link-btn",3,"disabled","click"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[4,"ngTemplateOutlet"],[1,"row","ml-0","mr-0"],["class","auth-form-wrapper px-4 py-4",4,"ngIf"],[1,"font-color","mt-3","px-2"],[1,"mt-2",2,"font-size","16px"],["class","font-color mt-3 px-2 proceed-text",4,"ngIf"],["class","pb-2 mt-2",4,"ngIf"],[1,"auth-form-wrapper","px-4","py-4"],[1,"font-color","mt-3","px-2","proceed-text"],[1,"terms-info","mt-2"],[1,"pb-2","mt-2"],["routerLink",".","class","noble-ui-logo text-center d-block log_align",4,"ngIf"],["routerLink",".","class","noble-ui-logo d-block text-center",4,"ngIf"],["class","text-center font-weight-normal logo-tag-line",4,"ngIf"],["routerLink",".",1,"noble-ui-logo","text-center","d-block","log_align"],["alt","IPOSPAYS",1,"footer-image",3,"src"],["routerLink",".",1,"noble-ui-logo","d-block","text-center"],["alt","IPOSPAYS",1,"logo_align","left-logo",3,"src"],[1,"text-center","font-weight-normal","logo-tag-line"]],template:function(B,$){1&B&&(t.YNc(0,Ie,1,0,"p-toast",0),t.YNc(1,Oe,1,4,"p-toast",1),t.YNc(2,F,19,14,"ng-template",null,2,t.W1O),t.YNc(4,ae,2,1,"ng-container",3),t.YNc(5,at,16,24,"div",4)),2&B&&(t.Q6J("ngIf",!$.embedded&&!$.commonService.isMobileView),t.xp6(1),t.Q6J("ngIf",!$.embedded&&$.commonService.isMobileView),t.xp6(3),t.Q6J("ngIf",$.embedded),t.xp6(1),t.Q6J("ngIf",!$.embedded))},dependencies:[v.O5,v.tP,b.yS,_._Y,_.Fj,_.Wl,_.JJ,_.JL,_.Q7,_.nD,_.sg,_.u,n.xm,J.FN,de.X$],styles:['@charset "UTF-8";.footer-image[_ngcontent-%COMP%]{height:auto;width:135px}.logo_align[_ngcontent-%COMP%]{height:auto;width:250px}.logo_align.left-logo[_ngcontent-%COMP%]{margin-left:-20px}.timer[_ngcontent-%COMP%]{border-radius:20%;padding:2px;border:.5px solid gray;width:25px;display:inline-block;text-align:center;font-size:12px;font-weight:600}.link-btn[_ngcontent-%COMP%]{outline:none;background:none;border:none}.card-bg-small-size[_ngcontent-%COMP%]{background-image:url(bg-white.e38dfd1843c4f5f3.png);background-position:center;background-repeat:no-repeat;background-size:cover}.bg-white[_ngcontent-%COMP%]{background-color:#fff!important}.check-box-card[_ngcontent-%COMP%]{margin:20px 0;border:1px solid gray;border-width:inherit;border-radius:3px;background:#f2f3f3}.form-check[_ngcontent-%COMP%]{position:relative;margin-top:10px;margin-bottom:20px;padding-left:30px}.form-check-text[_ngcontent-%COMP%]{min-height:18px;display:block;font-size:.875rem;line-height:1.5;margin:10px 5px;padding:7px 0}.form-check-input[_ngcontent-%COMP%]{position:absolute;margin:10px -16px}.form-check-box[_ngcontent-%COMP%]{margin-top:10px}.logo-tag-line1[_ngcontent-%COMP%]{color:#000;font-size:14px;font-family:Gibson Medium;font-weight:700;text-decoration:none}.logo-tag-line1[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-family:Overpass;text-decoration:underline}a.no-underline[_ngcontent-%COMP%]{text-decoration:none!important}.proceed-text[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%]     .login_card>.row{align-items:stretch}.login-div.auth-right-panel[_ngcontent-%COMP%]{display:flex!important;flex-direction:column;min-height:100%}.login-div.auth-right-panel[_ngcontent-%COMP%] > footer[_ngcontent-%COMP%]{margin-top:auto;flex-shrink:0}']}),se})()},30409:(Te,G,r)=>{"use strict";r.r(G),r.d(G,{BillingInvoiceModule:()=>Si});var i=r(94666),t=r(59462),_=r(83918),g=r(92218),T=r(54724),v=r(92938),I=r(91874),w=r(56908),A=r(65226),b=r(51005),D=r(11009),e=r(22560),n=r(33507),f=r(46261),S=r(20311),J=r(40929),de=r(19787),Ie=r(41205),z=r(2508),Ee=r(97212),Oe=r(59587),ee=r(28424),Me=r(23255),R=r(90413),W=r(33935),ie=r(32414);function ye(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",14)(1,"div",15)(2,"ng-select",16),e.NdJ("ngModelChange",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.statusTypes=h)})("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedFilter(h,"status"))}),e.qZA()(),e.TgZ(3,"div",15)(4,"ng-select",17),e.NdJ("ngModelChange",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedMonth=h)})("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedFilter(h,"month"))}),e.qZA()(),e.TgZ(5,"div",18)(6,"ng-select",19),e.NdJ("ngModelChange",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedYear=h)})("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedFilter(h,"year"))}),e.qZA()(),e._UZ(7,"div",18),e.TgZ(8,"div",20)(9,"button",21),e.NdJ("click",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.clear())}),e._uU(10,"Clear"),e.qZA()()()}if(2&p){const a=e.oxw();e.xp6(2),e.Q6J("items",a.status)("ngModel",a.statusTypes)("multiple",!1)("clearable",!1),e.xp6(2),e.Q6J("items",a.monthList)("ngModel",a.selectedMonth)("clearable",!1),e.xp6(2),e.Q6J("items",a.yearList)("ngModel",a.selectedYear)("clearable",!1)}}function Ue(p,L){1&p&&e._UZ(0,"app-loading")}function $e(p,L){1&p&&(e.TgZ(0,"div",22)(1,"div")(2,"p",23),e._uU(3," No Data "),e.qZA()()())}function ke(p,L){if(1&p&&(e.TgZ(0,"dd"),e._uU(1),e.ALo(2,"datePipe"),e.qZA()),2&p){const a=e.oxw().$implicit;
1e.xp6(1),e.Oqu(e.lcZ(2,1,null==a?null:a.paidDate))}}function Re(p,L){1&p&&(e.TgZ(0,"dd"),e._uU(1,"NA"),e.qZA())}function F(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",47),e.NdJ("click",function(){const N=e.CHM(a).index,ne=e.oxw(3);return e.KtG(ne.selected(N))}),e.TgZ(1,"div",48)(2,"a",49),e.NdJ("click",function(){const N=e.CHM(a).$implicit,ne=e.oxw(3);return e.KtG(ne.getUserDetails(N))}),e.TgZ(3,"div",50)(4,"div")(5,"div",51)(6,"p",52)(7,"span",53)(8,"strong"),e._uU(9),e.qZA()(),e._UZ(10,"span",54),e.qZA(),e.TgZ(11,"p",55)(12,"span",53)(13,"strong"),e._uU(14),e.qZA()()()(),e._UZ(15,"hr"),e.TgZ(16,"div",56)(17,"div",57)(18,"dt"),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"dd"),e._uU(22),e.qZA()(),e.TgZ(23,"div",58)(24,"dt"),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.YNc(27,ke,3,3,"dd",11),e.YNc(28,Re,2,0,"dd",11),e.qZA(),e.TgZ(29,"div",59)(30,"span",60)(31,"strong"),e._uU(32),e.ALo(33,"currency"),e.qZA()()()()()()()()()}if(2&p){const a=L.$implicit,c=L.index,h=e.oxw(3);e.ekj("active",h.viewMode==c),e.xp6(9),e.Oqu((null==a||null==a.splitUpJSON?null:a.splitUpJSON.isoName)||"NA"),e.xp6(5),e.Oqu(null==a?null:a.invoiceStatus),e.xp6(5),e.Oqu(e.l
1cZ(20,11,"invoice.period")),e.xp6(3),e.AsE("",h.getMonthName(null==a?null:a.month)," - ",null==a?null:a.year,""),e.xp6(3),e.Oqu(e.lcZ(26,13,"invoice.paid")),e.xp6(2),e.Q6J("ngIf",null!=(null==a?null:a.paidDate)),e.xp6(1),e.Q6J("ngIf",null==(null==a?null:a.paidDate)),e.xp6(4),e.Oqu(e.lcZ(33,15,null==a?null:a.totalBilledAmt))}}function Q(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",41,42),e._UZ(2,"p",43),e.YNc(3,F,34,17,"div",44),e.qZA(),e.TgZ(4,"div",45)(5,"ngb-pagination",46),e.NdJ("pageChange",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.page=h)})("pageChange",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.getPage(h.page))}),e.qZA()()}if(2&p){const a=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",a.billingInvoiceListData),e.xp6(2),e.Q6J("collectionSize",a.collectionSize)("page",a.page)("maxSize",3)("rotate",!0)("pageSize",a.limit)}}function ae(p,L){1&p&&e._UZ(0,"span",91)}function H(p,L){if(1&p&&(e.TgZ(0,"span",95),e._UZ(1,"i",96),e.qZA()),2&p){const a=e.oxw(4);e.Q6J("ngbPopover",null!=a.viewInvoice&&a.viewInvoice.priorityId?"Edit Priority Id":"Add Priority Id")}
1}function ge(p,L){1&p&&e._UZ(0,"span",97)}function Se(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"a",92),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(3);return e.KtG(h.openPriorityIdModal())}),e.YNc(1,H,2,1,"span",93),e.YNc(2,ge,1,0,"span",94),e.qZA()}if(2&p){const a=e.oxw(3);e.xp6(1),e.Q6J("ngIf",a.showEditIcon),e.xp6(1),e.Q6J("ngIf",a.isPriorityLoading)}}function Je(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",61)(1,"div",62)(2,"div",63)(3,"div",64),e._UZ(4,"i",65),e.TgZ(5,"div")(6,"h4",66),e._uU(7),e.qZA()()(),e.TgZ(8,"div",67)(9,"div")(10,"h4"),e._uU(11),e.ALo(12,"translate"),e.qZA()()()()(),e.TgZ(13,"div",68)(14,"div",63)(15,"div",69),e._UZ(16,"i",65),e.TgZ(17,"div")(18,"h4",70),e._uU(19),e.ALo(20,"translate"),e.qZA()()(),e.TgZ(21,"div",67)(22,"div")(23,"h5"),e._uU(24),e.ALo(25,"translate"),e.ALo(26,"datePipe"),e.qZA()()()()(),e.TgZ(27,"div",71)(28,"div",72)(29,"span",73)(30,"strong"),e._uU(31),e.ALo(32,"currency"),e.qZA()()(),e.TgZ(33,"div",74)(34,"div",75,76)(36,"button",77),e.YNc(37,ae,1,0,"span",78),e._uU(38),e.ALo(39,"translate"),e.qZA(),e.TgZ(40,"div",79)(41,"button",80),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.downLoadISOInvoice(!0,"Downloading"))}),e._UZ(42,"i",81),e.TgZ(43,"span"),e._uU(44),e.ALo(45,"translate"),e.qZA()(),e.TgZ(46,"button",82),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.downLoadISOInvoiceBill("pdf"))}),e._UZ(47,"i",81),e.TgZ(48,"span"),e._uU(49),e.ALo(50,"translate"),e.qZA()(),e.TgZ(51,"button",82),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.commitInvoice("COMMIT"))}),e._UZ(52,"i",81),e.TgZ(53,"span"),e._uU(54),e.ALo(55,"translate"),e.qZA()(),e.TgZ(56,"button",82),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.commitInvoice("APPROVE"))}),e._UZ(57,"i",81),e.TgZ(58,"span"),e._uU(59),e.ALo(60,"translate"),e.qZA()()()()()(),e.TgZ(61,"div",83)(62,"div",84)(63,"div",85)(64,"dt"),e._UZ(65,"span",86),e._uU(66),e.ALo(67,"translate"),e.YNc(68,Se,3,2,"a",87),e.qZA(),e.TgZ(69,"dd",88),e._uU(70),e.qZA()(),e.TgZ(71,"div",85)(72,"dt"),e._UZ(73,"span",86),e._uU(74),e.ALo(75,"translate"),e.qZA(),e.TgZ(76,"dd",88),e._uU(77),e.qZA()(),e.TgZ(78,"div",85)(79,"dt"),e._UZ(80,"span",89),e._uU(81),e.ALo(82,"translate"),e.qZA(),e.TgZ(83,"dd",88),e._uU(84),e.qZA()(),e.TgZ(85,"div",85)(86,"dt"),e._UZ(87,"span",90),e._uU(88),e.ALo(89,"translate"),e.qZA(),e.TgZ(90,"dd",88),e._uU(91),e.ALo(92,"currency"),e.qZA()(),e.TgZ(93,"div",85)(94,"dt"),e._UZ(95,"span",90),e._uU(96),e.ALo(97,"translate"),e.qZA(),e.TgZ(98,"dd",88),e._uU(99),e.ALo(100,"currency"),e.qZA()(),e.TgZ(101,"div",85)(102,"dt"),e._UZ(103,"span",90),e._uU(104),e.ALo(105,"translate"),e.qZA(),e.TgZ(106,"dd",88),e._uU(107),e.ALo(108,"currency"),e.qZA()(),e.TgZ(109,"div",85)(110,"dt"),e._UZ(111,"span",90),e._uU(112),e.ALo(113,"translate"),e.qZA(),e.TgZ(114,"dd",88),e._uU(115),e.ALo(116,"currency"),e.qZA()(),e.TgZ(117,"div",85)(118,"dt"),e._UZ(119,"span",90),e._uU(120),e.ALo(121,"translate"),e.qZA(),e.TgZ(122,"dd",88),e._uU(123),e.ALo(124,"currency"),e.qZA()(),e.TgZ(125,"div",85)(126,"dt"),e._UZ(127,"span",90),e._uU(128),e.ALo(129,"translate"),e.qZA(),e.TgZ(130,"dd",88),e._uU(131),e.ALo(132,"currency"),e.qZA()(),e.TgZ(133,"div",85)(134,"dt"),e._UZ(135,"span",90),e._uU(136),e.ALo(137,"translate"),e.qZA(),e.TgZ(138,"dd",88),e._uU(139),e.ALo(140,"currency"),e.qZA()()()()()}if(2&p){const a=e.oxw(2);e.xp6(3),e.Q6J("ngClass",null==a.viewInvoice?null:a.viewInvoice.invoiceStatus),e.xp6(4),e.hij(" ",null==a.viewInvoice?null:a.viewInvoice.invoiceStatus," "),e.xp6(4),e.AsE("",e.lcZ(12,38,"invoice.invoiceNumber")," ",null==a.viewInvoice?null:a.viewInvoice.invoiceNumber,""),e.xp6(8),e.hij(" ",e.lcZ(20,40,"invoice.summary")," "),e.xp6(5),e.AsE("",e.lcZ(25,42,"invoice.generated")," ",e.lcZ(26,44,null==a.viewInvoice?null:a.viewInvoice.generatedDate),""),e.xp6(7),e.hij("Total: ",e.lcZ(32,46,null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.total),""),e.xp6(6),e.Q6J("ngIf",a.isDownloadStatus),e.xp6(1),e.hij(" ",e.lcZ(39,48,"invoice.more"),""),e.xp6(6),e.Oqu(e.lcZ(45,50,"invoice.renderInvoice")),e.xp6(2),e.Q6J("disabled",a.isNull(null==a.viewInvoice?null:a.viewInvoice.pdfFileLocation)),e.xp6(3),e.Oqu(e.l
1cZ(50,52,"invoice.renderInvoiceBill")),e.xp6(2),e.Q6J("disabled",a.isCommitEnable),e.xp6(3),e.Oqu(e.lcZ(55,54,"invoice.commitInvoice")),e.xp6(2),e.Q6J("disabled",a.enableApprovalButton(a.viewInvoice)),e.xp6(3),e.Oqu(e.lcZ(60,56,"invoice.approveInvoice")),e.xp6(7),e.hij("",e.lcZ(67,58,"customers.priorityId")," "),e.xp6(2),e.Q6J("ngIf",a.isEditDisabled),e.xp6(2),e.Oqu((null==a.viewInvoice?null:a.viewInvoice.priorityId)||"NA"),e.xp6(4),e.hij("",e.lcZ(75,60,"invoice.merchant"),"#"),e.xp6(3),e.Oqu((null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.totalMerchant)||"NA"),e.xp6(4),e.hij("",e.lcZ(82,62,"invoice.tpn"),"#"),e.xp6(3),e.Oqu((null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.totalTpn)||"NA"),e.xp6(4),e.Oqu(e.lcZ(89,64,"invoice.fixedFee")),e.xp6(3),e.Oqu(e.gM2(92,66,a.displayFixedFee,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(97,71,"invoice.spinFee")),e.xp6(3),e.Oqu(e.gM2(100,73,(null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.spinFixedFee)||0,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.l
1cZ(105,78,"invoice.setUpFee")),e.xp6(3),e.Oqu(e.gM2(108,80,a.displaySetUpFixedFee,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(113,85,"invoice.variableFee")),e.xp6(3),e.Oqu(e.gM2(116,87,null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.variableFee,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(121,92,"invoice.txSMSFee")),e.xp6(3),e.Oqu(e.gM2(124,94,null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.smsFee,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(129,99,"invoice.assetProtectionFee")),e.xp6(3),e.Oqu(e.gM2(132,101,(null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.assetBilledAmount)||0,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(137,106,"invoice.vasIntegrationFee")),e.xp6(3),e.Oqu(e.gM2(140,108,(null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.vasIntegrationFee)||0,"USD","symbol","1.1-4"))}}function We(p,L){if(1&p&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26)(3,"div",27)(4,"div",28)(5,"div",29)(6,"div",30)(7,"div",31)(8,"p",32)(9,"span",33),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",34)(13,"ul",35,36)(15,"li",37),e.YNc(16,Q,6,6,"ng-template",38),e.qZA()(),e._UZ(17,"div",39),e.qZA()()(),e.YNc(18,Je,141,113,"div",40),e.qZA()()()()()),2&p){const a=e.MAs(14),c=e.oxw();e.xp6(10),e.AsE(" ",e.lcZ(11,5,"transactionInvoice")," (",c.collectionSize,")"),e.xp6(5),e.Q6J("ngbNavItem",1),e.xp6(2),e.Q6J("ngbNavOutlet",a),e.xp6(1),e.Q6J("ngIf",c.billingInvoiceListData)}}let He=(()=>{class p{constructor(a,c,h,N,ne,ue,Ae){this.commonService=a,this.messageService=c,this.CustomerService=h,this.ngbModal=N,this.route=ne,this.router=ue,this.authService=Ae,this.page=1,this.limit=20,this.size=20,this.isPagination=!1,this.viewMode=0,this.displayFixedFee=0,this.displaySetUpFixedFee=0,this.isDownloadStatus=!1,this.eventsSubject=new g.xQ,this.isShow=!1,this.statusTypes=[],this.startYear=2022,this.yearList=[],this.validMonthYear=!1,this.currentInvoiceType=this.router.url.split("/").pop(),this.monthList=w.months().map((we,Pe)=>({label:we,value:Pe})),this.isDisableEditInvoice=!1,this.status=["COMMITTED","UNCOMMITTED","APPROVED","DECLINED"],this.isPriorityLoading=!1,this.isCommitEnable=!1}ngOnInit(){this.currentInvoiceType=this.router.url.split("?")[0].split("/").pop(),this.filterQuery={invoiceType:this.currentInvoiceType},this.jumpFromCustomersInvoiceGeneration(),this.isLoading=!0;let a=Number(w().format("YYYY"));for(let h=this.startYear;h<=a;h++)this.yearList.push(h);this.authService.getUserRoleType()?.userType===D.F.SYSTEM&&(this.isDisableEditInvoice=!0)}selectedFilter(a,c){this.filterQuery.isFilter=!0,this.filterQuery.size=20,this.filterQuery.invoiceType=this.currentInvoiceType,(0,v.isEmpty)(a)&&""==a?this.filterQuery[c]="":"status"===c||"year"===c?this.filterQuery[c]=a:"month"===c?this.filterQuery[c]=a?.value+1:"queryString"===c&&(this.filterQuery[c]=null!=a?.data||null!=a?.data?a?.data:""),this.searchTerm&&(this.filterQuery.queryString=this.searchTerm),this.getInvoiceDetails({isFilter:!0,page:this.page,...this.filterQuery})}clear(){this.filterQuery={hostResponseCode:"",year:"",month:"",status:"",invoiceType:this.currentInvoiceType},this.selectedYear=[],this.statusTypes=[],this.selectedMonth=[],this.eventsSubject.next(),this.getInvoiceDetails({isFilter:!1,page:this.page,size:this.size,...this.filterQuery})}getInvoiceDetails(a){this.billingInvoiceListViewSub=this.commonService.getCommonHttpClientQueryParams(T.D.getAllBillingInvoice,a).subscribe(c=>{this.isLoading=!1,this.isPriorityLoading=!1,this.billingInvoiceListUnFilteredData=this.billingInvoiceListData=c.data.items,this.masterCollectionSize=this.collectionSize=c.data.totalItems,this.messageService.clear(),this.setViewInvoice(this.billingInvoiceListData.length>0?this.billingInvoiceListData[0]:[]),this.viewMode=0,this.isCommitButtonDisabled(),(0,v.isEmpty)(this.billingInvoiceListData)&&(this.messageService.clear(),this.showNoDataMessage())},c=>{this.showAlert(c,"error")})}getPage(a){this.page=a,this.getInvoiceDetails({isFilter:!1,page:this.page,size:this.size,...this.filterQuery})}applyFilters(a){let{data:c,searchTerm:h}=a;this.searchTerm=h,(0,v.isEmpty)(c)?(this.billingInvoiceListData=this.billingInvoiceListUnFilteredData,this.billingInvoiceListData&&(this.setViewInvoice(this.billingInvoiceListData.length>0?this.billingInvoiceListData[0]:[]),this.isCommitButtonDisabled()),this.viewMode=0,this.collectionSize=this.masterCollectionSize,this.total=this.totalPage):(this.billingInvoiceListData=c.data.items,this.setViewInvoice(this.billingInvoiceListData.length>0?this.billingInvoiceListData[0]:[]),this.isCommitButtonDisabled(),this.viewMode=0,this.collectionSize=c.data.totalItems,this.total=c.data.totalItems),(0,v.isEmpty)(this.billingInvoiceListData)&&!(0,v.isEmpty)(c)&&(this.messageService.clear(),this.showNoDataMessage())}toggleDisplay(){this.isShow=!this.isShow}getUserDetails(a){this.setViewInvoice(a),this.isCommitButtonDisabled()}setViewInvoice(a){this.viewInvoice=a;const c=a?.splitUpJSON;this.displayFixedFee=this.combinedSplitUpFee(c,"fixedFee","unattendedFixedFee"),this.displaySetUpFixedFee=this.combinedSplitUpFee(c,"setUpFixedFee","unattendedSetUpFixedFee")}showNoDataMessage(){this.messageService.add({severity:"error",summary:"Error",detail:"Sorry! No Invoice exists.",sticky:!0})}showAlert(a,c){this.messageService.add({severity:c,summary:a.status,detail:a.message})}selected(a){this.viewMode=a}refreshPage(){this.getInvoiceDetails({page:this.page,size:20,...this.filterQuery})}openLoaderModal(a="Downloading"){window.scroll(0,0),this.modalReference=this.ngbModal.open(b.k,{backdrop:"static",keyboard:!1,centered:!0,size:"lg"}),this.modalReference.componentInstance.isLoading=!0,this.modalReference.componentInstance.body=a}downLoadISOInvoice(a,c="Downloading"){var h=this;return(0,_.Z)(function*(){const{isoId:N,month:ne,year:ue,excelFileLocation:Ae,priorityId:we,id:Pe}=h.viewInvoice;if(console.log("...priorityId...",we),"NA"==Ae){h.openLoaderModal(c),h.isDownloadStatus=!0;let me={isoId:N,month:ne,year:ue,action:"invoiceBillingExcelData",isPPICustId:!(0,v.isEmpty)(we)},ve=yield h.commonService.getCommonHttpClientQueryParams(h.CustomerService.calculateISOMonthlyBillingSummary,me).toProm
1ise().then(({message:Ce})=>{if(Ce){if(!a)return Ce;h.download({...Ce,isPPICustId:me.isPPICustId})}},function(){var Ce=(0,_.Z)(function*(Xe){yield h.updateInvoiceStatus({invoiceId:Pe,status:"UNCOMMITTED"}),h.isDownloadStatus=!1,h.modalReference.close(),h.refreshPage(),h.showAlert({status:Xe.status,message:Xe.message},"error")});return function(Xe){return Ce.apply(this,arguments)}}());if(!a)return ve}else h.downLoadISOInvoiceBill("excel")})()}download(a){this.isDownloadStatus=!1;const{month:h,year:N}=this.viewInvoice;let ne=[this.withCombinedUnattendedSummary(a.summary)];(0,v.head)(ne).assetProtectionTotal=a.assetProtectionTotal;let ue=`${a.summary.isoName}-${h}-${N}.xlsx`;const Ae=!(!a.showUnattendedBilling&&!a.summary?.showUnattendedBilling),me=Ae?[{header:"Unattended Variable Fee",key:"unattendedVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}}]:[];let ve={worksheet:[{name:"Details",columns:[{header:"ISO DBA",key:"isoDba",width:25},{header:"Agent Office",key:"subIsoDba",width:25},{header:"Merchant DBA",key:"merchantDba",width:25},{header:"Store DBA",key:"storeName",width:25},{header:"ISO Reference",key:"isoReference",width:25},{header:"Merchant Reference",key:"merchantReference",width:25},{header:"Month/Year",key:"monthYear",width:10},{header:"TPN #",key:"tpn#",width:15,style:{numFmt:"0"}},{header:"Unused TPN",key:"unusedTpn",width:12},{header:"Model",key:"device",width:15},{header:"Serial #",key:"serialNumber",width:15},{header:"Mid",key:"mid",width:15},{header:"Activated On",key:"activatedOn",width:13},{header:"Deactivated On",key:"deactivatedOn",width:13},{header:"Bill as ( Primary/Add-on)",key:"billAs",width:10},{header:"# of billing days",key:"noOfBillingDays",width:10},{header:"Primary TPN Contract rate",key:"primaryTpnContractFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on Contract rate",key:"addOnTpnContractFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Fixed Fee",key:"fixedFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Spin (Primary/Add-on)",key:"isPrimarySpin",width:25},{header:"Primary Spin rate",key:"spinPrimaryFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on Spin rate",key:"spinAddOnFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Spin Fee",key:"spinFixedFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Setup Fee As(Primary/Add-on)",key:"isSetupStatus",width:25},{header:"Primary CloudPOS setup fee",key:"cPosPrimarySetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on CloudPOS setup fee",key:"cPosAddOnSetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Primary POS setup fee",key:"posPrimarySetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on POS setup fee",key:"posAddOnSetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Primary TOP Andriod setup fee",key:"topPrimarySetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on TOP Andriod setup fee",key:"topAddOnSetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Primary TOP iOS setup fee",key:"topIosPrimarySetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on TOP iOS setup fee",key:"topIosAddOnSetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},...Ae?[{header:"Primary Unattended setup fee",key:"unattendedPrimarySetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Add-on Unattended setup fee",key:"unattendedAddOnSetUpFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}}]:[],{header:"Setup Fee",key:"setUpFixedFee",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"# of Cloudpos Tx",key:"cPosTx",width:10},{header:"CloudPOS Volume",key:"cPosVol",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"CloudPOS Contract rate per Tx",key:"cPosTxContractFeePerTx",width:10,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"CloudPOS Contract rate on volume",key:"cPosTxContractVolPerTx",width:10,style:{numFmt:"0.00%"}},{header:"CloudPOS Tx Fee",key:"cPosTxFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"CloudPOS Volume Fee",key:"cPosTxVolFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"# of TOP Andriod Tx",key:"topTx",width:15},{header:"TOP Andriod volume",key:"topVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP Andriod Contract rate per Tx",key:"topTxContractFeePerTx",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP Andriod Contract rate on volume",key:"topTxContractVolPerTx",width:15,style:{numFmt:"0.00%"}},{header:"TOP Andriod Tx Fee",key:"topTxFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP Andriod Volume Fee",key:"topTxVolFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"# of POS Tx",key:"posTx",width:15},{header:"POS volume",key:"posVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"POS Contract rate per Tx",key:"posTxContractFeePerTx",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"POS Contract rate on volume",key:"posTxContractVolPerTx",width:15,style:{numFmt:"0.00%"}},{header:"POS Tx Fee",key:"posTxFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"POS Volume Fee",key:"posTxVolFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},...Ae?[{header:"# of Unattended Tx",key:"unattendedTx",width:15},{header:"Unattended volume",key:"unattendedTxVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Unattended Contract rate per Tx",key:"unattendedTxContractFeePerTx",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Unattended Contract rate on volume",key:"unattendedTxContractVolPerTx",width:15,style:{numFmt:"0.00%"}},{header:"Unattended Tx Fee",key:"unattendedTxFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Unattended Volume Fee",key:"unattendedTxVolFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}}]:[],{header:"# of TOP iOS Tx",key:"topIosTx",width:15},{header:"TOP iOS volume",key:"topIosVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP iOS Contract rate per Tx",key:"topIosTxContractFeePerTx",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP iOS Contract rate on volume",key:"topIosTxContractVolPerTx",width:15,style:{numFmt:"0.00%"}},{header:"TOP iOS Tx Fee",key:"topIosTxFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP iOS Volume Fee",key:"topIosTxVolFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"# of Tx SMS",key:"txSMS",width:15},{header:"# of Promo SMS",key:"promotionalSMS",width:15},{header:"Contract - Tx SMS",key:"txSmsContractFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Contract - Promo SMS",key:"promotionalSmsContractFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Tx SMS Fee",key:"txSmsFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Promo SMS Fee",key:"promotionalSmsFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"QB Primary TPN Fee",key:"qbPrimaryTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"QB Add-On TPN Fee",key:"qbAddOnTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"QB Per Txn Fee",key:"qbPerTxnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"QB Capped Fee ",key:"qbMaxTxnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"QB Txn Vol Fee",key:"qbTxnVolFee",width:15,style:{numFmt:"0.00%"}},{header:"QB Total Txn",key:"qbTotalTxn",width:15},{header:"QB Total Txn Vol",key:"qbTotalTxnVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"QB Total Fee",key:"qbTotalVasFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"L2L3 Primary TPN Fee",key:"l2l3PrimaryTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"L2L3 Add-On TPN Fee",key:"l2l3AddOnTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"L2L3 Per Txn Fee",key:"l2l3PerTxnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"L2L3 Txn Vol Fee",key:"l2l3TxnVolFee",width:15,style:{numFmt:"0.00%"}},{header:"L2L3 Total Txn",key:"l2l3TotalTxn",width:15},{header:"L2L3 Total Txn Vol",key:"l2l3TotalTxnVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"L2L3 Total Fee",key:"l2l3TotalVasFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"ECOM Primary TPN Fee",key:"ecomPrimaryTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"ECOM Add-On TPN Fee",key:"ecomAddOnTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"ECOM Per Txn Fee",key:"ecomPerTxnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"ECOM Txn Vol Fee",key:"ecomTxnVolFee",width:15,style:{numFmt:"0.00%"}},{header:"ECOM Total Txn",key:"ecomTotalTxn",width:15},{header:"ECOM Total Txn Vol",key:"ecomTotalTxnVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"ECOM Total Fee",key:"ecomTotalVasFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}}
1,{header:"IBS Primary TPN Fee",key:"ibsPrimaryTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"IBS Add-On TPN Fee",key:"ibsAddOnTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"IBS Per Txn Fee",key:"ibsPerTxnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"IBS Txn Vol Fee",key:"ibsTxnVolFee",width:15,style:{numFmt:"0.00%"}},{header:"IBS Total Txn",key:"ibsTotalTxn",width:15},{header:"IBS Total Txn Vol",key:"ibsTotalTxnVol",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"IBS Total Fee",key:"ibsTotalVasFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"3DS Primary TPN Fee",key:"threedsPrimaryTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"3DS Add-On TPN Fee",key:"threedsAddOnTpnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"3DS Per Txn Fee",key:"threedsPerTxnFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"3DS Total Txn",key:"threedsTotalTxn",width:15},{header:"3DS Total Fee",key:"threedsTotalVasFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"VAS Integration Fee",key:"vasIntegrationFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Total",key:"totalBilledAmt",width:20,style:{numFmt:"$#,##0.00;[Red]-$#,##0.00",font:{bold:!0}}}],rows:a.details,isRow:0,frozen:!0},{name:"Store Summary",columns:[{header:"ISO DBA",key:"isoDba",width:25},{header:"Merchant DBA",key:"merchantDBA",width:15},{header:"Store DBA",key:"storeDba",width:15},{header:"ISO Reference",key:"isoReference",width:25},{header:"Merchant Reference",key:"merchantReference",width:25},{header:"# of TPNs",key:"tpnCount",width:15},{header:"Fixed Fee",key:"fixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Spin Fee",key:"spinFixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Setup Fee",key:"setUpFixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"CloudPos Variable Fee",key:"cPosVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Pos Variable Fee",key:"posVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP Andriod Variable Fee",key:"topVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP iOS Variable Fee",key:"topIosVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},...me,{header:"Tx SMS Fee",key:"smsVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"VAS Integration Fee",key:"vasIntegrationFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Total",key:"total",width:15,style:{numFmt:"$#,##0.00;[Red]-$#,##0.00",font:{bold:!0}}}],rows:a.storeSummary,isRow:0,frozen:!0},{name:"Merchant Summary",columns:[{header:"ISO DBA",key:"isoDBA",width:25},{header:"Merchant DBA",key:"merchantDBA",width:15},{header:"ISO Reference",key:"isoReference",width:25},{header:"Merchant Reference",key:"merchantReference",width:25},{header:"# of TPNs",key:"tpnCount",width:15},{header:"Fixed Fee",key:"fixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Spin Fee",key:"spinFixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Setup Fee",key:"setUpFixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"CloudPos Variable Fee",key:"cPosVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Pos Variable Fee",key:"posVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP Andriod Variable Fee",key:"topVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"TOP iOS Variable Fee",key:"topIosVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},...me,{header:"Tx SMS Fee",key:"smsVariableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"VAS Integration Fee",key:"vasIntegrationFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Total",key:"total",width:15,style:{numFmt:"$#,##0.00;[Red]-$#,##0.00",font:{bold:!0}}}],rows:a.merchantSummary,isRow:0,frozen:!0},{name:"Summary",columns:[{header:"ISO DBA",key:"isoName",width:25},{header:"# of Merchants",key:"totalMerchant",width:15},{header:"# of TPNs",key:"totalTpn",width:15},{header:"Fixed Fee",key:"fixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Spin Fee",key:"spinFixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Setup Fee",key:"setUpFixedFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Variable Fee",key:"variableFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"SMS Fee",key:"smsFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"VAS Integration Fee",key:"vasIntegrationFee",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Asset Protection Fee",key:"assetProtectionTotal",width:15,style:{numFmt:"$#,##0.0000;[Red]-$#,##0.0000"}},{header:"Total",key:"total",width:15,style:{numFmt:"$#,##0.00;[Red]-$#,##0.00",font:{bold:!0}}}],rows:ne,isRow:0}],fileName:ue};
1if(a.assetProtectionDetails&&a.assetProtectionDetails.length>0){const Ce=a.assetProtectionTotal,Xe=ve.worksheet.findIndex(Ct=>"Summary"===Ct.name),it={name:"Asset Protection",columns:[{header:"ISO DBA",key:"isoDBA",width:25},{header:"Merchant DBA",key:"merchantDBA",width:25},{header:"TPN #",key:"tpn",width:15,style:{numFmt:"0"}},{header:"Serial Number",key:"serialNumber",width:25},{header:"Billing Type",key:"billingType",width:25},{header:"Contract Fee",key:"contractFee",width:15,style:{numFmt:"$#,##0.00;[Red]-$#,##0.00"}},{header:"Calculated Fee",key:"calculatedFee",width:15,style:{numFmt:"$#,##0.00;[Red]-$#,##0.00",font:{bold:!0}}}],rows:a.assetProtectionDetails,isRow:0,frozen:!0};a.isPPICustId||(it.rows.push({},{}),it.rows.push({isoDBA:"",merchantDBA:"",tpn:"",billingType:"",contractFee:"Total Amount",calculatedFee:Ce,style:{font:{bold:!0},numFmt:"$#,##0.00;[Red]-$#,##0.00"}})),ve.worksheet.splice(Xe,0,it)}this.commonService.downloadAsExcel(ve,{storeFeeData:a.storeFeeData,unattendedFeeData:a.unattendedFeeData}).then(Ce=>{this.modalReference.close()})}combinedSplitUpFee(a,c,h){return Number((0,v.get)(a,c,0)||0)+Number((0,v.get)(a,h,0)||0)}withCombinedUnattendedSummary(a){if(!a)return a;const{unattendedFixedFee:c,unattendedSetUpFixedFee:h,...N}=a;return{...N,fixedFee:this.combinedSplitUpFee(a,"fixedFee","unattendedFixedFee"),setUpFixedFee:this.combinedSplitUpFee(a,"setUpFixedFee","unattendedSetUpFixedFee")}}getMonthName(a){return this.commonService.getMonthName(a)}ngOnDestroy(){this.billingInvoiceListViewSub&&this.billingInvoiceListViewSub.unsubscribe()}commitInvoice(a){var c=this;console.log("...this.viewInvoice....",this.viewInvoice);const{month:h,year:N,invoiceNumber:ne,id:ue,priorityId:we}=this.viewInvoice;let Pe=Number(w().format("M")),me=Number(w().format("YYYY")),ve=`Do you want to ${(0,v.capitalize)(a)} the Invoice# `+ne;console.log("....status...",a);let Ce=this.ngbModal.open(I.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});Ce.componentInstance.header="Invoice Confirmation",Pe==h&&N==me&&(ve=`Do you want to proceed with ${(0,v.capitalize)(a)} invoice of current month (${w().format("MMM")} - ${me}).`),Ce.componentInstance.body=ve,Ce.componentInstance.cancelButton=!0,Ce.componentInstance.commitButton=!0,Ce.componentInstance.commitButtonText=(0,v.capitalize)(a),Ce.componentInstance.invoiceData=this.viewInvoice,Ce.result.then(function(){var Xe=(0,_.Z)(function*(it){if("success"==it){if("COMMIT"==a&&!(0,v.isEmpty)(we)){let Ct=yield c.downLoadISOInvoice(!1,"Uploading files");console.log("...fileDetails...",Ct);let On={invoiceId:ue,s3BucketFileName:Ct.s3BucketFileName,customerId:we};return console.log("....s3Status......",Ct.s3BucketFileName),c.modalReference.componentInstance.body="Processing your request to Priority Payments",void(yield c.commonService.postCommonHttpClient(T.D.ppiPushApi,On).toPromise().then(function(){var Ot=(0,_.Z)(function*(Tt){return yield c.updateInvoiceStatus({invoiceId:ue,status:"APPROVED"}),c.isDownloadStatus=!1,c.modalReference.close(),console.log(".....res......",Tt),c.refreshPage(),c.showAlert({status:`${(0,v.capitalize)("APPROVED")} Invoice`,message:`Invoice ${(0,v.capitalize)("APPROVED")} Successfully`},"success"),Tt});return function(Tt){return Ot.apply(this,arguments)}}(),function(){var Ot=(0,_.Z)(function*(Tt){yield c.updateInvoiceStatus({invoiceId:ue,status:"UNCOMMITTED"}),c.isDownloadStatus=!1,c.modalReference.close(),console.log("......errr.........",Tt),c.refreshPage(),c.showAlert({status:Tt.status,message:Tt.message,sticky:!0},"error")});return function(Tt){return Ot.apply(this,arguments)}}()))}c.showAlert({status:`${(0,v.capitalize)(a)} Invoice`,message:`Invoice ${a} Successfully`},"success"),c.refreshPage()}});return function(it){return Xe.apply(this,arguments)}}())}enableApprovalButton(a){let c=JSON.parse(localStorage.getItem("current_user"));return!("COMMITTED"==(0,v.get)(a,"invoiceStatus")&&"FINANCE_ADMIN"===c.userTypeRole)}downLoadISOInvoiceBill(a){this.openLoaderModal("Downloading"),this.isDownloadStatus=!0,this.commonService.getCommonFileDownload(T.D.downloadBillInvoicePDF+"/"+this.viewInvoice.id+"/"+a).subscribe(c=>{let h=window.URL.createObjectURL(c),N="";N="pdf"==a?this.viewInvoice.pdfFileLocation.split("/"):this.viewInvoice.excelFileLocation.split("/"),A.saveAs(h,N[N.length-1]),this.isDownloadStatus=!1,this.modalReference.close()})}isNull(a){return"NA"==a}jumpFromCustomersInvoiceGeneration(){var a=this;return this.route.queryParams.subscribe(function(){var c=(0,_.Z)(function*(h){(0,v.isEmpty)(h)?a.getInvoiceDetails({isFilter:!0,page:a.page,size:a.size,...a.filterQuery}):a.getInvoiceDetails({isFilter:!0,page:a.page,size:a.size,status:h.status,year:h.year,month:h.month,queryString:h.queryString,...a.filterQuery})});return function(h){return c.apply(this,arguments)}}())}updateInvoiceStatus(a){var c=this;return(0,_.Z)(function*(){return c.commonService.getCommonHttpClientQueryParams(T.D.commitInvoice,a).toPromise().then(h=>h,h=>(console.log("in err",h),c.showAlert(h,"error")))})()}openPriorityIdModal(){var a=this;this.isPriorityLoading=!1;let c=this.ngbModal.open(I.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});
1c.componentInstance.header=this.viewInvoice?.priorityId?"Edit Priority Id":"Add Priority Id",c.componentInstance.editPriorityId=!0,c.componentInstance.priorityId=this.viewInvoice?.priorityId||"",c.componentInstance.buttonName="Save",c.componentInstance.closeBtnName="Close",c.closed.subscribe(h=>{if("close"==h)this.isPriorityLoading=!1;else if(!(0,v.isEmpty)(h)){this.isPriorityLoading=!0;const{isoId:N}=this.viewInvoice;this.commonService.postCommonHttpClient(T.D.updatePriorityId,{priorityId:h,customerId:N}).toPromise().then(function(){var ue=(0,_.Z)(function*(Ae){"Success"==Ae?.data?.status&&(a.refreshPage(),a.isCommitButtonDisabled())});return function(Ae){return ue.apply(this,arguments)}}(),ue=>(console.log("in err",ue),this.isPriorityLoading=!1,this.showAlert(ue,"error")))}})}isCommitButtonDisabled(){return this.isCommitEnable="UNCOMMITTED"!==this.viewInvoice?.invoiceStatus||!this.viewInvoice?.priorityId}get isEditDisabled(){return this.isDisableEditInvoice}get showEditIcon(){return!this.isPriorityLoading}}return p.\u0275fac=function(a){return new(a||p)(e.Y36(n.v),e.Y36(f.ez),e.Y36(S.v),e.Y36(J.FF),e.Y36(t.gz),e.Y36(t.F0),e.Y36(de.e))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-billing-invoice"]],decls:16,vars:7,consts:[["position","top-right"],[1,"shadow","p-3","mb-5","bg-white","rounded"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap","grid-margin","px-0","bg-white","rounded","mr-2","ml-2","mb-0"],[1,"d-flex","align-items-center","flex-wrap","text-nowrap"],["placeholder","Search by ISO/Invoice#",1,"col-md-4","px-0",3,"apiNameProperty","queryParam","events","filteredData"],["role","group","aria-label","Basic example",1,"btn-group","mb-3","mb-md-0","ml-1"],["type","button","placement","left","triggers","mouseenter:mouseleave","ngbPopover","Filter",1,"btn","btn-outline-primary","btn-xs","d-none","d-md-block","mr-4",3,"click"],[1,"link-icon","feather","icon-filter"],["type","button","placement","left","triggers","mouseenter:mouseleave","ngbPopover","Refresh",1,"btn","btn-outline-primary","btn-circle",3,"click"],[1,"link-icon","feather","icon-refresh-cw"],["class","row pt-3 border-top mt-3",4,"ngIf"],[4,"ngIf"],["class","container text-center",4,"ngIf"],["class","row chat-wrapper",4,"ngIf"],[1,"row","pt-3","border-top","mt-3"],[1,"col-md-3"],["bindLabel","name","bindValue","id","placeholder","Invoice Status","clearAllText","Clear",3,"items","ngModel","multiple","clearable","ngModelChange","change"],["id","monthBox","bindLabel","label","bindValue","value","placeholder","Date Selection",3,"items","ngModel","clearable","ngModelChange","change"],[1,"col-md-2"],["id","year","bindLabel","label","bindValue","value","placeholder","Year Selection",3,"items","ngModel","clearable","ngModelChange","change"],[1,"col-md-2","text-right"],["type","button",1,"btn","btn-outline-primary","mt-1",3,"click"],[1,"container","text-center"],[1,"load_center"],[1,"row","chat-wrapper"],[1,"col-md-12"],[1,"card"],[1,"card-body"],[1,"row","position-relative"],[1,"col-lg-5","chat-aside","border-lg-right"],[1,"aside-content"],[1,"card-header","list-header","width-heade-align"],[1,"card-text","mt-1","col-md-12","pl-0","text-left"],[1,"font-weight-bold"],[1,"aside-body"],["ngbNav","",1,"mt-3"],["defaultNav","ngbNav"],[3,"ngbNavItem"],["ngbNavContent",""],[1,"",3,"ngbNavOutlet"],["class","col-lg-7 chat-content",4,"ngIf"],[1,"container","merchant-list-view-design","ps",3,"perfectScrollbar"],["container",""],[1,"text-muted","mb-1"],["class","ist-unstyled chat-list px-1 mb-2 back-ground-color back-hover",3,"active","click",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"d-flex","justify-content-end","mob-media","mt-1",3,"collectionSize","page","maxSize","rotate","pageSize","pageChange"],[1,"ist-unstyled","chat-list","px-1","mb-2","back-ground-color","back-hover",3,"click"],[1,"chat-item","pr-1"],[1,"d-flex","align-items-center",3,"click"],[1,"flex-grow"],[1,"d-flex","justify-content-between"],[1,"text-body","over-flow","ml-1"],[1,"large-fontsize-label"],[1,"large-fontsize"],[1,"text-body","mr-1"],[1,"text-body","row"],[1,"col-md-4","text-left"],[1,"col-md-4","pl-4"],[1,"col-md-4","mt-2","text-right"],[1,"",2,"font-size","18px"],[1,"col-lg-7","chat-content"],[1,"chat-header","pb-3"],[1,"d-flex"],[1,"align-items-center","flex-grow-1",3,"ngClass"],[1,"feather","icon-corner-up-left","icon-md","mr-2","ml-n2","text-muted","d-lg-none"],[1,"mt-1","ml-3"],[1,"align-items-center","ml-3","mt-1"],[1,"chat-header","border-bottom","pb-2"],[1,"align-items-center","flex-grow-1"],[1,"mt-1"],[1,"d-flex","justify-content-end","mt-2","mb-2","back-ground-color","list","p-2"],["ngbDropdown","",1,"mt-1","flex-grow-1"],[1,"ml-3","mt-1",2,"font-size","large"],[1,"ml-md-2"],["ngbDropdown","",1,"d-inline-block"],["myDrop","ngbDropdown"],["id","dropdownManual","ngbDropdownToggle","",1,"btn","btn-more"],["class","spinner-border spinner-border-sm mr-1","role","status","aria-hidden","true",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownManual"],["ngbDropdownItem","",3,"click"],["data-feather","file-text","appFeatherIcon","",1,"icon-sm","mr-2"],["ngbDropdownItem","",3,"disabled","click"],[1,"chat-body"],[1,"row"],[1,"mt-2","col-md-4","col-lg-4","col-sm-6"],["aria-hidden","",1,"mdi","mdi-account","pr-1"],["class","loader_right pl-2",3,"click",4,"ngIf"],[1,"pl-4"],["aria-hidden","",1,"mdi","mdi-point-of-sale","pr-1"],["aria-hidden","",1,"mdi","mdi-cash-multiple","pr-1"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-1"],[1,"loader_right","pl-2",3,"click"],["placement","top","triggers","mouseenter:mouseleave",3,"ngbPopover",4,"ngIf"],["class","spinner-border spinner-border-sm ml-2","role","status","aria-hidden","true",4,"ngIf"],["placement","top","triggers","mouseenter:mouseleave",3,"ngbPopover"],[1,"link-icon","feather","icon-edit"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","ml-2"]],template:function(a,c){1&a&&(e._UZ(0,"p-toast",0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"div",3),e.TgZ(4,"app-search-box-filter",4),e.NdJ("filteredData",function(N){return c.applyFilters(N)}),e.qZA(),e.TgZ(5,"div",3)(6,"div",5)(7,"button",6),e.NdJ("click",function(){return c.toggleDisplay()}),e._UZ(8,"i",7),e.qZA()(),e.TgZ(9,"div")(10,"button",8),e.NdJ("click",function(){return c.refreshPage()}),e._UZ(11,"i",9),e.qZA()()()(),e.YNc(12,ye,11,10,"div",10),e.qZA(),e.YNc(13,Ue,1,0,"app-loading",11),e.YNc(14,$e,4,0,"div",12),e.YNc(15,We,19,7,"div",13)),2&a&&(e.xp6(4),e.Q6J("apiNameProperty","invoiceList")("queryParam",c.filterQuery)("events",c.eventsSubject.asObservable()),e.xp6(8),e.Q6J("ngIf",c.isShow),e.xp6(1),e.Q6J("ngIf",c.isLoading),e.xp6(1),e.Q6J("ngIf",0==(null==c.billingInvoiceListData?null:c.billingInvoiceListData.length)&&!c.isLoading),e.xp6(1),e.Q6J("ngIf",c.billingInvoiceListData?c.billingInvoiceListData.length>0:""))},dependencies:[i.mk,i.sg,i.O5,Ie.$V,z.JJ,z.On,J.jt,J.iD,J.Vi,J.TH,J.uN,J.Pz,J.nv,J.tO,J.N9,J.o8,Ee.FN,Oe.mh,ee.N,Me.z,R.w9,i.H9,W.X$,ie.hy],styles:[".card[_ngcontent-%COMP%]{box-shadow:0 0 8px #0003;transition:.3s;background-color:#fff}.tx-size[_ngcontent-%COMP%]{font-size:15px}.large-fontsize[_ngcontent-%COMP%], .large-fontsize-label[_ngcontent-%COMP%]{font-size:14px!important}hr[_ngcontent-%COMP%]{margin-top:0rem;margin-bottom:.2rem;border:0;border-top:2px solid rgba(0,0,0,.1)}.img-sm[_ngcontent-%COMP%]{width:63px;height:63px}
1.rounded-circle[_ngcontent-%COMP%]{border-radius:none!important}.chat-wrapper[_ngcontent-%COMP%]{height:calc(100vh + 200px)!important}.active[_ngcontent-%COMP%]{pointer-events:none}.btn-circle[_ngcontent-%COMP%]{width:30px;height:30px;padding:6px 0;border-radius:15px;text-align:center;font-size:12px;line-height:1.42857;box-shadow:0 2px 3px #0003}.btn_float[_ngcontent-%COMP%]{float:right}.btn_right_mrg[_ngcontent-%COMP%]{margin-top:6px;margin-right:6px}.grid-margin[_ngcontent-%COMP%]{margin-bottom:0rem!important}"]}),p})();function et(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",14)(1,"div",15)(2,"ng-select",16),e.NdJ("ngModelChange",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.statusTypes=h)})("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedFilter(h,"status"))}),e.qZA()(),e.TgZ(3,"div",15)(4,"ng-select",17),e.NdJ("ngModelChange",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedMonth=h)})("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedFilter(h,"month"))}),e.qZA()(),e.TgZ(5,"div",18)(6,"ng-select",19),e.NdJ("ngModelChange",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedYear=h)})("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.selectedFilter(h,"year"))}),e.qZA()(),e._UZ(7,"div",18),e.TgZ(8,"div",20)(9,"button",21),e.NdJ("click",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.clear())}),e._uU(10,"Clear"),e.qZA()()()}if(2&p){const a=e.oxw();e.xp6(2),e.Q6J("items",a.status)("ngModel",a.statusTypes)("multiple",!1)("clearable",!1),e.xp6(2),e.Q6J("items",a.monthList)("ngModel",a.selectedMonth)("clearable",!1),e.xp6(2),e.Q6J("items",a.yearList)("ngModel",a.selectedYear)("clearable",!1)}}function qe(p,L){1&p&&e._UZ(0,"app-loading")}function at(p,L){1&p&&(e.TgZ(0,"div",22)(1,"div")(2,"p",23),e._uU(3," No Data "),e.qZA()()())}function tt(p,L){if(1&p&&(e.TgZ(0,"dd"),e._uU(1),e.ALo(2,"datePipe"),e.qZA()),2&p){const a=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,null==a?null:a.paidDate))}}function se(p,L){1&p&&(e.TgZ(0,"dd"),e._uU(1,"NA"),e.qZA())}function xe(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",47),e.NdJ("click",function(){const N=e.CHM(a).index,ne=e.oxw(3);return e.KtG(ne.selected(N))}),e.TgZ(1,"div",48)(2,"a",49),e.NdJ("click",function(){const N=e.CHM(a).$implicit,ne=e.oxw(3);return e.KtG(ne.getUserDetails(N))}),e.TgZ(3,"div",50)(4,"div")(5,"div",51)(6,"p",52)(7,"span",53)(8,"strong"),e._uU(9),e.qZA()(),e._UZ(10,"span",54),e.qZA(),e.TgZ(11,"p",55)(12,"span",53)(13,"strong"),e._uU(14),e.qZA()()()(),e._UZ(15,"hr"),e.TgZ(16,"div",56)(17,"div",57)(18,"dt"),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"dd"),e._uU(22),e.qZA()(),e.TgZ(23,"div",58)(24,"dt"),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.YNc(27,tt,3,3,"dd",11),e.YNc(28,se,2,0,"dd",11),e.qZA(),e.TgZ(29,"div",59)(30,"span",60)(31,"strong"),e._uU(32),e.ALo(33,"currency"),e.qZA()()()()()()()()()}if(2&p){const a=L.$implicit,c=L.index,h=e.oxw(3);e.ekj("active",h.viewMode==c),e.xp6(9),e.Oqu((null==a||null==a.splitUpJSON?null:a.splitUpJSON.isoName)||"NA"),e.xp6(5),e.Oqu(null==a?null:a.invoiceStatus),e.xp6(5),e.Oqu(e.l
1cZ(20,11,"invoice.period")),e.xp6(3),e.AsE("",h.getMonthName(null==a?null:a.month)," - ",null==a?null:a.year,""),e.xp6(3),e.Oqu(e.lcZ(26,13,"invoice.paid")),e.xp6(2),e.Q6J("ngIf",null!=(null==a?null:a.paidDate)),e.xp6(1),e.Q6J("ngIf",null==(null==a?null:a.paidDate)),e.xp6(4),e.Oqu(e.lcZ(33,15,null==a?null:a.totalBilledAmt))}}function B(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",41,42),e._UZ(2,"p",43),e.YNc(3,xe,34,17,"div",44),e.qZA(),e.TgZ(4,"div",45)(5,"ngb-pagination",46),e.NdJ("pageChange",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.page=h)})("pageChange",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.getPage(h.page))}),e.qZA()()}if(2&p){const a=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",a.billingInvoiceListData),e.xp6(2),e.Q6J("collectionSize",a.collectionSize)("page",a.page)("maxSize",3)("rotate",!0)("pageSize",a.limit)}}function $(p,L){1&p&&e._UZ(0,"span",90)}function be(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",61)(1,"div",62)(2,"div",63)(3,"div",64),e._UZ(4,"i",65),e.TgZ(5,"div")(6,"h4",66),e._uU(7),e.qZA()()(),e.TgZ(8,"div",67)(9,"div")(10,"h4"),e._uU(11),e.ALo(12,"translate"),e.qZA()()()()(),e.TgZ(13,"div",68)(14,"div",63)(15,"div",69),e._UZ(16,"i",65),e.TgZ(17,"div")(18,"h4",70),e._uU(19),e.ALo(20,"translate"),e.qZA()()(),e.TgZ(21,"div",67)(22,"div")(23,"h5"),e._uU(24),e.ALo(25,"translate"),e.ALo(26,"datePipe"),e.qZA()()()()(),e.TgZ(27,"div",71)(28,"div",72)(29,"span",73)(30,"strong"),e._uU(31),e.ALo(32,"currency"),e.qZA()()(),e.TgZ(33,"div",74)(34,"div",75,76)(36,"button",77),e.YNc(37,$,1,0,"span",78),e._uU(38),e.ALo(39,"translate"),e.qZA(),e.TgZ(40,"div",79)(41,"button",80),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.downLoadISOInvoice())}),e._UZ(42,"i",81),e.TgZ(43,"span"),e._uU(44),e.ALo(45,"translate"),e.qZA()(),e.TgZ(46,"button",82),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.downLoadISOInvoiceBill("pdf"))}),e._UZ(47,"i",81),e.TgZ(48,"span"),e._uU(49),e.ALo(50,"translate"),e.qZA()(),e.TgZ(51,"button",82),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.commitInvoice("COMMIT"))}),e._UZ(52,"i",81),e.TgZ(53,"span"),e._uU(54),e.ALo(55,"translate"),e.qZA()(),e.TgZ(56,"button",82),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.commitInvoice("APPROVE"))}),e._UZ(57,"i",81),e.TgZ(58,"span"),e._uU(59),e.ALo(60,"translate"),e.qZA()()()()()(),e.TgZ(61,"div",83)(62,"div",84)(63,"div",85)(64,"dt"),e._UZ(65,"span",86),e._uU(66),e.ALo(67,"translate"),e.qZA(),e.TgZ(68,"dd",87),e._uU(69),e.qZA()(),e.TgZ(70,"div",85)(71,"dt"),e._UZ(72,"span",88),e._uU(73),e.ALo(74,"translate"),e.qZA(),e.TgZ(75,"dd",87),e._uU(76),e.qZA()(),e.TgZ(77,"div",85)(78,"dt"),e._UZ(79,"span",89),e._uU(80),e.ALo(81,"translate"),e.qZA(),e.TgZ(82,"dd",87),e._uU(83),e.ALo(84,"currency"),e.qZA()(),e.TgZ(85,"div",85)(86,"dt"),e._UZ(87,"span",89),e._uU(88),e.ALo(89,"translate"),e.qZA(),e.TgZ(90,"dd",87),e._uU(91),e.ALo(92,"currency"),e.qZA()()()()()}if(2&p){const a=e.oxw(2);e.xp6(3),e.Q6J("ngClass",null==a.viewInvoice?null:a.viewInvoice.invoiceStatus),e.xp6(4),e.hij(" ",null==a.viewInvoice?null:a.viewInvoice.invoiceStatus," "),e.xp6(4),e.AsE("",e.lcZ(12,25,"invoice.invoiceNumber")," ",null==a.viewInvoice?null:a.viewInvoice.invoiceNumber,""),e.xp6(8),e.hij(" ",e.lcZ(20,27,"invoice.summary")," "),e.xp6(5),e.AsE("",e.lcZ(25,29,"invoice.generated")," ",e.lcZ(26,31,null==a.viewInvoice?null:a.viewInvoice.generatedDate),""),e.xp6(7),e.hij("Total: ",e.lcZ(32,33,null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.total),""),e.xp6(6),e.Q6J("ngIf",a.isDownloadStatus),e.xp6(1),e.hij(" ",e.lcZ(39,35,"invoice.more"),""),e.xp6(6),e.Oqu(e.lcZ(45,37,"invoice.renderInvoice")),e.xp6(2),e.Q6J("disabled",a.isNull(null==a.viewInvoice?null:a.viewInvoice.pdfFileLocation)),e.xp6(3),e.Oqu(e.lcZ(50,39,"invoice.renderInvoiceBill")),e.xp6(2),e.Q6J("disabled","UNCOMMITTED"!=(null==a.viewInvoice?null:a.viewInvoice.invoiceStatus)||0==(null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.total)),e.xp6(3),e.Oqu(e.lcZ(55,41,"invoice.commitInvoice")),e.xp6(2),e.Q6J("disabled",a.enableApprovalButton(a.viewInvoice)),e.xp6(3),e.Oqu(e.l
1cZ(60,43,"invoice.approveInvoice")),e.xp6(7),e.Oqu(e.lcZ(67,45,"rental.isoName")),e.xp6(3),e.Oqu((null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.isoName)||"NA"),e.xp6(4),e.hij("",e.lcZ(74,47,"rental.totalDevice")," #"),e.xp6(3),e.Oqu((null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.totalDevices)||"NA"),e.xp6(4),e.Oqu(e.lcZ(81,49,"rental.totalRentalAmount")),e.xp6(3),e.Oqu(e.gM2(84,51,(null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.totalRentalAmount)||0,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(89,56,"rental.additionalFee")),e.xp6(3),e.Oqu(e.gM2(92,58,(null==a.viewInvoice||null==a.viewInvoice.splitUpJSON?null:a.viewInvoice.splitUpJSON.additionalFee)||0,"USD","symbol","1.1-4"))}}function Ze(p,L){if(1&p&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26)(3,"div",27)(4,"div",28)(5,"div",29)(6,"div",30)(7,"div",31)(8,"p",32)(9,"span",33),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",34)(13,"ul",35,36)(15,"li",37),e.YNc(16,B,6,6,"ng-template",38),e.qZA()(),e._UZ(17,"div",39),e.qZA()()(),e.YNc(18,be,93,63,"div",40),e.qZA()()()()()),2&p){const a=e.MAs(14),c=e.oxw();e.xp6(10),e.AsE(" ",e.lcZ(11,5,"rentalInvoice")," (",c.collectionSize,")"),e.xp6(5),e.Q6J("ngbNavItem",1),e.xp6(2),e.Q6J("ngbNavOutlet",a),e.xp6(1),e.Q6J("ngIf",c.billingInvoiceListData)}}let O=(()=>{class p{constructor(a,c,h,N,ne,ue){this.commonService=a,this.messageService=c,this.CustomerService=h,this.ngbModal=N,this.route=ne,this.router=ue,this.page=1,this.limit=20,this.size=20,this.isPagination=!1,this.viewMode=0,this.isDownloadStatus=!1,this.eventsSubject=new g.xQ,this.isShow=!1,this.statusTypes=[],this.startYear=2022,this.yearList=[],this.validMonthYear=!1,this.currentInvoiceType=this.router.url.split("/").pop(),this.monthList=w.months().map((Ae,we)=>({label:Ae,value:we})),this.status=["COMMITTED","UNCOMMITTED","APPROVED","DECLINED"]}ngOnInit(){this.currentInvoiceType=this.router.url.split("?")[0].split("/").pop(),this.filterQuery={invoiceType:this.currentInvoiceType},this.jumpFromCustomersInvoiceGeneration(),this.isLoading=!0;let a=Number(w().format("YYYY"));for(let c=this.startYear;c<=a;c++)this.yearList.push(c)}applyFilters(a){console.log("filteredData",a);let{data:c,searchTerm:h}=a;this.searchTerm=h,(0,v.isEmpty)(c)?(this.billingInvoiceListData=this.billingInvoiceListUnFilteredData,this.billingInvoiceListData&&(this.viewInvoice=this.billingInvoiceListData.length>0?this.billingInvoiceListData[0]:[]),this.viewMode=0,this.collectionSize=this.masterCollectionSize,this.total=this.totalPage):(this.billingInvoiceListData=c.data.items,this.viewInvoice=this.billingInvoiceListData.length>0?this.billingInvoiceListData[0]:[],this.viewMode=0,this.collectionSize=c.data.totalItems,this.total=c.data.totalItems),(0,v.isEmpty)(this.billingInvoiceListData)&&!(0,v.isEmpty)(c)&&(this.messageService.clear(),this.showNoDataMessage())}getInvoiceDetails(a){this.billingInvoiceListViewSub=this.commonService.getCommonHttpClientQueryParams(T.D.getAllBillingInvoice,a).subscribe(c=>{this.isLoading=!1,this.billingInvoiceListUnFilteredData=this.billingInvoiceListData=c.data.items,this.masterCollectionSize=this.collectionSize=c.data.totalItems,this.messageService.clear(),this.viewInvoice=this.billingInvoiceListData.length>0?this.billingInvoiceListData[0]:[],this.viewMode=0,console.log("no data ",(0,v.isEmpty)(this.billingInvoiceListData)),(0,v.isEmpty)(this.billingInvoiceListData)&&(this.messageService.clear(),this.showNoDataMessage())},c=>{console.log("errrrr-------",c),this.showAlert(c,"error")})}showNoDataMessage(){console.log("showNoDataMessage----------"),this.messageService.add({severity:"error",summary:"Error",detail:"Sorry! No Invoice exists.",sticky:!0})}showAlert(a,c){this.messageService.add({severity:c,summary:a.status,detail:a.message})}jumpFromCustomersInvoiceGeneration(){var a=this;return this.route.queryParams.subscribe(function(){var c=(0,_.Z)(function*(h){(0,v.isEmpty)(h)?a.getInvoiceDetails({isFilter:!0,page:a.page,size:a.size,...a.filterQuery}):a.getInvoiceDetails({isFilter:!0,page:a.page,size:a.size,status:h.status,year:h.year,month:h.month,queryString:h.queryString,...a.filterQuery})});return function(h){return c.apply(this,arguments)}}())}getMonthName(a){return this.commonService.getMonthName(a)}toggleDisplay(){this.isShow=!this.isShow}refreshPage(){this.getInvoiceDetails({page:this.page,size:20,...this.filterQuery})}selectedFilter(a,c){this.filterQuery.isFilter=!0,this.filterQuery.size=20,this.filterQuery.invoiceType=this.currentInvoiceType,(0,v.isEmpty)(a)&&""==a?this.filterQuery[c]="":"status"===c||"year"===c?this.filterQuery[c]=a:"month"===c?this.filterQuery[c]=a?.value+1:"queryString"===c&&(this.filterQuery[c]=null!=a?.data||null!=a?.data?a?.data:""),this.searchTerm&&(this.filterQuery.queryString=this.searchTerm),this.getInvoiceDetails({isFilter:!0,page:this.page,...this.filterQuery})}clear(){this.filterQuery={hostResponseCode:"",year:"",month:"",status:"",invoiceType:this.currentInvoiceType},this.selectedYear=[],this.statusTypes=[],this.selectedMonth=[],this.eventsSubject.next(),this.getInvoiceDetails({isFilter:!1,page:this.page,size:this.size,...this.filterQuery})}selected(a){this.viewMode=a}getUserDetails(a){this.viewInvoice=a}getPage(a){this.page=a,console.log("this.filterQuery",this.filterQuery),this.getInvoiceDetails({isFilter:!1,page:this.page,size:this.size,...this.filterQuery})}downLoadISOInvoice(){this.downLoadISOInvoiceBill("excel")}isNull(a){return"NA"==a}commitInvoice(a){const{month:c,year:h,invoiceNumber:N}=this.viewInvoice;let ne=Number(w().format("M")),ue=Number(w().format("YYYY")),Ae=`Do you want to ${(0,v.capitalize)(a)} Invoice# `+N,we=this.ngbModal.open(I.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});we.componentInstance.header="Invoice Confirmation",ne==c&&h==ue&&(Ae=`Do you want to proceed with ${(0,v.capitalize)(a)} invoice of current month (${w().format("MMM")} - ${ue}).`),we.componentInstance.body=Ae,we.componentInstance.cancelButton=!0,we.componentInstance.commitButton=!0,we.componentInstance.rentalInvoice=!0,we.componentInstance.commitButtonText=(0,v.capitalize)(a),we.componentInstance.invoiceData=this.viewInvoice,we.result.then(Pe=>{"success"==Pe&&(this.showAlert({status:`${(0,v.capitalize)(a)} Invoice`,message:`Invoice is ${a} Successfully`},"success"),this.refreshPage())})}enableApprovalButton(a){let c=JSON.parse(localStorage.getItem("current_user"));return!("COMMITTED"==(0,v.get)(a,"invoiceStatus")&&"FINANCE_ADMIN"===c.userTypeRole)||0==a?.splitUpJSON?.total}downLoadISOInvoiceBill(a){this.openLoaderModal(),this.isDownloadStatus=!0,this.commonService.getCommonFileDownload(T.D.downloadBillInvoicePDF+"/"+this.viewInvoice.id+"/"+a).subscribe(c=>{let h=window.URL.createObjectURL(c),N="";N="pdf"==a?this.viewInvoice.pdfFileLocation.split("/"):this.viewInvoice.excelFileLocation.split("/"),A.saveAs(h,N[N.length-1]),this.isDownloadStatus=!1,this.modalReference.close()})}openLoaderModal(){window.scroll(0,0),this.modalReference=this.ngbModal.open(b.k,{backdrop:"static",keyboard:!1,centered:!0,size:"lg"}),this.modalReference.componentInstance.isLoading=!0,this.modalReference.componentInstance.body="Downloading"}}
1return p.\u0275fac=function(a){return new(a||p)(e.Y36(n.v),e.Y36(f.ez),e.Y36(S.v),e.Y36(J.FF),e.Y36(t.gz),e.Y36(t.F0))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-rental-invoice"]],decls:16,vars:7,consts:[["position","top-right"],[1,"shadow","p-3","mb-5","bg-white","rounded"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap","grid-margin","px-0","bg-white","rounded","mr-2","ml-2","mb-0"],[1,"d-flex","align-items-center","flex-wrap","text-nowrap"],["placeholder","Search by ISO/Invoice#",1,"col-md-4","px-0",3,"apiNameProperty","queryParam","events","filteredData"],["role","group","aria-label","Basic example",1,"btn-group","mb-3","mb-md-0","ml-1"],["type","button","placement","left","triggers","mouseenter:mouseleave","ngbPopover","Filter",1,"btn","btn-outline-primary","btn-xs","d-none","d-md-block","mr-4",3,"click"],[1,"link-icon","feather","icon-filter"],["type","button","placement","left","triggers","mouseenter:mouseleave","ngbPopover","Refresh",1,"btn","btn-outline-primary","btn-circle",3,"click"],[1,"link-icon","feather","icon-refresh-cw"],["class","row pt-3 border-top mt-3",4,"ngIf"],[4,"ngIf"],["class","container text-center",4,"ngIf"],["class","row chat-wrapper",4,"ngIf"],[1,"row","pt-3","border-top","mt-3"],[1,"col-md-3"],["bindLabel","name","bindValue","id","placeholder","Invoice Status","clearAllText","Clear",3,"items","ngModel","multiple","clearable","ngModelChange","change"],["id","monthBox","bindLabel","label","bindValue","value","placeholder","Date Selection",3,"items","ngModel","clearable","ngModelChange","change"],[1,"col-md-2"],["id","year","bindLabel","label","bindValue","value","placeholder","Year Selection",3,"items","ngModel","clearable","ngModelChange","change"],[1,"col-md-2","text-right"],["type","button",1,"btn","btn-outline-primary","mt-1",3,"click"],[1,"container","text-center"],[1,"load_center"],[1,"row","chat-wrapper"],[1,"col-md-12"],[1,"card"],[1,"card-body"],[1,"row","position-relative"],[1,"col-lg-5","chat-aside","border-lg-right"],[1,"aside-content"],[1,"card-header","list-header","width-heade-align"],[1,"card-text","mt-1","col-md-12","pl-0","text-left"],[1,"font-weight-bold"],[1,"aside-body"],["ngbNav","",1,"mt-3"],["defaultNav","ngbNav"],[3,"ngbNavItem"],["ngbNavContent",""],[1,"",3,"ngbNavOutlet"],["class","col-lg-7 chat-content",4,"ngIf"],[1,"container","merchant-list-view-design","ps",3,"perfectScrollbar"],["container",""],[1,"text-muted","mb-1"],["class","ist-unstyled chat-list px-1 mb-2 back-ground-color back-hover",3,"active","click",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"d-flex","justify-content-end","mob-media","mt-1",3,"collectionSize","page","maxSize","rotate","pageSize","pageChange"],[1,"ist-unstyled","chat-list","px-1","mb-2","back-ground-color","back-hover",3,"click"],[1,"chat-item","pr-1"],[1,"d-flex","align-items-center",3,"click"],[1,"flex-grow"],[1,"d-flex","justify-content-between"],[1,"text-body","over-flow","ml-1"],[1,"large-fontsize-label"],[1,"large-fontsize"],[1,"text-body","mr-1"],[1,"text-body","row"],[1,"col-md-4","text-left"],[1,"col-md-4","pl-4"],[1,"col-md-4","mt-2","text-right"],[1,"",2,"font-size","18px"],[1,"col-lg-7","chat-content"],[1,"chat-header","pb-3"],[1,"d-flex"],[1,"align-items-center","flex-grow-1",3,"ngClass"],[1,"feather","icon-corner-up-left","icon-md","mr-2","ml-n2","text-muted","d-lg-none"],[1,"mt-1","ml-3"],[1,"align-items-center","ml-3","mt-1"],[1,"chat-header","border-bottom","pb-2"],[1,"align-items-center","flex-grow-1"],[1,"mt-1"],[1,"d-flex","justify-content-end","mt-2","mb-2","back-ground-color","list","p-2"],["ngbDropdown","",1,"mt-1","flex-grow-1"],[1,"ml-3","mt-1",2,"font-size","large"],[1,"ml-md-2"],["ngbDropdown","",1,"d-inline-block"],["myDrop","ngbDropdown"],["id","dropdownManual","ngbDropdownToggle","",1,"btn","btn-more"],["class","spinner-border spinner-border-sm mr-1","role","status","aria-hidden","true",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownManual"],["ngbDropdownItem","",3,"click"],["data-feather","file-text","appFeatherIcon","",1,"icon-sm","mr-2"],["ngbDropdownItem","",3,"disabled","click"],[1,"chat-body"],[1,"row"],[1,"mt-2","col-md-4","col-lg-4","col-sm-6"],["aria-hidden","",1,"mdi","mdi-account","pr-1"],[1,"pl-4"],["aria-hidden","",1,"mdi","mdi-point-of-sale","pr-1"],["aria-hidden","",1,"mdi","mdi-cash-multiple","pr-1"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-1"]],template:function(a,c){1&a&&(e._UZ(0,"p-toast",0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"div",3),e.TgZ(4,"app-search-box-filter",4),e.NdJ("filteredData",function(N){return c.applyFilters(N)}),e.qZA(),e.TgZ(5,"div",3)(6,"div",5)(7,"button",6),e.NdJ("click",function(){return c.toggleDisplay()}),e._UZ(8,"i",7),e.qZA()(),e.TgZ(9,"div")(10,"button",8),e.NdJ("click",function(){return c.refreshPage()}),e._UZ(11,"i",9),e.qZA()()()(),e.YNc(12,et,11,10,"div",10),e.qZA(),e.YNc(13,qe,1,0,"app-loading",11),e.YNc(14,at,4,0,"div",12),e.YNc(15,Ze,19,7,"div",13)),2&a&&(e.xp6(4),e.Q6J("apiNameProperty","invoiceList")("queryParam",c.filterQuery)("events",c.eventsSubject.asObservable()),e.xp6(8),e.Q6J("ngIf",c.isShow),e.xp6(1),e.Q6J("ngIf",c.isLoading),e.xp6(1),e.Q6J("ngIf",0==(null==c.billingInvoiceListData?null:c.billingInvoiceListData.length)&&!c.isLoading),e.xp6(1),e.Q6J("ngIf",c.billingInvoiceListData?c.billingInvoiceListData.length>0:""))},dependencies:[i.mk,i.sg,i.O5,Ie.$V,z.JJ,z.On,J.jt,J.iD,J.Vi,J.TH,J.uN,J.Pz,J.nv,J.tO,J.N9,J.o8,Ee.FN,Oe.mh,ee.N,Me.z,R.w9,i.H9,W.X$,ie.hy],styles:[".card[_ngcontent-%COMP%]{box-shadow:0 0 8px #0003;transition:.3s;background-color:#fff}.tx-size[_ngcontent-%COMP%]{font-size:15px}.large-fontsize[_ngcontent-%COMP%], .large-fontsize-label[_ngcontent-%COMP%]{font-size:14px!important}hr[_ngcontent-%COMP%]{margin-top:0rem;margin-bottom:.2rem;border:0;border-top:2px solid rgba(0,0,0,.1)}.img-sm[_ngcontent-%COMP%]{width:63px;height:63px}
1.rounded-circle[_ngcontent-%COMP%]{border-radius:none!important}.chat-wrapper[_ngcontent-%COMP%]{height:calc(100vh + 200px)!important}.active[_ngcontent-%COMP%]{pointer-events:none}.btn-circle[_ngcontent-%COMP%]{width:30px;height:30px;padding:6px 0;border-radius:15px;text-align:center;font-size:12px;line-height:1.42857;box-shadow:0 2px 3px #0003}.btn_float[_ngcontent-%COMP%]{float:right}.btn_right_mrg[_ngcontent-%COMP%]{margin-top:6px;margin-right:6px}.grid-margin[_ngcontent-%COMP%]{margin-bottom:0rem!important}"]}),p})();var ce=r(22872),C=r(33937),M=r(41493),j=r(83910),X=r(30020),fe=r(54350),E=r(68375),K=r(46419),te=r(6458);const Le=function(p,L){return{isPointer:p,opacity:L}};function Z(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"a",8),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(4);return e.KtG(h.navigateFn("m-b-s",{to:"s-s-p",from:"bulk_enable"}))}),e._uU(1),e.qZA()}if(2&p){const a=e.oxw(4);e.Q6J("ngClass",e.WLB(4,Le,!a.editBilling,!a.editBilling)),e.xp6(1),e.lnq(" ",null==a.billingSummary?null:a.billingSummary.pendingMerchants," merchant",(null==a.billingSummary?null:a.billingSummary.pendingMerchants)>1?"s are":" is"," not enabled for Merchant Invoicing. Click here to enable ",(null==a.billingSummary?null:a.billingSummary.pendingMerchants)>1?"them":"it",". ")}}function pe(p,L){1&p&&(e.TgZ(0,"p-messages",6),e.YNc(1,Z,2,7,"ng-template",7),e.qZA())}function k(p,L){if(1&p&&(e.TgZ(0,"div"),e.YNc(1,pe,2,0,"p-messages",5),e.qZA()),2&p){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",null==a.billingSummary?null:a.billingSummary.pendingMerchants)}}function Fe(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"button",12),e._UZ(4,"span",13),e.qZA(),e.TgZ(5,"div",14)(6,"a",15),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.download())}),e._UZ(7,"span",16),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"a",17),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("m-b-s",{from:"pref_sell_price"}))}),e._UZ(11,"span",18),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"a",15),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.loginAs())}),e._UZ(15,"span",19),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"a",15),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("m-b-s",{to:"s-s-p",from:"bulk_update"}))}),e._UZ(19,"span",20),e._uU(20),e.ALo(21,"translate"),e.qZA()()()(),e.TgZ(22,"div",21)(23,"form",22)(24,"div",23)(25,"div",24)(26,"ng-select",25),e.NdJ("search",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.onSearchInvoiceId(h.term))})("change",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.onSelectId(h))}),e.qZA()(),e.TgZ(27,"div",24),e._UZ(28,"ng-select",26),e.qZA(),e.TgZ(29,"div",24),e._UZ(30,"ng-select",27),e.qZA(),e.TgZ(31,"div",28)(32,"div",29)(33,"button",30),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.searchFn())}),e._UZ(34,"i",31),e._uU(35," Search "),e.qZA(),e.TgZ(36,"button",32),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.clear())}),e._uU(37," Clear "),e.qZA(),e.TgZ(38,"button",33),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.searchFn())}),e._UZ(39,"i",34),e.qZA()()()()()()()}if(2&p){const a=e.oxw(2);e.xp6(6),e.Q6J("disabled",!a.invoiceRecords.length),e.xp6(2),e.hij(" ",e.lcZ(9,21,"htmlText.dwld")," "),e.xp6(4),e.hij(" ",e.lcZ(13,23,"mb.settings")," "),e.xp6(2),e.Q6J("disabled",a.isDisableProxyLogin),e.xp6(2),e.hij("",e.lcZ(17,25,"mb.loginToAccount")," "),e.xp6(2),e.Q6J("disabled",!a.editBilling),e.xp6(2),e.hij(" ",e.lcZ(21,27,"mb.bulkUpdate")," "),e.xp6(3),e.Q6J("formGroup",a.filterForm),e.xp6(3),e.Q6J("items",a.invoiceIdsList)("loading",a.invoiceIdloading)("disabled",!a.invoiceRecords.length)("notFoundText",a.notFoundText)("clearable",!0),e.xp6(2),e.Q6J("disabled",!a.invoiceRecords.length)("items",a.monthList)("clearable",!0),e.xp6(2),e.Q6J("items",a.yearList)("clearable",!0),e.xp6(3),e.Q6J("disabled",!a.isFormValid||a.isLoading),e.xp6(3),e.Q6J("disabled",!a.isFormValid||a.isLoading),e.xp6(2),e.Q6J("disabled",a.isLoading||a.disableFilter)}}function Qe(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",35)(1,"div",36),e._UZ(2,"app-ilustration-with-message",37),e.TgZ(3,"button",38),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.addAccount())}),e._uU(4),e.ALo(5,"translate"),e.qZA()()()}2&p&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,"mb.addAccount")," "))}function nt(p,L){1&p&&(e.TgZ(0,"div",39)(1,"h4"),e._uU(2,"No invoice data available"),e.qZA()())}function gt(p,L){1&p&&(e.TgZ(0,"div",39)(1,"h4"),e._uU(2,"Invoice generation will begin in the first week of the month."),e.qZA()())}function _t(p,L){1&p&&(e.TgZ(0,"div",39)(1,"h4"),e._uU(2,"Internal Server Error!!"),e.qZA()())}function he(p,L){1&p&&(e.TgZ(0,"div",39)(1,"h4"),e._uU(2,"No Invoices Found."),e.qZA()())}function je(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"div",1),e.YNc(2,k,2,1,"div",0),e.YNc(3,Fe,40,29,"div",2),e.TgZ(4,"div"),e.YNc(5,Qe,6,3,"div",3),e.qZA(),e.YNc(6,nt,3,0,"div",4),e.YNc(7,gt,3,0,"div",4),e.YNc(8,_t,3,0,"div",4),e.YNc(9,he,3,0,"div",4),e.qZA(),e.BQk()),2&p){const a=e.oxw();e.xp6(2),e.Q6J("ngIf",a.billingStatus.isCAOnboard&&a.billingStatus.setSellingPrice),e.xp6(1),e.Q6J("ngIf",null==a.billingStatus?null:a.billingStatus.isCAOnboard),e.xp6(2),e.Q6J("ngIf",!(null!=a.billingStatus&&a.billingStatus.isCAOnboard)),e.xp6(1),e.Q6J("ngIf",!(((null==a.billingSummary?null:a.billingSummary.totalMerchants)||0)-((null==a.billingSummary?null:a.billingSummary.pendingMerchants)||0)||1!=a.billingStatus.isCAOnboard||a.isLoading||a.invoiceRecords.length)),e.xp6(1),e.Q6J("ngIf",((null==a.billingSummary?null:a.billingSummary.totalMerchants)||0)-((null==a.billingSummary?null:a.billingSummary.pendingMerchants)||0)&&!a.invoiceRecords.length&&!a.isFilter&&!a.isLoading&&500!=a.errors.invoiceRecords),e.xp6(1),e.Q6J("ngIf",500==a.errors.invoiceRecords),e.xp6(1),e.Q6J("ngIf",a.isFilter&&!a.invoiceRecords.length&&!a.isLoading)}}function Dt(p,L){if(1&p){const a=e.EpF();e.ynx(0),e.TgZ(1,"div",41)(2,"div",42)(3,"div",43)(4,"p",44)(5,"span",45)(6,"h5"),e._uU(7),e.ALo(8,"date"),e.qZA()()(),e.TgZ(9,"button",46),e.NdJ("click",function(){const N=e.CHM(a).$implicit,ne=e.oxw(2);return e.KtG(ne.navigateToInvoice(N))}),e.TgZ(10,"span"),e._uU(11),e.ALo(12,"translate"),e.qZA(),e._UZ(13,"span",47),e.qZA()()(),e.TgZ(14,"div",48)(15,"div",49)(16,"div",50)(17,"div",51)(18,"span"),e._uU(19),e.ALo(20,"translate"),e.qZA()(),e.TgZ(21,"div",52)(22,"h5"),e._uU(23),e.qZA()()(),e.TgZ(24,"div",50)(25,"div",51)(26,"span"),e._uU(27),e.ALo(28,"translate"),e.qZA()(),e.TgZ(29,"div",52)(30,"h5"),e._uU(31),e.ALo(32,"currency"),e.qZA()()(),e.TgZ(33,"div",50)(34,"div",51)(35,"span"),e._uU(36),e.ALo(37,"translate"),e.qZA()(),e.TgZ(38,"div",52)(39,"h5"),e._uU(40),e.ALo(4
11,"currency"),e.qZA()()(),e.TgZ(42,"div",50)(43,"div",51)(44,"span"),e._uU(45),e.ALo(46,"translate"),e.qZA()(),e.TgZ(47,"div",52)(48,"h5"),e._uU(49),e.ALo(50,"date"),e.qZA()()()()()(),e.BQk()}if(2&p){const a=L.$implicit;e.xp6(7),e.hij(" ",e.xi3(8,10,a.month+"-1-"+a.year," MMM y"),""),e.xp6(4),e.hij(" ",e.lcZ(12,13,"htmlText.more")," "),e.xp6(8),e.Oqu(e.lcZ(20,15,"mb.totalMerchants")),e.xp6(4),e.Oqu(a.totalMerchants),e.xp6(4),e.Oqu(e.lcZ(28,17,"mb.totalAmount")),e.xp6(4),e.Oqu(e.lcZ(32,19,a.collectedAmount)),e.xp6(5),e.Oqu(e.lcZ(37,21,"mb.totalAmountPending")),e.xp6(4),e.Oqu(e.lcZ(41,23,a.pendingAmount)),e.xp6(5),e.Oqu(e.lcZ(46,25,"mb.billedDate")),e.xp6(4),e.Oqu(a.lastBillingDate?e.xi3(50,27,a.lastBillingDate,"d MMM y"):"--")}}function Et(p,L){if(1&p&&(e.ynx(0),e.YNc(1,Dt,51,30,"ng-container",40),e.BQk()),2&p){const a=e.oxw();e.xp6(1),e.Q6J("ngForOf",a.invoiceRecords)}}function wt(p,L){1&p&&e._uU(0," Gateway Error ")}function pt(p,L){1&p&&(e.ynx(0),e.TgZ(1,"p-messages",53),e.YNc(2,wt,1,0,"ng-template",54),e.qZA(),e.BQk())}function $t(p,L){1&p&&e._UZ(0,"app-loading")}let St=(()=>{class p{constructor(a,c,h,N,ne,ue){this.router=a,this.common=c,this.messageService=h,this.ngbModal=N,this.userService=ne,this.authService=ue,this.customerInfo=localStorage.getItem("current_user")?JSON.parse(localStorage.getItem("current_user")):{},this.midLabelArray=[],this.billingStatus={},this.billingSummary={},this.isLoading=!0,this.isSummaryLoading=!0,this.isFilter=!1,this.invoiceIdloading=!1,this.invoiceRecords=[],this.invoiceIdsList=[],this.notFoundText="Type at least 3 letters",this.monthList=w.months().map((Ae,we)=>({label:Ae,value:we+1})),this.startYear=2022,this.yearList=[],this.isDisableProxyLogin=!1,this.disableFilter=!1,this.filterForm=new z.cw({invoiceId:new z.NI,month:new z.NI,year:new z.NI}),this.isFormValid=!1,this.errors={},this.editBilling=this.isAccess(ce.j.MERCHANT_BILLING,C.R.EDIT_BILLING),this.addAccount=()=>{this.router.navigate(["/merchant-management/merchant-create-management"],{queryParams:{action:"m-b",redirectTo:"m-b"}})},this.navigateFn=(Ae,we)=>{(we={...we,...this.billingStatus,...this.billingSummary}).totalMerchants||"bulk_update"!=we.from?this.router.navigate([`/billing-invoice/${Ae}`],{queryParams:we||{}}):this.showToaster("error","","No merchants found to update.")},this.navigateToInvoice=Ae=>{this.router.navigate(["/billing-invoice/invoice-details"],{queryParams:{month:Ae.month,year:Ae.year,invoiceNumber:Ae.invoiceNumber,billingStatus:JSON.stringify(this.billingStatus?this.billingStatus:{}),billingSummary:JSON.stringify(this.billingSummary?this.billingSummary:{})}})},this.getBillingStatus=()=>{this.common.postCommonHttpClient(T.D.merchantBilling.billingStatus,{customerId:this.customerInfo.customerId}).pipe((0,j.q)(1)).subscribe(Ae=>{this.billingStatus=Ae.data||{},this.billingStatus.failed=!1,this.getBillingSummary()},Ae=>{this.showToaster("error","","failed !"),this.billingStatus={failed:!0},this.isLoading=!1})},this.getBillingSummary=()=>{this.isSummaryLoading=!0,this.common.getCommonHttpClientParams(`${T.D.merchantBilling.getBillingSummary}`).pipe((0,j.q)(1)).subscribe(Ae=>{this.billingSummary=Ae.data,!this.billingStatus.isCAOnboard||this.billingStatus.setSellingPrice?this.isLoading=this.isSummaryLoading=!1:this.router.navigate(["/billing-invoice/m-b-s"],{queryParams:{billingStatus:JSON.stringify(this.billingStatus||{}),billingSummary:JSON.stringify(this.billingSummary||{})}})},Ae=>{this.showToaster("error","","failed !"),this.isLoading=this.isSummaryLoading=!1})},this.getInvoices=()=>{this.isLoading=!0,this.common.postCommonHttpClient(`${T.D.merchantBilling.getInvoicesMonthly}`,this.filterForm.value).pipe((0,j.q)(1)).subscribe(Ae=>{this.invoiceRecords=Ae.data.items||[],!((this.billingSummary?.totalMerchants||0)-(this.billingSummary?.pendingMerchants||0))&&!this.invoiceRecords.length&&(this.filterForm.disable(),this.disableFilter=!0),this.isLoading=!1},Ae=>{this.isLoading=!1,this.errors.invoiceRecords=Ae.status,this.invoiceRecords=[]})},this.getInvoicesIdList=Ae=>{this.common.getCommonHttpClientParams(`${T.D.merchantBilling.getInvoiceIds}?term=${Ae}`).pipe((0,j.q)(1)).subscribe(we=>{this.invoiceIdsList=we.data.items||[],this.invoiceIdloading=!1},we=>{this.invoiceIdloading=!1,this.invoiceIdsList=[]})},this.onSelectId=Ae=>{Ae?.invoiceNumber&&this.navigateToInvoice(Ae)},this.searchFn=()=>{this.isFilter=!0,this.getInvoices()}}ngOnInit(){let a=Number(w().format("YYYY"));for(let c=this.startYear;c<=a;c++)this.yearList.push({label:c,value:c});this.getBillingStatus(),this.getInvoices(),this.getProxyLoginDetail
1s(),this.filterForm.valueChanges.subscribe(c=>{this.isFormValid=Object.values(c).some(h=>null!==h&&""!==h),!this.isFormValid&&this.filterForm.enabled&&this.getInvoices()})}onSearchInvoiceId(a){clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{a?.length>=3?(this.invoiceIdloading=!0,this.notFoundText="No results found",this.getInvoicesIdList(a)):(this.notFoundText="Type at least 3 letters",this.invoiceIdsList=[],this.invoiceIdloading=!1)},300)}showToaster(a,c,h,N){this.messageService.add({severity:a,summary:c,detail:h,key:"copy-toast"})}loginAs(){if(!this.billingSummary.accountInfo?.userId)return;let a=this.ngbModal.open(X.P,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});a.componentInstance.isLoading=!0,a.componentInstance.header="LOGIN-AS CONFIRMATION";let c={ownedByCustomer:this.customerInfo.customerId},h=this.userService.getUser(this.userService.getUserById,{id:this.billingSummary.accountInfo?.userId}),N=this.common.getCommonHttpClientQueryParams(T.D.isEnableProxyEmailAlert,c);(0,fe.D)([h,N]).pipe((0,j.q)(1)).subscribe(([ne,ue])=>{const Ae=ne;a.componentInstance.body="Do you want to login as your Collection Account ?",a.componentInstance.confirmButton="Confirm",a.componentInstance.email=Ae.email,a.componentInstance.systemUser=this.authService.getUser.firstName+" "+this.authService.getUser.lastName,a.componentInstance.systemEmail=this.authService.getUser.email,a.componentInstance.isLoading=!1,a.componentInstance.loginUser="Merchant",a.componentInstance.isEnableProxyEmail=ue.isEnableProxyMail},ne=>{a.componentInstance.isLoading=!1,a.componentInstance.body=`Error occurred, ${ne.message}`,a.componentInstance.isError=!0})}clear(){this.filterForm.reset(),this.isFilter=!1,this.getInvoices()}getProxyLoginDetails(){this.common.getCommonHttpClientParams(T.D.getProxyAlertDetails+"/"+this.customerInfo.customerId).subscribe(a=>{this.isDisableProxyLogin=!a.data?.length||"ACTIVE"!=a.data.find(c=>"isMerchantLoginAs"==c.isoPreferences_to_isoPreferenceMapping?.code)?.status},a=>{this.isDisableProxyLogin=!0})}showDownloadDialog(a="Downloading"){window.scroll(0,0),this.DownloadModalReference=this.ngbModal.open(b.k,{backdrop:"static",keyboard:!1,centered:!0,size:"lg"}),this.DownloadModalReference.componentInstance.isLoading=!0,this.DownloadModalReference.componentInstance.body=a}download(){this.showDownloadDialog(),this.common.postCommonFileDownload(T.D.merchantBilling.invoiceDownload,this.filterForm.value).subscribe({next:a=>{const h=`Invoices-${(new Date).toISOString().slice(0,10)}.xlsx`,N=window.URL.createObjectURL(a);(0,A.saveAs)(N,h),window.URL.revokeObjectURL(N),this.DownloadModalReference?.close()},error:a=>{a.error instanceof Blob&&a.error.type.includes("application/json")?a.error.text().then(c=>{let h="Unknown server error";try{h=JSON.parse(c)?.message||h}catch{h=c}this.showToaster("error","",h),this.DownloadModalReference?.close()}):(this.showToaster("error","",a.message||"Download failed"),this.DownloadModalReference?.close())}})}isAccess(a,c){return this.authService.isFeatureEnabled(a,c)}}return p.\u0275fac=function(a){return new(a||p)(e.Y36(t.F0),e.Y36(n.v),e.Y36(f.ez),e.Y36(J.FF),e.Y36(E.K),e.Y36(de.e))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-merchant-billing"]],decls:4,vars:4,consts:[[4,"ngIf"],[1,"container-fluid"],["class","row shadow p-3 mb-4 bg-white rounded align-items-center",4,"ngIf"],["class","row justify-content-center text-center mt-5",4,"ngIf"],["style","margin-top: 5%;text-align: center;",4,"ngIf"],["severity","warn",4,"ngIf"],["severity","warn"],["pTemplate",""],[2,"text-decoration","underline","text-decoration-color","black","color","black",3,"ngClass","click"],[1,"row","shadow","p-3","mb-4","bg-white","rounded","align-items-center"],[1,"col-12","col-md-1","mb-3","mb-md-0","d-flex","justify-content-start","justify-content-md-center"],["ngbDropdown","",1,"d-inline-block"],["ngbDropdownToggle","",1,"btn","btn-outline-primary","btn-xs"],[1,"feather","icon-list"],["ngbDropdownMenu","",1,"shadow","p-3","bg-white","rounded"],["ngbDropdownItem","",3,"disabled","click"],[1,"feather","icon-download","mr-1"],["ngbDropdownItem","",3,"click"],[1,"feather","icon-globe","mr-1"],[1,"feather","icon-user","mr-1"],[1,"feather","icon-layers","mr-1"],[1,"col-12","col-md-11"],[1,"w-100",3,"formGroup"],[1,"row","align-items-center","justify-content-center"],[1,"col-12","col-sm-6","col-md-3","mb-3","mb-md-0"],["formControlName","invoiceId","bindLabel","invoiceNumber","bindValue","invoiceNumber","placeholder","Search By Invoice","clearAllText","Clear",3,"items","loading","disabled","notFoundText","clearable","search","change"],["id","monthBox","formControlName","month","bindLabel","label","bindValue","value","placeholder","Month Selection",3,"disabled","items","clearable"],["id","year","formControlName","year","bindLabel","label","bindValue","value","placeholder","Year Selection",3,"items","clearable"],[1,"col-12","col-sm-6","col-md-3","mb-3","mb-md-0","d-flex","align-items-end","justify-content-start","justify-content-md-end"],[1,"d-flex","flex-wrap","gap-2","w-100","w-md-auto"],[1,"btn","btn-outline-primary","mr-2",3,"disabled","click"],[1,"feather","icon-search","mr-1"],["type","button",1,"btn","btn-outline-primary","mr-2",3,"disabled","click"],[1,"btn","btn-outline-primary",3,"disabled","click"],[1,"feather","icon-refresh-cw"],[1,"row","justify-content-center","text-center","mt-5"],[1,"col-12","col-sm-8","col-md-6"],["text","You don't have a Collection Account yet. Please create one to start billing your merchants.","illustrationName","add.svg","severity","warn"],["type","button",1,"btn","btn-outline-primary","btn-sm","mt-3",2,"min-width","150px",3,"click"],[2,"margin-top","5%","text-align","center"],[4,"ngFor","ngForOf"],[1,"card","list-view","card-list-bg","mb-3"],[1,"card-header","list-header","px-0","py-2","list"],[1,"col-md-12","d-flex","justify-content-between","align-items-center","row","pr-0","m-0"],[1,"card-text","mt-1","text-left"],[1,"font-weight-bold"],["
1id","dropdownManual",1,"btn","btn-more","pb-2","mr-1","align-center",3,"click"],[1,"feather","icon-chevrons-right"],[1,"card-body","carding","p-3"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-flex","flex-column","text-center"],[1,"mb-1"],[1,"font-weight-bold","mb-1"],["severity","error","id","p-message-css"],["style","display: block;","pTemplate",""]],template:function(a,c){1&a&&(e.YNc(0,je,10,7,"ng-container",0),e.YNc(1,Et,2,1,"ng-container",0),e.YNc(2,pt,3,0,"ng-container",0),e.YNc(3,$t,1,0,"app-loading",0)),2&a&&(e.Q6J("ngIf",0==c.billingStatus.failed&&!c.isSummaryLoading&&!c.isLoading),e.xp6(1),e.Q6J("ngIf",(null==c.billingStatus?null:c.billingStatus.isCAOnboard)&&c.invoiceRecords.length&&!c.isLoading&&!c.isSummaryLoading),e.xp6(1),e.Q6J("ngIf",1==c.billingStatus.failed),e.xp6(1),e.Q6J("ngIf",c.isLoading||c.isSummaryLoading))},dependencies:[i.mk,i.sg,i.O5,ee.N,K.w,R.w9,J.jt,J.iD,J.Vi,J.TH,f.jx,te.V,z._Y,z.JJ,z.JL,z.sg,z.u,Oe.mh,i.H9,i.uU,W.X$],styles:[".isPointer[_ngcontent-%COMP%]{cursor:no-drop;pointer-events:none}.opacity[_ngcontent-%COMP%]{opacity:.6}"]}),p})();var yt=r(39308),Zt=r(73842),Ft=r(65701),Jt=r(43423),bt=r(64062),Ut=r(4524),kt=r(47073),Yt=r(30705),Qt=r(99347);function zt(p,L){1&p&&e._UZ(0,"span",11)}function Wt(p,L){if(1&p&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,zt,1,0,"span",10)),2&p){const a=e.oxw().$implicit,c=e.oxw(3);e.xp6(1),e.Oqu(a.parentLabel),e.xp6(1),e.Q6J("ngIf","bulk_update"==c.from&&c.isSectionChanged("standardBillingTemplate",a.code))}}function Ht(p,L){if(1&p&&(e.TgZ(0,"label"),e._uU(1),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.xp6(1),e.Oqu(a.label)}}function Gt(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(4).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[0].message," ")}}function Xt(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(4).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[1].message," ")}}function en(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(4).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[2].message," ")}}function tn(p,L){if(1&p&&(e.TgZ(0,"div"),e.YNc(1,Gt,2,3,"ngb-alert",18),e.YNc(2,Xt,2,3,"ngb-alert",18),e.YNc(3,en,2,3,"ngb-alert",18),e.qZA()),2&p){const a=e.oxw(3).$implicit,c=e.oxw().$implicit,h=e.oxw(3);let N,ne,ue;e.xp6(1),e.Q6J("ngIf",null==(N=h.standardBillingTemplate.get(c.code).get(a.name))||null==N.errors?null:N.errors.required),e.xp6(1),e.Q6J("ngIf",null==(ne=h.standardBillingTemplate.get(c.code).get(a.name))||null==ne.errors?null:ne.errors.min),e.xp6(1),e.Q6J("ngIf",null==(ue=h.standardBillingTemplate.get(c.code).get(a.name))||null==ue.errors?null:ue.errors.max)}}function nn(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div")(1,"p-inputNumber",17),e.NdJ("onInput",function(h){e.CHM(a);const N=e.oxw(2).$implicit,ne=e.oxw().$implicit,ue=e.oxw(3);return e.KtG(ue.onInputFn(h.value,ne.code,N.name,ue.standardBillingTemplate))}),e.qZA(),e.YNc(2,tn,4,3,"div",0),e.qZA()}if(2&p){const a=e.oxw(2).$implicit,c=e.oxw().$implicit,h=e.oxw(3);e.xp6(1),e.Q6J("formControlName",a.name),e.xp6(1),e.Q6J("ngIf",h.standardBillingTemplate.get(c.code).get(a.name).dirty||h.standardBillingTemplate.get(c.code).get(a.name).touched)}}function an(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(4).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[0].message," ")}}function jt(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(4).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[1].message," ")}}function on(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(4).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[2].message," ")}}function Rt(p,L){if(1&p&&(e.TgZ(0,"div"),e.YNc(1,an,2,3,"ngb-alert",18),e.YNc(2,jt,2,3,"ngb-alert",18),e.YNc(3,on,2,3,"ngb-alert",18),e.qZA()),2&p){const a=e.oxw(3).$implicit,c=e.oxw().$implicit,h=e.oxw(3);let N,ne,ue;e.xp6(1),e.Q6J("ngIf",null==(N=h.standardBillingTemplate.get(c.code).get(a.name))||null==N.errors?null:N.errors.required),e.xp6(1),e.Q6J("ngIf",null==(ne=h.standardBillingTemplate.get(c.code).get(a.name))||null==ne.errors?null:ne.errors.min),e.xp6(1),e.Q6J("ngIf",null==(ue=h.standardBillingTemplate.get(c.code).get(a.name))||null==ue.errors?null:ue.errors.max)}}function At(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div")(1,"p-inputNumber",20),e.NdJ("onInput",function(h){e.CHM(a);const N=e.oxw(2).$implicit,ne=e.oxw().$implicit,ue=e.oxw(3);return e.KtG(ue.onInputFn(h.value,ne.code,N.name,ue.standardBillingTemplate))}),e.qZA(),e.YNc(2,Rt,4,3,"div",0),e.qZA()}if(2&p){const a=e.oxw(2).$implicit,c=e.oxw().$implicit,h=e.oxw(3);e.xp6(1),e.Q6J("formControlName",a.name)("minFractionDigits",2)("maxFractionDigits",2),e.xp6(1),e.Q6J("ngIf",h.standardBillingTemplate.get(c.code).get(a.name).dirty||h.standardBillingTemplate.get(c.code).get(a.name).touched)}}function rn(p,L){if(1&p&&(e.TgZ(0,"div"),e._UZ(1,"input",21),e._uU(2),e.qZA()),2&p){const a=L.$implicit,c=e.oxw(3).$implicit;e.xp6(1),e.Q6J("formControlName",c.name)("value",a.value),e.xp6(1),e.hij(" ",a.label," ")}}function ln(p,L){if(1&p&&(e.TgZ(0,"div"),e.YNc(1,rn,3,3,"div",6),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",a.options)}}function sn(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",24)(1,"p-checkbox",25),e.NdJ("onChange",function(h){e.CHM(a);const N=e.oxw(3).$implicit,ne=e.oxw().$implicit,ue=e.oxw(3);return e.KtG(ue.onInputFn(h.checked,ne.code,N.name,ue.standardBillingTemplate))}),e.qZA(),e.TgZ(2,"label",26),e._uU(3),e.qZA()()}if(2&p){const a=e.oxw(3).$implicit;e.xp6(1),e.Q6J("formControlName",a.name)("binary",!0),e.xp6(2),e.Oqu(a.label)}}function qt(p,L){if(1&p&&(e.TgZ(0,"div")(1,"label",22),e._uU(2),e.qZA(),e.YNc(3,sn,4,3,"div",23),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.xp6(2),e.Oqu(a.checkBoxDisplayLabel),e.xp6(1),e.Q6J("ngSwitchCase","checkbox")}
1}function cn(p,L){if(1&p&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.xp6(1),e.hij("Default unhandled element",a.type,"")}}function dn(p,L){if(1&p&&(e.TgZ(0,"div",13)(1,"div",14),e.YNc(2,Ht,2,1,"label",0),e.YNc(3,nn,3,2,"div",15),e.YNc(4,At,3,4,"div",15),e.YNc(5,ln,2,1,"div",15),e.YNc(6,qt,4,2,"div",15),e.qZA(),e.YNc(7,cn,2,1,"div",16),e.qZA()),2&p){const a=e.oxw().$implicit;e.Q6J("ngSwitch",a.type),e.xp6(2),e.Q6J("ngIf","checkbox"!=a.type),e.xp6(1),e.Q6J("ngSwitchCase","fee"),e.xp6(1),e.Q6J("ngSwitchCase","percent"),e.xp6(1),e.Q6J("ngSwitchCase","radio"),e.xp6(1),e.Q6J("ngSwitchCase","checkbox")}}function Bt(p,L){if(1&p&&(e.ynx(0),e.YNc(1,dn,8,6,"div",12),e.BQk()),2&p){const a=L.$implicit;e.xp6(1),e.Q6J("ngIf",!(null!=a&&a.isHide))}}function pn(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"p-accordionTab"),e.YNc(2,Wt,3,2,"ng-template",7),e.TgZ(3,"div",8)(4,"div",9),e.YNc(5,Bt,2,1,"ng-container",6),e.qZA()()(),e.BQk()),2&p){const a=L.$implicit;e.xp6(3),e.Q6J("formGroupName",a.code),e.xp6(2),e.Q6J("ngForOf",a.fields)}}function un(p,L){if(1&p&&(e.TgZ(0,"form",4)(1,"p-accordion",5),e.ynx(2),e.YNc(3,pn,6,2,"ng-container",6),e.BQk(),e.qZA()()),2&p){const a=e.oxw(2);e.Q6J("formGroup",a.standardBillingTemplate),e.xp6(1),e.Q6J("multiple",!0)("activeIndex",a.standardBillingIndex),e.xp6(2),e.Q6J("ngForOf",a.template.standardBillingTemplate)}}function mn(p,L){1&p&&e._UZ(0,"span",11)}function Kt(p,L){if(1&p&&(e.TgZ(0,"span"),e._uU(1,"Value Added Services"),e.qZA(),e.YNc(2,mn,1,0,"span",10)),2&p){const a=e.oxw(3);e.xp6(2),e.Q6J("ngIf","bulk_update"==a.from&&a.isSectionChanged("valueAddedServiceTemplate"))}}function gn(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div")(1,"p-inputNumber",17),e.NdJ("onInput",function(h){e.CHM(a);const N=e.oxw().$implicit,ne=e.oxw().$implicit,ue=e.oxw(3);return e.KtG(ue.onInputFn(h.value,ne.code,N.name,ue.valueAddedServiceTemplate))}),e.qZA()()}if(2&p){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("formControlName",a.name)}}function hn(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div")(1,"p-inputNumber",20),e.NdJ("onInput",function(h){e.CHM(a);const N=e.oxw().$implicit,ne=e.oxw().$implicit,ue=e.oxw(3);return e.KtG(ue.onInputFn(h.value,ne.code,N.name,ue.valueAddedServiceTemplate))}),e.qZA()()}if(2&p){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("formControlName",a.name)("minFractionDigits",2)("maxFractionDigits",2)}}function _n(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[0].message," ")}}function fn(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[1].message," ")}}function vn(p,L){if(1&p&&(e.TgZ(0,"ngb-alert",19),e._uU(1),e.qZA()),2&p){const a=e.oxw(2).$implicit;e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",a.validations[2].message," ")}}function xn(p,L){if(1&p&&(e.TgZ(0,"div"),e.YNc(1,_n,2,3,"ngb-alert",18),e.YNc(2,fn,2,3,"ngb-alert",18),e.YNc(3,vn,2,3,"ngb-alert",18),e.qZA()),2&p){const a=e.oxw().$implicit,c=e.oxw().$implicit,h=e.oxw(3);let N,ne,ue;e.xp6(1),e.Q6J("ngIf",null==(N=h.valueAddedServiceTemplate.get(c.code).get(a.name))||null==N.errors?null:N.errors.required),e.xp6(1),e.Q6J("ngIf",null==(ne=h.valueAddedServiceTemplate.get(c.code).get(a.name))||null==ne.errors?null:ne.errors.min),e.xp6(1),e.Q6J("ngIf",null==(ue=h.valueAddedServiceTemplate.get(c.code).get(a.name))||null==ue.errors?null:ue.errors.max)}}function Cn(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"div",30)(2,"label"),e._uU(3),e.qZA(),e.YNc(4,gn,2,1,"div",0),e.YNc(5,hn,2,3,"div",0),e.YNc(6,xn,4,3,"div",0),e.qZA(),e.BQk()),2&p){const a=L.$implicit,c=e.oxw().$implicit,h=e.oxw(3);e.xp6(3),e.Oqu(a.label),e.xp6(1),e.Q6J("ngIf","fee"==a.type),e.xp6(1),e.Q6J("ngIf","percent"==a.type),e.xp6(1),e.Q6J("ngIf",h.valueAddedServiceTemplate.get(c.code).get(a.name).dirty||h.valueAddedServiceTemplate.get(c.code).get(a.name).touched)}}function Tn(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"p-fieldset",27)(2,"div",28)(3,"div",29),e.YNc(4,Cn,7,4,"ng-container",6),e.qZA()()(),e.BQk()),2&p){const a=L.$implicit;e.xp6(1),e.Q6J("formGroupName",a.code)("legend",a.parentLabel),e.xp6(3),e.Q6J("ngForOf",a.fields)}}const bn=function(){return[0]};function Dn(p,L){if(1&p&&(e.TgZ(0,"p-accordion",5),e.ynx(1),e.TgZ(2,"p-accordionTab"),e.YNc(3,Kt,3,1,"ng-template",7),e.TgZ(4,"form",4),e.YNc(5,Tn,5,3,"ng-container",6),e.qZA()(),e.BQk(),e.qZA()),2&p){const a=e.oxw(2);e.Q6J("multiple",!0)("activeIndex",e.DdM(4,bn)),e.xp6(4),e.Q6J("formGroup",a.valueAddedServiceTemplate),e.xp6(1),e.Q6J("ngForOf",a.template.valueAddedServiceTemplate)}}function yn(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"div",1),e.YNc(2,un,4,4,"form",2),e.YNc(3,Dn,6,5,"p-accordion",3),e.qZA(),e.BQk()),2&p){const a=e.oxw();e.xp6(2),e.Q6J("ngIf",null==a.template.standardBillingTemplate?null:a.template.standardBillingTemplate.length),e.xp6(1),e.Q6J("ngIf",null==a.template.valueAddedServiceTemplate?null:a.template.valueAddedServiceTemplate.length)}}function An(p,L){1&p&&(e.ynx(0),e._UZ(1,"app-loading"),e.BQk())}let P=(()=>{class p{constructor(a,c,h,N){this.common=a,this.fb=c,this.messageService=h,this.activeRoute=N,this.contractForm=new e.vpe,this.contractLoaderFn=new e.vpe,this.contractLoader=!0,this.template={},this.orginalTemplate={},this.changedSections=[],this.queryParams=this.activeRoute.snapshot.queryParams,this.from=this.queryParams.from,this.getContract=()=>{this.contractLoaderFn.emit("true");let ne={};this.merchantId&&(ne.merchantId=this.merchantId),this.common.getCommonHttpClientQueryParams(T.D.merchantBilling.getContract,ne).pipe((0,j.q)(1)).subscribe(ue=>{this.contractLoader=!1,this.contractLoaderFn.emit("false"),this.template=ue.templateJson,this.generateFormFn()},ue=>{this.contractLoaderFn.emit("error"),this.showToaster("error","",ue.message)})},this.generateFormFn=()=>{const ne=ue=>{const Ae={};return ue.forEach(we=>{const Pe=this.fb.group({});we.fields.forEach(me=>{const ve=[];me.validations?.forEach(Ce=>{switch(Ce.validator){case"required":ve.push(z.kI.required);break;case"min":ve.push(z.kI.min(Ce.value));break;case"max":ve.push(z.kI.max(Ce.value));break;case"pattern":ve.push(z.kI.pattern(Ce.value))}}),Pe.addControl(me.name,this.fb.control(me.value,{validators:ve,updateOn:"change"}))}),Ae[we.code]=Pe}),Ae};this.standardBillingTemplate=this.fb.group(ne(this.template.standardBillingTemplate)),this.valueAddedServiceTemplate=this.fb.group(ne(this.template.valueAddedServiceTemplate)),this.orginalTemplate={standardBillingTemplate:this.standardBillingTemplate.value,valueAddedServiceTemplate:this.valueAddedServiceTemplate.value},this.standardBillingIndex=[],this.template.standardBillingTemplate.map((ue,Ae)=>{this.standardBillingIndex.push(Ae)}),this.disable&&(this.standardBillingTemplate.disable(),this.valueAddedServiceTemplate.disable()),this.standardBillingTemplate.markAllAsTouched(),this.valueAddedServiceTemplate.markAllAsTouched(),this.emitFn()},this.emitFn=()=>{const ne={standardBillingTemplate:this.standardBillingTemplate.getRawValue(),valueAddedServiceTemplate:this.valueAddedServiceTemplate.getRawValue()};
1this.contractForm.emit(this.standardBillingTemplate.invalid||this.valueAddedServiceTemplate.invalid?{invalid:!0,value:{}}:{valid:!0,value:ne,changedValue:this.diff(this.orginalTemplate,ne),isChanged:!(0,v.isEqual)(this.orginalTemplate,ne)})},this.diff=(ne,ue)=>Object.entries(ue).reduce((Ae,[we,Pe])=>{const me=ne?.[we];if(Pe&&"object"==typeof Pe&&!Array.isArray(Pe)){const ve=this.diff(me||{},Pe);Object.keys(ve).length&&(Ae[we]=ve)}else Pe!==me&&(Ae[we]=Pe);return Ae},{})}ngOnInit(){this.getContract()}isSectionChanged(a,c){return"standardBillingTemplate"==a?!(0,v.isEqual)(this.standardBillingTemplate.value[c],this.orginalTemplate.standardBillingTemplate[c]):"valueAddedServiceTemplate"==a?!(0,v.isEqual)(this.valueAddedServiceTemplate.value,this.orginalTemplate.valueAddedServiceTemplate):void 0}showToaster(a,c,h){this.messageService.add({severity:a,summary:c,detail:h,key:"copy-toast"})}onInputFn(a,c,h,N){const ne=N.get(c).get(h);ne.setValue(a,{emitEvent:!0,onlySelf:!0}),ne.markAsDirty(),ne.updateValueAndValidity(),this.emitFn()}}return p.\u0275fac=function(a){return new(a||p)(e.Y36(n.v),e.Y36(z.qu),e.Y36(f.ez),e.Y36(t.gz))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-merchant-contract"]],inputs:{merchantId:"merchantId",disable:"disable"},outputs:{contractForm:"contractForm",contractLoaderFn:"contractLoaderFn"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"accordian-width"],[3,"formGroup",4,"ngIf"],[3,"multiple","activeIndex",4,"ngIf"],[3,"formGroup"],[3,"multiple","activeIndex"],[4,"ngFor","ngForOf"],["pTemplate","header"],[3,"formGroupName"],[1,"row","col-md-12"],["class","dot",4,"ngIf"],[1,"dot"],["class","col-md-3",3,"ngSwitch",4,"ngIf"],[1,"col-md-3",3,"ngSwitch"],[1,"col-md-12","mt-3"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["inputId","currency-us","mode","currency","currency","USD","locale","en-US",3,"formControlName","onInput"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],["id","decidedRatio","value","#{remunerationBean.model.decidedRatio}","emptyValue","sign","decimalPlaces","2","styleClass","field","suffix"," %",3,"formControlName","minFractionDigits","maxFractionDigits","onInput"],["type","radio",3,"formControlName","value"],["for","checkBoxlabel",1,"pt-2"],["class","p-field-checkbox d-flex align-items-center mb-2",4,"ngSwitchCase"],[1,"p-field-checkbox","d-flex","align-items-center","mb-2"],["inputId","field.name",3,"formControlName","binary","onChange"],["for","field.name",1,"mb-0","ml-1"],[3,"formGroupName","legend"],[1,"p-3","align-margin-height"],[1,"d-flex","row","col-md-12","my-2"],[1,"col-md-3","pt-2"]],template:function(a,c){1&a&&(e.YNc(0,yn,4,2,"ng-container",0),e.YNc(1,An,2,0,"ng-container",0)),2&a&&(e.Q6J("ngIf",!c.contractLoader),e.xp6(1),e.Q6J("ngIf",c.contractLoader))},dependencies:[i.sg,i.O5,i.RF,i.n9,i.ED,ee.N,Ut.p,f.jx,z._Y,z.Fj,z._,z.JJ,z.JL,z.sg,z.u,z.x0,kt.UQ,kt.US,J.xm,Yt.Rn,Qt.XZ,Oe.mh],styles:[".dot[_ngcontent-%COMP%]{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid white;background-color:#9a17ff;margin-left:5px}"]}),p})();const re=["wizard"];function x(p,L){1&p&&(e._uU(0),e.ALo(1,"translate"),e._UZ(2,"i",43),e.ALo(3,"translate")),2&p&&(e.hij(" ",e.lcZ(1,2,"mb.sendLinkDesc")," "),e.xp6(2),e.s9C("pTooltip",e.lcZ(3,4,"mb.sendLinkDescContent")))}function m(p,L){1&p&&(e._uU(0),e.ALo(1,"translate"),e._UZ(2,"i",43),e.ALo(3,"translate")),2&p&&(e.hij(" ",e.lcZ(1,2,"mb.sendLinkDisc")," "),e.xp6(2),e.s9C("pTooltip",e.lcZ(3,4,"mb.sendLinkDiscContent")))}function le(p,L){1&p&&(e.TgZ(0,"div"),e._uU(1," Invalid characters. Only letters, numbers, spaces, and _$'.!%,-@& are allowed. "),e.qZA())}function Be(p,L){if(1&p&&(e.TgZ(0,"div",44),e.YNc(1,le,2,0,"div",8),e.qZA()),2&p){const a=e.oxw(3);let c;e.xp6(1),e.Q6J("ngIf",!(null==(c=a.billingPreferenceForm.get("paymentLinkDescription"))||null==c.errors||!c.errors.pattern)||!(null==(c=a.billingPreferenceForm.get("disclaimer"))||null==c.errors||!c.errors.pattern))}}function Ge(p,L){1&p&&(e.TgZ(0,"p",15),e._uU(1,"NOTE:"),e.qZA(),e.TgZ(2,"p"),e._uU(3,"Please log in to your Collection account and upload your logo. This logo will appear on your invoices and payment links. "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"To upload: Collection account \u2192 Settings \u2192 Upload Logo"),e.qZA())}function ht(p,L){if(1&p){const a=e.EpF();e.ynx(0),e.TgZ(1,"div",11)(2,"div",12)(3,"div",13)(4,"p",14)(5,"span",15)(6,"h5"),e._uU(7),e.ALo(8,"translate"),e.qZA()()()()(),e.TgZ(9,"div",16)(10,"div",17)(11,"div",18)(12,"div",19)(13,"h5"),e._uU(14),e.ALo(15,"translate"),e.qZA()(),e.TgZ(16,"div",20)(17,"p",21)(18,"u",22),e._uU(19),e.qZA()(),e.TgZ(20,"div")(21,"div",23)(22,"a",24),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("EDIT_MERCHANT"))}),e._UZ(23,"span",25),e.TgZ(24,"span"),e._uU(25),e.qZA()(),e.TgZ(26,"a",26),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.loginAs())}),e._UZ(27,"span",27),e.TgZ(28,"span"),e._uU(29),e.qZA()()()()()(),e.TgZ(30,"div",18)(31,"div",19)(32,"h5"),e._uU(33),e.ALo(34,"translate"),e.qZA()(),e.TgZ(35,"div",20)(36,"p",28)(37,"u",22),e._uU(38),e.qZA()(),e.TgZ(39,"div")(40,"div",23)(41,"a",24),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("EDIT_STORE"))}),e._UZ(42,"span",25),e.TgZ(43,"span"),e._uU(44),e.qZA()(),e.TgZ(45,"a",24),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("ADD_ON_FEATURE"))}),e._UZ(46,"span",29),e.TgZ(47,"span"),e._uU(48),e.qZA()()()()()(),e.TgZ(49,"div",18)(50,"div",19)(51,"h5"),e._uU(52),e.ALo(53,"translate"),e.qZA()(),e.TgZ(54,"div",20)(55,"p",30)(56,"u",22),e._uU(57),e.qZA()(),e.TgZ(58,"div")(59,"div",23)(60,"a",24),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("ABOUT_DEVICE"))}),e._UZ(61,"span",31),e.TgZ(62,"span"),e._uU(63),e.qZA()(),e.TgZ(64,"a",24),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("EDIT_PARAMS"))}),e._UZ(65,"span",25),e.TgZ(66,"span"),e._uU(67),e.qZA()(),e.TgZ(68,"a",24),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.navigateFn("EDIT_TPN"))}),e._UZ(69,"span",25),e.TgZ(70,"span"),e._uU(71),e.qZA()()()()()()()()(),e.TgZ(72,"div",32)(73,"div",12)(74,"div",13)(75,"p",14)(76,"span",15)(77,"h5"),e._uU(78),e.ALo(79,"translate"),e.qZA()()()()(),e.TgZ(80,"div",16)(81,"form",33)(82,"div",34)(83,"div",35)(84,"p-fieldset",36),e.YNc(85,x,4,6,"ng-template",37),e._UZ(86,"textarea",38),e.qZA()(),e.TgZ(87,"div",35)(88,"p-fieldset",36),e.YNc(89,m,4,6,"ng-template",37),e._UZ(90,"textarea",39),e.qZA()()(),e.YNc(91,Be,2,1,"div",40),e.TgZ(92,"div")(93,"p-messages",41),e.YNc(94,Ge,6,0,"ng-template",42),e.qZA()()()()(),e.BQk()}if(2&p){const a=e.oxw(2);let c;e.xp6(7),e.hij(" ",e.lcZ(8,21,"mb.collInfo"),""),e.xp6(7),e.Oqu(e.l
1cZ(15,23,"mb.mDba")),e.xp6(5),e.hij("",a.merchantInfo.dba," "),e.xp6(6),e.hij("","Edit Merchant"," "),e.xp6(1),e.Q6J("disabled",a.isDisableProxyLogin),e.xp6(3),e.hij("","Login to Collection Account"," "),e.xp6(4),e.Oqu(e.lcZ(34,25,"mb.sDba")),e.xp6(5),e.hij("",a.storeInfo.dba," "),e.xp6(6),e.hij("","Edit Store"," "),e.xp6(4),e.hij("","Add-on Features"," "),e.xp6(4),e.Oqu(e.lcZ(53,27,"mb.tpn")),e.xp6(5),e.AsE("",a.tpnInfo.tpn,"",a.tpnInfo.defaultLabel?"("+a.tpnInfo.defaultLabel+")":""," "),e.xp6(6),e.hij("","About Device"," "),e.xp6(4),e.hij("","Edit Parameter"," "),e.xp6(4),e.hij("","Edit Processor Info"," "),e.xp6(7),e.hij(" ",e.lcZ(79,29,"mb.custInAndPay"),""),e.xp6(3),e.Q6J("formGroup",a.billingPreferenceForm),e.xp6(5),e.Q6J("maxlength",150),e.xp6(4),e.Q6J("maxlength",150),e.xp6(1),e.Q6J("ngIf",(null==(c=a.billingPreferenceForm.get("paymentLinkDescription"))?null:c.invalid)||(null==(c=a.billingPreferenceForm.get("disclaimer"))?null:c.invalid))}}function ut(p,L){1&p&&(e.ynx(0),e._UZ(1,"app-loading"),e.BQk())}function mt(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"button",45),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.goToStep(1))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&p){const a=e.oxw(2);e.Q6J("disabled",null==a.billingPreferenceForm?null:a.billingPreferenceForm.invali
1d),e.xp6(1),e.hij(" ",e.lcZ(2,2,"Next")," ")}}function Mt(p,L){if(1&p&&(e.TgZ(0,"aw-wizard-step",7),e.YNc(1,ht,95,31,"ng-container",8),e.YNc(2,ut,2,0,"ng-container",8),e.TgZ(3,"div",9),e.YNc(4,mt,3,4,"button",10),e.qZA()()),2&p){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",!a.prefLoader),e.xp6(1),e.Q6J("ngIf",a.prefLoader),e.xp6(2),e.Q6J("ngIf",!a.prefLoader)}}function lt(p,L){1&p&&(e.TgZ(0,"p",54),e._uU(1," The default rate has been pre-filled for your convenience. You can adjust the rate and set it as your default price. "),e.qZA())}const Pt=function(p){return{visibility:p}};function st(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"p-messages",52),e.YNc(2,lt,2,0,"ng-template",53),e.qZA(),e.BQk()),2&p){const a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(1,Pt,a.queryParams.setSellingPrice?"hidden":"visible"))}}function Ke(p,L){1&p&&(e.TgZ(0,"p",56)(1,"strong"),e._uU(2,"View Only"),e.qZA(),e.TgZ(3,"span",57),e._UZ(4,"i",58),e.qZA()())}function Lt(p,L){1&p&&(e.ynx(0),e.TgZ(1,"p-messages",55),e.YNc(2,Ke,5,0,"ng-template",53),e.qZA(),e.BQk())}function Pn(p,L){1&p&&e._UZ(0,"span",59)}function In(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",46),e.YNc(1,st,3,3,"ng-container",8),e.TgZ(2,"div",47),e.YNc(3,Lt,3,0,"ng-container",8),e.TgZ(4,"div",48)(5,"button",49),e.NdJ("click",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.goToStep())}),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",50),e.NdJ("click",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.submitForm())}),e._uU(9),e.ALo(10,"translate"),e.YNc(11,Pn,1,0,"span",51),e.qZA()()()()}if(2&p){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.isAccess(a.modules.MERCHANT_BILLING,a.privileges.EDIT_BILLING)),e.xp6(2),e.Q6J("ngIf",!a.isAccess(a.modules.MERCHANT_BILLING,a.privileges.EDIT_BILLING)),e.xp6(2),e.Q6J("disabled",a.submitLoader),e.xp6(1),e.hij(" ",e.lcZ(7,7,"Back")," "),e.xp6(2),e.Q6J("disabled",!a.isAccess(a.modules.MERCHANT_BILLING,a.privileges.EDIT_BILLING)||a.submitLoader||(null==a.conractForm?null:a.conractForm.invalid)||"bulk_update"==a.from&&!(null!=a.conractForm&&a.conractForm.isChanged)),e.xp6(1),e.hij(" ",e.lcZ(10,9,"bulk_update"==a.from?"mb.bulkUpdate":"bulk_enable"==a.from?"mb.bulkEnable":"Save")," "),e.xp6(2),e.Q6J("ngIf",a.submitLoader)}}let Nt=(()=>{class p{constructor(a,c,h,N,ne,ue,Ae){var we=this;this.common=a,this.messageService=c,this.ngbModal=h,this.route=N,this.activeRoute=ne,this.userService=ue,this.authService=Ae,this.modules=ce.j,this.privileges=C.R,this.customerInfo=localStorage.getItem("current_user")?JSON.parse(localStorage.getItem("current_user")):{},this.merchantInfo={},this.storeInfo={},this.tpnInfo={},this.prefLoader=!0,this.submitLoader=!1,this.conractForm={},this.conractFormLoader="true",this.customRegex=/^[A-Za-z0-9 _$'.!%,-@&]{0,150}$/,this.billingPreferenceForm=new z.cw({paymentLinkDescription:new z.NI("",[z.kI.pattern(this.customRegex),z.kI.maxLength(150)]),disclaimer:new z.NI("",[z.kI.pattern(this.customRegex),z.kI.maxLength(150)])}),this.queryParams=this.activeRoute.snapshot.queryParams,this.from=this.queryParams.from,this.isDisableProxyLogin=!1,this.editBilling=this.isAccess(ce.j.MERCHANT_BILLING,C.R.EDIT_BILLING),this.getAccountInfo=()=>{this.common.getCommonHttpClientParams(T.D.merchantBilling.accountInfo).pipe((0,j.q)(1)).subscribe(Pe=>{if(this.prefLoader=!1,!Pe.data)return void console.log("show erorr toaster");this.merchantInfo={dba:Pe.data.merchantDba,merchantId:Pe.data.merchantId,merchantEmail:Pe.data.email,userId:Pe.data.userId};const me=Pe.data.merchant_to_stores?.length?Pe.data.merchant_to_stores[0]:{};this.storeInfo={dba:me?.storeDba||null,storeId:me?.storeId||null,storeEmail:me?.email||null};const ve=me?.store_to_tpns?.length?me?.store_to_tpns[0]:{};this.tpnInfo={tpn:ve.tpn||null,tpnId:ve.tpnId||null,defaultLabel:ve.defaultLabel||null},this.billingPreferenceForm.setValue({paymentLinkDescription:Pe.data?.billingPreference?.paymentLinkDescription||"Gateway Fee",disclaimer:Pe.data?.billingPreference?.disclaimer||""})},Pe=>{this.prefLoader=!1,this.showToaster("error","",Pe.message||"Serv")})},this.saveOrUpdateSellingPrice=function(){var Pe=(0,_.Z)(function*(me,ve=!0){try{const Ce=yield we.common.postCommonHttpClient(T.D.merchantBilling.saveSellingPrice,me).toProm
1ise();we.showToaster("success","",Ce.message),ve&&(we.ngbModal.dismissAll(),we.route.navigate(["/billing-invoice/m-b"]))}catch(Ce){we.showToaster("error","",Ce.message)}});return function(me){return Pe.apply(this,arguments)}}(),this.submitForm=()=>{if("bulk_update"==this.from){const me=this.generateJobId();let ve=this.ngbModal.open(yt.X,{backdrop:"static",keyboard:!1,size:"md",centered:!0});ve.componentInstance.action="bulk_update",ve.componentInstance.loader=!0,ve.componentInstance.metaData={jobId:me,totalMerchants:this.queryParams.totalMerchants},ve.componentInstance.event.subscribe(Ce=>{if("submit"==Ce.action){const Xe={customerId:this.customerInfo.customerId,template:{...this.conractForm.changedValue},action:"bulk_update",jobId:me};if(Ce.checked){const it={customerId:this.customerInfo.customerId,billingPreference:this.billingPreferenceForm.value,template:{...this.conractForm.value},updateSellingPrice:Ce.checked};this.saveOrUpdateSellingPrice(it,!1),this.bulkEnable(Xe)}else this.bulkEnable(Xe)}})}else if("pref_sell_price"==this.from){let me=this.ngbModal.open(yt.X,{backdrop:"static",keyboard:!1,size:"md",centered:!0});me.componentInstance.action="update_sell_price_confirm",me.componentInstance.loader=!0,me.componentInstance.event.subscribe(ve=>{if("submit"==ve.action){const Ce={customerId:this.customerInfo.customerId,billingPreference:this.billingPreferenceForm.value,template:{...this.conractForm.value}};this.saveOrUpdateSellingPrice(Ce)}})}else if("bulk_enable"==this.from)this.bulkEnableConfirmDialog();else if("collection_account"==this.from||!this.queryParams.setSellingPrice){let me=this.ngbModal.open(yt.X,{backdrop:"static",keyboard:!1,size:"md",centered:!0});me.componentInstance.action="save_price_confirm",me.componentInstance.loader=!0,me.componentInstance.event.subscribe(ve=>{"submit"==ve.action&&Pe()})}const Pe=()=>{const me={customerId:this.customerInfo.customerId,billingPreference:this.billingPreferenceForm.value,template:{...this.conractForm.value}};this.common.postCommonHttpClient(T.D.merchantBilling.saveSellingPrice,me).pipe((0,j.q)(1)).subscribe(ve=>{this.submitLoader=!1,this.ngbModal.dismissAll(),this.showToaster("success","",ve.message),this.billingSummary.totalMerchants?this.bulkEnableDialog(me):this.route.navigate(["/billing-invoice/m-b"])},ve=>{this.submitLoader=!1,this.ngbModal.dismissAll(),this.showToaster("error","",ve.message)})}},this.generateJobId=()=>`${crypto.randomUUID()}_${(new Date).toISOString()}`,this.bulkEnableConfirmDialog=()=>{const Pe=this.generateJobId(),me={customerId:this.customerInfo.customerId,template:{...this.conractForm.value},jobId:Pe,action:"bulk_enable"};let ve=this.ngbModal.open(yt.X,{backdrop:"static",keyboard:!1,size:"md",centered:!0});ve.componentInstance.action="bulk_enable_confirm",ve.componentInstance.loader=!0,ve.componentInstance.metaData={jobId:Pe,pendingMerchants:this.queryParams.pendingMerchants},ve.componentInstance.event.subscribe(Ce=>{"submit"==Ce.action&&this.bulkEnable(me)}),ve.result.then(Ce=>{"bulk_enable_confirm_submit"==Ce?(me.action="bulk_enable",this.bulkEnable(me)):this.route.navigate(["/billing-invoice/m-b"])})},this.bulkEnableDialog=Pe=>{let me=this.ngbModal.open(yt.X,{backdrop:"static",keyboard:!1,size:"md",centered:!0});me.componentInstance.action="bulk_enable",me.result.then(ve=>{"bulk_enable_submit"==ve?this.bulkEnableConfirmDialog():this.route.navigate(["/billing-invoice/m-b"])})},this.bulkEnable=Pe=>{this.common.postCommonHttpClient(T.D.merchantBilling.bulkEnable,Pe).pipe((0,j.q)(1)).subscribe(me=>{setTimeout(()=>{this.submitLoader=!1,this.ngbModal.dismissAll(),this.showToaster("success","",me.message),this.route.navigate(["/billing-invoice/m-b"])},3e3)},me=>{if(this.submitLoader=!1,this.ngbModal.dismissAll(),"ASK_BULK_ENABLE"==me?.responseMessage){let ve=this.ngbModal.open(yt.X,{backdrop:"static",keyboard:!1,size:"md",centered:!0});return ve.componentInstance.action="bulk_update_failed_ask_bulk_enable",void ve.result.then(Ce=>{"bulk_update_failed_ask_bulk_enable_submit"==Ce?this.bulkEnableConfirmDialog():this.route.navigate(["/billing-invoice/m-b"])})}this.showToaster("error","",me.message)})},this.goToStep=(Pe=0)=>{0!=this.isShowPreference?(window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{this.wizard?.goToStep(Pe)},100)):this.route.navigate(["/billing-invoice/m-b"])},this.contractFormFn=Pe=>{this.conractForm=Pe},this.contractFormLoaderFn=Pe=>{this.conractFormLoader=Pe},this.navigateFn=Pe=>{const me={from:this.from,route:"m-b-s",backtopage:"m-b-s"};switch(Pe){case"EDIT_MERCHANT":this.route.navigate(["/merchant-management/merchant-create-management/edit-merchant"],{queryParams:{id:this.merchantInfo.merchantId,type:"edit-merchant",gostep:"0",...me}});break;case"EDIT_STORE":this.route.navigate(["/merchant-management/merchant-create-management/edit-store"],{queryParams:{id:this.storeInfo.storeId,type:"edit_store",btn:"1",gostep:"1",...me}});break;case"ADD_ON_FEATURE":this.route.navigate(["/merchant-management/add-on-features"],{queryParams:{id:this.storeInfo.storeId,mid:this.merchantInfo.merchantId,...me,type:"edit_AddOn"}});break;case"ABOUT_DEVICE":this.route.navigate(["/steam-param/tpn-snapshot"],{queryParams:{tpn:this.tpnInfo?.tpn,...me}});break;case"EDIT_PARAMS":this.route.navigate(["/params-management/add-params"],{queryParams:{id:this.tpnInfo?.tpnId,...me}});break;case"EDIT_TPN":this.routeToEditTPns()}},this.billingSummary=this.queryParams.billingSummary?JSON.parse(this.queryParams.billingSummary):{},this.billingStatus=this.queryParams.billingStatus?JSON.parse(this.queryParams.billingStatus):{}}ngOnInit(){this.getAccountInfo(),this.contractFormFn({invalid:!0,value:{}}
1),this.getProxyLoginDetails(),this.editBilling||this.billingPreferenceForm.disable()}ngAfterViewInit(){this.goToStep("s-s-p"==this.queryParams.to?1:0),setTimeout(()=>{this.isShowPreference=!["bulk_update","bulk_enable"].includes(this.from)},50)}showToaster(a,c,h){this.messageService.add({severity:a,summary:c,detail:h,key:"copy-toast"})}routeToEditTPns(){const a=this.tpnInfo.tpnId,c=this.tpnInfo.tpn;this.common.getCommonHttpClientQueryParams(T.D.isoCheckOpenBatch,{tpnId:a,paramEdit:!0}).subscribe(N=>{if(1==N.message.status)this.route.navigate(["/merchant-management/merchant-create-management/edit-tpns"],{queryParams:{id:a,tpn:c,gostep:"2",from:this.from,route:"m-b-s",backtopage:"m-b-s"}});else{let ne=this.ngbModal.open(Zt.u,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});ne.componentInstance.tpn=c,ne.componentInstance.route="tpn",ne.result.then(ue=>{"goToBatches"==ue&&this.ngbModal.dismissAll()})}})}loginAs(){if(!this.merchantInfo?.userId)return;let a=this.ngbModal.open(X.P,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});a.componentInstance.isLoading=!0,a.componentInstance.header="LOGIN-AS CONFIRMATION";let c={ownedByCustomer:this.customerInfo.customerId},h=this.userService.getUser(this.userService.getUserById,{id:this.merchantInfo?.userId}),N=this.common.getCommonHttpClientQueryParams(T.D.isEnableProxyEmailAlert,c);(0,fe.D)([h,N]).pipe((0,j.q)(1)).subscribe(([ne,ue])=>{const Ae=ne;a.componentInstance.body="Do you want to login as your Collection Account ?",a.componentInstance.confirmButton="Confirm",a.componentInstance.email=Ae.email,a.componentInstance.systemUser=this.authService.getUser.firstName+" "+this.authService.getUser.lastName,a.componentInstance.systemEmail=this.authService.getUser.email,a.componentInstance.isLoading=!1,a.componentInstance.loginUser="Merchant",a.componentInstance.isEnableProxyEmail=ue.isEnableProxyMail},ne=>{a.componentInstance.isLoading=!1,a.componentInstance.body=`Error occurred, ${ne.message}`,a.componentInstance.isError=!0})}getProxyLoginDetails(){this.common.getCommonHttpClientParams(T.D.getProxyAlertDetails+"/"+this.customerInfo.customerId).subscribe(a=>{this.isDisableProxyLogin=!a.data?.length||"ACTIVE"!=a.data.find(c=>"isMerchantLoginAs"==c.isoPreferences_to_isoPreferenceMapping?.code)?.status},a=>{this.isDisableProxyLogin=!0})}isAccess(a,c){return this.authService.isFeatureEnabled(a,c)}}return p.\u0275fac=function(a){return new(a||p)(e.Y36(n.v),e.Y36(f.ez),e.Y36(J.FF),e.Y36(t.F0),e.Y36(t.gz),e.Y36(E.K),e.Y36(de.e))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-merchant-billing-settings"]],viewQuery:function(a,c){if(1&a&&e.Gf(re,5),2&a){let h;e.iGM(h=e.CRH())&&(c.wizard=h.first)}},decls:7,vars:5,consts:[[2,"margin-bottom","50px"],["id","mb-wizard","navigateBackward","deny",3,"disableNavigationBar","navBarLocation","awNavigationMode"],["wizard",""],["stepId","0","stepTitle","Merchant Invoicing Preferences",4,"ngIf"],["stepId","1","stepTitle","Set Selling Price"],[3,"disable","contractForm","contractLoaderFn"],["class","d-flex fixed-bar align-items-center",4,"ngIf"],["stepId","0","stepTitle","Merchant Invoicing Preferences"],[4,"ngIf"],[1,"d-flex","justify-content-end","align-items-center","fixed-bar",2,"padding","10px 0px 30px 0px"],["type","button","class","btn btn-primary btn-sm mt-3","style","margin-right: 60px;",3,"disabled","click",4,"ngIf"],[1,"card","list-view","card-list-bg","mb-5"],[1,"card-header","list-header","px-0","py-2","list"],[1,"col-md-12","row","pr-0","m-0"],[1,"card-text","mt-1","text-left"],[1,"font-weight-bold"],[1,"card-body","carding","p-5"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-flex","flex-column"],[1,"font-weight-bold","mb-1"],["ngbDropdown","","container","body"],["ngbDropdownToggle","","data-toggle","tooltip","data-placement","bottom","title","Merchant DBA",1,"over-flow"],[1,"hover-text",2,"color","rgb(94, 108, 132)","cursor","pointer"],["ngbDropdownMenu","","aria-labelledby","dropdownMenuButton"],["ngbDropdownItem","",1,"d-flex","align-items-center",3,"click"],[1,"feather","icon-edit","mr-1"],["ngbDropdownItem","",1,"d-flex","align-items-center",3,"disabled","click"],[1,"feather","icon-user","mr-1"],["ngbDropdownToggle","","data-toggle","tooltip","data-
1placement","bottom","title","Store DBA",1,"over-flow"],[1,"feather","icon-plus-circle","mr-1"],["ngbDropdownToggle","","data-toggle","tooltip","data-placement","bottom","title","TPN",1,"over-flow"],[1,"feather","icon-smartphone","mr-1"],[1,"card","list-view","card-list-bg"],[3,"formGroup"],[1,"row","mb-3"],[1,"col-md-6"],["id","p-fieldset-css"],["pTemplate","header"],["formControlName","paymentLinkDescription","placeholder","Enter payment link description","pInputTextarea","","rows","5",1,"form-control",3,"maxlength"],["formControlName","disclaimer","placeholder","Enter payment link disclaimer","pInputTextarea","","rows","5",1,"form-control",3,"maxlength"],["class","text-danger",4,"ngIf"],["severity","warn","id","p-message-css"],["style","display: block;","pTemplate",""],["tooltipPosition","right",1,"mdi","mdi-help-circle",3,"pTooltip"],[1,"text-danger"],["type","button",1,"btn","btn-primary","btn-sm","mt-3",2,"margin-right","60px",3,"disabled","click"],[1,"d-flex","fixed-bar","align-items-center"],[1,"d-flex","align-items-center","ml-auto"],[1,"d-flex","align-items-center",2,"margin-right","60px"],["type","submit",1,"btn","btn-outline-primary","btn-sm","mr-2",3,"disabled","click"],["type","submit",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["class","spinner-border spinner-border-sm ml-1","role","status","aria-hidden","true",4,"ngIf"],["severity","warn","id","p-message-css-1",1,"mb-0",2,"margin-left","60px",3,"ngStyle"],["pTemplate",""],[1,"mb-0"],["severity","error","id","p-message-css-1",1,"mb-0","mr-3","align-self-center"],[1,"mb-0","px-1","d-flex","align-items-center"],[1,"ml-2"],["data-feather","help-circle","appFeatherIcon","",1,"icon-sm"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","ml-1"]],template:function(a,c){1&a&&(e.TgZ(0,"div",0)(1,"aw-wizard",1,2),e.YNc(3,Mt,5,3,"aw-wizard-step",3),e.TgZ(4,"aw-wizard-step",4)(5,"app-merchant-contract",5),e.NdJ("contractForm",function(N){return c.contractFormFn(N)})("contractLoaderFn",function(N){return c.contractFormLoaderFn(N)}),e.qZA(),e.YNc(6,In,12,11,"div",6),e.qZA()()()),2&a&&(e.xp6(1),e.Q6J("disableNavigationBar",!0)("navBarLocation","top"),e.xp6(2),e.Q6J("ngIf",c.isShowPreference),e.xp6(2),e.Q6J("disable",!c.editBilling),e.xp6(1),e.Q6J("ngIf","false"==c.conractFormLoader))},dependencies:[Ft.R,i.O5,i.PC,ee.N,Jt.u,J.jt,J.iD,J.Vi,J.TH,bt.Pl,bt.GZ,bt.UX,Ut.p,f.jx,te.V,z._Y,z.Fj,z.JJ,z.JL,z.nD,z.sg,z.u,Oe.mh,P,W.X$],styles:["#p-fieldset-css .p-fieldset .p-fieldset-content{padding:0!important}  #p-fieldset-css .p-fieldset .p-fieldset-legend{padding:0!important}  #p-fieldset-css .p-fieldset{padding:0 5px;height:9rem}  #p-fieldset-css textarea{padding:0;margin:0;border:none;height:6.5rem}  #p-message-css .p-message .p-message-wrapper{display:block!important}  #p-message-css-1 .p-message .p-message-wrapper{padding:.3rem!important}  #mb-wizard .wizard-steps{justify-content:center!important}  #mb-wizard aw-wizard-step{width:90%!important}.mdi-help-circle[_ngcontent-%COMP%]{margin-left:.1rem;font-size:large}.fixed-bar[_ngcontent-%COMP%]{position:fixed;bottom:0;background:#fff;z-index:999;border-radius:5px;left:240px;width:calc(100% - 290px);margin:0 25px}.isPointer[_ngcontent-%COMP%]{cursor:no-drop;pointer-events:none}"]}),p})();var xt=r(70441),En=r(20177),Sn=r(88074),Bn=r(92340),Nn=r(84505),It=r(81029),wn=r(17705),Un=r(76478),Mn=r(83880);const Vn=["wizard"],$n=["payaConfirmation"],Jn=["addBankModal"];function Yn(p,L){1&p&&e._UZ(0,"app-loading")}function Qn(p,L){1&p&&(e.TgZ(0,"div",14)(1,"h5",15),e._uU(2,"View Only"),e.qZA(),e._UZ(3,"i",16),e.qZA())}function jn(p,L){1&p&&e._UZ(0,"span",48)}function qn(p,L){if(1&p&&(e.TgZ(0,"div",46),e.YNc(1,jn,1,0,"span",47),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&p){const a=L.item,c=e.oxw(3);e.xp6(1),e.Q6J("ngIf",c.achLoader&&"BANK"===a.value),e.xp6(2),e.Oqu(a.key)}}function Kn(p,L){if(1&p&&(e.TgZ(0,"div",46)(1,"span"),e._uU(2),e.qZA()()),2&p){const a=L.item;e.xp6(2),e.Oqu(a.key)}}function zn(p,L){1&p&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&p&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"Payment Method is required")," "))}
1function Wn(p,L){if(1&p&&(e.TgZ(0,"div",49),e.YNc(1,zn,3,3,"div",0),e.qZA()),2&p){const a=e.oxw(3);let c;e.xp6(1),e.Q6J("ngIf",null==(c=a.deliveryForm.get("paymentMethod"))?null:c.errors.required)}}function Ln(p,L){1&p&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&p&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"Email is required")," "))}function Hn(p,L){1&p&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&p&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"Invalid Email")," "))}function Gn(p,L){if(1&p&&(e.TgZ(0,"div",49),e.YNc(1,Ln,3,3,"div",0),e.YNc(2,Hn,3,3,"div",0),e.qZA()),2&p){const a=e.oxw(3);let c,h;e.xp6(1),e.Q6J("ngIf",null==(c=a.deliveryForm.get("email"))||null==c.errors?null:c.errors.required),e.xp6(1),e.Q6J("ngIf",null==(h=a.deliveryForm.get("email"))||null==h.errors?null:h.errors.email)}}function Xn(p,L){1&p&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&p&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"Phone number is required")," "))}function ei(p,L){1&p&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&p&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"Invalid Phone Number")," "))}function Zn(p,L){if(1&p&&(e.TgZ(0,"div",49),e.YNc(1,Xn,3,3,"div",0),e.YNc(2,ei,3,3,"div",0),e.qZA()),2&p){const a=e.oxw(3);let c,h;e.xp6(1),e.Q6J("ngIf",null==(c=a.deliveryForm.get("phone"))||null==c.errors?null:c.errors.required),e.xp6(1),e.Q6J("ngIf",null==(h=a.deliveryForm.get("phone"))||null==h.errors?null:h.errors.validatePhoneNumber)}}function ti(p,L){1&p&&(e.TgZ(0,"p",50),e._uU(1,"NOTE:"),e.qZA(),e.TgZ(2,"p"),e._uU(3,"The invoice and payment link (if selected as the delivery method) will be sent to this contact."),e.qZA())}function ni(p,L){1&p&&e._UZ(0,"span",51)}const Fn=function(p){return{"is-invalid":p}},ii=function(p,L){return[p,L]};function ai(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"aw-wizard",17,18)(2,"aw-wizard-step",19)(3,"app-merchant-contract",20),e.NdJ("contractForm",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.contractFormFn(h))})("contractLoaderFn",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.contractFormLoaderFn(h))}),e.qZA(),e.TgZ(4,"div",21)(5,"div",22)(6,"button",23),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.goBack())}),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"button",24),e._uU(10),e.ALo(11,"translate"),e.qZA()()()(),e.TgZ(12,"aw-wizard-step",25)(13,"form",6)(14,"p-fieldset",26)(15,"div",27)(16,"div",28)(17,"ng-select",29),e.NdJ("change",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.onOptionClicked(h))}),e.YNc(18,qn,4,2,"ng-template",30),e.YNc(19,Kn,3,1,"ng-template",31),e.qZA(),e.YNc(20,Wn,2,1,"div",32),e.qZA()()(),e.TgZ(21,"p-fieldset",33)(22,"div",27)(23,"div",34)(24,"label",35),e._uU(25),e.ALo(26,"translate"),e.qZA(),e._UZ(27,"input",36),e.YNc(28,Gn,3,2,"div",32),e.qZA(),e.TgZ(29,"div",34)(30,"div",37)(31,"label",35),e._uU(32),e.ALo(33,"translate"),e.qZA(),e._UZ(34,"br"),e.TgZ(35,"div",38),e._UZ(36,"ngx-intl-tel-input",39),e.qZA(),e.YNc(37,Zn,3,2,"div",32),e.qZA()()(),e.TgZ(38,"div",27)(39,"p-messages",40),e.YNc(40,ti,4,0,"ng-template",41),e.qZA()()()(),e.TgZ(41,"div",21)(42,"div",42)(43,"button",43),e._uU(44),e.ALo(45,"translate"),e.qZA(),e.TgZ(46,"button",44),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.savePaymentDetails())}),e.YNc(47,ni,1,0,"span",45),e._uU(48),e.ALo(49,"translate"),e.qZA()()()()()}if(2&p){const a=e.oxw(2);let c,h,N,ne,ue;e.Q6J("disableNavigationBar",!0)("navBarLocation","top"),e.xp6(3),e.Q6J("merchantId",a.merchantId)("disable",!a.editBilling),e.xp6(4),e.hij(" ",e.lcZ(8,40,"Back")," "),e.xp6(2),e.Q6J("disabled",!a.conractForm||(null==a.conractForm?null:a.conractForm.invalid)),e.xp6(1),e.hij(" ",e.lcZ(11,42,"htmlText.next")," "),e.xp6(3),e.Q6J("formGroup",a.deliveryForm),e.xp6(1),e.Q6J("toggleable",!1)("collapsed",!1),e.xp6(3),e.Q6J("items",a.paymentType)("clearable",!1)("multiple",!1)("searchable",!1),e.xp6(3),e.Q6J("ngIf",(null==(c=a.deliveryForm.get("paymentMethod"))?null:c.touched)&&(null==(c=a.deliveryForm.get("paymentMethod"))?null:c.errors)),e.xp6(1),e.Q6J("toggleable",!1)("collapsed",!1),e.xp6(4),e.Oqu(e.lcZ(26,44,"Email")),e.xp6(2),e.Q6J("ngClass",e.VKq(52,Fn,((null==(h=a.deliveryForm.get("email"))?null:h.touched)||(null==(h=a.deliveryForm.get("email"))?null:h.dirty))&&(null==(h=a.deliveryForm.get("email"))?null:h.invalid)||(null==(h=a.deliveryForm.get("email"))?null:h.invalid))),e.xp6(1),e.Q6J("ngIf",null==(N=a.deliveryForm.get("email"))?null:N.invalid),e.xp6(4),e.Oqu(e.l
1cZ(33,46,"Phone")),e.xp6(3),e.Q6J("ngClass",e.VKq(54,Fn,((null==(ne=a.deliveryForm.get("phone"))?null:ne.touched)||(null==(ne=a.deliveryForm.get("phone"))?null:ne.dirty))&&(null==(ne=a.deliveryForm.get("phone"))?null:ne.invalid))),e.xp6(1),e.Q6J("cssClass","form-control")("preferredCountries",a.preferredCountries)("enableAutoCountrySelect",!0)("enablePlaceholder",!1)("searchCountryFlag",!0)("searchCountryField",e.WLB(56,ii,a.SearchCountryField.Iso2,a.SearchCountryField.Name))("selectFirstCountry",!1)("selectedCountryISO",a.CountryISO.UnitedStates)("maxLength",a.maxLen)("phoneValidation",!0)("separateDialCode",a.separateDialCode)("numberFormat",a.PhoneNumberFormat.National)("selectedCountryISO",a.selectedPhoneCountryCode),e.xp6(1),e.Q6J("ngIf",((null==(ue=a.deliveryForm.get("phone"))?null:ue.touched)||(null==(ue=a.deliveryForm.get("phone"))?null:ue.dirty))&&(null==(ue=a.deliveryForm.get("phone"))?null:ue.invalid)),e.xp6(7),e.hij(" ",e.lcZ(45,48,"Back")," "),e.xp6(2),e.Q6J("disabled",a.deliveryForm.invalid||a.submitLoader||!a.editBilling),e.xp6(1),e.Q6J("ngIf",a.submitLoader),e.xp6(1),e.hij(" ",e.lcZ(49,50,"htmlText.finish")," ")}}function kn(p,L){1&p&&(e.TgZ(0,"p",54),e._uU(1,"Please Enable Billing to Proceed further"),e.qZA())}function oi(p,L){1&p&&(e.TgZ(0,"div",52),e.ynx(1),e.TgZ(2,"p-messages",53),e.YNc(3,kn,2,0,"ng-template",41),e.qZA(),e.BQk(),e.qZA())}function ri(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",5)(1,"form",6)(2,"div",7)(3,"h5",8),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",9),e.YNc(7,Qn,4,0,"div",10),e.TgZ(8,"ui-switch",11),e.NdJ("change",function(h){e.CHM(a);const N=e.oxw();return e.KtG(N.onChangeToggule(h))}),e.qZA()()()(),e.YNc(9,ai,50,59,"aw-wizard",12),e.YNc(10,oi,4,0,"div",13),e.qZA()}if(2&p){const a=e.oxw();e.ekj("full-height",!a.isEnabled),e.xp6(1),e.Q6J("formGroup",a.billingConfigForm),e.xp6(3),e.hij(" ",e.lcZ(5,9,"Invoicing ("+a.merDba+")")," "),e.xp6(3),e.Q6J("ngIf",!a.editBilling),e.xp6(1),e.Q6J("disabled",a.isAddMerchant)("disabled",a.disable&&!a.editBilling),e.xp6(1),e.Q6J("ngIf",a.isEnabled),e.xp6(1),e.Q6J("ngIf",a.disable&&!a.isEnabled)}}function li(p,L){1&p&&e._UZ(0,"span",70)}function si(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"form",55),e.NdJ("ngSubmit",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.onPayaModelSubmit())}),e.TgZ(1,"div",56)(2,"h5",57),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",58)(6,"div",59),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"div",60)(10,"div",61)(11,"input",62),e.NdJ("change",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.payaConfirmWithYes())}),e.qZA(),e.TgZ(12,"span",63),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.TgZ(15,"div",61),e._UZ(16,"input",64),e.TgZ(17,"span",65),e._uU(18),e.ALo(19,"translate"),e.qZA()()()(),e.TgZ(20,"div",66)(21,"button",67),e.NdJ("click",function(){const N=e.CHM(a).$implicit,ne=e.oxw();return N.close(),e.KtG(ne.onFormCancelled())}),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"button",68),e.YNc(25,li,1,0,"span",69),e._uU(26),e.ALo(27,"translate"),e.qZA()()()}if(2&p){const a=e.oxw();e.Q6J("formGroup",a.payaModelForm),e.xp6(3),e.Oqu(e.lcZ(4,12,"htmlText.payaConfirmModalHeader")),e.xp6(4),e.Oqu(e.lcZ(8,14,"htmlText.payaMessageContent")),e.xp6(4),e.uIk("disabled",a.payaOptionDisable.optionOneDisable?"":null),e.xp6(2),e.Oqu(e.lcZ(14,16,"htmlText.payaYesContent")),e.xp6(3),e.uIk("disabled",a.payaOptionDisable.optionTwoDisable?"":null),e.xp6(2),e.Oqu(e.lcZ(19,18,"htmlText.payaNoContent")),e.xp6(3),e.Q6J("disabled",a.ppdOrCcdValidationLoading),e.xp6(1),e.Oqu(e.lcZ(23,20,"htmlText.cancel")),e.xp6(2),e.Q6J("disabled",!a.payaModelForm.valid||a.ppdOrCcdValidationLoading),e.xp6(1),e.Q6J("ngIf",a.ppdOrCcdValidationLoading),e.xp6(1),e.hij(" ",e.lcZ(27,22,"htmlText.proceed")," ")}}const Rn=function(){return{id:3}};function d(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",58)(1,"app-paya-ach",76),e.NdJ("getExstingCustomerPayload",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.getExstingCustomerPayload(h))})("addBankConfirmation",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.addBank(h))})("terminalTypeSelection",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.ppdOrCcdSelection(h))})("isPayaCheck",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.isPayaChecker(h))}),e.qZA()()}if(2&p){const a=e.oxw(2);e.xp6(1),e.Q6J("selectedMode",e.DdM(13,Rn))("selectedPayaOption",a.selectedPayaOption)("payaResponseValidation$",a.payaResponseValidation$)("payaRest$",a.payaRest$)("ppdOrCcdOptionsArray",a.ppdOrCcdOptionsArray)("payaTransaction$",a.payaTransactionPasser)("isAddBank",!0)("parentCloudpos
1Form",a.cloudPOSForms)("consumerId",a.consumerId)("selectedTpn",a.collectionAccountTpn)("defautTerminalType",a.defautTerminalType)("ppdOrCcdOptions",a.ppdOrCcdOptions)("isFortellisEnabled","0")}}function V(p,L){1&p&&e._UZ(0,"span",51)}function o(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",66)(1,"button",77),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.onRestFormPaya())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",78),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.payaTransaction())}),e.YNc(5,V,1,0,"span",45),e._uU(6),e.ALo(7,"translate"),e.qZA()()}if(2&p){const a=e.oxw(2);e.xp6(2),e.Oqu(e.lcZ(3,3,"Reset")),e.xp6(3),e.Q6J("ngIf",a.loading),e.xp6(1),e.hij(" ",e.lcZ(7,5,"Add")," ")}}function q(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",58)(1,"app-vericheck-ach",79),e.NdJ("vericheckFormData",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.handleVericheckFormData(h))})("getExstingCustomerPayload",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.getExstingCustomerPayload(h))})("getConsumerDetail",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.getConsumersToken(h))})("clearUnMaskedAlternateCard",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.clearUnMaskedAlternateCardData())})("addBankCompleted",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.onVericheckAddBankCompleted())}),e.qZA()()}if(2&p){const a=e.oxw(2);e.xp6(1),e.Q6J("selectedMode",e.DdM(16,Rn))("selectedPayaOption",a.selectedPayaOption)("vericheckTransaction$",a.vericheckTransaction$)("vericheckAddAchTransaction$",a.vericheckAddAchTransaction$)("vericheckReset$",a.vericheckReset$)("parentCloudposForm",a.cloudPOSForms)("selectedTpn",a.collectionAccountTpn)("isAddAchVericheck",!0)("isAddBank",!0)("consumerId",a.consumerId)("isMerchantBillingContext",!0)("achAlternateCardsCount",a.alternateCardDetailsLength)("isfromRunASale",a.isfromRunASale)("hideMaskedAchClear",a.isDisableReset())("buildVericheckHsmTokenUrl",a.buildVericheckGetHsmTokenUrl.bind(a))("isFortellisEnabled","0")}}function s(p,L){1&p&&e._UZ(0,"span",51)}function Ye(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",66)(1,"button",77),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.resetActiveAddBankForm())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",80),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.submitActiveAddBank())}),e.YNc(5,s,1,0,"span",45),e._uU(6),e.ALo(7,"translate"),e.qZA()()}if(2&p){const a=e.oxw(2);e.xp6(2),e.Oqu(e.lcZ(3,4,"Reset")),e.xp6(2),e.Q6J("disabled",a.loading),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.hij(" ",e.lcZ(7,6,"Add")," ")}}function ze(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",56)(1,"div",71)(2,"h5",57),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"button",72),e.NdJ("click",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.closeAddBank())}),e.TgZ(6,"span",73),e._uU(7,"\xd7"),e.qZA()()(),e.YNc(8,d,2,14,"div",74),e.YNc(9,o,8,7,"div",75),e.YNc(10,q,2,17,"div",74),e.YNc(11,Ye,8,8,"div",75)}if(2&p){const a=e.oxw();e.xp6(3),e.Oqu(e.lcZ(4,5,"Add Bank")),e.xp6(5),e.Q6J("ngIf",a.achProcessorName===a.achAltCode.PAYA),e.xp6(1),e.Q6J("ngIf",a.achProcessorName===a.achAltCode.PAYA),e.xp6(1),e.Q6J("ngIf",a.achProcessorName===a.achAltCode.VERICHECK),e.xp6(1),e.Q6J("ngIf",a.achProcessorName===a.achAltCode.VERICHECK)}}function ct(p,L){1&p&&(e.ynx(0),e._UZ(1,"app-loading"),e.BQk())}let ft=(()=>{class p{constructor(a,c,h,N,ne,ue,Ae){var we=this;this.activeRoute=a,this.router=c,this.fb=h,this.common=N,this.ngbModal=ne,this.messageService=ue,this.authService=Ae,this.isAddMerchant=!1,this.conractForm={},this.isDisable=!0,this.paymentType=[],this.preferredCountries=[Oe.HT.UnitedStates,Oe.HT.India],this.SearchCountryField=Oe.wX,this.CountryISO=Oe.HT,this.PhoneNumberFormat=Oe.M9,this.selectedPhoneCountryCode=Oe.HT.UnitedStates,this.separateDialCode=!0,this.maxLen=10,this.isEnabled=!0,this.isPayaEnabled=!1,this.ppdOrCcdValidationLoading=!1,this.payaOptionDisable={optionOneDisable:!0,optionTwoDisable:!0},this.selectedPayaOption="",this.availableSecCodes=[],this.isPayaACHEnabled=!1,this.ppdOrCcdOptions=[],this.conractFormLoader="true",this.isAchEnable=!1,this.eBill=!1,this.payaValidation=new Nn.X({}),this.payaResponseValidation$=this.payaValidation.asObservable(),this.payaFormReseter=new Nn.X({}),this.payaRest$=this.payaFormReseter.asObservable(),this.vericheckTransactionPasser=new g.xQ,this.vericheckTransaction$=this.vericheckTransactionPasser.asObservable(),this.vericheckAddAchPasser=new g.xQ,this.vericheckAddAchTransaction$=this.vericheckAddAchPasser.asObservable(),this.vericheckResetPasser=new g.xQ,this.vericheckReset$=this.vericheckResetPasser.asObservable(),this.disable=!1,this.queryParams=this.activeRoute.snapshot.queryParams,this.submitLoader=!1,this.loader=!1,this.ppdOrCcdOptionsArray=[],this.defautTerminalType=null,this.PayaTxValidation={}
1,this.alternateCardDetails={},this.accountNumber="",this.cardDetails={},this.alternateCardDetailsLength=0,this.previousState=null,this.achAltCode=It.P$,this.achArrayList=[...It.QR],this.isLoading=!0,this.achLoader=!1,this.loading=!1,this.isfromRunASale=!1,this.isPhoneisMandatory="",this.editBilling=this.isAccess(ce.j.MERCHANT_BILLING,C.R.EDIT_BILLING),this.billingConfigForm=new z.cw({isEnabledControl:new z.NI}),this.dialogFn=(0,_.Z)(function*(){we.addBankModalRef=we.ngbModal.open(we.addBankModal,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1,size:"lg"})}),this.savePaymentDetails=()=>{if(this.deliveryForm.invalid)return void this.deliveryForm.markAllAsTouched();let{customerId:Pe}=this.paymentDetails?.collectionAccountDetails;const me=this.deliveryForm.get("paymentMethod")?.value;let ve=null,Ce=null;for(const Ot of this.paymentCardDetails)if(ve=Ot.cardDetails?.find(Tt=>Tt.cardNum===me),Ce=Ot.alternateCardDetails?.find(Tt=>Tt.accountNum===me),ve||Ce)break;let it=this.paymentType.find(Ot=>Ot.value===me)?.key||null,Ct=null;"PAYMENT_LINK"===me?(Ct="PAYMENT_LINK",it="PAYMENT_LINK"):"BANK"===me?Ct="BANK":it?.startsWith("Card")?Ct="CARD":it?.startsWith("ACH")&&(Ct="BANK");let On={customerId:Pe,merchantId:this.merchantId,consumerId:this.consumerId,template:{...this.conractForm.value},action:"bulk_enable",paymentType:Ct,paymentMethod:it,contractEmail:this.deliveryForm.get("email")?.value,contractPhone:this.deliveryForm.get("phone")?.value?.e164Number,alternateCardDetails:Ce||null,cardDetails:ve||null,alternateProcessorCode:null};"BANK"==Ct&&(On.alternateProcessorCode=Ce?.alternateProcessorCode?Ce.alternateProcessorCode:this.achArrayList?.includes(this.achProcessorName)?this.achArrayList?.[0]:""),this.submitLoader=!0,console.log("\u{1f680} ~ MerchantContractBillingComponent ~ reqObj:",On),this.common.postCommonHttpClient(T.D.merchantBilling.billingEnableById,On).pipe((0,j.q)(1)).subscribe(Ot=>{this.submitLoader=!1,this.showToaster("success","","Contract saved Successfully."),this.loader=!0,this.goBack()},Ot=>{this.submitLoader=!1,this.showToaster("error","","Contract saved Failed."),this.loader=!1})},this.contractFormFn=Pe=>{this.isDisable=!1,this.conractForm=Pe,this.billingConfigForm.get("isEnabledControl").enable()},this.contractFormLoaderFn=Pe=>{this.conractFormLoader=Pe},this.bankStatus="",this.statusForm=!1,this.isSuccess=!1,this.getPaymentDetails=(Pe=!1)=>{let me={};me.merchantId=this.merchantId,this.eBill&&this.editBilling&&(me.editBilling=!0),this.common.getCommonHttpClientQueryParams(T.D.merchantBilling.paymentDetail,me).pipe((0,j.q)(1)).subscribe(ve=>{if(this.paymentDetails=ve.data,this.paymentCardDetails=this.paymentDetails.paymentCardDetails||[],this.consumerId=this.paymentDetails?.collectionAccountDetails?.consumerId,Pe){this.isAchEnable=!0,this.buildPaymentTypeOptions();const Xe=this.paymentCardDetails.flatMap(it=>it.alternateCardDetails||[]).filter(it=>it?.createdAt).sort((it,Ct)=>new Date(Ct.createdAt).getTime()-new Date(it.createdAt).getTime())[0];return Xe?.accountNum?(this.deliveryForm.get("paymentMethod")?.patchValue(Xe.accountNum),this.accountNumber=Xe.accountNum):this.deliveryForm.get("paymentMethod")?.patchValue("PAYMENT_LINK"),this.loading=!1,this.isSuccess=!0,this.statusForm=!0,this.bankStatus="Bank Added Successfully.",!this.payaOptionDisable.optionOneDisable&&!this.payaOptionDisable.optionTwoDisable&&this.payaModelForm.reset(),void this.addBankModalRef?.close()}this.deliveryForm.get("email")?.patchValue(this.paymentDetails.billingConfiguration?.contractEmail||this.merchantDetails.email||""),this.deliveryForm.get("phone")?.patchValue(this.getPhoneNumberAndCountryCode(this.paymentDetails.billingConfiguration?.contractPhone||this.merchantDetails.phoneNumber||"")),this.getAllAlternateProcessorIso(),this.isAchEnable=1===this.paymentDetails.achStatus,this.buildPaymentTypeOptions()},ve=>{console.log("getPaymentDetails",ve.message),this.isAchEnable=!1,this.paymentCardDetails=[],this.paymentType=[{key:"Send Payment Link",value:"PAYMENT_LINK"}],this.deliveryForm.get("paymentMethod")?.patchValue("PAYMENT_LINK"),this.showToaster("error","",ve?.message)})},this.payaTransactionPasser=new g.xQ,this.payaTransaction$=this.payaTransactionPasser.asObservable()}ngOnInit(){this.activeRoute.queryParams.subscribe(a=>{this.merchantId=a.mid,this.isAddMerchant="true"===a.isadd,this.merDba=a.merDba,this.eBill="true"===a.ebill}
1),this.payaModelForm=this.createPayaModelForm(),this.cloudPOSForms=this.createCloudPOSForms(),this.deliveryForm=this.fb.group({paymentMethod:["PAYMENT_LINK",z.kI.required],email:["",[z.kI.required,xt.dN.email]],phone:[null,[z.kI.required]]}),this.contractFormFn({invalid:!0,value:{}}),this.billingConfigForm.get("isEnabledControl")?.valueChanges.subscribe(a=>{this.isEnabled=a}),this.isEnabled=this.billingConfigForm.get("isEnabledControl")?.value,this.getMerchantDetails(),this.getPaymentDetails(),this.editBilling||(this.deliveryForm.disable(),this.billingConfigForm.get("isEnabledControl").disable())}createCloudPOSForms(){return this.fb.group({paymentInfo:this.paymentInfoForm()})}paymentInfoForm(){return this.fb.group({paymentMode:["",[]],amt:["",[z.kI.required,xt.dN.gt(0)]],email:["",[xt.dN.email]],phone:["",[]],cardNumber:["",[z.kI.required,z.kI.pattern(En.d8)]],expDate:["",[z.kI.required]],cvv:["",[z.kI.minLength(3)]],zipCode:["",[]],Invoice:["",[z.kI.pattern("^[a-zA-Z0-9]{1,12}$")]],street:["",[z.kI.pattern("^[A-Za-z0-9]{1}[a-zA-Z0-9 \\s,.\\/-]{1,29}$")]],cardHolderName:["",[z.kI.pattern("^[a-zA-Z ]{1,26}$")]],unMaskedCardNumber:["",[]],unMaskedExpDate:["",[]],description:["",[z.kI.maxLength(100)]],fortInvoiceNum:["",[]],purchaseOrderNumber:["",[]]})}createPayaModelForm(){return this.fb.group({selectedOption:["",[z.kI.required]]})}onOptionClicked(a){return"BANK"!=a.value?void(this.previousState=this.deliveryForm.get("paymentMethod").value):void this.achCheck()}openPayaModal(){this.payaOptionModalRef=this.ngbModal.open(this.payaConfirmation,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1})}onChangeToggule(a){if(a)this.common.postCommonHttpClient(T.D.merchantBilling.enableBilling,{merchantId:this.merchantId}).pipe((0,j.q)(1)).subscribe({next:c=>{this.isEnabled=!0,this.getPaymentDetails(),this.billingConfigForm.get("isEnabledControl")?.patchValue(!0)},error:c=>{console.error("Error enabling billing:",c),this.showToaster("error","Error","Failed to enable billing."),this.billingConfigForm.get("isEnabledControl")?.patchValue(!1),this.isEnabled=!1}});else{const c=this.ngbModal.open(I.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});c.componentInstance.enable2buttons=!0,c.componentInstance.header="Disable Invoicing Confirmation",c.componentInstance.innerHtmlContent='Are you sure you want to disable invoicing for this merchant?<br>\n   <div class="alert alert-warning mt-3 text-left" role="alert"> <b>Please note:</b> This action is immediate and the merchant will not be prorated for the current month.</div>',c.componentInstance.buttonName="Confirm",c.componentInstance.closeBtnName="Cancel",c.closed.subscribe(h=>{"success"===h?this.common.postCommonHttpClient(T.D.merchantBilling.disableBilling,{merchantId:this.merchantId}).pipe((0,j.q)(1)).subscribe({next:N=>{this.showToaster("success","","Billing disabled for this merchant."),this.isEnabled=!1,this.billingConfigForm.get("isEnabledControl")?.patchValue(!1),this.disable=!0},error:N=>{console.error("Error disabling billing:",N),this.showToaster("error","Error","Failed to disable billing."),this.billingConfigForm.get("isEnabledControl")?.patchValue(!0)}}):(this.billingConfigForm.get("isEnabledControl")?.patchValue(!0),this.disable=!0)})}}goBack(){"m-b-invoice-details"!=this.queryParams?.backtopage?this.router.navigate(["/merchant-management/list-merchant"]):window.history.back()}buildPaymentTypeOptions(){let a=[];a.push({key:"Send Payment Link",value:"PAYMENT_LINK"}),Array.isArray(this.paymentCardDetails)&&this.paymentCardDetails.forEach(N=>{Array.isArray(N.cardDetails)&&N.cardDetails.length>0&&N.cardDetails.forEach(ne=>{a.push({key:`Card (${ne.cardNum})`,value:ne.cardNum})}),this.isAchEnable&&this.achArrayList.includes(this.achProcessorName)&&Array.isArray(N.alternateCardDetails)&&N.alternateCardDetails.length>0&&N.alternateCardDetails.forEach(ne=>{a.push({key:`ACH (${ne.accountNum})`,value:ne.accountNum})})}),this.isAchEnable&&this.achArrayList.includes(this.achProcessorName)&&a.push({key:"Add Bank",value:"BANK"}),this.paymentType=a;const c=this.paymentDetails.billingConfiguration?.paymentMethod,h=this.paymentType.find(N=>N.key===c);h?this.deliveryForm.get("paymentMethod")?.patchValue(h.value):this.deliveryForm.get("paymentMethod")?.patchValue("PAYMENT_LINK"),this.previousState=this.deliveryForm.get("paymentMethod").value}getPhoneNumberAndCountryCode(a){let c;if((0,v.isEmpty)(a))return"";try{c=(0,Sn.h)(a),this.selectedPhoneCountryCode=c.country}catch{c={nationalNumber:a},this.selectedPhoneCountryCode="US"}return c.nationalNumber}payaConfirmWithYes(){this.isPayaEnabled=!0}onFormCancelled(){this.isPayaEnabled=!1,!this.payaOptionDisable.optionOneDisable&&!this.payaOptionDisable.optionTwoDisable&&this.payaModelForm.reset(),this.deliveryForm.get("paymentMethod").patchValue(this.previousState)}achCheck(){if(this.payaOptionDisable.optionOneDisable&&this.payaOptionDisable.optionTwoDisable)return this.showToaster("error","","Only WEB ACH is currently enabled for this store. Please enable additional ACH transaction types (TEL, PPD, or CCD) to add a bank account."),void this.deliveryForm.controls.paymentMethod.patchValue(this.previousState);let{storeId:a,consumerId:c}=this.paymentDetails?.collectionAccountDetails;this.deliveryForm.controls.paymentMethod.disable(),this.achLoader=!0,this.common.getCommonHttpClientQueryParams(`${T.D.PayaAch.addAchCheck}/${a}`,{consumerId:c}).subscribe(h=>{this.collectionAccountTpn=h?.payaTpns[0],this.deliveryForm.controls.paymentMethod.enable(),this.achLoader=!1,this.collectionAccountTpn&&this.openPayaModal(),h?.payaTpns?.length||!this.paymentDetails?.storeId||this.showAlertMessage("no ACH tpns!","success","Status",!1)},h=>{this.showToaster("error","",h?.message),this.deliveryForm.controls.paymentMethod.enable(),this.deliveryForm.controls.paymentMethod.patchValue(this.previousState),this.achLoader=!1})}getAllAlternateProcessorIso(){var a=this;return(0,_.Z)(function*(){let{merchantId:c,storeId:h,customerId:N}=a.paymentDetails?.collectionAccountDetails;a.achProcessorInfo=yield a.getCustomerACHInformation({customerId:N,merchantId:c,storeId:h,secCode:"TEL",isCollection:!0}
1),a.achProcessorInfo=(0,v.get)(a.achProcessorInfo,"message",!1),a.availableSecCodes=(0,v.get)(a.achProcessorInfo,"[0].availableSecCodes",[]),a.isPayaACHEnabled=(0,v.get)(a.achProcessorInfo,"[0].alternate_processor_from_customer_processor.code",!1)==It.P$.PAYA,a.ppdOrCcdOptions=[...a.availableSecCodes],a.payaOptionDisable={optionOneDisable:!0,optionTwoDisable:!0},a.ppdOrCcdOptions=(0,v.pull)(a.ppdOrCcdOptions,"WEB","TEL"),!a.availableSecCodes.includes("TEL")||a.availableSecCodes.includes("CCD")||a.availableSecCodes.includes("PPD")?a.availableSecCodes.includes("TEL")&&a.availableSecCodes.includes("CCD")&&a.availableSecCodes.includes("PPD")||a.availableSecCodes.includes("TEL")&&(a.availableSecCodes.includes("PPD")||a.availableSecCodes.includes("CCD"))?(a.payaModelForm.controls.selectedOption.patchValue(""),a.payaOptionDisable={optionOneDisable:!1,optionTwoDisable:!1}):!a.availableSecCodes.includes("TEL")&&(a.availableSecCodes.includes("PPD")||a.availableSecCodes.includes("CCD"))&&(a.payaModelForm.controls.selectedOption.patchValue("2"),a.payaOptionDisable={optionOneDisable:!0,optionTwoDisable:!1}):(a.payaModelForm.controls.selectedOption.patchValue("1"),a.payaOptionDisable={optionOneDisable:!1,optionTwoDisable:!0}),a.achProcessorName=(0,v.get)(a.achProcessorInfo,"[0].alternate_processor_from_customer_processor.code",!1),a.achProcessorName==It.P$.PAYA?a.cloudPOSForms.get(["paymentInfo","paymentMode"]).setValue("Paya ACH - "):a.achProcessorName==It.P$.VERICHECK?a.cloudPOSForms.get(["paymentInfo","paymentMode"]).setValue("Vericheck ACH - "):a.achProcessorName==It.P$.ACH&&a.cloudPOSForms.get(["paymentInfo","paymentMode"]).setValue("ACH - "),a.buildPaymentTypeOptions()})()}getCustomerACHInformation(a){var c=this;return(0,_.Z)(function*(){return yield c.common.getCommonHttpClientQueryParams(T.D.getAllAlternateProcessorIso,{...a}).toPromise().catch(N=>{c.showAlertMessage("error","Error",N.message,!1)})})()}onPayaModelSubmit(){var a=this;return(0,_.Z)(function*(){if(console.log("Selected option:",a.payaModelForm.get("selectedOption").value),a.tokenObj={validation:null,terminalId:null,validationID:null,defautTerminalType:null},!a.payaModelForm.valid)return!1;if(a.selectedPayaOption=a.payaModelForm.get("selectedOption").value,a.achProcessorName===It.P$.VERICHECK)return a.payaOptionModalRef.close(),void a.dialogFn();if("2"==a.selectedPayaOption){a.ppdOrCcdValidationLoading=!0;let{merchantId:c,storeId:h,customerId:N}=a.paymentDetails?.collectionAccountDetails;a.common.getCommonHttpClientQueryParams(T.D.PayaAch.ppdAndCcd,{customerId:N,merchantId:c,storeId:h}).subscribe(ne=>{if(a.payaValidationDetails=(0,v.get)(ne,"message"),a.ppdOrCcdValidationLoading=!1,a.payaOptionModalRef.close(),console.log("\u{1f680} ~ MerchantContractBillingComponent ~ onPayaModelSubmit ~ this.ppdOrCcdOptions:",a.ppdOrCcdOptions),a.ppdOrCcdOptionsArray=a.ppdOrCcdOptions.map(ue=>({name:ue,displayName:Bn.N?.payaEntryClasses[ue.toUpperCase()]||ue})),1==a.ppdOrCcdOptions.length){let ue=a.ppdOrCcdOptions[0];a.defautTerminalType=ue;let Ae=(0,v.get)(ne,`message.PayaTxValidation.${ue.toLowerCase()}Validation`),we=(0,v.get)(ne,`message.PayaTxValidation.${ue.toLowerCase()}TerminalID`),Pe=(0,v.get)(ne,"message.PayLoadSchemaUsersID.users_id");a.commonPayaValidation(Ae,we,Pe),a.tokenObj.validation=Ae,a.tokenObj.terminalId=we,a.tokenObj.validationID=Pe,a.tokenObj.defautTerminalType=a.defautTerminalType,a.tokenObj.ppdOrCcdOptionsArray=a.ppdOrCcdOptionsArray,a.tokenObj.selectedPayaOption=a.selectedPayaOption}a.dialogFn()},ne=>{ne&&(a.ppdOrCcdValidationLoading=!1),a.showAlertMessage("error","Error",ne.message,!1)})}else{if(a.payaOptionModalRef.close(),a.achProcessorInfo){a.PayaTxValidation=(0,v.get)(a.achProcessorInfo,"[0].PayaTxValidation",!1);let c=(0,v.get)(a.achProcessorInfo,"[0].payaProcessorData.TerminalID"),h=(0,v.get)(a.achProcessorInfo,"[0].PayLoadSchemaUsersID.Users_id");a.commonPayaValidation(a.PayaTxValidation,c,h),a.tokenObj.validation=a.PayaTxValidation,a.tokenObj.terminalId=c,a.tokenObj.validationID=h,a.tokenObj.defautTerminalType=null,a.tokenObj.selectedPayaOption=a.selectedPayaOption}a.dialogFn()}})()}commonPayaValidation(a,c,h){this.payaValidation.next({validation:a,terminalId:c,validationID:h})}payaTransaction(){this.payaTransactionPasser.next({isFromTransaction:!0,tokenObj:this.tokenObj})}
1showAlertMessage(a,c,h,N){this.messageService.clear(),this.messageService.add({severity:a,summary:c,detail:h,sticky:N})}showToaster(a,c,h){this.messageService.add({severity:a,summary:c,detail:h,key:"copy-toast"})}getExstingCustomerPayload(a){this.payaTransactionPasser.next({isfromExstingPayload:!0})}addBank(a){var c=this;return(0,_.Z)(function*(){c.loading=!0,console.log("\u{1f680} ~ MerchantContractBillingComponent ~ addBank ~ formData:",a),yield c.common.postCommonHttpClient(`${T.D.PayaAch.addAch}/${c.consumerId}`,{...a,isMerchantBilling:!0}).toPromise().then(h=>{c.getPaymentDetails(!0),c.showToaster("success","","Bank Added Successfully.")},h=>{c.loading=!1,c.statusForm=!0,c.isSuccess=!1,c.bankStatus="Bank Added Failed.",c.showToaster("error","",h?.message)})})()}submitActiveAddBank(){if(this.achProcessorName===It.P$.VERICHECK)return this.loading=!0,void this.vericheckAddAchPasser.next({isFromAddAchBank:!0});this.payaTransaction()}resetActiveAddBankForm(){if(this.achProcessorName===It.P$.VERICHECK)return this.loading=!1,void this.vericheckResetPasser.next({isReset:!0});this.onRestFormPaya()}
1handleVericheckFormData(a){if((0,v.get)(a,"showError")){if(this.loading=!1,(0,v.get)(a,"isClientValidation"))return;if((0,v.get)(a,"err")){const h=(0,v.get)(a,"err.message","Unable to add bank account.");this.showToaster("error","Error",h)}}}getConsumersToken(a=null){}clearUnMaskedAlternateCardData(){this.alternateCardDetails={},this.alternateCardDetailsLength=0}buildVericheckGetHsmTokenUrl(){return""}isDisableReset(){return!1}onVericheckAddBankCompleted(){this.getPaymentDetails(!0),this.showToaster("success","","Bank Added Successfully.")}onRestFormPaya(){this.payaFormReseter.next(!0)}ppdOrCcdSelection(a){let{selectedData:c}=a;if(c){let h=(0,v.get)(this.payaValidationDetails,`PayaTxValidation.${c.toLowerCase()}Validation`),N=(0,v.get)(this.payaValidationDetails,`PayaTxValidation.${c.toLowerCase()}TerminalID`),ne=(0,v.get)(this.payaValidationDetails,"PayLoadSchemaUsersID.users_id");this.commonPayaValidation(h,N,ne)}}isPayaChecker(a){this.isPhoneisMandatory=a.isPaya?"*":""}closeAddBank(){this.loading=!1,this.deliveryForm.get("paymentMethod").patchValue(this.previousState),!this.payaOptionDisable.optionOneDisable&&!this.payaOptionDisable.optionTwoDisable&&this.payaModelForm.reset(),this.vericheckResetPasser.next({isReset:!0}),this.ngbModal.dismissAll()}getMerchantDetails(){this.common.getCommonHttpClientQueryParams(`${T.D.merchantBilling.getMerchant}/${this.merchantId}`,{}).pipe((0,j.q)(1)).subscribe({next:a=>{const c=a?.data;if(c){this.merchantDetails=c,this.isMerchantBillingEnable=c.isMerchantBillingEnabled;const h=!this.eBill||1===this.isMerchantBillingEnable;this.billingConfigForm.get("isEnabledControl")?.patchValue(h),this.isEnabled=h,this.disable=1!==this.isMerchantBillingEnable,h&&this.billingConfigForm.get("isEnabledControl")?.disable(),this.deliveryForm.get("email")?.patchValue(c.email||""),this.deliveryForm.get("phone")?.patchValue(this.getPhoneNumberAndCountryCode(c.phoneNumber||"")),this.cloudPOSForms.get(["paymentInfo","email"])?.setValue(c.email||""),this.cloudPOSForms.get(["paymentInfo","phone"])?.setValue(c.phoneNumber||""),this.cloudPOSForms.get(["paymentInfo","amt"])?.setValue("0.00"),this.isLoading=!1}else this.showToaster("warning","No Data","Merchant data not found.")},error:a=>{console.error("Error fetching merchant details:",a),this.showToaster("error","Error","Failed to load merchant details. Please try again later.")}})}isAccess(a,c){return this.authService.isFeatureEnabled(a,c)}}return p.\u0275fac=function(a){return new(a||p)(e.Y36(t.gz),e.Y36(t.F0),e.Y36(z.qu),e.Y36(n.v),e.Y36(J.FF),e.Y36(f.ez),e.Y36(de.e))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-merchant-contract-billing"]],viewQuery:function(a,c){if(1&a&&(e.Gf(Vn,5),e.Gf($n,5),e.Gf(Jn,5),e.Gf(wn.w,5)),2&a){let h;e.iGM(h=e.CRH())&&(c.wizard=h.first),e.iGM(h=e.CRH())&&(c.payaConfirmation=h.first),e.iGM(h=e.CRH())&&(c.addBankModal=h.first),e.iGM(h=e.CRH())&&(c.vericheckAchComponent=h.first)}},decls:7,vars:3,consts:[[4,"ngIf"],["class","card list-view card-list-bg mb-5",3,"full-height",4,"ngIf"],["class","file-confirmation-width"],["payaConfirmation",""],["addBankModal",""],[1,"card","list-view","card-list-bg","mb-5"],[3,"formGroup"],[1,"card-header","list-header","d-flex","justify-content-between","align-items-center","py-3","px-4","text-white","rounded","list"],[1,"mb-0","font-weight-bold"],[1,"d-flex","align-items-center"],["class","font-weight-bold text-white d-flex align-items-center mr-3",4,"ngIf"],["color","#64bd63","defaultBgColor","#b6b2b2","checkedLabel","Enabled","uncheckedLabel","Disabled","size","medium","formControlName","isEnabledControl",3,"disabled","change"],["id","mb-wizard","navigateBackward","deny","class","py-4",3,"disableNavigationBar","navBarLocation","awNavigationMode",4,"ngIf"],["class","d-flex align-items-center justify-content-center my-5 pt-5",4,"ngIf"],[1,"font-weight-bold","text-white","d-flex","align-items-center","mr-3"],[1,"fw-bold","mb-0","mr-1"],["data-feather","help-circle","appFeatherIcon","",1,"icon-sm"],["id","mb-wizard","navigateBackward","deny",1,"py-4",3,"disableNavigationBar","navBarLocation","awNavigationMode"],["wizard",""],["stepId","0","stepTitle","Sell Rate"],[3,"merchantId","disable","contractForm","contractLoaderFn"],[1,"fixed-bar"],[1,"d-flex","justify-content-end","mt-2","pb-3","px-5"],["type","submit","awPreviousStep","",1,"btn","btn-outline-primary","btn-sm","mt-3","mr-3",3,"click"],["type","submit","awNextStep","",1,"btn","btn-primary","btn-sm","mt-3",3,"disabled"],["stepId","1","stepTitle","Delivery Method & Contact Info"],["legend","Delivery",1,"p-0","m-0",3,"toggleable","collapsed"],[1,"row"],[1,"col-12","col-md-4"],["bindValue","value","bindLabel","key","formControlName","paymentMethod",1,"w-100",3,"items","clearable","multiple","searchable","change"],["ng-label-tmp",""],["ng-option-tmp",""],["class","error text-danger mt-1",4,"ngIf"],["legend","Contact Information",1,"p-0","m-0",3,"toggleable","collapsed"],[1,"col-md-4"],[1,"control-label","font-weight-bold"],["type","email","formControlName","email","required","",1,"form-control",3,"ngClass"],[1,"form-group"],[3,"ngClass"],["formControlName","phone",3,"cssClass","preferredCountries","enableAutoCountrySelect","enablePlaceholder","searchCountryFlag","searchCountryField","selectFirstCountry","selectedCountryISO","maxLength","phoneValidation","separateDialCode","numberFormat"],["severity","warn","id","p-message-css"],["pTemplate",""],[1,"d-flex","align-items-center","justify-content-end","mt-2","pb-3","px-5"],["type","button","awPreviousStep","",1,"btn","btn-outline-primary","btn-sm","mt-3","mr-3"],["type","submit",1,"btn","btn-primary","btn-sm","mt-3",3,"disabled","click"],["class","spinner-border spinner-border-sm mr-1","role","status","aria-hidden","true",4,"ngIf"],[1,"d-flex","justify-content-between","align-items-center","w-100"],["class","spinner-border spinner-border-sm mr-2","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-2"],[1,"error","text-danger","mt-1"],[1,"font-weight-bold"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-1"],[1,"d-flex","align-items-center","justify-content-center","my-5","pt-5"],["severity","warn","id","p-message-css-1"],[1,"p-1"],[3,"formGroup","ngSubmit"],[1,"modal-header"],[1,"text-uppercase"],[1,"modal-body"],[1,"pb-2","payaModal"],[1,"display-align","ml-5"],[1,"form-check","form-check-inline"],["type","radio","id","payaYes","name","selectedOption","value","1","formControlName","selectedOption",1,"form-check-input",3,"change"],["for","payaYes",1,"form-check-label","ml-0","payaModal"],["type","radio","id","payaNo","name","selectedOption","value","2","formControlName","selectedOption",1,"form-check-input"],["for","payaNo",1,"form-check-label","ml-0","payaModal"],[1,"modal-footer","text-right"],["type","button",1,"text-right","btn","btn-danger","mr-2",3,"disabled","click"],["type","submit",1,"text-right","btn","btn-primary",3,"disabled"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["class","modal-body",4,"ngIf"],["class","modal-footer text-right",4,"ngIf"],[3,"selectedMode","selectedPayaOption","payaResponseValidation$","payaRest$","ppdOrCcdOptionsArray","payaTransaction$","isAddBank","parentCloudpos
1Form","consumerId","selectedTpn","defautTerminalType","ppdOrCcdOptions","isFortellisEnabled","getExstingCustomerPayload","addBankConfirmation","terminalTypeSelection","isPayaCheck"],["type","button",1,"text-right","btn","btn-danger","mr-2",3,"click"],["type","submit",1,"text-right","btn","btn-primary",3,"click"],[3,"selectedMode","selectedPayaOption","vericheckTransaction$","vericheckAddAchTransaction$","vericheckReset$","parentCloudposForm","selectedTpn","isAddAchVericheck","isAddBank","consumerId","isMerchantBillingContext","achAlternateCardsCount","isfromRunASale","hideMaskedAchClear","buildVericheckHsmTokenUrl","isFortellisEnabled","vericheckFormData","getExstingCustomerPayload","getConsumerDetail","clearUnMaskedAlternateCard","addBankCompleted"],["type","submit",1,"text-right","btn","btn-primary",3,"disabled","click"]],template:function(a,c){1&a&&(e.YNc(0,Yn,1,0,"app-loading",0),e.YNc(1,ri,11,11,"div",1),e.YNc(2,si,28,24,"ng-template",2,3,e.W1O),e.YNc(4,ze,12,7,"ng-template",2,4,e.W1O),e.YNc(6,ct,2,0,"ng-container",0)),2&a&&(e.Q6J("ngIf",c.isLoading),e.xp6(1),e.Q6J("ngIf",!c.isLoading),e.xp6(5),e.Q6J("ngIf",c.loader))},dependencies:[Ft.R,i.mk,i.O5,ee.N,Un.l,wn.w,R.w9,R.Z2,R.bb,bt.Pl,bt.GZ,bt.j,bt.ei,bt.UX,Ut.p,f.jx,te.V,z._Y,z.Fj,z._,z.JJ,z.JL,z.Q7,z.sg,z.u,Oe.FV,Oe.mh,Mn.ob,P,W.X$],styles:["#p-message-css .p-message .p-message-wrapper{display:block!important;padding-left:.3rem!important}  .p-message{margin:1rem}  #mb-wizard .wizard-steps{justify-content:center!important}  #mb-wizard aw-wizard-step{width:90%!important}.fixed-bar[_ngcontent-%COMP%]{position:fixed;bottom:0;background:#fff;z-index:999;border-radius:5px;left:240px;width:calc(100% - 290px);margin:0 25px}  .p-fieldset{border:1px solid #dee2e6!important}  .p-fieldset-legend-text{font-weight:700;font-size:16px}.full-height[_ngcontent-%COMP%]{height:100vh}.error[_ngcontent-%COMP%]{font-size:14px}.is-invalid[_ngcontent-%COMP%]{border:1px solid #ff5656!important;background-image:none!important;box-shadow:none!important}[_nghost-%COMP%]   [_ngcontent-%COMP%]:ng-deep   .form-control[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border-color:inherit;box-shadow:none}.isPointer[_ngcontent-%COMP%]{cursor:no-drop;pointer-events:none}"]}),p})();var vt=r(64139),dt=r(59151),u=r(80823),Y=r(53298),l=r(88759),y=r(59095),U=r(86942),oe=r(47418),_e=r(44661),De=r(58987),Ne=r(18642),Ve=r(13472);
1function ot(p,L){if(1&p&&(e.TgZ(0,"div",36)(1,"div",37)(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",38)(6,"h5"),e._uU(7),e.qZA()()()),2&p){const a=e.oxw(3);e.xp6(3),e.Oqu(e.lcZ(4,2,"mb.totalMerchants")),e.xp6(4),e.Oqu(null==a.invoice||null==a.invoice.summary?null:a.invoice.summary.totalMerchants)}}function rt(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",36)(1,"div",37)(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",39)(6,"h5")(7,"p",40)(8,"u",41),e._uU(9),e.qZA()()(),e.TgZ(10,"div")(11,"div",42)(12,"a",43),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(3);return e.KtG(h.navigateToBilling(!0))}),e._UZ(13,"span",44),e.TgZ(14,"span"),e._uU(15),e.qZA()()()()()()}if(2&p){const a=e.oxw(3);e.xp6(3),e.Oqu(e.lcZ(4,3,"mb.merchantDba")),e.xp6(6),e.hij("",a.filterMerchantInfo.dba," "),e.xp6(6),e.hij("","Edit Invoicing"," ")}}function Vt(p,L){if(1&p&&(e.TgZ(0,"div",34),e.YNc(1,ot,8,4,"div",35),e.YNc(2,rt,16,5,"div",35),e.TgZ(3,"div",36)(4,"div",37)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"div",38)(9,"h5"),e._uU(10),e.ALo(11,"currency"),e.qZA()()(),e.TgZ(12,"div",36)(13,"div",37)(14,"span"),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e.TgZ(17,"div",38)(18,"h5"),e._uU(19),e.ALo(20,"currency"),e.qZA()()(),e.TgZ(21,"div",36)(22,"div",37)(23,"span"),e._uU(24),e.ALo(25,"translate"),e.qZA()(),e.TgZ(26,"div",38)(27,"h5"),e._uU(28),e.ALo(29,"date"),e.qZA()()()()),2&p){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!(null!=a.filterMerchantInfo&&a.filterMerchantInfo.id)),e.xp6(1),e.Q6J("ngIf",null==a.filterMerchantInfo?null:a.filterMerchantInfo.id),e.xp6(4),e.Oqu(e.lcZ(7,8,"mb.totalAmount")),e.xp6(4),e.Oqu(e.lcZ(11,10,null==a.invoice.summary?null:a.invoice.summary.collectedAmount)),e.xp6(5),e.Oqu(e.l
1cZ(16,12,"mb.totalAmountPending")),e.xp6(4),e.Oqu(e.lcZ(20,14,null==a.invoice.summary?null:a.invoice.summary.pendingAmount)),e.xp6(5),e.Oqu(e.lcZ(25,16,"mb.billedDate")),e.xp6(4),e.hij("",null!=a.invoice.summary&&a.invoice.summary.lastBillingDate?e.xi3(29,18,null==a.invoice.summary?null:a.invoice.summary.lastBillingDate,"d MMM y"):"--"," ")}}function ci(p,L){1&p&&(e.TgZ(0,"h4"),e._uU(1,"No invoice found"),e.qZA())}function di(p,L){if(1&p&&(e.ynx(0),e.TgZ(1,"div",29)(2,"div",30),e._UZ(3,"app-back-button",31),e.YNc(4,Vt,30,21,"div",32),e.TgZ(5,"div",33),e.YNc(6,ci,2,0,"h4",27),e.qZA()()(),e.BQk()),2&p){const a=e.oxw();e.xp6(3),e.Q6J("paramDest","merchantInvoicing"),e.xp6(1),e.Q6J("ngIf",null==a.invoice||null==a.invoice.invoices?null:a.invoice.invoices.length),e.xp6(2),e.Q6J("ngIf",!(null!=a.invoice&&null!=a.invoice.invoices&&a.invoice.invoices.length))}}function pi(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",69),e.NdJ("click",function(){const N=e.CHM(a).index,ne=e.oxw(4);return e.KtG(ne.selected(N))}),e.TgZ(1,"div",70)(2,"a",71),e.NdJ("click",function(){const N=e.CHM(a).$implicit,ne=e.oxw(4);return e.KtG(ne.currentInvoiceDetail(N))}),e.TgZ(3,"div",72)(4,"div")(5,"div",73)(6,"p",74)(7,"span",75)(8,"strong"),e._uU(9),e.qZA()(),e._UZ(10,"span",76),e.qZA(),e.TgZ(11,"p",77)(12,"span",75)(13,"strong"),e._uU(14),e.qZA()()()(),e._UZ(15,"hr"),e.TgZ(16,"div",78)(17,"div",79)(18,"dt"),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"dd"),e._uU(22),e.ALo(23,"date"),e.qZA()(),e.TgZ(24,"div",80)(25,"dt"),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"dd"),e._uU(29),e.ALo(30,"date"),e.qZA()(),e.TgZ(31,"div",81)(32,"span",82)(33,"strong"),e._uU(34),e.ALo(35,"currency"),e.qZA()()()()()()()()()}if(2&p){const a=L.$implicit,c=L.index,h=e.oxw(4);e.ekj("active",h.viewMode==c),e.xp6(9),e.Oqu((null==a?null:a.merchantDba)||"NA"),e.xp6(5),e.Oqu("DECLINED"==(null==a?null:a.invoiceStatus)?"FAILED":null==a?null:a.invoiceStatus),e.xp6(5),e.Oqu(e.l
1cZ(20,9,"invoice.period")),e.xp6(3),e.Oqu(e.xi3(23,11,(null==a?null:a.month)+"-1-"+(null==a?null:a.year),"MMM y")),e.xp6(4),e.Oqu(e.lcZ(27,14,"APPROVED"==(null==a?null:a.invoiceStatus)||"PENDING"==(null==a?null:a.invoiceStatus)?"invoice.paid":"mb.failed")),e.xp6(3),e.hij("",null!=a&&a.billingDate?e.xi3(30,16,null==a?null:a.billingDate,"d MMM y"):"--"," "),e.xp6(5),e.Oqu(e.lcZ(35,19,null==a?null:a.total))}}function ui(p,L){if(1&p&&(e.TgZ(0,"div",65,66),e._UZ(2,"p",67),e.YNc(3,pi,36,21,"div",68),e.qZA()),2&p){const a=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",null==a.invoice?null:a.invoice.invoices)}}function mi(p,L){1&p&&e._UZ(0,"app-loading")}function gi(p,L){if(1&p){const a=e.EpF();e.YNc(0,ui,4,1,"div",62),e.YNc(1,mi,1,0,"app-loading",27),e.TgZ(2,"div",63)(3,"ngb-pagination",64),e.NdJ("pageChange",function(h){e.CHM(a);const N=e.oxw(2);return e.KtG(N.page=h)})("pageChange",function(){e.CHM(a);const h=e.oxw(2);return e.KtG(h.getPage(h.page))}),e.qZA()()}if(2&p){const a=e.oxw(2);e.Q6J("ngIf",!a.paginationLoader),e.xp6(1),e.Q6J("ngIf",a.paginationLoader),e.xp6(2),e.Q6J("collectionSize",a.collectionSize)("page",a.page)("maxSize",3)("rotate",!0)("pageSize",a.limit)}}function hi(p,L){1&p&&e._UZ(0,"i",110)}function _i(p,L){1&p&&e._UZ(0,"i",110)}function fi(p,L){if(1&p){const a=e.EpF();e.TgZ(0,"div",107)(1,"button",108),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(3);return e.KtG(h.downloadInvoice(h.viewInvoice,"excel"))}),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,hi,1,0,"i",109),e.qZA(),e.TgZ(6,"button",108),e.NdJ("click",function(){e.CHM(a);const h=e.oxw(3);return e.KtG(h.downloadInvoice(h.viewInvoice,"pdf"))}),e.TgZ(7,"span"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.YNc(10,_i,1,0,"i",109),e.qZA()()}if(2&p){const a=e.oxw(3);e.xp6(1),e.Q6J("disabled",!!a.invoiceDownloadLoader||!a.viewInvoice.invoiceDetailsExcel),e.xp6(2),e.Oqu(e.lcZ(4,6,"invoice.renderInvoice")),e.xp6(2),e.Q6J("ngIf","excel"==a.invoiceDownloadLoader),e.xp6(1),e.Q6J("disabled",!!a.invoiceDownloadLoader||!a.viewInvoice.invoicePdf),e.xp6(2),e.Oqu(e.lcZ(9,8,"invoice.renderInvoiceBill")),e.xp6(2),e.Q6J("ngIf","pdf"==a.invoiceDownloadLoader)}}function vi(p,L){1&p&&(e.TgZ(0,"div",107)(1,"button",111),e._UZ(2,"i",112),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.TgZ(6,"button",111),e._UZ(7,"i",113),e.TgZ(8,"span"),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"button",111),e._UZ(12,"i",114),e.TgZ(13,"span"),e._uU(14),e.ALo(15,"translate"),e.qZA()()()),2&p&&(e.xp6(1),e.Q6J("disabled",!0),e.xp6(3),e.Oqu(e.lcZ(5,6,"mb.sendLink")),e.xp6(2),e.Q6J("disabled",!0),e.xp6(3),e.Oqu(e.lcZ(10,8,"mb.markAsPaid")),e.xp6(2),e.Q6J("disabled",!0),e.xp6(3),e.Oqu(e.lcZ(15,10,"mb.editContract")))}function xi(p,L){if(1&p&&(e.TgZ(0,"div",83)(1,"div",84)(2,"div",85)(3,"div",86),e._UZ(4,"i",87),e.TgZ(5,"div")(6,"h4",88),e._uU(7),e.qZA()()(),e.TgZ(8,"div",89)(9,"div")(10,"h4"),e._uU(11),e.ALo(12,"translate"),e.qZA()()()()(),e.TgZ(13,"div",90)(14,"div",85)(15,"div",91),e._UZ(16,"i",87),e.TgZ(17,"div")(18,"h4",92),e._uU(19),e.ALo(20,"translate"),e.qZA()()(),e.TgZ(21,"div",89)(22,"div")(23,"h5"),e._uU(24),e.ALo(25,"translate"),e.ALo(26,"date"),e.qZA()()()()(),e.TgZ(27,"div",93)(28,"div",94)(29,"span",95)(30,"strong"),e._uU(31),e.ALo(32,"currency"),e.qZA()()(),e.TgZ(33,"div",96)(34,"div",97,98)(36,"button",99),e._uU(37),e.ALo(38,"translate"),e.qZA(),e.YNc(39,fi,11,10,"div",100),e.YNc(40,vi,16,12,"div",100),e.qZA()()(),e.TgZ(41,"div",101)(42,"div",13)(43,"div",102)(44,"dt"),e._UZ(45,"span",103),e._uU(46),e.ALo(47,"translate"),e.qZA(),e.TgZ(48,"dd",104),e._uU(49),e.qZA()(),e.TgZ(50,"div",102)(51,"dt"),e._UZ(52,"span",105),e._uU(53),e.ALo(54,"translate"),e.qZA(),e.TgZ(55,"dd",104),e._uU(56),e.ALo(57,"currency"),e.qZA()(),e.TgZ(58,"div",102)(59,"dt"),e._UZ(60,"span",105),e._uU(61),e.ALo(62,"translate"),e.qZA(),e.TgZ(63,"dd",104),e._uU(64),e.ALo(65,"currency"),e.qZA()(),e.TgZ(66,"div",102)(67,"dt"),e._UZ(68,"span",105),e._uU(69),e.ALo(70,"translate"),e.qZA(),e.TgZ(71,"dd",104),e._uU(72),e.ALo(73,"currency"),e.qZA()(),e.TgZ(74,"div",102)(75,"dt"),e._UZ(76,"span",105),e._uU(77),e.ALo(78,"translate"),e.qZA(),e.TgZ(79,"dd",104),e._uU(80),e.ALo(81,"currency"),e.qZA()(),e.TgZ(82,"div",102)(83,"dt"),e._UZ(84,"span",105),e._uU(85),e.ALo(86,"translate"),e.qZA(),e.TgZ(87,"dd",104),e._uU(88),e.ALo(89,"currency"),e.qZA()(),e.TgZ(90,"div",102)(91,"dt"),e._UZ(92,"span",105),e._uU(93),e.ALo(94,"translate"),e.qZA(),e.TgZ(95,"dd",104),e._uU(96),e.ALo(97,"currency"),e.qZA()(),e.TgZ(98,"div",102)(99,"dt"),e._UZ(100,"span",105),e._uU(101),e.ALo(102,"translate"),e.qZA(),e.TgZ(103,"dd",104),e._uU(104),e.qZA()(),e.TgZ(105,"div",102)(106,"dt"),e._uU(107),e.ALo(108,"translate"),e.qZA(),e.TgZ(109,"dd",104),e._uU(110),e.qZA()(),e.TgZ(111,"div",102)(112,"dt"),e._uU(113),e.ALo(114,"translate"),e.qZA(),e.TgZ(115,"dd",106),e._uU(116),e.qZA()()()()()),2&p){const a=e.oxw(2);e.xp6(3),e.Q6J("ngClass",null==a.viewInvoice?null:a.viewInvoice.invoiceStatus),e.xp6(4),e.hij(" ","DECLINED"==(null==a.viewInvoice?null:a.viewInvoice.invoiceStatus)?"FAILED":null==a.viewInvoice?null:a.viewInvoice.invoiceStatus," "),e.xp6(4),e.AsE("",e.lcZ(12,32,"invoice.invoiceNumber")," ",null==a.viewInvoice?null:a.viewInvoice.invoiceNumber,""),e.xp6(8),e.hij(" ",e.lcZ(20,34,"invoice.summary")," "),e.xp6(5),e.AsE("",e.lcZ(25,36,"invoice.generated")," ",e.xi3(2
16,38,null==a.viewInvoice?null:a.viewInvoice.generatedDate,"d MMM y"),""),e.xp6(7),e.hij("Total: ",e.lcZ(32,41,null==a.viewInvoice?null:a.viewInvoice.total),""),e.xp6(3),e.Q6J("autoClose","outside"),e.xp6(3),e.hij(" ",e.lcZ(38,43,"invoice.more"),""),e.xp6(2),e.Q6J("ngIf","APPROVED"==a.viewInvoice.invoiceStatus),e.xp6(1),e.Q6J("ngIf","APPROVED"!=a.viewInvoice.invoiceStatus),e.xp6(6),e.hij("",e.lcZ(47,45,"invoice.tpn"),"#"),e.xp6(3),e.Oqu((null==a.viewInvoice?null:a.viewInvoice.totalTpns)||"NA"),e.xp6(4),e.hij("",e.lcZ(54,47,"invoice.fixedFee")," "),e.xp6(3),e.Oqu(e.gM2(57,49,null==a.viewInvoice?null:a.viewInvoice.fixedFee,"USD","symbol","1.1-4")),e.xp6(5),e.hij("",e.lcZ(62,54,"invoice.spinFee")," "),e.xp6(3),e.Oqu(e.gM2(65,56,(null==a.viewInvoice?null:a.viewInvoice.spinFixedFee)||0,"USD","symbol","1.1-4")),e.xp6(5),e.hij("",e.lcZ(70,61,"invoice.setUpFee")," "),e.xp6(3),e.Oqu(e.gM2(73,63,(null==a.viewInvoice?null:a.viewInvoice.setupFixedFee)||0,"USD","symbol","1.1-4")),e.xp6(5),e.hij("",e.lcZ(78,68,"invoice.variableFee")," "),e.xp6(3),e.hij("",e.gM2(81,70,null==a.viewInvoice?null:a.viewInvoice.variableFee,"USD","symbol","1.1-4")," "),e.xp6(5),e.hij("",e.lcZ(86,75,"invoice.txSMSFee")," "),e.xp6(3),e.Oqu(e.gM2(89,77,null==a.viewInvoice?null:a.viewInvoice.smsFee,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.l
1cZ(94,82,"invoice.vasIntegrationFee")),e.xp6(3),e.Oqu(e.gM2(97,84,(null==a.viewInvoice?null:a.viewInvoice.vasIntegrationFee)||0,"USD","symbol","1.1-4")),e.xp6(5),e.Oqu(e.lcZ(102,89,"htmlText.isoAgentReference")),e.xp6(3),e.Oqu((null==a.viewInvoice?null:a.viewInvoice.isoAgentReference)||"N/A"),e.xp6(3),e.hij(" ",e.lcZ(108,91,"htmlText.isoMerchant")," "),e.xp6(3),e.Oqu((null==a.viewInvoice?null:a.viewInvoice.isoMerchant)||"N/A"),e.xp6(3),e.hij(" ",e.lcZ(114,93,"htmlText.ownedBy")," "),e.xp6(3),e.Oqu((null==a.viewInvoice?null:a.viewInvoice.ownedBy)||"N/A")}}function Ci(p,L){if(1&p&&(e.TgZ(0,"div",45)(1,"div",46)(2,"div",47)(3,"div",48)(4,"div",49)(5,"div",50)(6,"div",51)(7,"div",52)(8,"p",53)(9,"span",54),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",55)(13,"ul",56,57)(15,"li",58),e.YNc(16,gi,4,7,"ng-template",59),e.qZA()(),e._UZ(17,"div",60),e.qZA()()(),e.YNc(18,xi,117,95,"div",61),e.qZA()()()()()),2&p){const a=e.MAs(14),c=e.oxw();e.xp6(10),e.AsE(" ",e.lcZ(11,5,"transactionInvoice")," (",null==c.invoice||null==c.invoice.summary?null:c.invoice.summary.totalMerchants,")"),e.xp6(5),e.Q6J("ngbNavItem",1),e.xp6(2),e.Q6J("ngbNavOutlet",a),e.xp6(1),e.Q6J("ngIf",null==c.invoice||null==c.invoice.invoices?null:c.invoice.invoices.length)}}function Ti(p,L){if(1&p){const a=e.EpF();e.ynx(0),e.TgZ(1,"div",115)(2,"div",116),e._UZ(3,"app-ilustration-with-message",117),e.TgZ(4,"button",118),e.NdJ("click",function(){e.CHM(a);const h=e.oxw();return e.KtG(h.navigateToBilling())}),e._uU(5),e.ALo(6,"translate"),e.qZA()()(),e.BQk()}if(2&p){const a=e.oxw();e.xp6(3),e.MGl("text","No Invoice data avaible for @",null==a.filterMerchantInfo?null:a.filterMerchantInfo.dba,". Start billing this merchant"),e.xp6(2),e.hij(" ",e.lcZ(6,2,"Start Billing")," ")}}function bi(p,L){1&p&&e._UZ(0,"app-loading")}const yi=[{path:"TXN",component:He,canActivate:[M.R],data:{module:ce.j.BILLING,privilege:C.R.VIEW_INVOICE}},{path:"RENTAL",component:O,canActivate:[M.R],data:{module:ce.j.RENTAL,privilege:C.R.VIEW_RENTAL}},{path:"m-b",component:St,canActivate:[M.R],data:{module:ce.j.MERCHANT_BILLING,privilege:C.R.VIEW_BILLING}},{path:"m-b-s",component:Nt,canActivate:[M.R],data:{module:ce.j.MERCHANT_BILLING,privilege:C.R.VIEW_BILLING}},{path:"merchant-contract",component:ft,canActivate:[M.R],data:{module:ce.j.MERCHANT_BILLING,privilege:C.R.VIEW_BILLING}},{path:"invoice-details",component:(()=>{class p{constructor(a,c,h,N,ne,ue,Ae,we,Pe){var me=this;this.common=a,this.messageService=c,this.httpClient=h,this.activeRoute=N,this.merchantService=ne,this.router=ue,this.ngbModal=Ae,this.userService=we,this.authService=Pe,this.customerInfo=localStorage.getItem("current_user")?JSON.parse(localStorage.getItem("current_user")):{},this.status=[{name:"PENDING",id:"PENDING"},{name:"APPROVED",id:"APPROVED"},{name:"FAILED",id:"DECLINED"}],this.invoice={},this.statusTypes=[],this.monthList=w.months().map((ve,Ce)=>({label:ve,value:Ce+1})),this.startYear=2022,this.yearList=[],this.viewMode=0,this.page=1,this.limit=10,this.size=10,this.isLoading=!0,this.invoiceIdloading=!1,this.merchantLoading=!1,this.isFilter=!1,this.isFormValid=!1,this.billingNotebaled=!1,this.paginationLoader=!1,this.notFoundText="Type at least 3 letters",this.merchantNotFoundText="Type at least 3 letters",this.invoiceIdsList=[],this.merchantsList=[],this.search$=new g.xQ,this.filterMerchantInfo={},this.billingSummary={},this.billingStatus={},this.routeParams=this.activeRoute.snapshot.queryParams,this.invoiceDownloadLoader="",this.searchInit=()=>{this.merchants$=this.search$.pipe((0,dt.h)(ve=>ve?.length>=3),(0,u.b)(300),(0,Y.x)(),(0,l.b)(()=>{this.merchantLoading=!0,this.merchantNotFoundText="No results found"}),(0,y.w)(ve=>this.merchantService.getAllMerchant({isFilter:!0,page:1,size:500,queryString:ve}).pipe((0,U.U)(Ce=>(Ce.data.items||[]).map(Xe=>({id:Xe.id,dba:Xe.dba}))),(0,l.b)(Ce=>{this.merchantsList=Ce}),(0,oe.K)(()=>(this.merchantLoading=!1,this.merchantsList=[],(0,vt.of)([]))),(0,_e.x)(()=>this.merchantLoading=!1))))},this.getInvoiceDetails=()=>{const ve={...this.filterFormGroup.value,page:this.page,size:this.size};this.common.postCommonHttpClient(`${T.D.merchantBilling.getInvoiceDetails}`,ve).pipe((0,j.q)(1)).subscribe(Ce=>{this.isLoading=this.paginationLoader=!1,this.filterMerchantInfo=this.merchantsList.find(Xe=>Xe.id==this.filterFormGroup.get("merchantId").value),"BILLING_NOT_ENABLED"!==Ce.message_code?(this.billingNotebaled=!1,Ce.data?.invoices?.length||this.showToaster("error","","No invoices found"),this.invoice=Ce.data,this.collectionSize=this.invoice?.summary?.totalMerchants||0,this.currentInvoiceDetail(this.invoice?.invoices?.length&&this.invoice.invoices?.length?this.invoice.invoices[0]:{})):this.billingNotebaled=!0},Ce=>{this.isLoading=this.paginationLoader=!1})},this.getInvoicesIdList=ve=>{this.common.getCommonHttpClientParams(`${T.D.merchantBilling.getInvoiceIds}?term=${ve}`).pipe((0,j.q)(1)).subscribe(Ce=>{this.invoiceIdsList=Ce.data.items||[],this.invoiceIdloading=!1},Ce=>{this.invoiceIdloading=!1,this.invoiceIdsList=[]})},this.searchFn=()=>{this.isFilter=this.isLoading=!0,this.getInvoiceDetails()},this.preserveFilter=()=>{localStorage.setItem("m_b_invoice_filter",JSON.stringify({...this.filterFormGroup.value,...this.filterMerchantInfo}))},this.navigateFn=(ve,Ce)=>{Ce={...Ce,...this.billingStatus,...this.billingSummary},this.router.navigate([`/billing-invoice/${ve}`],{queryParams:Ce||{}})},this.downloadInvoice=function(){var ve=(0,_.Z)(function*(Ce,Xe){me.invoiceDownloadLoader=Xe,me.common.getCommonHttpClientQueryParams(T.D.merchantBilling.s3Link,{key:"excel"==Xe?Ce.invoiceDetailsExcel:Ce.invoicePdf}).subscribe(it=>{const Ot=`Invoices-${(new Date).toISOString().slice(0,10)}-${Ce.merchantDba}${"pdf"===Xe?".pdf":".xlsx"}`;me.httpClient.get(it.signedUrl,{responseType:"blob"}).subscribe({next:Tt=>{me.invoiceDownloadLoader="",A.saveAs(Tt,Ot)},error:Tt=>{me.showToaster("error","",Tt?.message||"Download failed"),me.invoiceDownloadLoader=""}})},it=>{me.showToaster("error","",it?.message||"Download failed"),me.invoiceDownloadLoader=""})});return function(Ce,Xe){return ve.apply(this,arguments)}}
1(),this.billingSummary=this.routeParams.billingSummary?JSON.parse(this.routeParams.billingSummary):{},this.billingStatus=this.routeParams.billingStatus?JSON.parse(this.routeParams.billingStatus):{}}ngOnInit(){this.filterFormGroup=new z.cw({month:new z.NI(Number(this.routeParams.month)||null),year:new z.NI(Number(this.routeParams.year)||null),merchantId:new z.NI(null),invoiceNumber:new z.NI(this.routeParams.invoiceNumber),invoiceStatus:new z.NI(null)});let a=Number(w().format("YYYY"));for(let h=this.startYear;h<=a;h++)this.yearList.push(h);this.invoiceIdsList=this.routeParams.invoiceNumber?[{invoiceNumber:this.routeParams.invoiceNumber}]:[],this.filterFormGroup.valueChanges.subscribe(h=>{this.isFormValid=Object.values(h).some(N=>null!==N&&""!==N),this.isFormValid||this.getInvoiceDetails()}),this.filterFormGroup.updateValueAndValidity(),this.searchInit();const c=localStorage.getItem("m_b_invoice_filter")?JSON.parse(localStorage.getItem("m_b_invoice_filter")):null;c?(localStorage.removeItem("m_b_invoice_filter"),c.merchantId&&setTimeout(()=>{this.search$.next(c.dba)},50),this.invoiceIdsList=c.invoiceNumber?[{invoiceNumber:c.invoiceNumber}]:[],this.merchantsList=c.merchantId?[{dba:c.dba,id:c.id}]:[],this.filterFormGroup.setValue({month:c.month,year:c.year,merchantId:c.merchantId,invoiceNumber:c.invoiceNumber,invoiceStatus:c.invoiceStatus}),this.getInvoiceDetails()):this.getInvoiceDetails()}clear(){this.filterFormGroup.reset(),this.isLoading=!0,this.getInvoiceDetails()}selected(a){this.viewMode=a}currentInvoiceDetail(a){this.viewInvoice=a}showToaster(a,c,h,N){this.messageService.add({severity:a,summary:c,detail:h,key:"copy-toast"})}getPage(a){this.page=a,console.log("page",a),this.paginationLoader=!0,this.getInvoiceDetails()}onSearchInvoiceId(a){clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{a?.length>=3?(this.invoiceIdloading=!0,this.notFoundText="No results found",this.getInvoicesIdList(a)):(this.notFoundText="Type at least 3 letters",this.invoiceIdsList=[],this.invoiceIdloading=!1)},300)}navigateToBilling(a){this.preserveFilter(),this.router.navigate(["/billing-invoice/merchant-contract"],{queryParams:{mid:this.filterMerchantInfo?.id,merDba:this.filterMerchantInfo?.dba,...a?{ebill:a}:{},backtopage:"m-b-invoice-details"}})}loginAs(){if(!this.billingSummary.accountInfo?.userId)return;let a=this.ngbModal.open(X.P,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});a.componentInstance.isLoading=!0,a.componentInstance.header="LOGIN-AS CONFIRMATION";let c={ownedByCustomer:this.customerInfo.customerId},h=this.userService.getUser(this.userService.getUserById,{id:this.billingSummary.accountInfo?.userId}),N=this.common.getCommonHttpClientQueryParams(T.D.isEnableProxyEmailAlert,c);(0,fe.D)([h,N]).pipe((0,j.q)(1)).subscribe(([ne,ue])=>{const Ae=ne;a.componentInstance.body="Do you want to login as your Collection Account ?",a.componentInstance.confirmButton="Confirm",a.componentInstance.email=Ae.email,a.componentInstance.systemUser=this.authService.getUser.firstName+" "+this.authService.getUser.lastName,a.componentInstance.systemEmail=this.authService.getUser.email,a.componentInstance.isLoading=!1,a.componentInstance.loginUser="Merchant",a.componentInstance.isEnableProxyEmail=ue.isEnableProxyMail},ne=>{a.componentInstance.isLoading=!1,a.componentInstance.body=`Error occurred, ${ne.message}`,a.componentInstance.isError=!0})}showDownloadDialog(a="Downloading"){window.scroll(0,0),this.DownloadModalReference=this.ngbModal.open(b.k,{backdrop:"static",keyboard:!1,centered:!0,size:"lg"}),this.DownloadModalReference.componentInstance.isLoading=!0,this.DownloadModalReference.componentInstance.body=a}download(){this.showDownloadDialog(),this.common.postCommonFileDownload(T.D.merchantBilling.invoiceDownload,this.filterFormGroup.value).subscribe({next:a=>{const h=`Invoices-${(new Date).toISOString().slice(0,10)}.xlsx`,N=window.URL.createObjectURL(a);A.saveAs(N,h),window.URL.revokeObjectURL(N),this.DownloadModalReference?.close()},error:a=>{a.error instanceof Blob&&a.error.type.includes("application/json")?a.error.text().then(c=>{let h="Unknown server error";try{h=JSON.parse(c)?.message||h}catch{h=c}this.showToaster("error","",h),this.DownloadModalReference?.close()}):(this.showToaster("error","",a.message||"Download failed"),this.DownloadModalReference?.close())}})}}
1return p.\u0275fac=function(a){return new(a||p)(e.Y36(n.v),e.Y36(f.ez),e.Y36(De.eN),e.Y36(t.gz),e.Y36(Ne.c),e.Y36(t.F0),e.Y36(J.FF),e.Y36(E.K),e.Y36(de.e))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-invoice-detail"]],decls:50,vars:36,consts:[[1,"row","shadow","p-3","mb-4","bg-white","rounded"],[1,"col-12","col-md-1","mb-3","mb-md-0","d-flex","justify-content-start","justify-content-md-center"],["ngbDropdown","",1,"d-inline-block"],["ngbDropdownToggle","",1,"btn","btn-outline-primary","btn-xs"],[1,"feather","icon-list"],["ngbDropdownMenu","",1,"shadow","p-3","bg-white","rounded"],["ngbDropdownItem","",3,"click"],[1,"feather","icon-download","mr-1"],[1,"feather","icon-globe","mr-1"],[1,"feather","icon-user","mr-1"],[1,"feather","icon-layers","mr-1"],[1,"col-12","col-sm-8","col-md-8"],[3,"formGroup"],[1,"row"],[1,"col-12","col-sm-6","col-md-4","mb-2"],["id","monthBox","formControlName","month","bindLabel","label","bindValue","value","placeholder","Month Selection",3,"items","clearable"],["id","year","formControlName","year","bindLabel","label","bindValue","value","placeholder","Year Selection",3,"items","clearable"],["formControlName","merchantId","bindLabel","dba","bindValue","id","placeholder","Search by Merchant",3,"items","loading","notFoundText","typeahead","clearable","search"],["formControlName","invoiceNumber","bindLabel","invoiceNumber","bindValue","invoiceNumber","placeholder","Search By Invoice","clearAllText","Clear",3,"items","loading","notFoundText","clearable","search"],["formControlName","invoiceStatus","bindLabel","name","bindValue","id","placeholder","Invoice Status",3,"items","clearable"],[1,"ml-3"],[1,"d-flex","flex-wrap","gap-2","w-100","w-md-auto"],[1,"btn","btn-outline-primary","mr-2",3,"disabled","click"],[1,"feather","icon-search","mr-1"],["type","button",1,"btn","btn-outline-primary","mr-2",3,"disabled","click"],[1,"btn","btn-outline-primary",3,"click"],[1,"feather","icon-refresh-cw"],[4,"ngIf"],["class","row chat-wrapper",4,"ngIf"],[1,"card","list-view","card-list-bg","mb-3"],[1,"card-body","carding","p-3"],[3,"paramDest"],["class","d-flex justify-content-around align-items-center",4,"ngIf"],[1,"text-center"],[1,"d-flex","justify-content-around","align-items-center"],["class","d-flex flex-column text-center",4,"ngIf"],[1,"d-flex","flex-column","text-center"],[1,"mb-1"],[1,"font-weight-bold","mb-1"],["ngbDropdown","","container","body"],["ngbDropdownToggle","","data-toggle","tooltip","data-placement","bottom","title","Merchant DBA",1,"over-flow"],[1,"hover-text",2,"cursor","pointer"],["ngbDropdownMenu","","aria-labelledby","dropdownMenuButton"],["ngbDropdownItem","",1,"d-flex","align-items-center",3,"click"],[1,"feather","icon-edit","mr-1"],[1,"row","chat-wrapper"],[1,"col-md-12"],[1,"card",2,"background-color","#fff !important"],[1,"card-body"],[1,"row","position-relative"],[1,"col-lg-5","chat-aside","border-lg-right"],[1,"aside-content"],[1,"card-header","list-header","width-heade-align"],[1,"card-text","mt-1","col-md-12","pl-0","text-left"],[1,"font-weight-bold"],[1,"aside-body"],["ngbNav","",1,"mt-3"],["defaultNav","ngbNav"],[3,"ngbNavItem"],["ngbNavContent",""],[1,"",3,"ngbNavOutlet"],["class","col-lg-7 chat-content",4,"ngIf"],["class","container","style","max-height: calc(100vh - 17rem) !important;",3,"perfectScrollbar",4,"ngIf"],[1,"mt-2"],[1,"d-flex","justify-content-end","mob-media","mt-1",3,"collectionSize","page","maxSize","rotate","pageSize","pageChange"],[1,"container",2,"max-height","calc(100vh - 17rem) !important",3,"perfectScrollbar"],["container",""],[1,"text-muted","mb-1"],["class","ist-unstyled chat-list px-1 mb-2 back-ground-color back-hover",3,"active","click",4,"ngFor","ngForOf"],[1,"ist-unstyled","chat-list","px-1","mb-2","back-ground-color","back-hover",3,"click"],[1,"chat-item","pr-1"],[1,"d-flex","align-items-center",3,"click"],[1,"flex-grow"],[1,"d-flex","justify-content-between"],[1,"text-body","over-flow","ml-1"],[1,"large-fontsize-label"],[1,"large-fontsize"],[1,"text-body","mr-1"],[1,"text-body","row"],[1,"col-md-4","text-left"],[1,"col-md-4","pl-4"],[1,"col-md-4","mt-2","text-right"],[1,"",2,"font-size","18px"],[1,"col-lg-7","chat-content"],[1,"chat-header","pb-3"],[1,"d-flex"],[1,"align-items-center","flex-grow-1",3,"ngClass"],[1,"feather","icon-corner-up-left","icon-md","mr-2","ml-n2","text-muted","d-lg-none"],[1,"mt-1","ml-3"],[1,"align-items-center","ml-3","mt-1"],[1,"chat-header","border-bottom","pb-2"],[1,"align-items-center","flex-grow-1"],[1,"mt-1"],[1,"d-flex","justify-content-end","mt-2","mb-2","back-ground-color","list","p-2"],["ngbDropdown","",1,"mt-1","flex-grow-1"],[1,"ml-3","mt-1",2,"font-size","large"],[1,"ml-md-2"],["ngbDropdown","",1,"d-inline-block",3,"autoClose"],["myDrop","ngbDropdown"],["id","dropdownManual","ngbDropdownToggle","",1,"btn","btn-more"],["ngbDropdownMenu","","aria-labelledby","dropdownManual",4,"ngIf"],[1,"chat-body"],[1,"mt-2","col-md-4","col-lg-4","col-sm-6"],["aria-hidden","",1,"mdi","mdi-point-of-sale","pr-1"],[1,"pl-4"],["aria-hidden","",1,"mdi","mdi-cash-multiple","pr-1"],[1,"pl-0"],["ngbDropdownMenu","","aria-labelledby","dropdownManual"],["ngbDropdownItem","",3,"disabled","click"],["class","spinner-border spinner-border-sm ml-1 mt-1","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","ml-1","mt-1"],["ngbDropdownItem","",3,"disabled"],["data-feather","smartphone","appFeatherIcon","",1,"icon-sm","mr-2"],["data-feather","check-circle","appFeatherIcon","",1,"icon-sm","mr-2"],["data-feather","edit","appFeatherIcon","",1,"icon-sm","mr-2"],[1,"row","justify-content-center","text-center","mt-5"],[1,"col-12","col-sm-8","col-md-6"],["illustrationName","add.svg","severity","warn",3,"text"],["type","button",1,"btn","btn-outline-primary","btn-sm","mt-3",2,"min-width","150px",3,"click"]],template:function(a,c){1&a&&(e.ynx(0),e.TgZ(1,"div",0)(2,"div",1)(3,"div",2)(4,"button",3),e._UZ(5,"span",4),e.qZA(),e.TgZ(6,"div",5)(7,"a",6),e.NdJ("click",function(){return c.download()}),e._UZ(8,"span",7),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"a",6),e.NdJ("click",function(){return c.navigateFn("m-b-s",{from:"pref_sell_price"})}),e._UZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"a",6),e.NdJ("click",function(){return c.loginAs()}),e._UZ(16,"span",9),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"a",6),e.NdJ("click",function(){return c.navigateFn("m-b-s",{to:"s-s-p",from:"bulk_update"})}),e._UZ(20,"span",10),e._uU(21),e.ALo(22,"translate"),e.qZA()()()(),e.TgZ(23,"div",11)(24,"form",12)(25,"div",13)(26,"div",14),e._UZ(27,"ng-select",15),e.qZA(),e.TgZ(28,"div",14),e._UZ(29,"ng-select",16),e.qZA(),e.TgZ(30,"div",14)(31,"ng-select",17),e.NdJ("search",function(N){return c.search$.next(N.term)}),e.ALo(32,"async"),e.qZA()(),e.TgZ(33,"div",14)(34,"ng-select",18),e.NdJ("search",function(N){return c.onSearchInvoiceId(N.term)}),e.qZA()(),e.TgZ(35,"div",14),e._UZ(36,"ng-select",19),e.qZA()()()(),e.TgZ(37,"div",20)(38,"div",21)(39,"button",22),e.NdJ("click",function(){return c.searchFn()}),e._UZ(40,"i",23),e._uU(41," Search "),e.qZA(),e.TgZ(42,"button",24),e.NdJ("click",function(){return c.clear()}),e._uU(43," Clear "),e.qZA(),e.TgZ(44,"button",25),e.NdJ("click",function(){return c.searchFn()}),e._UZ(45,"i",26),e.qZA()()()(),e.YNc(46,di,7,3,"ng-container",27),e.YNc(47,Ci,19,7,"div",28),e.BQk(),e.YNc(48,Ti,7,4,"ng-container",27),e.YNc(49,bi,1,0,"app-loading",27)),2&a&&(e.xp6(9),e.hij(" ",e.lcZ(10,26,"htmlText.dwld")," "),e.xp6(4),e.hij(" ",e.lcZ(14,28,"mb.settings")," "),e.xp6(4),e.hij("",e.lcZ(18,30,"mb.loginToAccount")," "),e.xp6(4),e.hij(" ",e.lcZ(22,32,"mb.bulkUpdate")," "),e.xp6(3),e.Q6J("formGroup",c.filterFormGroup),e.xp6(3),e.Q6J("items",c.monthList)("clearable",!0),e.xp6(2),e.Q6J("items",c.yearList)("clearable",!0),e.xp6(2),e.Q6J("items",e.lcZ(32,34,c.merchants$))("loading",c.merchantLoading)("notFoundText",c.merchantNotFoundText)("typeahead",c.search$)("clearable",!0),e.xp6(3),e.Q6J("items",c.invoiceIdsList)("loading",c.invoiceIdloading)("notFoundText",c.notFoundText)("clearable",!0),e.xp6(2),e.Q6J("items",c.status)("clearable",!0),e.xp6(3),e.Q6J("disabled",!c.isFormValid),e.xp6(3),e.Q6J("disabled",!c.isFormValid),e.xp6(4),e.Q6J("ngIf",!c.isLoading&&!c.billingNotebaled),e.xp6(1),e.Q6J("ngIf",(null==c.invoice||null==c.invoice.invoices?null:c.invoice.invoices.length)&&!c.isLoading&&!c.billingNotebaled),e.xp6(1),e.Q6J("ngIf",c.billingNotebaled&&!c.isLoading),e.xp6(1),e.Q6J("ngIf",c.isLoading))},dependencies:[Ft.R,i.mk,i.sg,i.O5,ee.N,Ve.W,K.w,Ie.$V,R.w9,J.jt,J.iD,J.Vi,J.TH,z._Y,z.JJ,z.JL,z.sg,z.u,Oe.mh,J.uN,J.Pz,J.nv,J.tO,J.N9,i.Ov,i.H9,i.uU,W.X$]}),p})(),canActivate:[M.R],data:{module:ce.j.MERCHANT_BILLING,privilege:C.R.VIEW_BILLING}}];let Ai=(()=>{class p{}
1return p.\u0275fac=function(a){return new(a||p)},p.\u0275mod=e.oAB({type:p}),p.\u0275inj=e.cJS({imports:[t.Bz.forChild(yi),t.Bz]}),p})();var Pi=r(39628),Ii=r(4403),Mi=r(12735),Oi=r(86872);const Ei={suppressScrollX:!0};let Si=(()=>{class p{}return p.\u0275fac=function(a){return new(a||p)},p.\u0275mod=e.oAB({type:p}),p.\u0275inj=e.cJS({providers:[{provide:Ie.op,useValue:Ei}],imports:[Pi.M,i.ez,Ii.m,Ai,Ie.Xd,R.A0,W.aw,J.XC,bt.O,Ut.L,Jt.z,Mi.O,te.$,z.UX,kt.fx,J._A,Yt.L$,Qt.nD,Ee.EV,Oe.J7,Oi.Iu,Mn.Su,J.Oz,J.jF]}),p})()},98942:(Te,G,r)=>{"use strict";r.d(G,{D:()=>Rn});var i=r(83918),t=r(9266),_=r.n(t),g=r(76944),T=r(92340),v=r(92938),w=r(2508),A=r(46261),b=r(54724),D=r(58583),e=r(3497),n=r(22560),f=r(40929),S=r(33507),J=r(91768),de=r(59462),Ie=r(94666),z=r(97212),Ee=r(59587),Oe=r(28424),ee=r(49532),Me=r(33935),R=r(32414);const W=["screen"],ie=["openEmailPopup"];function ye(d,V){1&d&&n._UZ(0,"app-loading")}function Ue(d,V){if(1&d){const o=n.EpF();n.TgZ(0,"div",23)(1,"button",24),n._uU(2," Actions"),n.qZA(),n.TgZ(3,"div",14)(4,"button",15),n.NdJ("click",function(){n.CHM(o);const s=n.oxw(2);return n.KtG(s.download("png"))}),n._UZ(5,"i",16),n._uU(6," PNG"),n.qZA(),n.TgZ(7,"button",17),n.NdJ("click",function(){n.CHM(o);const s=n.oxw(2);return n.KtG(s.printPage())}),n._UZ(8,"span",18),n._uU(9," Print/PDF"),n.qZA(),n.TgZ(10,"button",15),n.NdJ("click",function(){n.CHM(o);const s=n.oxw(2);return n.KtG(s.emailPopupModal())}),n._UZ(11,"span",25),n._uU(12," Email"),n.qZA()()()}}function $e(d,V){if(1&d&&(n.TgZ(0,"div",58),n._UZ(1,"img",59),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("src",o.logo,n.LSH)}}function ke(d,V){if(1&d&&(n.TgZ(0,"div",60),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij("IP: ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField||null==o.receiptData.signatureDetails.customField.signature?null:o.receiptData.signatureDetails.customField.signature.ipAddress,"")}}function Re(d,V){if(1&d&&(n.TgZ(0,"div",61)(1,"div"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div"),n._uU(5),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"parameter.tpn"),":"),n.xp6(3),n.Oqu(o.errorHandle(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.tpn))}}function F(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",62),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",62),n.TgZ(5,"div",62),n._uU(6),n.ALo(7,"translate"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.AsE("",n.lcZ(3,4,"htmlText.trans")," #: ",null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.rrn,""),n.xp6(4),n.AsE("",n.lcZ(7,6,"htmlText.batch")," #: ",null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.tpnBatchNumber," ")}}function Q(d,V){if(1&d&&(n.TgZ(0,"div",63)(1,"p",64),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.AsE("","Y"==(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.voidFlag)?n.lcZ(3,2,"label.voided"):""," ",o.getTxName(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.txName,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.transactionType),"")}}function ae(d,V){1&d&&(n.TgZ(0,"div",63)(1,"p",64),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&d&&(n.xp6(2),n.Oqu(n.lcZ(3,1,"htmlText.conversion")))}function H(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.type"),":"),n.xp6(4),n.Oqu(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)}}function ge(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"number"),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.AsE("",n.lcZ(2,2,"htmlText.trans")," #: ",n.lcZ(3,4,o.get(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.invoiceNumber,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.voidFlag)),"")}}function Se(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.AsE("",n.lcZ(2,2,"htmlText.trans")," #: ",null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.rrn,"")}}function Je(d,V){if(1&d&&(n.TgZ(0,"div",29),n.YNc(1,ge,4,6,"div",65),n.YNc(2,Se,3,4,"div",65),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"translate"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","CASH"==(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)),n.xp6(3),n.AsE("",n.lcZ(6,4,"htmlText.batch")," #: ",null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.tpnBatchNumber," ")}}function We(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",o.cardLabel(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.cardLabel,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.transactionType),"")}}function He(d,V){if(1&d&&(n.TgZ(0,"div",66),n.YNc(1,We,2,1,"div",65),n._UZ(2,"div",30)(3,"div",30),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.posType))}}function et(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.entryLegend,"")}}function qe(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",o.cardLabel(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.cardLabel,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.transactionType),"")}}function at(d,V){if(1&d&&(n.TgZ(0,"div",66),n.YNc(1,et,2,1,"div",65),n.YNc(2,qe,2,1,"div",65),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.posType)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.posType)),n.xp6(3),n.Oqu(o.transMode(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.posEntryMode))}}function tt(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1,"**/**"),n.qZA())}function se(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.checkNumber,"")}}function xe(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.YNc(4,tt,2,0,"div",65),n.YNc(5,se,2,1,"div",65),n.qZA()),2&d){const o=n.oxw(3);n.xp6(2),n.Oqu(o.showMaskedCardNum(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.maskedPan)),n.xp6(2),n.Q6J("ngIf",(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)!=o.transactionDetail
1s.check),n.xp6(1),n.Q6J("ngIf",(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)==o.transactionDetails.check)}}function B(d,V){if(1&d&&(n.TgZ(0,"div",69)(1,"span"),n._uU(2," Tax Reported: "),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"currency"),n.ALo(6,"toAmount"),n.qZA()()),2&d){const o=n.oxw(4);n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,(null==o.receiptData?null:o.receiptData.txnDetails.localTaxAmount)+(null==o.receiptData?null:o.receiptData.txnDetails.stateTaxAmount)||(null==o.receiptData?null:o.receiptData.txnDetails.commercialTaxAmount)))," ")}}function $(d,V){1&d&&(n.TgZ(0,"div",70),n._uU(1," L2L3 not processed "),n.qZA())}function be(d,V){if(1&d&&(n.TgZ(0,"div"),n.YNc(1,B,7,5,"div",67),n.YNc(2,$,2,0,"ng-template",null,68,n.W1O),n.qZA()),2&d){const o=n.MAs(3),q=n.oxw(3);n.xp6(1),n.Q6J("ngIf","E"!=(null==q.receiptData?null:q.receiptData.txnDetails.L2L3uploadflag))("ngIfElse",o)}}function Ze(d,V){if(1&d&&(n.TgZ(0,"div",71)(1,"p",64),n._uU(2),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.Oqu(o.txHandle(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.txName))}}function O(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"number"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.trace")," #:"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.get(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.invoiceNumber,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.voidFlag)))}}function ce(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.benefit"),":"),n.xp6(4),n.Oqu(o.ebt_type(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.transactionType,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.processingCode))}}function C(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.sourceType,":"),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.transactionType)}}function M(d,V){if(1&d&&(n.TgZ(0,"div",72)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.oldAcct"),":"),n.xp6(4),n.Oqu(o.showMaskedCardNum(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.cardHolderName))}}function j(d,V){if(1&d&&(n.TgZ(0,"div",73)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.Q6J("ngClass","TRANSFER"!=(null==o.receiptData?null:o.receiptData.txnDetails.txName)?"mar_top_acct":""),n.xp6(2),n.hij("",n.lcZ(3,3,"TRANSFER"==(null==o.receiptData?null:o.receiptData.txnDetails.txName)?"htmlText.newAcct":"htmlText.acct"),":"),n.xp6(4),n.Oqu(o.showMaskedCardNum(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.maskedPan))}}function X(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",5),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",5),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.hij("",n.lcZ(3,4,"htmlText.type"),":"),n.xp6(3),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.Oqu(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)}}function fe(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",5),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",5),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.hij("",n.lcZ(3,4,"htmlText.entry"),":"),n.xp6(3),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.Oqu(o.transMode(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.posEntryMode))}}function E(d,V){1&d&&(n.TgZ(0,"div",29)(1,"div",62),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",62),n.TgZ(5,"div",62),n._uU(6,"****"),n.qZA()()),2&d&&(n.xp6(2),n.hij("",n.lcZ(3,1,"htmlText.rout
1ing")," #:"))}function K(d,V){1&d&&(n.TgZ(0,"div",29)(1,"div",62),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",62),n.TgZ(5,"div",62),n._uU(6,"****"),n.qZA()()),2&d&&(n.xp6(2),n.hij("",n.lcZ(3,1,"htmlText.account")," #:"))}function te(d,V){1&d&&(n.TgZ(0,"div",29)(1,"div",62),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",62)(5,"div",62),n.qZA()),2&d&&(n.xp6(2),n.hij("",n.lcZ(3,1,"htmlText.check")," #:"))}function Le(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.service"),":"),n.xp6(4),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.txName)}}function Z(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.points"),":"),n.xp6(4),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.totalAmount)}}function pe(d,V){if(1&d&&(n.TgZ(0,"div",78)(1,"div",79)(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"toAmount"),n.qZA()(),n.TgZ(7,"span"),n._uU(8),n.ALo(9,"toDollars"),n.qZA()()),2&d){const o=V.$implicit;n.xp6(3),n.hij(" ",o.productName," "),n.xp6(2),n.AsE(" ",o.quantity," X ",n.xi3(6,4,o.unitCost,!1)," "),n.xp6(3),n.hij(" ",n.lcZ(9,7,o.totalBaseAmountWithoutDiscount)," ")}}function k(d,V){if(1&d&&(n.TgZ(0,"section",75),n._UZ(1,"hr",76),n.YNc(2,pe,10,9,"div",77),n.qZA()),2&d){const o=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",o.lineItemsArray)}}function Fe(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"toDollars"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.Oqu(n.lcZ(3,2,"Shipping Fee")),n.xp6(4),n.Oqu(n.lcZ(7,4,o.itemizedDetails.shippingFee))}}function Qe(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"toDollars"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.Oqu(n.lcZ(3,2,o.baseAmtLabel)),n.xp6(4),n.hij("",n.lcZ(7,4,"10"==(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.hostResponseCode)||"002"==(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.hostResponseCode)?null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.approvedAmount:(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.txAmount)+(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.TxAmountFee)+o.itemizedDetails.totalDiscount)," ")}}
1function nt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(4);n.xp6(2),n.hij("",n.lcZ(3,2,o.baseAmtLabel),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(o.sumAmount("I"==(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.preauthFlag)?null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.totalAmount:null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.txAmount,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.TxAmountFee))))}}function gt(d,V){if(1&d&&n.YNc(0,nt,8,6,"div",39),2&d){const o=n.oxw(3);n.Q6J("ngIf",o.showBaseAmountDetails(null==o.receiptData?null:o.receiptData.txnDetails))}}function _t(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",o.defaultName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.customFeeLabel),":")}}function he(d,V){if(1&d&&(n.TgZ(0,"div",81),n._uU(1),n.ALo(2,"slice"),n.qZA()),2&d){const o=n.oxw(4);n.s9C("ngbPopover",o.defaultName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.customFeeLabel)),n.xp6(1),n.hij(" ",n.Dn7(2,2,o.defaultName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.customFeeLabel),0,17),"...:")}}function je(d,V){if(1&d&&(n.TgZ(0,"div",74),n.YNc(1,_t,2,1,"div",65),n.YNc(2,he,3,6,"div",80),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customFeeLabel?null:o.receiptData.signatureDetails.customFeeLabel.length)<20),n.xp6(1),n.Q6J("ngIf",(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customFeeLabel?null:o.receiptData.signatureDetails.customFeeLabel.length)>=20),n.xp6(3),n.Oqu(n.lcZ(6,3,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.customFee)))}}function Dt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.customFeeLabel),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.serviceFee)))}}function Et(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(4);n.xp6(2),n.hij("",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.cashMessageLabel,":"),n.xp6(3),n.Oqu(n.lcZ(6,2,0))}}function wt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(4);n.xp6(2),n.hij("",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.creditMessageLabel,":"),n.xp6(3),n.Oqu(n.lcZ(6,2,0))}}function pt(d,V){if(1&d&&(n.TgZ(0,"div"),n.YNc(1,Et,7,4,"div",39),n.YNc(2,wt,7,4,"div",39),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.cashMessageLabel),n.xp6(1),n.Q6J("ngIf",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.creditMessageLabel)}}function $t(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultSCH(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.merchantFeeLabel),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.surcharge)))}}function St(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultMFL(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.merchantFeeLabel),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.merchantFee)))}}function yt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultMFL(null==o.receiptData||null==o.receiptData.feeDetails?null:o.receiptData.feeDetails.RP_DL),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.TxAmountFee)))}}
1function Zt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultLTL(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.localTaxLabel),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(o.sumAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.localTaxAmount,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.LTaxFee))))}}function Ft(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultSTL(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.stateTaxLabel),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(o.sumAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.stateTaxAmount,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.GTaxFee))))}}function Jt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.defaultRTL(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.reducedTaxLabel),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(o.sumAmount(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.reducedTax,null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.reducedTaxFee))))}}function bt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.disc"),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.DiscountFee,!0)))}}function Ut(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.disc"),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.DiscountFee,!0)))}}function kt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.tipAmt"),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(o.sumTip(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.tipAmount,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.tipAdjAmount,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.TipAmountFee))))}}function Yt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",o.errorHandle(o.cashDis(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.discLabel)),":"),n.xp6(3),n.Oqu(n.lcZ(6,2,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.cashDiscount)))}}function Qt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2,"Discount "),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.ALo(6,"toDollars"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(5),n.hij(" (",n.lcZ(6,1,o.itemizedDetails.totalDiscount),")")}}function zt(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"toDollars"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"Total"),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.itemizedDetail
1s.totalAmount))}}function Wt(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&d){const o=n.oxw(6);n.xp6(1),n.Oqu(n.lcZ(2,1,o.totalPaidLabel))}}function Ht(d,V){1&d&&(n.TgZ(0,"span"),n._uU(1,"USD"),n.qZA())}function Gt(d,V){if(1&d&&(n.TgZ(0,"div",74),n.YNc(1,Wt,3,3,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n.YNc(4,Ht,2,0,"span",1),n._uU(5),n.ALo(6,"currency"),n.qZA()()),2&d){const o=n.oxw(5);n.xp6(1),n.Q6J("ngIf","BALANCE INQUIRY"!=(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.txName)),n.xp6(3),n.Q6J("ngIf","TapOnPhone"==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.posType)),n.xp6(1),n.hij(" ",n.lcZ(6,3,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.totalAmount)),"")}}function Xt(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,Gt,7,5,"div",39),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Q6J("ngIf",((null==o.receiptData?null:o.receiptData.txnDetails.totalAmount)!=(null==o.receiptData?null:o.receiptData.txnDetails.txAmount)||o.isFeeOrTaxEnabledShowTotalAmount(null==o.receiptData?null:o.receiptData.txnDetails))&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&o.getFeeDetails(null==o.receiptData?null:o.receiptData.feeDetails,null==o.receiptData?null:o.receiptData.txnDetails)&&!("PREAUTH"==(null==o.receiptData?null:o.receiptData.txnDetails.txName)&&"Y"==(null==o.receiptData?null:o.receiptData.txnDetails.voidFlag)))}}function en(d,V){if(1&d&&(n.TgZ(0,"div",74)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30)(6,"span"),n._uU(7,"USD"),n.qZA(),n._uU(8),n.ALo(9,"currency"),n.qZA()()),2&d){const o=n.oxw(5);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.total"),":"),n.xp6(6),n.hij(" ",n.lcZ(9,4,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.totalAmount))," ")}}function tn(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,en,10,6,"div",39),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Q6J("ngIf","LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&o.getFeeDetails(null==o.receiptData?null:o.receiptData.feeDetails,null==o.receiptData?null:o.receiptData.txnDetails)&&!("PREAUTH"==(null==o.receiptData?null:o.receiptData.txnDetails.txName)&&"Y"==(null==o.receiptData?null:o.receiptData.txnDetails.voidFlag)))}}function nn(d,V){if(1&d&&(n.YNc(0,Xt,2,1,"span",1),n.YNc(1,tn,2,1,"span",1)),2&d){const o=n.oxw(3);n.Q6J("ngIf","TapOnPhone"!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.posType)&&"BALANCE INQUIRY"!=(null==o.receiptData?null:o.receiptData.txnDetails.txName)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.posType)&&"BALANCE INQUIRY"!=(null==o.receiptData?null:o.receiptData.txnDetails.txName))}}function an(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.hostResponseCode)}}
1function jt(d,V){if(1&d&&(n.TgZ(0,"div",82)(1,"div",5),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",5),n._uU(5),n.qZA(),n.YNc(6,an,2,1,"div",65),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.hij("",n.lcZ(3,5,"htmlText.resp"),":"),n.xp6(2),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.Oqu(o.isApproval(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.hostResponseCode)),n.xp6(1),n.Q6J("ngIf",o.isNotCheckTrans)}}function on(d,V){if(1&d&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Oqu(o.errorHandle(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.approvalCode))}}function Rt(d,V){if(1&d&&(n.TgZ(0,"div",62),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Oqu(o.isApproval(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.approvalCode))}}function At(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"div",5),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.YNc(5,on,2,1,"div",65),n.YNc(6,Rt,2,1,"div",84),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngClass",o.isCheckTrans?"checkDetail":"detail"),n.xp6(1),n.hij("",n.lcZ(3,4,"htmlText.code"),":"),n.xp6(3),n.Q6J("ngIf",o.isNotCheckTrans),n.xp6(1),n.Q6J("ngIf",o.isCheckTrans)}}function rn(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.ref")," #:"),n.xp6(4),n.Oqu(o.errorHandle(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.rrn))}}function ln(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&d&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"htmlText.offlineRef")," #:"))}function sn(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,ln,3,3,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",""!=(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.SnfNumber)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.SnfNumber)}}function qt(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"Fiscal Ctrl")," #:"),n.xp6(4),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.controlNumber)}}function cn(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",85),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",86),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.discountApplied"),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(o.discount)))}}function dn(d,V){if(1&d&&(n.TgZ(0,"div",87),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",o.message1," ")}}function Bt(d,V){if(1&d&&(n.TgZ(0,"div",87),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",o.message2," ")}}function pn(d,V){if(1&d&&(n.TgZ(0,"div",87),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",o.message3," ")}}function un(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"p"),n._uU(2),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.processedBy)}}function mn(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.balance"),":"),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.totalAmount)))}}function Kt(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1," TransId:"),n.qZA())}function gn(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,Kt,2,0,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.TxId)&&""!=(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.TxId)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.TxId)}}function hn(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.balance")," "),n.xp6(4),n.hij("",n.lcZ(7,4,o.transAmount(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.giftBalAmt))," ")}}function _n(d,V){if(1&d&&(n.TgZ(0,"div",83)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.foodBalance")," "),n.xp6(4),n.hij("",n.lcZ(7,4,o.transAmount(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.giftBalAmt))," ")}}function fn(d,V){if(1&d&&(n.TgZ(0,"div",88)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.cashBalance")," "),n.xp6(4),n.Oqu(n.lcZ(7,4,o.transAmount(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.ebtCashBalance)))}}function vn(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1,"App Name:"),n.qZA())}function xn(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,vn,2,0,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.appName)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.appName)}}function Cn(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1,"AID:"),n.qZA())}function Tn(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,Cn,2,0,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.aid)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.aid)}}function bn(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1,"TVR:"),n.qZA())}function Dn(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,bn,2,0,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.tvr)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.tvr)}}
1function yn(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1,"TSI:"),n.qZA())}function An(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,yn,2,0,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.tsi)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.tsi)}}function P(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1,"TC:"),n.qZA())}function re(d,V){if(1&d&&(n.TgZ(0,"div",83),n.YNc(1,P,2,0,"div",65),n._UZ(2,"div",30),n.TgZ(3,"div",30),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",""!=o.getEmv(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.emvTags)),n.xp6(3),n.Oqu(o.getEmv(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.emvTags))}}function x(d,V){if(1&d&&(n.TgZ(0,"div",89)(1,"div",30),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"div",30),n.TgZ(5,"div",30),n._uU(6),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.hij("",n.lcZ(3,2,"htmlText.type"),":"),n.xp6(4),n.Oqu(null!=o.receiptData&&null!=o.receiptData.signatureDetails&&null!=o.receiptData.signatureDetails.customField&&o.receiptData.signatureDetails.customField.PaymentSettlingVendor?null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingVendor:"Fortellis")}}function m(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1," I-Ref#:"),n.qZA())}function le(d,V){1&d&&(n.TgZ(0,"div",30),n._uU(1," Dominion#:"),n.qZA())}function Be(d,V){if(1&d&&(n.TgZ(0,"div",90),n.YNc(1,m,2,0,"div",65),n.YNc(2,le,2,0,"div",65),n._UZ(3,"div",30),n.TgZ(4,"div",30),n._uU(5),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingMessage)&&""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingMessage)&&"Dominion"!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingVendor)),n.xp6(1),n.Q6J("ngIf",(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingMessage)&&""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingMessage)&&"Dominion"==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingVendor)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.PaymentSettlingMessage)}}function Ge(d,V){if(1&d&&(n.TgZ(0,"div",73)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA()()),2&d){const o=V.$implicit,q=V.index,s=V.last,Ye=n.oxw(4);n.Q6J("ngClass",s?"mb-2":"mb-0"),n.xp6(2),n.hij("",o," :"),n.xp6(2),n.Oqu(null==Ye.receiptData||null==Ye.receiptData.signatureDetails?null:Ye.receiptData.signatureDetails.tagValue[q])}}function ht(d,V){if(1&d&&(n.ynx(0),n.YNc(1,Ge,5,3,"div",91),n.BQk()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.tagLabel)}}function ut(d,V){1&d&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&d&&(n.xp6(1),n.hij("",n.lcZ(2,1,"poNumber"),":"))}function mt(d,V){if(1&d&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.poNumberLabel,": ")}}function Mt(d,V){if(1&d&&(n.TgZ(0,"div",29),n.YNc(1,ut,3,3,"div",1),n.YNc(2,mt,2,1,"div",1),n._UZ(3,"div"),n.TgZ(4,"div"),n._uU(5),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",!(null!=o.receiptData&&null!=o.receiptData.signatureDetails&&null!=o.receiptData.signatureDetails.customField&&o.receiptData.signatureDetails.customField.poNumberLabel)||null==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.poNumberLabel)||""==(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.poNumberLabel)),n.xp6(1),n.Q6J("ngIf",(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.poNumberLabel)&&null!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.poNumberLabel)&&""!=(null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.poNumberLabel)),n.xp6(3),n.Oqu(null==o.receiptData||null==o.receiptData.txnDetails||null==o.receiptData.txnDetails.tsysRespData?null:o.receiptData.txnDetails.tsysRespData.PONumber)}}function lt(d,V){if(1&d&&(n.TgZ(0,"div",29)(1,"div",30),n._uU(2,"Rental Agr #\xa0\xa0:"),n.qZA(),n._UZ(3,"div",30),n.TgZ(4,"div",92),n._uU(5),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(5),n.Oqu(o.formatMerchantRentalAgreementRefForReceipt())}}function Pt(d,V){if(1&d&&(n.TgZ(0,"h6",56),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.verficationLine1,"")}}function st(d,V){if(1&d&&(n.TgZ(0,"h6",56),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.verificationLine2,"")}}function Ke(d,V){if(1&d&&(n.TgZ(0,"p",93),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij("",o.errorHandle(null==o.receiptData||null==o.receiptData.receiptDetails?null:o.receiptData.receiptDetails.DIS)," ")}}function Lt(d,V){if(1&d&&(n.TgZ(0,"h6",94),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.savingsMsgLabel,"")}}function Pn(d,V){if(1&d&&(n.TgZ(0,"p",96),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hij(" ",o.pinBlock(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.pinBlock),"")}}function In(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,Pn,2,1,"p",95),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",(0!=(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.pinBlock)||"XXXXXXXXXXXXXXXX"!=(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.pinBlock)||"NOCVM"!=(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.pinBlock))&&"CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)!=o.transactionDetail
1s.check)}}function Nt(d,V){if(1&d&&(n.TgZ(0,"div",58),n._UZ(1,"img",98),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hYB("src","",o.baseUrl,"/",null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.signImage,"",n.LSH)}}function xt(d,V){1&d&&(n.TgZ(0,"div",58),n._UZ(1,"img",99),n.qZA())}function En(d,V){1&d&&n._UZ(0,"hr",101)}function Sn(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,En,1,0,"hr",100),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType))}}function Bn(d,V){1&d&&(n.TgZ(0,"p",103),n._uU(1,"Signature"),n.qZA())}function Nn(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,Bn,2,0,"p",102),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType))}}function It(d,V){if(1&d&&(n.TgZ(0,"p",104),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Oqu(o.cardholderName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.chName))}}function wn(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,Nt,2,2,"div",26),n.YNc(2,xt,2,0,"div",26),n.YNc(3,Sn,2,1,"span",1),n.YNc(4,Nn,2,1,"span",1),n.YNc(5,It,2,1,"p",97),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",null!=o.receiptData.signatureDetails&&o.receiptData.signatureDetails.signImage),n.xp6(1),n.Q6J("ngIf",null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.signImage),n.xp6(1),n.Q6J("ngIf","0"==(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.pinBlock)),n.xp6(1),n.Q6J("ngIf","0"==(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.pinBlock)),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType))}}function Un(d,V){if(1&d&&(n.TgZ(0,"div",58),n._UZ(1,"img",98),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.hYB("src","",o.baseUrl,"/",null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.signImage,"",n.LSH)}}function Mn(d,V){1&d&&(n.TgZ(0,"div",58),n._UZ(1,"img",99),n.qZA())}function Vn(d,V){1&d&&n._UZ(0,"hr",101)}function $n(d,V){1&d&&(n.TgZ(0,"p",103),n._uU(1,"Signature"),n.qZA())}function Jn(d,V){if(1&d&&(n.TgZ(0,"p",104),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Oqu(o.cardholderName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.chName))}}function Yn(d,V){if(1&d&&(n.TgZ(0,"span"),n.YNc(1,Un,2,2,"div",26),n.YNc(2,Mn,2,0,"div",26),n.TgZ(3,"span"),n.YNc(4,Vn,1,0,"hr",100),n.qZA(),n.TgZ(5,"span"),n.YNc(6,$n,2,0,"p",105),n.qZA(),n.YNc(7,Jn,2,1,"p",97),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",null!=o.receiptData.signatureDetails&&o.receiptData.signatureDetails.signImage),n.xp6(1),n.Q6J("ngIf",null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.signImage),n.xp6(2),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)),n.xp6(2),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType))}}function Qn(d,V){if(1&d&&(n.TgZ(0,"p",110),n._uU(1),n.qZA()),2&d){const o=n.oxw(4);n.xp6(1),n.Oqu(o.cardholderName(null==o.receiptData||null==o.receiptData.signatureDetails?null:o.receiptData.signatureDetails.chName))}}function jn(d,V){if(1&d&&(n.TgZ(0,"span")(1,"span",106),n._uU(2),n.qZA(),n._UZ(3,"hr",107),n.TgZ(4,"span")(5,"p",108),n._uU(6,"E-Signature"),n.qZA()(),n.YNc(7,Qn,2,1,"p",109),n.qZA()),2&d){const o=n.oxw(3);n.xp6(2),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField||null==o.receiptData.signatureDetails.customField.signature?null:o.receiptData.signatureDetails.customField.signature.eSignature,""),n.xp6(5),n.Q6J("ngIf","CASH"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==o.receiptData?null:o.receiptData.txnDetails.transactionType))}}function qn(d,V){if(1&d&&(n.TgZ(0,"h6",56),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.refundPolicy1,"")}}function Kn(d,V){if(1&d&&(n.TgZ(0,"h6",56),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.refundPolicy2,"")}}function zn(d,V){if(1&d&&(n.TgZ(0,"h6",111),n._uU(1),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.hij(" ",null==o.receiptData||null==o.receiptData.signatureDetails||null==o.receiptData.signatureDetails.customField?null:o.receiptData.signatureDetails.customField.savingsMsgLabel,"")}}function Wn(d,V){if(1&d&&(n.TgZ(0,"div")(1,"h6",112),n._uU(2),n.qZA(),n.TgZ(3,"h6",112),n._uU(4),n.qZA()()),2&d){const o=n.oxw(3);n.xp6(2),n.Oqu(o.errorHandleF(null==o.receiptData||null==o.receiptData.receiptDetails?null:o.receiptData.receiptDetails.f1)),n.xp6(2),n.Oqu(o.errorHandleF(null==o.receiptData||null==o.receiptData.receiptDetails?null:o.receiptData.receiptDetails.f2))}}const Ln=function(){return["CASH","CREDIT","DEBIT"]},Hn=function(){return["CASH","WALLET","EBT"]};function Gn(d,V){if(1&d&&(n.TgZ(0,"section"),n.YNc(1,$e,2,1,"div",26),n.TgZ(2,"div",27)(3,"p",28),n._uU(4),n.qZA(),n.TgZ(5,"p",28),n._uU(6),n.qZA(),n.TgZ(7,"p",28),n._uU(8),n.qZA(),n.TgZ(9,"p",28),n._uU(10),n.qZA(),n.TgZ(11,"p",28),n._uU(12),n.qZA(),n.TgZ(13,"p",28),n._uU(14),n.qZA(),n._UZ(15,"p",28)(16,"p",28),n.qZA(),n.TgZ(17,"div",29)(18,"div",30),n._uU(19),n.ALo(20,"momentDate"),n.qZA(),n._UZ(21,"div",30),n.TgZ(22,"div",30),n._uU(23),n.qZA()(),n.YNc(24,ke,2,1,"div",31),n.YNc(25,Re,6,4,"div",32),n.YNc(26,F,8,8,"div",33),n.YNc(27,Q,4,4,"div",34),n.YNc(28,ae,4,3,"div",34),n.YNc(29,H,7,4,"div",33),n.YNc(30,Je,7,6,"div",33),n.YNc(31,He,4,1,"div",35),n.YNc(32,at,6,3,"div",35),n.YNc(33,xe,6,3,"div",33),n.YNc(34,be,4,2,"div",1),n.YNc(35,Ze,3,1,"div",36),n.YNc(36,O,8,6,"div",33),n.YNc(37,ce,7,4,"div",33),n.YNc(38,C,6,2,"div",33),n.YNc(39,M,7,4,"div",37),n.YNc(40,j,7,5,"div",38),n.YNc(41,X,7,6,"div",33),n.YNc(42,fe,7,6,"div",33),n.YNc(43,E,7,3,"div",33),n.YNc(44,K,7,3,"div",33),n.YNc(45,te,6,3,"div",33),n.YNc(46,Le,7,4,"div",33),n.YNc(47,Z,7,4,"div",39),n.YNc(48,k,3,1,"section",40),n.YNc(49,Fe,8,6,"div",41),n.YNc(50,Qe,8,6,"div",42),n.YNc(51,gt,1,1,"ng-template",null,43,n.W1O),n.YNc(53,je,7,5,"div",39),n.YNc(54,Dt,7,4,"div",39),n.YNc(55,pt,3,2,"div",1),n.YNc(56,$t,7,4,"div",39),n.YNc(57,St,7,4,"div",39),n.YNc(58,yt,7,4,"div",39),n.YNc(59,Zt,7,4,"div",39),n.YNc(60,Ft,7,4,"div",39),n.YNc(61,Jt,7,4,"div",39),n.YNc(62,bt,8,6,"div",39),n.YNc(63,Ut,8,6,"div",39),n.YNc(64,kt,8,6,"div",39),n.YNc(65,Yt,7,4,"div",39),n.YNc(66,Qt,7,3,"div",41),n.YNc(67,zt,8,6,"div",42),n.YNc(68,nn,2,2,"ng-template",null,44,n.W1O),n.YNc(70,jt,7,7,"div",45),n.YNc(71,At,7,6,"div",46),n.YNc(72,rn,7,4,"div",46),n.YNc(73,sn,5,2,"div",46),n.YNc(74,qt,7,4,"div",46),n.YNc(75,cn,8,6,"div",33),n.TgZ(76,"div",47),n.YNc(77,dn,2,1,"div",48),n.YNc(78,Bt,2,1,"div",48),n.YNc(79,pn,2,1,"div",48),n.qZA(),n.YNc(80,un,3,1,"div",46),n.YNc(81,mn,8,6,"div",46),n.YNc(82,gn,5,2,"div",46),n.YNc(83,hn,8,6,"div",46),n.YNc(84,_n,8,6,"div",46),n.YNc(85,fn,8,6,"div",49),n.YNc(86,xn,5,2,"div",46),n.YNc(87,Tn,5,2,"div",46),n.YNc(88,Dn,5,2,"div",46),n.YNc(89,An,5,2,"div",46),n.YNc(90,re,5,2,"div",46),n.YNc(91,x,7,4,"div",50),n.YNc(92,Be,6,3,"div",51),n.YNc(93,ht,2,1,"ng-container",1),n.YNc(94,Mt,6,3,"div",33),n.YNc(95,lt,6,1,"div",33),n.YNc(96,Pt,2,1,"h6",52),n.YNc(97,st,2,1,"h6",52),n.YNc(98,Ke,2,1,"p",53),n.YNc(99,Lt,2,1,"h6",54),n.YNc(100,In,2,1,"span",1),n.YNc(101,wn,6,5,"span",1),n.YNc(102,Yn,8,5,"span",1),n.YNc(103,jn,8,2,"span",1),n.YNc(104,qn,2,1,"h6",52),n.YNc(105,Kn,2,1,"h6",52),n.YNc(106,zn,2,1,"h6",55),n.TgZ(107,"h6",56),n._uU(108),n.qZA(),n.YNc(109,Wn,5,2,"div",1),n._UZ(110,"hr",57),n.qZA()),2&d){const o=n.MAs(52),q=n.MAs(69),s=n.oxw(2);n.xp6(1),n.Q6J("ngIf",s.logo),n.xp6(3),n.Oqu(null==s.receiptData||null==s.receiptData.receiptDetails?null:s.receiptData.receiptDetails.h1),n.xp6(2),n.Oqu(null==s.receiptData||null==s.receiptData.receiptDetails?null:s.receiptData.receiptDetails.h2),n.xp6(2),n.Oqu(null==s.receiptData||null==s.receiptData.receiptDetails?null:s.receiptData.receiptDetails.h3),n.xp6(2),n.Oqu(null==s.receiptData||null==s.receiptData.receiptDetails?null:s.receiptData.receiptDetails.h4),n.xp6(2),n.Oqu(null==s.receiptData||null==s.receiptData.receiptDetails?null:s.receiptData.receiptDetails.h5),n.xp6(2),n.Oqu(null==s.receiptData||null==s.receiptData.receiptDetails?null:s.receiptData.receiptDetails.h6),n.xp6(5),n.Oqu(s.errorHandle(n.lcZ(20,91,null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.posRequestDate))),n.xp6(4),n.Oqu(s.errorHandle(s.timeSub(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.posRequestTime))),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField||null==s.receiptData.signatureDetails.customField.signature?null:s.receiptData.signatureDetails.customField.signature.ipAddress),n.xp6(1),n.Q6J("ngIf","Merchant Copy"==s.receiptType),n.xp6(1),n.Q6J("ngIf",s.isCheckTrans),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&s.isNotCheckTrans),n.xp6(1),n.Q6J("ngIf",s.isCheckTrans),n.xp6(1),n.Q6J("ngIf","CASH"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&s.isNotCheckTrans),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&s.isNotCheckTrans),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"GIFT"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"LOYALTY"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&s.isNotCheckTrans),n.xp6(1),n.Q6J("ngIf",(null==s.receiptData?null:s.receiptData.txnDetails.L2L3uploadflag)&&1==(null==s.receiptData||null==s.receiptData.valAdd?null:s.receiptData.valAdd.LEVEL_TAX_PRINT)&&1==(null==s.receiptData||null==s.receiptData.valAdd?null:s.receiptData.valAdd.L2_L3_DATA)&&"Merchant Copy"==s.receiptType),n.xp6(1),n.Q6J("ngIf","CASH"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"GIFT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","EBT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","EBT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","WALLET"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf",("GIFT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType))&&"TRANSFER"==(null==s.receiptData?null:s.receiptData.txnDetails.txName)),n.xp6(1),n.Q6J("ngIf","GIFT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","GIFT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||s.isCheckTrans),n.xp6(1),n.Q6J("ngIf","GIFT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||s.isCheckTrans),n.xp6(1),n.Q6J("ngIf",s.isCheckTrans),n.xp6(1),n.Q6J("ngIf",s.isCheckTrans),n.xp6(1),n.Q6J("ngIf",s.isCheckTrans),n.xp6(1),n.Q6J("ngIf","GIFT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","LOYALTY"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf",s.isInvoice),n.xp6(1),n.Q6J("ngIf",s.itemizedDetail
1s.shippingFee),n.xp6(1),n.Q6J("ngIf",s.itemizedDetails.totalBaseAmount)("ngIfElse",o),n.xp6(3),n.Q6J("ngIf",0!=(null==s.receiptData?null:s.receiptData.txnDetails.customFee)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.customFee)),n.xp6(1),n.Q6J("ngIf",0!=(null==s.receiptData?null:s.receiptData.txnDetails.serviceFee)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.serviceFee)),n.xp6(1),n.Q6J("ngIf",!(n.DdM(93,Ln).indexOf(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.transactionType)<0)),n.xp6(1),n.Q6J("ngIf",0!=(null==s.receiptData?null:s.receiptData.txnDetails.surcharge)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.surcharge)&&!("PREAUTH"==(null==s.receiptData?null:s.receiptData.txnDetails.txName)&&"Y"==(null==s.receiptData?null:s.receiptData.txnDetails.voidFlag))),n.xp6(1),n.Q6J("ngIf",0!=(null==s.receiptData?null:s.receiptData.txnDetails.merchantFee)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.merchantFee)),n.xp6(1),n.Q6J("ngIf",5==(null==s.receiptData||null==s.receiptData.feeDetails?null:s.receiptData.feeDetails.F_TYP)&&0!=(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.TxAmountFee)&&null!=(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.TxAmountFee)&&!("PREAUTH"==(null==s.receiptData?null:s.receiptData.txnDetails.txName)&&"Y"==(null==s.receiptData?null:s.receiptData.txnDetails.voidFlag))),n.xp6(1),n.Q6J("ngIf",s.isShowTax(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.localTaxAmount,null==s.receiptData||null==s.receiptData.emvDetails?null:s.receiptData.emvDetails.HACIENDA_ENABLED,null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.txName)&&!("PREAUTH"==(null==s.receiptData?null:s.receiptData.txnDetails.txName)&&"Y"==(null==s.receiptData?null:s.receiptData.txnDetails.voidFlag))),n.xp6(1),n.Q6J("ngIf",s.isShowTax(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.stateTaxAmount,null==s.receiptData||null==s.receiptData.emvDetails?null:s.receiptData.emvDetails.HACIENDA_ENABLED,null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.txName)&&!("PREAUTH"==(null==s.receiptData?null:s.receiptData.txnDetails.txName)&&"Y"==(null==s.receiptData?null:s.receiptData.txnDetails.voidFlag))),n.xp6(1),n.Q6J("ngIf",s.isShowTax(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.reducedTax,null==s.receiptData||null==s.receiptData.emvDetails?null:s.receiptData.emvDetails.HACIENDA_ENABLED,null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.txName)),n.xp6(1),n.Q6J("ngIf",("CREDIT"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"DEBIT"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType))&&0!=(null==s.receiptData?null:s.receiptData.txnDetails.DiscountFee)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.DiscountFee)&&!s.itemizedDetails.totalDiscount),n.xp6(1),n.Q6J("ngIf",("CREDIT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)||"DEBIT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType))&&(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.serviceFee)>0&&!s.itemizedDetails.totalDiscount),n.xp6(1),n.Q6J("ngIf",0!=(null==s.receiptData?null:s.receiptData.txnDetails.tipAmount)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.tipAmount)||0!=(null==s.receiptData?null:s.receiptData.txnDetails.tipAdjAmount)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.tipAdjAmount)),n.xp6(1),n.Q6J("ngIf",0!=(null==s.receiptData?null:s.receiptData.txnDetails.cashDiscount)&&null!=(null==s.receiptData?null:s.receiptData.txnDetails.cashDiscount)),n.xp6(1),n.Q6J("ngIf",s.itemizedDetails.totalDiscount),n.xp6(1),n.Q6J("ngIf",!1)("ngIfElse",q),n.xp6(3),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)!=s.transactionDetail
1s.check),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.SnfNumber),n.xp6(1),n.Q6J("ngIf",(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.controlNumber)&&""!=(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.controlNumber)&&null!=(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.controlNumber)),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField||null==s.receiptData.signatureDetails.customField.loyalty?null:s.receiptData.signatureDetails.customField.loyalty.discountApplied),n.xp6(2),n.Q6J("ngIf",null!=s.message1&&""!=s.message1),n.xp6(1),n.Q6J("ngIf",null!=s.message2&&""!=s.message2),n.xp6(1),n.Q6J("ngIf",null!=s.message3&&""!=s.message3),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.processedBy),n.xp6(1),n.Q6J("ngIf","BALANCE INQUIRY"==(null==s.receiptData?null:s.receiptData.txnDetails.txName)),n.xp6(1),n.Q6J("ngIf","SALE"===(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.txName)&&"N"==(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.voidFlag)||"PREAUTH"===(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.txName)||"REFUND"===(null==s.receiptData||null==s.receiptData.txnDetails?null:s.receiptData.txnDetails.txName)),n.xp6(1),n.Q6J("ngIf",n.DdM(94,Hn).indexOf(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)<0&&(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.giftBalAmt)),n.xp6(1),n.Q6J("ngIf","EBT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.giftBalAmt)),n.xp6(1),n.Q6J("ngIf","EBT"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.ebtCashBalance)),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.appName),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.aid),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.tvr),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.tsi),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.PaymentSettlingMessage),n.xp6(1),n.Q6J("ngIf",null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.PaymentSettlingMessage),n.xp6(1),n.Q6J("ngIf",(null==s.receiptData||null==s.receiptData.signatureDetails?null:s.receiptData.signatureDetails.tagLabel)&&(null==s.receiptData||null==s.receiptData.signatureDetails?null:s.receiptData.signatureDetails.tagValue)),n.xp6(1),n.Q6J("ngIf",(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.PONumber)&&""!=(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.PONumber)&&null!=(null==s.receiptData||null==s.receiptData.txnDetails||null==s.receiptData.txnDetails.tsysRespData?null:s.receiptData.txnDetails.tsysRespData.PONumber)&&"Merchant Copy"==s.receiptType),n.xp6(1),n.Q6J("ngIf",s.showMerchantRentalAgreementLine()),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)&&""!=(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.verficationLine1)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)&&""!=(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.verificationLine2)),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&"WALLET"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&s.isNotCheckTrans),n.xp6(1),n.Q6J("ngIf","CASH"!=(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.savingsMsgLabel)&&"Merchant Copy"!=s.receiptType),n.xp6(1),n.Q6J("ngIf","TapOnPhone"!=(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"!=(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)&&!(null!=s.receiptData&&null!=s.receiptData.signatureDetails&&null!=s.receiptData.signatureDetails.customField&&s.receiptData.signatureDetails.customField.signature)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)&&""==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.verficationLine1)&&""==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.verificationLine2)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"!=(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)&&(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField||null==s.receiptData.signatureDetails.customField.signature?null:s.receiptData.signatureDetails.customField.signature.eSignature)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)),n.xp6(1),n.Q6J("ngIf","TapOnPhone"==(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.posType)),n.xp6(1),n.Q6J("ngIf","CASH"==(null==s.receiptData?null:s.receiptData.txnDetails.transactionType)&&(null==s.receiptData||null==s.receiptData.signatureDetails||null==s.receiptData.signatureDetails.customField?null:s.receiptData.signatureDetails.customField.savingsMsgLabel)&&"Merchant Copy"!=s.receiptType),n.xp6(2),n.Oqu(s.receiptType?s.receiptType:s.types.CC),n.xp6(1),n.Q6J("ngIf","Merchant Copy"!=s.receiptType)}}function Xn(d,V){if(1&d&&(n.TgZ(0,"div",58),n._UZ(1,"img",59),n.qZA()),2&d){const o=n.oxw(3);n.xp6(1),n.Q6J("src",o.logo,n.LSH)}}function ei(d,V){if(1&d&&(n.ynx(0),n.TgZ(1,"p",123),n._uU(2),n.qZA(),n.BQk()),2&d){const o=V.$implicit;n.xp6(2),n.lnq("#",o.id," / $",o.cashPrice," / $",o.cardPrice,"")}}function Zn(d,V){if(1&d&&(n.TgZ(0,"div")(1,"div",119),n.YNc(2,ei,3,3,"ng-container",120),n.qZA(),n.TgZ(3,"div",121)(4,"p",28),n._uU(5),n.qZA()(),n.TgZ(6,"div",122)(7,"p",28),n._uU(8),n.qZA()()()),2&d){const o=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",o.itemDetails.itemList),n.xp6(3),n.lnq("",null==o.itemDetails?null:o.itemDetails.count," / $",null==o.itemDetails?null:o.itemDetails.cashTotal," / $",null==o.itemDetails?null:o.itemDetails.cardTotal,""),n.xp6(3),n.hij("Cash Discount : $",null!=o.itemDetails&&o.itemDetails.cashDiscount?null==o.itemDetails?null:o.itemDetails.cashDiscount:"0.00","")}}function ti(d,V){if(1&d&&(n.TgZ(0,"section"),n.YNc(1,Xn,2,1,"div",26),n.TgZ(2,"div",27)(3,"p",113),n._uU(4),n.qZA(),n._UZ(5,"p",28)(6,"p",28),n.qZA(),n.TgZ(7,"div",114)(8,"p",115),n._uU(9,"Items List"),n.qZA()(),n.TgZ(10,"div",116)(11,"div",30),n._uU(12),n.ALo(13,"momentDate"),n.qZA(),n._UZ(14,"div",30),n.TgZ(15,"div",30),n._uU(16),n.qZA()(),n.TgZ(17,"div",117)(18,"p",118),n._uU(19,"Item / Cash Price / Card Price"),n.qZA(),n.TgZ(20,"span",28),n._uU(21,"*****************************"),n.qZA()(),n.YNc(22,Zn,9,5,"div",1),n.qZA()),2&d){const o=n.oxw(2);n.xp6(1),n.Q6J("ngIf",o.logo),n.xp6(3),n.Oqu(o.errorHandle(null==o.receiptData||null==o.receiptData.receiptDetails?null:o.receiptData.receiptDetails.h1)),n.xp6(8),n.Oqu(o.errorHandle(n.lcZ(13,5,null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.posRequestDate))),n.xp6(4),n.Oqu(o.errorHandle(o.timeSub(null==o.receiptData||null==o.receiptData.txnDetails?null:o.receiptData.txnDetails.posRequestTime))),n.xp6(6),n.Q6J("ngIf",(null==o.itemDetails||null==o.itemDetails.itemList?null:o.itemDetails.itemList.length)>0)}}function ni(d,V){if(1&d&&(n.TgZ(0,"section",124,125)(2,"a",126)(3,"p",127)(4,"strong"),n._uU(5),n.qZA()(),n.TgZ(6,"picture",128),n._UZ(7,"img",129),n.qZA(),n.TgZ(8,"p",130),n._uU(9),n.qZA()()()),2&d){const o=n.oxw(2);n.xp6(2),n.Q6J("href",o.promotion.promotionalUrl,n.LSH),n.xp6(3),n.hij(" ",o.promotion.title," "),n.xp6(2),n.Q6J("src",o.promotion.promotionImageUrl,n.LSH),n.xp6(2),n.hij(" ",o.promotion.message," ")}}const Fn=function(d,V){return{customer:d,customerLink:V}};function ii(d,V){if(1&d){const o=n.EpF();n.TgZ(0,"div",4)(1,"div",5)(2,"div")(3,"div",6)(4,"div",7),n.YNc(5,Ue,13,0,"div",8),n.TgZ(6,"button",9),n.NdJ("
1click",function(){n.CHM(o);const s=n.oxw();return n.KtG(s.modal.close("by: close icon"))}),n.TgZ(7,"span",10),n._uU(8,"\xd7"),n.qZA()()(),n.TgZ(9,"div",11)(10,"div",12)(11,"button",13),n._uU(12," Actions"),n.qZA(),n.TgZ(13,"div",14)(14,"button",15),n.NdJ("click",function(){n.CHM(o);const s=n.oxw();return n.KtG(s.download("png"))}),n._UZ(15,"i",16),n._uU(16," PNG"),n.qZA(),n.TgZ(17,"button",17),n.NdJ("click",function(){n.CHM(o);const s=n.oxw();return n.KtG(s.printPage())}),n._UZ(18,"span",18),n._uU(19," Print/PDF "),n.qZA()()()(),n.TgZ(20,"div",19)(21,"div",20,21),n.YNc(23,Gn,111,95,"section",1),n.YNc(24,ti,23,7,"section",1),n.YNc(25,ni,10,4,"section",22),n.qZA()()()()()()}if(2&d){const o=n.oxw();n.xp6(1),n.Q6J("ngClass",n.WLB(7,Fn,o.isCustomer,!o.isCustomer)),n.xp6(4),n.Q6J("ngIf",!o.commonService.isMobileView),n.xp6(5),n.Q6J("ngClass",o.commonService.isMobileView?"mb-5 mr-5":""),n.xp6(11),n.Q6J("ngClass",o.isCustomer?"view-from-transaction":"view-standalone"),n.xp6(2),n.Q6J("ngIf",!o.isItemsList),n.xp6(1),n.Q6J("ngIf",o.isItemsList&&o.isValidItemDetails()),n.xp6(1),n.Q6J("ngIf",o.isShowPromotion&&"Merchant Copy"!=o.receiptType)}}function ai(d,V){1&d&&(n.TgZ(0,"div"),n._uU(1,"Email is required"),n.qZA())}function kn(d,V){1&d&&(n.TgZ(0,"div"),n._uU(1,"Email must be a valid email address"),n.qZA())}function oi(d,V){if(1&d&&(n.TgZ(0,"div",144),n.YNc(1,ai,2,0,"div",1),n.YNc(2,kn,2,0,"div",1),n.qZA()),2&d){const o=n.oxw(2);n.xp6(1),n.Q6J("ngIf",o.find.email.errors.required),n.xp6(1),n.Q6J("ngIf",o.find.email.errors.pattern)}}function ri(d,V){1&d&&n._UZ(0,"span",145)}const li=function(d){return{"is-invalid":d}};function si(d,V){if(1&d){const o=n.EpF();n.TgZ(0,"div",131)(1,"div",132)(2,"h5",133)(3,"span",134),n._uU(4,"Email To"),n.qZA()()()(),n.TgZ(5,"div",135)(6,"form",136)(7,"div",137),n._UZ(8,"input",138),n.YNc(9,oi,3,2,"div",139),n.qZA()()(),n.TgZ(10,"div",140)(11,"button",141),n.NdJ("click",function(){n.CHM(o);const s=n.oxw();return n.KtG(s.onSubmitForm())}),n.YNc(12,ri,1,0,"span",142),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"button",143),n.NdJ("click",function(){const Ye=n.CHM(o).$implicit;return n.KtG(Ye.close())}),n._uU(16),n.ALo(17,"translate"),n.qZA()()}if(2&d){const o=n.oxw();n.xp6(6),n.Q6J("formGroup",o.receiptsendform),n.xp6(2),n.Q6J("ngClass",n.VKq(11,li,o.isSubmitted&&o.find.email.errors)),n.xp6(1),n.Q6J("ngIf",o.isSubmitted&&o.find.email.errors),n.xp6(2),n.Q6J("disabled","INVALID"==o.find.email.status||o.isSubmitted),n.xp6(1),n.Q6J("ngIf",o.isLoadingSpinner),n.xp6(1),n.hij(" ",n.lcZ(14,7,"htmlText.submit"),""),n.xp6(3),n.Oqu(n.lcZ(17,9,"htmlText.cancel"))}}let Rn=(()=>{class d{constructor(o,q,s,Ye,ze,ct,ft,vt){var dt=this;this.modalService=o,this.commonService=q,this.transactionService=s,this.route=Ye,this.modal=ze,this.messageService=ct,this.formBuilder=ft,this.router=vt,this.alter="",this.isSubmitted=!1,this.baseUrl=T.N.apiUrl,this.invoiceVold="",this.logo=null,this.types={MC:"Merchant Copy",CC:"Customer Copy"},this.isLoading=!0,this.baseAmtLabel="htmlText.basAmt",this.totalPaidLabel="htmlText.total",this.isTrueCashDiscounting=!1,this.promotion={},this.isShowPromotion=!1,this.idType="id",this.isInvoice=!1,this.transactionDetails=e.i,this.message="",this.message1="",this.message2="",this.message3="",this.discount=0,this.isOpenUrl=!1,this.lineItemsArray=[],this.itemizedDetails={totalTax:0,totalDiscount:0,totalBaseAmount:0,totalAmount:0,shippingFee:0},this.route.queryParams.subscribe(function(){var u=(0,i.Z)(function*(Y){dt.alter=Y.alter,dt.idType=Y.idType?Y.idType:"id",Y.isItemsList&&(dt.isItemsList=!0),Y.invoiceId&&(dt.isInvoice=!0,yield dt.getInvoiceById(Y.invoiceId))});return function(Y){return u.apply(this,arguments)}}()),this.isOpenUrl=-1!==window.location.href.split("/").indexOf("cr")}closeModal(o){console.log("calling close",o)}ngOnInit(){this.route.paramMap.subscribe(o=>{this.receiptId=o.get("id")||this.id,this.receiptType=this.types[o.get("type")],this.getReceipt(this.receiptId)}),this.receiptsendform=this.formBuilder.group({email:["",[w.kI.required,w.kI.email,w.kI.pattern("^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,}$")]]})}isValidItemDetails(){return this.itemDetails instanceof Object&&this.itemDetails?.itemList instanceof Array}download(o){_()(this.screen.nativeElement,{scrollY:0,allowTaint:!0,useCORS:!0,logging:!0}).then(q=>{let s=document.createElement("a");
1(new Date).toLocaleString(),"png"==o?this.pngDownload(s,q.toDataURL("image/png"),`${this.receipt_Merchant}_Invoice-${this.receipt_invoice}_(${this.receipttxdta}).png`):this.pdfDownload(q.toDataURL("image/png"),`${this.receipt_Merchant}_Invoice-${this.receipt_invoice}_(${this.receipttxdta}).pdf`)})}pngDownload(o,q,s){o.href=q,o.download=s,o.webkitImageSmoothingEnabled=!1,o.mozImageSmoothingEnabled=!1,o.imageSmoothingEnabled=!1,o.click()}pdfDownload(o,q){const s=new g.kH("p","mm");s.addImage(o,"PNG",65,0,70,170),s.save(q)}getReceipt(o){console.log(this.alter);let q=this.isOpenUrl?b.D.receipt.viewReceiptNoAuth:"true"==this.alter.toString()?b.D.receipt.alternate:b.D.receipt.card;this.baseAmtLabel="true"==this.alter.toString()&&"CASH"==this.receiptData?.txnDetails?.txName?"htmlText.cashAmt":this.baseAmtLabel,console.log("\u{1f525} ~ getReceipt ~ serviceLink:",q),this.commonService.getCommonHttpClientQueryParams(`${q}/${this.receiptId}`,{idType:this.idType,alter:this.alter}).subscribe(s=>{this.receiptData=s.data;const Ye=this.receiptData.receiptDetails;["h1","h2","h3","h4","h5","h6"].forEach(dt=>{Ye[dt]=this.formatAddressLine(this.errorHandle(Ye[dt]))}),this.receipt_invoice=(0,v.get)(s,"data.txnDetails.invoiceNumber",""),this.receipt_Merchant=(0,v.get)(s,"data.receiptDetails.h1",""),this.receipttxdta=(0,v.get)(s,"data.txnDetails.txDate","");let ze=(0,v.get)(this.receiptData?.signatureDetails,"tagLabel","");ze=ze?ze.toString():"";let ct=(0,v.get)(this.receiptData?.signatureDetails,"tagValue","");ct=ct?ct.toString():"",!(0,v.isEmpty)(ze)&&!(0,v.isEmpty)(ct)&&(this.receiptData.signatureDetails.tagLabel=ze.split(","),this.receiptData.signatureDetails.tagValue=ct.split(",")),this.isItemsList&&(this.itemDetails=(0,v.get)(s,"data.signatureDetails.itemDetails",{}));const ft=s.data?.miscDetails;ft?.E_RCPT_IMG_URL&&ft?.E_RCPT_URL&&(this.isShowPromotion=!0,this.promotion.title=s.data?.miscDetails?.E_RCPT_TITL,this.promotion.message=s.data?.miscDetails?.E_RCPT_MSG,this.promotion.promotionImageUrl=`${this.baseUrl}/${s.data?.miscDetails?.E_RCPT_IMG_URL}`,this.promotion.promotionalUrl=`${T.N.apiUrl}/redirectPromotion?promotionId=${s.data?.miscDetails?.PROMO_ID}&&promotionDetailsId=${s.data?.miscDetails?.E_PROMO_ID}&&tpn=${s.data?.txnDetails?.tpn}&&txId=${s.data?.txnDetails?.transactionId}&&redirectUrl=${s.data?.miscDetails?.E_RCPT_URL}`),this.baseAmtLabel=(0,v.get)(this.receiptData,"signatureDetails.customField.msrpLabel",this.baseAmtLabel),this.discount=(0,v.get)(this.receiptData,"signatureDetails.customField.loyalty.discountApplied",0),this.message=(0,v.get)(this.receiptData,"signatureDetails.customField.loyalty.rewardsMessage",""),console.log("This message is for sake: ",this.message),this.message1=(0,v.get)(this.receiptData,"signatureDetails.customField.loyalty.rewardsMessage1",""),this.message2=(0,v.get)(this.receiptData,"signatureDetails.customField.loyalty.rewardsMessage2",""),this.message3=(0,v.get)(this.receiptData,"signatureDetails.customField.loyalty.rewardsMessage3",""),this.baseAmtLabel=(0,v.isEmpty)(this.baseAmtLabel)?"htmlText.basAmt":this.baseAmtLabel,this.isTrueCashDiscounting="8"===(0,v.get)(this.receiptData,"signatureDetails.customField.feeType",!1);let vt="8"==(0,v.get)(this.receiptData,"signatureDetails.customField.feeType",!1)&&"true"==this.alter.toString()&&"GIFT"!=(0,v.get)(this.receiptData,"txnDetails.transactionType",!1);this.totalPaidLabel=vt?"Cash Paid":this.totalPaidLabel,this.getImage(),this.getInvoice(this.receiptData),this.isLoading=!1},s=>{this.isOpenUrl?this.router.navigateByUrl(`/message/${window.btoa(JSON.stringify({icon:"notify.svg",message:s.message}))}`):this.messageService.add({severity:"error",detail:s.message||"Server Error !",sticky:!0})})}getInvoice(o){this.transactionService.getInvoiceNum(this.transactionService.getInvoice,{rrn:o.txnDetails.rrn,txName:o.txnDetails.txName}).subscribe(s=>{this.invoiceVold=(0,v.isEmpty)(s?.invoiceNumber)?"":s.invoiceNumber})}timeSub(o){return(0,v.isEmpty)(o)?"":o.substring(0,o.length-3)}get(o,q){return"Y"==q?this.invoiceVold:o}getImage(){const o=this.receiptData.defaultLogo?.storeLogo,q=this.receiptData.defaultLogo?.merchantLogo;this.logo=o||q?`${T.N.portalMerchantLogoPath}/${o??q}`:""}transMode(o){let q=o.substring(0,2);return"90"==q||"80"==q?"SWIPE":"05"==q?"CHIP":"01"==q?"MANUAL":"10"==q?"COF":"07"==q||"91"==q||"11"==q||"71"==q?"CONTACTLESS":"004"==o?"CHECK":""}transType(o){return console.log("trans Type",o),"DEBIT"==o?"DEBIT":""}maskedPan(o){return o.replace(/\w(?=\w{4})/g,"*")}cardLabel(o,q){return"DEBIT"==q?"DEBIT":o}approval(o,q,s){return"TICKET"==q?"Local":"10"==s?"":o}transAmount(o,q=!1){return q?o=(o/=100)>0?-o:o:o/100}isShowTax(o,q="",s=""){return(o||0==o)&&("1"==q?o>=0:0!=o)}isApproval(o){return["00","0000","000","003","00000","785"].indexOf(o)>
1=0?"APPROVED":null==o?"":"85"==o?"CARD OK":"10"==o||"002"==o?"PARTIAL APPROVAL":"Declined"}sumTip(o,q,s){return o+q+s}sumAmount(o,q){return(0,v.isUndefined)(q)?o:Number(o)+Number(q)}errorHandleF(o){return null==o||""==o?"":o}errorHandle(o){return null==o||""==o?"":o}defaultName(o){return null==o||""==o?"Fee":o}defaultLTL(o){return null==o||""==o?"Local Tax":o}defaultSTL(o){return null==o||""==o?"State Tax":o}defaultRTL(o){return null==o||""==o?"RTax":o}defaultMFL(o){return null==o||""==o?"Fee":o}defaultSCH(o){return null==o||""==o?"Fee":o}cardholderName(o){return null==o||""==o?"":o}pinBlock(o){let q;switch(o){case"0":case"XXXXXXXXXXXXXXXX":case"NOCVM":q="";break;default:q="PIN VERIFIED OK"}return q}ebt_type(o,q){return"000000"==q?"Food":"090000"==q?"Cash":""}getEmv(o){return(0,v.isEmpty)(o)?"":o["9F26"]?o["9F26"]:""}cashDis(o){return null==o||""==o?"Cashback":o}getTxName(o,q){return"Y"==this.receiptData.txnDetails.voidFlag&&(o="VOID PREAUTH"==(o="VOID SALE"==o?"SALE":this.receiptData?.txnDetails?.txName)?"PREAUTH":this.receiptData?.txnDetails?.txName),"DEBIT"==q?o="DEBIT  "+o:o}txHandle(o){return null==o||""==o?"":o}getFeeDetails(o,q){let s=o?.FEE,Ye=o?.F_TYP,ze=o?.CF_DFC,ct=o?.SR_DF_CUS,{localTaxAmount:ft=0,stateTaxAmount:vt=0,commercialTaxAmount:dt=0}=q,u=Number(ft)+Number(vt)+Number(dt);return 1!=s||0!=q.tipAmount||0!=q.tipAdjAmount||(0==ze||0==ct?0!=q.customFee||0!=q.surcharge||0!=q.serviceFee||0!=q.LTaxFee||0!=q.GTaxFee||0!=q.localTaxAmount||0!=q.stateTaxAmount:!((4==Ye||7==Ye||8==Ye)&&0==u))}showMaskedCardNum(o){return(0,v.isEmpty)(o)?"NA":(0,v.padStart)(o.substring(o.length-4),16,"*")}showBaseAmountDetails(o){let q=(0,v.get)(o,"transactionType",!1),s=(0,v.get)(o,"txName","NA");return!!q&&("LOYALTY"!=q?"BALANCE INQUIRY"!=s:"LOYALTY"!=q)}isFeeOrTaxEnabledShowTotalAmount(o){let{localTaxAmount:q=0,stateTaxAmount:s=0,commercialTaxAmount:Ye=0,LTaxFee:ze=0,GTaxFee:ct=0,CTaxFee:ft=0,customFee:vt=0,merchantFee:dt=0,serviceFee:u=0,DiscountFee:Y=0,TxAmountFee:l=0,TipAmountFee:y=0}=o;return Number(q)+Number(s)+Number(Ye)+Number(ze)+Number(ct)+Number(ft)+Number(vt)+Number(dt)+Number(u)+Number(Y)+Number(l)+Number(y)>0}printPage(){window.print()}emailPopupModal(){this.modalRef=this.modalService.open(this.content,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1}),this.modalRef.result.then(o=>this.receiptsendform.reset())}showToaster(o,q){this.messageService.add({severity:o,detail:q})}get find(){return this.receiptsendform.controls}onSubmitForm(){if(!this.receiptsendform.invalid&&(this.isSubmitted=!0,this.isLoadingSpinner=!0,this.emailIdValue=this.receiptsendform.value.email,this.emailIdValue)){let o={email:this.emailIdValue,id:this.id,txId:this.transactionId,tpn:this.tpn,description:"",toAmt:this.totalAmount,alter:this.alter};this.isItemsList&&(o.isItemsList=!0),this.commonService.getCommonHttpClientQueryParams(`${T.N.apiUrl}/resendReceiptFromPortal?`,o).subscribe(q=>{this.isLoadingSpinner=!1,this.receiptsendform.reset(),this.modalRef.close(),this.isSubmitted=!1,q&&this.showToaster("success","Mail sent successfuly")},q=>{this.isLoadingSpinner=!1,this.receiptsendform.reset(),this.modalRef.close(),this.isSubmitted=!1,this.showToaster("error",q.message)})}}getInvoiceById(o){var q=this;return(0,i.Z)(function*(){try{const s=yield q.commonService.getCommonHttpClientQueryParams(b.D.getInvoiceById,{id:o}).toPromise();q.invoiceDetails=s.invoiceDetails;const Ye=(0,D.k$)(q.invoiceDetails.items.itemsList);for(let u=0;u<Ye.length;u++)(0,D.ku)(Ye[u].lineItemData);const{lineItemsArray:ze,totalAmount:ct,totalDiscount:ft,totalTax:vt,totalBaseAmount:dt}=(0,D.lk)(Ye);q.itemizedDetails.totalTax=vt,q.itemizedDetails.totalDiscount=ft,q.itemizedDetails.totalBaseAmount=dt,q.itemizedDetails.shippingFee=q.invoiceDetails?.items?.shippingFee?parseInt(q.invoiceDetails?.items?.shippingFee):0,console.log("\u{1f525} ~ getInvoiceById ~ this.invoiceDetails?.items?.shippingFee:",q.invoiceDetails?.items?.shippingFee),q.invoiceDetails?.items?.shippingFee&&(q.itemizedDetails.totalBaseAmount+=parseInt(q.invoiceDetails?.items?.shippingFee)),q.itemizedDetail
1s.totalAmount=ct,console.log("\u{1f525} ~ getInvoiceById ~ lineItemsArray, totalAmount, totalDiscount, totalTax:",ze,ct,ft,vt,dt),q.lineItemsArray=ze}catch{q.isInvoice=!1}})()}get isCheckTrans(){return this.transactionService.isCheckTrans(this.receiptData?.txnDetails||"")}get isNotCheckTrans(){return!this.isCheckTrans}parseTsysRespDataForReceipt(){const o=(0,v.get)(this.receiptData,"txnDetails.tsysRespData");if(null==o||void 0===o)return{};if("string"==typeof o)try{return JSON.parse(o)}catch{return{}}return o}tsysScalarToString(o){if(null==o)return"";if("number"==typeof o&&!Number.isNaN(o))return String(o).trim();if("string"==typeof o)return o.trim();if(Array.isArray(o)&&o.length>0)return this.tsysScalarToString(o[0]);if("object"==typeof o){const q=o;if("_"in q)return this.tsysScalarToString(q._);if("#text"in q)return this.tsysScalarToString(q["#text"])}return""}agreementRefFromParsedTsys(o){const q=["ARAgrRefNo","AgrRefNo","AggrRefNo","agrRefNo","araGrRefNo","AUTO_RENT_AGR_REF"];for(const Ye of q){const ze=this.tsysScalarToString(o[Ye]);if(ze)return ze}const s=["hostResponse","HostResponse","Response","TransactionResponse","$"];for(const Ye of s){const ze=o[Ye];if(ze&&"object"==typeof ze&&!Array.isArray(ze)){const ct=ze;for(const ft of q){const vt=this.tsysScalarToString(ct[ft]);if(vt)return vt}}}return""}merchantRentalAgreementRefNo(){const o=(0,v.get)(this.receiptData,"merchantRentalAgreementRef");return null!=o&&""!==String(o).trim()?String(o).trim():this.agreementRefFromParsedTsys(this.parseTsysRespDataForReceipt())}formatMerchantRentalAgreementRefForReceipt(){const o=this.merchantRentalAgreementRefNo();return!o||o.length<=9?o||"":`${o.slice(0,9)}\n${o.slice(9)}`}mongoTagArlOne(){return"1"===String((0,v.get)(this.receiptData,"receiptDetails.TAG_ARL","0")).trim()}effectiveMerchantReceiptTagArl(){if(!this.mongoTagArlOne())return"0";const q=this.parseTsysRespDataForReceipt().TAG_ARL,s=null!=q?String(q).trim():"";if("1"===s||"0"===s)return s;const Ye=(0,v.get)(this.receiptData,"merchantReceiptTagArl");return null!=Ye&&""!==String(Ye).trim()?"1"===String(Ye).trim()?"1":"0":"1"}tsysArlNegatesRentalLine(){const o=this.parseTsysRespDataForReceipt();return"N"===this.tsysScalarToString(o.ARL).toUpperCase()}isAutoRentalEligibleTx(){const o=(0,v.get)(this.receiptData,"txnDetails.txName");if(null==o||void 0===o||""===String(o).trim())return!1;const q=String(o).trim().replace(/^VOID\s+/i,"");return["SALE","PREAUTH","TICKET"].includes(q)}showMerchantRentalAgreementLine(){return!(!this.receiptData||this.receiptType!==this.types.MC||!this.isAutoRentalEligibleTx()||this.tsysArlNegatesRentalLine()||"1"!==this.effectiveMerchantReceiptTagArl()||!this.merchantRentalAgreementRefNo())}formatAddressLine(o){if(!o||""===o.trim())return"";let q=o.replace(/\s+,/g,",");const s=q.split(",");if(s.length>=3){const Ye=s[s.length-1].trim(),ze=s[s.length-2].trim();return`${s.slice(0,s.length-2).join(",").trim()}, ${ze} ${Ye}`}return q.trim()}}return d.\u0275fac=function(o){return new(o||d)(n.Y36(f.FF),n.Y36(S.v),n.Y36(J.p),n.Y36(de.gz),n.Y36(f.Kz),n.Y36(A.ez),n.Y36(w.QS),n.Y36(de.F0))},d.\u0275cmp=n.Xpm({type:d,selectors:[["app-view-recepit"]],viewQuery:function(o,q){if(1&o&&(n.Gf(W,5),n.Gf(ie,5)),2&o){let s;n.iGM(s=n.CRH())&&(q.screen=s.first),n.iGM(s=n.CRH())&&(q.content=s.first)}},inputs:{id:"id",isCustomer:"isCustomer",rrn:"rrn",txName:"txName",transactionId:"transactionId",tpn:"tpn",totalAmount:"totalAmount",alter:"alter",isItemsList:"isItemsList",itemDetails:"itemDetails"},features:[n._Bn([A.ez])],decls:5,vars:2,consts:[["position","top-right"],[4,"ngIf"],["class","parent-container",4,"ngIf"],["openEmailPopup",""],[1,"parent-container"],[3,"ngClass"],[1,"modal-content","mt-receipt"],[1,"modal-header"],["ngbDropdown","",4,"ngIf"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"customer-link"],["ngbDropdown","",1,"pt-4",3,"ngClass"],["id","dropdownMenuActiveItem","ngbDropdownToggle","",1,"btn","btn-outline-primary","btn_align",2,"float","right"],["ngbDropdownMenu","","aria-labelledby","dropdownMenuActiveItem",1,"list_fixed"],["ngbDropdownItem","",3,"click"],[1,"link-icon","feather","icon-image"],["ngbDropdownItem","",1,"print",3,"click"],["aria-hidden","",1,"mdi","mdi-printer"],["id","showScroll",1,"container"],[1,"receipt",3,"ngClass"],["screen",""],["class","mt-3",4,"ngIf"],["ngbDropdown",""],["id","dropdownMenuActiveItem","ngbDropdownToggle","",1,"btn","btn-primary","btn_align",2,"float","right","color","white"],["aria-hidden","",1,"mdi","mdi-email-outline"],["class","logo",4,"ngIf"],[1,"address"],[1,"center_add"],[1,"transactionDetail
1s"],[1,"detail"],["class","detail m-2",4,"ngIf"],["class","transactionDetails pb-2",4,"ngIf"],["class","transactionDetails",4,"ngIf"],["class","survey bold margin-top-bottom",4,"ngIf"],["class","transactionCardName",4,"ngIf"],["class","survey bold",4,"ngIf"],["class","transactionDetails mar_top_acct",4,"ngIf"],["class","transactionDetails",3,"ngClass",4,"ngIf"],["class","paymentDetails bold",4,"ngIf"],["class","p-2",4,"ngIf"],["class","paymentDetails bold ",4,"ngIf"],["class","paymentDetails bold ",4,"ngIf","ngIfElse"],["baseAmt",""],["totalAmt",""],["class","transactionDetailsResp",4,"ngIf"],["class","transactionDetailsCode",4,"ngIf"],[1,"rewardMessage","mb-1"],["class","detail message-content",4,"ngIf"],["class","transactionDetailsCode mb-1",4,"ngIf"],["class","transactionDetails","style","padding-top: 10px;",4,"ngIf"],["class","transactionDetailsTrans",4,"ngIf"],["class","center mt-2",4,"ngIf"],["class","center agree description-break",4,"ngIf"],["class","center mx-2 font-weight-normal",4,"ngIf"],["class","center mt-2 font-weight-normal",4,"ngIf"],[1,"center","mt-2"],[1,"mt-1","mb-0"],[1,"logo"],["alt","MERCHANTLOGO",1,"logo_align",3,"src"],[1,"detail","m-2"],[1,"transactionDetails","pb-2"],[1,"checkDetail"],[1,"survey","bold","margin-top-bottom"],[1,"txt_size_txname"],["class","detail",4,"ngIf"],[1,"transactionCardName"],["class","transactionDetails my-1",4,"ngIf","ngIfElse"],["noTaxReported",""],[1,"transactionDetails","my-1"],[1,"my-1","text-center"],[1,"survey","bold"],[1,"transactionDetails","mar_top_acct"],[1,"transactionDetails",3,"ngClass"],[1,"paymentDetails","bold"],[1,"p-2"],[1,"my-1"],["class","justify-content-between d-flex align-items-end","style","font-size: small;",4,"ngFor","ngForOf"],[1,"justify-content-between","d-flex","align-items-end",2,"font-size","small"],[1,"d-flex","flex-column"],["class","detail","placement","bottom","triggers","mouseenter:mouseleave","container","body",3,"ngbPopover",4,"ngIf"],["placement","bottom","triggers","mouseenter:mouseleave","container","body",1,"detail",3,"ngbPopover"],[1,"transactionDetailsResp"],[1,"transactionDetailsCode"],["class","checkDetail",4,"ngIf"],[1,"detail","discount"],[1,"detail","bold"],[1,"detail","message-content"],[1,"transactionDetailsCode","mb-1"],[1,"transactionDetails",2,"padding-top","10px"],[1,"transactionDetailsTrans"],["class","transactionDetails",3,"ngClass",4,"ngFor","ngForOf"],[1,"detail","detail-rental-agr-ref"],[1,"center","agree","description-break"],[1,"center","mx-2","font-weight-normal"],["class","center font-weight-bold",4,"ngIf"],[1,"center","font-weight-bold"],["class","center",4,"ngIf"],[2,"width","100px",3,"src"],[1,"img_align"],["class","hr_align",4,"ngIf"],[1,"hr_align"],["class","sign font-weight-bold mb-3",4,"ngIf"],[1,"sign","font-weight-bold","mb-3"],[1,"center"],["class","sign font-weight-bold mb-3","class","sign font-weight-bold mb-3",4,"ngIf"],[1,"fw-bold","d-block","text-center","mt-4"],[1,"m-1"],[1,"sign","font-weight-bold","mb-4"],["class","center mb-1",4,"ngIf"],[1,"center","mb-1"],[1,"center","mt-2","font-weight-normal"],[1,"center","mt-2","word-break"],[1,"center_add","pb-3"],[1,"survey","bold","dashed-border-top-bottom"],[1,"txt_size_txname","center_add"],[1,"transactionDetails","dashed-border-bottom"],[1,"bold","text-center"],[1,"center_add","pt-2"],[1,"pb-2"],[4,"ngFor","ngForOf"],[1,"bold","dashed-border-top","pt-2"],[1,"bold","dashed-border-top","pt-5"],[1,"text-center","pb-1"],[1,"mt-3"],["promotionSection",""],["target","_blank",1,"link-container","text-center",3,"href"],[1,"text-center","mb-2"],[1,"picture-container","gray-background"],[1,"preview-img",3,"src"],[1,"text-center","mt-2","text-break","p-1"],[1,"modal-header","d-flex","justify-content-between","p-3"],[1,"ml-2"],["id","modal-basic-title",1,"modal-title"],[1,"font-weight-bold","title-text"],[1,"modal-body","text-center","px-5","py-5"],[3,"formGroup"],[1,"form-group"],["type","text","formControlName","email","placeholder","Enter Email Address","maxlength","50",1,"form-control",3,"ngClass"],["class","alert normal-font",4,"ngIf"],[1,"card-footer","pb-2","email-btn-font"],[1,"mt-2","ml-2","text-right","btn","btn-primary","float-right",3,"disabled","click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],[1,"mt-2","text-right","btn","btn-danger","mr-2","float-right","mb-2",3,"click"],[1,"alert","normal-font"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(o,q){1&o&&(n._UZ(0,"p-toast",0),n.YNc(1,ye,1,0,"app-loading",1),n.YNc(2,ii,26,10,"div",2),n.YNc(3,si,18,13,"ng-template",null,3,n.W1O)),2&o&&(n.xp6(1),n.Q6J("ngIf",q.isLoading),n.xp6(1),n.Q6J("ngIf",!q.isLoading))},dependencies:[Ie.mk,Ie.sg,Ie.O5,w._Y,w.Fj,w.JJ,w.JL,w.nD,w.sg,w.u,f.jt,f.iD,f.Vi,f.TH,f.o8,z.FN,Ee.mh,Oe.N,Ie.OU,Ie.JJ,Ie.H9,ee.Ho,ee.H7,Me.X$,R.vt],styles:['.customerLink[_ngcontent-%COMP%]   .modal
1-header[_ngcontent-%COMP%]{display:none}.customerLink[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box;font-family:VT323,monospace;color:#1f1f1f}.customerLink[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700}.customerLink[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]{text-align:center;line-height:1;margin-top:5px}.customerLink[_ngcontent-%COMP%]   .centerSign[_ngcontent-%COMP%]{text-align:center;margin-bottom:5px;margin-top:5px}.customerLink[_ngcontent-%COMP%]   .receipt[_ngcontent-%COMP%]{width:260px;max-width:100%;overflow-x:hidden;margin:0 auto;box-shadow:5px 5px 19px #ccc;padding:10px}.customerLink[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{text-align:center;padding:10px}.customerLink[_ngcontent-%COMP%]   .barcode[_ngcontent-%COMP%]{font-family:"Libre Barcode 128",cursive;font-size:42px;text-align:center}.customerLink[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px;max-width:100%;overflow-wrap:break-word;word-break:break-word}.customerLink[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 8px;line-height:1;min-width:0}.customerLink[_ngcontent-%COMP%]   .transactionDetailsResp[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:10px 10px 0;line-height:1}.customerLink[_ngcontent-%COMP%]   .transactionDetailsCode[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:5px 10px;line-height:1}.customerLink[_ngcontent-%COMP%]   .transactionDetailsRef[_ngcontent-%COMP%], .customerLink[_ngcontent-%COMP%]   .transactionDetailsTrans[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 10px;line-height:1}.customerLink[_ngcontent-%COMP%]   .transactionDetailsApp[_ngcontent-%COMP%], .customerLink[_ngcontent-%COMP%]   .transactionDetailsAid[_ngcontent-%COMP%], .customerLink[_ngcontent-%COMP%]   .transactionDetailsTvr[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px;line-height:1}.customerLink[_ngcontent-%COMP%]   .transactionCardName[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 2px;text-transform:uppercase}.customerLink[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{text-transform:uppercase;min-width:0;overflow-wrap:break-word;word-break:break-word}.customerLink[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]   .detail.detail-rental-agr-ref[_ngcontent-%COMP%]{text-align:right;flex:1 1 0;min-width:0;white-space:pre-line;line-height:1.25}.customerLink[_ngcontent-%COMP%]   .centerItem[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:8px}.customerLink[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]{text-align:center;margin-bottom:14px;text-transform:uppercase}.customerLink[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .customerLink[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]   .surveyID[_ngcontent-%COMP%]{font-size:20px}.customerLink[_ngcontent-%COMP%]   .paymentDetails[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 3px;line-height:1}.customerLink[_ngcontent-%COMP%]   .creditDetails[_ngcontent-%COMP%]{margin:10px auto;width:230px;font-size:14px;text-transform:uppercase}.customerLink[_ngcontent-%COMP%]   .receiptBarcode[_ngcontent-%COMP%]{margin:10px 0;text-align:center}.customerLink[_ngcontent-%COMP%]   .returnPolicy[_ngcontent-%COMP%]{margin:10px 20px;width:220px;display:flex;justify-content:space-between}.customerLink[_ngcontent-%COMP%]   .coupons[_ngcontent-%COMP%]{margin-top:20px}.customerLink[_ngcontent-%COMP%]   .tripSummary[_ngcontent-%COMP%]{margin:auto;width:255px}.customerLink[_ngcontent-%COMP%]   .tripSummary[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:auto;width:220px}.customerLink[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]{margin:20px auto}.customerLink[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   h3.clickBait[_ngcontent-%COMP%]{font-size:30px;font-weight:700;text-align:center;margin:10px 0}.customerLink[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   h4.web[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin:10px 0}.customerLink[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   .break[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:700;margin:10px 0}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]{border-top:1px dashed #1f
11f1f;margin-bottom:20px}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .discount[_ngcontent-%COMP%]{font-size:35px;text-align:center;margin-bottom:10px}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .discountDetails[_ngcontent-%COMP%]{font-size:20px;text-align:center;margin-bottom:15px}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .barcode[_ngcontent-%COMP%]{margin:10px 0 0}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .legal[_ngcontent-%COMP%]{font-size:12px;margin-bottom:12px}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .barcodeID[_ngcontent-%COMP%]{margin-bottom:8px}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .expiration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:10px}.customerLink[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .couponBottom[_ngcontent-%COMP%]{font-size:13px;text-align:center}.customerLink[_ngcontent-%COMP%]   .sign[_ngcontent-%COMP%]{text-align:center}.customerLink[_ngcontent-%COMP%]   .hr_align[_ngcontent-%COMP%]{border-top:1px solid black;width:160px;margin:0 auto auto}.customerLink[_ngcontent-%COMP%]   .agree[_ngcontent-%COMP%]{margin-bottom:6px}.customerLink[_ngcontent-%COMP%]   .txt_size_txname[_ngcontent-%COMP%]{font-size:14px}.customerLink[_ngcontent-%COMP%]   .center_add[_ngcontent-%COMP%]{font-weight:700;text-align:center;line-height:1.3;max-width:100%;overflow-wrap:break-word;word-break:break-word}.customerLink[_ngcontent-%COMP%]   .logo_align[_ngcontent-%COMP%]{margin-bottom:10px}.customerLink[_ngcontent-%COMP%]   .btn_align[_ngcontent-%COMP%]{position:absolute;right:5%;z-index:1000}.customerLink[_ngcontent-%COMP%]   .mar_top_acct[_ngcontent-%COMP%]{margin-top:26px}.customerLink[_ngcontent-%COMP%]   .description-break[_ngcontent-%COMP%]{text-align:justify}.customerLink[_ngcontent-%COMP%]   .preview-img[_ngcontent-%COMP%]{max-height:155px;min-width:100%;object-fit:contain}.customerLink[_ngcontent-%COMP%]   .picture-container[_ngcontent-%COMP%]{width:260px;height:155px;display:flex;justify-content:center;align-items:center}.customerLink[_ngcontent-%COMP%]   .normalFont[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:gray;font-family:Times New Roman,Times,serif}.customerLink[_ngcontent-%COMP%]   .click-here[_ngcontent-%COMP%]{z-index:5;position:absolute;top:-10px;right:-10px;height:120px;width:120px;padding:4px;border-radius:8px;opacity:.9}@keyframes bounce{to{transform:scale(1.05)}}.customerLink[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]{position:relative}.dashed-border-top-bottom[_ngcontent-%COMP%]{padding:8px;border-top:2px dashed;border-bottom:2px dashed;margin-top:20px;margin-bottom:20px}.dashed-border-bottom[_ngcontent-%COMP%]{border-bottom:2px dashed;padding-bottom:10px;padding-top:4px}.dashed-border-top[_ngcontent-%COMP%]{border-top:2px dashed;padding-bottom:10px;padding-top:4px}.customer[_ngcontent-%COMP%]   .modal[_ngcontent-%COMP%]{display:block!important}.customer[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{overflow-y:initial!important}.customer[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{height:90vh;overflow-y:scroll}.customer[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{margin:0;box-sizing:border-box;font-family:VT323,monospace;color:#1f1f1f}.customer[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{background:white;padding:0}.customer[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700}.customer[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]{text-align:center;line-height:1;margin-top:5px}.customer[_ngcontent-%COMP%]   .center_add[_ngcontent-%COMP%]{font-weight:700;text-align:center;line-height:1.3;max-width:100%;overflow-wrap:break-word;word-break:break-word}.customer[_ngcontent-%COMP%]   .centerSign[_ngcontent-%COMP%]{text-align:center;margin-bottom:5px;margin-top:5px}.customer[_ngcontent-%COMP%]   .receipt[_ngcontent-%COMP%]{width:260px;max-width:100%;overflow-x:hidden;background:#fff;margin:0 auto;box-shadow:5px 5px 19px #ccc;padding:10px}.customer[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{text-align:center;padding:3px}.customer[_ngcontent-%COMP%]   .barcode[_ngcontent-%COMP%]{font-family:"Libre Barcode 128",cursive;font-size:42px;text-align:center}.customer[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px;max-width:100%;overflow-wrap:break-word;word-break:break-word}
1.customer[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 8px;line-height:1;min-width:0}.customer[_ngcontent-%COMP%]   .transactionDetailsResp[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:10px 10px 0;line-height:1}.customer[_ngcontent-%COMP%]   .transactionDetailsCode[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px;line-height:1}.customer[_ngcontent-%COMP%]   .transactionDetailsRef[_ngcontent-%COMP%], .customer[_ngcontent-%COMP%]   .transactionDetailsTrans[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 10px;line-height:1}.customer[_ngcontent-%COMP%]   .transactionDetailsApp[_ngcontent-%COMP%], .customer[_ngcontent-%COMP%]   .transactionDetailsAid[_ngcontent-%COMP%], .customer[_ngcontent-%COMP%]   .transactionDetailsTvr[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px;line-height:1}.customer[_ngcontent-%COMP%]   .transactionCardName[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 2px;text-transform:uppercase}.customer[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{text-transform:uppercase;min-width:0;overflow-wrap:break-word;word-break:break-word}.customer[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]   .detail.detail-rental-agr-ref[_ngcontent-%COMP%]{text-align:right;flex:1 1 0;min-width:0;white-space:pre-line;line-height:1.25}.customer[_ngcontent-%COMP%]   .centerItem[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:8px}.customer[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]{text-align:center;margin-bottom:2px;margin-top:-8px;text-transform:uppercase}.customer[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:19px}.customer[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]   .surveyID[_ngcontent-%COMP%]{font-size:20px}.customer[_ngcontent-%COMP%]   .paymentDetails[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 3px;line-height:1.2}.customer[_ngcontent-%COMP%]   .creditDetails[_ngcontent-%COMP%]{margin:10px auto;width:230px;font-size:14px;text-transform:uppercase}.customer[_ngcontent-%COMP%]   .receiptBarcode[_ngcontent-%COMP%]{margin:10px 0;text-align:center}.customer[_ngcontent-%COMP%]   .returnPolicy[_ngcontent-%COMP%]{margin:10px 20px;width:220px;display:flex;justify-content:space-between}.customer[_ngcontent-%COMP%]   .coupons[_ngcontent-%COMP%]{margin-top:20px}.customer[_ngcontent-%COMP%]   .tripSummary[_ngcontent-%COMP%]{margin:auto;width:255px}.customer[_ngcontent-%COMP%]   .tripSummary[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:auto;width:220px}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]{margin:20px auto}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   h3.clickBait[_ngcontent-%COMP%]{font-size:30px;font-weight:700;text-align:center;margin:10px 0}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   h4.web[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin:10px 0}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   .break[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:700;margin:10px 0}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]{border-top:1px dashed #1f1f1f;margin-bottom:20px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .discount[_ngcontent-%COMP%]{font-size:35px;text-align:center;margin-bottom:10px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .discountDetails[_ngcontent-%COMP%]{font-size:20px;text-align:center;margin-bottom:15px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .barcode[_ngcontent-%COMP%]{margin:10px 0 0}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .legal[_ngcontent-%COMP%]{font-size:12px;margin-bottom:12px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .barcodeID[_ngcontent-%COMP%]{margin-bottom:8px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .expiration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:10px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .couponBottom[_ngcontent-%COMP%]{font-size:13px;text-align:center}.customer[_ngcontent-%COMP%]   .btn-margin[_ngcontent-%COMP%]{float:right;margin:-4px}
1.customer[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]{padding:3px}.customer[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{height:fit-content;max-height:660px;overflow-y:auto}.customer[_ngcontent-%COMP%]   .txt_size_txname[_ngcontent-%COMP%]{font-size:14px}.customer[_ngcontent-%COMP%]   .hr_align[_ngcontent-%COMP%]{border-top:1px solid black;width:160px;margin:0 auto auto}.customer[_ngcontent-%COMP%]   .sign[_ngcontent-%COMP%]{text-align:center}.customer[_ngcontent-%COMP%]   .img_align[_ngcontent-%COMP%]{width:100px;margin:14px 0}.customer[_ngcontent-%COMP%]   .agree[_ngcontent-%COMP%]{margin-bottom:6px}.customer[_ngcontent-%COMP%]   .logo_align[_ngcontent-%COMP%]{margin-bottom:10px}.customer[_ngcontent-%COMP%]   .sign_empty[_ngcontent-%COMP%]{margin-top:20px}.customer[_ngcontent-%COMP%]   .mar_top_acct[_ngcontent-%COMP%]{margin-top:26px}.customer[_ngcontent-%COMP%]   .description-break[_ngcontent-%COMP%]{text-align:justify}.customer[_ngcontent-%COMP%]   .fontLabel[_ngcontent-%COMP%]{font-size:1rem;font-weight:700}.customer[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{font-size:18px;font-family:Overpass,sans-serif}.customer[_ngcontent-%COMP%]   .normal-font[_ngcontent-%COMP%]{font-family:Overpass,sans-serif!important;text-align:center}.customer[_ngcontent-%COMP%]   .email-btn-font[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-family:Overpass,sans-serif;color:#fff}.customer[_ngcontent-%COMP%]   .email-btn-font[_ngcontent-%COMP%]   .spinner-border[_ngcontent-%COMP%]{color:#fff}.customer[_ngcontent-%COMP%]   .rewardMessage[_ngcontent-%COMP%]{text-align:center;font-weight:700}@media print{[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.modal-header[_ngcontent-%COMP%], .customer-link[_ngcontent-%COMP%]{visibility:hidden}.view-standalone[_ngcontent-%COMP%]{margin-left:-630px;margin-top:300px;min-width:0;max-width:100%;background:#fff;box-shadow:5px 5px 19px #ccc;padding:10px;transform:scale(1.35);left:50%;position:absolute;top:50%;text-align:center}.parent-container[_ngcontent-%COMP%]{background-color:#fff;box-shadow:#00000080 0 3px 8px;transform:scale(1.8)}}','.customer[_ngcontent-%COMP%]   .modal[_ngcontent-%COMP%]{display:block!important}.customer[_ngcontent-%COMP%]   .customer-link[_ngcontent-%COMP%]{display:none}.customer[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{overflow-y:initial!important}.customer[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{height:90vh;overflow-y:scroll}.customer[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{margin:0;box-sizing:border-box;font-family:VT323,monospace;color:#1f1f1f}.customer[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{background:white;padding:0}.customer[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700}.customer[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]{text-align:center;line-height:1;margin-top:5px}.customer[_ngcontent-%COMP%]   .center_add[_ngcontent-%COMP%]{font-weight:700;text-align:center;line-height:1.3;max-width:100%;overflow-wrap:break-word;word-break:break-word}.customer[_ngcontent-%COMP%]   .centerSign[_ngcontent-%COMP%]{text-align:center;margin-bottom:5px;margin-top:5px}.customer[_ngcontent-%COMP%]   .receipt[_ngcontent-%COMP%]{width:260px;max-width:100%;overflow-x:hidden;background:#fff;margin:0 auto;box-shadow:5px 5px 19px #ccc;padding:10px}.customer[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{text-align:center;padding:3px}.customer[_ngcontent-%COMP%]   .barcode[_ngcontent-%COMP%]{font-family:"Libre Barcode 128",cursive;font-size:42px;text-align:center}.customer[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px;max-width:100%;overflow-wrap:break-word;word-break:break-word}.customer[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px;line-height:1;min-width:0}.customer[_ngcontent-%COMP%]   .transactionDetailsResp[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:10px 10px 0;line-height:1}.customer[_ngcontent-%COMP%]   .transactionDetailsCode[_ngcontent-%COMP%], .customer[_ngcontent-%COMP%]   .transactionDetail
1sRef[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:5px 10px;line-height:1}.customer[_ngcontent-%COMP%]   .transactionDetailsTrans[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 10px;line-height:1}.customer[_ngcontent-%COMP%]   .transactionDetailsApp[_ngcontent-%COMP%], .customer[_ngcontent-%COMP%]   .transactionDetailsAid[_ngcontent-%COMP%], .customer[_ngcontent-%COMP%]   .transactionDetailsTvr[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px;line-height:1}.customer[_ngcontent-%COMP%]   .transactionCardName[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 2px;text-transform:uppercase}.customer[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{text-transform:uppercase;min-width:0;overflow-wrap:break-word;word-break:break-word}.customer[_ngcontent-%COMP%]   .transactionDetails[_ngcontent-%COMP%]   .detail.detail-rental-agr-ref[_ngcontent-%COMP%]{text-align:right;flex:1 1 0;min-width:0;white-space:pre-line;line-height:1.25}.customer[_ngcontent-%COMP%]   .centerItem[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:8px}.customer[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]{text-align:center;margin-bottom:2px;margin-top:8px;text-transform:uppercase}.customer[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:19px}.customer[_ngcontent-%COMP%]   .survey[_ngcontent-%COMP%]   .surveyID[_ngcontent-%COMP%]{font-size:20px}.customer[_ngcontent-%COMP%]   .paymentDetails[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 10px 3px;line-height:1.2}.customer[_ngcontent-%COMP%]   .creditDetails[_ngcontent-%COMP%]{margin:10px auto;width:230px;font-size:14px;text-transform:uppercase}.customer[_ngcontent-%COMP%]   .receiptBarcode[_ngcontent-%COMP%]{margin:10px 0;text-align:center}.customer[_ngcontent-%COMP%]   .returnPolicy[_ngcontent-%COMP%]{margin:10px 20px;width:220px;display:flex;justify-content:space-between}.customer[_ngcontent-%COMP%]   .coupons[_ngcontent-%COMP%]{margin-top:20px}.customer[_ngcontent-%COMP%]   .tripSummary[_ngcontent-%COMP%]{margin:auto;width:255px}.customer[_ngcontent-%COMP%]   .tripSummary[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:auto;width:220px}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]{margin:20px auto}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   h3.clickBait[_ngcontent-%COMP%]{font-size:30px;font-weight:700;text-align:center;margin:10px 0}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   h4.web[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin:10px 0}.customer[_ngcontent-%COMP%]   .feedback[_ngcontent-%COMP%]   .break[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:700;margin:10px 0}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]{border-top:1px dashed #1f1f1f;margin-bottom:20px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .discount[_ngcontent-%COMP%]{font-size:35px;text-align:center;margin-bottom:10px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .discountDetails[_ngcontent-%COMP%]{font-size:20px;text-align:center;margin-bottom:15px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .barcode[_ngcontent-%COMP%]{margin:10px 0 0}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .legal[_ngcontent-%COMP%]{font-size:12px;margin-bottom:12px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .barcodeID[_ngcontent-%COMP%]{margin-bottom:8px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .expiration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:10px}.customer[_ngcontent-%COMP%]   .couponContainer[_ngcontent-%COMP%]   .couponBottom[_ngcontent-%COMP%]{font-size:13px;text-align:center}.customer[_ngcontent-%COMP%]   .btn-margin[_ngcontent-%COMP%]{float:right;margin:-4px}.customer[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]{padding:3px}
1.customer[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{height:fit-content;max-height:660px;overflow-y:auto}.customer[_ngcontent-%COMP%]   .txt_size_txname[_ngcontent-%COMP%]{font-size:14px}.customer[_ngcontent-%COMP%]   .hr_align[_ngcontent-%COMP%]{border-top:1px solid black;width:160px;margin:0 auto auto}.customer[_ngcontent-%COMP%]   .sign[_ngcontent-%COMP%]{text-align:center}.customer[_ngcontent-%COMP%]   .img_align[_ngcontent-%COMP%]{width:100px;margin:14px 0}.customer[_ngcontent-%COMP%]   .agree[_ngcontent-%COMP%]{margin-bottom:6px}.customer[_ngcontent-%COMP%]   .logo_align[_ngcontent-%COMP%]{margin-bottom:10px}.customer[_ngcontent-%COMP%]   .sign_empty[_ngcontent-%COMP%]{margin-top:20px}.customer[_ngcontent-%COMP%]   .mar_top_acct[_ngcontent-%COMP%]{margin-top:26px}.customer[_ngcontent-%COMP%]   .description-break[_ngcontent-%COMP%]{text-align:justify}@media print{.customer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.customer[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]{visibility:hidden}}.customer[_ngcontent-%COMP%]   .fontLabel[_ngcontent-%COMP%]{font-size:1rem;font-weight:700}.customer[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{font-size:18px;font-family:Overpass,sans-serif}.customer[_ngcontent-%COMP%]   .normal-font[_ngcontent-%COMP%]{font-family:Overpass,sans-serif!important;text-align:center}.customer[_ngcontent-%COMP%]   .email-btn-font[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-family:Overpass,sans-serif;color:#fff}.customer[_ngcontent-%COMP%]   .email-btn-font[_ngcontent-%COMP%]   .spinner-border[_ngcontent-%COMP%]{color:#fff}@media print{[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.modal-header[_ngcontent-%COMP%]{visibility:hidden}.parent-container[_ngcontent-%COMP%]{background-color:#fff;box-shadow:#00000080 0 3px 8px;transform:scale(1.8);margin-left:-630px;margin-top:300px}.receipt[_ngcontent-%COMP%]{min-width:0;max-width:100%;background:#fff;margin:0 auto;box-shadow:5px 5px 19px #ccc;padding:10px}}.preview-img[_ngcontent-%COMP%]{max-height:155px;min-width:100%;object-fit:contain}.picture-container[_ngcontent-%COMP%]{width:260px;height:155px;display:flex;justify-content:center;align-items:center}.word-break[_ngcontent-%COMP%]{word-break:break-all}.transactionDetails[_ngcontent-%COMP%]   .message-content[_ngcontent-%COMP%]{font-size:11px;line-height:1.3;color:#333;text-transform:none!important;word-wrap:break-word;text-align:center}.transactionDetails[_ngcontent-%COMP%]   .discount[_ngcontent-%COMP%]{font-family:VT323,monospace;color:#1f1f1f!important;font-weight:700;text-transform:none!important;margin-bottom:8px}']}),d})()},76478:(Te,G,r)=>{"use strict";r.d(G,{l:()=>An});var i=r(83918),t=r(22560),_=r(2508),g=r(54724),T=r(56908),I=r(92938),A=r(84505),b=r(19730),D=r(33507),e=r(40929),n=r(19787),f=r(59462),S=r(2979),J=r(94666),de=r(71518),Ie=r(90413),z=r(7038),Ee=r(43041),Oe=r(49212),ee=r(33935);function Me(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Sec Code is required "),t.qZA())}function R(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,Me,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("terminalType"))?null:m.errors.required)}}function W(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,R,2,3,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("terminalType"))?null:m.invalid)}}function ie(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",23),t._UZ(2,"ng-select",24),t.qZA(),t.YNc(3,W,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(2),t.Q6J("items",x.ppdOrCcdOptionsArray)("clearable",!1)("searchable",!1)("multiple",!1),t.xp6(1),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("terminalType"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("terminalType"))?null:m.touched)||x.submitted)}}function ye(P,re){if(1&P){const x=t.EpF();t.TgZ(0,"p",31),t.NdJ("click",function(){t.CHM(x);const le=t.oxw(2);return t.KtG(le.getConsumersTokenDetail())}),t._uU(1,"Cards "),t.qZA()}}function Ue(P,re){if(1&P){const x=t.EpF();t.TgZ(0,"p",32),t.NdJ("click",function(){t.CHM(x);const le=t.oxw(2);return t.KtG(le.clearUnMaskedAlternateCardInfo())}),t.qZA()}}function $e(P,re){if(1&P&&(t.TgZ(0,"div",28),t.YNc(1,ye,2,0,"p",29),t.YNc(2,Ue,1,0,"p",30),t.qZA()),2&P){const x=t.oxw();
1t.xp6(1),t.Q6J("ngIf",x.cardsLength>1),t.xp6(1),t.Q6J("ngIf",!x.isDisableResetData()&&!x.isfromRunASale)}}function ke(P,re){1&P&&(t.TgZ(0,"span"),t._uU(1,"Routing number is required "),t.qZA())}function Re(P,re){1&P&&(t.TgZ(0,"span"),t._uU(1," Only numbers are allowed "),t.qZA())}function F(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 9 digits."),t.qZA())}function Q(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,ke,2,0,"span",33),t.YNc(2,Re,2,0,"span",33),t.YNc(3,F,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(2);let m,le;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("routingNumber"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("routingNumber"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.controls.routingNumber.hasError("minlength"))}}function ae(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,Q,4,5,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("routingNumber"))?null:m.invalid)}}function H(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Account number is required "),t.qZA())}function ge(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Account Number accepts only numbers "),t.qZA())}function Se(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Account Number should be 6 to 17 characters "),t.qZA())}function Je(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,H,2,0,"span",14),t.YNc(2,ge,2,0,"span",14),t.YNc(3,Se,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(2);let m,le,Be;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("accountNumber"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("accountNumber"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",null==(Be=x.cloudPOSForms.get("accountNumber"))?null:Be.hasError("minlength"))}}function We(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,Je,4,5,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("accountNumber"))?null:m.invalid)}}function He(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Check number is required "),t.qZA())}function et(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," check Number only accepts numbers"),t.qZA())}function qe(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 1 digits"),t.qZA())}function at(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum 15 of digits "),t.qZA())}function tt(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,He,2,0,"span",14),t.YNc(2,et,2,0,"span",14),t.YNc(3,qe,2,0,"span",14),t.YNc(4,at,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("checkNumber"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("checkNumber"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("checkNumber").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("checkNumber").hasError("maxlength"))}}function se(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,tt,5,6,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("checkNumber"))?null:m.invalid)}}function xe(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",7),t._UZ(2,"input",34),t.TgZ(3,"label",35)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,se,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(5),t.AsE("",t.lcZ(6,3,"htmlText.checkNumber"),"",x.fieldRequiredCheckNumber,""),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("checkNumber"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("checkNumber"))?null:m.touched)||x.submitted)}}function B(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"First name is required "),t.qZA())}function $(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Invalid first name"),t.qZA())}function be(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 1 characters "),t.qZA())}function Ze(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum 100 characters"),t.qZA())}function O(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,B,2,0,"span",14),t.YNc(2,$,2,0,"span",14),t.YNc(3,be,2,0,"span",14),t.YNc(4,Ze,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le,Be,Ge;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m
1=x.cloudPOSForms.get("firstName"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("firstName"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("firstName").hasError("minlength")&&!(null!=(Be=x.cloudPOSForms.get("firstName"))&&Be.hasError("pattern"))),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("firstName").hasError("maxlength")&&!(null!=(Ge=x.cloudPOSForms.get("firstName"))&&Ge.hasError("pattern")))}}function ce(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,O,5,6,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("firstName"))?null:m.invalid)}}function C(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",7),t._UZ(2,"input",36),t.TgZ(3,"label",37)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,ce,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(5),t.AsE("",t.lcZ(6,3,"htmlText.firstName"),"",x.fieldRequiredFirstName,""),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("firstName"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("firstName"))?null:m.touched)||x.submitted)}}function M(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Last name is required "),t.qZA())}function j(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Invalid last name "),t.qZA())}function X(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 1 characters"),t.qZA())}function fe(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum of 100 characters"),t.qZA())}function E(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,M,2,0,"span",14),t.YNc(2,j,2,0,"span",14),t.YNc(3,X,2,0,"span",14),t.YNc(4,fe,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le,Be,Ge;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("lastName"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("lastName"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",!(null!=(Be=x.cloudPOSForms.get("lastName"))&&Be.hasError("pattern"))&&x.cloudPOSForms.get("lastName").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",!(null!=(Ge=x.cloudPOSForms.get("lastName"))&&Ge.hasError("pattern"))&&x.cloudPOSForms.get("lastName").hasError("maxlength"))}}function K(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,E,5,6,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("lastName"))?null:m.invalid)}}const te=function(){return["paymentInfo","lastName"]},Le=function(P){return{"invalid-form-control":P}};function Z(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",7),t._UZ(2,"input",38),t.TgZ(3,"label",39)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,K,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m,le;t.xp6(2),t.Q6J("ngClass",t.VKq(9,Le,((null==(m=x.cloudPOSForms.get(t.DdM(6,te)))||null==m.errors?null:m.errors.required)||(null==(m=x.cloudPOSForms.get(t.DdM(7,te)))?null:m.touched)&&(null==(m=x.cloudPOSForms.get(t.DdM(8,te)))?null:m.errors))&&x.submitted)),t.xp6(3),t.AsE("",t.lcZ(6,4,"htmlText.lname"),"",x.fieldRequiredName,""),t.xp6(2),t.Q6J("ngIf",(null==(le=x.cloudPOSForms.get("lastName"))?null:le.dirty)||(null==(le=x.cloudPOSForms.get("lastName"))?null:le.touched)||x.submitted)}}function pe(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Company name is required "),t.qZA())}function k(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Invalid company name "),t.qZA())}function Fe(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 1 characters"),t.qZA())}function Qe(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum of 100 characters"),t.qZA())}function nt(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,pe,2,0,"span",14),t.YNc(2,k,2,0,"span",14),t.YNc(3,Fe,2,0,"span",14),t.YNc(4,Qe,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le,Be,Ge;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("companyName"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("companyName"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",!(null!=(Be=x.cloudPOSForms.get("companyName"))&&Be.hasError("pattern"))&&x.cloudPOSForms.get("companyName").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",!(null!=(Ge=x.cloudPOSForms.get("companyName"))&&Ge.hasError("pattern"))&&x.cloudPOSForms.get("companyName").hasError("maxlength"))}}function gt(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,nt,5,6,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;
1t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("companyName"))?null:m.invalid)}}const _t=function(){return["paymentInfo","companyName"]};function he(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",7),t._UZ(2,"input",40),t.TgZ(3,"label",41)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,gt,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m,le;t.xp6(2),t.Q6J("ngClass",t.VKq(9,Le,((null==(m=x.cloudPOSForms.get(t.DdM(6,_t)))||null==m.errors?null:m.errors.required)||(null==(m=x.cloudPOSForms.get(t.DdM(7,_t)))?null:m.touched)&&(null==(m=x.cloudPOSForms.get(t.DdM(8,_t)))?null:m.errors))&&x.submitted)),t.xp6(3),t.AsE("",t.lcZ(6,4,"htmlText.companyName"),"",x.fieldRequiredName,""),t.xp6(2),t.Q6J("ngIf",(null==(le=x.cloudPOSForms.get("companyName"))?null:le.dirty)||(null==(le=x.cloudPOSForms.get("companyName"))?null:le.touched)||x.submitted)}}function je(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Zip code is required "),t.qZA())}function Dt(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&P&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"errorMsg.invalidZipCode"),""))}function Et(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,je,2,0,"span",14),t.YNc(2,Dt,3,3,"span",14),t.qZA()),2&P){const x=t.oxw(3);t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==x.zipCtrl||null==x.zipCtrl.errors?null:x.zipCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",x.hasZipValidationError())}}function wt(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,Et,3,4,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null==x.zipCtrl?null:x.zipCtrl.invalid)}}function pt(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",7),t._UZ(2,"input",42),t.TgZ(3,"label",43)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,wt,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();t.xp6(2),t.uIk("maxlength",x.zipMaxLength),t.xp6(3),t.AsE("",t.lcZ(6,4,"htmlText.zip"),"",x.isZipRequired,""),t.xp6(2),t.Q6J("ngIf",x.showZipError())}}function $t(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"City is required "),t.qZA())}function St(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Invalid City "),t.qZA())}function yt(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 1 characters "),t.qZA())}function Zt(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a maximum of 50 characters "),t.qZA())}function Ft(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,$t,2,0,"span",14),t.YNc(2,St,2,0,"span",14),t.YNc(3,yt,2,0,"span",14),t.YNc(4,Zt,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le,Be,Ge;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("city"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("city"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",!(null!=(Be=x.cloudPOSForms.get("city"))&&Be.hasError("pattern"))&&x.cloudPOSForms.get("city").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",!(null!=(Ge=x.cloudPOSForms.get("city"))&&Ge.hasError("pattern"))&&x.cloudPOSForms.get("city").hasError("maxlength"))}}function Jt(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,Ft,5,6,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("city"))?null:m.invalid)}}function bt(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",7),t._UZ(2,"input",44),t.TgZ(3,"label",45)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,Jt,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(5),t.AsE("",t.lcZ(6,3,"htmlText.city"),"",x.isCityRequired,""),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("city"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("city"))?null:m.touched)||x.submitted)}}function Ut(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"state is required "),t.qZA())}function kt(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,Ut,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("state"))?null:m.errors.required)}}function Yt(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,kt,2,3,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("state"))?null:m.invalid)}}function Qt(P,re){if(1&P&&(t.TgZ(0,"div",46)(1,"div",47),t._UZ(2,"ng-select",48),t.qZA(),t.YNc(3,Yt,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m,le;t.Q6J("ngClass","CCD"!=(null==(m=x.cloudPOSForms.get("terminalType"))?null:m.value)?"mt-2":""),t.xp6(2),t.Q6J("items",x.payaStates)("clearable",!1)("searchable",!0)("multiple",!1)("placeholder",x.isStateRequired),t.xp6(1),t.Q6J("ngIf",(null==(le=x.cloudPOSForms.get("state"))?null:le.dirty)||(null==(le=x.cloudPOSForms.get("state"))?null:le.touched)||x.submitted)}}function zt(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Address is required "),t.qZA())}function Wt(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Address only accepts alphanumeric characters"),t.qZA())}function Ht(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum 200 letters "),t.qZA())}function Gt(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,zt,2,0,"span",14),t.YNc(2,Wt,2,0,"span",14),t.YNc(3,Ht,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m
1=x.cloudPOSForms.get("addressOne"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("addressOne"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("addressOne").hasError("maxlength"))}}function Xt(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,Gt,4,5,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("addressOne"))?null:m.invalid)}}function en(P,re){if(1&P&&(t.TgZ(0,"div",49)(1,"div",7),t._UZ(2,"input",50),t.TgZ(3,"label",51)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,Xt,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(5),t.AsE("",t.lcZ(6,3,"htmlText.address1"),"",x.fieldRequiredNameaddr1,""),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("addressOne"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("addressOne"))?null:m.touched)||x.submitted)}}function tn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Address is required "),t.qZA())}function nn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Address only accepts alphanumeric characters"),t.qZA())}function an(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum 200 letters "),t.qZA())}function jt(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,tn,2,0,"span",14),t.YNc(2,nn,2,0,"span",14),t.YNc(3,an,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(3);let m,le;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("addressTwo"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("addressTwo"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("addressTwo").hasError("maxlength"))}}function on(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,jt,4,5,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("addressTwo"))?null:m.invalid)}}function Rt(P,re){if(1&P&&(t.TgZ(0,"div",49)(1,"div",7),t._UZ(2,"input",52),t.TgZ(3,"label",51)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,on,2,1,"div",14),t.qZA()),2&P){const x=t.oxw();let m;t.xp6(5),t.AsE("",t.lcZ(6,3,"htmlText.address2"),"",x.fieldRequiredNameaddr2,""),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("addressTwo"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("addressTwo"))?null:m.touched)||x.submitted)}}function At(P,re){1&P&&(t.TgZ(0,"p-divider",53)(1,"span",54),t._uU(2,"Verification & Validation"),t.qZA()())}function rn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"DL is required "),t.qZA())}function ln(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," DL Number only accepts only alphanumeric"),t.qZA())}function sn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 5 digits"),t.qZA())}function qt(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum of 50 digits "),t.qZA())}function cn(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,rn,2,0,"span",14),t.YNc(2,ln,2,0,"span",14),t.YNc(3,sn,2,0,"span",14),t.YNc(4,qt,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(4);let m,le;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("dlNumber"))?null:m.errors.required),t.xp6(1),t.Q6J("ngIf",null==(le=x.cloudPOSForms.get("dlNumber"))?null:le.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("dlNumber").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("dlNumber").hasError("maxlength"))}}function dn(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,cn,5,6,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(3);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("dlNumber"))?null:m.invalid)}}function Bt(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",47),t._UZ(2,"input",56),t.TgZ(3,"label",57)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,dn,2,1,"div",14),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(5),t.AsE("",t.lcZ(6,3,"htmlText.DLNumber"),"",x.fieldRequired,""),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("dlNumber"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("dlNumber"))?null:m.touched)||x.submitted)}}function pn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"DL state is required "),t.qZA())}function un(P,re){if(1&P&&(t.TgZ(0,"ngb-alert",27),t.YNc(1,pn,2,0,"span",14),t.qZA()),2&P){const x=t.oxw(4);let m;t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==(m
1=x.cloudPOSForms.get("dlState"))?null:m.errors.required)}}function mn(P,re){if(1&P&&(t.TgZ(0,"div",25),t.YNc(1,un,2,3,"ngb-alert",26),t.qZA()),2&P){const x=t.oxw(3);let m;t.xp6(1),t.Q6J("ngIf",null==(m=x.cloudPOSForms.get("dlState"))?null:m.invalid)}}function Kt(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",47),t._UZ(2,"ng-select",58),t.qZA(),t.YNc(3,mn,2,1,"div",14),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(2),t.Q6J("items",x.payaStates)("clearable",!1)("searchable",!0)("multiple",!1)("placeholder",x.fieldRequiredState),t.xp6(1),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("dlState"))?null:m.touched)||(null==(m=x.cloudPOSForms.get("dlState"))?null:m.dirty)||x.submitted)}}function gn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"SSN is required "),t.qZA())}function hn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Invalid SSN Number "),t.qZA())}function _n(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter a minimum of 4 digits "),t.qZA())}function fn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Enter only maximum of 4 digits "),t.qZA())}function vn(P,re){if(1&P&&(t.TgZ(0,"div",25)(1,"ngb-alert",27),t.YNc(2,gn,2,0,"span",14),t.YNc(3,hn,2,0,"span",14),t.YNc(4,_n,2,0,"span",14),t.YNc(5,fn,2,0,"span",14),t.qZA()()),2&P){const x=t.oxw(3);t.xp6(1),t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==x.cloudPOSForms?null:x.cloudPOSForms.hasError("ssnOrBirthYearRequired")),t.xp6(1),t.Q6J("ngIf",null==x.cloudPOSForms?null:x.cloudPOSForms.hasError("ssnFormatInvalid")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("ssn").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",x.cloudPOSForms.get("ssn").hasError("maxlength"))}}function xn(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",47),t._UZ(2,"input",59),t.TgZ(3,"label",60)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,vn,6,6,"div",11),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(5),t.hij("",t.lcZ(6,2,"htmlText.ssn"),"*"),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("ssn"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("ssn"))?null:m.touched)||x.submitted)}}function Cn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1,"Birth year is required "),t.qZA())}function Tn(P,re){1&P&&(t.TgZ(0,"span",25),t._uU(1," Enter the complete birth year (e.g, 1978)"),t.qZA())}function bn(P,re){if(1&P&&(t.TgZ(0,"div",25)(1,"ngb-alert",27),t.YNc(2,Cn,2,0,"span",14),t.YNc(3,Tn,2,0,"span",14),t.qZA()()),2&P){const x=t.oxw(3);let m;t.xp6(1),t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.Q6J("ngIf",null==x.cloudPOSForms?null:x.cloudPOSForms.hasError("ssnOrBirthYearRequired")),t.xp6(1),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("birthYear"))?null:m.hasError("pattern"))||x.cloudPOSForms.hasError("birthYearFormatInvalid"))}}function Dn(P,re){if(1&P&&(t.TgZ(0,"div",6)(1,"div",47),t._UZ(2,"input",61),t.TgZ(3,"label",62)(4,"h6"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,bn,4,4,"div",14),t.qZA()),2&P){const x=t.oxw(2);let m;t.xp6(5),t.hij("",t.lcZ(6,2,"htmlText.BirthYear"),"*"),t.xp6(2),t.Q6J("ngIf",(null==(m=x.cloudPOSForms.get("birthYear"))?null:m.dirty)||(null==(m=x.cloudPOSForms.get("birthYear"))?null:m.touched)||x.submitted)}}function yn(P,re){if(1&P&&(t.TgZ(0,"div",55),t.YNc(1,Bt,8,5,"div",16),t.YNc(2,Kt,4,6,"div",2),t.YNc(3,xn,8,4,"div",16),t.YNc(4,Dn,8,4,"div",16),t.qZA()),2&P){const x=t.oxw();t.xp6(1),t.Q6J("ngIf",null==x.fieldVisibility?null:x.fieldVisibility.DL_NUMBER),t.xp6(1),t.Q6J("ngIf",null==x.fieldVisibility?null:x.fieldVisibility.DL_STATE),t.xp6(1),t.Q6J("ngIf",null==x.dynamicValidationJson||null==x.dynamicValidationJson.IDENTITY?null:x.dynamicValidationJson.IDENTITY.required),t.xp6(1),t.Q6J("ngIf",null==x.dynamicValidationJson||null==x.dynamicValidationJson.IDENTITY?null:x.dynamicValidationJson.IDENTITY.required)}}let An=(()=>{class P{constructor(x,m,le,Be,Ge,ht){this.formBuilder=x,this.commonService=m,this.ngbModal=le,this.authService=Be,this.activatedRoute=Ge,this.zipConfigService=ht,this.isAddBank=!1,this.tagValues={},this.payaAchFormData=new t.vpe,this.notifyParentReset=new t.vpe,this.phoneErrorHandler=new t.vpe,this.getConsumerDetail=new t.vpe,this.getExstingCustomerPayload=new t.vpe,this.clearUnMaskedAlternateCard=new t.vpe,this.verifyExstingCard=new t.vpe,this.isPayaCheck=new t.vpe,this.isAlternateTokenCheckPayaCheck=new t.vpe,this.terminalTypeSelection=new t.vpe,this.isDisableReset=new t.vpe,this.addBankConfirmation=new t.vpe,this.buttonValue="0",this.dynamicValidationJ
1son={},this.resetFormAmt=new A.X({}),this.resetFormAmtVal$=this.resetFormAmt.asObservable(),this.accountTypeList=[{name:"Checking",id:"Checking"},{name:"Savings",id:"Savings"}],this.submitted=!1,this.payaStates=[],this.isTokenTx=!1,this.isfromRunASale=!1,this.isMaskedCard=!1,this.maskedRoutingFormat="000000000",this.maskedAccountFormat="00000000000000000",this.isAchAdded="",this.isAddAch="add-ach"==this.activatedRoute.snapshot.params.path,this.params={...this.activatedRoute.snapshot.params||{},...this.activatedRoute.snapshot.queryParams||{}},this.fieldVisibility={},this.showVerificationSection=!1,this.isResetDisabled=!1,this.isExstingPayloadUpdate=!1,this.updateMissingFields=(ut,mt,Mt)=>{this.isExstingPayloadUpdate=!1,Mt.forEach(lt=>{!mt.hasOwnProperty(lt)&&""!=ut[lt]&&ut.hasOwnProperty(lt)&&(this.isExstingPayloadUpdate=!0,mt[lt]=ut[lt]);const Pt=ut.hasOwnProperty(lt)&&mt.hasOwnProperty(lt)&&ut[lt]!=mt[lt],st=mt.hasOwnProperty(lt)&&!ut.hasOwnProperty(lt);(Pt||st)&&(this.isExstingPayloadUpdate=!0)})},this.isTokenRemoved=!1}get zipCtrl(){return this.cloudPOSForms?.get("zipCode")??null}get zipMaxLength(){return this.zipConfigService.getMaxLength()}hasZipValidationError(){return!(!this.zipCtrl?.errors?.invalidZip&&!this.zipCtrl?.errors?.invalidChars)}showZipError(){return!!(this.zipCtrl?.dirty||this.zipCtrl?.touched||this.submitted)}ssnOrBirthYearRequired(x){const m=x.get("ssn").value,le=x.get("birthYear").value;let Be=x.get("identity").value;return m||le||!Be?m&&(m.length>4||!/^\d{4}$/.test(m))?{ssnFormatInvalid:!0}:!le||4===le.length&&/^(19|20)\d{2}$/.test(le)?null:{birthYearFormatInvalid:!0}:{ssnOrBirthYearRequired:!0}}ngOnChanges(x){x.isMandatoryCheck&&this.dynamicValidationJson&&this.updateFieldVisibility()}ngOnInit(){this.perviousPpdOrCcdOptionsArray=this.ppdOrCcdOptionsArray,this.isTelSecCode=1==this.selectedPayaOption,console.log("...isTelSecCode...",this.isTelSecCode),this.payaResponseValidationSubscription=this.payaResponseValidation$?.subscribe(x=>{console.log("...res.secCode..."),x.defautTerminalType&&(this.defautTerminalType=x.defautTerminalType),this.secCode=this.defautTerminalType,this.terminalId=x.terminalId,this.usersID=x.val
1idationID,this.dynamicValidationJson=x.validation,this.createPayaAchForm(),1==this.isEnableTag&&this.steamTagsForm.valueChanges.subscribe(m=>{this.customValue=m,this.setCustomTag()})}),this.getPayaStates(),this.subscription=this.payaTransaction$?.subscribe(x=>{if(x)if(x.isfromExstingPayload)this.matchOldAndNewPayload(x,this.cloudPOSForms.value);else{if(x.terminalId&&(this.previousTransaction=x),this.maskedRoutingFormat="",this.maskedAccountFormat="",1==x.isFromTransaction&&(this.previousTransaction?.value&&(this.secCode&&(this.previousTransaction.value.terminalType=this.secCode,this.previousTransaction.value.entryClass=this.secCode),this.cloudPOSForms.patchValue(this.previousTransaction.value)),this.getTerminalTypeValueChanges(this.cloudPOSForms.get("terminalType")),this.onTransaction()),this.isDisableReset.subscribe(m=>{this.isResetDisabled=m}),"resetFields"===x&&this.isTokenTx&&(this.isTokenTx=!1,this.payaId=null,this.cardsLength=0,this.isMaskedCard=!1,this.maskedRoutingFormat="",this.maskedAccountFormat="",this.onReset()),1==x.isFromTokenized){this.isfromRunASale=x.isfromRunASale,this.isTokenTx=!0,this.payaId=x.payaId,this.cardsLength=x.cardsLength,this.isMaskedCard=x.isMaskedCard,this.isTelSecCode=1==x.selectedPayaOption,this.terminalId=x.tokenObj?.terminalId,this.usersID=x.tokenObj?.validationID,this.dynamicValidationJson=x.tokenObj?.validation,this.defautTerminalType=x.tokenObj?.defautTerminalType,this.perviousPpdOrCcdOptionsArray&&this.perviousPpdOrCcdOptionsArray.length>0&&(this.ppdOrCcdOptionsArray=this.perviousPpdOrCcdOptionsArray),this.createPayaAchForm(!0),this.cloudPOSForms.patchValue({routingNumber:x.routingNumber,accountNumber:x.accountNumber,accountType:x.accountType,firstName:x.firstName,lastName:x.lastName,city:x.city,zipCode:x.zipCode,addressOne:x.addressOne,addressTwo:x.addressTwo,phone:x.phone,dlNumber:x.dlNumber,companyName:x.companyName,ssn:x.ssn,birthYear:x.birthYear,courtesyCardId:x.courtesyCardId}),"null"!=x.dlState&&null!=x.dlState&&x.dlState&&this.cloudPOSForms.patchValue({dlState:x.dlState}),x.state&&"null"!=x.state&&null!=x.state&&this.cloudPOSForms.patchValue({state:x.state});let m=this.cloudPOSForms.get("routingNumber"),le=this.cloudPOSForms.get("accountNumber");m.setValidators([_.kI.required,_.kI.minLength(9),_.kI.pattern(/^[0-9*]+$/)]),le.setValidators([_.kI.required,_.kI.minLength(6),_.kI.maxLength(17)]),le.updateValueAndValidity(),m.updateValueAndValidity(),this.isAlternateTokenCheckPayaCheck.emit(x.isfromRunASale?{isAlternate:!1}:{isAlternate:!0})}if(!0===x.isHsmDown){this.terminalId=x.tokenObj?.terminalId,this.usersID=x.tokenObj?.validationID,this.dynamicValidationJson=x.tokenObj?.validation,this.isfromRunASale=x.isfromRunASale,this.defautTerminalType=x.tokenObj?.defautTerminalType,this.perviousPpdOrCcdOptionsArray&&this.perviousPpdOrCcdOptionsArray.length>0&&(this.ppdOrCcdOptionsArray=this.perviousPpdOrCcdOptionsArray),this.isTelSecCode=1==x.selectedPayaOption,this.createPayaAchForm(!0),this.cloudPOSForms.patchValue({routingNumber:x.routingNumber,accountNumber:x.accountNumber,accountType:x.accountType,firstName:x.firstName,lastName:x.lastName,city:x.city,zipCode:x.zipCode,addressOne:x.addressOne,addressTwo:x.addressTwo,phone:x.phone,dlNumber:x.dlNumber,companyName:x.companyName,ssn:x.ssn,birthYear:x.birthYear,courtesyCardId:x.courtesyCardId}),"null"!=x.dlState&&null!=x.dlState&&x.dlState&&this.cloudPOSForms.patchValue({dlState:x.dlState}),"null"!=x.state&&null!=x.state&&x.state&&this.cloudPOSForms.patchValue({state:x.state});let m=this.cloudPOSForms.get("routingNumber"),le=this.cloudPOSForms.get("accountNumber");m.setValidators([_.kI.required,_.kI.minLength(9),_.kI.pattern(/^[0-9*]+$/)]),le.setValidators([_.kI.required,_.kI.minLength(6),_.kI.maxLength(17)]),le.updateValueAndValidity(),m.updateValueAndValidity(),this.isAlternateTokenCheckPayaCheck.emit(x.isfromRunASale?{isAlternate:!1}:{isAlternate:!0})}"reset"===x&&(this.isTokenTx=!1,this.payaId=null,this.cardsLength=0,this.isMaskedCard=!1,this.maskedRoutingFormat="",this.maskedAccountFormat="",this.onReset())}}),this.formResetSubscription=this.payaRest$?.subscribe(x=>{!0===x&&this.onReset()}
1),this.isPayaCheck.emit(this.isPhoneRequired?{isPaya:!0}:{isPaya:!1}),this.events&&(this.eventsSubscription=this.events.subscribe(x=>{this.fortInvoice=x.fortInvoice,this.isFortellisEnabled=x.isFortellisEnabled}))}matchOldAndNewPayload(x,m){var le=this;return(0,i.Z)(function*(){le.updatedPayload={},yield le.updateMissingFields(x,m,["firstName","lastName","addressOne","addressTwo","city","state","zipCode","phone","dlState","dlNumber","companyName","ssn","birthYear","courtesyCardId"]),le.updatedPayload=m,le.onTransaction(!0)})()}setCustomTag(){Object.keys(this.customValue).forEach((x,m)=>{let Be=this.customValue[x]||"";this.cloudPOSForms.get(`custom${m+1}`)?.patchValue(Be)})}updateFieldVisibility(){!this.dynamicValidationJson||(this.fieldVisibility={},Object.keys(this.dynamicValidationJson).forEach(x=>{const m=this.dynamicValidationJson[x];this.fieldVisibility[x]=!(!m||this.isMandatoryCheck&&!m.required),this.updateVerificationDividerVisibility()}))}updateVerificationDividerVisibility(){const x=this.fieldVisibility,m=this.dynamicValidationJson?.IDENTITY?.required;this.showVerificationSection=!!(x?.DL_NUMBER||x?.DL_STATE||m)}createPayaAchForm(x=!1){this.isCourtesyCardRequired=(0,I.get)(this.dynamicValidationJson,"COURTESY_CARD_ID.required",!1),this.isCompanyNameRequired=(0,I.get)(this.dynamicValidationJson,"COMPANY_NAME.required",!1),console.log("....this.isCompanyNameRequired....",this.isCompanyNameRequired);let m=[_.kI.pattern(/^[a-zA-Z ]+$/),_.kI.minLength(1),_.kI.maxLength(100)],le=[_.kI.pattern(/^[a-zA-Z ]+$/),_.kI.minLength(1),_.kI.maxLength(100)],Be=[_.kI.required,_.kI.minLength(9),_.kI.pattern(/^[0-9]+$/)],Ge=[_.kI.pattern(/^[0-9]+$/),_.kI.minLength(6),_.kI.maxLength(17)],ht=[_.kI.pattern(/^[0-9]+$/),_.kI.minLength(1),_.kI.maxLength(15)],ut=[...this.zipConfigService.getZipValidators()],mt=[_.kI.pattern(/^[a-zA-Z0-9]+$/),_.kI.minLength(1),_.kI.maxLength(50)];this.ssnValidators=[_.kI.required,_.kI.pattern(/^[0-9]+$/),_.kI.minLength(1),_.kI.maxLength(4)];let Mt=[_.kI.pattern(/^[a-zA-Z]{2,15}$/),_.kI.minLength(1),_.kI.maxLength(15)],lt=[_.kI.pattern(/^[a-zA-Z]{2,15}$/),_.kI.minLength(1),_.kI.maxLength(15)];this.birthYearValidators=[_.kI.required,_.kI.pattern(/^(19|20)\d*$/),_.kI.minLength(4),_.kI.maxLength(4)];let Pt=[_.kI.pattern(/^[a-zA-Z0-9 ,.\-/#]+$/),_.kI.maxLength(200)],st=[_.kI.pattern(/^[a-zA-Z0-9 ,.\-/#]+$/),_.kI.maxLength(200)],Ke=[_.kI.pattern(/^[a-zA-Z ]+$/),_.kI.minLength(1),_.kI.maxLength(50)],Lt=this.isCourtesyCardRequired?[_.kI.required,_.kI.pattern(/^[a-zA-Z0-9]+$/),_.kI.minLength(1),_.kI.maxLength(50)]:[];if(this.dynamicValidationJson?.FIRST_NAME?.required&&m.push(_.kI.required),this.dynamicValidationJson?.LAST_NAME?.required&&le.push(_.kI.required),this.dynamicValidationJson?.ACCOUNT?.required&&Ge.push(_.kI.required),this.dynamicValidationJson?.ZIP?.required&&ut.push(_.kI.required),this.dynamicValidationJson?.CITY?.required&&Ke.push(_.kI.required),this.dynamicValidationJson?.STATE?.required&&lt.push(_.kI.required),this.dynamicValidationJson?.CHECK?.required&&ht.push(_.kI.required),this.dynamicValidationJson?.ADDRESS1?.required&&Pt.push(_.kI.required),this.dynamicValidationJson?.ADDRESS2?.required&&st.push(_.kI.required),this.dynamicValidationJson?.DL_NUMBER?.required&&mt.push(_.kI.required),this.dynamicValidationJson?.DL_STATE?.required&&Mt.push(_.kI.required),!this.isTelSecCode||x){const xt=ht.indexOf(_.kI.required);-1!==xt&&ht.splice(xt,1)}let Pn={firstName:["",this.dynamicValidationJson?.FIRST_NAME?.required?m:[]],lastName:["",this.dynamicValidationJson?.LAST_NAME?.required?le:[]]},In={companyName:["",this.dynamicValidationJson?.COMPANY_NAME?.required?[_.kI.required,...m]:[]]},Nt=null;this.isAddBank&&(Nt=this.parentCloudposForm.controls.paymentInfo?.controls?.paymentMode?.value),this.cloudPOSForms=this.formBuilder.group({amt:[""],usersId:[this.usersID],terminalId:[this.terminalId],tpn:[this.selectedTpn],email:[""],phone:[""],paymentMode:[this.isAddBank?Nt:this.selectedMode.name],transactionType:this.selectedMode.id,...this.isCompanyNameRequired?In:Pn,accountType:["Checking",[_.kI.required]],...this.isTelSecCode?{}:{terminalType:[this.defautTerminalType,[_.kI.required]]},routingNumber:["",Be],accountNumber:["",Ge],checkNumber:["",ht],entryClass:[this.isTelSecCode?"TEL":this.defautTerminalType,[_.kI.required]],zipCode:["",ut],city:["",Ke],state:[null,lt],addressOne:["",Pt],addressTwo:["",st],dlNumber:["",mt],dlState:[null,Mt],ssn:[""],birthYear:[""],courtesyCardId:["",Lt],identity:(0,I.get)(this.dynamicValidationJ
1son,"IDENTITY.required",!1)},{validators:this.ssnOrBirthYearRequired});for(let xt=1;xt<=3;xt++)this.cloudPOSForms.addControl(`custom${xt}`,this.formBuilder.control("",[]));this.isPhoneRequired&&this.phoneErrorHandler.emit(),this.setRequiredFieldsStars(),this.updateFieldVisibility(),this.isTokenRemoved||(this.isTokenTx&&this.setTokinizedData(),this.isTokenTx||this.previousTransaction?.value&&(this.secCode&&(this.previousTransaction.value.terminalType=this.secCode,this.previousTransaction.value.entryClass=this.secCode),this.cloudPOSForms.patchValue(this.previousTransaction.value))),this.getTerminalTypeValueChanges(this.cloudPOSForms.get("terminalType")),this.isTokenRemoved=!1}setTokinizedData(){this.previousTransaction&&(this.previousTransaction?.value?(this.secCode&&(this.previousTransaction.value.terminalType=this.secCode,this.previousTransaction.value.entryClass=this.secCode),this.previousTransaction.value.entryClass=this.isTelSecCode?"TEL":this.previousTransaction.value.terminalType,this.cloudPOSForms.patchValue(this.previousTransaction.value)):(this.cloudPOSForms.patchValue({routingNumber:this.previousTransaction.routingNumber,accountNumber:this.previousTransaction.accountNumber,accountType:this.previousTransaction.accountType,firstName:this.previousTransaction.firstName,lastName:this.previousTransaction.lastName,city:this.previousTransaction.city,zipCode:this.previousTransaction.zipCode,addressOne:this.previousTransaction.addressOne,addressTwo:this.previousTransaction.addressTwo,phone:this.previousTransaction.phone,dlNumber:this.previousTransaction.dlNumber,companyName:this.previousTransaction.companyName,ssn:this.previousTransaction.ssn,birthYear:this.previousTransaction.birthYear,courtesyCardId:this.previousTransaction.courtesyCardId}),"null"!=this.previousTransaction.dlState&&null!=this.previousTransaction.dlState&&this.previousTransaction.dlState&&this.cloudPOSForms.patchValue({dlState:this.previousTransaction.dlState}),"null"!=this.previousTransaction.state&&null!=this.previousTransaction.state&&this.previousTransaction.state&&this.cloudPOSForms.patchValue({state:this.previousTransaction.state})))}isControlRequired(x){const m=this.cloudPOSForms.get(x);if(m){const le=m.validator&&m.validator({});return!!le&&le.required}return!1}getTerminalTypeValueChanges(x){if(x&&(this.cloudPOSForms.get("terminalType").valueChanges.subscribe(m=>{this.defautTerminalType=m,this.terminalTypeSelection.emit({selectedData:m}),this.isPayaCheck.emit({isPaya:this.isPhoneRequired})}),this.isTokenTx)){let m=this.cloudPOSForms.get("routingNumber"),le=this.cloudPOSForms.get("accountNumber");m.setValidators([_.kI.required,_.kI.minLength(9),_.kI.pattern(/^[0-9*]+$/)]),le.setValidators([_.kI.minLength(6),_.kI.maxLength(17)]),le.updateValueAndValidity(),m.updateValueAndValidity()}}setRequiredFieldsStars(){console.log("..........COURTESY_CARD_ID.............",this.dynamicValidationJson),this.fieldRequired=this.dynamicValidationJson?.DL_NUMBER?.required?"*":"",this.fieldRequiredState=this.dynamicValidationJson?.DL_STATE?.required?"Select a DL State*":"Select a DL State",this.fieldRequiredName=this.dynamicValidationJson?.LAST_NAME?.required||this.dynamicValidationJson?.COMPANY_NAME?.required?"*":"",this.fieldRequiredFirstName=this.dynamicValidationJson?.FIRST_NAME?.required?"*":"",this.fieldRequiredCheckNumber=this.isTelSecCode?"*":"",this.fieldRequiredNameaddr1=this.dynamicValidationJson?.ADDRESS1?.required?"*":"",this.fieldRequiredNameaddr2=this.dynamicValidationJson?.ADDRESS2?.required?"*":"",this.fieldCourtesyCardId=this.dynamicValidationJson?.COURTESY_CARD_ID?.required?"*":"",this.isCityRequired=this.dynamicValidationJson?.CITY?.required?"*":"",this.isZipRequired=this.dynamicValidationJson?.ZIP?.required?"*":"",this.isStateRequired=this.dynamicValidationJson?.STATE?.required?"Select a State*":"Select a  State",this.isPhoneRequired=this.dynamicValidationJson?.PHONE_NUMBER?.required}openModal(){window.scroll(0,0)}onReset(){this.submitted=!1,this.cloudPOSForms.reset({terminalType:1==this.ppdOrCcdOptionsArray.length?(0,I.get)(this.ppdOrCcdOptionsArray,"[0].name",""):null}),this.clearFormErrors(this.cloudPOSForms),this.refillForm(),this.isTokenTx=!1,this.isMaskedCard=!1,this.maskedRoutingFormat="",this.maskedAccountFormat=""}
1refillForm(){this.cloudPOSForms&&this.dynamicValidationJson&&(this.createPayaAchForm(!1),this.cloudPOSForms.patchValue({usersId:this.usersID,terminalId:this.terminalId,identity:this.dynamicValidationJson?.IDENTITY?.required}))}clearFormErrors(x){Object.keys(x.controls).forEach(m=>{const le=x.get(m);if(le instanceof _.nJ)this.clearFormErrors(le);else{const Be=x.get(m).validator;le.setErrors(null),x.get(m).setValidators(Be),x.get(m).updateValueAndValidity()}})}cleanValue(x){return null===x||"null"===x||""===x?"":x}onTransaction(x=!1){var m=this;return(0,i.Z)(function*(){if(m.isTokenTx){let st=m.cloudPOSForms.get("routingNumber"),Ke=m.cloudPOSForms.get("accountNumber");st.setValidators([_.kI.required,_.kI.minLength(9),_.kI.pattern(/^[0-9*]+$/)]),Ke.setValidators([_.kI.minLength(6),_.kI.maxLength(17)]),Ke.updateValueAndValidity(),st.updateValueAndValidity()}"Select a state"==m.cloudPOSForms.get("state").value&&m.cloudPOSForms.get("state").setErrors({required:!0}),"Select DL State"==m.cloudPOSForms.get("dlState").value&&m.dynamicValidationJson?.DL_STATE?.required?m.cloudPOSForms.get("dlState").setErrors({required:!0}):"Select DL State"==m.cloudPOSForms.get("dlState").value&&(m.cloudPOSForms.value.dlState=""),console.log(m.cloudPOSForms);let le=m.parentCloudposForm.controls.paymentInfo,Be=le.controls.amt.value,Ge=le.controls.email.value,ht=le.controls.phone.value;const ut=le.controls.phone.valid;if(m.isPhoneRequired&&(!ut||(0,I.isEmpty)(ht)))return void m.phoneErrorHandler.emit({required:!0});if(m.cloudPOSForms.value.entryClass=m.isTelSecCode?m.cloudPOSForms.value.entryClass:m.cloudPOSForms.value.terminalType,!m.cloudPOSForms.valid||!Be||m.isPhoneRequired&&!ut)return void(m.submitted=!0);let mt;if(m.submitted=!1,m.cloudPOSForms.get("amt").patchValue(m.prepareAmtFormat(Be,!0)),m.cloudPOSForms.get("email").patchValue(Ge),ht&&m.cloudPOSForms.get("phone").patchValue(ht?.e164Number),m.cloudPOSForms.value.entryClass=m.isTelSecCode?m.cloudPOSForms.value.entryClass:m.cloudPOSForms.value.terminalType,m.isTokenTx&&(m.cloudPOSForms.value.isTokenTx=!0,m.cloudPOSForms.value.payaId=m.payaId),x)m.cloudPOSForms.value.routingNumber=m.cleanValue(m.updatedPayload.routingNumber),m.cloudPOSForms.value.accountNumber=m.cleanValue(m.updatedPayload.accountNumber),m.cloudPOSForms.value.accountType=m.cleanValue(m.updatedPayload.accountType),m.cloudPOSForms.value.firstName=m.cleanValue(m.updatedPayload.firstName),m.cloudPOSForms.value.lastName=m.cleanValue(m.updatedPayload.lastName),m.cloudPOSForms.value.city=m.cleanValue(m.updatedPayload.city),m.cloudPOSForms.value.state=m.cleanValue(m.updatedPayload.state),m.cloudPOSForms.value.zipCode=m.cleanValue(m.updatedPayload.zipCode),m.cloudPOSForms.value.addressOne=m.cleanValue(m.updatedPayload.addressOne),m.cloudPOSForms.value.addressTwo=m.cleanValue(m.updatedPayload.addressTwo),m.cloudPOSForms.value.phone=m.cleanValue(m.updatedPayload.phone),m.cloudPOSForms.value.dlState=m.cleanValue(m.updatedPayload.dlState),m.cloudPOSForms.value.dlNumber=m.cleanValue(m.updatedPayload.dlNumber),m.cloudPOSForms.value.companyName=m.cleanValue(m.updatedPayload.companyName),m.cloudPOSForms.value.ssn=m.cleanValue(m.updatedPayload.ssn),m.cloudPOSForms.value.birthYear=m.cleanValue(m.updatedPayload.birthYear),m.cloudPOSForms.value.courtesyCardId=m.cleanValue(m.updatedPayload.courtesyCardId),m.cloudPOSForms.value.isExstingPayloadUpdate=m.isExstingPayloadUpdate;else if((Ge||ht)&&m.payaAchFormData.emit({showPaymentModal:!m.isAddAch}),!m.isAddAch)return void(yield m.getExstingPayload(m.cloudPOSForms.get("accountNumber").value));m.cloudPOSForms.value.isFortellisEnabled=m.isFortellisEnabled,m.cloudPOSForms.value.fortInvoice=m.fortInvoice,m.cloudPOSForms.value.txTime=T().utc().format("HH:mm:ss"),m.cloudPOSForms.value.txDate=T().utc().format("YYYY-MM-DD HH:mm:ss");let{formattedDateTime:Mt,formattedTime:lt}=m.commonService.getFormattedDateTime();if(m.cloudPOSForms.value.posRequestDate=Mt,m.cloudPOSForms.value.posRequestTime=lt,m.cloudPOSForms.value.hostResponseDate=T().utc().format("YYYY-MM-DD HH:mm:ss"),m.cloudPOSForms.value.hostResponseTime=T().utc().format("HH:mm:ss"),m.isAddAch||m.isAddBank)return m.isAddBank?((0,I.isEmpty)(m.cleanValue(m.cloudPOSForms.value.phone))&&(m.cloudPOSForms.value.phone=m.cleanValue(ht)),void m.addBankConfirmation.emit(m.cloudPOSForms.value)):((0,I.isEmpty)(m.cleanValue(m.cloudPOSForms.value.phone))&&m.cleanValue(m.activatedRoute.snapshot?.params?.phone)&&(m.cloudPOSForms.value.phone=m.cleanValue(m.activatedRoute.snapshot?.params?.phone)),(0,I.isEmpty)(m.cleanValue(m.cloudPOSForms.value.email)&&m.cleanValue(m.activatedRoute.snapshot?.params?.email))&&(m.cloudPOSForms.value.email=m.cleanValue(m.activatedRoute.snapshot?.params?.email)),window.scroll(0,0),m.modalRef=m.ngbModal.open(b.E,{backdrop:"static",keyboard:!1,centered:!0,size:"lg"}),m.modalRef.componentInstance.isLoading=!0,m.modalRef.result.then(Ke=>{"true"==m.isAchAdded&&window.history.back()}),void(yield m.commonService.postCommonHttpClient(`${g.D.PayaAch.addAch}/${m.activatedRoute.snapshot.paramMap.get("consumerId")||m.consumerId}`,{...m.cloudPOSForms.value,isMerchantBilling:"true"==m.params?.isMerchantBilling}).toPromise().then(Ke=>{m.modalRef.componentInstance.isLoading=!1,m.modalRef.componentInstance.isAchAdded=m.isAchAdded="true"},Ke=>{m.modalRef.componentInstance.isLoading=!1,m.modalRef.componentInstance.isAchAdded=m.isAchAdded="false",m.modalRef.componentInstance.errorMessage=Ke.message})));!(0,I.isEmpty)(m.tagValues.tagLabel)&&!(0,I.isEmpty)(m.tagValues.tagValue)&&(m.cloudPOSForms.value.tagLabel=m.tagValues.tagLabel,m.cloudPOSForms.value.tagValue=m.tagValues.tagValue);
1const Pt=m.parentCloudposForm?.controls?.identifier;if(3===m.transactionType&&(m.cloudPOSForms.value.identifier=Pt?Pt?.value:"",m.cloudPOSForms.value.isFromTransaction=!0),m.isfromRunASale){let st={apiName:"runASale",info:"runASale at clousPOS",message:"performed run a sale",log_data:{...m.cloudPOSForms.value}};m.commonService.postLog(st)}yield m.commonService.postCommonHttpClient(g.D.PayaAch.ProcessSingleCertificationCheckCloudPos,{...m.cloudPOSForms.value,isMerchantBilling:"true"==m.params?.isMerchantBilling}).toPromise().then(function(){var st=(0,i.Z)(function*(Ke){mt=Ke,m.payaAchFormData.emit({processAlternatePayment:!0,alternatePayloadDetails:mt?.signUpload?.txExtnPayload,payaResponse:mt})});return function(Ke){return st.apply(this,arguments)}}(),function(){var st=(0,i.Z)(function*(Ke){if(console.log("...err.......",Ke.status),412==(0,I.get)(Ke,"status"))m.payaAchFormData.emit({showPaymentModal:!0,showError:!0,err:Ke});else if(406==(0,I.get)(Ke,"status")){let Lt={};Lt={showPaymentModal:!0,showError:!0,err:Ke},m.payaAchFormData.emit(Lt)}else m.payaAchFormData.emit({showPaymentModal:!0,showError:!0,err:Ke});mt=(0,I.get)(Ke,"message.validationFailure")});return function(Ke){return st.apply(this,arguments)}}())})()}getPayaStates(){this.commonService.getCommonHttpClientParams(g.D.getPayaStates).subscribe(x=>{this.payaStates=x})}getExstingPayload(x){this.getExstingCustomerPayload.emit(x)}ngOnDestroy(){this.isPayaCheck.emit({isPaya:!1}),this.onReset(),this.subscription.unsubscribe()}prepareAmtFormat(x,m){return m?1==x.length?`0${x}0`:2==x.length?`0${x}`:`${x}`:x}getConsumersTokenDetail(){this.getConsumerDetail.emit()}verifyAndOpenExistingCardsInfo(x){this.isMaskedCard||this.verifyExstingCard.emit(this.usersID)}resetMaskedAlternateFormData(){this.createPayaAchForm()}isDisableResetData(){return this.isDisableReset.emit(),this.isResetDisabled}clearUnMaskedAlternateCardInfo(){let x=this.cloudPOSForms.get("routingNumber"),m=this.cloudPOSForms.get("accountNumber");x&&(x.setValidators([_.kI.minLength(9),_.kI.pattern(/^[0-9]+$/)]),x.updateValueAndValidity()),m&&(m.setValue(""),m.setValidators([_.kI.minLength(6),_.kI.maxLength(17)]),m.updateValueAndValidity()),this.isTokenTx=!1,this.payaId="",this.cardsLength=0,this.isMaskedCard=!1,this.maskedRoutingFormat="",this.maskedAccountFormat="",this.isTokenRemoved=!0,this.clearUnMaskedAlternateCard.emit(),this.resetMaskedAlternateFormData()}}return P.\u0275fac=function(x){return new(x||P)(t.Y36(_.QS),t.Y36(D.v),t.Y36(e.FF),t.Y36(n.e),t.Y36(f.gz),t.Y36(S.d))},P.\u0275cmp=t.Xpm({type:P,selectors:[["app-paya-ach"]],inputs:{selectedMode:"selectedMode",transactionType:"transactionType",parentCloudposForm:"parentCloudposForm",payaTransaction$:"payaTransaction$",selectedTpn:"selectedTpn",ppdOrCcdOptions:"ppdOrCcdOptions",selectedPayaOption:"selectedPayaOption",ppdOrCcdOptionsArray:"ppdOrCcdOptionsArray",defautTerminalType:"defautTerminalType",steamTagsForm:"steamTagsForm",isEnableTag:"isEnableTag",events:"events",fortInvoice:"fortInvoice",isFortellisEnabled:"isFortellisEnabled",isAddBank:"isAddBank",consumerId:"consumerId",tagValues:"tagValues",payaResponseValidation$:"payaResponseValidation$",payaRest$:"payaRest$",isMandatoryCheck:"isMandatoryCheck"},outputs:{payaAchFormData:"payaAchFormData",notifyParentReset:"notifyParentReset",phoneErrorHandler:"phoneErrorHandler",getConsumerDetail:"getConsumerDetail",getExstingCustomerPayload:"getExstingCustomerPayload",clearUnMaskedAlternateCard:"clearUnMaskedAlternateCard",verifyExstingCard:"verifyExstingCard",isPayaCheck:"isPayaCheck",isAlternateTokenCheckPayaCheck:"isAlternateTokenCheckPayaCheck",terminalTypeSelection:"terminalTypeSelection",isDisableReset:"isDisableReset",addBankConfirmation:"addBankConfirmation"},features:[t.TTD],decls:34,vars:31,consts:[["action","",3,"formGroup","ngSubmit"],[1,"form-row",2,"row-gap","7px","margin-top","11px"],["class","col-md-3",4,"ngIf"],[1,"col-md-3",2,"height","54px"],[1,"form__div","col-12","px-0"],["bindValue","name","bindLabel","name","placeholder","Select account type","notFoundText","No accountType selected","formControlName","accountType",1,"ng-expiry-time",3,"items","clearable","searchable","multiple","readonly"],[1,"col-md-3"],[1,"form__div","mb-0","col-12"],["type","text","name","rout
1ingNumber","placeholder"," ","formControlName","routingNumber","autocomplete","off","maxlength","9",1,"form__input",3,"mask","readOnly","focus"],["for","routingNumber",1,"form__label"],["class","input-group-prepend justify-content-end  row","style","padding-top: 12px;",4,"ngIf"],["class","error-message ",4,"ngIf"],["type","text","name","accountNumber","placeholder"," ","formControlName","accountNumber","maxlength","17","autocomplete","off",1,"form__input",3,"mask","readOnly"],["for","accountNumber",1,"form__label"],["class","error-message",4,"ngIf"],["class","col-md-3 ",4,"ngIf"],["class"," col-md-3",4,"ngIf"],["class"," col-md-3 ",4,"ngIf"],["class","col-md-3",3,"ngClass",4,"ngIf"],["class","col-md-4 mt-2",4,"ngIf"],["class"," col-md-4 mt-2",4,"ngIf"],["align","center","styleClass","",4,"ngIf"],["class","form-row",4,"ngIf"],[1,"form__div","mb-0","col-12","px-0"],["bindValue","name","bindLabel","displayName","placeholder","Select sec code","notFoundText","No sec code selected","formControlName","terminalType",1,"ng-expiry-time",3,"items","clearable","searchable","multiple"],[1,"error-message"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],[1,"input-group-prepend","justify-content-end","row",2,"padding-top","12px"],["type","button","class"," col-md-3 font-weight-bold cancel-btn text-right px-0",3,"click",4,"ngIf"],["type","button","class","mdi mdi-close-circle-outline cancel-btn col-md-1 text-right font-weight-bold px-0",3,"click",4,"ngIf"],["type","button",1,"col-md-3","font-weight-bold","cancel-btn","text-right","px-0",3,"click"],["type","button",1,"mdi","mdi-close-circle-outline","cancel-btn","col-md-1","text-right","font-weight-bold","px-0",3,"click"],[4,"ngIf"],["type","text","name","checkNumber","placeholder"," ","formControlName","checkNumber","autocomplete","off","mask","000000000000000","maxlength","15",1,"form__input"],["for","checkNumber",1,"form__label"],["type","text","name","firstName","placeholder"," ","formControlName","firstName","autocomplete","off","maxlength","100","trim","blur",1,"form__input"],["for","firstName",1,"form__label"],["type","text","name","firstName","placeholder"," ","trim","blur","formControlName","lastName","autocomplete","off","maxlength","100",1,"form__input",3,"ngClass"],["for","lastName",1,"form__label"],["type","text","name","companyName","placeholder"," ","trim","blur","formControlName","companyName","autocomplete","off","maxlength","100",1,"form__input",3,"ngClass"],["for","companyName",1,"form__label"],["appZipFormat","","type","text","name","zipCode","formControlName","zipCode","placeholder"," ",1,"form__input"],["for","zipCode",1,"form__label"],["type","text","name","firstName","placeholder"," ","formControlName","city","autocomplete","off","trim","blur","maxlength","50",1,"form__input"],["for","city",1,"form__label"],[1,"col-md-3",3,"ngClass"],[1,"form__div","col-12","mb-0"],["bindValue","state","bindLabel","code","formControlName","state","notFoundText","No state found",1,"ng-expiry-time","margin-align",3,"items","clearable","searchable","multiple","placeholder"],[1,"col-md-4","mt-2"],["placeholder"," ","formControlName","addressOne","maxlength","200","trim","blur",1,"form__input"],["for","float-input",1,"form__label"],["placeholder"," ","maxlength","200","formControlName","addressTwo","trim","blur",1,"form__input"],["align","center","styleClass",""],[1,"mx-1","p-tag"],[1,"form-row"],["type","text","name","DLNumber","placeholder"," ","formControlName","dlNumber","autocomplete","off","maxlength","50",1,"form__input"],["for","DlNumber",1,"form__label"],["bindValue","state","bindLabel","code","formControlName","dlState","notFoundText","No state found",1,"ng-expiry-time","margin-align",3,"items","clearable","searchable","multiple","placeholder"],["type","text","name","ssn","placeholder","","formControlName","ssn","autocomplete","off","mask","0000",1,"form__input"],["for","ssn",1,"form__label"],["type","text","name","BirthYear","placeholder"," ","formControlName","birthYear","autocomplete","off","maxlength","26","mask","0000",1,"form__input"],["for","BirthYear",1,"form__label"]],template:function(x,m){if(1&x&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return m.onTransaction()}),t.TgZ(1,"div",1),t.YNc(2,ie,4,5,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._UZ(5,"ng-select",5),t.qZA()(),t.TgZ(6,"div",6)(7,"div",7)(8,"input",8),t.
1NdJ("focus",function(){return m.verifyAndOpenExistingCardsInfo("routing")}),t.qZA(),t.TgZ(9,"label",9)(10,"h6"),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.YNc(13,$e,3,2,"div",10),t.qZA(),t.YNc(14,ae,2,1,"div",11),t.qZA(),t.TgZ(15,"div",6)(16,"div",7),t._UZ(17,"input",12),t.TgZ(18,"label",13)(19,"h6"),t._uU(20),t.ALo(21,"translate"),t.qZA()()(),t.YNc(22,We,2,1,"div",14),t.qZA(),t.YNc(23,xe,8,5,"div",15),t.YNc(24,C,8,5,"div",16),t.YNc(25,Z,8,11,"div",17),t.YNc(26,he,8,11,"div",17),t.YNc(27,pt,8,6,"div",16),t.YNc(28,bt,8,5,"div",2),t.YNc(29,Qt,4,7,"div",18),t.YNc(30,en,8,5,"div",19),t.YNc(31,Rt,8,5,"div",20),t.qZA(),t.YNc(32,At,3,0,"p-divider",21),t.YNc(33,yn,5,4,"div",22),t.qZA()),2&x){let le,Be;t.Q6J("formGroup",m.cloudPOSForms),t.xp6(2),t.Q6J("ngIf","2"==m.selectedPayaOption),t.xp6(3),t.Q6J("items",m.accountTypeList)("clearable",!1)("searchable",!1)("multiple",!1)("readonly",m.isMaskedCard),t.xp6(3),t.s9C("mask",m.maskedRoutingFormat),t.Q6J("readOnly",m.isMaskedCard),t.xp6(3),t.hij("",t.lcZ(12,27,"htmlText.routingNumber"),"* "),t.xp6(2),t.Q6J("ngIf",m.isMaskedCard),t.xp6(1),t.Q6J("ngIf",(null==(le=m.cloudPOSForms.get("routingNumber"))?null:le.dirty)||(null==(le=m.cloudPOSForms.get("routingNumber"))?null:le.touched)||m.submitted),t.xp6(3),t.s9C("mask",m.maskedAccountFormat),t.Q6J("readOnly",m.isMaskedCard),t.xp6(3),t.hij("",t.lcZ(21,29,"htmlText.accountNumber"),"*"),t.xp6(2),t.Q6J("ngIf",(null==(Be=m.cloudPOSForms.get("accountNumber"))?null:Be.dirty)||(null==(Be=m.cloudPOSForms.get("accountNumber"))?null:Be.touched)||m.submitted),t.xp6(1),t.Q6J("ngIf",m.isTelSecCode),t.xp6(1),t.Q6J("ngIf",!m.isCompanyNameRequired&&(null==m.fieldVisibility?null:m.fieldVisibility.FIRST_NAME)),t.xp6(1),t.Q6J("ngIf",!m.isCompanyNameRequired&&(null==m.fieldVisibility?null:m.fieldVisibility.LAST_NAME)),t.xp6(1),t.Q6J("ngIf",m.isCompanyNameRequired&&(null==m.fieldVisibility?null:m.fieldVisibility.COMPANY_NAME)),t.xp6(1),t.Q6J("ngIf",null==m.fieldVisibility?null:m.fieldVisibility.ZIP),t.xp6(1),t.Q6J("ngIf",null==m.fieldVisibility?null:m.fieldVisibility.CITY),t.xp6(1),t.Q6J("ngIf",null==m.fieldVisibility?null:m.fieldVisibility.STATE),t.xp6(1),t.Q6J("ngIf",null==m.fieldVisibility?null:m.fieldVisibility.ADDRESS1),t.xp6(1),t.Q6J("ngIf",null==m.fieldVisibility?null:m.fieldVisibility.ADDRESS2),t.xp6(1),t.Q6J("ngIf",m.showVerificationSection),t.xp6(1),t.Q6J("ngIf",m.showVerificationSection)}},dependencies:[J.mk,J.O5,_._Y,_.Fj,_.JJ,_.JL,_.nD,_.sg,_.u,de.i,e.xm,Ie.w9,z.hx,Ee.P,Oe.V,ee.X$],styles:['@charset "UTF-8";.address[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.field[_ngcontent-%COMP%]{border:2px solid #e6e6e6;border-radius:2%}.credit-card-icon[_ngcontent-%COMP%]{all:none;width:50px;padding:0!important;margin:2px 0 0!important;height:44px;background-color:#fff}.replace-styles[_ngcontent-%COMP%]{padding:0!important;margin:0!important}.invalid-form-control[_ngcontent-%COMP%]{border-left:5px solid #e91e63!important}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box}.form__title[_ngcontent-%COMP%]{font-weight:400;margin-bottom:3rem}.form__div[_ngcontent-%COMP%]{position:relative;height:48px;margin-bottom:1.5rem}.form__input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:1rem;border:1px solid #DADCE0;border-radius:.5rem;outline:none;padding:1rem;background:none;z-index:1}.form__input[_ngcontent-%COMP%]:disabled{background-color:transparent;opacity:1}.form__label[_ngcontent-%COMP%]{position:absolute;left:1rem;top:1rem;padding:0 .25rem;background-color:#fff;color:#80868b;font-size:1rem;transition:.3s}.form__button[_ngcontent-%COMP%]{display:block;margin-left:auto;padding:.75rem 2rem;outline:none;border:none;background-color:#1a73e8;color:#fff;font-size:1rem;border-radius:.5rem;cursor:pointer;transition:.3s}.form__button[_ngcontent-%COMP%]:hover{box-shadow:0 10px 36px #00000026}.phone-index[_ngcontent-%COMP%]{z-index:2!important}.form__input[_ngcontent-%COMP%]:focus + .form__label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;color:#1a73e8;font-size:.75rem;font-weight:500;z-index:10}input.form__input.open.ng-dirty[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%], input.form__input.open.ng-invalid[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%], input.form__input.open.ng-valid[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;font-size:.75rem;font-weight:500;z-index:10}.form__input.phone[_ngcontent-%COMP%]:focus-within + .form__label[_ngcontent-%COMP%]{color:#1
1a73e8}.form__input[_ngcontent-%COMP%]:not(:placeholder-shown).form__input:not(:focus) + .form__label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;z-index:1;font-size:.75rem;font-weight:500}.form__input[_ngcontent-%COMP%]:focus, .form__input.phone[_ngcontent-%COMP%]:focus-within{border:1.5px solid #1A73E8}.form-style[_ngcontent-%COMP%]{margin-right:-55px}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.form-style[_ngcontent-%COMP%]{margin-right:0!important}  .iti{margin-top:-5px!important;margin-bottom:-5px!important}  .custom-phone{width:90%!important;margin-bottom:-5px!important;margin-top:-5px!important}}.phone-input-field[_ngcontent-%COMP%]{height:15px}ngx-intl-tel-input[_ngcontent-%COMP%]{z-index:2!important}.payment-card-animation[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 15px 2px #dcdcdc}.details-container[_ngcontent-%COMP%]{height:270px;overflow:auto;overflow-x:hidden}.colorChange[_ngcontent-%COMP%]{background-color:#e9ecef!important}.img_size[_ngcontent-%COMP%]{width:52px;height:50px;margin:-15px 12px -15px -15px}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:0}.cancel-btn[_ngcontent-%COMP%]{z-index:2;color:#000}.solid[_ngcontent-%COMP%]{border-top:3px solid #bbb}.ng-select.ng-select-single[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{height:40px!important}.ng-expiry-time[_ngcontent-%COMP%]     .ng-select-container{height:48px!important;border:1px solid #dbdde1!important;border-radius:7px}.ng-expiry-time[_ngcontent-%COMP%]     .ng-select :focus{border:1.5px solid #1A73E8}.ng-expiry-time[_ngcontent-%COMP%] > .ng-select[_ngcontent-%COMP%]   .ng-select-single[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{border:none}
1.ng-expiry-time[_ngcontent-%COMP%]     .ng-select-container input{height:24px}.ng-select.ng-select-single[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{height:47px!important;border:1px solid #dbdde1!important;border-radius:7px!important}.break-up-header[_ngcontent-%COMP%]{width:100%;height:10px;border-bottom:1px solid #1A73E8;text-align:center}.break-up-tag[_ngcontent-%COMP%]{font-size:16px;background-color:#fff;color:#1a73e8;padding:0 3px}.stepper[_ngcontent-%COMP%]   .lines[_ngcontent-%COMP%]{width:2px!important;background-color:#d3d3d3!important}.processing-modal[_ngcontent-%COMP%]{width:40%}.file-upload-button[_ngcontent-%COMP%]{background-color:#1a73e8;border:none;border-color:#1a73e8;height:2rem;overflow:hidden;position:relative;margin-top:10px;width:6rem;color:#fff;border-radius:3px}.file-upload-button[_ngcontent-%COMP%]:after{color:#fff;font-size:1.5rem;text-align:center}.file-upload-button[_ngcontent-%COMP%]   .file-upload-button[_ngcontent-%COMP%]:hover{cursor:pointer}.file-upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:100px;left:0;opacity:0;position:absolute;top:0}.file-info[_ngcontent-%COMP%]{color:#999;font-family:Lato;margin-left:.5rem}.upload-file-info[_ngcontent-%COMP%]{padding-left:8px;padding-top:16px}.blink_me[_ngcontent-%COMP%]{animation:blinker 1s linear infinite}@keyframes blinker{50%{opacity:0}}.input-group[_ngcontent-%COMP%] > .form-control[_ngcontent-%COMP%]:not(:last-child){height:48px;border-radius:8px 0 0 8px;border:1px solid #dbdde1!important}.file-confirmation-width[_ngcontent-%COMP%]{width:40%!important}.custom-fee-width[_ngcontent-%COMP%]{width:20%!important}.custom-fee-body-width[_ngcontent-%COMP%]{width:100%!important}.paymentMode[_ngcontent-%COMP%]{width:45px;height:45px}.add-invoice[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}.input-btn[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:12px;border:none;font-size:16px;background:none;cursor:pointer;z-index:10}.address1[_ngcontent-%COMP%]{border-radius:10px}.margin-align[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}.display-align[_ngcontent-%COMP%]{display:grid}.disable-content[_ngcontent-%COMP%]{cursor:not-allowed}.payaModal[_ngcontent-%COMP%]{font-size:16px}textarea[_ngcontent-%COMP%]{overflow-y:scroll}.description_input[_ngcontent-%COMP%], .description_input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:90px!important}.description_input[_ngcontent-%COMP%]   ngb-alert[_ngcontent-%COMP%]{margin-top:6.5em!important}.description_input_send_link[_ngcontent-%COMP%], .description_input_send_link[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:90px!important}.description_input_send_link[_ngcontent-%COMP%]   ngb-alert[_ngcontent-%COMP%]{margin-top:3em!important}.text-color[_ngcontent-%COMP%]{color:#80868b}.text_align_left[_ngcontent-%COMP%]{text-align:left}.input-btn[_ngcontent-%COMP%]:focus{outline:1px solid gray;border-radius:12px}.paddingZero[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.border-around[_ngcontent-%COMP%]{border:2px solid #e6e6e6}.get-cust[_ngcontent-%COMP%]{position:absolute;right:0}.disable[_ngcontent-%COMP%]{pointer-events:none!important;cursor:pointer!important}.border-dark-bottom[_ngcontent-%COMP%]{border-bottom:1px solid grey!important}.border-light-bottom[_ngcontent-%COMP%]{border-bottom:1px solid #faf4f4!important}pdf-container[_ngcontent-%COMP%]{font-family:Arial,sans-serif;margin:20px}.controls[_ngcontent-%COMP%]{margin-bottom:20px;text-align:center}.btn-generate[_ngcontent-%COMP%]{background-color:#1976d2;color:#fff;border:none;padding:10px 15px;border-radius:4px;margin-right:10px;cursor:pointer;font-size:14px}.btn-generate[_ngcontent-%COMP%]:hover{background-color:#135ba1}.invoice-template[_ngcontent-%COMP%]{max-width:800px;margin:0 auto;padding:20px;border:1px solid #ddd;background-color:#fff}.invoice-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.invoice-header[_ngcontent-%COMP%]   .logo-area[_ngcontent-%COMP%]{flex:1}.invoice-header[_ngcontent-%COMP%]   .logo-area[_ngcontent-%COMP%]   .logo-placeholder[_ngcontent-%COMP%]{height:60px;
1width:200px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5;border:1px solid #ddd;font-weight:700}.invoice-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{flex:2;text-align:center}.invoice-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-top:0;margin-bottom:10px}.invoice-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0;font-size:12px}.invoice-header[_ngcontent-%COMP%]   .invoice-info[_ngcontent-%COMP%]{flex:1}.invoice-header[_ngcontent-%COMP%]   .invoice-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0;font-size:12px}.customer-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:12px}.customer-section[_ngcontent-%COMP%]   .customer-info[_ngcontent-%COMP%], .customer-section[_ngcontent-%COMP%]   .customer-details[_ngcontent-%COMP%], .customer-section[_ngcontent-%COMP%]   .page-info[_ngcontent-%COMP%]{flex:1}.customer-section[_ngcontent-%COMP%]   .customer-name[_ngcontent-%COMP%]{font-weight:700}.customer-section[_ngcontent-%COMP%]   .page-info[_ngcontent-%COMP%]{text-align:right}.customer-section[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:700}.customer-section[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:3px 0}.vehicle-info[_ngcontent-%COMP%]{margin-bottom:20px}.vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:12px}.vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:5px;border:1px solid #ddd;text-align:left}.vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#f5f5f5;font-weight:700}.vehicle-info[_ngcontent-%COMP%]   table.delivery-info[_ngcontent-%COMP%]{margin-top:10px}.vehicle-info[_ngcontent-%COMP%]   table.delivery-info[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:700;font-size:10px}.service-details[_ngcontent-%COMP%]{margin-bottom:20px}.service-details[_ngcontent-%COMP%]   .service-header[_ngcontent-%COMP%]{display:flex;background-color:#f5f5f5;padding:5px 0;font-weight:700;font-size:11px;border-bottom:1px solid #aaa}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]{font-size:11px}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]{margin-bottom:10px}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .line-id[_ngcontent-%COMP%]{font-weight:700;padding:5px 0}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .operation-row[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .part-row[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .line-total[_ngcontent-%COMP%]{display:flex;padding:3px 0}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .part-row[_ngcontent-%COMP%]   .part-description[_ngcontent-%COMP%]{font-style:italic}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .line-total[_ngcontent-%COMP%]{font-weight:700}.service-details[_ngcontent-%COMP%]   .col-line[_ngcontent-%COMP%]{width:8%}.service-details[_ngcontent-%COMP%]   .col-opcode[_ngcontent-%COMP%]{width:25%}.service-details[_ngcontent-%COMP%]   .col-tech[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-type[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-hours[_ngcontent-%COMP%]{width:5%}.service-details[_ngcontent-%COMP%]   .col-list[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-net[_ngcontent-%COMP%]{width:10%}.service-details[_ngcontent-%COMP%]   .col-cash[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-card[_ngcontent-%COMP%]{width:15%;text-align:right}.totals-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}.totals-section[_ngcontent-%COMP%]   .pricing-notice[_ngcontent-%COMP%]{flex:3;font-size:12px;color:#d32f2f}.totals-section[_ngcontent-%COMP%]   .pricing-notice[_ngcontent-%COMP%]   h4[_ng
1content-%COMP%]{margin-top:0;margin-bottom:5px}.totals-section[_ngcontent-%COMP%]   .pricing-notice[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:5px 0}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]{flex:1;border:1px solid #ddd;padding:10px}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:5px 0;font-weight:700}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]   .total-label[_ngcontent-%COMP%]{flex:1}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]   .total-value[_ngcontent-%COMP%]{flex:1;text-align:right}.footer[_ngcontent-%COMP%]{font-size:8px;color:#666}.bold[_ngcontent-%COMP%]{font-weight:700}.app-container[_ngcontent-%COMP%]{font-family:Arial,sans-serif;max-width:1200px;margin:0 auto;padding:20px}header[_ngcontent-%COMP%]{text-align:center;margin-bottom:30px}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#333;margin:0;padding:15px 0;border-bottom:2px solid #eee}main[_ngcontent-%COMP%]{min-height:calc(100vh - 200px)}.table-container[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;border:1px solid rgba(224,211,211,.5294117647)}.table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid rgba(224,211,211,.5294117647);padding:10px;text-align:left;font-size:10px}.table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#f0f0f0}.pay-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-weight:700;font-size:10px;padding-top:0;padding-bottom:0}.fetch-btn[_ngcontent-%COMP%]{height:48px!important;margin-left:-89px!important;z-index:9!important}.fetch-loading[_ngcontent-%COMP%]{z-index:9!important}.fee-card[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;box-shadow:0 0 0 1px #f1f1f5}.w-48[_ngcontent-%COMP%]{width:48%!important}.arrow-class[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;transition:transform .25s ease-in-out}.arrow-class.arrow-open[_ngcontent-%COMP%]{transform:rotate(180deg)}.disabled-link[_ngcontent-%COMP%]{pointer-events:none;opacity:.5;cursor:not-allowed}.disabled-arrow[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.breakdown-container[_ngcontent-%COMP%]{max-height:0;overflow:hidden;opacity:0;transform:translateY(-4px);margin-top:0;padding-top:0;padding-bottom:0;transition:max-height .25s ease-in-out,opacity .25s ease-in-out,margin-top .25s ease-in-out,padding .25s ease-in-out,transform .25s ease-in-out}.breakdown-container.is-open[_ngcontent-%COMP%]{max-height:1000px;opacity:1;transform:translateY(0);margin-top:.5rem;padding-top:.5rem;padding-bottom:.5rem}.paymentModes.payment-mode-locked[_ngcontent-%COMP%], .paymentModeParentDiv.payment-mode-locked[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed}@media (max-width: 768px){.custom-fee-width[_ngcontent-%COMP%]{width:80%!important}.w-48[_ngcontent-%COMP%]{width:100%!important}}.amount-field[_ngcontent-%COMP%]{position:relative;width:320px;margin:0 auto 24px}.floating-label[_ngcontent-%COMP%]{position:absolute;top:-9px;left:16px;background:#ffffff;padding:0 6px;font-size:13px;color:#8b95a5}.floating-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#e11d48}.amount-box[_ngcontent-%COMP%]{border:1px solid #dbe2ef;border-radius:14px;padding:18px 20px;display:flex;align-items:center;gap:12px}.amount-box[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:18px;color:#6b7280}.amount-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;outline:none;font-size:20px;font-weight:700;width:100%}.fee-breakdown[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:15px;margin-bottom:24px}.total[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%], #total[_ngcontent-%COMP%]{font-weight:500;margin-right:6px;color:#6b7280}.total[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#111827;font-weight:600}.breakdown-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#6b7280;cursor:pointer}.breakdown-toggle.disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:none;cursor:not-allowed}.breakdown-toggle[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #6b7280;transition:transform .3s cubic-bezier(.4,0,.2,1)}.breakdown-toggle.open[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.d-flex.align-items-center.justify-content-center[_ngcontent-%COMP%] >
1 .mdi-arrow-down-circle[_ngcontent-%COMP%]{display:none!important}.mdi-arrow-down-circle[_ngcontent-%COMP%]:before{content:none!important;display:none!important}.remove-icon[_ngcontent-%COMP%]{width:18px;height:18px;object-fit:contain}.fee-breakdown[_ngcontent-%COMP%]{width:100%;display:block;margin:0 auto;padding:0;box-sizing:border-box}.fee-breakdown.fee-breakdown-post-action-centered[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.fee-breakdown.fee-breakdown-post-action-centered[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]{width:fit-content;margin-left:auto;margin-right:auto;justify-content:center}.breakdown[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #dbe2ef;border-radius:5px;width:fit-content;max-width:calc(100% - 16px);margin-left:auto;margin-right:auto;box-sizing:border-box;justify-content:center;max-height:0;opacity:0;overflow:hidden;visibility:hidden;transform:translateY(-10px);padding:0 20px;transition:max-height .4s cubic-bezier(.4,0,.2,1),opacity .2s ease-out,transform .4s cubic-bezier(.4,0,.2,1),padding .4s cubic-bezier(.4,0,.2,1),margin .4s cubic-bezier(.4,0,.2,1)}.breakdown.visible[_ngcontent-%COMP%]{max-height:500px;opacity:1;visibility:visible;transform:translateY(0);padding:10px 18px;transition:max-height .4s cubic-bezier(.4,0,.2,1),opacity .2s ease-out,transform .4s cubic-bezier(.4,0,.2,1),padding .4s cubic-bezier(.4,0,.2,1),margin .4s cubic-bezier(.4,0,.2,1)}.breakdown-surcharge-msg[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center;margin:6px 0 0;padding:0;max-width:100%;text-align:center;font-size:13px;font-weight:600;line-height:1.35;color:#374151;text-transform:none}.breakdown-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 10px max-content max-content 20px max-content 10px max-content max-content;grid-auto-rows:minmax(0,max-content);column-gap:6px;row-gap:6px;justify-content:center;align-items:center;width:fit-content;max-width:100%;transition:row-gap .38s ease}.breakdown-columns.breakdown-columns-single[_ngcontent-%COMP%]{grid-template-columns:max-content 10px max-content max-content;margin-left:auto;margin-right:auto}.breakdown-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:subgrid;align-items:center;box-sizing:border-box;max-height:48px;overflow:hidden;animation:breakdown-row-in .38s ease;transition:max-height .38s cubic-bezier(.4,0,.2,1),opacity .38s ease,transform .38s ease,margin .38s ease,padding .38s ease,filter .38s ease}.breakdown-item.breakdown-left[_ngcontent-%COMP%]{grid-column:1/span 4}.breakdown-item.breakdown-single[_ngcontent-%COMP%]{grid-column:1/span 4;justify-self:center}.breakdown-item.breakdown-right[_ngcontent-%COMP%]{grid-column:6/span 4}.breakdown-item.breakdown-row-top[_ngcontent-%COMP%]{grid-row:1}.breakdown-item.breakdown-row-bottom[_ngcontent-%COMP%]{grid-row:2}.breakdown-item.item-state[_ngcontent-%COMP%], .breakdown-item.item-secondary[_ngcontent-%COMP%]{transition:max-height .38s cubic-bezier(.4,0,.2,1),opacity .38s ease,transform .38s ease,margin .38s ease,padding .38s ease,filter .38s ease,grid-row .38s cubic-bezier(.4,0,.2,1),grid-column .38s cubic-bezier(.4,0,.2,1)}.breakdown-item.is-removing[_ngcontent-%COMP%]{opacity:0;transform:scale(.96);filter:blur(.8px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;pointer-events:none}@keyframes breakdown-row-in{0%{opacity:0;transform:translateY(-6px);max-height:0}to{opacity:1;transform:translateY(0);max-height:48px}}@supports not (grid-template-columns: subgrid){.breakdown-item[_ngcontent-%COMP%]{display:contents;max-height:none;overflow:visible;animation:none;transition:none}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%]{grid-column:1;justify-self:end}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%]{grid-column:2;justify-self:center}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%]{grid-column:3;justify-self:start}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{grid-column:4;justify-self:center}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%]{grid-column:6;justify-self:end}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%]{grid-column:7;justify-self:center}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%]{grid-column:8;justify-self:start}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{grid-column:9;justify-self:center}.breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%], .breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%], .breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%], .breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{opacity:0;transform:scale(.96);filter:blur(.8px);pointer-events:none;transition:opacity .38s ease,transform .38s ease,filter .38s ease}}.breakdown-label[_ngcontent-%COMP%]{font-size:14px;color:#8a8f98;font-weight:500;white-space:nowrap;text-align:right;justify-self:end;line-height:1.15;box-sizing:border-box;padding:4px 0;text-transform:none}.breakdown-colon[_ngcontent-%COMP%]{width:10px;text-align:center;color:#8a8f98;font-weight:500;line-height:1.15;padding:4px 0}.breakdown-value[_ngcontent-%COMP%]{font-size:14px;display:block;text-align:left;justify-self:start;white-space:nowrap;font-weight:600;color:#111;font-variant-numeric:tabular-nums;box-sizing:border-box;padding:4px 0}.breakdown-remove[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;min-height:18px;padding:0;cursor:pointer;flex-shrink:0}.breakdown-remove[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .breakdown-remove[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:18px;height:18px;display:block;line-height:1}.danger-icon[_ngcontent-%COMP%]{color:#dc2626}.breakdown-remove[_ngcontent-%COMP%]   i.danger-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:18px}.breakdown-remove[_ngcontent-%COMP%]   i.danger-icon[_ngcontent-%COMP%]:before{line-height:18px}.breakdown-remove.placeholder[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}.breakdown-remove.placeholder[_ngcontent-%COMP%]:before{content:"";display:block;width:18px;height:18px}@media (max-width: 520px){.breakdown-columns[_ngcontent-%COMP%]{grid-template-columns:max-content 10
1px max-content max-content;row-gap:16px}.breakdown-item.breakdown-left[_ngcontent-%COMP%], .breakdown-item.breakdown-right[_ngcontent-%COMP%]{grid-column:1/span 4}@supports not (grid-template-columns: subgrid){.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%]{grid-column:1}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%]{grid-column:2}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%]{grid-column:3}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{grid-column:4}}}.payment-label[_ngcontent-%COMP%]{top:-1rem!important}']}),P})()},19730:(Te,G,r)=>{"use strict";r.d(G,{E:()=>Le});var i=r(22560),t=r(58987),_=r(40929),g=r(10092),T=r(59462),v=r(33507),I=r(19787),w=r(94666),A=r(42201),b=r(12735);function D(Z,pe){1&Z&&(i.TgZ(0,"h5",9),i._UZ(1,"span",10),i._uU(2," Processing your request"),i.qZA())}function e(Z,pe){1&Z&&(i.TgZ(0,"h5",9),i._UZ(1,"span",10),i._uU(2," MFA is Required to Process Payment"),i.qZA())}function n(Z,pe){1&Z&&(i.TgZ(0,"h5"),i._UZ(1,"span",11),i._uU(2,"Payment Successful"),i.qZA())}function f(Z,pe){1&Z&&(i.TgZ(0,"h5"),i._UZ(1,"span",11),i._uU(2,"Payment Declined"),i.qZA())}function S(Z,pe){1&Z&&(i.TgZ(0,"h5"),i._UZ(1,"span",11),i._uU(2,"Payment Link Generated"),i.qZA())}function J(Z,pe){if(1&Z&&(i.ynx(0),i.YNc(1,n,3,0,"h5",3),i.YNc(2,f,3,0,"h5",3),i.YNc(3,S,3,0,"h5",3),i.BQk()),2&Z){const k=i.oxw();i.xp6(1),i.Q6J("ngIf",!k.isLoading&&"00"==k.status&&null==k.content),i.xp6(1),i.Q6J("ngIf",!k.isLoading&&"00"!=k.status&&null==k.content&&!k.isAchAdded),i.xp6(1),i.Q6J("ngIf",!k.isLoading&&null==k.status&&null!=k.content)}}function de(Z,pe){1&Z&&(i.TgZ(0,"h5"),i._UZ(1,"span",11),i._uU(2,"Add Bank"),i.qZA())}function Ie(Z,pe){1&Z&&(i.TgZ(0,"div",12)(1,"div",13)(2,"span",14),i._uU(3,"Loading..."),i.qZA()()())}function z(Z,pe){1&Z&&(i.TgZ(0,"div")(1,"p",20),i._uU(2,"The bank has been successfully added to the customer."),i.qZA()())}function Ee(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.O4$(),i.TgZ(1,"svg",16),i._UZ(2,"circle",17)(3,"polyline",18),i.qZA(),i.kcU(),i.TgZ(4,"h3",19),i._uU(5,"Success!"),i.qZA(),i.YNc(6,z,3,0,"div",3),i.qZA()),2&Z){const k=i.oxw();i.xp6(6),i.Q6J("ngIf",1!=k.validateCard)}}function Oe(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.O4$(),i.TgZ(1,"svg",16),i._UZ(2,"circle",21)(3,"line",22)(4,"line",23),i.qZA(),i.kcU(),i.TgZ(5,"h3",24),i._uU(6,"Failed!"),i.qZA(),i.TgZ(7,"div")(8,"p",20),i._uU(9),i.qZA()()()),2&Z){const k=i.oxw();i.xp6(9),i.Oqu(null!=k.errorMessage&&k.errorMessage.length?k.errorMessage:"We couldn't add the bank account. Please try again.")}}function ee(Z,pe){if(1&Z&&(i.TgZ(0,"p",20),i._uU(1,"Receipt has been sent to "),i.TgZ(2,"b"),i._UZ(3,"span",26),i._uU(4),i.qZA()()),2&Z){const k=i.oxw(4);i.xp6(4),i.hij(" ",k.isEmail,"")}}function Me(Z,pe){if(1&Z&&(i.TgZ(0,"p",20),i._uU(1,"Sms has been sent to "),i.TgZ(2,"b"),i._UZ(3,"span",27),i._uU(4),i.qZA()()),2&Z){const k=i.oxw(4);i.xp6(4),i.Oqu(k.isPhoneNumber)}}function R(Z,pe){if(1&Z&&(i.TgZ(0,"p",20)(1,"b"),i._uU(2,"Response : "),i._UZ(3,"span",28),i._uU(4),i.qZA()()),2&Z){const k=i.oxw(4);i.xp6(4),i.Oqu(null==k.customField?null:k.customField.isRespMessage)}}function W(Z,pe){if(1&Z&&(i.TgZ(0,"p",20),i._uU(1),i.qZA()),2&Z){const k=i.oxw(4);i.xp6(1),i.hij(" ",k.customLabel," not added for this transaction")}}function ie(Z,pe){if(1&Z&&(i.TgZ(0,"p",20)(1,"b"),i._uU(2),i.qZA()()),2&Z){const k=i.oxw(4);i.xp6(2),i.Oqu(k.customLabel)}}function ye(Z,pe){if(1&Z&&(i.TgZ(0,"p",20),i._uU(1,"You saved "),i.TgZ(2,"b"),i._uU(3),i.ALo(4,"currency"),i.qZA()()),2&Z){const k=i.oxw(4);i.xp6(3),i.Oqu(i.lcZ(4,1,k.savedAmt/100))}}function Ue(Z,pe){if(1&Z&&(i.TgZ(0,"p",20)(1,"b"),i._uU(2),i.qZA()()),2&Z){const k=i.oxw(4);i.xp6(2),i.Oqu(k.customLabel)}}function $e(Z,pe){if(1&Z&&(i.TgZ(0,"div")(1,"p",20),i._uU(2,"Your "),i.TgZ(3,"b"),i._uU(4),i.ALo(5,"titlecase"),i.qZA(),i._uU(6," transaction of "),i.TgZ(7,"b"),i._uU(8),i.ALo(9,"currency"),i.qZA(),i._uU(10," has been processed successfully."),i.qZA(),i.YNc(11,ee,5,1,"p",25),i.YNc(12,Me,5,1,"p",25),i.YNc(13,R,5,1,"p",25),i.YNc(14,W,2,1,"p",25),i.YNc(15,ie,3,1,"p",25),i.YNc(16,ye,5,3,"p",25),i.YNc(17,Ue,3,1,"p",25),i.qZA()),2&Z){const k=i.oxw(3);i.xp6(4),i.AsE("","Bank"===k.paymentMode?"ACH":k.paymentMode," ",i.lcZ(5,10,k.transactionType),""),i.xp6(4),i.Oqu(i.lcZ(9,12,k.amount/100)),i.xp6(3),i.Q6J("ngIf",k.isEmail),i.xp6(1),i.Q6J("ngIf",k.isPhoneNumber),i.xp6(1),i.Q6J("ngIf",null==k.customField?null:k.customField.isRespMessage),i.xp6(1),i.Q6J("ngIf",1==k.issurcharge),i.xp6(1),i.Q6J("ngIf",1==k.isTCDF),i.xp6(1),i.Q6J("ngIf",1==k.isTCDF),i.xp6(1),i.Q6J("ngIf",1==k.isDCDF)}}function ke(Z,pe){1&Z&&(i.TgZ(0,"p",20),i._uU(1,"Card has been validated successfully"),i.qZA())}function Re(Z,pe){if(1&Z&&(i.TgZ(0,"p",20),i._uU(1,"Change due : "),i.TgZ(2,"b"),i._uU(3),i.ALo(4,"currency"),i.qZA()()),2&Z){const k=i.oxw(3);i.xp6(3),i.Oqu(i.lcZ(4,1,k.cashChange))}}function F(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.O4$(),i.TgZ(1,"svg",16),i._UZ(2,"circle",17)(3,"polyline",18),i.qZA(),i.kcU(),i.TgZ(4,"h3",19),i._uU(5,"Approved !"),i.qZA(),i.YNc(6,$e,18,14,"div",3),i.YNc(7,ke,2,0,"p",25),i.YNc(8,Re,5,3,"p",25),i.qZA()),2&Z){const k=i.oxw(2);i.xp6(6),i.Q6J("ngIf",1!=k.validateCard),i.xp6(1),i.Q6J("ngIf",1==k.validateCard),i.xp6(1),i.Q6J("ngIf",k.isCashChange)}}function Q(Z,pe){1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",31),i._uU(1,"Declined Transaction "),i.qZA())}function ae(Z,pe){1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",31),i._uU(1,"Sending payment link failed"),i.qZA())}function H(Z,pe){if(1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",32),i._uU(1,"Reason "),i.TgZ(2,"b"),i._uU(3),i.qZA()()),2&Z){const k=i.oxw(3);i.xp6(3),i.Oqu(k.errorMessage)}}function ge(Z,pe){1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",31),i._uU(1,"Declined Validation"),i.qZA())}function Se(Z,pe){1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",31),i._uU(1,"Your card validation is failed"),i.qZA())}function Je(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.O4$(),i.TgZ(1,"svg",16),i._UZ(2,"circle",21)(3,"line",22)(4,"line",23),i.qZA(),i.YNc(5,Q,2,0,"p",29),i.YNc(6,ae,2,0,"p",29),i.YNc(7,H,4,1,"p",30),i.YNc(8,ge,2,0,"p",29),i.YNc(9,Se,2,0,"p",29),i.qZA()),2&Z){const k=i.oxw(2);i.xp6(5),i.Q6J("ngIf",0!=k.validateCard&&1!=k.validateCard),i.xp6(1),i.Q6J("ngIf",k.paymentFailureText),i.xp6(1),i.Q6J("ngIf",1!=k.validateCard),i.xp6(1),i.Q6J("ngIf",1==k.validateCard),i.xp6(1),i.Q6J("ngIf",1==k.validateCard)}}function We(Z,pe){if(1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",20),i._uU(1,"Email has been sent to "),i.TgZ(2,"b"),i._UZ(3,"span",26),i._uU(4),i.qZA()()),2&Z){const k=i.oxw(3);i.xp6(4),i.hij(" ",k.isEmail,"")}}function He(Z,pe){if(1&Z&&(i.O4$(),i.kcU(),i.TgZ(0,"p",20),i._uU(1,"Sms has been sent to "),i.TgZ(2,"b"),i._UZ(3,"span",27),i._uU(4),i.qZA()()),2&Z){const k=i.oxw(3);i.xp6(4),i.Oqu(k.isPhoneNumber)}}function et(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.O4$(),i.TgZ(1,"svg",33),i._UZ(2,"circle",17)(3,"polyline",18),i.qZA(),i.YNc(4,We,5,1,"p",25),i.YNc(5,He,5,1,"p",25),i.qZA()),2&Z){const k=i.oxw(2);i.xp6(4),i.Q6J("ngIf",k.isEmail),i.xp6(1),i.Q6J("ngIf",k.isPhoneNumber)}}function qe(Z,pe){1&Z&&i._UZ(0,"p-message",38)}function at(Z,pe){1&Z&&i._UZ(0,"p-message",39)}function tt(Z,pe){if(1&Z&&(i.ynx(0),i.YNc(1,qe,1,0,"p-message",36),i.YNc(2,at,1,0,"p-message",37),i.BQk()),2&Z){const k=i.oxw(3);i.xp6(1),i.Q6J("ngIf",k.isL2L3Loading),i.xp6(1),i.Q6J("ngIf",!k.isL2L3Loading)}}function se(Z,pe){if(1&Z&&i._UZ(0,"p-message",40),2&Z){const k=i.oxw(3);i.Q6J("text",k.L2L3ErrorMessage)}}function xe(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.YNc(1,tt,3,2,"ng-container",34),i.YNc(2,se,1,1,"ng-template",null,35,i.W1O),i._UZ(4,"p",20)(5,"p",20),i.qZA()),2&Z){const k=i.MAs(3),Fe=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!Fe.isL2L3Error)("ngIfElse",k)}}function B(Z,pe){1&Z&&i._UZ(0,"p-message",44)}function $(Z,pe){if(1&Z&&i._UZ(0,"p-message",45),2&Z){const k=i.oxw(4);i.Q6J("text",k.qbSuccessMessage)}}function be(Z,pe){if(1&Z&&(i.ynx(0),i.YNc(1,B,1,0,"p-message",42),i.YNc(2,$,1,1,"p-message",43),i.BQk()),2&Z){const k=i.oxw(3);i.xp6(1),i.Q6J("ngIf",!k.isLineItemProcessed),i.xp6(1),i.Q6J("ngIf",k.isLineItemProcessed)}}function Ze(Z,pe){if(1&Z&&i._UZ(0,"p-message",40),2&Z){const k=i.oxw(3);i.Q6J("text",k.lineItemErrorMessage)}}function O(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.YNc(1,be,3,2,"ng-container",34),i.YNc(2,Ze,1,1,"ng-template",null,41,i.W1O),i._UZ(4,"p",20),i.qZA()),2&Z){const k=i.MAs(3),Fe=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!Fe.isLineItemError)("ngIfElse",k)}}function ce(Z,pe){1&Z&&i._UZ(0,"p-message",47)}function C(Z,pe){if(1&Z&&i._UZ(0,"p-message",45),2&Z){const k=i.oxw(3);i.Q6J("text",k.fortSuccessMessage)}}function M(Z,pe){1&Z&&(i.TgZ(0,"p",20),i._uU(1,"Invoice status will be updated shortly."),i.qZA())}function j(Z,pe){if(1&Z&&(i.TgZ(0,"div",15),i.ynx(1),i.YNc(2,ce,1,0,"p-message",46),i.YNc(3,C,1,1,"p-message",43),i.YNc(4,M,2,0,"p",25),i.BQk(),i.qZA()),2&Z){const k=i.oxw(2);i.xp6(2),i.Q6J("ngIf",!k.isFortellisProcessed),i.xp6(1),i.Q6J("ngIf",k.isFortellisProcessed),i.xp6(1),i.Q6J("ngIf",k.isFortellisProcessed)}}function X(Z,pe){if(1&Z&&(i.TgZ(0,"div"),i.YNc(1,F,9,3,"div",6),i.YNc(2,Je,10,5,"div",6),i.YNc(3,et,6,2,"div",6),i.YNc(4,xe,6,2,"div",6),i.YNc(5,O,5,2,"div",6),i.YNc(6,j,5,3,"div",6),i.qZA()),2&Z){const k=i.oxw();i.xp6(1),i.Q6J("ngIf",!k.isLoading&&"00"==k.status&&null==k.content&&!k.isAchAdded),i.xp6(1),i.Q6J("ngIf",!k.isLoading&&"00"!=k.status&&null==k.content&&!k.isAchAdded),i.xp6(1),i.Q6J("ngIf",!k.isLoading&&null!=k.content),i.xp6(1),i.Q6J("ngIf",k.isL2L3Applicable),i.xp6(1),i.Q6J("ngIf",k.isLineItemEnabled),i.xp6(1),i.Q6J("ngIf",k.isFortellisEnabled)}}function fe(Z,pe){if(1&Z){const k=i.EpF();i.TgZ(0,"app-multi-factor-auth",48),i.NdJ("afterSuccessVerifyOtp",function(Qe){i.CHM(k);const nt=i.oxw();return i.KtG(nt.afterSuccessVerifyOtp(Qe))})("onBack",function(Qe){i.CHM(k);const nt=i.oxw();return i.KtG(nt.onBack(Qe))}),i.qZA()}if(2&Z){const k=i.oxw();i.Q6J("title",k.mfaTitle)("content",k.mfaContent)("mfaData",k.mfaData)("apiName",k.apiName)("formData",k.formData)("showBackButton",k.showBackButton)("httpOptions",k.httpOptions)}}function E(Z,pe){if(1&Z){const k=i.EpF();
1i.TgZ(0,"button",53),i.NdJ("click",function(){i.CHM(k);const Qe=i.oxw(2);return i.KtG(Qe.copyLink())}),i._UZ(1,"i",54),i._uU(2,"Copy Link"),i.qZA()}}function K(Z,pe){if(1&Z){const k=i.EpF();i.TgZ(0,"div",15)(1,"button",55),i.NdJ("click",function(){i.CHM(k);const Qe=i.oxw(2);return i.KtG(Qe.openViewReceipt("MC"))}),i._uU(2," Merchant Copy"),i.qZA(),i.TgZ(3,"button",56),i.NdJ("click",function(){i.CHM(k);const Qe=i.oxw(2);return i.KtG(Qe.openViewReceipt("CC"))}),i._uU(4," Customer Copy"),i.qZA()()}}function te(Z,pe){if(1&Z){const k=i.EpF();i.TgZ(0,"div",49)(1,"div",50),i.YNc(2,E,3,0,"button",51),i.TgZ(3,"button",52),i.NdJ("click",function(){i.CHM(k);const Qe=i.oxw();return i.KtG(Qe.onClose())}),i._uU(4,"Close"),i.qZA()(),i.YNc(5,K,5,0,"div",6),i.qZA()}if(2&Z){const k=i.oxw();i.Q6J("ngClass",k.commonService.isMobileView?"row top-width":"d-flex"),i.xp6(1),i.Q6J("ngClass",k.commonService.isMobileView?"mb-2 mx-2":""),i.xp6(1),i.Q6J("ngIf",null!=k.paymentLink),i.xp6(3),i.Q6J("ngIf","00"==k.status&&k.transactionId)}}let Le=(()=>{class Z{constructor(k,Fe,Qe,nt,gt){this.activeModal=k,this.clipboard=Fe,this.router=Qe,this.commonService=nt,this.authService=gt,this.isLoading=!1,this.isAchAdded="",this.paymentMode="",this.issurcharge=!1,this.isTCDF=!1,this.isDCDF=!1,this.customLabel="Surcharge",this.paymentFailureText=!1,this.isFortellisEnabled=!1,this.isFortellisProcessed=!1,this.customField={isRespMessage:""},this.isL2L3Loading=!1,this.isL2L3Applicable=!1,this.isL2L3Error=!1,this.L2L3ErrorMessage="Something wrong !",this.isLineItemEnabled=!1,this.isLineItemProcessed=!1,this.isLineItemError=!1,this.lineItemErrorMessage="Something wrong !",this.qbSuccessMessage="Successfully uploaded Quick Book details !",this.transactionId=null,this.isAlter=!1,this.isMfaEnabled=!1,this.isCashChange=!1,this.httpOptions={},this.afterSuccess=new i.vpe,this.onSuccessClose=new i.vpe,this.httpOptions=this.tranasctionTimeout>0?{headers:new t.WM({Authorization:`Bearer ${this.authService.getUser.pgAccessToken}`,withCredentials:"false",timeout:""+1e3*this.tranasctionTimeout})}:{headers:new t.WM({Authorization:`Bearer ${this.authService.getUser.pgAccessToken}`,withCredentials:"false"})}}ngOnInit(){}onClose(){"00"===this.status&&this.onSuccessClose.emit(),this.activeModal.close("close")}copyLink(){this.clipboard.copy(this.paymentLink)}openViewReceipt(k){window.open(`/view-receipt/${this.transactionId}/${k}?alter=${this.isAlter}&idType=transactionId`,"_blank")}afterSuccessVerifyOtp(k){this.afterSuccess.next(k)}onBack(k){this.activeModal.close()}}return Z.\u0275fac=function(k){return new(k||Z)(i.Y36(_.Kz),i.Y36(g.TU),i.Y36(T.F0),i.Y36(v.v),i.Y36(I.e))},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["app-payment-status"]],inputs:{isLoading:"isLoading",isAchAdded:"isAchAdded",isEmail:"isEmail",paymentMode:"paymentMode",amount:"amount",isPhoneNumber:"isPhoneNumber",transactionType:"transactionType",status:"status",errorMessage:"errorMessage",content:"content",paymentLink:"paymentLink",issurcharge:"issurcharge",isTCDF:"isTCDF",isDCDF:"isDCDF",savedAmt:"savedAmt",customLabel:"customLabel",paymentFailureText:"paymentFailureText",isFortellisEnabled:"isFortellisEnabled",isFortellisProcessed:"isFortellisProcessed",fortSuccessMessage:"fortSuccessMessage",customField:"customField",validateCard:"validateCard",isL2L3Loading:"isL2L3Loading",isL2L3Applicable:"isL2L3Applicable",isL2L3Error:"isL2L3Error",L2L3ErrorMessage:"L2L3ErrorMessage",isLineItemEnabled:"isLineItemEnabled",isLineItemProcessed:"isLineItemProcessed",isLineItemError:"isLineItemError",lineItemErrorMessage:"lineItemErrorMessage",qbSuccessMessage:"qbSuccessMessage",transactionId:"transactionId",isAlter:"isAlter",isMfaEnabled:"isMfaEnabled",mfaData:"mfaData",mfaTitle:"mfaTitle",mfaContent:"mfaContent",apiName:"apiName",formData:"formData",showBackButton:"showBackButton",isCashChange:"isCashChange",cashChange:"cashChange",tranasctionTimeout:"tranasctionTimeout"},outputs:{afterSuccess:"afterSuccess",onSuccessClose:"onSuccessClose"},decls:13,vars:10,consts:[[1,"card","card-list-bg"],[1,"card-header","list-header","d-flex","justify-content-between"],["class","loading",4,"ngIf"],[4,"ngIf"],[1,"card-body"],["class","text-center m-5 p-5",4,"ngIf"],["class","text-center",4,"ngIf"],["widthClass","col-md-12 col-xl-12","native","component",3,"title","content","mfaData","apiName","formData","showBackButton","httpOptions","afterSuccessVerifyOtp","onBack",4,"ngIf"],["class","card-footer justify-content-end",3,"ngClass",4,"ngIf"],[1,"loading"],["aria-hidden","",1,"mdi","mdi-bank-transfer"],["aria-hidden","",1,"mdi","mdi-bank-check","mr-1"],[1,"text-center","m-5","p-5"],["role","status",1,"spinner-border","text-success",2,"height","5.5rem","
1width","5.5rem"],[1,"sr-only"],[1,"text-center"],["version","1.1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 130.2 130.2"],["fill","none","stroke","#10b759","stroke-width","6","stroke-miterlimit","10","cx","65.1","cy","65.1","r","62.1",1,"path","circle"],["fill","none","stroke","#10b759","stroke-width","6","stroke-linecap","round","stroke-miterlimit","10","points","100.2,40.2 51.5,88.8 29.8,67.5 ",1,"path","check"],[1,"text-muted","mt-1","mb-3"],[1,"w-75","mx-auto","mb-2","text-muted"],["fill","none","stroke","#ff3366","stroke-width","6","stroke-miterlimit","10","cx","65.1","cy","65.1","r","62.1",1,"path","circle"],["fill","none","stroke","#ff3366","stroke-width","6","stroke-linecap","round","stroke-miterlimit","10","x1","34.4","y1","37.9","x2","95.8","y2","92.3",1,"path","line"],["fill","none","stroke","#ff3366","stroke-width","6","stroke-linecap","round","stroke-miterlimit","10","x1","95.8","y1","38","x2","34.4","y2","92.2",1,"path","line"],[1,"text-muted","mt-1","mb-1"],["class","w-75 mx-auto mb-2 text-muted",4,"ngIf"],["aria-hidden","",1,"mdi","mdi-email-check","mr-1"],["aria-hidden","",1,"mdi","mdi-cellphone-message","mr-1"],["aria-hidden","",1,"mr-1"],["class","text-danger text-muted mb-3",4,"ngIf"],["class","w-75 mx-auto mb-4 text-muted",4,"ngIf"],[1,"text-danger","text-muted","mb-3"],[1,"w-75","mx-auto","mb-4","text-muted"],["version","1.1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 130.2 130.2",1,"mb-4"],[4,"ngIf","ngIfElse"],["l2l3error",""],["severity","warn","text","Uploading Level 2 and Level 3 Details",4,"ngIf"],["severity","success","text","Successfully uploaded Level 2 and Level 3 details !",4,"ngIf"],["severity","warn","text","Uploading Level 2 and Level 3 Details"],["severity","success","text","Successfully uploaded Level 2 and Level 3 details !"],["severity","error",3,"text"],["errorQB",""],["severity","warn","text","Uploading Quick Book Details",4,"ngIf"],["severity","success",3,"text",4,"ngIf"],["severity","warn","text","Uploading Quick Book Details"],["severity","success",3,"text"],["severity","warn","text","Uploading invoice payment to Fortellis DMS",4,"ngIf"],["severity","warn","text","Uploading invoice payment to Fortellis DMS"],["widthClass","col-md-12 col-xl-12","native","component",3,"title","content","mfaData","apiName","formData","showBackButton","httpOptions","afterSuccessVerifyOtp","onBack"],[1,"card-footer","justify-content-end",3,"ngClass"],[1,"text-center",3,"ngClass"],["triggers","click","ngbPopover","Copied","class","btn btn-light mr-2",3,"click",4,"ngIf"],[1,"btn","btn-outline-danger",3,"click"],["triggers","click","ngbPopover","Copied",1,"btn","btn-light","mr-2",3,"click"],["data-feather","copy",1,"icon-sm","mb-1"],["type","button",1,"btn","btn-primary","mx-2",3,"click"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(k,Fe){1&k&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,D,3,0,"h5",2),i.YNc(3,e,3,0,"h5",2),i.YNc(4,J,4,3,"ng-container",3),i.YNc(5,de,3,0,"h5",3),i.qZA(),i.TgZ(6,"div",4),i.YNc(7,Ie,4,0,"div",5),i.YNc(8,Ee,7,1,"div",6),i.YNc(9,Oe,10,1,"div",6),i.YNc(10,X,7,6,"div",3),i.YNc(11,fe,1,7,"app-multi-factor-auth",7),i.qZA(),i.YNc(12,te,6,4,"div",8),i.qZA()),2&k&&(i.xp6(2),i.Q6J("ngIf",Fe.isLoading),i.xp6(1),i.Q6J("ngIf",Fe.isMfaEnabled),i.xp6(1),i.Q6J("ngIf",!Fe.isMfaEnabled),i.xp6(1),i.Q6J("ngIf","true"==Fe.isAchAdded||"false"==Fe.isAchAdded),i.xp6(2),i.Q6J("ngIf",Fe.isLoading),i.xp6(1),i.Q6J("ngIf","true"==Fe.isAchAdded),i.xp6(1),i.Q6J("ngIf","false"==Fe.isAchAdded),i.xp6(1),i.Q6J("ngIf",!Fe.isMfaEnabled),i.xp6(1),i.Q6J("ngIf",Fe.isMfaEnabled),i.xp6(1),i.Q6J("ngIf",!Fe.isLoading&&!Fe.isMfaEnabled))},dependencies:[w.mk,w.O5,_.o8,A.X,b.q,w.rS,w.H9],styles:['.loading[_ngcontent-%COMP%]:after{content:" .";animation:dots 1s steps(5,end) infinite}@keyframes dots{0%,20%{color:#0000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}40%{color:#000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}60%{text-shadow:.25em 0 0 black,.5em 0 0 rgba(0,0,0,0)}80%,to{text-shadow:.25em 0 0 black,.5em 0 0 black}}svg[_ngcontent-%COMP%]{width:100px;display:block;margin:40px auto 0}.path[_ngcontent-%COMP%]{stroke-dasharray:1000;stroke-dashoffset:0}
1.path.circle[_ngcontent-%COMP%]{animation:dash 1s ease-in-out}.path.line[_ngcontent-%COMP%]{stroke-dashoffset:1000;animation:dash .9s .35s ease-in-out forwards}.path.check[_ngcontent-%COMP%]{stroke-dashoffset:-100;animation:dash-check .9s .35s ease-in-out forwards}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}.top-width[_ngcontent-%COMP%]{border-top-width:0px}']}),Z})()},17705:(Te,G,r)=>{"use strict";r.d(G,{w:()=>Ze});var i=r(22560),t=r(2508),_=r(54724),g=r(56908),v=r(92938),w=r(19730),A=r(33507),b=r(59462),D=r(40929),e=r(94666),n=r(90413),f=r(7038),S=r(43041),J=r(33935);function de(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.xp6(1),i.hij("",i.lcZ(2,1,"vericheck.secCode")," is required"))}function Ie(O,ce){if(1&O&&(i.TgZ(0,"ngb-alert",24),i.YNc(1,de,3,3,"span",5),i.qZA()),2&O){const C=i.oxw(2);let M;i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("secCode"))?null:M.errors.required)}}function z(O,ce){if(1&O&&(i.TgZ(0,"div",22),i.YNc(1,Ie,2,3,"ngb-alert",23),i.qZA()),2&O){const C=i.oxw();let M;i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("secCode"))?null:M.invalid)}}function Ee(O,ce){1&O&&(i.TgZ(0,"label",14)(1,"h6"),i._uU(2),i.ALo(3,"translate"),i.qZA()()),2&O&&(i.xp6(2),i.hij("",i.lcZ(3,1,"vericheck.name"),"*"))}function Oe(O,ce){1&O&&(i.TgZ(0,"label",14)(1,"h6"),i._uU(2,"Company Name*"),i.qZA()())}function ee(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.xp6(1),i.hij("",i.lcZ(2,1,"vericheck.name")," is required"))}function Me(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1,"Only alphanumeric characters, spaces, . and ' allowed"),i.qZA())}function R(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1,"Minimum 2 alphanumeric characters required."),i.qZA())}function W(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1,"Only 2\u201325 characters are allowed"),i.qZA())}function ie(O,ce){if(1&O&&(i.TgZ(0,"ngb-alert",24),i.YNc(1,ee,3,3,"span",5),i.YNc(2,Me,2,0,"span",5),i.YNc(3,R,2,0,"span",5),i.YNc(4,W,2,0,"span",5),i.qZA()),2&O){const C=i.oxw(2);let M,j,X,fe;i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("name"))||null==M.errors?null:M.errors.required),i.xp6(1),i.Q6J("ngIf",null==(j=C.vericheckForm.get("name"))?null:j.hasError("pattern")),i.xp6(1),i.Q6J("ngIf",!(null!=(X=C.vericheckForm.get("name"))&&X.hasError("pattern"))&&(null==(X=C.vericheckForm.get("name"))?null:X.hasError("minAlphanumeric"))),i.xp6(1),i.Q6J("ngIf",!(null!=(fe=C.vericheckForm.get("name"))&&fe.hasError("pattern"))&&(null==(fe=C.vericheckForm.get("name"))?null:fe.hasError("maxlength")))}}function ye(O,ce){if(1&O&&(i.TgZ(0,"div",22),i.YNc(1,ie,5,6,"ngb-alert",23),i.qZA()),2&O){const C=i.oxw();let M;i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("name"))?null:M.invalid)}}const Ue=function(O){return{"invalid-form-control":O}};function $e(O,ce){if(1&O&&i._UZ(0,"input",25),2&O){const C=i.oxw();let M;i.Q6J("mask",C.maskedRoutingFormat)("ngClass",i.VKq(2,Ue,((null==(M=C.vericheckForm.get("routingNumber"))||null==M.errors?null:M.errors.required)||(null==(M=C.vericheckForm.get("routingNumber"))||null==M.errors?null:M.errors.pattern)||(null==(M=C.vericheckForm.get("routingNumber"))||null==M.errors?null:M.errors.minlength))&&C.submitted))}}function ke(O,ce){if(1&O&&i._UZ(0,"input",26),2&O){const C=i.oxw();let M;i.Q6J("ngClass",i.VKq(1,Ue,((null==(M=C.vericheckForm.get("routingNumber"))||null==M.errors?null:M.errors.required)||(null==(M=C.vericheckForm.get("routingNumber"))||null==M.errors?null:M.errors.pattern)||(null==(M=C.vericheckForm.get("routingNumber"))||null==M.errors?null:M.errors.minlength))&&C.submitted))}}function Re(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"p",30),i.NdJ("click",function(){i.CHM(C);const j=i.oxw(2);return i.KtG(!j.cardsLoading&&j.getConsumersTokenDetail())}),i._uU(1,"Cards "),i.qZA()}if(2&O){const C=i.oxw(2);i.ekj("cards-disabled",C.cardsLoading)}}function F(O,ce){if(1&O){const C=i.EpF();i.TgZ(0,"p",31),i.NdJ("click",function(){i.CHM(C);const j=i.oxw(2);return i.KtG(j.clearVericheckMaskedAlternateCardInfo())}),i.qZA()}}function Q(O,ce){if(1&O&&(i.TgZ(0,"div",27),i.YNc(1,Re,2,2,"p",28),i.YNc(2,F,1,0,"p",29),i.qZA()),2&O){const C=i.oxw();i.xp6(1),i.Q6J("ngIf",C.achCardsCountForButtons>1),i.xp6(1),i.Q6J("ngIf",!C.hideMaskedAchClear&&!C.isfromRunASale)}}function ae(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.xp6(1),i.hij("",i.lcZ(2,1,"vericheck.routingNumber")," is required"))}function H(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1,"Only numbers are allowed"),i.qZA())}function ge(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1,"Enter a minimum of 9 digits."),i.qZA())}function Se(O,ce){if(1&O&&(i.TgZ(0,"ngb-alert",24),i.YNc(1,ae,3,3,"span",5),i.YNc(2,H,2,0,"span",5),i.YNc(3,ge,2,0,"span",5),i.qZA()),2&O){const C=i.oxw(2);let M,j,X;i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("routingNumber"))?null:M.errors.required),i.xp6(1),i.Q6J("ngIf",null==(j=C.vericheckForm.get("routingNumber"))?null:j.hasError("pattern")),i.xp6(1),i.Q6J("ngIf",null==(X=C.vericheckForm.get("routingNumber"))?null:X.hasError("minlength"))}}function Je(O,ce){if(1&O&&(i.TgZ(0,"div",22),i.YNc(1,Se,4,5,"ngb-alert",23),i.qZA()),2&O){const C=i.oxw();let M;i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("routingNumber"))?null:M.invalid)}}function We(O,ce){if(1&O&&i._UZ(0,"input",32),2&O){const C=i.oxw();let M;i.Q6J("mask",C.maskedAccountFormat)("ngClass",i.VKq(2,Ue,((null==(M=C.vericheckForm.get("accountNumber"))||null==M.errors?null:M.errors.required)||(null==(M=C.vericheckForm.get("accountNumber"))||null==M.errors?null:M.errors.pattern)||(null==(M=C.vericheckForm.get("accountNumber"))||null==M.errors?null:M.errors.minlength))&&C.submitted))}}function He(O,ce){if(1&O&&i._UZ(0,"input",33),2&O){const C=i.oxw();let M;i.Q6J("ngClass",i.VKq(2,Ue,((null==(M=C.vericheckForm.get("accountNumber"))||null==M.errors?null:M.errors.required)||(null==(M=C.vericheckForm.get("accountNumber"))||null==M.errors?null:M.errors.pattern)||(null==(M=C.vericheckForm.get("accountNumber"))||null==M.errors?null:M.errors.minlength))&&C.submitted)),i.uIk("maxlength",24)}}function et(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.xp6(1),i.hij("",i.lcZ(2,1,"vericheck.accountNumber")," is required"))}function qe(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.xp6(1),i.hij("",i.lcZ(2,1,"vericheck.accountNumber")," accepts only numbers"))}function at(O,ce){1&O&&(i.TgZ(0,"span",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.xp6(1),i.hij("",i.lcZ(2,1,"vericheck.accountNumber")," should be 6 to 17 characters"))}function tt(O,ce){if(1&O&&(i.TgZ(0,"ngb-alert",24),i.YNc(1,et,3,3,"span",5),i.YNc(2,qe,3,3,"span",5),i.YNc(3,at,3,3,"span",5),i.qZA()),2&O){const C=i.oxw(2);let M,j,X;i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("accountNumber"))?null:M.errors.required),i.xp6(1),i.Q6J("ngIf",null==(j=C.vericheckForm.get("accountNumber"))?null:j.hasError("pattern")),i.xp6(1),i.Q6J("ngIf",null==(X=C.vericheckForm.get("accountNumber"))?null:X.hasError("minlength"))}}function se(O,ce){if(1&O&&(i.TgZ(0,"div",22),i.YNc(1,tt,4,5,"ngb-alert",23),i.qZA()),2&O){const C=i.oxw();let M;i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("accountNumber"))?null:M.invalid)}}function xe(O,ce){1&O&&(i.TgZ(0,"ngb-alert",35),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&O&&(i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.hij(" ",i.lcZ(2,3,"errorMsg.requiredDescription")," "))}function B(O,ce){1&O&&(i.TgZ(0,"ngb-alert",35),i._UZ(1,"i",36),i._uU(2),i.ALo(3,"translate"),i.qZA()),2&O&&(i.Q6J("dismissible",!1)("type","danger"),i.xp6(2),i.hij(" ",i.lcZ(3,3,"errorMsg.onlyAlphaNum")," "))}function $(O,ce){if(1&O&&(i.TgZ(0,"div",22),i.YNc(1,xe,3,5,"ngb-alert",34),i.YNc(2,B,4,5,"ngb-alert",34),i.qZA()),2&O){const C=i.oxw();let M,j;i.xp6(1),i.Q6J("ngIf",null==(M=C.vericheckForm.get("description"))||null==M.errors?null:M.errors.required),i.xp6(1),i.Q6J("ngIf",(null==(j=C.vericheckForm.get("description"))?null:j.invalid)&&
1((null==(j=C.vericheckForm.get("description"))||null==j.errors?null:j.errors.pattern)||(null==(j=C.vericheckForm.get("description"))||null==j.errors?null:j.errors.maxlength)))}}const be=function(){return["description"]};let Ze=(()=>{class O{constructor(C,M,j,X,fe){this.fb=C,this.commonService=M,this.activatedRoute=j,this.router=X,this.ngbModal=fe,this.isAddAchVericheck=!1,this.isMerchantBillingContext=!1,this.achAlternateCardsCount=null,this.isfromRunASale=!1,this.cardsLoading=!1,this.hideMaskedAchClear=!1,this.tagValues={},this.vericheckFormData=new i.vpe,this.getExstingCustomerPayload=new i.vpe,this.getConsumerDetail=new i.vpe,this.clearUnMaskedAlternateCard=new i.vpe,this.addBankCompleted=new i.vpe,this.isAddBank=!1,this.submitted=!1,this.maskedRoutingFormat="000000000",this.maskedAccountFormat="00000000000000000",this.accountTypeList=[{name:"Checking",id:"Checking"},{name:"Savings",id:"Savings"}],this.isMaskedCard=!1,this.patchedAchCardsCount=0,this.vericheckTokenizedId=null,this.tokenizedHsmLookupTxId=null,this.tokenizedAlternateVericheckId=null,this.secCodeOptions=[{value:"PPD",displayName:"Personal"},{value:"CCD",displayName:"Business"}],this.isAchAdded="",this.addBankModalRef=null,this.params={...this.activatedRoute.snapshot.params||{},...this.activatedRoute.snapshot.queryParams||{}},this.manualRoutingValidators=[t.kI.required,t.kI.minLength(9),t.kI.pattern(/^[0-9]+$/)],this.manualAccountValidators=[t.kI.required,t.kI.minLength(6),t.kI.maxLength(17),t.kI.pattern(/^[0-9]+$/)],this.maskedBankValidators=[t.kI.required,t.kI.minLength(9),t.kI.pattern(/^[0-9*]+$/)],this.maskedAccountValidators=[t.kI.required,t.kI.minLength(6),t.kI.maxLength(24),t.kI.pattern(/^[0-9*]+$/)],this.minAlphanumericChars=E=>K=>{const te=K.value;return null==te||""===te||(String(te).match(/[a-zA-Z0-9]/g)||[]).length>=E?null:{minAlphanumeric:!0}}}ngOnInit(){this.createForm(),this.handlePayaOptionChange(),this.vericheckTransaction$&&(this.subscription=this.vericheckTransaction$.subscribe(C=>{if(!this.isAddAchVericheck&&C){if(1==this.isEnableTag&&(this.tagValues=C.tagValues),!0===C.isFromTokenized||!0===C.isHsmDown)return void this.patchTokenizedBankFromHsm(C,C);if(C.isfromExstingPayload)return(null!=C.routingNumber&&""!==String(C.routingNumber).trim()||null!=C.accountNumber&&""!==String(C.accountNumber).trim())&&this.patchTokenizedBankFromHsm(C,C),void this.onTransaction(!0);!0===C.isFromTransaction&&this.onTransaction()}})),this.vericheckAddAchTransaction$&&(this.addAchSubscription=this.vericheckAddAchTransaction$.subscribe(C=>{!C?.isFromAddAchBank||(1==this.isEnableTag&&(this.tagValues=C.tagValues),this.onAddAchBankTransaction())})),this.vericheckReset$&&(this.resetSubscription=this.vericheckReset$.subscribe(C=>{!C?.isReset||this.onVericheckReset()}))}ngOnDestroy(){this.subscription?.unsubscribe(),this.addAchSubscription?.unsubscribe(),this.resetSubscription?.unsubscribe(),this.addBankModalRef?.dismiss()}getAddBankErrMessage(C){if(!C)return"Transaction failed";if("string"==typeof C.message&&C.message)return C.message;const M=C?.error?.message??C?.error?.error;return"string"==typeof M&&M?M:"Transaction failed"}openVericheckAddBankModal(){window.scroll(0,0),this.addBankModalRef=this.ngbModal.open(w.E,{backdrop:"static",keyboard:!1,centered:!0,size:"lg"}),this.addBankModalRef.componentInstance.isLoading=!0,this.addBankModalRef.result.then(()=>this.onAddBankModalFinished(),()=>this.onAddBankModalFinished())}onAddBankModalFinished(){"true"===this.isAchAdded&&(this.onVericheckReset(),this.isMerchantBillingContext?this.addBankCompleted.emit({success:!0}):this.router.navigate(["/consumer-list/list"])),this.isAchAdded="",this.addBankModalRef=null}ngOnChanges(C){C.selectedPayaOption&&this.handlePayaOptionChange()}handlePayaOptionChange(){const C=1==this.selectedPayaOption?"TEL":"PPD";if(this.secCodeOptions=[{value:C,displayName:"Personal"},{value:"CCD",displayName:"Business"}],this.vericheckForm){const M=this.vericheckForm.get("secCode").value;"TEL"===M&&"PPD"===C?this.vericheckForm.get("secCode").setValue("PPD"):"PPD"===M&&"TEL"===C&&this.vericheckForm.get("secCode").setValue("TEL")}}createForm(){this.vericheckForm=this.fb.group({name:["",[t.kI.required,t.kI.pattern(/^[a-zA-Z0-9 ,.']+$/),this.minAlphanumericChars(2),t.kI.maxLength(25)]],routingNumber:["",this.manualRoutingValidators],accountNumber:["",this.manualAccountValidators],secCode:["PPD",[t.kI.required]],accountType:["Checking",[t.kI.required]],description:["",[t.kI.required,t.kI.pattern(/^[a-zA-Z0-9 ]+$/),t.kI.maxLength(30)]]})}enableManualBankFields(){const C=this.vericheckForm.get("routingNumber"),M=this.vericheckForm.get("accountNumber");C?.setValidators(this.manualRoutingValidators),M?.setValidators(this.manualAccountValidators),C?.enable({emitEvent:!1}),M?.enable({emitEvent:!1}),C?.updateValueAndValidity({emitEvent:!1}),M?.updateValueAndValidity({emitEvent:!1})}get f(){return this.vericheckForm.controls}get achCardsCountForButtons(){let C=0;if(null!=this.achAlternateCardsCount&&void 0!==this.achAlternateCardsCount){const M=Number(this.achAlternateCardsCount);C=Number.isFinite(M)?M:0}return Math.max(C,this.patchedAchCardsCount||0)}onSubmit(){this.submitted=!0}onVericheckReset(){this.submitted=!1,this.clearTokenizedSaleContext(),this.isMaskedCard=!1,this.patchedAchCardsCount=0,this.vericheckForm.reset(),this.enableManualBankFields(),this.vericheckForm.markAsPristine(),this.vericheckForm.markAsUntouched(),1==this.selectedPayaOption?this.vericheckForm.get("secCode")?.setValue("TEL"):this.vericheckForm.get("secCode")?.setValue("PPD"),this.vericheckForm.get("accountType")?.setValue("Checking")}resolveVericheckTokenId(C){if(null==C||"object"!=typeof C)return null;const M=C.providerId??C.vericheck_id??C.payaId??C.paya_id;if(null==M||""===M)return null;const j=String(M).trim();return""===j?null:j}clearTokenizedSaleContext(){this.vericheckTokenizedId=null,this.tokenizedHsmLookupTxId=null,this.tokenizedAlternateVericheckId=null}patchTokenizedBankFromHsm(C,M){if(!this.vericheckForm||null==C)return;const j=C,X=j.routingNumber??j.routing_number??j.routing??"",fe=j.accountNumber??j.account_number??j.account??"";if(""===String(X).trim()&&""===String(fe).trim())return;const E=M??{};if(!E.isHsmDown){const gt=E.providerId??E.vericheck_id??C.providerId??C.vericheck_id;null!=gt&&""!==String(gt).trim()&&(this.tokenizedAlternateVericheckId=String(gt).trim());const _t=E.payaId??E.paya_id??E.hsmLookupTxId??C.payaId??C.paya_id??C.hsmLookupTxId;null!=_t&&""!==String(_t).trim()&&(this.tokenizedHsmLookupTxId=String(_t).trim());const he=this.resolveVericheckTokenId(E)??this.resolveVericheckTokenId(C);he&&(this.vericheckTokenizedId=he),!this.tokenizedHsmLookupTxId&&he&&(this.tokenizedHsmLookupTxId=he),!this.tokenizedAlternateVericheckId&&he&&(this.tokenizedAlternateVericheckId=he)}const Z=(null!=j.name&&""!==String(j.name).trim()?String(j.name).trim():"")||[j.firstName??j.first_name,j.lastName??j.last_name].filter(
1Boolean).join(" ").trim()||M?.chName||"",pe=j.description&&String(j.description).trim()||this.vericheckForm.get("description")?.value||"";this.vericheckForm.patchValue({routingNumber:X,accountNumber:fe,accountType:(j.accountType??j.account_type??"Checking")||"Checking",name:Z,description:pe});const Fe=this.vericheckForm.get("routingNumber"),Qe=this.vericheckForm.get("accountNumber");Fe&&(Fe.setValidators(this.maskedBankValidators),Fe.updateValueAndValidity({emitEvent:!1}),Fe.disable({emitEvent:!1})),Qe&&(Qe.setValidators(this.maskedAccountValidators),Qe.updateValueAndValidity({emitEvent:!1}),Qe.disable({emitEvent:!1}));const nt=E?.cardsLength??E?.cards_length??C?.cardsLength??C?.cards_length;this.patchedAchCardsCount=null==nt||""===String(nt).trim()||Number.isNaN(Number(nt))?0:Number(nt),this.isMaskedCard=!0}clearVericheckMaskedAlternateCardInfo(){!this.vericheckForm||(this.clearTokenizedSaleContext(),this.enableManualBankFields(),this.submitted=!1,this.vericheckForm.patchValue({routingNumber:"",accountNumber:"",name:"",description:""},{emitEvent:!1}),["routingNumber","accountNumber","name","description"].forEach(C=>{const M=this.vericheckForm.get(C);M?.markAsPristine(),M?.markAsUntouched(),M?.updateValueAndValidity({emitEvent:!1})}),this.isMaskedCard=!1,this.patchedAchCardsCount=0,this.clearUnMaskedAlternateCard.emit())}formatAmtForAch(C){return C&&(C||"").toString().replace(/[^0-9]/g,"")||"0"}normalizeDescriptionFromHsm(C,M){const j=C?.description??C?.txnDescription;if(null==j||""===String(j).trim())return M;let X=String(j).trim();return X.length>30&&(X=X.slice(0,30)),X}normalizeEntryClassFromHsm(C,M){const j=C?.entryClass??C?.standard_entry_class??C?.secCode??C?.standardEntryClass;if(null==j||""===j)return M;const X=String(j).trim().toUpperCase();return["PPD","CCD","TEL","WEB"].includes(X)?X:M}cleanRouteParam(C){return null==C||""===C||"null"===C?"":String(C)}getExstingPayload(C){this.getExstingCustomerPayload.emit(C)}getConsumersTokenDetail(){this.isAddAchVericheck||this.getConsumerDetail.emit("reopen")}onTransaction(C=!1){if(this.submitted=!0,this.vericheckForm.invalid)return void this.vericheckForm.markAllAsTouched();if(1==this.isEnableTag&&this.steamTagsForm&&this.steamTagsForm.invalid||this.validateParentPaymentFields&&!this.validateParentPaymentFields())return;const M=this.parentCloudposForm?.get(["paymentInfo","amt"])?.value||"";let j=this.parentCloudposForm?.get(["paymentInfo","email"])?.value||"";const X=this.parentCloudposForm?.get(["paymentInfo","phone"])?.value||null;let fe=X?.e164Number||X||"";const E=this.cleanRouteParam(this.params?.email),K=this.cleanRouteParam(this.params?.phone);if(this.isAddAchVericheck&&(!j&&E&&(j=E),!fe&&K&&(fe=K)),this.submitted=!1,!C&&!this.isAddAchVericheck&&(this.isAddAchVericheck||!this.isMaskedCard||!this.vericheckTokenizedId&&!this.tokenizedAlternateVericheckId)&&this.isMaskedCard)return this.vericheckFormData.emit({showPaymentModal:!0}),void this.getExstingPayload(this.vericheckForm.get("accountNumber")?.value);this.vericheckFormData.emit({showPaymentModal:!this.isAddAchVericheck});let{formattedDateTime:Z,formattedTime:pe}=this.commonService.getFormattedDateTime();const k={amt:this.formatAmtForAch(M),tpn:this.selectedTpn?.tpn||this.selectedTpn,routingNumber:this.vericheckForm.get("routingNumber")?.value,accountNumber:this.vericheckForm.get("accountNumber")?.value,accountType:this.vericheckForm.get("accountType")?.value,name:this.vericheckForm.get("name")?.value,entryClass:this.vericheckForm.get("secCode")?.value,txDate:g().utc().format("YYYY-MM-DD HH:mm:ss"),txTime:g().utc().format("HH:mm:ss"),posRequestDate:Z,posRequestTime:pe,hostResponseDate:g().utc().format("YYYY-MM-DD HH:mm:ss"),hostResponseTime:g().utc().format("HH:mm:ss"),email:j||"",phone:fe||"",description:this.vericheckForm.get("description")?.value,paymentMode:"Vericheck ACH - ",transactionType:this.selectedMode.id,fortInvoice:this.fortInvoice,isMerchantBilling:"true"==this.params?.isMerchantBilling||!1,isFortellisEnabled:this.isFortellisEnabled};if(1==this.isEnableTag&&!(0,v.isEmpty)(this.tagValues.tagLabels)&&!(0,v.isEmpty)(this.tagValues.tagValues)&&(k.tagLabel=this.tagValues.tagLabels,k.tagValue=this.tagValues.tagValues),this.isAddAchVericheck||!this.isMaskedCard||"function"!=typeof this.buildVericheckHsmTokenUrl||!this.vericheckTokenizedId&&!this.tokenizedAlternateVericheckId
1)this.commonService.postCommonHttpClient(_.D.achnxapis.commonTransactionApi,k).subscribe({next:Qe=>{this.vericheckFormData.emit({vericheckSuccess:!0,txResponse:Qe,params:k})},error:Qe=>{this.submitted=!1,this.vericheckFormData.emit({showPaymentModal:!0,showError:!0,err:Qe})}});else{const Qe=this.tokenizedHsmLookupTxId||this.vericheckTokenizedId,nt=this.tokenizedAlternateVericheckId||this.vericheckTokenizedId;if(!Qe||!nt)return this.submitted=!1,void this.vericheckFormData.emit({showError:!0,err:{message:"Missing stored bank ids. Reselect the alternate bank and try again."}});const gt=this.buildVericheckHsmTokenUrl(Qe);if(!gt)return this.submitted=!1,void this.vericheckFormData.emit({showError:!0,err:{message:"Unable to build HSM request."}});const _t=this.vericheckForm.get("description")?.value;this.vericheckForm.get("secCode"),this.commonService.getCommonHttpClientParams(gt).subscribe({next:je=>{if((0,v.isEmpty)(je)||je?.isHsmDown)return this.submitted=!1,void this.vericheckFormData.emit({showError:!0,err:{message:"Unable to load bank token (HSM)."}});const Dt=this.normalizeDescriptionFromHsm(je,_t),Et=this.vericheckForm.get("secCode")?.value,wt={...k,description:Dt,entryClass:Et,amt:this.formatAmtForAch(M),vericheckId:nt};this.commonService.postCommonHttpClient(_.D.achnxapis.tokenizedTransaction,wt).subscribe({next:pt=>{this.clearTokenizedSaleContext(),this.vericheckFormData.emit({vericheckSuccess:!0,txResponse:pt,params:k})},error:pt=>{this.submitted=!1,this.vericheckFormData.emit({showPaymentModal:!0,showError:!0,err:pt})}})},error:je=>{this.submitted=!1,this.vericheckFormData.emit({showPaymentModal:!0,showError:!0,err:je})}})}}onAddAchBankTransaction(){if(this.submitted=!0,this.vericheckForm.invalid)return this.vericheckForm.markAllAsTouched(),void this.vericheckFormData.emit({showError:!0,isClientValidation:!0});if(1==this.isEnableTag&&this.steamTagsForm&&this.steamTagsForm.invalid)return void this.vericheckFormData.emit({showError:!0,isClientValidation:!0});const C=this.parentCloudposForm?.get(["paymentInfo","amt"])?.value||"";let M=this.parentCloudposForm?.get(["paymentInfo","email"])?.value||"";const j=this.parentCloudposForm?.get(["paymentInfo","phone"])?.value||null;let X=j?.e164Number||j||"";const fe=this.cleanRouteParam(this.params?.email),E=this.cleanRouteParam(this.params?.phone);if(!M&&fe&&(M=fe),!X&&E&&(X=E),this.validateParentPaymentFields&&!this.validateParentPaymentFields())return void(this.isMerchantBillingContext&&this.vericheckFormData.emit({showError:!0,isClientValidation:!0}));this.isMerchantBillingContext||this.openVericheckAddBankModal();let{formattedDateTime:K,formattedTime:te}=this.commonService.getFormattedDateTime();const Le=this.cleanRouteParam(this.params?.consumerId||this.consumerId),Z={amt:this.formatAmtForAch(C),tpn:this.selectedTpn?.tpn||this.selectedTpn,routingNumber:this.vericheckForm.get("routingNumber")?.value,accountNumber:this.vericheckForm.get("accountNumber")?.value,accountType:this.vericheckForm.get("accountType")?.value,name:this.vericheckForm.get("name")?.value,entryClass:this.vericheckForm.get("secCode")?.value,txDate:g().utc().format("YYYY-MM-DD HH:mm:ss"),txTime:g().utc().format("HH:mm:ss"),posRequestDate:K,posRequestTime:te,hostResponseDate:g().utc().format("YYYY-MM-DD HH:mm:ss"),hostResponseTime:g().utc().format("HH:mm:ss"),email:M||"",phone:X||"",description:this.vericheckForm.get("description")?.value,paymentMode:"Vericheck ACH - ",transactionType:this.selectedMode.id,fortInvoice:this.fortInvoice,isMerchantBilling:this.isMerchantBillingContext||"true"==this.params?.isMerchantBilling||!1,isFortellisEnabled:this.isFortellisEnabled,consumerId:Le||void 0,isAddAchBank:!0};1==this.isEnableTag&&!(0,v.isEmpty)(this.tagValues.tagLabels)&&!(0,v.isEmpty)(this.tagValues.tagValues)&&(Z.tagLabel=this.tagValues.tagLabels,Z.tagValue=this.tagValues.tagValues),this.commonService.postCommonHttpClient(_.D.achnxapis.commonAddBankApi,Z).subscribe({next:pe=>{if(this.isMerchantBillingContext)return this.submitted=!1,void this.addBankCompleted.emit({success:!0,response:pe});if(!this.addBankModalRef)return;const k=pe?.data?.status;if(this.addBankModalRef.componentInstance.isLoading=!1,"ACCEPTED"===k)return this.submitted=!1,void(this.addBankModalRef.componentInstance.isAchAdded=this.isAchAdded="true");this.submitted=!1,this.addBankModalRef.componentInstance.isAchAdded=this.isAchAdded="false",this.addBankModalRef.componentInstance.errorMessage=k||pe?.message||"Declined"},error:pe=>
1{this.submitted=!1,this.isMerchantBillingContext?this.vericheckFormData.emit({showError:!0,err:pe}):this.addBankModalRef?(this.addBankModalRef.componentInstance.isLoading=!1,this.addBankModalRef.componentInstance.isAchAdded=this.isAchAdded="false",this.addBankModalRef.componentInstance.errorMessage=this.getAddBankErrMessage(pe)):this.vericheckFormData.emit({showPaymentModal:!0,showError:!0,err:pe})}})}}return O.\u0275fac=function(C){return new(C||O)(i.Y36(t.QS),i.Y36(A.v),i.Y36(b.gz),i.Y36(b.F0),i.Y36(D.FF))},O.\u0275cmp=i.Xpm({type:O,selectors:[["app-vericheck-ach"]],inputs:{selectedPayaOption:"selectedPayaOption",selectedMode:"selectedMode",vericheckTransaction$:"vericheckTransaction$",vericheckAddAchTransaction$:"vericheckAddAchTransaction$",vericheckReset$:"vericheckReset$",parentCloudposForm:"parentCloudposForm",selectedTpn:"selectedTpn",steamTagsForm:"steamTagsForm",isEnableTag:"isEnableTag",fortInvoice:"fortInvoice",isFortellisEnabled:"isFortellisEnabled",isAddAchVericheck:"isAddAchVericheck",consumerId:"consumerId",isMerchantBillingContext:"isMerchantBillingContext",buildVericheckHsmTokenUrl:"buildVericheckHsmTokenUrl",achAlternateCardsCount:"achAlternateCardsCount",isfromRunASale:"isfromRunASale",cardsLoading:"cardsLoading",hideMaskedAchClear:"hideMaskedAchClear",validateParentPaymentFields:"validateParentPaymentFields",isAddBank:"isAddBank"},outputs:{vericheckFormData:"vericheckFormData",getExstingCustomerPayload:"getExstingCustomerPayload",getConsumerDetail:"getConsumerDetail",clearUnMaskedAlternateCard:"clearUnMaskedAlternateCard",addBankCompleted:"addBankCompleted"},features:[i.TTD],decls:42,vars:45,consts:[[3,"formGroup","ngSubmit"],[1,"form-row",2,"row-gap","7px","margin-top","11px"],[1,"col-md-3"],[1,"form__div","mb-0","col-12","px-0"],["bindValue","value","bindLabel","displayName","placeholder","Select sec code","formControlName","secCode",1,"ng-expiry-time",3,"items","clearable","searchable"],["class","error-message",4,"ngIf"],[1,"col-md-3",2,"height","54px"],[1,"form__div","col-12","px-0"],["bindValue","name","bindLabel","name","placeholder","Select account type","notFoundText","No accountType selected","formControlName","accountType",1,"ng-expiry-time",3,"items","clearable","searchable","multiple","readonly","ngClass"],[1,"form__div","mb-0","col-12"],["type","text","placeholder"," ","formControlName","name","autocomplete","off","trim","blur","maxlength","25",1,"form__input",3,"ngClass"],["class","form__label",4,"ngIf"],["type","text","class","form__input","placeholder"," ","formControlName","routingNumber","maxlength","9","autocomplete","off",3,"mask","ngClass",4,"ngIf"],["type","text","class","form__input","placeholder"," ","formControlName","routingNumber","autocomplete","off",3,"ngClass",4,"ngIf"],[1,"form__label"],["class","input-group-prepend justify-content-end row","style","padding-top: 12px;",4,"ngIf"],["type","text","class","form__input","placeholder"," ","formControlName","accountNumber","maxlength","17","autocomplete","off",3,"mask","ngClass",4,"ngIf"],["type","text","class","form__input","placeholder"," ","formControlName","accountNumber","autocomplete","off",3,"ngClass",4,"ngIf"],[1,"col-md-9"],[1,"form__div","col-md-12","col-sm-12","mb-0"],["name","description","placeholder"," ","maxlength","30","formControlName","description","autocomplete","off",1,"form__input",3,"ngClass"],["for","description",1,"form__label"],[1,"error-message"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],["type","text","placeholder"," ","formControlName","routingNumber","maxlength","9","autocomplete","off",1,"form__input",3,"mask","ngClass"],["type","text","placeholder"," ","formControlName","routingNumber","autocomplete","off",1,"form__input",3,"ngClass"],[1,"input-group-prepend","justify-content-end","row",2,"padding-top","12px"],["type","button","class","col-md-3 font-weight-bold cancel-btn text-right px-0",3,"cards-disabled","click",4,"ngIf"],["type","button","class","mdi mdi-close-circle-outline cancel-btn col-md-1 text-right font-weight-bold px-0",3,"click",4,"ngIf"],["type","button",1,"col-md-3","font-weight-bold","cancel-btn","text-right","px-0",3,"click"],["type","button",1,"mdi","mdi-close-circle-outline","cancel-btn","col-md-1","text-right","font-weight-bold","px-0",3,"click"],["type","text","placeholder"," ","formControlName","accountNumber","maxlength","17","autocomplete","off",1,"form__input",3,"mask","ngClass"],["type","text","placeholder"," ","formControlName","accountNumber","autocomplete","off",1,"form__input",3,"ngClass"],["class","pt-md-1",3,"dismissible","type",4,"ngIf"],[1,"pt-md-1",3,"dismissible","type"],[1,"link-icon","feather","icon-alert-triangle"]],template:function(C,M){if(1&C&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return M.onSubmit()}),i.TgZ(1,"div",1)(2,"div",2)(3,"div",3),i._UZ(4,"ng-select",4),i.qZA(),i.YNc(5,z,2,1,"div",5),i.qZA(),i.TgZ(6,"div",6)(7,"div",7),i._UZ(8,"ng-select",8),i.qZA()(),i.TgZ(9,"div",2)(10,"div",9),i._UZ(11,"input",10),i.YNc(12,Ee,4,3,"label",11),i.YNc(13,Oe,3,0,"label",11),i.qZA(),i.YNc(14,ye,2,1,"div",5),i.qZA(),i.TgZ(15,"div",2)(16,"div",9),i.YNc(17,$e,1,4,"input",12),i.YNc(18,ke,1,3,"input",13),i.TgZ(19,"label",14)(20,"h6"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.YNc(23,Q,3,2,"div",15),i.qZA(),i.YNc(24,Je,2,1,"div",5),i.qZA(),i.TgZ(25,"div",2)(26,"div",9),i.YNc(27,We,1,4,"input",16),i.YNc(28,He,1,4,"input",17),i.TgZ(29,"label",14)(30,"h6"),i._uU(31),i.ALo(32,"translate"),i.qZA()()(),i.YNc(33,se,2,1,"div",5),i.qZA(),i.TgZ(34,"div",18)(35,"div",19),i._UZ(36,"input",20),i.TgZ(37,"label",21)(38,"h6"),i._uU(39),i.ALo(40,"translate"),i.qZA()()(),i.YNc(41,$,3,2,"div",5),i.qZA()()()),2&C){let j,X,fe,E,K,te,Le,Z,pe;i.Q6J("formGroup",M.vericheckForm),i.xp6(4),i.Q6J("items",M.secCodeOptions)("clearable",!1)("searchable",!1),i.xp6(1),i.Q6J("ngIf",(null==(j=M.vericheckForm.get("secCode"))?null:j.dirty)||(null==(j=M.vericheckForm.get("secCode"))?null:j.touched)||M.submitted),i.xp6(3),i.Q6J("items",M.accountTypeList)("clearable",!1)("searchable",!1)("multiple",!1)("readonly",M.isMaskedCard)("ngClass",i.VKq(33,Ue,(null==(X=M.vericheckForm.get("accountType"))||null==X.errors?null:X.errors.required)&&M.submitted)),i.xp6(3),i.Q6J("ngClass",i.VKq(35,Ue,((null==(fe=M.vericheckForm.get("name"))||null==fe.errors?null:fe.errors.required)||(null==(fe=M.vericheckForm.get("name"))||null==fe.errors?null:fe.errors.pattern)||(null==(fe=M.vericheckForm.get("name"))||null==fe.errors?null:fe.errors.minAlphanumeric)||(null==(fe=M.vericheckForm.get("name"))||null==fe.errors?null:fe.errors.maxlength))&&M.submitted)),i.xp6(1),i.Q6J("ngIf","PPD"===(null==(E=M.vericheckForm.get("secCode"))?null:E.value)||"TEL"===(null==(E=M.vericheckForm.get("secCode"))?null:E.value)),i.xp6(1),i.Q6J("ngIf","CCD"===(null==(K=M.vericheckForm.get("secCode"))?null:K.value)),i.xp6(1),i.Q6J("ngIf",(null==(te=M.vericheckForm.get("name"))?null:te.dirty)||(null==(te=M.vericheckForm.get("name"))?null:te.touched)||M.submitted),i.xp6(3),i.Q6J("ngIf",!M.isMaskedCard),i.xp6(1),i.Q6J("ngIf",M.isMaskedCard),i.xp6(3),i.hij("",i.lcZ(22,27,"vericheck.routingNumber"),"*"),i.xp6(2),i.Q6J("ngIf",M.isMaskedCard&&!M.isAddAchVericheck),i.xp6(1),i.Q6J("ngIf",(null==(Le=M.vericheckForm.get("routingNumber"))?null:Le.dirty)||(null==(Le=M.vericheckForm.get("routingNumber"))?null:Le.touched)||M.submitted),i.xp6(3),i.Q6J("ngIf",!M.isMaskedCard),i.xp6(1),i.Q6J("ngIf",M.isMaskedCard),i.xp6(3),i.hij("",i.lcZ(32,29,"vericheck.accountNumber"),"*"),i.xp6(2),i.Q6J("ngIf",(null==(Z=M.vericheckForm.get("accountNumber"))?null:Z.dirty)||(null==(Z=M.vericheckForm.get("accountNumber"))?null:Z.touched)||M.submitted),i.xp6(3),i.Q6J("ngClass",i.VKq(43,Ue,((null==M.vericheckForm.get(i.DdM(37,be)).errors?null:M.vericheckForm.get(i.DdM(38,be)).errors.required)||(null==M.vericheckForm.get(i.DdM(39,be)).errors?null:M.vericheckForm.get(i.DdM(40,be)).errors.maxlength)||(null==M.vericheckForm.get(i.DdM(41,be)).errors?null:M.vericheckForm.get(i.DdM(42,be)).errors.pattern))&&M.submitted)),i.xp6(3),i.hij("",i.lcZ(40,31,"htmlText.description")," *"),i.xp6(2),i.Q6J("ngIf",(null==(pe=M.vericheckForm.get("description"))?null:pe.dirty)||(null==(pe=M.vericheckForm.get("description"))?null:pe.touched)||M.submitted)}},dependencies:[e.mk,e.O5,t._Y,t.Fj,t.JJ,t.JL,t.nD,t.sg,t.u,D.xm,n.w9,f.hx,S.P,J.X$],styles:['@charset "UTF-8";.address[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.field[_ngcontent-%COMP%]{border:2px solid #e6e6e6;border-radius:2%}.credit-card-icon[_ngcontent-%COMP%]{all:none;width:50px;padding:0!important;margin:2px 0 0!important;height:44px;background-color:#fff}.replace-styles[_ngcontent-%COMP%]{padding:0!important;margin:0!important}.invalid-form-control[_ngcontent-%COMP%]{border-left:5px solid #e91e63!important}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box}.form__title[_ngcontent-%COMP%]{font-weight:400;margin-bottom:3rem}.form__div[_ngcontent-%COMP%]{position:relative;height:48px;margin-bottom:1.5rem}.form__input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:1rem;border:1px solid #DADCE0;border-radius:.5rem;outline:none;padding:1rem;background:none;z-index:1}.form__input[_ngcontent-%COMP%]:disabled{background-color:transparent;opacity:1}.form__label[_ngcontent-%COMP%]{position:absolute;
1left:1rem;top:1rem;padding:0 .25rem;background-color:#fff;color:#80868b;font-size:1rem;transition:.3s}.form__button[_ngcontent-%COMP%]{display:block;margin-left:auto;padding:.75rem 2rem;outline:none;border:none;background-color:#1a73e8;color:#fff;font-size:1rem;border-radius:.5rem;cursor:pointer;transition:.3s}.form__button[_ngcontent-%COMP%]:hover{box-shadow:0 10px 36px #00000026}.phone-index[_ngcontent-%COMP%]{z-index:2!important}.form__input[_ngcontent-%COMP%]:focus + .form__label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;color:#1a73e8;font-size:.75rem;font-weight:500;z-index:10}input.form__input.open.ng-dirty[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%], input.form__input.open.ng-invalid[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%], input.form__input.open.ng-valid[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;font-size:.75rem;font-weight:500;z-index:10}.form__input.phone[_ngcontent-%COMP%]:focus-within + .form__label[_ngcontent-%COMP%]{color:#1a73e8}.form__input[_ngcontent-%COMP%]:not(:placeholder-shown).form__input:not(:focus) + .form__label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;z-index:1;font-size:.75rem;font-weight:500}.form__input[_ngcontent-%COMP%]:focus, .form__input.phone[_ngcontent-%COMP%]:focus-within{border:1.5px solid #1A73E8}.form-style[_ngcontent-%COMP%]{margin-right:-55px}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.form-style[_ngcontent-%COMP%]{margin-right:0!important}  .iti{margin-top:-5px!important;margin-bottom:-5px!important}  .custom-phone{width:90%!important;margin-bottom:-5px!important;margin-top:-5px!important}}.phone-input-field[_ngcontent-%COMP%]{height:15px}ngx-intl-tel-input[_ngcontent-%COMP%]{z-index:2!important}.payment-card-animation[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 15px 2px #dcdcdc}.details-container[_ngcontent-%COMP%]{height:270px;overflow:auto;overflow-x:hidden}.colorChange[_ngcontent-%COMP%]{background-color:#e9ecef!important}.img_size[_ngcontent-%COMP%]{width:52px;height:50px;margin:-15px 12px -15px -15px}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:0}.cancel-btn[_ngcontent-%COMP%]{z-index:2;color:#000}.solid[_ngcontent-%COMP%]{border-top:3px solid #bbb}.ng-select.ng-select-single[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{height:40px!important}.ng-expiry-time[_ngcontent-%COMP%]     .ng-select-container{height:48px!important;border:1px solid #dbdde1!important;border-radius:7px}.ng-expiry-time[_ngcontent-%COMP%]     .ng-select :focus{border:1.5px solid #1A73E8}.ng-expiry-time[_ngcontent-%COMP%] > .ng-select[_ngcontent-%COMP%]   .ng-select-single[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{border:none}
1.ng-expiry-time[_ngcontent-%COMP%]     .ng-select-container input{height:24px}.ng-select.ng-select-single[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{height:47px!important;border:1px solid #dbdde1!important;border-radius:7px!important}.break-up-header[_ngcontent-%COMP%]{width:100%;height:10px;border-bottom:1px solid #1A73E8;text-align:center}.break-up-tag[_ngcontent-%COMP%]{font-size:16px;background-color:#fff;color:#1a73e8;padding:0 3px}.stepper[_ngcontent-%COMP%]   .lines[_ngcontent-%COMP%]{width:2px!important;background-color:#d3d3d3!important}.processing-modal[_ngcontent-%COMP%]{width:40%}.file-upload-button[_ngcontent-%COMP%]{background-color:#1a73e8;border:none;border-color:#1a73e8;height:2rem;overflow:hidden;position:relative;margin-top:10px;width:6rem;color:#fff;border-radius:3px}.file-upload-button[_ngcontent-%COMP%]:after{color:#fff;font-size:1.5rem;text-align:center}.file-upload-button[_ngcontent-%COMP%]   .file-upload-button[_ngcontent-%COMP%]:hover{cursor:pointer}.file-upload-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:100px;left:0;opacity:0;position:absolute;top:0}.file-info[_ngcontent-%COMP%]{color:#999;font-family:Lato;margin-left:.5rem}.upload-file-info[_ngcontent-%COMP%]{padding-left:8px;padding-top:16px}.blink_me[_ngcontent-%COMP%]{animation:blinker 1s linear infinite}@keyframes blinker{50%{opacity:0}}.input-group[_ngcontent-%COMP%] > .form-control[_ngcontent-%COMP%]:not(:last-child){height:48px;border-radius:8px 0 0 8px;border:1px solid #dbdde1!important}.file-confirmation-width[_ngcontent-%COMP%]{width:40%!important}.custom-fee-width[_ngcontent-%COMP%]{width:20%!important}.custom-fee-body-width[_ngcontent-%COMP%]{width:100%!important}.paymentMode[_ngcontent-%COMP%]{width:45px;height:45px}.add-invoice[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}.input-btn[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:12px;border:none;font-size:16px;background:none;cursor:pointer;z-index:10}.address1[_ngcontent-%COMP%]{border-radius:10px}.margin-align[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}.display-align[_ngcontent-%COMP%]{display:grid}.disable-content[_ngcontent-%COMP%]{cursor:not-allowed}.payaModal[_ngcontent-%COMP%]{font-size:16px}textarea[_ngcontent-%COMP%]{overflow-y:scroll}.description_input[_ngcontent-%COMP%], .description_input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:90px!important}.description_input[_ngcontent-%COMP%]   ngb-alert[_ngcontent-%COMP%]{margin-top:6.5em!important}.description_input_send_link[_ngcontent-%COMP%], .description_input_send_link[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:90px!important}.description_input_send_link[_ngcontent-%COMP%]   ngb-alert[_ngcontent-%COMP%]{margin-top:3em!important}.text-color[_ngcontent-%COMP%]{color:#80868b}.text_align_left[_ngcontent-%COMP%]{text-align:left}.input-btn[_ngcontent-%COMP%]:focus{outline:1px solid gray;border-radius:12px}.paddingZero[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.border-around[_ngcontent-%COMP%]{border:2px solid #e6e6e6}.get-cust[_ngcontent-%COMP%]{position:absolute;right:0}.disable[_ngcontent-%COMP%]{pointer-events:none!important;cursor:pointer!important}.border-dark-bottom[_ngcontent-%COMP%]{border-bottom:1px solid grey!important}.border-light-bottom[_ngcontent-%COMP%]{border-bottom:1px solid #faf4f4!important}pdf-container[_ngcontent-%COMP%]{font-family:Arial,sans-serif;margin:20px}.controls[_ngcontent-%COMP%]{margin-bottom:20px;text-align:center}.btn-generate[_ngcontent-%COMP%]{background-color:#1976d2;color:#fff;border:none;padding:10px 15px;border-radius:4px;margin-right:10px;cursor:pointer;font-size:14px}.btn-generate[_ngcontent-%COMP%]:hover{background-color:#135ba1}.invoice-template[_ngcontent-%COMP%]{max-width:800px;margin:0 auto;padding:20px;border:1px solid #ddd;background-color:#fff}.invoice-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.invoice-header[_ngcontent-%COMP%]   .logo-area[_ngcontent-%COMP%]{flex:1}.invoice-header[_ngcontent-%COMP%]   .logo-area[_ngcontent-%COMP%]   .logo-placeholder[_ngcontent-%COMP%]{height:60px;
1width:200px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5;border:1px solid #ddd;font-weight:700}.invoice-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{flex:2;text-align:center}.invoice-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-top:0;margin-bottom:10px}.invoice-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0;font-size:12px}.invoice-header[_ngcontent-%COMP%]   .invoice-info[_ngcontent-%COMP%]{flex:1}.invoice-header[_ngcontent-%COMP%]   .invoice-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0;font-size:12px}.customer-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:12px}.customer-section[_ngcontent-%COMP%]   .customer-info[_ngcontent-%COMP%], .customer-section[_ngcontent-%COMP%]   .customer-details[_ngcontent-%COMP%], .customer-section[_ngcontent-%COMP%]   .page-info[_ngcontent-%COMP%]{flex:1}.customer-section[_ngcontent-%COMP%]   .customer-name[_ngcontent-%COMP%]{font-weight:700}.customer-section[_ngcontent-%COMP%]   .page-info[_ngcontent-%COMP%]{text-align:right}.customer-section[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:700}.customer-section[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:3px 0}.vehicle-info[_ngcontent-%COMP%]{margin-bottom:20px}.vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:12px}.vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:5px;border:1px solid #ddd;text-align:left}.vehicle-info[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#f5f5f5;font-weight:700}.vehicle-info[_ngcontent-%COMP%]   table.delivery-info[_ngcontent-%COMP%]{margin-top:10px}.vehicle-info[_ngcontent-%COMP%]   table.delivery-info[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-weight:700;font-size:10px}.service-details[_ngcontent-%COMP%]{margin-bottom:20px}.service-details[_ngcontent-%COMP%]   .service-header[_ngcontent-%COMP%]{display:flex;background-color:#f5f5f5;padding:5px 0;font-weight:700;font-size:11px;border-bottom:1px solid #aaa}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]{font-size:11px}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]{margin-bottom:10px}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .line-id[_ngcontent-%COMP%]{font-weight:700;padding:5px 0}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .operation-row[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .part-row[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .line-total[_ngcontent-%COMP%]{display:flex;padding:3px 0}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .part-row[_ngcontent-%COMP%]   .part-description[_ngcontent-%COMP%]{font-style:italic}.service-details[_ngcontent-%COMP%]   .service-items[_ngcontent-%COMP%]   .service-item[_ngcontent-%COMP%]   .line-total[_ngcontent-%COMP%]{font-weight:700}.service-details[_ngcontent-%COMP%]   .col-line[_ngcontent-%COMP%]{width:8%}.service-details[_ngcontent-%COMP%]   .col-opcode[_ngcontent-%COMP%]{width:25%}.service-details[_ngcontent-%COMP%]   .col-tech[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-type[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-hours[_ngcontent-%COMP%]{width:5%}.service-details[_ngcontent-%COMP%]   .col-list[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-net[_ngcontent-%COMP%]{width:10%}.service-details[_ngcontent-%COMP%]   .col-cash[_ngcontent-%COMP%], .service-details[_ngcontent-%COMP%]   .col-card[_ngcontent-%COMP%]{width:15%;text-align:right}.totals-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}.totals-section[_ngcontent-%COMP%]   .pricing-notice[_ngcontent-%COMP%]{flex:3;font-size:12px;color:#d32f2f}.totals-section[_ngcontent-%COMP%]   .pricing-notice[_ngcontent-%COMP%]   h4[_ng
1content-%COMP%]{margin-top:0;margin-bottom:5px}.totals-section[_ngcontent-%COMP%]   .pricing-notice[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:5px 0}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]{flex:1;border:1px solid #ddd;padding:10px}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:5px 0;font-weight:700}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]   .total-label[_ngcontent-%COMP%]{flex:1}.totals-section[_ngcontent-%COMP%]   .final-totals[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]   .total-value[_ngcontent-%COMP%]{flex:1;text-align:right}.footer[_ngcontent-%COMP%]{font-size:8px;color:#666}.bold[_ngcontent-%COMP%]{font-weight:700}.app-container[_ngcontent-%COMP%]{font-family:Arial,sans-serif;max-width:1200px;margin:0 auto;padding:20px}header[_ngcontent-%COMP%]{text-align:center;margin-bottom:30px}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#333;margin:0;padding:15px 0;border-bottom:2px solid #eee}main[_ngcontent-%COMP%]{min-height:calc(100vh - 200px)}.table-container[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;border:1px solid rgba(224,211,211,.5294117647)}.table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid rgba(224,211,211,.5294117647);padding:10px;text-align:left;font-size:10px}.table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#f0f0f0}.pay-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-weight:700;font-size:10px;padding-top:0;padding-bottom:0}.fetch-btn[_ngcontent-%COMP%]{height:48px!important;margin-left:-89px!important;z-index:9!important}.fetch-loading[_ngcontent-%COMP%]{z-index:9!important}.fee-card[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;box-shadow:0 0 0 1px #f1f1f5}.w-48[_ngcontent-%COMP%]{width:48%!important}.arrow-class[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;transition:transform .25s ease-in-out}.arrow-class.arrow-open[_ngcontent-%COMP%]{transform:rotate(180deg)}.disabled-link[_ngcontent-%COMP%]{pointer-events:none;opacity:.5;cursor:not-allowed}.disabled-arrow[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.breakdown-container[_ngcontent-%COMP%]{max-height:0;overflow:hidden;opacity:0;transform:translateY(-4px);margin-top:0;padding-top:0;padding-bottom:0;transition:max-height .25s ease-in-out,opacity .25s ease-in-out,margin-top .25s ease-in-out,padding .25s ease-in-out,transform .25s ease-in-out}.breakdown-container.is-open[_ngcontent-%COMP%]{max-height:1000px;opacity:1;transform:translateY(0);margin-top:.5rem;padding-top:.5rem;padding-bottom:.5rem}.paymentModes.payment-mode-locked[_ngcontent-%COMP%], .paymentModeParentDiv.payment-mode-locked[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed}@media (max-width: 768px){.custom-fee-width[_ngcontent-%COMP%]{width:80%!important}.w-48[_ngcontent-%COMP%]{width:100%!important}}.amount-field[_ngcontent-%COMP%]{position:relative;width:320px;margin:0 auto 24px}.floating-label[_ngcontent-%COMP%]{position:absolute;top:-9px;left:16px;background:#ffffff;padding:0 6px;font-size:13px;color:#8b95a5}.floating-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#e11d48}.amount-box[_ngcontent-%COMP%]{border:1px solid #dbe2ef;border-radius:14px;padding:18px 20px;display:flex;align-items:center;gap:12px}.amount-box[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:18px;color:#6b7280}.amount-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;outline:none;font-size:20px;font-weight:700;width:100%}.fee-breakdown[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:15px;margin-bottom:24px}.total[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%], #total[_ngcontent-%COMP%]{font-weight:500;margin-right:6px;color:#6b7280}.total[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#111827;font-weight:600}.breakdown-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#6b7280;cursor:pointer}.breakdown-toggle.disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:none;cursor:not-allowed}.breakdown-toggle[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #6b7280;transition:transform .3s cubic-bezier(.4,0,.2,1)}.breakdown-toggle.open[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.d-flex.align-items-center.justify-content-center[_ngcontent-%COMP%] >
1 .mdi-arrow-down-circle[_ngcontent-%COMP%]{display:none!important}.mdi-arrow-down-circle[_ngcontent-%COMP%]:before{content:none!important;display:none!important}.remove-icon[_ngcontent-%COMP%]{width:18px;height:18px;object-fit:contain}.fee-breakdown[_ngcontent-%COMP%]{width:100%;display:block;margin:0 auto;padding:0;box-sizing:border-box}.fee-breakdown.fee-breakdown-post-action-centered[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.fee-breakdown.fee-breakdown-post-action-centered[_ngcontent-%COMP%]   .total-row[_ngcontent-%COMP%]{width:fit-content;margin-left:auto;margin-right:auto;justify-content:center}.breakdown[_ngcontent-%COMP%]{background:#f8fafc;border:1px solid #dbe2ef;border-radius:5px;width:fit-content;max-width:calc(100% - 16px);margin-left:auto;margin-right:auto;box-sizing:border-box;justify-content:center;max-height:0;opacity:0;overflow:hidden;visibility:hidden;transform:translateY(-10px);padding:0 20px;transition:max-height .4s cubic-bezier(.4,0,.2,1),opacity .2s ease-out,transform .4s cubic-bezier(.4,0,.2,1),padding .4s cubic-bezier(.4,0,.2,1),margin .4s cubic-bezier(.4,0,.2,1)}.breakdown.visible[_ngcontent-%COMP%]{max-height:500px;opacity:1;visibility:visible;transform:translateY(0);padding:10px 18px;transition:max-height .4s cubic-bezier(.4,0,.2,1),opacity .2s ease-out,transform .4s cubic-bezier(.4,0,.2,1),padding .4s cubic-bezier(.4,0,.2,1),margin .4s cubic-bezier(.4,0,.2,1)}.breakdown-surcharge-msg[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center;margin:6px 0 0;padding:0;max-width:100%;text-align:center;font-size:13px;font-weight:600;line-height:1.35;color:#374151;text-transform:none}.breakdown-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 10px max-content max-content 20px max-content 10px max-content max-content;grid-auto-rows:minmax(0,max-content);column-gap:6px;row-gap:6px;justify-content:center;align-items:center;width:fit-content;max-width:100%;transition:row-gap .38s ease}.breakdown-columns.breakdown-columns-single[_ngcontent-%COMP%]{grid-template-columns:max-content 10px max-content max-content;margin-left:auto;margin-right:auto}.breakdown-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:subgrid;align-items:center;box-sizing:border-box;max-height:48px;overflow:hidden;animation:breakdown-row-in .38s ease;transition:max-height .38s cubic-bezier(.4,0,.2,1),opacity .38s ease,transform .38s ease,margin .38s ease,padding .38s ease,filter .38s ease}.breakdown-item.breakdown-left[_ngcontent-%COMP%]{grid-column:1/span 4}.breakdown-item.breakdown-single[_ngcontent-%COMP%]{grid-column:1/span 4;justify-self:center}.breakdown-item.breakdown-right[_ngcontent-%COMP%]{grid-column:6/span 4}.breakdown-item.breakdown-row-top[_ngcontent-%COMP%]{grid-row:1}.breakdown-item.breakdown-row-bottom[_ngcontent-%COMP%]{grid-row:2}.breakdown-item.item-state[_ngcontent-%COMP%], .breakdown-item.item-secondary[_ngcontent-%COMP%]{transition:max-height .38s cubic-bezier(.4,0,.2,1),opacity .38s ease,transform .38s ease,margin .38s ease,padding .38s ease,filter .38s ease,grid-row .38s cubic-bezier(.4,0,.2,1),grid-column .38s cubic-bezier(.4,0,.2,1)}.breakdown-item.is-removing[_ngcontent-%COMP%]{opacity:0;transform:scale(.96);filter:blur(.8px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;pointer-events:none}@keyframes breakdown-row-in{0%{opacity:0;transform:translateY(-6px);max-height:0}to{opacity:1;transform:translateY(0);max-height:48px}}@supports not (grid-template-columns: subgrid){.breakdown-item[_ngcontent-%COMP%]{display:contents;max-height:none;overflow:visible;animation:none;transition:none}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%]{grid-column:1;justify-self:end}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%]{grid-column:2;justify-self:center}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%]{grid-column:3;justify-self:start}.breakdown-item.breakdown-left[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{grid-column:4;justify-self:center}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%]{grid-column:6;justify-self:end}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%]{grid-column:7;justify-self:center}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%]{grid-column:8;justify-self:start}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{grid-column:9;justify-self:center}.breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%], .breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%], .breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%], .breakdown-item.is-removing[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{opacity:0;transform:scale(.96);filter:blur(.8px);pointer-events:none;transition:opacity .38s ease,transform .38s ease,filter .38s ease}}.breakdown-label[_ngcontent-%COMP%]{font-size:14px;color:#8a8f98;font-weight:500;white-space:nowrap;text-align:right;justify-self:end;line-height:1.15;box-sizing:border-box;padding:4px 0;text-transform:none}.breakdown-colon[_ngcontent-%COMP%]{width:10px;text-align:center;color:#8a8f98;font-weight:500;line-height:1.15;padding:4px 0}.breakdown-value[_ngcontent-%COMP%]{font-size:14px;display:block;text-align:left;justify-self:start;white-space:nowrap;font-weight:600;color:#111;font-variant-numeric:tabular-nums;box-sizing:border-box;padding:4px 0}.breakdown-remove[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;min-height:18px;padding:0;cursor:pointer;flex-shrink:0}.breakdown-remove[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .breakdown-remove[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:18px;height:18px;display:block;line-height:1}.danger-icon[_ngcontent-%COMP%]{color:#dc2626}.breakdown-remove[_ngcontent-%COMP%]   i.danger-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:18px}.breakdown-remove[_ngcontent-%COMP%]   i.danger-icon[_ngcontent-%COMP%]:before{line-height:18px}.breakdown-remove.placeholder[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}.breakdown-remove.placeholder[_ngcontent-%COMP%]:before{content:"";display:block;width:18px;height:18px}@media (max-width: 520px){.breakdown-columns[_ngcontent-%COMP%]{grid-template-columns:max-content 10
1px max-content max-content;row-gap:16px}.breakdown-item.breakdown-left[_ngcontent-%COMP%], .breakdown-item.breakdown-right[_ngcontent-%COMP%]{grid-column:1/span 4}@supports not (grid-template-columns: subgrid){.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-label[_ngcontent-%COMP%]{grid-column:1}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-colon[_ngcontent-%COMP%]{grid-column:2}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-value[_ngcontent-%COMP%]{grid-column:3}.breakdown-item.breakdown-right[_ngcontent-%COMP%]   .breakdown-remove[_ngcontent-%COMP%]{grid-column:4}}}.payment-label[_ngcontent-%COMP%]{top:-1rem!important}.cards-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}']}),O})()},92340:(Te,G,r)=>{"use strict";r.d(G,{N:()=>i});const i={production:!0,environmentName:"prod",apiUrl:"/portalApi",steamApiUrl:"/steamApi",paymentApiUrl:"/paymentapi",cccApiUrl:"/cccapi",pockytApiUrl:"/pockytapi",achApiUrl:"/achapi",invoiceApiUrl:"/invoiceapi",secretKey:"1995",isSwitchTPN:!0,apiFullUrl:"https://api.ipospays.com/v1",portalUrl:"https://portal.ipospays.com",steamApiFullUrl:"https://steam.ipospays.com/v1",portalImagePath:"assets/images",portalMerchantLogoPath:"https://portal.ipospays.com/portalApi/assets/images/merchantlogos",steamImagePath:"../../../data/steam/assets/images",dateFormat:"MM-DD-yyyy",dateTimeFormat:"MM-DD-yyyy - HH:mm:ss",displayTimeZone:"America/New_York",autoLogoutTime:240,checkInterval:1e3,inspect:!1,minorChannel:{0:"POS Terminal",1:"SPIN-LOCAL",2:"SPIN-CLOUD",3:"PINPAD",4:"E-Commerce",5:"RECURRING-PAYMENT",6:"INVOICE-PAYMENT",7:"CUSTOMER-PAYMENT",8:"Tap on phone",9:"EXTERNAL-ECOM",10:"ACH",11:"GHPP",12:"POS-CUSTOMER-PAYMENT",13:"CP-PINPAD",14:"Google Pay",15:"External E-Commerce-FTD",16:"Econduit",17:"WooCommerce-Redirect",18:"Apple Pay",19:"WooCommerce-Embedded",20:"Deep Linking iOS",21:"In-App SDK iOS",22:"WooCommerce",23:"WooCommerce Embedded Google pay",24:"Paypal",25:"Venmo",26:"Crypto",27:"USB",28:"SPIN-USB"},POSMode:{100:"COF",110:"CONTACTLESS",112:"CONTACTLESS",710:"CONTACTLESS",711:"CONTACTLESS",712:"CONTACTLESS",800:"SWIPE",801:"SWIPE",802:"SWIPE",900:"SWIPE",901:"SWIPE",902:"SWIPE","071":"CONTACTLESS","010":"MANUAL","011":"MANUAL","012":"MANUAL","050":"CHIP","051":"CHIP","052":"CHIP","004":"CHECK"},qbDesc:{1:"Production Settings",2:!0,3:!0},spinServer:"https://z2spin.spinpos.net/",pagoServer:"https://ipos-gateway.test.pago.dev/",enableClientError:!1,keySize:256,ivSize:128,iterations:100,defaultLogo:"https://portal.ipospays.com/portalApi/assets/images/defaultLogo/iPOSpays.png",CAPTCHA_SITE_KEY:"6Ld9ScEpAAAAAFFw8A62sNSW5Z9T0tGj4224SLEh",version:"4",whitelabelLogoPath:"https://portal.ipospays.com/portalApi/assets/images/whitelabelImages",defaultPaymentDomain:"https://payment.ipospays.com",defaultIcon:"https://portal.ipospays.com/assets/images/iPOS.png",defaultPaymentTabName:"IPOSpays Payment Form",apiDocsLink:"https://docs.ipospays.com",knowledgeBaseLink:"https://knowledge.ipospays.com/",releaseNotesLink:"https://releases.ipospays.com/",payaEntryClasses:{PPD:"PERSONAL",CCD:"BUSINESS"}
1,brandingUrl:"https://pay.ipospays.com/branding",paymentGatwayApi:"https://pay.ipospays.com",vipUrl:"https://dejaup.ipospays.com",enableDemoCredentials:!1,ACH:{},PAYAACH:{},VERICHECKACH:{}}},95372:(Te,G,r)=>{"use strict";var i=r(34497),t=r(22560),_=r(6458),g=r(69906),T=r(59462),v=r(59151),I=r(94666),w=r(28424),A=r(83918),b=r(92938),D=r(33935),e=r(19787),n=r(68375),f=r(2508),S=r(40929),J=r(67716);function de(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"a",29),t.NdJ("click",function(){const oe=t.CHM(l).index,_e=t.oxw();return t.KtG(_e.useLanguage(oe))}),t._UZ(1,"i",30),t.TgZ(2,"span",31),t._uU(3),t.qZA()()}if(2&u){const l=Y.$implicit;t.xp6(1),t.Gre("flag-icon flag-icon-",l.icon,""),t.s9C("title",l.code),t.s9C("id",l.code),t.xp6(2),t.hij(" ",l.name," ")}}function Ie(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"div",32)(1,"div",33)(2,"div",34),t._UZ(3,"p-avatar",35),t.qZA(),t.TgZ(4,"div",36)(5,"p",37),t._uU(6),t.qZA(),t.TgZ(7,"p",38),t._uU(8),t.qZA(),t.TgZ(9,"p",39),t._uU(10),t.qZA()()(),t.TgZ(11,"div",17)(12,"ul",40)(13,"li",41)(14,"a",42),t.NdJ("click",function(){t.CHM(l);const U=t.oxw();return t.KtG(U.onLogout())}),t._UZ(15,"i",43),t.TgZ(16,"span"),t._uU(17),t.ALo(18,"translate"),t.qZA()()()()()()}if(2&u){const l=t.oxw();
1t.xp6(3),t.Q6J("label",l.getInitials()),t.xp6(3),t.AsE("",l.currentUser.firstName," ",l.currentUser.lastName,""),t.xp6(2),t.Oqu(l.currentUser.email),t.xp6(2),t.Oqu(l.agentOfficeRoleChange(l.currentUser.userType)),t.xp6(7),t.Oqu(t.lcZ(18,6,"navbar-options.logout"))}}let z=(()=>{class u{constructor(l,y,U,oe,_e,De,Ne,Ve){this.document=l,this.renderer=y,this.router=U,this.translate=oe,this.authService=_e,this.userService=De,this.formBuilder=Ne,this.ngbModal=Ve,this.currentUser={firstName:"",email:"",lastName:"",userType:""},this.iscyanchecked=!0,this.isbluechecked=!1,this.ispurplechecked=!0,this.languages=[{code:"en",name:"English",icon:"us"},{code:"es",name:"Spanish",icon:"es"}],this.selectedLanguage=this.languages[0],oe.setDefaultLang(this.selectedLanguage.code)}ngOnInit(){this.getCurrentUser(),this.defaultTheme=this.authService.getUser.themeColor,"theme-purple-light"==this.defaultTheme&&(this.ispurplechecked=!0,this.iscyanchecked=!1,this.isbluechecked=!1),"theme-cyan-light"==this.defaultTheme&&(this.iscyanchecked=!0,this.isbluechecked=!1,this.ispurplechecked=!1),"theme-bluegrey-light"==this.defaultTheme&&(this.isbluechecked=!0,this.iscyanchecked=!1,this.ispurplechecked=!1)}ngOnDestroy(){this.ngbModal.dismissAll()}toggleSidebar(l){l.preventDefault(),this.document.body.classList.toggle("sidebar-open")}onLogout(){var l=this;return(0,A.Z)(function*(){l.ngbModal.dismissAll(),(yield l.authService.logoutService()).subscribe(U=>{console.log("logout")})})()}agentOfficeRoleChange(l){return(0,b.replace)(this.authService.subIsoToAgentOffice(l),/_/g," ")}useLanguage(l){this.selectedLanguage=this.languages[l],this.translate.use(this.selectedLanguage.code)}onSidebarThemeChange(l){this.document.body.classList.remove("sidebar-light","theme-cyan-light","theme-bluegrey-light","theme-purple-light"),this.document.body.classList.add(l),this.getTheme(l),this.document.body.classList.remove("settings-open"),this.iscyanchecked=!1,this.isbluechecked=!1,this.ispurplechecked=!1;const y={"theme-cyan-light":"iscyanchecked","theme-bluegrey-light":"isbluechecked","theme-purple-light":"ispurplechecked"};y.hasOwnProperty(l)&&(this[y[l]]=!0),this.userService.userFavTheme.next("purple")}getCurrentUser(){this.currentUser=this.authService.getUser}getTheme(l){let y={themeColor:l};this.userService.getTheme(this.userService.getThemeColorById,y).subscribe(U=>{this.authService.updateUser(y),console.log(U)})}getInitials(){let l=this.currentUser.firstName[0];return l+=this.currentUser.lastName?this.currentUser.lastName[0]:"",l}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(I.K0),t.Y36(t.Qsj),t.Y36(T.F0),t.Y36(D.sK),t.Y36(e.e),t.Y36(n.K),t.Y36(f.QS),t.Y36(S.FF))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-navbar"]],decls:37,vars:13,consts:[[1,"navbar"],["href","",1,"sidebar-toggler",2,"border-right-width","0px",3,"click"],[1,"feather","icon-menu"],[1,"navbar-content"],[1,"navbar-nav"],["ngbDropdown","",1,"nav-item"],["ngbDropdownToggle","","id","languageDropdown","role","button",1,"nav-link"],["title","us"],[1,"font-weight-medium","ml-1","mr-1","d-none","d-md-inline-block"],["ngbDropdownMenu","","aria-labelledby","languageDropdown"],["ngbDropdownItem","","class","py-2",3,"click",4,"ngFor","ngForOf"],["ngbDropdown","",1,"nav-item","nav-messages"],["ngbDropdownToggle","","id","messageDropdown",1,"nav-link"],[1,"link-icon","feather","icon-settings"],["ngbDropdownMenu","","aria-labelledby","notificationDropdown"],[1,"dropdown-header","d-flex","align-items-center","justify-content-between"],[1,"mb-0","font-weight-medium"],[1,"dropdown-body"],[1,"custom-control","custom-checkbox"],["type","radio","name","purple","id","theme-purple-light",1,"custom-control-input",3,"checked","change"],["for","theme-purple-light",1,"custom-control-label"],["type","radio","name","Cyan","id","theme-cyan-light",1,"custom-control-input",3,"checked","change"],["for","theme-cyan-light",1,"custom-control-label"],["type","radio","name","Bluegrey","id","theme-bluegrey-light",1,"custom-control-input",3,"checked","change"],["for","theme-bluegrey-light",1,"custom-control-label"],["ngbDropdown","",1,"nav-item","nav-profile"],["ngbDropdownToggle","","id","profileDropdown",1,"nav-link"],["shape","circle",3,"label"],["ngbDropdownMenu","","aria-labelledby","profileDropdown",4,"ngIf"],["ngbDropdownItem","",1,"py-2",3,"click"],[3,"title","id"],[1,"ml-1"],["ngbDropdownMenu","","aria-labelledby","profileDropdown"],[1,"dropdown-header","d-flex","flex-column","align-items-center"],[1,"figure","mb-3"],["shape","circle","size","xlarge",3,"label"],[1,"info","text-center"],[1,"name","font-weight-bold","mb-0"],[1,"email","text-muted","mb-0"],[1,"user-type","text-muted","mb-3"],[1,"profile-nav","p-0","pt-3"],[1,"nav-item"],[1,"nav-link",3,"click"],[1,"feather","icon-log-out"]],template:function(l,y){1&l&&(t.TgZ(0,"nav",0)(1,"a",1),t.NdJ("click",function(oe){return y.toggleSidebar(oe)}),t._UZ(2,"i",2),t.qZA(),t.TgZ(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),t._UZ(7,"i",7),t.TgZ(8,"span",8),t._uU(9),t.qZA()(),t.TgZ(10,"div",9),t.YNc(11,de,4,6,"a",10),t.qZA()(),t.TgZ(12,"li",11)(13,"a",12),t._UZ(14,"i",13),t.qZA(),t.TgZ(15,"div",14)(16,"div",15)(17,"p",16),t._uU(18),t.ALo(19,"translate"),t.qZA()(),t.TgZ(20,"div",17)(21,"div",18)(22,"
1input",19),t.NdJ("change",function(){return y.onSidebarThemeChange("theme-purple-light")}),t.qZA(),t.TgZ(23,"label",20),t._uU(24,"Ipospays"),t.qZA()(),t.TgZ(25,"div",18)(26,"input",21),t.NdJ("change",function(){return y.onSidebarThemeChange("theme-cyan-light")}),t.qZA(),t.TgZ(27,"label",22),t._uU(28,"Cyan"),t.qZA()(),t.TgZ(29,"div",18)(30,"input",23),t.NdJ("change",function(){return y.onSidebarThemeChange("theme-bluegrey-light")}),t.qZA(),t.TgZ(31,"label",24),t._uU(32,"Bluegrey"),t.qZA()()()()(),t.TgZ(33,"li",25)(34,"a",26),t._UZ(35,"p-avatar",27),t.qZA(),t.YNc(36,Ie,19,8,"div",28),t.qZA()()()()),2&l&&(t.xp6(7),t.Gre("flag-icon flag-icon-",y.selectedLanguage.icon," mt-1"),t.xp6(2),t.Oqu(y.selectedLanguage.name),t.xp6(2),t.Q6J("ngForOf",y.languages),t.xp6(7),t.Oqu(t.lcZ(19,11,"navbar-options.theme-color")),t.xp6(4),t.Q6J("checked",y.ispurplechecked),t.xp6(4),t.Q6J("checked",y.iscyanchecked),t.xp6(4),t.Q6J("checked",y.isbluechecked),t.xp6(5),t.Q6J("label",y.getInitials()),t.xp6(1),t.Q6J("ngIf",y.currentUser.email))},dependencies:[I.sg,I.O5,S.jt,S.iD,S.Vi,S.TH,S.M2,J.q,D.X$],styles:[".cnt-swt-btn[_ngcontent-%COMP%]{place-content:center}.swt-btn-name[_ngcontent-%COMP%]{align-items:baseline}.form-check-chg[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:4px}@media print{.sidebar-toggler[_ngcontent-%COMP%]{visibility:hidden}}"]}),u})();var Oe=r(78301),ee=r(22872),Me=r(33937),R=r(92340),W=r(11009),ie=r(40696),ye=r(39195),Ue=r(20311),$e=r(33507),ke=r(58987),Re=r(92853),F=r(14470),Q=r(41205),ae=r(65701);const H=["sidebarToggler"],ge=["sidebarMenu"];function Se(u,Y){if(1&u&&(t.TgZ(0,"li",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u){const l=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,l.label))}}function Je(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(3).$implicit;t.uIk("data-feather",l.icon)}}function We(u,Y){if(1&u&&(t.TgZ(0,"a",18),t.YNc(1,Je,1,1,"i",19),t.TgZ(2,"span",20),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"span",21),t.qZA()),2&u){const l=t.oxw(2).$implicit,y=t.oxw();t.Q6J("ngClass",y.atleastOneRoleAvailable(l.module)?"disable-sub-list":""),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(2),t.Oqu(t.lcZ(4,3,l.label))}}function He(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(3).$implicit;t.uIk("data-feather",l.icon)}}function et(u,Y){if(1&u&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&u){const l=t.oxw(3).$implicit;t.Gre("badge badge-",l.badge.variant,""),t.xp6(1),t.Oqu(l.badge.text)}}function qe(u,Y){if(1&u&&(t.TgZ(0,"a",23),t.YNc(1,He,1,1,"i",19),t.TgZ(2,"span",20),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,et,2,4,"span",24),t.qZA()),2&u){const l=t.oxw(2).$implicit,y=t.oxw();t.ekj("disabled",y.isPermission(l.module,null==l?null:l.privilege)),t.Q6J("routerLink",l.link),t.uIk("data-parent",l.parentId),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(2),t.Oqu(t.lcZ(4,7,y.customerToAgentOffice(l.label))),t.xp6(2),t.Q6J("ngIf",l.badge)}}function at(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(3).$implicit;t.uIk("data-feather",l.icon)}}function tt(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"a",25),t.NdJ("click",function(U){t.CHM(l);const oe=t.oxw(2).$implicit,_e=t.oxw();return t.KtG(_e.onDejaupExternalLinkClick(U,oe))}),t.YNc(1,at,1,1,"i",19),t.TgZ(2,"span",20),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&u){const l=t.oxw(2).$implicit,y=t.oxw();t.s9C("href",l.link,t.LSH),t.s9C("target","_blank"==(null==l?null:l.target)?"_blank":"_self"),t.uIk("data-parent",l.parentId)("rel",l.externalLinkRel||null),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(2),t.Oqu(t.lcZ(4,6,y.customerToAgentOffice(l.label)))}}function se(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(2).$implicit;t.uIk("data-feather",l.icon)}}function xe(u,Y){if(1&u&&(t.TgZ(0,"a",33),t.YNc(1,se,1,1,"i",19),t.TgZ(2,"span",20),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"span",21),t.qZA()),2&u){const l=t.oxw().$implicit,y=t.oxw(3).$implicit,U=t.oxw();t.ekj("disabled",U.isPermission(y.module,null==l?null:l.privilege)),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(2),t.hij(" ",t.lcZ(4,4,l.label)," ")}}function B(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(2).$implicit;t.uIk("data-feather",l.icon)}}function $(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"a",25),t.NdJ("click",function(U){t.CHM(l);const oe=t.oxw().$implicit,_e=t.oxw(4);return t.KtG(_e.onDejaupExternalLinkClick(U,oe))}),t.YNc(1,B,1,1,"i",19),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&u){const l=t.oxw().$implicit,y=t.oxw(4);t.ekj("disabled",y.isPermission(l.module,null==l?null:l.privilege)),t.s9C("href",l.link,t.LSH),t.s9C("target","_blank"==(null==l?null:l.target)?"_blank":"_self"),t.uIk("data-parent",l.parentId)("rel",l.externalLinkRel||null),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(1),t.hij(" ",t.lcZ(3,8,l.label)," ")}}function be(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(3).$implicit;t.uIk("data-feather",l.icon)}}function Ze(u,Y){if(1&u&&(t.TgZ(0,"a",35),t.YNc(1,be,1,1,"i",19),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&u){const l=t.oxw(2).$implicit,y=t.oxw(4);t.ekj("disabled",y.isPermission(l.module,null==l?null:l.privilege)),t.s9C("target","_blank"==(null==l?null:l.target)?"_blank":"_self"),t.Q6J("routerLink",l.link),t.uIk("data-parent",l.parentId),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(1),t.hij(" ",t.lcZ(3,7,l.label)," ")}}function O(u,Y){if(1&u&&t.YNc(0,Ze,4,9,"a",34),2&u){const l=t.oxw().$implicit,y=t.oxw(3).$implicit,U=t.oxw();t.Q6J("ngIf",!U.hasItems(l)&&!U.isPermission(y.module,null==l?null:l.privilege)&&U.checkMobileView(l))}}function ce(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(2).$implicit;t.uIk("data-feather",l.icon)}}function C(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"a",40),t.NdJ("click",function(U){t.CHM(l);const oe=t.oxw().$implicit,_e=t.oxw(6);return t.KtG(_e.onDejaupExternalLinkClick(U,oe))}),t.YNc(1,ce,1,1,"i",19),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&u){const l=t.oxw().$implicit,y=t.oxw(6);t.ekj("disabled",y.isPermission(l.module,null==l?null:l.privilege)),t.s9C("href",l.link,t.LSH),t.s9C("target","_blank"==(null==l?null:l.target)?"_blank":"_self"),t.uIk("data-parent",l.parentId)("rel",l.externalLinkRel||null),t.xp6(1),t.Q6J("ngIf",l.icon),t.xp6(1),t.hij(" ",t.lcZ(3,8,l.label)," ")}}function M(u,Y){if(1&u&&t._UZ(0,"i",22),2&u){const l=t.oxw(4).$implicit;t.uIk("data-feather",l.icon)}}const j=function(){return["active"]};function X(u,Y){if(1&u&&(t.TgZ(0,"a",41),t.YNc(1,M,1,1,"i",19),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&u){const l=t.oxw().$implicit,y=t.oxw(6);t.ekj("disabled",y.isPermission(null==l?null:l.module,null==l?null:l.privilege)),t.s9C("target","_blank"==(null==l?null:l.target)?"_blank":"_self"),t.Q6J("routerLink",l.link)("routerLinkActive",t.DdM(10,j)),t.uIk("data-parent",l.parentId),t.xp6(1),t.Q6J("ngIf",null==l?null:l.icon),t.xp6(1),t.hij(" ",t.lcZ(3,8,null==l?null:l.label)," ")}}function fe(u,Y){if(1&u&&(t.TgZ(0,"li",13),t.YNc(1,C,4,10,"a",38),t.YNc(2,X,4,11,"ng-template",null,39,t.W1O),t.qZA()),2&u){const l=Y.$implicit,y=t.MAs(3),U=t.oxw(5).$implicit,oe=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!oe.hasItems(l)&&!oe.isPermission(U.module,null==l?null:l.privilege)&&1==(null==l?null:l.isExternalURL))("ngIfElse",y)}}function E(u,Y){if(1&u&&(t.TgZ(0,"ul",36),t.YNc(1,fe,4,2,"li",37),t.qZA()),2&u){const l=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",l.subItems)}}const K=function(u){return{"side-nav-item":u}};function te(u,Y){if(1&u&&(t.TgZ(0,"li",28),t.YNc(1,xe,6,6,"a",29),t.YNc(2,$,4,10,"a",30),t.YNc(3,O,1,1,"ng-template",null,31,t.W1O),t.YNc(5,E,2,1,"ul",32),t.qZA()),2&u){const l=Y.$implicit,y=t.MAs(4),U=t.oxw(3).$implicit,oe=t.oxw();t.Q6J("ngClass",t.VKq(5,K,oe.hasItems(l))),t.xp6(1),t.Q6J("ngIf",oe.hasItems(l)),t.xp6(1),t.Q6J("ngIf",!oe.hasItems(l)&&!oe.isPermission(U.module,null==l?null:l.privilege)&&1==(null==l?null:l.isExternalURL))("ngIfElse",y),t.xp6(3),t.Q6J("ngIf",oe.hasItems(l))}}function Le(u,Y){if(1&u&&(t.TgZ(0,"ul",26),t.YNc(1,te,6,7,"li",27),t.qZA()),2&u){const l=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",l.subItems)}}function Z(u,Y){if(1&u&&(t.TgZ(0,"li",13),t.YNc(1,We,6,5,"a",14),t.YNc(2,qe,6,9,"a",15),t.YNc(3,tt,5,8,"a",16),t.YNc(4,Le,2,1,"ul",17),t.qZA()),2&u){const l=t.oxw().$implicit,y=t.oxw();t.xp6(1),t.Q6J("ngIf",y.hasItems(l)&&y.checkMobileView(l)),t.xp6(1),t.Q6J("ngIf",!y.hasItems(l)&&y.checkMobileView(l)&&!(null!=l&&l.isExternalURL)&&!y.isPermission(l.module,null==l?null:l.privilege)),t.xp6(1),t.Q6J("ngIf",!y.hasItems(l)&&(null==l?null:l.isExternalURL)&&y.checkMobileView(l)&&(!(null!=l&&l.privilege)||!y.isPermission(l.module,l.privilege))),t.xp6(1),t.Q6J("ngIf",y.hasItems(l))}}function pe(u,Y){if(1&u&&(t.ynx(0),t.YNc(1,Se,3,3,"li",10),t.YNc(2,Z,5,4,"li",11),t.BQk()),2&u){const l=Y.$implicit,y=t.oxw();t.xp6(1),t.Q6J("ngIf",l.isTitle&&y.checkMobileView(l)),t.xp6(1),t.Q6J("ngIf",!l.isTitle&&!y.atleastOneRoleAvailable(l.module))}}let k=(()=>{class u{constructor(l,y,U,oe,_e,De,Ne,Ve,ot){this.document=l,this.renderer=y,this.authService=U,this.customerService=_e,this.commonService=De,this.httpClient=Ne,this.sidebarService=Ve,this.subAppWindowBridge=ot,this.menuItems=[],this.privileges=Me.R,this.baseUrl=R.N.apiUrl,this.imageUrl=R.N.whitelabelLogoPath,this.router=oe,oe.events.forEach(rt=>{rt instanceof T.m2&&(this._activateMenuDropdown(),window.matchMedia("(max-width: 991px)").matches&&this.document.body.classList.remove("sidebar-open"),this.hideToggleBar())})}ngOnInit(){this.menuItems=this.getMenuForCurrentUser(Oe.s,this.authService.getUser.roleFeatures);const{userType:l,userTypeRole:y}=this.authService?.getUserRoleType()||{};if(l!==W.F.ISO||y!==W.F.ADMIN||this.isPermission(ye.Z.merchantBilling,ye.Z.view)){this.menuItems=JSON.parse(JSON.stringify(this.menuItems));const ot=this.menuItems.find(rt=>"Invoices"===rt.label);ot?.subItems&&(ot.subItems=ot.subItems.filter(rt=>"Merchant Invoicing"!==rt.label))}const _e=JSON.parse(localStorage.getItem("whitelabelResData")),De=this.authService?.getUser?.customerLogo,Ne=_e?.logo_dashboard;this.sideBarImage=(0,b.isEmpty)(Ne)?(0,b.isEmpty)(De)?R.N?.defaultLogo:R.N.apiFullUrl+"/assets/images/"+De:`${this.imageUrl}/${Ne}`;const Ve=window.matchMedia("(min-width:992px) and (max-width: 1199px)");Ve.addListener(this.iconSidebar),this.iconSidebar(Ve)}ngAfterViewInit(){this.sidebarService.toggleSidebar$.subscribe(()=>{this.sidebarToggler.nativeElement.click()}),new ie.Z(this.sidebarMenu.nativeElement),this._activateMenuDropdown(),this.hideToggleBar(),this.router.events.subscribe(l=>{l instanceof T.m2&&setTimeout(()=>{this.hideToggleBar(),this._activateMenuDropdown()},100)})}customerToAgentOffice(l){return this.authService?.getUser?.userType!=W.F.SYSTEM&&"Customer"==l?W.F.AGENT_OFFICE:l}toggleSidebar(l){const y=this.router.url,U=y.split("?")[0];if("/blink"===y||"/merchant-settings/settings/branding"===U)return void l.preventDefault();const oe=this.document.body.classList.contains("sidebar-folded");this.sidebarService.saveSidebarState(oe),this.sidebarToggler.nativeElement.classList.toggle("active"),this.sidebarToggler.nativeElement.classList.toggle("not-active"),window.matchMedia("(min-width: 992px)").matches?(l.preventDefault(),this.document.body.classList.toggle("sidebar-folded")):window.matchMedia("(max-width: 991px)").matches&&(l.preventDefault(),this.document.body.classList.toggle("sidebar-open"))}hideToggleBar(){const l=this.router.url,y=l.split("?")[0];if(this.sidebarToggler&&this.sidebarToggler.nativeElement)if("/blink"===l||"/merchant-settings/sett
1ings/branding"===y)this.document.body.classList.remove("open-sidebar-folded"),this.document.body.classList.add("sidebar-folded"),this.sidebarToggler.nativeElement.classList.remove("active"),this.sidebarToggler.nativeElement.classList.add("not-active"),this.sidebarService.clearSidebarState();else{const U=this.sidebarService.getPreviousSidebarState();"unfolded"===U?(this.document.body.classList.remove("sidebar-folded"),this.sidebarToggler.nativeElement.classList.remove("not-active"),this.sidebarToggler.nativeElement.classList.add("active"),this.sidebarService.clearSidebarState()):"folded"===U?(this.document.body.classList.add("sidebar-folded"),this.sidebarToggler.nativeElement.classList.remove("active"),this.sidebarToggler.nativeElement.classList.add("not-active"),this.sidebarService.clearSidebarState()):(this.document.body.classList.remove("sidebar-folded"),this.sidebarToggler.nativeElement.classList.remove("not-active"),this.sidebarToggler.nativeElement.classList.add("active"))}}toggleSettingsSidebar(l){l.preventDefault(),this.document.body.classList.toggle("settings-open")}operSidebarFolded(){this.document.body.classList.contains("sidebar-folded")&&this.document.body.classList.add("open-sidebar-folded")}closeSidebarFolded(){this.document.body.classList.contains("sidebar-folded")&&this.document.body.classList.remove("open-sidebar-folded")}iconSidebar(l){l.matches?this.document&&this.document.body.classList.add("sidebar-folded"):this.document&&this.document.body.classList.remove("sidebar-folded")}hasItems(l){return void 0!==l.subItems&&l.subItems.length>0}_activateMenuDropdown(){this.resetMenuItems(),this.activateMenuItems()}resetMenuItems(){const l=document.getElementsByClassName("nav-link-ref");for(let y=0;y<l.length;y++){const U=l[y];U.classList.remove("mm-active");const oe=U.parentElement;if(oe){oe.classList.remove("mm-active");const _e=oe.parentElement;_e&&_e.classList.remove("mm-show");const De=_e.parentElement;if(De){if(De.classList.remove("mm-active"),De.classList.contains("side-nav-item")){const Ve=De.querySelector(".side-nav-link-a-ref");Ve&&Ve.classList.remove("mm-active")}const Ne=De.parentElement;if(Ne){Ne.classList.remove("mm-show");const Ve=Ne.parentElement;Ve&&Ve.classList.remove("mm-active")}}}}}activateMenuItems(){const l=document.getElementsByClassName("nav-link-ref");let y=null;const U=this.router.url.split("?")[0];for(let oe=0;oe<l.length;oe++){const _e=l[oe],De=_e.pathname,Ne=_e.getAttribute("href")||"";if(De===U||Ne===U||Ne&&U&&Ne.endsWith(U)){y=_e;break}if(U.startsWith("/invoice")&&(Ne.endsWith("/virtual-terminal/invoice-list")||"/virtual-terminal/invoice-list"===Ne)){y=_e;break}}if(y){y.classList.add("mm-active");const oe=y.parentElement;if(oe){oe.classList.add("mm-active");const _e=oe.parentElement;_e&&_e.classList.add("mm-show");const De=_e.parentElement;if(De){if(De.classList.add("mm-active"),De.classList.contains("side-nav-item")){const Ve=De.querySelector(".side-nav-link-a-ref");Ve&&Ve.classList.add("mm-active")}const Ne=De.parentElement;if(Ne){Ne.classList.add("mm-show");const Ve=Ne.parentElement;Ve&&Ve.classList.add("mm-active")}}}}}getUserRole(){return this.authService.getUser.role.trim().replace("_"," ").toLowerCase()}isPermission(l,y){const U=this.authService.getPrivileges(l);if(!U||void 0===U.features)return!0;if(U.isExternalProject){const _e=U.subModuleDetails;return!(Array.isArray(_e)&&_e.some(Ne=>Ne.module&&Array.isArray(Ne.features)&&Ne.features.length>0))}return this.customerPrivilege=U.features,!(Array.isArray(y)?y:[y]).some(_e=>this.customerPrivilege.includes(_e))}getMenuForCurrentUser(l,y){let U=[];y.forEach(De=>{const Ne=this.getAllowedMenu(l,De);Array.isArray(Ne)&&Ne.length>0&&U.push(...Ne)}),U.sort((De,Ne)=>void 0===De.indexId?1:void 0===Ne.indexId?-1:De.indexId-Ne.indexId);const oe=new Map;return U.forEach(De=>{const Ne=De.moduleGroup||De.module;let Ve=[];if(De.privilege&&(Ve=Array.isArray(De.privilege)?De.privilege:[De.privilege]),oe.has(Ne)){const ot=oe.get(Ne),rt=Array.isArray(ot.privilege)?ot.privilege:[ot.privilege],Vt=Array.from(new Set([...rt,...Ve]));oe.set(Ne,{...ot,privilege:Vt})}else oe.set(Ne,{...De,privilege:[...Ve]})}),Array.from(oe.values())}getAllowedMenu(l,y){return l.filter(oe=>oe.module===y.module)}atleastOneRoleAvailable(l){const y=this.authService.getPrivileges(l);if(!y)return!0;
1if(y.isExternalProject){const oe=y.subModuleDetails;return!(Array.isArray(oe)&&oe.some(De=>De.module&&Array.isArray(De.features)&&De.features.length>0))}const U=(0,b.get)(y,"features",[]);return(0,b.isEmpty)(U)}checkMobileView(l){return!this.commonService.isMobileView||!!l.isMobileView}onDejaupExternalLinkClick(l,y){if(y.module!==ee.j.DEJAUP||!y.isExternalURL||!y.link)return;l.preventDefault();const U=y.link,_e=this.authService.getUser?.accessToken,De=(R.N.apiUrl||"").replace(/\/$/,""),Ve=()=>{const ot=window.open(U,"_blank");this.subAppWindowBridge.registerDejaupWindow(ot)};_e&&De?this.httpClient.post(`${De}/vms/sync-access-cookie`,{},{headers:{xaccesstoken:_e},withCredentials:!0}).subscribe({next:()=>Ve(),error:()=>Ve()}):Ve()}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(I.K0),t.Y36(t.Qsj),t.Y36(e.e),t.Y36(T.F0),t.Y36(Ue.v),t.Y36($e.v),t.Y36(ke.eN),t.Y36(Re.P),t.Y36(F.jj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-sidebar"]],viewQuery:function(l,y){if(1&l&&(t.Gf(H,5),t.Gf(ge,5)),2&l){let U;t.iGM(U=t.CRH())&&(y.sidebarToggler=U.first),t.iGM(U=t.CRH())&&(y.sidebarMenu=U.first)}},decls:13,vars:2,consts:[[1,"sidebar"],[1,"sidebar-header"],[1,"sidebar-brand","img_center"],["alt","",1,"img_logo",3,"src"],[1,"sidebar-toggler","not-active",3,"click"],["sidebarToggler",""],[1,"sidebar-body",3,"perfectScrollbar","mouseenter","mouseleave"],["id","sidebar-menu",1,"sidebar-nav","metismenu"],["sidebarMenu",""],[4,"ngFor","ngForOf"],["class","nav-item nav-category",4,"ngIf"],["class","nav-item",4,"ngIf"],[1,"nav-item","nav-category"],[1,"nav-item"],["class","nav-link","href","javascript:void(0);",3,"ngClass",4,"ngIf"],["class","nav-link nav-link-ref",3,"routerLink","disabled",4,"ngIf"],["class","nav-link nav-link-ref",3,"href","target","click",4,"ngIf"],["class","sidebar-nav sub-menu nav-second-level","aria-expanded","false",4,"ngIf"],["href","javascript:void(0);",1,"nav-link",3,"ngClass"],["class","link-icon","appFeatherIcon","",4,"ngIf"],[1,"link-title"],["data-feather","chevron-down","appFeatherIcon","",1,"link-arrow"],["appFeatherIcon","",1,"link-icon"],[1,"nav-link","nav-link-ref",3,"routerLink"],[3,"class",4,"ngIf"],[1,"nav-link","nav-link-ref",3,"href","target","click"],["aria-expanded","false",1,"sidebar-nav","sub-menu","nav-second-level"],["class","nav-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"nav-item",3,"ngClass"],["class","nav-link side-nav-link-a-ref","href","javascript:void(0);",3,"disabled",4,"ngIf"],["class","nav-link nav-link-ref",3,"href","disabled","target","click",4,"ngIf","ngIfElse"],["showRouterLink",""],["class","sidebar-nav sub-menu nav-third-level","aria-expanded","false",4,"ngIf"],["href","javascript:void(0);",1,"nav-link","side-nav-link-a-ref"],["class","nav-link nav-link-ref",3,"routerLink","disabled","target",4,"ngIf"],[1,"nav-link","nav-link-ref",3,"routerLink","target"],["aria-expanded","false",1,"sidebar-nav","sub-menu","nav-third-level"],["class","nav-item",4,"ngFor","ngForOf"],["class","nav-link sub-nav-link nav-link-ref",3,"href","disabled","target","click",4,"ngIf","ngIfElse"],["showSubRouterLink",""],[1,"nav-link","sub-nav-link","nav-link-ref",3,"href","target","click"],[1,"nav-link","sub-nav-link","nav-link-ref",3,"routerLink","routerLinkActive","target"]],template:function(l,y){1&l&&(t.TgZ(0,"nav",0)(1,"div",1)(2,"a",2),t._UZ(3,"img",3),t.qZA(),t.TgZ(4,"div",4,5),t.NdJ("click",function(oe){return y.toggleSidebar(oe)}),t._UZ(6,"span")(7,"span")(8,"span"),t.qZA()(),t.TgZ(9,"div",6),t.NdJ("mouseenter",function(){return y.operSidebarFolded()})("mouseleave",function(){return y.closeSidebarFolded()}),t.TgZ(10,"ul",7,8),t.YNc(12,pe,3,2,"ng-container",9),t.qZA()()()),2&l&&(t.xp6(3),t.Q6J("src",y.sideBarImage,t.LSH),t.xp6(9),t.Q6J("ngForOf",y.menuItems))},dependencies:[I.mk,I.sg,I.O5,T.yS,T.Od,Q.$V,ae.R,D.X$],styles:[".sidebar[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .sidebar-nav.sub-menu[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   .nav-link.disabled[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .sidebar-nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   .nav-link.disabled[_ngcontent-%COMP%]{pointer-events:none}img[_ngcontent-%COMP%]{height:auto!important;width:auto!important;max-height:85px!important;max-width:160px!important;vertical-align:middle!important;position:relative;z-index:1000;top:15px;right:15px}.img_center[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;cursor:default}.img_logo[_ngcontent-%COMP%]{padding:10px}.disable-sub-list[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed}"]}),u})();function Fe(u,Y){1&u&&t._UZ(0,"app-loading")}function Qe(u,Y){1&u&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}const nt=function(u){return{"no-padding-top":u}};let gt=(()=>{class u{constructor(l){this.router=l,this.appyClass=!1,l.events.forEac
1h(y=>{y instanceof T.xV?this.isLoading=!0:y instanceof T.GH&&(this.isLoading=!1)}),this.router.events.pipe((0,v.h)(y=>y instanceof T.m2)).subscribe(y=>{this.appyClass=y.urlAfterRedirects.startsWith("/merchant-settings/settings/branding")})}ngOnInit(){}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(T.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-base"]],decls:7,vars:5,consts:[[1,"main-wrapper"],[1,"page-wrapper"],[1,"page-content",3,"ngClass"],[4,"ngIf"]],template:function(l,y){1&l&&(t.TgZ(0,"div",0),t._UZ(1,"app-sidebar"),t.TgZ(2,"div",1),t._UZ(3,"app-navbar"),t.TgZ(4,"div",2),t.YNc(5,Fe,1,0,"app-loading",3),t.YNc(6,Qe,2,0,"div",3),t.qZA()()()),2&l&&(t.xp6(4),t.Q6J("ngClass",t.VKq(3,nt,y.appyClass)),t.xp6(1),t.Q6J("ngIf",y.isLoading),t.xp6(1),t.Q6J("ngIf",!y.isLoading))},dependencies:[I.mk,I.O5,T.lC,w.N,z,k],styles:[".no-padding-top[_ngcontent-%COMP%]{padding-top:0!important}"]}),u})();var _t=r(53906);let he=(()=>{class u{constructor(l,y,U){this.router=l,this.authService=y,this.totpAuthRouting=U}canActivate(l,y){const U=this.authService.getUser;return!(!U||!U?.accessToken)||(this.totpAuthRouting.guardRedirect(U,y.url)||(U&&U?.mfaRequired&&this.router.navigate(["/auth/mfa"]),"/dashboard"==y.url?this.router.navigate(["/auth/login"]):this.router.navigate(["/auth/login"],{queryParams:{returnUrl:y.url}})),!1)}}return u.\u0275fac=function(l){return new(l||u)(t.LFG(T.F0),t.LFG(e.e),t.LFG(_t.k))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})();var je=r(41493);let Dt=(()=>{class u{constructor(l,y){this.route=l,this.router=y,this.navigate=()=>{const oe=localStorage.getItem("current_user")?JSON.parse(localStorage.getItem("current_user")):null;if(!oe?.accessToken||-1==["MERCHANT","MULTI_STORE_MANAGER","STORE_MANAGER"].indexOf(oe?.userType))return this.router.navigate(["/"]);const{roleFeatures:_e,excludeFeatures:De}=oe;if(De.indexOf("VIEW_DASHBOARD")>-1){const Ne=(Ve,ot)=>_e.some(rt=>rt.module===Ve&&rt.features.includes(ot));this.router.navigateByUrl(Ne("CLOUD_POS","PAYMENTS")?"/virtual-terminal/list":Ne("TRANSACTION","VIEW_TRANSACTION")?"/transaction-management/transactions":"/user-management/users")}else this.router.navigate(["/"])}}ngOnInit(){switch(this.type=this.route.snapshot.paramMap.get("type"),console.log(this.type),this.sub=this.route.data.subscribe(l=>{l.type&&(this.type=l.type),l.title&&(this.title=l.title),l.desc&&(this.desc=l.desc)}),this.type){case"404":this.title||(this.title="Page Not Found"),this.desc||(this.desc="Oopps!! The page you were looking for doesn't exist.");break;case"500":this.title||(this.title="Internal server error"),this.desc||(this.desc="Oopps!! There wan an error. Please try agin later.");break;default:this.type="Ooops..",this.title||(this.title="Something went wrong"),this.desc||(this.desc="Looks like something went wrong.<br>We're working on it")}}ngOnDestroy(){this.sub?.unsubscribe()}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(T.gz),t.Y36(T.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-error-page"]],decls:13,vars:3,consts:[[1,"main-wrapper"],[1,"page-wrapper","full-page"],[1,"page-content","d-flex","align-items-center","justify-content-center"],[1,"row","w-100","mx-0","auth-page"],[1,"col-md-8","col-xl-6","mx-auto","d-flex","flex-column","align-items-center"],["src","assets/images/404.svg","alt","404",1,"img-fluid","mb
1-2"],[1,"font-weight-bold","mb-22","mt-2","tx-80","text-muted"],[1,"mb-2"],[1,"text-muted","mb-3","text-center",3,"innerHTML"],[1,"btn","btn-primary",3,"click"]],template:function(l,y){1&l&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"img",5),t.TgZ(6,"h1",6),t._uU(7),t.qZA(),t.TgZ(8,"h4",7),t._uU(9),t.qZA(),t._UZ(10,"h6",8),t.TgZ(11,"a",9),t.NdJ("click",function(){return y.navigate()}),t._uU(12,"Back to home"),t.qZA()()()()()()),2&l&&(t.xp6(7),t.Oqu(y.type),t.xp6(2),t.Oqu(y.title),t.xp6(1),t.Q6J("innerHTML",y.desc,t.oJD))}}),u})();var Et=r(36240),wt=r(71183),pt=r(46261),$t=r(56772),St=r(97212),yt=r(17734),Zt=r(59587);function Ft(u,Y){1&u&&t._UZ(0,"p-toast",27)}const Jt=function(){return{width:"100%",right:"0",left:"0"}},bt=function(u){return{"991px":u}};function Ut(u,Y){1&u&&t._UZ(0,"p-toast",28),2&u&&t.Q6J("breakpoints",t.VKq(2,bt,t.DdM(1,Jt)))}function kt(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"p-button",29),t.NdJ("click",function(){t.CHM(l);const U=t.oxw();return t.KtG(U.goToLogin())}),t.qZA()}}function Yt(u,Y){if(1&u&&(t.TgZ(0,"ngb-alert",31),t._uU(1),t.qZA()),2&u){const l=t.oxw(2);t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.hij(" ",l.getPasswordErrorMessage()," ")}}function Qt(u,Y){if(1&u&&(t.TgZ(0,"div"),t.YNc(1,Yt,2,3,"ngb-alert",30),t.qZA()),2&u){const l=t.oxw();
1t.xp6(1),t.Q6J("ngIf",l.getPasswordErrorMessage())}}function zt(u,Y){1&u&&(t.TgZ(0,"ngb-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.Q6J("dismissible",!1)("type","danger"),t.xp6(1),t.hij(" ",t.lcZ(2,3,"errorMsg.missingCPassword")," "))}function Wt(u,Y){1&u&&(t.TgZ(0,"ngb-alert",31),t._uU(1," Password does not match "),t.qZA()),2&u&&t.Q6J("dismissible",!1)("type","danger")}function Ht(u,Y){if(1&u&&(t.TgZ(0,"div"),t.YNc(1,zt,3,5,"ngb-alert",30),t.YNc(2,Wt,2,2,"ngb-alert",30),t.qZA()),2&u){const l=t.oxw();t.xp6(1),t.Q6J("ngIf",l.resetForm.get("cpassword").errors.required),t.xp6(1),t.Q6J("ngIf",l.resetForm.get("cpassword").errors.NoPassswordMatch)}}function Gt(u,Y){1&u&&t._UZ(0,"span",32)}function Xt(u,Y){if(1&u&&(t.TgZ(0,"a",33),t._UZ(1,"img",34),t.qZA()),2&u){const l=t.oxw();t.xp6(1),t.s9C("src",l.defaultURL,t.LSH)}}function en(u,Y){if(1&u&&(t.TgZ(0,"a",35),t._UZ(1,"img",36),t.qZA()),2&u){const l=t.oxw();t.xp6(1),t.s9C("src",l.loginLogo,t.LSH)}}function tn(u,Y){1&u&&(t.TgZ(0,"p",37),t._uU(1,"It's "),t.TgZ(2,"span"),t._uU(3,"more"),t.qZA(),t._uU(4," than a transaction!"),t.qZA())}function nn(u,Y){if(1&u&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&u){const l=t.oxw();
1t.xp6(1),t.Oqu(l.tagName)}}const an=function(){return{width:"50vw"}},jt=function(u,Y){return{"mdi-eye-off-outline":u,"mdi-eye-outline":Y}};let on=(()=>{class u{constructor(l,y,U,oe,_e,De,Ne,Ve){this.formBuilder=l,this.route=y,this.userService=U,this.router=oe,this.messageService=_e,this.commonService=De,this.document=Ne,this.authService=Ve,this.queryParams={},this.isLoading=!1,this.defaultURL=R.N?.defaultLogo,this.imageUrl=R.N.whitelabelLogoPath,this.formError={}}ngOnInit(){this.authService.defaultTheme();let l=JSON.parse(localStorage.getItem("whitelabelResData"));(0,b.isEmpty)(l)||(this.loginLogo=`${this.imageUrl}/${l.logo_Login}`,this.tagName=l.tagName),this.route.queryParams.subscribe(y=>{this.queryParams=y}),this.resetForm=this.createForgotPasswordForm(),this.resetForm.get("password")?.valueChanges.subscribe(()=>{this.resetForm.get("cpassword")?.updateValueAndValidity({onlySelf:!0})})}createForgotPasswordForm(){return this.formBuilder.group({password:["",[f.kI.required,wt.d.EnhancedPatternValidator()]],cpassword:["",[f.kI.required]]},{validators:wt.d.PassswordMatch})}getPasswordErrorMessage(){const l=this.resetForm.get("password")?.errors;if(!l)return null;const y={required:"Password is required.",minLengthError:"Password must be at least 12 characters long.",missingUppercase:"Password must contain at least one uppercase letter.",missingLowercase:"Password must contain at least one lowercase letter.",missingNumber:"Password must contain at least one number.",missingSpecialCharacter:"Password must contain at least one special character."};for(const U of Object.keys(y))if(l[U])return y[U];return null}onFormSubmit(){this.resetForm.valid?(this.passwordReset(this.resetForm.value,this.queryParams),this.isLoading=!0):this.validateAllFields(this.resetForm)}validateAllFields(l){Object.keys(l.controls).forEach(y=>{const U=l.get(y);U instanceof f.p4?U.markAsTouched({onlySelf:!0}):U instanceof f.nJ&&this.validateAllFields(U)})}passwordReset(l,y){if(this.queryParams&&0===Object.keys(this.queryParams).length&&this.queryParams.constructor===Object)this.showAlert({status:"Unauthorized Access",message:"You do not have permission to reset password"},"error");else{let U=this.encryptPassword(l.password),oe=this.encryptPassword(l.cpassword);l.password=U,l.cpassword=oe;let _e={...l,...y};this.userService.resetPassword(_e).subscribe(De=>{this.showSuccessDialog(),this.isLoading=!1},De=>{this.isLoading=!1,"MODAL"==De?.type?this.authService.showModal(De):this.showAlert(De,"error")})}}encryptPassword(l){return Et.AES.encrypt(l,this.commonService.getAccountPersonalData("pstwd")).toString()}decryptPassword(l){return Et.AES.decrypt(l,this.commonService.getAccountPersonalData("pstwd")).toString(Et.enc.Utf8)}goToLogin(){this.displayBasic=!1,this.isLoading=!1,this.router.navigate(["/auth/login"])}showAlert(l,y){this.messageService.add({severity:y,summary:l.status,detail:l.message,life:5e3})}showSuccessDialog(){this.displayBasic=!0}showpassword(){this.showHidePassword=!this.showHidePassword}showconfirmpassword(){this.showHideConfirmPassword=!this.showHideConfirmPassword}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(f.QS),t.Y36(T.gz),t.Y36(n.K),t.Y36(T.F0),t.Y36(pt.ez),t.Y36($e.v),t.Y36(I.K0),t.Y36(e.e))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-password-reset"]],features:[t._Bn([pt.ez])],decls:40,vars:26,consts:[["position","top-right",4,"ngIf"],["position","top-right",3,"breakpoints",4,"ngIf"],["header","Success!",3,"visible","baseZIndex","visibleChange"],["pTemplate","footer"],[1,"row","w-100","mx-0","auth-page"],[1,"col-md-8","col-xl-4","mx-auto"],[1,"card","cus-card"],[1,"row"],[1,"col-md-12","pl-md-2","pr-md-2"],[1,"auth-form-wrapper","px-4","py-4"],[1,"font-weight-normal","mb-4","text-center"],[1,"forms-sample",3,"formGroup","submit"],[1,"form-group"],["for","exampleInputEmail1"],[1,"position-relative"],["ngbPopover","Password must have  at least 12 characters that include at least 1 lowercase character, 1 uppercase character, 1 number, and 1 special character in (!@#$%^&*)","placement","right","formControlName","password","placeholder","Password","required","",1,"form-control",3,"type"],[3,"click"],[1,"mdi","position-absolute",3,"ngClass"],[4,"ngIf"],["formControlName","cpassword","placeholder","Confirm Password","required","",1,"form-control",3,"type"],[1,"mt-3"],["type","submit",1,"btn","btn-submit","mr-2","mb-2","mb-md-1","btn-block",3,"disabled"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],[1,"loader_ml"],["routerLink",".","class","noble-ui-logo d-block text-center mt-3",4,"ngIf"],["routerLink",".","class","noble-ui-logo d-block text-center",4,"ngIf"],["class","text-center font-weight-normal logo-tag-line",4,"ngIf"],["position","top-right"],["position","top-right",3,"breakpoints"],["icon","pi pi-check","label","Ok, Go to Login","styleClass","p-button-text",3,"click"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],["routerLink",".",1,"noble-ui-logo","d-block","text-center","mt-3"],["alt","IPOSPAYS LOGO","width","150",3,"src"],["routerLink",".",1,"noble-ui-logo","d-block","text-center"],["alt","IPOSPAYS","width","150","height","auto",1,"logo_align","left-logo",3,"src"],[1,"text-center","font-weight-normal","logo-tag-line"]],template:function(l,y){1&l&&(t.YNc(0,Ft,1,0,"p-toast",0),t.YNc(1,Ut,1,4,"p-toast",1),t.TgZ(2,"p-dialog",2),t.NdJ("visibleChange",function(oe){return y.displayBasic=oe}),t.TgZ(3,"p"),t._uU(4,"Password Update Successful! You can login to your Portal with the new Password "),t.qZA(),t.YNc(5,kt,1,0,"ng-template",3),t.qZA(),t.TgZ(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"h5",10),t._uU(13,"Password Reset"),t.qZA(),t.TgZ(14,"form",11),t.NdJ("submit",function(){return y.onFormSubmit()}),t.TgZ(15,"div",12)(16,"label",13),t._uU(17,"Password"),t.qZA(),t.TgZ(18,"div",14),t._UZ(19,"input",15),t.TgZ(20,"span",16),t.NdJ("click",function(){return y.showpassword()}),t._UZ(21,"i",17),t.qZA()(),t.YNc(22,Qt,2,1,"div",18),t.qZA(),t.TgZ(23,"div",12)(24,"label",13),t._uU(25,"Confirm Password"),t.qZA(),t.TgZ(26,"div",14),t._UZ(27,"input",19),t.TgZ(28,"span",16),t.NdJ("click",function(){return y.showconfirmpassword()}),t._UZ(29,"i",17),t.qZA()(),t.YNc(30,Ht,3,2,"div",18),t.qZA(),t.TgZ(31,"div",20)(32,"button",21),t.YNc(33,Gt,1,0,"span",22),t.TgZ(34,"span",23),t._uU(35,"Update Password"),t.qZA()()()(),t.YNc(36,Xt,2,1,"a",24),t.YNc(37,en,2,1,"a",25),t.YNc(38,tn,5,0,"p",26),t.YNc(39,nn,2,1,"p",26),t.qZA()()()()()()),2&l&&(t.Q6J("ngIf",!y.commonService.isMobileView),t.xp6(1),t.Q6J("ngIf",y.commonService.isMobileView),t.xp6(1),t.Akn(t.DdM(19,an)),t.Q6J("visible",y.displayBasic)("baseZIndex",1e4),t.xp6(12),t.Q6J("formGroup",y.resetForm),t.xp6(5),t.Q6J("type",y.showHidePassword?"text":"password"),t.xp6(2),t.Q6J("ngClass",t.WLB(20,jt,!y.showHidePassword,y.showHidePassword)),t.xp6(1),t.Q6J("ngIf",!y.resetForm.get("password").valid&&(y.resetForm.get("password").dirty||y.resetForm.get("password").touched)),t.xp6(5),t.Q6J("type",y.showHideConfirmPassword?"text":"password"),t.xp6(2),t.Q6J("ngClass",t.WLB(23,jt,!y.showHideConfirmPassword,y.showHideConfirmPassword)),t.xp6(1),t.Q6J("ngIf",!y.resetForm.get("cpassword").valid&&(y.resetForm.get("cpassword").dirty||y.resetForm.get("cpassword").touched)),t.xp6(2),t.Q6J("disabled",y.isLoading),t.xp6(1),t.Q6J("ngIf",y.isLoading),t.xp6(3),t.Q6J("ngIf",!y.loginLogo),t.xp6(1),t.Q6J("ngIf",y.loginLogo),t.xp6(1),t.Q6J("ngIf",!y.loginLogo),t.xp6(1),t.Q6J("ngIf",y.tagName))},dependencies:[I.mk,I.O5,T.yS,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.sg,f.u,S.xm,S.o8,$t.V,pt.jx,St.FN,yt.zx,Zt.mh,D.X$],styles:["input[_ngcontent-%COMP%]::-ms-reveal, input[_ngcontent-%COMP%]::-ms-clear{display:none}.position-relative[_ngcontent-%COMP%]{width:100%;margin:0 auto}.mdi[_ngcontent-%COMP%]{right:15px;top:50%;transform:translateY(-50%);font-size:15px;cursor:pointer;color:gray}"]}),u})();var Rt=r(98942),At=r(54724);const rn=["addConfig"];function ln(u,Y){1&u&&t._UZ(0,"div",17)}function sn(u,Y){1&u&&t._UZ(0,"div",17)}
1const qt=function(u){return{"invalid-form-control":u}};function cn(u,Y){if(1&u){const l=t.EpF();t._UZ(0,"p-toast",2),t.TgZ(1,"div",3)(2,"h5"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",4)(6,"form",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"input",10),t.NdJ("ngModelChange",function(U){t.CHM(l);const oe=t.oxw();return t.KtG(oe.tpn=U)}),t.qZA(),t.TgZ(12,"label",11)(13,"h6"),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.YNc(16,ln,1,0,"div",12),t.qZA(),t.TgZ(17,"div",8)(18,"div",9)(19,"textarea",13),t.NdJ("ngModelChange",function(U){t.CHM(l);const oe=t.oxw();return t.KtG(oe.token=U)}),t.qZA(),t.TgZ(20,"label",11)(21,"h6"),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,sn,1,0,"div",12),t.qZA()()()()(),t.TgZ(25,"div",14)(26,"button",15),t.NdJ("click",function(){t.CHM(l);const U=t.oxw();return t.KtG(U.reset())}),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"button",16),t.NdJ("click",function(){t.CHM(l);const U=t.oxw();return t.KtG(U.onFormSubmit())}),t._uU(30),t.ALo(31,"translate"),t.qZA()()}if(2&u){const l=t.oxw();
1t.xp6(3),t.Oqu(t.lcZ(4,14,"hostedConfig.configHeader")),t.xp6(3),t.Q6J("formGroup",l.configuation),t.xp6(5),t.Q6J("ngClass",t.VKq(24,qt,(null==l.configuation.get("tpn").errors?null:l.configuation.get("tpn").errors.required)&&(l.configuation.get("tpn").dirty||l.configuation.get("tpn").touched)||(null==l.configuation.get("tpn").errors?null:l.configuation.get("tpn").errors.pattern)))("ngModel",l.tpn),t.xp6(3),t.Oqu(t.lcZ(15,16,"hostedConfig.tpn")),t.xp6(2),t.Q6J("ngIf",l.configuation.get("tpn").dirty||l.configuation.get("tpn").touched),t.xp6(3),t.Q6J("ngClass",t.VKq(26,qt,(null==l.configuation.get("token").errors?null:l.configuation.get("token").errors.required)&&(l.configuation.get("token").dirty||l.configuation.get("token").touched)||(null==l.configuation.get("token").errors?null:l.configuation.get("token").errors.pattern)))("ngModel",l.token),t.xp6(3),t.Oqu(t.lcZ(23,18,"hostedConfig.token")),t.xp6(2),t.Q6J("ngIf",l.configuation.get("token").dirty||l.configuation.get("token").touched),t.xp6(2),t.Q6J("disabled",l.isSubmit),t.xp6(1),t.Oqu(t.lcZ(28,20,"htmlText.clear")),t.xp6(2),t.Q6J("disabled",""==l.envConfig||""==l.token||""==l.tpn||!l.configuation.get("tpn").valid||l.isSubmit),t.xp6(1),t.Oqu(t.lcZ(31,22,"htmlText.save"))}}let dn=(()=>{class u{constructor(l,y,U,oe,_e){this.formBuilder=l,this.messageService=y,this.commonService=U,this.ngbModal=oe,this.router=_e,this.env=["dev","uat"],this.tpn="",this.envConfig=R.N.environmentName,this.token="",this.isSubmit=!1}ngOnInit(){this.configuation=this.configForm(),console.log("Env",this.envConfig),this.autoConfig()}ngAfterViewInit(){this.modalReferenceForAddNote=this.ngbModal.open(this.addConfig,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1,size:"lg",scrollable:!0})}configForm(){return this.formBuilder.group({tpn:["",[f.kI.required,f.kI.pattern("^[0-9]{12}$")]],token:["",[]]})}autoConfig(){this.commonService.getCommonHttpClientQueryParams(At.D.getEnv,{env:this.envConfig}).subscribe(l=>{this.tpn=l.tpn,this.token=l.authToken},l=>{console.log(l)})}showAlert(l,y){this.messageService.add({severity:y,summary:l.status,detail:l.message})}reset(){this.tpn="",this.token=""}onFormSubmit(){var l=this;return(0,A.Z)(function*(){if(l.isSubmit=!0,l.configuation.get("tpn").valid){let y="",U="",oe="";"dev"==l.envConfig?(y=R.N.portalUrl+"/dev/demo-merchant",U="https://denovosystem.tech/paymentapi/external-payment-transaction",oe="/dev/demo-merchant"):"uat"==l.envConfig&&(y=R.N.portalUrl+"/uat/demo-merchant",U="https://ipospays.tech/paymentapi/external-payment-transaction",oe="/uat/demo-merchant"),l.commonService.getCommonHttpClientQueryParams(At.D.updateEnv,{tpn:l.tpn,authToken:l.token,env:l.envConfig,routeUrl:y,paymentUrl:U}).subscribe(_e=>{console.log(_e),l.showAlert({status:"success",message:"Hosted Environment Configured Successfully"},"success")},_e=>{console.log(_e),l.showAlert(_e,"error")}),yield l.delay(2e3),l.modalReferenceForAddNote.close(),l.router.navigate([oe]).then(()=>{window.location.reload()})}})()}delay(l){return new Promise(y=>setTimeout(y,l))}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(f.QS),t.Y36(pt.ez),t.Y36($e.v),t.Y36(S.FF),t.Y36(T.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-hosted-configuration"]],viewQuery:function(l,y){if(1&l&&t.Gf(rn,5),2&l){let U;t.iGM(U=t.CRH())&&(y.addConfig=U.first)}},decls:2,vars:0,consts:[["class","text-center m-4"],["addConfig",""],["position","top-right"],[1,"modal-header","d-flex","justify-content-between"],[1,"modal-body"],[3,"formGroup"],[1,"card-body"],[1,"row"],[1,"col-6","col-md-6"],[1,"form__div","mt-md-4"],["type","text","name","tpn","placeholder","","formControlName","tpn","autocomplete","off","maxlength","12",1,"form__input",3,"ngClass","ngModel","ngModelChange"],["for","",1,"form__label"],["class","row m-0 error-message",4,"ngIf"],["type","text","name","note","placeholder","","formControlName","token","autocomplete","off","maxlength","500",1,"form__input","text_area_customization",3,"ngClass","ngModel","ngModelChange"],[1,"modal-footer","d-flex","justify-content-end"],[1,"mt-2","text-right","btn","btn-danger","mr-2",3,"disabled","click"],[1,"mt-2","text-right","btn","btn-primary",3,"disabled","click"],[1,"row","m-0","error-message"]],template:function(l,y){1&l&&t.YNc(0,cn,32,28,"ng-template",0,1,t.W1O)},dependencies:[I.mk,I.O5,f._Y,f.Fj,f.JJ,f.JL,f.nD,f.sg,f.u,St.FN,Zt.mh,D.X$],styles:['.card[_ngcontent-%COMP%]{box-shadow:0 0 8px #0003;transition:.3s;background-color:#fff}.tx-size[_ngcontent-%COMP%]{font-size:15px}.hover-tpn[_ngcontent-%COMP%]{cursor:pointer}.large-fontsize[_ngcontent-%COMP%], .large-fontsize-label[_ngcontent-%COMP%]{font-size:14px!important}hr[_ngcontent-%COMP%]{margin-top:0rem;margin-bottom:.2rem;border:0;border-top:2px solid rgba(0,0,0,.1)}.img-sm[_ngcontent-%COMP%]{width:63px;height:63px}
1.rounded-circle[_ngcontent-%COMP%]{border-radius:none!important}.chat-wrapper[_ngcontent-%COMP%]{height:calc(100vh + -0px)!important}.btn-circle[_ngcontent-%COMP%]{width:30px;height:30px;padding:6px 0;border-radius:15px;text-align:center;font-size:12px;line-height:1.42857;box-shadow:0 2px 3px #0003}.btn_float[_ngcontent-%COMP%]{float:right}.btn_right_mrg[_ngcontent-%COMP%]{margin-top:6px;margin-right:6px}.grid-margin[_ngcontent-%COMP%]{margin-bottom:0rem!important}.merchant-list-view-design[_ngcontent-%COMP%]{height:795px!important;overflow:auto;max-height:calc(100vh - 22px)!important}.chat-wrapper[_ngcontent-%COMP%]   .chat-aside[_ngcontent-%COMP%]   .aside-body[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]   .tab-pane[_ngcontent-%COMP%]   .ps[_ngcontent-%COMP%]{position:relative;max-height:calc(100vh + 12px)!important}.chat-wrapper[_ngcontent-%COMP%]{height:calc(100vh + 432px)!important}.tpn-body[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden}.tpn-body-style[_ngcontent-%COMP%]{background:#e0f7fa}.store-body-style[_ngcontent-%COMP%]{background-color:#f5f5f5}.form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]{margin-left:.1rem!important;font-size:.9rem!important;line-height:1.1!important}.header-background[_ngcontent-%COMP%]{background-color:#f5f5f5}.drop-down-style[_ngcontent-%COMP%]{z-index:1000}.content-color[_ngcontent-%COMP%]{color:#000}.dropup[_ngcontent-%COMP%]   .dropdown-toggle[_ngcontent-%COMP%]:after{content:""!important}.carding[_ngcontent-%COMP%]{padding:.5rem}.chat-content[_ngcontent-%COMP%]   .chat-body[_ngcontent-%COMP%], .chat-wrapper[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.merchant-list-view-design[_ngcontent-%COMP%]{max-height:calc(100vh - 22px)!important}.notes-list-view-design[_ngcontent-%COMP%]{max-height:calc(100vh - 70px)!important}.form__title[_ngcontent-%COMP%]{font-weight:400;margin-bottom:3rem}.form__div[_ngcontent-%COMP%]{position:relative;height:48px;margin-bottom:1.5rem}.form__input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:1rem;border:1px solid #DADCE0;border-radius:.5rem;outline:none;padding:1rem;background:none;z-index:1}.form__input[_ngcontent-%COMP%]:disabled{background-color:#e9ecef;opacity:1}.form__label[_ngcontent-%COMP%]{position:absolute;left:1rem;top:1rem;padding:0 .25rem;background-color:#fff;color:#80868b;font-size:1rem;transition:.3s}.form__button[_ngcontent-%COMP%]{display:block;margin-left:auto;padding:.75rem 2rem;outline:none;border:none;background-color:#1a73e8;color:#fff;font-size:1rem;border-radius:.5rem;cursor:pointer;transition:.3s}.form__button[_ngcontent-%COMP%]:hover{box-shadow:0 10px 36px #00000026}.form__input[_ngcontent-%COMP%]:focus + .form__label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;color:#1a73e8;font-size:.75rem;font-weight:500;z-index:10}input.form__input.open.ng-dirty[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%], input.form__input.open.ng-invalid[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%], input.form__input.open.ng-valid[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;font-size:.75rem;font-weight:500;z-index:10}.form__input.phone[_ngcontent-%COMP%]:focus-within + .form__label[_ngcontent-%COMP%]{color:#1a73e8}.form__input[_ngcontent-%COMP%]:not(:placeholder-shown).form__input:not(:focus) + .form__label[_ngcontent-%COMP%]{top:-.5rem;left:.8rem;z-index:1;font-size:.75rem;font-weight:500}.form__input[_ngcontent-%COMP%]:focus, .form__input.phone[_ngcontent-%COMP%]:focus-within{border:1.5px solid #1A73E8}.text_area_customization[_ngcontent-%COMP%]{height:100px}.invalid-form-control[_ngcontent-%COMP%]{border-left:5px solid #e91e63!important}.img_size_date[_ngcontent-%COMP%]{width:14px}.text-left[_ngcontent-%COMP%]{text-align:left!important;font-weight:bolder!important}.width_align[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px}.width-heade-align[_ngcontent-%COMP%]{margin-left:12px;margin-right:12px}.chat-wrapper[_ngcontent-%COMP%]   .chat-content[_ngcontent-%COMP%]   .chat-body[_ngcontent-%COMP%]{position:relative;max-height:calc(100vh - 392px)!important;margin-top:20px!important;margin-bottom:20px!important}.chat-wrapper[_ngcontent-%COMP%]   .chat-content[_ngcontent-%COMP%]   .store-body[_ngcontent-%COMP%]{position:relative;max-height:calc(100vh - 440px)!important;margin-top:20px!important;margin-bottom:20px!important}']}),u})();var Bt=r(58583),pn=r(9266),un=r.n(pn),mn=r(76944),Kt=r(72620),gn=r(49532),hn=r(32414);const _n=["invoice"];function fn(u,Y){1&u&&(t.TgZ(0,"button",31),t._uU(1," SaveAs"),t.qZA())}function vn(u,Y){if(1&u&&(t.TgZ(0,"p",15),t._UZ(1,"span",32),t._uU(2),t.qZA()),2&u){const l=t.oxw(2);t.xp6(2),t.hij(" ",l.md.email," ")}}function xn(u,Y){if(1&u&&(t.TgZ(0,"p",15),t._UZ(1,"span",33),t._uU(2),t.qZA()),2&u){const l=t.oxw(2);t.xp6(2),t.hij(" ",l.md.phoneNumber," ")}}function Cn(u,Y){if(1&u&&(t.TgZ(0,"p",15),t._UZ(1,"span",34),t._uU(2),t.qZA()),2&u){const l=t.oxw(2);t.xp6(2),t.AsE(" ",l.md.state," , ",l.md.city," ")}}
1function Tn(u,Y){if(1&u&&(t.TgZ(0,"p",15),t._uU(1),t._UZ(2,"span",32),t.qZA()),2&u){const l=t.oxw(2);t.xp6(1),t.hij(" ",l.cd.email," ")}}function bn(u,Y){if(1&u&&(t.TgZ(0,"p",15),t._uU(1),t._UZ(2,"span",33),t.qZA()),2&u){const l=t.oxw(2);t.xp6(1),t.hij(" ",l.cd.phone," ")}}function Dn(u,Y){if(1&u&&(t.TgZ(0,"p",15),t._uU(1),t._UZ(2,"span",34),t.qZA()),2&u){const l=t.oxw(2);t.xp6(1),t.AsE(" ",l.cd.state," , ",l.cd.city," ")}}const yn=function(u){return{width:u}};function An(u,Y){if(1&u&&(t.TgZ(0,"th",37),t._uU(1),t.qZA()),2&u){const l=Y.$implicit;t.Q6J("ngStyle",t.VKq(2,yn,l.width)),t.xp6(1),t.hij(" ",l.header," ")}}function P(u,Y){if(1&u&&(t.TgZ(0,"tr",35),t.YNc(1,An,2,4,"th",36),t.qZA()),2&u){const l=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",l.cols)}}function re(u,Y){if(1&u&&(t.TgZ(0,"tr",35)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"toDollars"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td"),t._uU(11),t.ALo(12,"toDollars"),t.qZA(),t.TgZ(13,"td",38),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.ALo(17,"toDollars"),t.qZA(),t.TgZ(18,"td"),t._uU(19),t.ALo(20,"toDollars"),t.qZA()()),2&u){const l=Y.$implicit;t.xp6(2),t.hij(" ",l.code,""),t.xp6(2),t.hij(" ",l.productName,""),t.xp6(2),t.hij(" ",t.lcZ(7,8,l.unitCost),""),t.xp6(3),t.hij(" ",l.quantity,""),t.xp6(2),t.hij(" ",t.lcZ(12,10,l.discountAmount),""),t.xp6(3),t.hij(" ",l.description,""),t.xp6(2),t.hij(" ",t.lcZ(17,12,l.totalTax),""),t.xp6(3),t.hij(" ",t.lcZ(20,14,l.totalAmount),"")}}function x(u,Y){if(1&u&&(t.TgZ(0,"div",26)(1,"dd",27),t._uU(2," Paid "),t.qZA(),t.TgZ(3,"dt",28),t._uU(4),t.ALo(5,"toDollars"),t.qZA()()),2&u){const l=t.oxw(2);t.xp6(4),t.hij(" ",t.lcZ(5,1,l.paidChildInvoicesTotal)," ")}}function m(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"div",2)(1,"div",3),t.YNc(2,fn,2,0,"button",4),t.TgZ(3,"div",5)(4,"button",6),t.NdJ("click",function(){t.CHM(l);const U=t.oxw();return t.KtG(U.download("png"))}),t._UZ(5,"i",7),t._uU(6," PNG"),t.qZA(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(l);const U=t.oxw();return t.KtG(U.download("pdf"))}),t._UZ(8,"i",8),t._uU(9," PDF"),t.qZA()()(),t.TgZ(10,"div",9,10)(12,"div",11)(13,"div",12),t._UZ(14,"img",13),t.qZA(),t.TgZ(15,"div",14)(16,"dt",15),t._uU(17," Created on "),t.qZA(),t.TgZ(18,"dd",15),t._uU(19),t.ALo(20,"dateTimePipe"),t.qZA(),t.TgZ(21,"dt",15),t._uU(22," Invoice Number "),t.qZA(),t.TgZ(23,"dd",15),t._uU(24),t.qZA(),t.TgZ(25,"dt",15),t._uU(26," Payment Status "),t.qZA(),t.TgZ(27,"dd",15),t._uU(28),t.qZA()()(),t._UZ(29,"hr"),t.TgZ(30,"div",16)(31,"div",12)(32,"h4",17),t._uU(33," Bill From "),t.qZA(),t.TgZ(34,"p",18),t._uU(35),t.qZA(),t.YNc(36,vn,3,1,"p",19),t.YNc(37,xn,3,1,"p",19),t.YNc(38,Cn,3,2,"p",19),t.qZA(),t.TgZ(39,"div",14)(40,"h4",17),t._uU(41," Bill to "),t.qZA(),t.TgZ(42,"p",20),t._uU(43),t.qZA(),t.YNc(44,Tn,3,1,"p",19),t.YNc(45,bn,3,1,"p",19),t.YNc(46,Dn,3,2,"p",19),t.qZA()(),t.TgZ(47,"div",21)(48,"h4"),t._uU(49," Invoice "),t.qZA()(),t.TgZ(50,"p-table",22),t.YNc(51,P,2,1,"ng-template",23),t.YNc(52,re,21,16,"ng-template",24),t.qZA(),t.TgZ(53,"div",25)(54,"div",26)(55,"dd",27),t._uU(56," Total Discount "),t.qZA(),t.TgZ(57,"dt",28),t._uU(58),t.ALo(59,"toDollars"),t.qZA()(),t.TgZ(60,"div",26)(61,"dd",27),t._uU(62," Total Tax "),t.qZA(),t.TgZ(63,"dt",28),t._uU(64),t.ALo(65,"toDollars"),t.qZA()(),t.TgZ(66,"div",26)(67,"dd",27),t._uU(68," Shipping Fee "),t.qZA(),t.TgZ(69,"dt",28),t._uU(70),t.ALo(71,"toDollars"),t.qZA()(),t.TgZ(72,"div",29)(73,"dd",27),t._uU(74," Fee "),t.qZA(),t.TgZ(75,"dt",28),t._uU(76),t.ALo(77,"toDollars"),t.qZA()(),t.YNc(78,x,6,3,"div",30),t.TgZ(79,"div",26)(80,"dd",27),t._uU(81," Total "),t.qZA(),t.TgZ(82,"dt",28),t._uU(83),t.ALo(84,"toDollars"),t.qZA()()()()()}if(2&u){const l=t.oxw();
1t.xp6(2),t.Q6J("ngIf",!l.commonService.isMobileView),t.xp6(12),t.Q6J("src",l.bannerImage,t.LSH),t.xp6(5),t.hij(" ",t.lcZ(20,23,l.id.createdAt)," "),t.xp6(5),t.hij(" ",l.id.invoiceNumber,""),t.xp6(4),t.hij(" ",l.id.status,""),t.xp6(7),t.Oqu(null==l.md?null:l.md.dba),t.xp6(1),t.Q6J("ngIf",null==l.md?null:l.md.email),t.xp6(1),t.Q6J("ngIf",null==l.md?null:l.md.phoneNumber),t.xp6(1),t.Q6J("ngIf",null==l.md?null:l.md.state),t.xp6(4),t.Q6J("ngClass",l.cd.firstName?"d-block":"invisible"),t.xp6(1),t.hij(" ",(null==l.cd?null:l.cd.firstName)+" "+(l.cd.lastName?l.cd.lastName:"")," "),t.xp6(1),t.Q6J("ngIf",null==l.cd?null:l.cd.email),t.xp6(1),t.Q6J("ngIf",null==l.cd?null:l.cd.phone),t.xp6(1),t.Q6J("ngIf",null==l.cd?null:l.cd.state),t.xp6(4),t.Q6J("columns",l.cols)("value",l.lineItemDetails),t.xp6(8),t.hij(" ",t.lcZ(59,25,l.totalDiscount)," "),t.xp6(6),t.hij(" ",t.lcZ(65,27,l.totalTax)," "),t.xp6(6),t.hij(" ",t.lcZ(71,29,l.shippingFee)," "),t.xp6(2),t.Q6J("ngClass",null!=l.td&&l.td.customFee||null!=l.td&&l.td.surcharge?"":"invisible"),t.xp6(4),t.hij(" ",t.lcZ(77,31,(null==l.td?null:l.td.customFee)||(null==l.td?null:l.td.surcharge))," "),t.xp6(2),t.Q6J("ngIf",l.paidChildInvoicesTotal>0),t.xp6(5),t.hij(" ",t.lcZ(84,33,l.totalAmount)," ")}}function le(u,Y){1&u&&t._UZ(0,"app-loading")}let Be=(()=>{class u{constructor(l,y,U,oe,_e){this.route=l,this.commonService=y,this.title=U,this.router=oe,this.messageService=_e,this.bannerImage=R.N?.defaultLogo,this.isLoading=!1,this.lineItemDetails=[],this.cols=[{field:"code",header:"#",width:"2.5%"},{field:"productName",header:"Name",width:"15%"},{field:"unitCost",header:"Price",width:"10%"},{field:"quantity",header:"Qty",width:"7.5%"},{field:"discount",header:"Disc",width:"10%"},{field:"description",header:"Description",width:"35%"},{field:"totalTax",header:"Tax",width:"10%"},{field:"totalAmount",header:"Sub Total",width:"12.5%"}],this.totalAmount=0,this.totalTax=0,this.totalDiscount=0,this.shippingFee=0,this.paidChildInvoicesTotal=0,this.imageUrl=R.N?.whitelabelLogoPath,this.isOpenUrl=-1!==window.location.href.split("/").indexOf("vi")}ngOnInit(){var l=this;return(0,A.Z)(function*(){l.isLoading=!0,l.title.setTitle("Invoice - IPOSpays");const y=JSON.parse(localStorage.getItem("whitelabelResData"));y&&(l.title.setTitle(`Invoice -${y?.tabName}`),l.bannerImage=`${l.imageUrl}/${y?.logo_dashboard}`),l.invoiceId=l.route.snapshot.paramMap.get("id");try{const U=yield l.commonService.getCommonHttpClientQueryParams(l.isOpenUrl?`${At.D.receipt.viewReceiptNoAuthBackend}/${l.invoiceId}`:At.D.getInvoiceById,l.isOpenUrl?{}:{id:l.invoiceId}).toPromise();l.details=U;const oe=l.details?.merchantDetails?.merchantLogo;l.bannerImage=oe||l.bannerImage,l.md=l.details.merchantDetails,l.id=l.details.invoiceDetails,l.cd=l.details.consumerDetails,l.td=l.details.txDetails,l.shippingFee=parseInt(l.id.items.shippingFee);const _e=(0,Bt.k$)(l.id.items.itemsList);for(let rt=0;rt<_e.length;rt++)(0,Bt.ku)(_e[rt].lineItemData);const{lineItemsArray:De,totalDiscount:Ne,totalTax:Ve}=(0,Bt.lk)(_e);l.totalAmount=l.id.amount||0,l.lineItemDetails=De,l.totalDiscount=Ne,l.totalTax=Ve;const ot=l.details?.childInvoices||[];console.log(ot),"ItemizedBilling"===l.details.invoiceDetails.invoiceType&&"Partially Paid"===l.details.invoiceDetails.status&&(l.paidChildInvoicesTotal=ot.filter(rt=>"Success"===rt.status).reduce((rt,Vt)=>rt+("string"==typeof Vt.amount?parseInt(Vt.amount,10)||0:Vt.amount||0),0),console.log(l.paidChildInvoicesTotal),console.log("-------------------------------------00000"))}catch(U){l.isOpenUrl?l.router.navigateByUrl(`/message/${window.btoa(JSON.stringify({icon:"notify.svg",message:U.message}))}`):l.messageService.add({severity:"error",detail:U.message||"Server Error !",sticky:!0})}l.isLoading=!1})()}download(l){un()(this.invoiceRef.nativeElement,{scrollY:0,allowTaint:!0,useCORS:!0,logging:!0}).then(y=>{let U=document.createElement("a");(new Date).toLocaleString(),"png"==l?this.pngDownload(U,y.toDataURL("image/png"),`${this.invoiceId}.png`):window.print()})}pngDownload(l,y,U){l.href=y,l.download=U,l.webkitImageSmoothingEnabled=!1,l.mozImageSmoothingEnabled=!1,l.imageSmoothingEnabled=!1,l.click()}pdfDownload(l,y){const U=new mn.kH("p","mm","a4"),oe=U.internal.pageSize.getWidth(),_e=U.internal.pageSize.getHeight();U.addImage(l,"PNG",0,0,oe,_e,"","FAST"),U.save(y)}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(T.gz),t.Y36($e.v),t.Y36(i.Dx),t.Y36(T.F0),t.Y36(pt.ez))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-view-invoice"]],viewQuery:function(l,y){if(1&l&&t.Gf(_n,5),2&l){let U;t.iGM(U=t.CRH())&&(y.invoiceRef=U.first)}},features:[t._Bn([pt.ez])],decls:3,vars:2,consts:[["style","margin-top: 24px;","class","invoice-container mx-auto",4,"ngIf","ngIfElse"],["loader",""],[1,"invoice-container","mx-auto",2,"margin-top","24px"],["ngbDropdown","",1,"pt-4","print-hide"],["style","float:left;","class","btn btn-outline-primary btn_align","id","dropdownMenuActiveItem","ngbDropdownToggle","",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownMenuActiveItem",1,"list_fixed"],["ngbDropdownItem","",3,"click"],[1,"link-icon","feather","icon-image"],[1,"link-icon","feather","icon-file-text"],[1,"p-3","bg-white"],["invoice",""],[1,"row","mt-2","mb-5","d-flex","align-items-center"],[1,"col-6"],[1,"logo",3,"src"],[1,"col-6","text-right"],[1,"fs-4"],[1,"row","mt-3","mb-5","d-flex"],[1,"gray-text","mb-2"],[1,"fs-3"],["class","fs-4",4,"ngIf"],[1,"fs-3",3,"ngClass"],[1,"p-2","bluebackground","rounded"],["responsiveLayout","scroll","columnResizeMode","expand",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],[1,"p-2","rounded","row","align-items-center","mt-4","px-0","d-flex","flex-wrap"],[1,"col","flex-grow-1"],[1,"fs-3-5","mb-0","gray-text"],[1,"fs-3-5"],[1,"col","flex-grow-1",3,"ngClass"],["class","col flex-grow-1",4,"ngIf"],["id","dropdownMenuActiveItem","ngbDropdownToggle","",1,"btn","btn-outline-primary","btn_align",2,"float","left"],["aria-hidden","",1,"mdi","mdi-email-outline"],["aria-hidden","",1,"mdi","mdi-phone-outline"],["aria-hidden","",1,"mdi","mdi-city-variant-outline"],[1,"fs-1-5"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[2,"word-break","break-all"]],template:function(l,y){if(1&l&&(t.YNc(0,m,85,35,"div",0),t.YNc(1,le,1,0,"ng-template",null,1,t.W1O)),2&l){const U=t.MAs(2);t.Q6J("ngIf",!y.isLoading)("ngIfElse",U)}},dependencies:[I.mk,I.sg,I.O5,I.PC,S.jt,S.iD,S.Vi,S.TH,pt.jx,w.N,Kt.iA,gn.Ho,hn.Xw],styles:[".invoice-container[_ngcontent-%COMP%]{max-width:1024px;min-width:856px;overflow:auto;height:100%}
1.logo[_ngcontent-%COMP%]{width:200px;height:100%}.bluebackground[_ngcontent-%COMP%]{background-color:#80deea}.fs-4[_ngcontent-%COMP%]{font-size:medium}.fs-3[_ngcontent-%COMP%]{font-size:large}.fs-3-5[_ngcontent-%COMP%]{font-size:17px}.fs-1-5[_ngcontent-%COMP%]{font-size:12px}.gray-text[_ngcontent-%COMP%]{color:#4d4d4d}@media print{.print-hide[_ngcontent-%COMP%]{visibility:hidden}}"]}),u})();function Ge(u,Y){1&u&&t._UZ(0,"app-view-recepit")}function ht(u,Y){1&u&&t._UZ(0,"app-view-invoice")}let ut=(()=>{class u{constructor(l){this.authService=l,this.view_invoice=!1,this.view_invoice=-1!=window.location.href.split("/").indexOf("vi")}ngOnInit(){this.authService.getSecurityCheck().subscribe(l=>{l?.psi&&this.addScriptElement(l?.psiUrl)})}addScriptElement(l){if(!l)return;const y=document.createElement("script");y.id="mem-id",y.src=l,y.type="text/javascript",y.async=!0,y.defer=!0,y.referrerPolicy="strict-origin-when-cross-origin",document.getElementsByTagName("head")[0].appendChild(y);const U=document.getElementById("mem-id");console.log("mem added",U)}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(e.e))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-view-receipt-no-auth"]],decls:2,vars:2,consts:[[4,"ngIf"]],template:function(l,y){1&l&&(t.YNc(0,Ge,1,0,"app-view-recepit",0),t.YNc(1,ht,1,0,"app-view-invoice",0)),2&l&&(t.Q6J("ngIf",!y.view_invoice),t.xp6(1),t.Q6J("ngIf",y.view_invoice))},dependencies:[I.O5,Rt.D,Be]}),u})();var mt=r(46419);let Mt=(()=>{class u{constructor(){this.icon_name="",this.data=JSON.parse(window.atob(window.location.href.split("/").pop()))}ngOnInit(){}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-message"]],decls:1,vars:2,consts:[[3,"illustrationName","text"]],template:function(l,y){1&l&&t._UZ(0,"app-ilustration-with-message",0),2&l&&t.Q6J("illustrationName",(null==y.data?null:y.data.icon)||"notify.svg")("text",(null==y.data?null:y.data.message)||"Unknown Error !!!")},dependencies:[mt.w]}),u})();const Pt=[{path:"terms-condition",component:(()=>{class u{constructor(l){this.router=l,this.fileUrl=""}ngOnInit(){this.fileUrl=sessionStorage.getItem("termsPdfUrl")||"",this.fileUrl?window.location.href=this.fileUrl:this.router.navigate(["/auth/login"])}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(T.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-terms-condition"]],decls:0,vars:0,template:function(l,y){}}),u})()},{path:"auth",loadChildren:()=>r.e(2151).then(r.bind(r,22151)).then(u=>u.AuthModule)},{path:"view-recepit/:id/:type",component:Rt.D},{path:"view-receipt/:id/:type",component:Rt.D},{path:"cr/:id/:type",component:ut},{path:"vi/:id",component:ut},{path:"view-invoice/:id",component:Be},{path:"",component:gt,canActivate:[he],children:[{path:"dashboardv2",canActivate:[je.R],loadChildren:()=>Promise.all([r.e(8890),r.e(7924),r.e(8592),r.e(7314)]).then(r.bind(r,97314)).then(u=>u.Dashboardv2Module),data:{module:ee.j.DASHBOARD,privilege:Me.R.VIEW_DASHBOARD}},{path:"blink",canActivate:[je.R],loadChildren:()=>Promise.all([r.e(8890),r.e(3044)]).then(r.bind(r,23044)).then(u=>u.BetaSearchModule),data:{module:ee.j.BETA_SEARCH,privilege:Me.R.VIEW_BETA_SEARCH}},{path:"advanced-search",canActivate:[je.R],loadChildren:()=>Promise.all([r.e(8890),r.e(8314)]).then(r.bind(r,98314)).then(u=>u.BetaSearchModule),data:{module:ee.j.BETA_SEARCH,privilege:Me.R.VIEW_BETA_SEARCH}},{path:"beta-searchm2",canActivate:[je.R],loadChildren:()=>Promise.all([r.e(8890),r.e(8592),r.e(4668)]).then(r.bind(r,94668)).then(u=>u.BetaSearchm2Module),data:{module:ee.j.DASHBOARD,privilege:Me.R.VIEW_DASHBOARD}},{path:"user-management",loadChildren:()=>Promise.all([r.e(5979),r.e(7770),r.e(2151),r.e(8592),r.e(2443)]).then(r.bind(r,2443)).then(u=>u.UserManagementModule),canActivate:[je.R],data:{module:ee.j.USER,privilege:Me.R.VIEW_USER}},{path:"my-tickets",loadChildren:()=>Promise.all([r.e(8592),r.e(1785)]).then(r.bind(r,31785)).then(u=>u.MyTicketsModule),canActivate:[je.R],data:{module:ee.j.MY_TICKETS,privilege:Me.R.VIEW_TICKET}},{path:"customer-management",loadChildren:()=>Promise.all([r.e(3683),r.e(5979),r.e(7770),r.e(2151),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(7924),r.e(4674),r.e(9471),r.e(8753),r.e(3667),r.e(8592),r.e(414)]
1).then(r.bind(r,20414)).then(u=>u.CustomerManagementModule),canActivate:[je.R],data:{module:ee.j.CUSTOMER,privilege:Me.R.VIEW_CUSTOMER}},{path:"params-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(3755),r.e(4336),r.e(1744),r.e(1387)]).then(r.bind(r,51387)).then(u=>u.ParamsManagementModule),canActivate:[je.R],data:{module:ee.j.STEAM,privilege:Me.R.VIEW_DEVICE}},{path:"application-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(4674),r.e(9471),r.e(8753)]).then(r.bind(r,78753)).then(u=>u.SteamModule)},{path:"steam-param",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(4674),r.e(9471),r.e(8753)]).then(r.bind(r,78753)).then(u=>u.SteamModule)},{path:"manage-market-app",loadChildren:()=>Promise.all([r.e(25),r.e(4674),r.e(8160)]).then(r.bind(r,8160)).then(u=>u.MarketManagementModule)},{path:"dv-store",loadChildren:()=>Promise.all([r.e(3413),r.e(262)]).then(r.bind(r,70262)).then(u=>u.ValueAddedAppsModule)},{path:"non-gateway-web",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(4674),r.e(9471),r.e(8753)]).then(r.bind(r,78753)).then(u=>u.SteamModule)},{path:"asset-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(4674),r.e(9471),r.e(8753)]).then(r.bind(r,78753)).then(u=>u.SteamModule)},{path:"downloadlog-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(4674),r.e(9471),r.e(8753)]).then(r.bind(r,78753)).then(u=>u.SteamModule)},{path:"virtual-terminal",loadChildren:()=>Promise.all([r.e(3683),r.e(5979),r.e(8890),r.e(2151),r.e(7531),r.e(3609),r.e(4299),r.e(2495)]).then(r.bind(r,92495)).then(u=>u.VirtualTerminalModule)},{path:"new-cloudpos",loadChildren:()=>Promise.all([r.e(3683),r.e(5979),r.e(8890),r.e(2151),r.e(7531),r.e(3609),r.e(4299),r.e(2495),r.e(3077)]).then(r.bind(r,43077)).then(u=>u.CloudPosModule)},{path:"invoice",loadChildren:()=>Promise.all([r.e(3683),r.e(5979),r.e(8890),r.e(2151),r.e(7531),r.e(3609),r.e(4299),r.e(2495),r.e(3077),r.e(8592),r.e(5488)]).then(r.bind(r,35488)).then(u=>u.NewInvoiceModule)},{path:"consumer-list",loadChildren:()=>Promise.all([r.e(3683),r.e(5979),r.e(8890),r.e(2151),r.e(7531),r.e(3609),r.e(4299),r.e(2495),r.e(8592),r.e(3197)]).then(r.bind(r,3197)).then(u=>u.ConsumerManagementModule)},{path:"device-alert-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(598),r.e(25),r.e(3755),r.e(7531),r.e(4336),r.e(1744),r.e(1387),r.e(3413),r.e(4674),r.e(9471),r.e(8753)]).then(r.bind(r,78753)).then(u=>u.SteamModule)},{path:"app-auditlog-list",loadChildren:()=>Promise.all([r.e(5979),r.e(7770),r.e(8592),r.e(7672)]).then(r.bind(r,37672)).then(u=>u.AuditlogManagementModule)},{path:"proxy-login-logs",loadChildren:()=>Promise.all([r.e(8592),r.e(9201)]).then(r.bind(r,39201)).then(u=>u.ProxyLoginLogsPageModule)},{path:"communication-center",loadChildren:()=>Promise.all([r.e(3683),r.e(598),r.e(25),r.e(3755),r.e(1744),r.e(9471),r.e(8592),r.e(7369)]).then(r.bind(r,1634)).then(u=>u.CommunicationCenterModule)},{path:"promotions",loadChildren:()=>Promise.all([r.e(8592),r.e(74)]).then(r.bind(r,30074)).then(u=>u.PromotionsModule),canActivate:[je.R],data:{module:ee.j.PROMOTION,privilege:Me.R.VIEW_PROMOTION}},{path:"inventory",loadChildren:()=>Promise.all([r.e(5979),r.e(3609),r.e(8592),r.e(1103)]).then(r.bind(r,71103)).then(u=>u.InventoryModule),canActivate:[je.R],data:{module:ee.j.INVENTORY,privilege:Me.R.VIEW_INVENTORY}},{path:"reports",loadChildren:()=>Promise.all([r.e(5979),r.e(598),r.e(25),r.e(5677),r.e(2702)]).then(r.bind(r,42702)).then(u=>u.ReportsModule),canActivate:[je.R],data:{module:ee.j.REPORTS}},{path:"digital-ads-on-screen",loadChildren:()=>Promise.all([r.e(3413),r.e(8592),r.e(382)]).then(r.bind(r,50382)).then(u=>u.DigitalAdOnScreenModule),canActivate:[je.R],data:{module:ee.j.CAMPAIGN,privilege:Me.R.VIEW_CAMPAIGN}},{path:"risk-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(3755),r.e(4336),r.e(1744),r.e(1387),r.e(6146)]).then(r.bind(r,76146)).then(u=>
1u.RiskManagementModule),canActivate:[je.R],data:{module:ee.j.RISK_MANAGEMENT,privilege:Me.R.VIEW_RISK_DETAILS}},{path:"transaction-management",loadChildren:()=>Promise.all([r.e(3683),r.e(8890),r.e(3609),r.e(4299),r.e(7787)]).then(r.bind(r,64299)).then(u=>u.TransactionManagementModule)},{path:"merchant-management",loadChildren:()=>Promise.all([r.e(3683),r.e(5979),r.e(7770),r.e(2151),r.e(598),r.e(25),r.e(7924),r.e(3667),r.e(6148)]).then(r.bind(r,26148)).then(u=>u.MerchantManagementModule)},{path:"merchant-settings",loadChildren:()=>Promise.all([r.e(5979),r.e(598),r.e(25),r.e(5677)]).then(r.bind(r,35677)).then(u=>u.MerchantSettingsModule)},{path:"customer-settings",loadChildren:()=>Promise.all([r.e(8890),r.e(8592),r.e(286)]).then(r.bind(r,70286)).then(u=>u.CustomerSettingsModule)},{path:"batch-management",loadChildren:()=>Promise.all([r.e(3683),r.e(7770),r.e(3755),r.e(4336)]).then(r.bind(r,4336)).then(u=>u.BatchManagementModule)},{path:"spin-troubleshooting",loadChildren:()=>r.e(6571).then(r.bind(r,66571)).then(u=>u.TroubleshootingModule)},{path:"billing-invoice",loadChildren:()=>Promise.resolve().then(r.bind(r,30409)).then(u=>u.BillingInvoiceModule)},{path:"advanced",loadChildren:()=>r.e(9847).then(r.bind(r,59847)).then(u=>u.AdvancedModule),canActivate:[je.R],data:{module:ee.j.ADVANCED}},{path:"",redirectTo:"dashboardv2",pathMatch:"full"}]},{path:"userVerify",component:on},{path:"dev",loadChildren:()=>r.e(410).then(r.bind(r,60410)).then(u=>u.DemoMerchantModule)},{path:"uat",loadChildren:()=>r.e(410).then(r.bind(r,60410)).then(u=>u.DemoMerchantModule)},{path:"config",component:dn},{path:"error",component:Dt,data:{type:404,title:"Page Not Found",desc:"Oopps!! The page you were looking for doesn't exist."}},{path:"message/:data",component:Mt},{path:"error/:type",component:Dt},{path:"**",redirectTo:"error",pathMatch:"full"}];let st=(()=>{class u{}return u.\u0275fac=function(l){return new(l||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[T.Bz.forRoot(Pt,{scrollPositionRestoration:"top"}),T.Bz]}),u})();var Ke=r(4403),Lt=r(39628);const Pn={suppressScrollX:!0};let In=(()=>{class u{}return u.\u0275fac=function(l){return new(l||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({providers:[{provide:Q.op,useValue:Pn}],imports:[I.ez,T.Bz,f.u5,S.XC,S.lQ,Q.Xd,Lt.M,D.aw,Ke.m,J.F]}),u})();var Nt=r(92218),xt=r(20478),En=r(10092),Sn=r(51023);const Bn=["logOutModal"],Nn=["example"];function It(u,Y){1&u&&t._UZ(0,"p-toast",10)}function wn(u,Y){1&u&&t._UZ(0,"p-toast",11)}const Un=function(){return{width:"80%",right:"0",left:"0"}},Mn=function(u){return{"991px":u}};function Vn(u,Y){1&u&&t._UZ(0,"p-toast",12),2&u&&t.Q6J("breakpoints",t.VKq(2,Mn,t.DdM(1,Un)))}function $n(u,Y){1&u&&t._UZ(0,"p-toast",13),2&u&&t.Q6J("breakpoints",t.VKq(2,Mn,t.DdM(1,Un)))}function Jn(u,Y){1&u&&t._UZ(0,"app-loading",14),2&u&&t.Q6J("loaderHeight","default")}function Yn(u,Y){1&u&&t._UZ(0,"div",15)}function Qn(u,Y){1&u&&t._UZ(0,"div",16)}function jn(u,Y){1&u&&t._UZ(0,"div",16)}function qn(u,Y){if(1&u){const l=t.EpF();t.TgZ(0,"div",17)(1,"div",18)(2,"div",19)(3,"h5",20)(4,"span",21),t._uU(5," Inactivity Detected"),t.qZA()()()()(),t.TgZ(6,"div",22)(7,"h5"),t._uU(8,"You will be logged out in "),t.TgZ(9,"span",23),t._uU(10),t.qZA()()(),t.TgZ(11,"div",24)(12,"button",25),t.NdJ("click",function(){const oe=t.CHM(l).$implicit;return t.oxw().continueSession(),t.KtG(oe.close())}),t._uU(13,"Stay"),t.qZA()()}if(2&u){const l=t.oxw();
1t.xp6(10),t.Oqu(l.count)}}const Kn=function(){return{"z-index":1e4}},zn=R.N.autoLogoutTime,Wn=R.N.checkInterval,Ln="lastAction",Hn=["/auth/forgot-password","/userVerify","/auth/mfa","/auth/totp/setup","/auth/totp/verify"];let Gn=(()=>{class u{constructor(l,y,U,oe,_e,De,Ne,Ve,ot,rt,Vt){this.document=l,this.title=y,this.authService=U,this.connectionService=oe,this.messageService=_e,this.ngbModal=De,this.ngZone=Ne,this.clipboard=Ve,this.router=ot,this.commonService=rt,this.rendererFactory=Vt,this.isConnected=!0,this.userInactive=new Nt.xQ,this.automaticLogOut=new Nt.xQ,this.logOutFlag=!1,this.idleState="Not started.",this.timedOut=!1,this.count=30,this.isPopupOpen=!1,this.reloadFlag=!1,this.currentAppVersion=null,this.domainName=window.location.origin,this.baseUrl=R.N.apiUrl,this.imageUrl=R.N.whitelabelLogoPath,this.isLoading=!0,this.dataSubject=new Nt.xQ,this.check(),this.initListener(),this.initInterval(),this.renderer=this.rendererFactory.createRenderer(null,null)}ngOnInit(){this.items=[{label:"Copy",icon:"pi pi-copy",disabled:!0,command:l=>{const y=window.getSelection().toString();this.clipboard.copy(y),this.messageService.clear();let oe=`Use ${/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"CMD":"CTRL"} + V to paste`;this.messageService.add({severity:"info",summary:"Copied to clipboard",detail:oe,key:"copy-toast"})}}],this.setDefaultTheme(),this.checkConnection(),window.onbeforeunload=()=>{this.reloadFlag=!0,this.reset(),this.reloadFlag=!1},R.N.inspect||this.preventInspect(),window.addEventListener("storage",l=>{if(l.storageArea===localStorage)if("current_user"!==l.key){if(null==localStorage.getItem("logger_token")&&!window.location.href.includes("/auth/terms-condition")&&!window.location.href.includes("/terms-condition")){let U=window.location.pathname;!Hn.includes(U)&&!U.includes("view-receipt")&&!U.includes("view-invoice")&&this.router.navigate(["/auth/login"])}}else this.ngZone.run(()=>{try{const U=l.oldValue?JSON.parse(l.oldValue):null,oe=l.newValue?JSON.parse(l.newValue):null;if(!U?.accessToken)return;const _e=De=>`${String(De?.id??"")}|${String(De?.email??"").toLowerCase()}`;_e(U)!==_e(oe??{})&&this.authService.notifyDejaupWindowsLogout()}catch{}})}),this.setTitleAndFaviconFromStorage()}setTitleAndFaviconFromStorage(){setTimeout(()=>{this.isLoading=!1},300);const l=JSON.parse(localStorage.getItem("whitelabelResData"));let y,U;l?(y=l.tabName,U=`${this.imageUrl}/${l.favicon}`):(y="IPOSpays",U=R.N.defaultIcon),this.setTitleAndFavicon(y,U)}setTitleAndFavicon(l,y){const U=document.getElementById("dynamicTitle");let oe=document.getElementById("dynamicFavicon");U&&(this.renderer.setProperty(U,"innerText",l),document.title=l),oe&&this.renderer.setProperty(oe,"href",y),localStorage.setItem("customTitle",l),localStorage.setItem("customFavicon",y)}onShowContextMenu(){this.items[0].disabled=!window.getSelection().toString()}
1showToaster(l,y,U,oe){this.messageService.add({severity:l,summary:y,key:oe,detail:U})}preventInspect(){document.addEventListener("contextmenu",function(l){l.preventDefault()}),document.onkeydown=function(l){if(l.ctrlKey&&l.shiftKey&&l.keyCode=="I".charCodeAt(0)||l.ctrlKey&&l.shiftKey&&l.keyCode=="C".charCodeAt(0)||l.ctrlKey&&l.shiftKey&&l.keyCode=="J".charCodeAt(0)||l.ctrlKey&&l.keyCode=="U".charCodeAt(0))return!1}}setDefaultTheme(){let l=this.authService.getUser;l&&(l.themeColor??"theme-purple-light")&&(this.document.body.classList.remove("theme-purple-light","theme-cyan-light","theme-bluegrey-light"),this.document.body.classList.add(l.themeColor))}checkConnection(){this.connectionService.monitor().subscribe(l=>{this.isConnected=l.hasInternetAccess,this.isConnected?(this.noInternetConnection=!1,this.showToaster("success","Back Online","","myToast")):(this.noInternetConnection=!0,this.showToaster("warn","warning","No Connection","myToast"))})}continueSession(){this.lastAction=Date.now(),this.modalReference.close(),clearTimeout(this.logoutTimer),this.isPopupOpen=!1}get lastAction(){return parseInt(localStorage.getItem(Ln))}set lastAction(l){localStorage.setItem(Ln,l.toString())}reset(){(0==this.isPopupOpen||1==this.isPopupOpen&&1==this.reloadFlag)&&(this.lastAction=Date.now())}initListener(){this.ngZone.runOutsideAngular(()=>{document.body.addEventListener("click",()=>this.reset()),document.body.addEventListener("mouseover",()=>this.reset()),document.body.addEventListener("mouseout",()=>this.reset()),document.body.addEventListener("keydown",()=>this.reset()),document.body.addEventListener("keyup",()=>this.reset()),document.body.addEventListener("keypress",()=>this.reset())})}initInterval(){this.ngZone.runOutsideAngular(()=>{setInterval(()=>{this.authService.getUser&&this.check()},Wn)})}startCountdown(){var l=setInterval(()=>{this.count>=0?this.count-=1:clearInterval(l)},1e3);this.count=30}check(){let l=zn;this.authService.getUser?.email&&"prod"==R.N?.environmentName&&"denovosystem.com"==this.authService.getUser?.email.split("@").pop()&&(l=15);const y=Date.now(),_e=this.lastAction+60*l*1e3-3e4-y<0,Ve=this.lastAction+60*l*1e3-y<0;this.ngZone.run(()=>{_e&&this.authService.getUser&&0==this.isPopupOpen&&(this.modalReference=this.ngbModal.open(this.logOutModal,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1}),this.startCountdown(),this.isPopupOpen=!0),Ve&&this.authService.getUser&&(this.authService.logout(),this.modalReference.close(),this.ngbModal.dismissAll(),this.isPopupOpen=!1)})}}return u.\u0275fac=function(l){return new(l||u)(t.Y36(I.K0),t.Y36(i.Dx),t.Y36(e.e),t.Y36(xt.Mo),t.Y36(pt.ez),t.Y36(S.FF),t.Y36(t.R0b),t.Y36(En.TU),t.Y36(T.F0),t.Y36($e.v),t.Y36(t.FYo))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-root"]],viewQuery:function(l,y){if(1&l&&(t.Gf(Bn,5),t.Gf(Nn,5)),2&l){let U;t.iGM(U=t.CRH())&&(y.logOutModal=U.first),t.iGM(U=t.CRH())&&(y.currenActiveElement=U.first)}},features:[t._Bn([pt.ez])],decls:12,vars:13,consts:[["position","top-center","key","myToast",4,"ngIf"],["position","top-right","key","copy-toast",4,"ngIf"],["key","myToast",3,"breakpoints",4,"ngIf"],["key","copy-toast",3,"breakpoints",4,"ngIf"],[3,"loaderHeight",4,"ngIf"],[3,"global","model","autoZIndex","onShow"],["class","no-connection",4,"ngIf"],["style","text-align: center;",4,"ngIf"],["class","text-center m-4"],["logOutModal",""],["position","top-center","key","myToast"],["position","top-right","key","copy-toast"],["key","myToast",3,"breakpoints"],["key","copy-toast",3,"breakpoints"],[3,"loaderHeight"],[1,"no-connection"],[2,"text-align","center"],[1,"modal-header","d-flex","justify-content-between"],[1,"row"],[1,"ml-2"],["id","exampleModalLongTitle",1,"modal-title"],[1,"font-weight-bold","text_baseline"],[1,"modal-body","text-center","px-5","py-5"],[1,"font-weight-bold","ml-1"],[1,"card-footer","text-center"],[1,"btn","btn-success","w-80",3,"click"]],template:function(l,y){1&l&&(t.YNc(0,It,1,0,"p-toast",0),t.YNc(1,wn,1,0,"p-toast",1),t.YNc(2,Vn,1,4,"p-toast",2),t.YNc(3,$n,1,4,"p-toast",3),t.YNc(4,Jn,1,1,"app-loading",4),t.TgZ(5,"p-contextMenu",5),t.NdJ("onShow",function(){return y.onShowContextMenu()}),t.qZA(),t._UZ(6,"router-outlet"),t.YNc(7,Yn,1,0,"div",6),t.YNc(8,Qn,1,0,"div",7),t.YNc(9,jn,1,0,"div",7),t.YNc(10,qn,14,1,"ng-template",8,9,t.W1O)),2&l&&(t.Q6J("ngIf",!y.commonService.isMobileView),t.xp6(1),t.Q6J("ngIf",!y.commonService.isMobileView),t.xp6(1),t.Q6J("ngIf",y.commonService.isMobileView),t.xp6(1),t.Q6J("ngIf",y.commonService.isMobileView),t.xp6(1),t.Q6J("ngIf",y.isLoading),t.xp6(1),t.Akn(t.DdM(12,Kn)),t.Q6J("global",!0)("model",y.items)("autoZIndex",!1),t.xp6(3),t.Q6J("ngIf",y.noInternetConnection),t.xp6(1),t.Q6J("ngIf",!y.noInternetConnection))},dependencies:[I.O5,T.lC,St.FN,w.N,Sn.xV]}),u})();var Xn=r(70090),ei=r(32202),Zn=r(56908);let ti=(()=>{class u extends S.NG{constructor(){super(...arguments),this.DT_FORMAT="MM-DD-YYYY"}parse(l){return l&&(l=l.trim(),Zn(l,this.DT_FORMAT)),null}format(l){if(!l)return"";let y=Zn([l.year,l.month-1,l.day]);return y.isValid()?y.format(this.DT_FORMAT):""}}return u.\u0275fac=function(){let Y;return function(y){return(Y||(Y=t.n5z(u)))(y||u)}}(),u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();var ni=r(90413),Fn=r(66587),ii=r(47418),ai=r(58377);const kn=new t.OlP("defaultTimeout");let oi=(()=>{class u{constructor(l,y,U){this.defaultTimeout=l,this.authService=y,this.userService=U}intercept(l,y){this.currentUser=this.authService.getUser;
1const U=l.headers.get("timeout")||this.defaultTimeout,oe=Number(U);return["/portalApi/commitInvoice","/portalApi/commitRentalInvoice"].includes(l.url)&&(l=l.clone({headers:l.headers.set("User-request-id",this.currentUser?.userRequestId)})),[At.D.paymentForm,At.D.processTransaction,At.D.externalPaymentForm].indexOf(l.url)<0&&(l=l.clone({withCredentials:!0})),this.currentUser&&this.currentUser?.accessToken&&(l=this.sendToken(l)),y.handle(l).pipe((0,ai.V)(oe),(0,ii.K)(Ne=>(this.currentUser&&401==Ne.status&&!Ne.url.includes("druid")&&this.authService.logout(Ne?.error?.message),(0,Fn._)(Ne))))}sendToken(l){return l.clone({url:l.url.replace("http://","https://"),setHeaders:{xaccesstoken:this.currentUser.accessToken}})}}return u.\u0275fac=function(l){return new(l||u)(t.LFG(kn),t.LFG(e.e),t.LFG(n.K))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})();var ri=r(67085),li=r(7038),si=r(47073),Rn=r(50038),d=r(49319),V=r(70866),o=r(85921),q=r(88759);let s=(()=>{class u{constructor(){this.cache=new Map}intercept(l,y){const oe=l.url;if(!["/steamApi/device-alert","/portalApi/zipcodes","/portalApi/campaign","/portalApi/get-selected-tpn","/portalApi/get-all-audit-logs"].includes(oe)||"GET"!==l.method)return y.handle(l);const _e=this.cache.get(oe);_e&&_e.next();const De=new Nt.xQ;return this.cache.set(oe,De),y.handle(l).pipe((0,o.R)(De),(0,q.b)(Ve=>{Ve instanceof ke.Zn&&this.cache.delete(oe)}))}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})();var Ye=r(30409);const ze={validation:!1};function ct(u){const Y=window.location.origin;return()=>u.getCommonHttpClientParams(`${R.N.apiUrl}/getWhitelabelInfo?domainName=${Y}`).toPromise().then(l=>{console.log("\u{1f680} ~ return ~ initialzedata:",l),localStorage.setItem("whitelabelResData",JSON.stringify(l?.data))},l=>{console.log("\u{1f680} ~ return ~ error:",l)})}function ft(u){return new ei.w(u)}let vt=(()=>{class u{}return u.\u0275fac=function(l){return new(l||u)},u.\u0275mod=t.oAB({type:u,bootstrap:[Gn]}),u.\u0275inj=t.cJS({providers:[S.Kz,pt.ez,St.EV,he,{provide:Xn.rN,useValue:{coreLibraryLoader:()=>r.e(6502).then(r.t.bind(r,76502,23))}},{provide:t.qLn,useClass:V.L},{provide:ke.TP,useClass:oi,multi:!0},{provide:kn,useValue:3e5},{provide:ke.TP,useClass:s,multi:!0},{provide:S.NG,useClass:ti},$e.v,{provide:t.ip1,useFactory:ct,deps:[$e.v],multi:!0}],imports:[Q.Xd,i.b2,st,g.PW,xt.XY,_.$,In,f.UX,f.u5,S.IJ,ri.ii,$t.S,St.EV,ke.JF,yt.hJ,Zt.J7,si.fx,Ke.m,ni.A0,li.yI.forRoot(ze),Rn.m$.forRoot(),D.aw.forRoot({defaultLanguage:"en",loader:{provide:D.Zw,useFactory:ft,deps:[ke.eN]}}),d.K.forRoot(),Sn.vI,Kt.U$,Ye.BillingInvoiceModule,En.Iq]}),u})();var dt=r(29827);R.N.production&&(0,t.G48)(),i.q6().bootstrapModule(vt).catch(u=>console.error(u)),(0,dt.q)(window)},46700:(Te,G,r)=>{var i={"./af":58685,"./af.js":58685,"./ar":254,"./ar-dz":4312,"./ar-dz.js":4312,"./ar-kw":32614,"./ar-kw.js":32614,"./ar-ly":18630,"./ar-ly.js":18630,"./ar-ma":28674,"./ar-ma.js":28674,"./ar-ps":46235,"./ar-ps.js":46235,"./ar-sa":49032,"./ar-sa.js":49032,"./ar-tn":24730,"./ar-tn.js":24730,"./ar.js":254,"./az":53052,"./az.js":53052,"./be":60150,"./be.js":60150,"./bg":63069,"./bg.js":63069,"./bm":13466,"./bm.js":13466,"./bn":18516,"./bn-bd":90557,"./bn-bd.js":90557,"./bn.js":18516,"./bo":26273,"./bo.js":26273,"./br":9588,"./br.js":9588,"./bs":19815,"./bs.js":19815,"./ca":83331,"./ca.js":83331,"./cs":21320,"./cs.js":21320,"./cv":72219,"./cv.js":72219,"./cy":68266,"./cy.js":68266,"./da":66427,"./da.js":66427,"./de":67435,"./de-at":52871,"./de-at.js":52871,"./de-ch":12994,"./de-ch.js":12994,"./de.js":67435,"./dv":82357,"./dv.js":82357,"./el":95649,"./el.js":95649,"./en-au":59961,"./en-au.js":59961,"./en-ca":19878,"./en-ca.js":19878,"./en-gb":3924,"./en-gb.js":3924,"./en-ie":70864,"./en-ie.js":70864,"./en-il":91579,"./en-il.js":91579,"./en-in":30940,"./en-in.js":30940,"./en-nz":16181,"./en-nz.js":16181,"./en-sg":44301,"./en-sg.js":44301,"./eo":85291,"./eo.js":85291,"./es":54529,"./es-do":53764,"./es-do.js":53764,"./es-mx":12584,"./es-mx.js":12584,"./es-us":63425,"./es-us.js":63425,"./es.js":54529,"./et":35203,"./et.js":35203,"./eu":70678,"./eu.js":70678,"./fa":83483,"./fa.js":83483,"./fi":96262,"./fi.js":96262,"./fil":52521,"./fil.js":52521,"./fo":34555,"./fo.js":34555,"./fr":63131,"./fr-ca":88239,"./fr-ca.js":88239,"./fr-ch":21702,"./fr-ch.js":21702,"./fr.js":63131,"./fy":267,"./fy.js":267,"./ga":23821,"./ga.js":23821,"./gd":71753,"./gd.js":71753,"./gl":4074,"./gl.js":4074,"./gom-deva":92762,"./gom-deva.js":92762,"./gom-latn":5969,"./gom-latn.js":5969,"./gu":82809,"./gu.js":82809,"./he":45402,"./he.js":45402,"./hi":315,"./hi.js":315,"./hr":10410,"./hr.js":10410,"./hu":38288,"./hu.js":38288,"./hy-am":67928,"./hy-am.js":67928,"./id":71334,"./id.js":71334,"./is":86959,"./is.js":86959,"./it":34864,"./it-ch":51124,"./it-ch.js":51124,"./it.js":34864,"./ja":36141,"./ja.js":36141,"./jv":29187,"./jv.js":29187,"./ka":42136,"./ka.js":42136,"./kk":94332,"./kk.js":94332,"./km":18607,"./km.js":18607,"./kn":84305,"./kn.js":84305,"./ko":70234,"./ko.js":70234,"./ku":16003,"./ku-kmr":19619,"./ku-kmr.js":19619,"./ku.js":16003,"./ky":75061,"./ky.js":75061,"./lb":32786,"./lb.js":32786,"./lo":66183,"./lo.js":66183,"./lt":50029,"./lt.js":50029,"./lv":24169,"./lv.js":24169,"./me":68577,"./me.js":68577,"./mi":68177,"./mi.js":68177,"./mk":50337,"./mk.js":50337,"./ml":65260,"./ml.js":65260,"./mn":52325,"./mn.js":52325,"./mr":14695,"./mr.js":14695,"./ms":75334,"./ms-my":37151,"./ms-my.js":37151,"./ms.js":75334,"./mt":63570,"./mt.js":63570,"./my":97963,"./my.js":97963,"./nb":88028,"./nb.js":88028,"./ne":86638,"./ne.js":86638,"./nl":50302,"./nl-be":66782,"./nl-be.js":66782,"./nl.js":50302,"./nn":33501,"./nn.js":33501,"./oc-lnc":50563,"./oc-lnc.js":50563,"./pa-in":50869,"./pa-in.js":50869,"./pl":65302,"./pl.js":65302,"./pt":49687,"./pt-br":74884,"./pt-br.js":74884,"./pt.js":49
1687,"./ro":79107,"./ro.js":79107,"./ru":33627,"./ru.js":33627,"./sd":30355,"./sd.js":30355,"./se":83427,"./se.js":83427,"./si":11848,"./si.js":11848,"./sk":54590,"./sk.js":54590,"./sl":20184,"./sl.js":20184,"./sq":56361,"./sq.js":56361,"./sr":78965,"./sr-cyrl":81287,"./sr-cyrl.js":81287,"./sr.js":78965,"./ss":25456,"./ss.js":25456,"./sv":70451,"./sv.js":70451,"./sw":77558,"./sw.js":77558,"./ta":51356,"./ta.js":51356,"./te":73693,"./te.js":73693,"./tet":21243,"./tet.js":21243,"./tg":42500,"./tg.js":42500,"./th":55768,"./th.js":55768,"./tk":77761,"./tk.js":77761,"./tl-ph":35780,"./tl-ph.js":35780,"./tlh":29590,"./tlh.js":29590,"./tr":33807,"./tr.js":33807,"./tzl":93857,"./tzl.js":93857,"./tzm":60654,"./tzm-latn":8806,"./tzm-latn.js":8806,"./tzm.js":60654,"./ug-cn":30845,"./ug-cn.js":30845,"./uk":19232,"./uk.js":19232,"./ur":47052,"./ur.js":47052,"./uz":77967,"./uz-latn":32233,"./uz-latn.js":32233,"./uz.js":77967,"./vi":98615,"./vi.js":98615,"./x-pseudo":12320,"./x-pseudo.js":12320,"./yo":31313,"./yo.js":31313,"./zh-cn":64490,"./zh-cn.js":64490,"./zh-hk":55910,"./zh-hk.js":55910,"./zh-mo":98262,"./zh-mo.js":98262,"./zh-tw":44223,"./zh-tw.js":44223};function t(g){var T=_(g);return r(T)}function _(g){if(!r.o(i,g)){var T=new Error("Cannot find module '"+g+"'");throw T.code="MODULE_NOT_FOUND",T}return i[g]}t.keys=function(){return Object.keys(i)},t.resolve=_,Te.exports=t,t.id=46700},99116:(Te,G,r)=>{var i={"./xml-viewer-component.entry.js":[69507,9507]};function t(_){if(!r.o(i,_))return Promise.resolve().then(()=>{var v=new Error("Cannot find module '"+_+"'");throw v.code="MODULE_NOT_FOUND",v});var g=i[_],T=g[0];return r.e(g[1]).then(()=>r(T))}t.keys=()=>Object.keys(i),t.id=99116,Te.exports=t},42480:()=>{}},Te=>{Te.O(0,[4736],()=>Te(Te.s=95372)),Te.O()}]);
2//# sourceMappingURL=main.cce9902a8eb4c3f5.js.map

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.