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