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ACjBC,YAAY,EAAE,0CAA0C;cACxDC,eAAe,EAAE;gBACbC,YAAY,EAAE,4CAA4C;gBAC1DjD,kBAAkB,EAAlBA;cACJ;YACJ,CAAC,CAAC;UAAA;UAAA;YAAA,OAAAyB,QAAA,CAAAyB,IAAA;QAAA;MAAA;IAAA,GAAAnD,OAAA;EAAA,CAWL;EAAA,gBAvFYL,sDAAsDA,CAAA;IAAA,OAAAC,IAAA,CAAAwD,KAAA,OAAA7B,SAAA;EAAA;AAAA,GAuFlE","sources":["webpack://smetio/./developement/js/functions/apps/businessLocations/showBusinessLocationSubscriptionDetailsForConfirmation.js"],"sourcesContent":["\r\n\r\nexport const showBusinessLocationSubscriptionDetailsForConfirmation = async (functionParameters = {}) => {\r\n \r\n const { businessLocationName, businessName, country, organisationNumber } = functionParameters;\r\n \r\n\r\n const { calculateTotalAmount } = (await import(/* webpackPrefetch: true */ \"@schaniag/private\"));\r\n const {vatPercentage, vatAmount, amountWithVat, cardChargeAmount, totalAmountWithVatAndCardCharges, currency, subscriptionAmount} = calculateTotalAmount({country:\"no\"});\r\n\r\n const { setTxtV2 } = (await import(/* webpackPrefetch: true */ \"../../../classes/universal_methods/setTxtV2.js\"));\r\n const { getConfirmationSmartbox } = (await import(/* webpackPrefetch: true */ \"./../../get/getConfirmationSmartbox\"));\r\n\r\n functionParameters.sideMenuItems = window.currentSideMenuItems;\r\n functionParameters.smetioAppUi = window.currentSmetioAppUi;\r\n\r\n const dayBeforeDeletion = 14;\r\n\r\n const output = `\r\n \r\n
\r\n ${ setTxtV2({ attributes: {}, txt: \"txt1767\", type: \"html\" }).replace(\"[#bu51n35l0c4510n]\", businessLocationName).replace(\"[#d4y5B3f0r3D3l3t3]\", dayBeforeDeletion) }\r\n
\r\n\r\n ${ setTxtV2({ attributes: {}, txt: \"txt510\", type: \"html\" })}: \r\n ${subscriptionAmount} ${currency}\r\n
\r\n\r\n\r\n ${ setTxtV2({ attributes: {}, txt:\"txt511\", type: \"html\" })} (${vatPercentage}%): \r\n ${vatAmount} ${currency} \r\n
\r\n\r\n\r\n ${ setTxtV2({ attributes: {}, txt: \"txt531\", type: \"html\" })} : \r\n ${amountWithVat} ${currency} \r\n
\r\n\r\n\r\n ${ setTxtV2({ attributes: {}, txt: \"txt532\", type: \"html\" })} : \r\n ${cardChargeAmount} ${currency} \r\n
\r\n\r\n\r\n ${ setTxtV2({ attributes: {}, txt: \"txt512\", type: \"html\" })}: \r\n ${totalAmountWithVatAndCardCharges} ${currency}\r\n
\r\n\r\n\r\n ${ businessName } - ${organisationNumber} ${country}\r\n
\r\n \r\n\r\n ${ paymentMethod.brand } | **** ${ paymentMethod.last4 } | EXP: ${paymentMethod.exp_month}/${paymentMethod.exp_year}\r\n
\r\n */\r\n\r\n};\r\n"],"names":["showBusinessLocationSubscriptionDetailsForConfirmation","_ref","_asyncToGenerator","regeneratorRuntime","mark","_callee","functionParameters","businessLocationName","businessName","country","organisationNumber","_yield$import","calculateTotalAmount","_calculateTotalAmount","vatPercentage","vatAmount","amountWithVat","cardChargeAmount","totalAmountWithVatAndCardCharges","currency","subscriptionAmount","_yield$import2","setTxtV2","_yield$import3","getConfirmationSmartbox","dayBeforeDeletion","output","_args","arguments","wrap","_callee$","_context","prev","next","length","undefined","sent","sideMenuItems","window","currentSideMenuItems","smetioAppUi","currentSmetioAppUi","concat","attributes","txt","type","replace","abrupt","title","informationTexts","buttonText","showClickInstruction","showHeading","smartboxName","functionDetails","functionPath","stop","apply"],"sourceRoot":""}