@bookipi/htmlgenerator 1.5.16-alpha2 → 1.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12224,10 +12224,6 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12224
12224
|
};
|
|
12225
12225
|
});
|
|
12226
12226
|
|
|
12227
|
-
var DOCUMENT_KEYS = ['_id', 'ad', 'ty', 'cu', 'd', 'dd', 'rn', 'it', 'st', 'tx', 'tx2', 'tt', 'dc', 'dcp', 'dcpo', 'sp', 'sntx', 'tp', 'tn', 'tp2', 'ti', 'ttx', 't1d', 't2d', 'pm', 'sca', 'hangingAmount', 'depositAmount', 'um', 'shouldShowPaymentInstructions', 'customization', 'asi', 'no', 'proposal', 'd', 'rd', 'di', 'pon', 'pma', 'depositDue', 'noteHtml', 'nt', 'tc', 'sd', 'cs'];
|
|
12228
|
-
|
|
12229
|
-
var COMPANY_KEYS = ['_id', 'c', 'e', 'ph', 'tfn', 'la', 'cr', 'cf', 'tz', 'ls', 'doc', 'bn', 'tn', 'tn2', 'tp', 'tp2', 'ti', 'ttx', 't1d', 't2d', 'pi', 'p1', 'p2', 'p3', 'sg', 'a1', 'a2', 'a3', 'address', 'language', 'la', 'sc', 'sr', 'r_bs', 'r_tc', 'r_nt', 'r_deposit_due', 'r_ad', 'r_gt', 'r_po', 'r_bt', 'r_st', 'r_d', 'r_a', 'r_dc', 'r_ic', 'r_it', 'r_n', 'r_p', 'r_q', 'r_sb', 'r_sp', 'r_tt', 'r_pi', 'r_inv', 'r_est', 'r_crd', 'r_dd', 'df', 'lg', 'hasPaymentInstructionQRCode', 'updatedAt', 'payment_in_progress'];
|
|
12230
|
-
|
|
12231
12227
|
var hexToRGB = function hexToRGB(hex) {
|
|
12232
12228
|
hex = hex.replace(/^#/, "");
|
|
12233
12229
|
return {
|
|
@@ -12750,16 +12746,6 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12750
12746
|
};
|
|
12751
12747
|
});
|
|
12752
12748
|
|
|
12753
|
-
var trimInvoiceKeys = (function (obj, keys) {
|
|
12754
|
-
var result = {};
|
|
12755
|
-
keys.forEach(function (key) {
|
|
12756
|
-
if (obj.hasOwnProperty(key)) {
|
|
12757
|
-
result[key] = obj[key];
|
|
12758
|
-
}
|
|
12759
|
-
});
|
|
12760
|
-
return result;
|
|
12761
|
-
});
|
|
12762
|
-
|
|
12763
12749
|
var invoiceHtml = (function (_ref) {
|
|
12764
12750
|
var invoice = _ref.invoice,
|
|
12765
12751
|
_ref$lang = _ref.lang,
|
|
@@ -12801,10 +12787,7 @@ var invoiceHtml = (function (_ref) {
|
|
|
12801
12787
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
|
|
12802
12788
|
var renderInvoice = isNewLayout ? invoiceHtmlWithDetailsNew : invoiceHtmlWithDetails;
|
|
12803
12789
|
return renderInvoice({
|
|
12804
|
-
invoice:
|
|
12805
|
-
document: trimInvoiceKeys(invoice.document, DOCUMENT_KEYS),
|
|
12806
|
-
company: trimInvoiceKeys(invoice.company, COMPANY_KEYS)
|
|
12807
|
-
}),
|
|
12790
|
+
invoice: invoice,
|
|
12808
12791
|
lang: lang,
|
|
12809
12792
|
referral: referral,
|
|
12810
12793
|
companyLogoBase: companyLogoBase,
|