@bookipi/htmlgenerator 1.1.34-alpha1 → 1.1.34-alpha2

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 CHANGED
@@ -77,6 +77,15 @@ var currencies = {
77
77
  code: "AUD",
78
78
  name_plural: "Australian dollars"
79
79
  },
80
+ AWG: {
81
+ code: 'AWG',
82
+ decimal_digits: 2,
83
+ name: 'Aruban Florin',
84
+ name_plural: 'Aruban Florin',
85
+ rounding: 0,
86
+ symbol: 'Afl.',
87
+ symbol_native: 'Afl.'
88
+ },
80
89
  AZN: {
81
90
  symbol: "man.",
82
91
  name: "Azerbaijani Manat",
@@ -935,6 +944,15 @@ var currencies = {
935
944
  name_plural: "Saudi riyals",
936
945
  rtl: true
937
946
  },
947
+ SCR: {
948
+ code: 'SCR',
949
+ decimal_digits: 2,
950
+ name: 'Seychelles Rupee',
951
+ name_plural: 'Seychelles Rupees',
952
+ rounding: 0,
953
+ symbol: 'RS',
954
+ symbol_native: 'RS'
955
+ },
938
956
  SDG: {
939
957
  symbol: "SDG",
940
958
  name: "Sudanese Pound",
@@ -962,6 +980,15 @@ var currencies = {
962
980
  code: "SGD",
963
981
  name_plural: "Singapore dollars"
964
982
  },
983
+ SLE: {
984
+ symbol: "Le",
985
+ name: "Sierra Leonean leone",
986
+ symbol_native: "Le",
987
+ decimal_digits: 2,
988
+ rounding: 0,
989
+ code: "SLE",
990
+ name_plural: "Sierra Leonean Leones"
991
+ },
965
992
  SLL: {
966
993
  symbol: "SLL",
967
994
  name: "Sierra Leonean Leone",
@@ -1552,6 +1579,723 @@ var numberFormat = {
1552
1579
  }
1553
1580
  };
1554
1581
 
1582
+ var countryCurrencies = new Map([['AF', {
1583
+ currency: 'AFN',
1584
+ orientation: 'rtl',
1585
+ symbol: '؋',
1586
+ locale: 'af-AF'
1587
+ }], ['AL', {
1588
+ currency: 'ALL',
1589
+ orientation: 'ltr',
1590
+ symbol: 'L',
1591
+ locale: 'sq-AL'
1592
+ }], ['DZ', {
1593
+ currency: 'DZD',
1594
+ orientation: 'ltr',
1595
+ symbol: 'د.ج',
1596
+ locale: 'ar-DZ'
1597
+ }], ['AO', {
1598
+ currency: 'AOA',
1599
+ orientation: 'ltr',
1600
+ symbol: 'Kz',
1601
+ locale: 'pt-AO'
1602
+ }], ['AI', {
1603
+ currency: 'XCD',
1604
+ orientation: 'ltr',
1605
+ symbol: '$',
1606
+ locale: 'en-AI'
1607
+ }], ['AG', {
1608
+ currency: 'XCD',
1609
+ orientation: 'ltr',
1610
+ symbol: '$',
1611
+ locale: 'en-AG'
1612
+ }], ['AM', {
1613
+ currency: 'AMD',
1614
+ orientation: 'ltr',
1615
+ symbol: '֏',
1616
+ locale: 'hy-AM'
1617
+ }], ['AU', {
1618
+ currency: 'AUD',
1619
+ orientation: 'ltr',
1620
+ symbol: '$',
1621
+ locale: 'en-AU'
1622
+ }], ['AZ', {
1623
+ currency: 'AZN',
1624
+ orientation: 'ltr',
1625
+ symbol: '₼',
1626
+ locale: 'az-Latn-AZ'
1627
+ }], ['BS', {
1628
+ currency: 'BSD',
1629
+ orientation: 'ltr',
1630
+ symbol: '$',
1631
+ locale: 'en-BS'
1632
+ }], ['BH', {
1633
+ currency: 'BHD',
1634
+ orientation: 'rtl',
1635
+ symbol: '.د.ب',
1636
+ locale: 'ar-BH'
1637
+ }], ['BB', {
1638
+ currency: 'BBD',
1639
+ orientation: 'ltr',
1640
+ symbol: '$',
1641
+ locale: 'en-BB'
1642
+ }], ['BY', {
1643
+ currency: 'BYN',
1644
+ orientation: 'ltr',
1645
+ symbol: 'Br',
1646
+ locale: 'be-BY'
1647
+ }], ['BE', {
1648
+ currency: 'EUR',
1649
+ orientation: 'ltr',
1650
+ symbol: '€',
1651
+ locale: 'nl-BE'
1652
+ }], ['BZ', {
1653
+ currency: 'BZD',
1654
+ orientation: 'ltr',
1655
+ symbol: '$',
1656
+ locale: 'en-BZ'
1657
+ }], ['BJ', {
1658
+ currency: 'XOF',
1659
+ orientation: 'rtl',
1660
+ symbol: 'XOF',
1661
+ locale: 'fr-BJ'
1662
+ }], ['BM', {
1663
+ currency: 'BMD',
1664
+ orientation: 'ltr',
1665
+ symbol: '$',
1666
+ locale: 'en-BM'
1667
+ }], ['BT', {
1668
+ currency: 'BTN',
1669
+ orientation: 'ltr',
1670
+ symbol: 'Nu.',
1671
+ locale: 'dz-BT'
1672
+ }], ['BA', {
1673
+ currency: 'BAM',
1674
+ orientation: 'ltr',
1675
+ symbol: 'KM',
1676
+ locale: 'bs-Latn-BA'
1677
+ }], ['BW', {
1678
+ currency: 'BWP',
1679
+ orientation: 'ltr',
1680
+ symbol: 'P',
1681
+ locale: 'en-BW'
1682
+ }], ['VG', {
1683
+ currency: 'USD',
1684
+ orientation: 'ltr',
1685
+ symbol: '$',
1686
+ locale: 'en-VG'
1687
+ }], ['BN', {
1688
+ currency: 'BND',
1689
+ orientation: 'ltr',
1690
+ symbol: '$',
1691
+ locale: 'ms-BN'
1692
+ }], ['BG', {
1693
+ currency: 'BGN',
1694
+ orientation: 'ltr',
1695
+ symbol: 'лв',
1696
+ locale: 'bg-BG'
1697
+ }], ['BF', {
1698
+ currency: 'XOF',
1699
+ orientation: 'rtl',
1700
+ symbol: 'XOF',
1701
+ locale: 'fr-BF'
1702
+ }], ['KH', {
1703
+ currency: 'KHR',
1704
+ orientation: 'ltr',
1705
+ symbol: '៛',
1706
+ locale: 'km-KH'
1707
+ }], ['CA', {
1708
+ currency: 'CAD',
1709
+ orientation: 'ltr',
1710
+ symbol: '$',
1711
+ locale: 'en-CA'
1712
+ }], ['CV', {
1713
+ currency: 'CVE',
1714
+ orientation: 'ltr',
1715
+ symbol: '$',
1716
+ locale: 'pt-CV'
1717
+ }], ['KY', {
1718
+ currency: 'KYD',
1719
+ orientation: 'ltr',
1720
+ symbol: '$',
1721
+ locale: 'en-KY'
1722
+ }], ['TD', {
1723
+ currency: 'XAF',
1724
+ orientation: 'ltr',
1725
+ symbol: 'Fr',
1726
+ locale: 'fr-TD'
1727
+ }], ['CD', {
1728
+ currency: 'CDF',
1729
+ orientation: 'ltr',
1730
+ symbol: 'Fr',
1731
+ locale: 'sw-CD'
1732
+ }], ['HR', {
1733
+ currency: 'HRK',
1734
+ orientation: 'ltr',
1735
+ symbol: 'kn',
1736
+ locale: 'hr-HR'
1737
+ }], ['CY', {
1738
+ currency: 'EUR',
1739
+ orientation: 'ltr',
1740
+ symbol: '€',
1741
+ locale: 'el-CY'
1742
+ }], ['CZ', {
1743
+ currency: 'CZK',
1744
+ orientation: 'ltr',
1745
+ symbol: 'Kč',
1746
+ locale: 'cs-CZ'
1747
+ }], ['DK', {
1748
+ currency: 'DKK',
1749
+ orientation: 'ltr',
1750
+ symbol: 'kr',
1751
+ locale: 'da-DK'
1752
+ }], ['DM', {
1753
+ currency: 'XCD',
1754
+ orientation: 'ltr',
1755
+ symbol: '$',
1756
+ locale: 'en-DM'
1757
+ }], ['EG', {
1758
+ currency: 'EGP',
1759
+ orientation: 'ltr',
1760
+ symbol: '£',
1761
+ locale: 'ar-EG'
1762
+ }], ['EE', {
1763
+ currency: 'EUR',
1764
+ orientation: 'ltr',
1765
+ symbol: '€',
1766
+ locale: 'et-EE'
1767
+ }], ['SZ', {
1768
+ currency: 'SZL',
1769
+ orientation: 'ltr',
1770
+ symbol: 'E',
1771
+ locale: 'en-SZ'
1772
+ }], ['FJ', {
1773
+ currency: 'FJD',
1774
+ orientation: 'ltr',
1775
+ symbol: '$',
1776
+ locale: 'en-FJ'
1777
+ }], ['FI', {
1778
+ currency: 'EUR',
1779
+ orientation: 'ltr',
1780
+ symbol: '€',
1781
+ locale: 'fi-FI'
1782
+ }], ['GM', {
1783
+ currency: 'GMD',
1784
+ orientation: 'ltr',
1785
+ symbol: 'D',
1786
+ locale: 'en-GM'
1787
+ }], ['GE', {
1788
+ currency: 'GEL',
1789
+ orientation: 'ltr',
1790
+ symbol: '₾',
1791
+ locale: 'ka-GE'
1792
+ }], ['GH', {
1793
+ currency: 'GHS',
1794
+ orientation: 'ltr',
1795
+ symbol: '₵',
1796
+ locale: 'en-GH'
1797
+ }], ['GR', {
1798
+ currency: 'EUR',
1799
+ orientation: 'ltr',
1800
+ symbol: '€',
1801
+ locale: 'el-GR'
1802
+ }], ['GD', {
1803
+ currency: 'XCD',
1804
+ orientation: 'ltr',
1805
+ symbol: '$',
1806
+ locale: 'en-GD'
1807
+ }], ['GW', {
1808
+ currency: 'XOF',
1809
+ orientation: 'rtl',
1810
+ symbol: 'XOF',
1811
+ locale: 'pt-GW'
1812
+ }], ['GY', {
1813
+ currency: 'GYD',
1814
+ orientation: 'ltr',
1815
+ symbol: '$',
1816
+ locale: 'en-GY'
1817
+ }], ['HU', {
1818
+ currency: 'HUF',
1819
+ orientation: 'ltr',
1820
+ symbol: 'Ft',
1821
+ locale: 'hu-HU'
1822
+ }], ['IS', {
1823
+ currency: 'ISK',
1824
+ orientation: 'ltr',
1825
+ symbol: 'kr',
1826
+ locale: 'is-IS'
1827
+ }], ['IN', {
1828
+ currency: 'INR',
1829
+ orientation: 'ltr',
1830
+ symbol: '₹',
1831
+ locale: 'hi-IN'
1832
+ }], ['ID', {
1833
+ currency: 'IDR',
1834
+ orientation: 'ltr',
1835
+ symbol: 'Rp',
1836
+ locale: 'id-ID'
1837
+ }], ['IQ', {
1838
+ currency: 'IQD',
1839
+ orientation: 'rtl',
1840
+ symbol: 'ع.د',
1841
+ locale: 'ar-IQ'
1842
+ }], ['IE', {
1843
+ currency: 'EUR',
1844
+ orientation: 'ltr',
1845
+ symbol: '€',
1846
+ locale: 'en-IE'
1847
+ }], ['IL', {
1848
+ currency: 'ILS',
1849
+ orientation: 'ltr',
1850
+ symbol: '₪',
1851
+ locale: 'he-IL'
1852
+ }], ['JM', {
1853
+ currency: 'JMD',
1854
+ orientation: 'ltr',
1855
+ symbol: '$',
1856
+ locale: 'en-JM'
1857
+ }], ['JO', {
1858
+ currency: 'JOD',
1859
+ orientation: 'rtl',
1860
+ symbol: 'د.ا',
1861
+ locale: 'ar-JO'
1862
+ }], ['KZ', {
1863
+ currency: 'KZT',
1864
+ orientation: 'ltr',
1865
+ symbol: '₸',
1866
+ locale: 'kk-KZ'
1867
+ }], ['KE', {
1868
+ currency: 'KES',
1869
+ orientation: 'ltr',
1870
+ symbol: 'Ksh',
1871
+ locale: 'en-KE'
1872
+ }], ['XK', {
1873
+ currency: 'EUR',
1874
+ orientation: 'ltr',
1875
+ symbol: '€',
1876
+ locale: 'sq-XK'
1877
+ }], ['KW', {
1878
+ currency: 'KWD',
1879
+ orientation: 'ltr',
1880
+ symbol: 'د.ك',
1881
+ locale: 'ar-KW'
1882
+ }], ['KG', {
1883
+ currency: 'KGS',
1884
+ orientation: 'ltr',
1885
+ symbol: 'с',
1886
+ locale: 'ky-KG'
1887
+ }], ['LA', {
1888
+ currency: 'LAK',
1889
+ orientation: 'ltr',
1890
+ symbol: '₭',
1891
+ locale: 'lo-LA'
1892
+ }], ['LV', {
1893
+ currency: 'EUR',
1894
+ orientation: 'ltr',
1895
+ symbol: '€',
1896
+ locale: 'lv-LV'
1897
+ }], ['LB', {
1898
+ currency: 'LBP',
1899
+ orientation: 'rtl',
1900
+ symbol: 'ل.ل',
1901
+ locale: 'ar-LB'
1902
+ }], ['LR', {
1903
+ currency: 'LRD',
1904
+ orientation: 'ltr',
1905
+ symbol: '$',
1906
+ locale: 'en-LR'
1907
+ }], ['LY', {
1908
+ currency: 'LYD',
1909
+ orientation: 'rtl',
1910
+ symbol: 'ل.د',
1911
+ locale: 'ar-LY'
1912
+ }], ['LT', {
1913
+ currency: 'EUR',
1914
+ orientation: 'ltr',
1915
+ symbol: '€',
1916
+ locale: 'lt-LT'
1917
+ }], ['LU', {
1918
+ currency: 'EUR',
1919
+ orientation: 'ltr',
1920
+ symbol: '€',
1921
+ locale: 'fr-LU'
1922
+ }], ['MG', {
1923
+ currency: 'MGA',
1924
+ orientation: 'ltr',
1925
+ symbol: 'Ar',
1926
+ locale: 'mg-MG'
1927
+ }], ['MW', {
1928
+ currency: 'MWK',
1929
+ orientation: 'ltr',
1930
+ symbol: 'MK',
1931
+ locale: 'en-MW'
1932
+ }], ['MY', {
1933
+ currency: 'MYR',
1934
+ orientation: 'ltr',
1935
+ symbol: 'RM',
1936
+ locale: 'ms-MY'
1937
+ }], ['MV', {
1938
+ currency: 'MVR',
1939
+ orientation: 'ltr',
1940
+ symbol: 'MVR',
1941
+ locale: 'dv-MV'
1942
+ }], ['ML', {
1943
+ currency: 'XOF',
1944
+ orientation: 'ltr',
1945
+ symbol: 'XOF',
1946
+ locale: 'fr-ML'
1947
+ }], ['MT', {
1948
+ currency: 'EUR',
1949
+ orientation: 'ltr',
1950
+ symbol: '€',
1951
+ locale: 'mt-MT'
1952
+ }], ['MR', {
1953
+ currency: 'MRU',
1954
+ orientation: 'ltr',
1955
+ symbol: 'UM',
1956
+ locale: 'ar-MR'
1957
+ }], ['FM', {
1958
+ currency: 'USD',
1959
+ orientation: 'ltr',
1960
+ symbol: '$',
1961
+ locale: 'en-FM'
1962
+ }], ['MD', {
1963
+ currency: 'MDL',
1964
+ orientation: 'ltr',
1965
+ symbol: 'L',
1966
+ locale: 'ro-MD'
1967
+ }], ['MN', {
1968
+ currency: 'MNT',
1969
+ orientation: 'ltr',
1970
+ symbol: '₮',
1971
+ locale: 'mn-MN'
1972
+ }], ['ME', {
1973
+ currency: 'EUR',
1974
+ orientation: 'ltr',
1975
+ symbol: '€',
1976
+ locale: 'sr-Latn-ME'
1977
+ }], ['MS', {
1978
+ currency: 'XCD',
1979
+ orientation: 'ltr',
1980
+ symbol: '$',
1981
+ locale: 'en-MS'
1982
+ }], ['MA', {
1983
+ currency: 'MAD',
1984
+ orientation: 'ltr',
1985
+ symbol: 'د.م.',
1986
+ locale: 'ar-MA'
1987
+ }], ['MZ', {
1988
+ currency: 'MZN',
1989
+ orientation: 'ltr',
1990
+ symbol: 'MT',
1991
+ locale: 'pt-MZ'
1992
+ }], ['MM', {
1993
+ currency: 'MMK',
1994
+ orientation: 'ltr',
1995
+ symbol: 'K',
1996
+ locale: 'my-MM'
1997
+ }], ['NA', {
1998
+ currency: 'NAD',
1999
+ orientation: 'ltr',
2000
+ symbol: '$',
2001
+ locale: 'en-NA'
2002
+ }], ['NR', {
2003
+ currency: 'AUD',
2004
+ orientation: 'ltr',
2005
+ symbol: '$',
2006
+ locale: 'en-NR'
2007
+ }], ['NP', {
2008
+ currency: 'NPR',
2009
+ orientation: 'ltr',
2010
+ symbol: 'रू',
2011
+ locale: 'ne-NP'
2012
+ }], ['NZ', {
2013
+ currency: 'NZD',
2014
+ orientation: 'ltr',
2015
+ symbol: '$',
2016
+ locale: 'en-NZ'
2017
+ }], ['NE', {
2018
+ currency: 'XOF',
2019
+ orientation: 'rtl',
2020
+ symbol: 'XOF',
2021
+ locale: 'fr-NE'
2022
+ }], ['NG', {
2023
+ currency: 'NGN',
2024
+ orientation: 'ltr',
2025
+ symbol: '₦',
2026
+ locale: 'en-NG'
2027
+ }], ['MK', {
2028
+ currency: 'MKD',
2029
+ orientation: 'ltr',
2030
+ symbol: 'ден',
2031
+ locale: 'mk-MK'
2032
+ }], ['NO', {
2033
+ currency: 'NOK',
2034
+ orientation: 'ltr',
2035
+ symbol: 'kr',
2036
+ locale: 'nb-NO'
2037
+ }], ['OM', {
2038
+ currency: 'OMR',
2039
+ orientation: 'rtl',
2040
+ symbol: 'ر.ع.',
2041
+ locale: 'ar-OM'
2042
+ }], ['PK', {
2043
+ currency: 'PKR',
2044
+ orientation: 'ltr',
2045
+ symbol: '₨',
2046
+ locale: 'ur-PK'
2047
+ }], ['PW', {
2048
+ currency: 'USD',
2049
+ orientation: 'ltr',
2050
+ symbol: '$',
2051
+ locale: 'en-PW'
2052
+ }], ['PG', {
2053
+ currency: 'PGK',
2054
+ orientation: 'ltr',
2055
+ symbol: 'K',
2056
+ locale: 'en-PG'
2057
+ }], ['PY', {
2058
+ currency: 'PYG',
2059
+ orientation: 'ltr',
2060
+ symbol: '₲',
2061
+ locale: 'es-PY'
2062
+ }], ['PE', {
2063
+ currency: 'PEN',
2064
+ orientation: 'ltr',
2065
+ symbol: 'S/.',
2066
+ locale: 'es-PE'
2067
+ }], ['PH', {
2068
+ currency: 'PHP',
2069
+ orientation: 'ltr',
2070
+ symbol: '₱',
2071
+ locale: 'fil-PH'
2072
+ }], ['PL', {
2073
+ currency: 'PLN',
2074
+ orientation: 'ltr',
2075
+ symbol: 'zł',
2076
+ locale: 'pl-PL'
2077
+ }], ['PT', {
2078
+ currency: 'EUR',
2079
+ orientation: 'ltr',
2080
+ symbol: '€',
2081
+ locale: 'pt-PT'
2082
+ }], ['QA', {
2083
+ currency: 'QAR',
2084
+ orientation: 'rtl',
2085
+ symbol: 'ر.ق',
2086
+ locale: 'ar-QA'
2087
+ }], ['RO', {
2088
+ currency: 'RON',
2089
+ orientation: 'ltr',
2090
+ symbol: 'lei',
2091
+ locale: 'ro-RO'
2092
+ }], ['RW', {
2093
+ currency: 'RWF',
2094
+ orientation: 'ltr',
2095
+ symbol: 'Fr',
2096
+ locale: 'rw-RW'
2097
+ }], ['ST', {
2098
+ currency: 'STN',
2099
+ orientation: 'ltr',
2100
+ symbol: 'Db',
2101
+ locale: 'pt-ST'
2102
+ }], ['SA', {
2103
+ currency: 'SAR',
2104
+ orientation: 'rtl',
2105
+ symbol: 'ر.س',
2106
+ locale: 'ar-SA'
2107
+ }], ['SN', {
2108
+ currency: 'XOF',
2109
+ orientation: 'rtl',
2110
+ symbol: 'XOF',
2111
+ locale: 'fr-SN'
2112
+ }], ['RS', {
2113
+ currency: 'RSD',
2114
+ orientation: 'ltr',
2115
+ symbol: 'din',
2116
+ locale: 'sr-Latn-RS'
2117
+ }], ['SC', {
2118
+ currency: 'SCR',
2119
+ orientation: 'ltr',
2120
+ symbol: '₨',
2121
+ locale: 'fr-SC'
2122
+ }], ['SL', {
2123
+ currency: 'SLL',
2124
+ orientation: 'ltr',
2125
+ symbol: 'Le',
2126
+ locale: 'en-SL'
2127
+ }], ['SG', {
2128
+ currency: 'SGD',
2129
+ orientation: 'ltr',
2130
+ symbol: '$',
2131
+ locale: 'en-SG'
2132
+ }], ['SK', {
2133
+ currency: 'EUR',
2134
+ orientation: 'ltr',
2135
+ symbol: '€',
2136
+ locale: 'sk-SK'
2137
+ }], ['SI', {
2138
+ currency: 'EUR',
2139
+ orientation: 'ltr',
2140
+ symbol: '€',
2141
+ locale: 'sl-SI'
2142
+ }], ['SB', {
2143
+ currency: 'SBD',
2144
+ orientation: 'ltr',
2145
+ symbol: '$',
2146
+ locale: 'en-SB'
2147
+ }], ['ZA', {
2148
+ currency: 'ZAR',
2149
+ orientation: 'ltr',
2150
+ symbol: 'R',
2151
+ locale: 'en-ZA'
2152
+ }], ['LK', {
2153
+ currency: 'LKR',
2154
+ orientation: 'ltr',
2155
+ symbol: 'Rs',
2156
+ locale: 'si-LK'
2157
+ }], ['KN', {
2158
+ currency: 'XCD',
2159
+ orientation: 'ltr',
2160
+ symbol: '$',
2161
+ locale: 'en-KN'
2162
+ }], ['LC', {
2163
+ currency: 'XCD',
2164
+ orientation: 'ltr',
2165
+ symbol: '$',
2166
+ locale: 'en-LC'
2167
+ }], ['VC', {
2168
+ currency: 'XCD',
2169
+ orientation: 'ltr',
2170
+ symbol: '$',
2171
+ locale: 'en-VC'
2172
+ }], ['SR', {
2173
+ currency: 'SRD',
2174
+ orientation: 'ltr',
2175
+ symbol: '$',
2176
+ locale: 'nl-SR'
2177
+ }], ['SE', {
2178
+ currency: 'SEK',
2179
+ orientation: 'ltr',
2180
+ symbol: 'kr',
2181
+ locale: 'sv-SE'
2182
+ }], ['CH', {
2183
+ currency: 'CHF',
2184
+ orientation: 'ltr',
2185
+ symbol: 'CHF',
2186
+ locale: 'de-CH'
2187
+ }], ['TW', {
2188
+ currency: 'TWD',
2189
+ orientation: 'ltr',
2190
+ symbol: 'NT$',
2191
+ locale: 'zh-TW'
2192
+ }], ['TJ', {
2193
+ currency: 'TJS',
2194
+ orientation: 'ltr',
2195
+ symbol: 'SM',
2196
+ locale: 'tg-Cyrl-TJ'
2197
+ }], ['TZ', {
2198
+ currency: 'TZS',
2199
+ orientation: 'ltr',
2200
+ symbol: 'TSh',
2201
+ locale: 'sw-TZ'
2202
+ }], ['TH', {
2203
+ currency: 'THB',
2204
+ orientation: 'ltr',
2205
+ symbol: '฿',
2206
+ locale: 'th-TH'
2207
+ }], ['TO', {
2208
+ currency: 'TOP',
2209
+ orientation: 'ltr',
2210
+ symbol: 'T$',
2211
+ locale: 'to-TO'
2212
+ }], ['TT', {
2213
+ currency: 'TTD',
2214
+ orientation: 'ltr',
2215
+ symbol: '$',
2216
+ locale: 'en-TT'
2217
+ }], ['TN', {
2218
+ currency: 'TND',
2219
+ orientation: 'rtl',
2220
+ symbol: 'د.ت',
2221
+ locale: 'ar-TN'
2222
+ }], ['TR', {
2223
+ currency: 'TRY',
2224
+ orientation: 'ltr',
2225
+ symbol: '₺',
2226
+ locale: 'tr-TR'
2227
+ }], ['TM', {
2228
+ currency: 'TMT',
2229
+ orientation: 'ltr',
2230
+ symbol: 'm',
2231
+ locale: 'tk-TM'
2232
+ }], ['TC', {
2233
+ currency: 'USD',
2234
+ orientation: 'ltr',
2235
+ symbol: '$',
2236
+ locale: 'en-TC'
2237
+ }], ['UG', {
2238
+ currency: 'UGX',
2239
+ orientation: 'ltr',
2240
+ symbol: 'USh',
2241
+ locale: 'sw-UG'
2242
+ }], ['UA', {
2243
+ currency: 'UAH',
2244
+ orientation: 'ltr',
2245
+ symbol: '₴',
2246
+ locale: 'uk-UA'
2247
+ }], ['AE', {
2248
+ currency: 'AED',
2249
+ orientation: 'rtl',
2250
+ symbol: 'د.إ',
2251
+ locale: 'ar-AE'
2252
+ }], ['GB', {
2253
+ currency: 'GBP',
2254
+ orientation: 'ltr',
2255
+ symbol: '£',
2256
+ locale: 'en-GB'
2257
+ }], ['US', {
2258
+ currency: 'USD',
2259
+ orientation: 'ltr',
2260
+ symbol: '$',
2261
+ locale: 'en-US'
2262
+ }], ['UY', {
2263
+ currency: 'UYU',
2264
+ orientation: 'ltr',
2265
+ symbol: '$',
2266
+ locale: 'es-UY'
2267
+ }], ['UZ', {
2268
+ currency: 'UZS',
2269
+ orientation: 'ltr',
2270
+ symbol: 'soʻm',
2271
+ locale: 'uz-Latn-UZ'
2272
+ }], ['VU', {
2273
+ currency: 'VUV',
2274
+ orientation: 'ltr',
2275
+ symbol: 'Vt',
2276
+ locale: 'bi-VU'
2277
+ }], ['VN', {
2278
+ currency: 'VND',
2279
+ orientation: 'ltr',
2280
+ symbol: '₫',
2281
+ locale: 'vi-VN'
2282
+ }], ['YE', {
2283
+ currency: 'YER',
2284
+ orientation: 'rtl',
2285
+ symbol: '﷼',
2286
+ locale: 'ar-YE'
2287
+ }], ['ZM', {
2288
+ currency: 'ZMW',
2289
+ orientation: 'ltr',
2290
+ symbol: 'ZK',
2291
+ locale: 'en-ZM'
2292
+ }], ['ZW', {
2293
+ currency: 'ZWL',
2294
+ orientation: 'ltr',
2295
+ symbol: '$',
2296
+ locale: 'en-ZW'
2297
+ }]]);
2298
+
1555
2299
  var roundNumber = function roundNumber(num, scale) {
1556
2300
  var multiplier = Math.pow(10, scale);
1557
2301
  return Math.round((num + Number.EPSILON) * multiplier) / multiplier;
@@ -1710,6 +2454,93 @@ var FormatCurrency = function FormatCurrency(value, currency, language, cFormat,
1710
2454
  var FormatCurrencyInPdf = function FormatCurrencyInPdf(value, currency, language, cFormat) {
1711
2455
  return currencyFormat(value, currency, language, cFormat, true);
1712
2456
  };
2457
+ var DEFAULT_COUNTRY = 'US';
2458
+ var formatCurrencyForApp = function formatCurrencyForApp(amount, countryCode, _temp) {
2459
+ var _ref = _temp === void 0 ? {} : _temp,
2460
+ maximumFractionDigits = _ref.maximumFractionDigits,
2461
+ minimumFractionDigits = _ref.minimumFractionDigits;
2462
+
2463
+ var _getDefaultCurrency = getDefaultCurrency(countryCode),
2464
+ currency = _getDefaultCurrency.currency,
2465
+ locale = _getDefaultCurrency.locale;
2466
+
2467
+ return formatterBuilder(amount, locale, currency, {
2468
+ maximumFractionDigits: maximumFractionDigits,
2469
+ minimumFractionDigits: minimumFractionDigits
2470
+ }).format(amount);
2471
+ };
2472
+ var getDefaultCurrency = function getDefaultCurrency(countryCode) {
2473
+ return countryCurrencies.get(countryCode || DEFAULT_COUNTRY);
2474
+ };
2475
+ var MAX_DECIMAL_DIGITS = 2;
2476
+ var formatterBuilder = function formatterBuilder(amount, locale, currency, _temp2) {
2477
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
2478
+ maximumFractionDigits = _ref2.maximumFractionDigits,
2479
+ minimumFractionDigits = _ref2.minimumFractionDigits;
2480
+
2481
+ var max = Math.max(minimumFractionDigits != null ? minimumFractionDigits : 0, maximumFractionDigits != null ? maximumFractionDigits : amount % 1 === 0 ? 0 : MAX_DECIMAL_DIGITS);
2482
+ return new Intl.NumberFormat(locale, {
2483
+ style: 'currency',
2484
+ currency: currency,
2485
+ numberingSystem: 'latn',
2486
+ minimumFractionDigits: minimumFractionDigits != null ? minimumFractionDigits : 0,
2487
+ maximumFractionDigits: max
2488
+ });
2489
+ };
2490
+ var parseCurrencyString = function parseCurrencyString(amount, decimalSymbol) {
2491
+ var parts = amount.split(decimalSymbol);
2492
+ var integer = parts[0].replace(/\D/g, '');
2493
+ var decimal = parts[1];
2494
+ var parsedAmount = parseFloat(integer + "." + decimal);
2495
+
2496
+ if (isNaN(parsedAmount)) {
2497
+ return 0;
2498
+ }
2499
+
2500
+ return parsedAmount;
2501
+ };
2502
+ var getDecimalSymbol = function getDecimalSymbol(countryCode, customFormatter) {
2503
+ var _parts$value;
2504
+
2505
+ var _getDefaultCurrency2 = getDefaultCurrency(countryCode),
2506
+ locale = _getDefaultCurrency2.locale,
2507
+ currency = _getDefaultCurrency2.currency;
2508
+
2509
+ var formatter = customFormatter || formatterBuilder(1.1, locale, currency);
2510
+ var parts = formatter.formatToParts(1.1).find(function (part) {
2511
+ return part.type === 'decimal';
2512
+ });
2513
+ var decimalSeparator = (_parts$value = parts === null || parts === void 0 ? void 0 : parts.value) != null ? _parts$value : '.';
2514
+ return decimalSeparator;
2515
+ };
2516
+ var getFormattedCurrencyParts = function getFormattedCurrencyParts(amount, countryCode, options, customFormatter) {
2517
+ var _getDefaultCurrency3 = getDefaultCurrency(countryCode),
2518
+ locale = _getDefaultCurrency3.locale,
2519
+ currency = _getDefaultCurrency3.currency,
2520
+ symbol = _getDefaultCurrency3.symbol,
2521
+ orientation = _getDefaultCurrency3.orientation;
2522
+
2523
+ var decimalSymbol = getDecimalSymbol(countryCode, customFormatter);
2524
+ var parsedAmount = typeof amount === 'string' ? parseCurrencyString(amount, decimalSymbol) : amount;
2525
+ var formatter = customFormatter || formatterBuilder(parsedAmount, locale, currency, options);
2526
+ var parts = formatter.formatToParts(parsedAmount);
2527
+ var displayAmount = parts.filter(function (part) {
2528
+ return !['currency', 'literal'].includes(part.type);
2529
+ }).map(function (part) {
2530
+ return part.value;
2531
+ }).join('');
2532
+ return {
2533
+ amount: displayAmount,
2534
+ currency: symbol,
2535
+ orientation: orientation
2536
+ };
2537
+ };
2538
+
2539
+ var isValidEmail = function isValidEmail(email) {
2540
+ if (!email) return false;
2541
+ var regex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]{1,64}@(?:(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9-]+|\[IPv6:[A-Fa-f0-9:]+\]|\[[0-9]{1,3}(\.[0-9]{1,3}){3}\])$/;
2542
+ return regex.test(email);
2543
+ };
1713
2544
 
1714
2545
  var getSafe = function getSafe(accessor) {
1715
2546
  try {
@@ -1727,7 +2558,14 @@ var util = {
1727
2558
  FormatCurrencyInPdf: FormatCurrencyInPdf,
1728
2559
  FormatCurrencyDetails: FormatCurrencyDetails,
1729
2560
  roundNumber: roundNumber,
1730
- FormatCurrencyNumber: FormatCurrencyNumber
2561
+ FormatCurrencyNumber: FormatCurrencyNumber,
2562
+ isValidEmail: isValidEmail,
2563
+ formatCurrencyForApp: formatCurrencyForApp,
2564
+ getDecimalSymbol: getDecimalSymbol,
2565
+ getDefaultCurrency: getDefaultCurrency,
2566
+ getFormattedCurrencyParts: getFormattedCurrencyParts,
2567
+ parseCurrencyString: parseCurrencyString,
2568
+ formatterBuilder: formatterBuilder
1731
2569
  };
1732
2570
 
1733
2571
  var nl2br = function nl2br(str, is_xhtml) {
@@ -10580,13 +11418,23 @@ var subscriptionInvoiceHtml = (function (_ref) {
10580
11418
  var productItems = (_invoiceItems$filter = invoiceItems.filter(function (item) {
10581
11419
  return item.type === 'product';
10582
11420
  })) != null ? _invoiceItems$filter : [];
11421
+ var subtotalItem = invoiceItems.find(function (item) {
11422
+ return item.type === 'subtotal';
11423
+ });
10583
11424
  var taxItem = invoiceItems.find(function (item) {
10584
11425
  return item.type === 'tax';
10585
11426
  });
10586
- var renderItem = function renderItem(item) {
10587
- return "\n <div class=\"invoice-order-item\">\n <div class=\"invoice-order-details\">\n <div>\n <div class=\"invoice-spacing invoice-body3\">" + item.description + "</div>\n </div>\n <div style=\"font-size: 16px;\">\n " + formatPrice(item.total, currency) + "\n </div>\n </div>\n " + (taxItem ? "<div class=\"invoice-tax\">\n <div class=\"invoice-subtitle3\">" + taxItem.description + "</div>\n <div class=\"invoice-subtitle3\">" + formatPrice(taxItem.total, currency) + "</div>\n </div>" : '') + "\n </div>\n ";
11427
+ var discountItem = invoiceItems.find(function (item) {
11428
+ return item.type === 'discount';
11429
+ });
11430
+ var renderItem = function renderItem(item, type) {
11431
+ var isDiscount = type === 'discount';
11432
+ return "\n <div class=\"invoice-order-item\">\n <div class=\"invoice-order-details\">\n <div>\n <div class=\"invoice-spacing invoice-body3\">" + (isDiscount ? item.name : item.description || item.name) + "</div>\n " + (isDiscount ? "<div class=\"invoice-subtitle4\">" + item.description + "</div>" : '') + "\n </div>\n <div style=\"font-size:16px;color:" + (isDiscount ? '#C81E1E' : 'inherit') + ";\">\n " + (isDiscount ? '-' : '') + formatPrice(item.total, currency) + "\n </div>\n </div>\n </div>\n ";
10588
11433
  };
10589
- var html = "\n " + (includeHtmlWrapper ? '<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>Invoice</title>' : "") + "\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=Lato:wght@400;700&display=swap');\n .bookipay-invoice {\n width: 100%;\n max-width: 600px;\n background-color: white;\n display:flex;\n border-radius: 16px;\n flex-direction: column;\n overflow: hidden;\n font-family: 'Inter', sans-serif;\n line-height: 1.2;\n color: black;\n font-size: 16px;\n }\n .invoice-content {\n padding: 40px 30px;\n }\n .invoice-header {\n display: flex;\n padding: 10px;\n margin-bottom: 40px;\n justify-content: space-between;\n }\n .invoice-footer {\n padding: 30px 38px 40px;\n background-color: rgb(245, 246, 250);\n }\n .invoice-footer p {\n display: block;\n margin: 0;\n }\n .invoice-footer-logo {\n height: 20px;\n margin-bottom: 12px;\n }\n .invoice-logo {\n object-fit: contain;\n max-height: 52px;\n width: auto;\n height: auto;\n }\n .invoice-body {\n color: color: rgb(15, 23, 42);\n font-size: 16px;\n }\n .invoice-company {\n text-align: right;\n }\n .invoice-spacing {\n margin-bottom: 4px;\n }\n .invoice-semi-bold {\n color: rgb(15, 23, 42);\n font-weight: 600;\n font-size: 16px;\n }\n .invoice-bold {\n font-family: 'Lato', sans-serif;\n color: black;\n font-weight: 700;\n font-size: 20px;\n }\n .invoice-subtitle {\n color: rgba(0, 0, 0, 0.6);\n font-size: 14px;\n }\n .invoice-subtitle2 {\n color: rgb(147, 154, 172);\n font-size: 14px;\n }\n .invoice-subtitle3 {\n color: rgb(100, 116, 139);\n font-size: 14px;\n }\n .invoice-summary {\n background-color: rgb(245, 246, 250);\n padding: 32px 24px;\n border-radius: 16px;\n margin-bottom: 40px;\n }\n .invoice-summary-total {\n display: flex;\n margin-bottom: 16px;\n justify-content: space-between;\n }\n .invoice-summary-customer {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n text-align: right;\n }\n .invoice-order-header {\n padding: 8px 0;\n margin-bottom: 8px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06);\n display: flex;\n justify-content: space-between;\n }\n .invoice-order-container {\n display: flex;\n justify-content: space-between;\n }\n .invoice-order-item {\n padding: 12px 0px 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06);\n margin-bottom: 8px;\n }\n .invoice-order-details {\n display: flex;\n justify-content: space-between;\n }\n .invoice-tax {\n display: flex;\n justify-content:space-between;\n margin-top: 8px;\n }\n .invoice-payment {\n display: flex;\n padding: 12px 0px 16px;\n justify-content: space-between;\n }\n .invoice-card {\n display: flex;\n }\n .invoice-card img {\n height: 18px;\n margin-right: 6px;\n }\n .invoice-bill-to {\n display: none;\n }\n @media (max-width: 600px) {\n .bookipay-invoice {\n border-radius: 0;\n }\n }\n @media (max-width: 799px) {\n .invoice-header {\n flex-direction: column;\n padding: 10px 0;\n }\n .invoice-company {\n text-align: left;\n }\n .invoice-logo {\n max-width: 100px;\n margin-bottom: 16px;\n }\n .invoice-header, .invoice-summary {\n margin-bottom: 20px;\n }\n .invoice-summary {\n margin-left: -30px;\n margin-right: -30px;\n border-radius: 0;\n padding: 32px 30px;\n }\n .invoice-content {\n padding: 20px 30px;\n }\n .invoice-bill-to {\n display: flex;\n }\n }\n @media (max-width: 399px) {\n .footer-actions {\n flex-direction: column;\n }\n .footer-action {\n margin-bottom: 12px;\n }\n footer {\n margin: 30px 0;\n }\n footer p {\n margin-top: 0;\n }\n }\n @media print {\n * {\n color-adjust: exact;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n .invoice-footer {\n width: 100%;\n max-width: 100%;\n margin: 0;\n }\n .bookipay-invoice {\n max-width: 100%;\n }\n @page { margin: 0; }\n body { margin: 1.6cm; }\n }\n </style>\n <div class=\"bookipay-invoice\">\n <div class=\"invoice-content\">\n <div class=\"invoice-header\">\n <img class=\"invoice-logo\" src=\"" + vendorLogoUrl + "\" />\n <div class=\"invoice-company\">\n <div class=\"invoice-company-name invoice-semi-bold invoice-spacing\">" + vendorName + "</div>\n <div class=\"invoice-number invoice-subtitle invoice-spacing\">Invoice #" + invoiceNumber + "</div>\n <div class=\"invoice-date invoice-subtitle invoice-spacing\">" + date + "</div>\n </div>\n </div>\n <div class=\"invoice-summary\">\n <div class=\"invoice-summary-total\">\n <div class=\"invoice-summary-total-title invoice-semi-bold invoice-spacing\">Total</div>\n <div class=\"invoice-summary-total-value invoice-bold invoice-spacing\">" + formatPrice(total, currency) + "</div>\n </div>\n <div class=\"invoice-summary-customer\">\n <div><div class=\"invoice-bill-to invoice-semi-bold invoice-spacing\">Bill to</div></div>\n <div>\n <div class=\"invoice-bold invoice-spacing\">" + companyName + "</div>\n <div class=\"invoice-customer-email invoice-subtitle2\">" + email + "</div>\n </div>\n </div>\n </div>\n <div class=\"invoice-order\">\n <div class=\"invoice-order-header\">\n <div class=\"invoice-subtitle3\">Item</div>\n <div class=\"invoice-subtitle3\">Amount</div>\n </div>\n <div class=\"invoice-order-item-container\">\n " + productItems.map(renderItem) + "\n <div class=\"invoice-payment\">\n <div class=\"invoice-bold\" style=\"font-size: 16px;\">Total charged</div>\n <div class=\"invoice-body3\">\n <div class=\"invoice-bold invoice-spacing\" style=\"font-size: 18px;text-align: right;\">" + formatPrice(amountPaid, currency) + "</div>\n <div class=\"invoice-card\">\n <img src=" + cardLogo + " alt=" + cardBrand + " />\n <div class=\"invoice-semi-bold\" style=\"font-weight: 400;\">" + (cardBrand.charAt(0).toUpperCase() + cardBrand.slice(1)) + " \u2022\u2022\u2022\u2022 " + cardNumber + "</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"invoice-footer invoice-subtitle2\" style=\"font-size: 12px;\">\n <img class=\"invoice-footer-logo\" src=\"" + vendorLogoUrl + "\" />\n <!-- TODO: Dynamic company info -->\n <p>\xA92023 Bookipi Pty Ltd.</p>\n <p>9 George St, North Strathfield NSW 2137, Australia</p>\n <p>ABN: 91617668185</p>\n </div>\n </div>\n " + (includeHtmlWrapper ? "</body></html>" : "") + "\n ";
11434
+ var hasDiscount = discountItem && (discountItem === null || discountItem === void 0 ? void 0 : discountItem.total) > 0;
11435
+ var hasTax = taxItem && (taxItem === null || taxItem === void 0 ? void 0 : taxItem.total) > 0;
11436
+ var hasSubtotal = subtotalItem && (subtotalItem === null || subtotalItem === void 0 ? void 0 : subtotalItem.total) > 0;
11437
+ var html = "\n " + (includeHtmlWrapper ? '<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>Invoice</title>' : "") + "\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=Lato:wght@400;700&display=swap');\n .bookipay-invoice {\n width: 100%;\n max-width: 600px;\n background-color: white;\n display:flex;\n border-radius: 16px;\n flex-direction: column;\n overflow: hidden;\n font-family: 'Inter', sans-serif;\n line-height: 1.2;\n color: black;\n font-size: 16px;\n }\n .invoice-content {\n padding: 40px 30px;\n }\n .invoice-header {\n display: flex;\n padding: 10px;\n margin-bottom: 40px;\n justify-content: space-between;\n }\n .invoice-footer {\n padding: 30px 38px 40px;\n background-color: rgb(245, 246, 250);\n }\n .invoice-footer p {\n display: block;\n margin: 0;\n }\n .invoice-footer-logo {\n height: 20px;\n margin-bottom: 12px;\n }\n .invoice-logo {\n object-fit: contain;\n max-height: 52px;\n width: auto;\n height: auto;\n }\n .invoice-body {\n color: color: rgb(15, 23, 42);\n font-size: 16px;\n }\n .invoice-company {\n text-align: right;\n }\n .invoice-spacing {\n margin-bottom: 4px;\n }\n .invoice-semi-bold {\n color: rgb(15, 23, 42);\n font-weight: 600;\n font-size: 16px;\n }\n .invoice-bold {\n font-family: 'Lato', sans-serif;\n color: black;\n font-weight: 700;\n font-size: 20px;\n }\n .invoice-subtitle {\n color: rgba(0, 0, 0, 0.6);\n font-size: 14px;\n }\n .invoice-subtitle2 {\n color: rgb(147, 154, 172);\n font-size: 14px;\n }\n .invoice-subtitle3 {\n color: rgb(100, 116, 139);\n font-size: 14px;\n }\n .invoice-subtitle4 {\n font-size: 10px;\n }\n .invoice-summary {\n background-color: rgb(245, 246, 250);\n padding: 32px 24px;\n border-radius: 16px;\n margin-bottom: 40px;\n }\n .invoice-summary-total {\n display: flex;\n margin-bottom: 16px;\n justify-content: space-between;\n }\n .invoice-summary-customer {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n text-align: right;\n }\n .invoice-order-header {\n padding: 8px 0;\n margin-bottom: 8px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06);\n display: flex;\n justify-content: space-between;\n }\n .invoice-order-container {\n display: flex;\n justify-content: space-between;\n }\n .invoice-order-item {\n padding: 12px 0px 5px;\n }\n .invoice-order-details {\n display: flex;\n justify-content: space-between;\n }\n .invoice-tax {\n display: flex;\n justify-content:space-between;\n margin-top: 8px;\n }\n .invoice-payment {\n display: flex;\n padding: 12px 0px 16px;\n justify-content: space-between;\n border-top: 1px solid rgba(0, 0, 0, 0.06);\n margin-top: 15px;\n }\n .invoice-card {\n display: flex;\n }\n .invoice-card img {\n height: 18px;\n margin-right: 6px;\n }\n .invoice-bill-to {\n display: none;\n }\n @media (max-width: 600px) {\n .bookipay-invoice {\n border-radius: 0;\n }\n }\n @media (max-width: 799px) {\n .invoice-header {\n flex-direction: column;\n padding: 10px 0;\n }\n .invoice-company {\n text-align: left;\n }\n .invoice-logo {\n max-width: 100px;\n margin-bottom: 16px;\n }\n .invoice-header, .invoice-summary {\n margin-bottom: 20px;\n }\n .invoice-summary {\n margin-left: -30px;\n margin-right: -30px;\n border-radius: 0;\n padding: 32px 30px;\n }\n .invoice-content {\n padding: 20px 30px;\n }\n .invoice-bill-to {\n display: flex;\n }\n }\n @media (max-width: 399px) {\n .footer-actions {\n flex-direction: column;\n }\n .footer-action {\n margin-bottom: 12px;\n }\n footer {\n margin: 30px 0;\n }\n footer p {\n margin-top: 0;\n }\n }\n @media print {\n * {\n color-adjust: exact;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n .invoice-footer {\n width: 100%;\n max-width: 100%;\n margin: 0;\n }\n .bookipay-invoice {\n max-width: 100%;\n }\n @page { margin: 0; }\n body { margin: 1.6cm; }\n }\n </style>\n <div class=\"bookipay-invoice\">\n <div class=\"invoice-content\">\n <div class=\"invoice-header\">\n <img class=\"invoice-logo\" src=\"" + vendorLogoUrl + "\" />\n <div class=\"invoice-company\">\n <div class=\"invoice-company-name invoice-semi-bold invoice-spacing\">" + vendorName + "</div>\n <div class=\"invoice-number invoice-subtitle invoice-spacing\">Invoice #" + invoiceNumber + "</div>\n <div class=\"invoice-date invoice-subtitle invoice-spacing\">" + date + "</div>\n </div>\n </div>\n <div class=\"invoice-summary\">\n <div class=\"invoice-summary-total\">\n <div class=\"invoice-summary-total-title invoice-semi-bold invoice-spacing\">Total</div>\n <div class=\"invoice-summary-total-value invoice-bold invoice-spacing\">" + formatPrice(total, currency) + "</div>\n </div>\n <div class=\"invoice-summary-customer\">\n <div><div class=\"invoice-bill-to invoice-semi-bold invoice-spacing\">Bill to</div></div>\n <div>\n <div class=\"invoice-bold invoice-spacing\">" + companyName + "</div>\n <div class=\"invoice-customer-email invoice-subtitle2\">" + email + "</div>\n </div>\n </div>\n </div>\n <div class=\"invoice-order\">\n <div class=\"invoice-order-header\">\n <div class=\"invoice-subtitle3\">Item</div>\n <div class=\"invoice-subtitle3\">Amount</div>\n </div>\n <div class=\"invoice-order-item-container\">\n " + productItems.map(renderItem) + "\n " + (hasDiscount ? renderItem(discountItem, 'discount') : '') + "\n " + (hasDiscount && hasTax && hasSubtotal ? renderItem(subtotalItem, 'subtotal') : '') + "\n " + (hasTax ? renderItem(taxItem, 'tax') : '') + "\n <div class=\"invoice-payment\">\n <div class=\"invoice-bold\" style=\"font-size: 16px;\">Total charged</div>\n <div class=\"invoice-body3\">\n <div class=\"invoice-bold invoice-spacing\" style=\"font-size: 18px;text-align: right;\">" + formatPrice(amountPaid, currency) + "</div>\n <div class=\"invoice-card\">\n <img src=" + cardLogo + " alt=" + cardBrand + " />\n <div class=\"invoice-semi-bold\" style=\"font-weight: 400;\">" + (cardBrand.charAt(0).toUpperCase() + cardBrand.slice(1)) + " \u2022\u2022\u2022\u2022 " + cardNumber + "</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"invoice-footer invoice-subtitle2\" style=\"font-size: 12px;\">\n <img class=\"invoice-footer-logo\" src=\"" + vendorLogoUrl + "\" />\n <!-- TODO: Dynamic company info -->\n <p>\xA92023 Bookipi Pty Ltd.</p>\n <p>9 George St, North Strathfield NSW 2137, Australia</p>\n <p>ABN: 91617668185</p>\n </div>\n </div>\n " + (includeHtmlWrapper ? "</body></html>" : "") + "\n ";
10590
11438
  return {
10591
11439
  html: html
10592
11440
  };